/* ==========================================================================
   Propdex — propdex.ai
   Design language: calm financial authority. Emerald on near-white,
   forest panels, no heavy shadows, no gradients beyond a forest tint.
   ========================================================================== */

:root {
  --emerald: #059669;
  --emerald-deep: #047857;      /* hover + inline links (AA on white) */
  --forest: #064E3B;
  --forest-deep: #053D2F;
  --mint: #34D399;
  --mint-soft: #A7F3D0;
  --surface: #FAFAF9;
  --white: #FFFFFF;
  --ink: #0F172A;
  --body: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --tint: #ECFDF5;              /* pale emerald wash for chips/badges */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset / base ------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.375rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--emerald-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--mint-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--emerald-deep); /* solid — 5.48:1 on white (WCAG 1.4.11) */
  outline-offset: 2px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: 92px;
}

/* --- Utilities ----------------------------------------------------------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin-bottom: 0.875rem;
}

.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald-deep); /* #047857 — white text 5.48:1 (AA) */
  color: var(--white);
}

.btn-primary:hover {
  background: #065F46; /* white text 7.09:1 */
}

.btn-secondary {
  background: var(--white);
  color: var(--emerald-deep);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--emerald);
}

/* --- Header / nav --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--emerald);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  padding: 12px 0; /* widen hit area in the 68px bar */
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--emerald-deep);
  text-decoration: none;
}

.btn-nav {
  padding: 10px 18px;
  font-size: 0.9375rem;
  min-height: 44px; /* tap target */
  display: inline-flex;
  align-items: center;
}

@media (max-width: 819px) {
  .nav-links {
    display: none;
  }

  .nav .btn-nav {
    margin-left: auto;
  }
}

/* --- Sections ------------------------------------------------------------- */

section {
  padding: 3.75rem 0;
}

@media (min-width: 720px) {
  section {
    padding: 5.5rem 0;
  }
}

.section-narrow {
  max-width: 720px;
}

.section-center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.lede {
  font-size: 1.1875rem;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  padding-top: 4rem;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
  }
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--mint-soft);
  border-radius: 999px;
  background: var(--tint);
  color: var(--emerald-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1875rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* --- Waitlist form ----------------------------------------------------------- */

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 30rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--muted); /* #64748B — 4.76:1 boundary contrast */
  border-radius: var(--radius-sm);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--muted);
}

.waitlist-form input[type="email"]:focus-visible {
  outline: 3px solid var(--emerald-deep);
  outline-offset: 1px;
  border-color: var(--emerald);
}

@media (max-width: 519px) {
  .waitlist-form {
    flex-direction: column;
  }
}

.form-note {
  font-size: 0.9375rem;
  margin: 0.875rem 0 0.25rem;
}

.form-privacy {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.section-center .waitlist-form {
  margin-inline: auto;
}

/* --- Chat mockup ---------------------------------------------------------------- */

.phone {
  margin: 0;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.phone-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 10px;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--emerald);
  flex: none;
}

.phone-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.phone-status {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 14px;
  background: #F4F7F5;
  border-radius: 0 0 20px 20px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

.bubble p {
  margin: 0;
}

.bubble-user {
  align-self: flex-end;
  background: #D7F2E4;
  border-radius: 16px 16px 4px 16px;
}

.bubble-reply {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}

.citation-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: var(--tint);
  border: 1px solid var(--mint-soft);
  border-radius: 999px;
  color: var(--emerald-deep);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.phone-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- Trust strip ----------------------------------------------------------------- */

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.25rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.card p {
  font-size: 0.9844rem;
  margin: 0;
}

.card-rule {
  width: 28px;
  height: 3px;
  background: var(--emerald);
  border-radius: 2px;
  margin-bottom: 1.125rem;
}

/* --- How it works ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald-deep); /* 5.25:1 on #FAFAF9 (AA) */
  margin-bottom: 0.75rem;
}

.steps p {
  font-size: 0.9844rem;
  margin: 0;
}

/* --- Ask chips ----------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* --- Forest panel (privacy) ------------------------------------------------------------ */

.panel-forest {
  background: linear-gradient(165deg, var(--forest), var(--forest-deep));
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  color: #D6E9E1;
}

.panel-forest .kicker {
  color: var(--mint);
}

.panel-forest h2 {
  color: var(--white);
}

.panel-forest p {
  max-width: 46rem;
}

.panel-forest a {
  color: var(--mint);
  font-weight: 600;
}

.panel-forest a:focus-visible {
  outline-color: var(--mint); /* solid — 5.06:1 on forest */
}

/* --- For professionals ------------------------------------------------------------------- */

.agents-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
}

.agents-card .agents-copy {
  flex: 1 1 24rem;
}

.agents-card h2 {
  font-size: 1.5rem;
}

.agents-card p {
  margin: 0;
  font-size: 0.9844rem;
}

/* --- FAQ ------------------------------------------------------------------------------------ */

.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 1.125rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  content: "+" / ""; /* alt-text syntax mutes the glyph for AT; <details> conveys state */
  flex: none;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--emerald-deep);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2013";
  content: "\2013" / "";
}

.faq-list details p {
  padding: 0 0.25rem;
  margin: 0 0 1.25rem;
  max-width: 44rem;
  font-size: 0.9844rem;
}

/* --- Closing CTA / thanks --------------------------------------------------------------------- */

.thanks {
  display: none;
}

.thanks:target {
  display: block;
  max-width: 30rem;
  margin: 0 auto 1.75rem;
  padding: 14px 20px;
  background: var(--tint);
  border: 1px solid var(--mint-soft);
  border-radius: var(--radius);
  color: #065F46;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* --- Footer -------------------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.footer-tag {
  margin: 0.875rem 0 0;
  max-width: 24rem;
}

.footer-meta p {
  margin: 0 0 0.625rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin: 0.25rem 0 0.875rem;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0; /* tap target */
  font-weight: 500;
}

.footer-copy {
  color: var(--muted);
}

/* --- Legal pages ------------------------------------------------------------------------------------ */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 24px 4.5rem;
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.625rem);
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

/* --- Reduced motion ----------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
