/* ==========================================================================
   INK & STAMP — Design Concept Option 01 "Figma Faithful"
   Static design-review prototype. No build step, no network dependency.
   Palette + tokens per Ink & Stamp Brand Kit v1.0; layout per Lex's Figma.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (Brand Kit · 05 Core Color Palette) */
  --black:        #000000;
  --copper:       #BD9577;
  --espresso:     #241A12;
  --beige:        #E3D2CA;
  --cream:        #F4EDE9;
  --white:        #FFFFFF;

  /* Sampled from the Figma render: the dark strips are #111111, not pure black.
     Black stays reserved for primary text, per the brand kit's colour roles. */
  --surface-dark: #111111;

  /* Accessible copper for SMALL text. #BD9577 on cream is ~2.4:1 and fails AA,
     so display/fills keep --copper while labels use --copper-deep (~4.7-5.9:1). */
  --copper-deep:  #7A5233;
  /* Darker still, for text sitting on the copper-tinted placeholder chips,
     where the tint lifts the background and erodes the ratio. */
  --copper-darkest: #6B4526;
  /* Large display copper that clears the 3:1 large-text bar on beige.
     #BD9577 reads at only 1.86:1 there, so headline copper uses this while
     #BD9577 stays the brand copper for fills, badges, rules and stars. */
  --copper-display: #96683F;

  /* Text */
  --text-strong:  #000000;
  --text-body:    #241A12;
  --text-muted:   #5A4A40;
  --text-on-dark: #F4EDE9;
  --text-on-dark-muted: #B9AAA0;

  /* Lines */
  --line:         rgba(36, 26, 18, 0.14);
  --line-strong:  rgba(36, 26, 18, 0.28);
  --line-on-dark: rgba(244, 237, 233, 0.16);

  /* Spacing base — 8px grid (Brand Kit · 08) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  /* Radius (Brand Kit · 08: 8px buttons & cards, 999px pills;
     the Figma renders cards a touch softer, so cards/images use 12px) */
  --r-btn:   8px;
  --r-card:  12px;
  --r-img:   12px;
  --r-panel: 24px;
  --r-pill:  999px;

  /* Layout */
  --container: 1200px;
  --gutter:    24px;

  /* Type families — real faces when the Google Fonts link resolves,
     otherwise a hierarchy-preserving fallback stack. */
  --font-display: "DM Serif Display", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Helvetica Neue", sans-serif;

  --shadow-card:  0 1px 2px rgba(36, 26, 18, 0.04), 0 8px 24px rgba(36, 26, 18, 0.06);
  --shadow-panel: 0 2px 4px rgba(36, 26, 18, 0.04), 0 18px 48px rgba(36, 26, 18, 0.10);

  /* Approximate banner height, used only to offset in-page anchor scrolling.
     The banner is sticky (not fixed), so it reserves its own space and this
     value never needs to be exact. */
  --banner-h: 36px;
}

@media (max-width: 720px) { :root { --banner-h: 76px; } }
@media (max-width: 380px) { :root { --banner-h: 82px; } }

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--banner-h) + 16px);
  /* `clip` rather than `hidden`: it guards against stray overflow without
     making html a scroll container, which would break the sticky banner. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* Zero the user-agent defaults on every element used for layout here.
   figure/blockquote carry a 40px side margin and ol/ul carry markers and
   padding — all of which fight the grid if left in place. */
h1, h2, h3, h4, p, figure, figcaption, blockquote {
  margin: 0;
}
h1, h2, h3, h4 { color: var(--text-strong); }
/* .steps and .escrow-process are <ol> elements for semantics but supply
   their own visual sequence, so default markers must go. */
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible focus everywhere (Brief · 12) */
:focus-visible {
  outline: 3px solid var(--copper-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--copper); }

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

.skip-link {
  position: fixed; left: var(--gutter); top: 8px;
  z-index: 200; transform: translateY(-200%);
  background: var(--espresso); color: var(--cream);
  padding: 12px 20px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-7); }
.section--tight { padding-block: var(--s-5); }

.bg-beige { background: var(--beige); }
.bg-cream { background: var(--cream); }
.bg-dark  { background: var(--surface-dark); color: var(--text-on-dark); }

/* Two-column feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */
/* Type scale per Brand Kit · 06 Type System */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: var(--s-2);
}
.eyebrow--center { text-align: center; }
.on-dark .eyebrow { color: var(--copper); }

.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
}
.small { font-size: 14px; line-height: 1.4; }

/* Hero display accent — see --copper-display for why this isn't --copper */
.accent { color: var(--copper-display); }

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   5. Prototype banner (Brief · 5) — always visible, never buried in the footer
   -------------------------------------------------------------------------- */
/* The review bar now lives in ../review-bar.css — it is review scaffolding,
   not part of this concept, so it is deliberately not styled here. */

/* --------------------------------------------------------------------------
   6. Buttons (Brand Kit · 08 Buttons & Tokens)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — filled espresso */
.btn--primary {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.btn--primary:hover { background: #000; border-color: #000; }

/* Secondary — outlined */
.btn--secondary {
  background: var(--white);
  color: var(--text-strong);
  border-color: var(--text-strong);
}
.btn--secondary:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

/* Accent — copper.
   The Figma sets a white label here, but white on #BD9577 is only 2.7:1.
   The copper fill is kept exactly as designed and the label goes espresso,
   which reads as the same button and clears AA at ~6.3:1. */
.btn--accent {
  background: var(--copper);
  color: var(--espresso);
  border-color: var(--copper);
}
.btn--accent:hover { background: #A87E60; border-color: #A87E60; }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.btn-row--center { justify-content: center; }

.btn .arrow { font-size: 15px; line-height: 1; }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--beige);
  border-bottom: 1px solid rgba(36, 26, 18, 0.10);
}
.site-header .container {
  display: flex;
  align-items: center;
  /* Tight-but-even rhythm: the header now carries brand + nav + Sign In +
     phone + CTA, so gaps are trimmed to keep it on one row. */
  gap: 20px;
  min-height: 76px;
  /* Safety net: if fallback-font metrics run wide offline, the actions wrap
     to a second row rather than overflowing the page. */
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-size: 17px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-strong); line-height: 1;
}
.brand__tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--copper-deep); line-height: 1;
}

.nav { display: flex; gap: 20px; margin-inline: auto; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--text-body);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--text-strong); border-bottom-color: var(--copper); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--text-strong); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .signin {
  font-size: 15px; font-weight: 600; color: var(--text-strong);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  /* Keep the text link a comfortable tap target alongside the buttons */
  display: inline-flex; align-items: center; min-height: 44px;
}
.header-actions .signin:hover { border-bottom-color: var(--copper); }

/* The nav copy of Sign In is for the collapsed mobile menu only */
.nav-signin { display: none; }
.header-actions .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text-strong);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text-strong);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { background: var(--beige); padding-block: var(--s-6) var(--s-7); }
.hero .split { gap: var(--s-7); }

.pill {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid rgba(189, 149, 119, 0.55);
  color: var(--copper-deep);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.hero .h1 { margin-bottom: var(--s-3); }
.hero .lead { margin-bottom: 0; }

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; }
.trust-row .trust-label {
  font-size: 14px; font-weight: 600; color: var(--text-body);
}

.hero__media {
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  aspect-ratio: 6 / 5;
  background: var(--cream);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   9. Partner / trust strip
   -------------------------------------------------------------------------- */
.partners { background: var(--cream); padding-block: var(--s-7); }
.partners .section-head { text-align: center; }

/* Ornamental divider, matching the supplied comp: rule, copper star, rule.
   Decorative, so it is hidden from the accessibility tree. */
.partners__orn {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: var(--s-2) auto var(--s-3); width: 300px;
}
.partners__orn-rule { flex: 1 1 auto; height: 1px; background: var(--copper); opacity: .7; }
.partners__orn svg { width: 15px; height: 15px; flex: none; fill: var(--copper-deep); }

.partners__lede {
  margin: var(--s-2) auto 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* The card language the Figma already uses for steps and testimonials: white
   surface, 12px radius, soft card shadow. */
.partner-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: var(--s-3) var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

/* The five supplied marks arrived in three incompatible states — two white on
   transparent, two on opaque white, one usable — so they were normalised to a
   single espresso set rather than dropped in as-is. Sizing pairs a height cap
   with a width cap per mark, so a stacked lockup (Lift) and a wide wordmark
   (real) carry equal optical weight instead of equal bounding boxes. */
.plogo {
  display: block; width: auto; height: auto;
  object-fit: contain;
  opacity: var(--plogo-opacity, .84);
  /* one scale factor keeps the per-mark tuning intact at every width */
  --k: 1;
}
.plogo--rise       { max-height: calc(58px * var(--k)); max-width: calc(124px * var(--k)); }
.plogo--real       { max-height: calc(40px * var(--k)); max-width: calc(126px * var(--k)); }
.plogo--lift       { max-height: calc(62px * var(--k)); max-width: calc(138px * var(--k)); }
.plogo--wonderland { max-height: calc(46px * var(--k)); max-width: calc(162px * var(--k)); }
.plogo--socal      { max-height: calc(44px * var(--k)); max-width: calc(134px * var(--k)); }

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-slot { min-height: 124px; }
}
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .partner-slot { min-height: 108px; }
  .plogo { --k: .74; }
  /* five marks in two columns leaves an orphan; centre it across both */
  .partner-slot:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--s-1)); }
}

/* --------------------------------------------------------------------------
   10. How it works — three-step lifecycle
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.step {
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--s-3);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--beige);
  color: var(--espresso);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
/* Step 02 carries the copper "active" accent, matching the Figma */
.step--active .step__num { background: var(--copper); color: var(--espresso); }
.step p { color: var(--text-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   11. Audience sections (notary agents / escrow & title)
   -------------------------------------------------------------------------- */
.escrow-redesign { overflow: hidden; }
.escrow-redesign .container { max-width: 1440px; }
.escrow-redesign__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--s-6);
  align-items: stretch;
}
.escrow-redesign__body { align-self: center; min-width: 0; }
.escrow-redesign__eyebrow { margin: 0; }
.escrow-redesign__eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 12px;
  background: var(--copper);
}
.escrow-redesign__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(44px, 3.7vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.escrow-redesign__title > span { display: block; }
.escrow-redesign__accent { color: var(--copper-display); }
.escrow-redesign__lead {
  max-width: 52ch;
  margin-top: var(--s-3);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}
.escrow-benefits { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.escrow-benefits li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: var(--s-2);
  min-height: 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
}
.escrow-benefits svg { width: 32px; height: 32px; color: var(--copper-deep); }

.escrow-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-1);
  margin-top: var(--s-4);
  padding: 22px 18px 18px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.escrow-process::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(122,82,51,.34);
}
.escrow-process li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 11px;
  min-width: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-body);
}
.escrow-process__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(122,82,51,.32);
  background: rgba(255,255,255,.9);
  color: var(--copper-deep);
}
.escrow-process__icon svg { width: 23px; height: 23px; }
.escrow-process__final .escrow-process__icon { background: var(--copper-deep); border-color: var(--copper-deep); color: var(--white); }
.escrow-process__final { color: var(--text-strong) !important; }

.escrow-redesign__cta { margin-top: var(--s-3); }
.escrow-redesign__cta .btn { width: 100%; }
.escrow-redesign__support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin-top: var(--s-2);
  font-size: 14px;
  color: var(--text-muted);
}
.escrow-redesign__support svg { width: 17px; height: 17px; flex: none; color: var(--copper-deep); }
.escrow-redesign__support a { font-weight: 700; color: var(--espresso); border-bottom: 1px solid rgba(122,82,51,.4); }
.escrow-redesign__support a:hover { border-bottom-color: var(--espresso); }

.escrow-redesign__media {
  align-self: center;
  min-height: 0;
  aspect-ratio: 780 / 800;
  overflow: hidden;
  border-radius: var(--r-img);
  background: var(--beige);
  box-shadow: var(--shadow-panel);
}
.escrow-redesign__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.feature__media {
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  aspect-ratio: 1 / 1;
  background: var(--beige);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { display: grid; gap: 12px; margin-top: var(--s-3); }
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--text-body);
}
.checklist svg { width: 18px; height: 18px; margin-top: 2px; color: var(--copper-deep); }

/* Inline placeholder token, e.g. [CLAIM] / [STAT] / [TIME] */
.ph {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper-darkest);
  background: rgba(189, 149, 119, 0.20);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.on-dark .ph { color: var(--copper); background: rgba(189, 149, 119, 0.20); }

/* Sentence-length placeholder: same "clearly not final" treatment as the
   chips, but at the surrounding text size so it holds the real line length. */
.ph--copy {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
  line-height: inherit;
  padding: 3px 8px;
  margin-right: 0;
  vertical-align: baseline;
  border: 1px dashed rgba(122, 82, 51, 0.5);
}
.on-dark .ph--copy { border-color: rgba(189, 149, 119, 0.5); }

/* --------------------------------------------------------------------------
   11c. FAQ + contact treatment
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--s-5);
  align-items: start;
}
/* The Figma's card language: white surface, 12px radius, soft shadow — the
   same treatment as the step and testimonial cards. Each question is its own
   card rather than a row in a list. */
.faq-list { display: grid; gap: var(--s-2); }
.faq-item {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item__q { margin: 0; }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  min-height: 60px;
  padding: var(--s-3);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-strong);
}
.faq-trigger:hover { color: var(--black); }

/* Copper pill-free plus/minus, matching the card idiom without adding an icon set */
.faq-sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--copper-deep);
  transition: opacity .16s ease;
}
.faq-sign::before { left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; }
.faq-sign::after  { top: 0; bottom: 0; left: 6px; width: 2px; border-radius: 1px; }
.faq-trigger[aria-expanded="true"] .faq-sign::after { opacity: 0; }

.faq-panel {
  padding: 0 var(--s-3) var(--s-3);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.faq-panel[hidden] { display: none; }

.contact-card {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-radius: var(--r-card);
  padding: var(--s-4);
  box-shadow: var(--shadow-panel);
}
.contact-card .eyebrow { color: var(--copper); }
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 10px;
}
.contact-card p { font-size: 14px; color: var(--text-on-dark-muted); }

.phone-big {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  margin: var(--s-3) 0 6px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--copper);
  line-height: 1.1;
}
.phone-big svg { width: 20px; height: 20px; flex: none; }
.phone-big:hover { color: var(--cream); }

.contact-card .btn { margin-top: var(--s-3); width: 100%; }

/* Inline "or call ..." affordance under a button row */
.call-line {
  margin-top: var(--s-2);
  font-size: 14px;
  color: var(--text-muted);
}
.call-line a {
  font-weight: 600;
  color: var(--copper-deep);
  border-bottom: 1px solid rgba(122, 82, 51, 0.4);
}
.call-line a:hover { color: var(--espresso); border-bottom-color: var(--espresso); }

/* Header phone link */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.phone-link svg { width: 15px; height: 15px; flex: none; color: var(--copper-deep); }
.phone-link:hover { border-bottom-color: var(--copper); }

/* Long/short button labels so the header CTA survives narrow desktops */
.btn__short { display: none; }

/* --------------------------------------------------------------------------
   12. Statistics strip
   -------------------------------------------------------------------------- */
.stats { background: var(--surface-dark); color: var(--text-on-dark); }
.stats .container { padding-block: var(--s-6); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  text-align: center;
  padding-inline: var(--s-3);
  border-left: 1px solid var(--line-on-dark);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.1;
  color: var(--copper);
  margin-bottom: 10px;
}
.stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.quote {
  background: var(--white);
  border-radius: var(--r-card);
  padding: var(--s-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.quote__rating { display: flex; align-items: center; gap: 10px; }
.quote__rating .small { color: var(--text-muted); }
.quote__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  min-height: 92px;
}
.quote__body .ph { font-size: 12px; }
.quote__note { color: var(--text-muted); font-size: 14px; margin-top: 6px; display: block; }
.quote__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
/* Neutral portrait placeholder: reads as finished composition, but the dashed
   ring (plus the [NAME]/[ROLE] labels beside it) keeps it obviously not final. */
.avatar-ph {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(122, 82, 51, 0.5);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-deep);
  overflow: hidden;
}
.avatar-ph svg { width: 22px; height: 22px; opacity: 0.75; }
.quote__name { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.quote__role { font-size: 13px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Newsletter panel
   -------------------------------------------------------------------------- */
.newsletter { background: var(--beige); }
.newsletter__panel {
  background: var(--cream);
  border-radius: var(--r-panel);
  padding: var(--s-6);
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s-6);
  align-items: center;
}
.newsletter__lockup { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-3); }
.newsletter__lockup .badge {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.newsletter__lockup .badge img { width: 26px; height: 26px; }
.newsletter__lockup span {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-strong);
}
.newsletter .h2 { margin-bottom: 12px; }
.newsletter__privacy {
  color: var(--copper-deep);
  font-size: 13px;
  font-weight: 600;
  margin-top: var(--s-3);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2) var(--s-3);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}
.field input,
.field select {
  height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-size: 15px;
  color: var(--text-body);
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder { color: #9A8B82; }
.field input:focus,
.field select:focus {
  border-color: var(--copper-deep);
  box-shadow: 0 0 0 3px rgba(189, 149, 119, 0.28);
  outline: none;
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A5233' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea {
  min-height: 88px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-size: 15px;
  color: var(--text-body);
  width: 100%;
  resize: vertical;
  font-family: inherit;
}
.field textarea::placeholder { color: #9A8B82; }
.field textarea:focus {
  border-color: var(--copper-deep);
  box-shadow: 0 0 0 3px rgba(189, 149, 119, 0.28);
  outline: none;
}

/* Form section divider + heading */
.form-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.form-section .optional {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-deep);
  background: rgba(189, 149, 119, 0.20);
  border-radius: var(--r-pill);
  padding: 2px 9px;
}

/* Disclosure toggle: "I already have a signing ready" */
.toggle-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 14px;
  cursor: pointer;
  min-height: 44px;
}
.toggle-row input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin: 1px 0 0;
  accent-color: var(--copper-deep);
  cursor: pointer;
}
.toggle-row .toggle-text { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.toggle-row .toggle-hint {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* The optional signing block, revealed by the toggle */
.signing-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2) var(--s-3);
}
.signing-block[hidden] { display: none; }

.form-grid .btn { grid-column: 1 / -1; margin-top: var(--s-1); }

/* Prototype-only submit acknowledgement */
.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper-deep);
  background: rgba(189, 149, 119, 0.18);
  border: 1px dashed rgba(122, 82, 51, 0.45);
  border-radius: var(--r-btn);
  padding: 10px 14px;
  margin-top: var(--s-1);
}
.form-note[hidden] { display: none; }

/* --------------------------------------------------------------------------
   15. Final CTA
   -------------------------------------------------------------------------- */
.final-cta { background: var(--cream); text-align: center; }
.final-cta .h2 { font-size: clamp(32px, 3.6vw, 46px); max-width: 16ch; margin-inline: auto; }
.final-cta .lead { margin: var(--s-3) auto 0; text-align: center; max-width: 46ch; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--surface-dark); color: var(--text-on-dark); }
.site-footer .container { padding-block: var(--s-6) var(--s-4); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-5);
}
.footer-brand__lockup { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-3); }
/* On dark, the mark sits in a light badge (Brand Kit · 07 Logo Usage) */
.footer-brand__badge {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--r-pill);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.footer-brand__badge img { width: 36px; height: 36px; }
.footer-brand__name {
  font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--cream); line-height: 1.1;
}
.footer-brand__tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--copper); margin-top: 3px;
}
.footer-brand p { color: var(--text-on-dark-muted); font-size: 14px; max-width: 34ch; }

.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream); margin-bottom: var(--s-2);
}
.footer-col li { margin-bottom: 2px; }
/* Footer links are standalone nav controls, so they carry a full tap target */
.footer-col a {
  font-size: 14px; color: var(--text-on-dark-muted);
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer-col a:hover { color: var(--copper); }

.socials { display: flex; gap: 14px; margin-top: var(--s-2); }
.socials a {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted);
  border: 1px solid var(--line-on-dark);
  transition: color .18s ease, border-color .18s ease;
}
.socials a:hover { color: var(--copper); border-color: var(--copper); }
.socials svg { width: 15px; height: 15px; }

.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}
.footer-bottom nav { display: flex; gap: var(--s-4); }
.footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--copper); }

/* --------------------------------------------------------------------------
   17. "Join us" side tab + modal (Figma page 05)
   -------------------------------------------------------------------------- */
.join-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  background: var(--copper);
  color: var(--espresso);
  border: 0;
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
  padding: 20px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: background-color .18s ease;
}
.join-tab:hover { background: #A87E60; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(17, 17, 17, 0.55);
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal__card {
  background: var(--white);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel);
  padding: var(--s-5);
  width: min(560px, 100%);
  margin: auto;
  position: relative;
}
.modal__close {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--text-body);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.modal__close:hover { background: var(--beige); }
.modal .h2 { font-size: 34px; margin-bottom: 12px; }
.modal .lead { margin-bottom: var(--s-4); }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

/* Narrow desktop — the header carries brand + nav + phone + CTA, so the
   CTA drops to its short label before anything is forced to wrap. */
@media (max-width: 1320px) {
  .site-header .btn__long { display: none; }
  .site-header .btn__short { display: inline; }
  .nav { gap: 20px; }
  .header-actions { gap: var(--s-2); }
}

/* Laptop / tablet landscape */
@media (max-width: 1080px) {
  :root { --s-7: 72px; --s-6: 48px; }

  /* Nav collapses to the menu here — not at 900 — because brand + nav +
     Sign In + phone + CTA no longer fit on one row below ~1080. Section
     layout stays two-column down to 900; only the nav moves. */
  .site-header .container { min-height: 68px; gap: var(--s-2); }
  .nav-toggle { display: flex; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding-bottom: var(--s-2);
  }
  .nav[data-open="false"] { display: none; }
  .nav a {
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav a:hover { border-bottom-color: var(--line); }
  .header-actions { order: 2; margin-left: 0; }

  /* Sign In moves into the menu; the inline one hides so nothing duplicates. */
  .nav-signin { display: flex; }
  .header-actions .signin { display: none; }

  .hero .split { gap: var(--s-5); }
  .newsletter__panel { padding: var(--s-5); gap: var(--s-5); }
  .faq-layout { grid-template-columns: 1fr; gap: var(--s-4); }
  .escrow-redesign__layout { gap: var(--s-5); }
  .escrow-redesign__title { font-size: 48px; }
  .escrow-redesign__media { min-height: 640px; aspect-ratio: auto; }
}

/* Tablet */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-5); }
  /* Keep imagery below the copy when stacked, as in the Figma mobile frames */
  .split .feature__media { order: 2; }
  .split .feature__body  { order: 1; }

  .escrow-redesign__layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .escrow-redesign__body { max-width: 720px; }
  .escrow-redesign__media { min-height: 0; aspect-ratio: 780 / 800; }
  .escrow-redesign__media img { object-position: 50% 50%; }

  .hero__media { aspect-ratio: 16 / 11; }
  .feature__media { aspect-ratio: 16 / 11; }

  .steps { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }

  .newsletter__panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .footer-brand { grid-column: 1 / -1; }

}

/* Mobile */
@media (max-width: 640px) {
  :root { --s-7: 56px; --s-6: 40px; --s-5: 36px; --gutter: 20px; }

  .header-actions { gap: 12px; }
  .header-actions .btn { padding: 0 14px; font-size: 12px; }

  .hero { padding-block: var(--s-5) var(--s-6); }

  /* Stacked, full-width CTAs with comfortable tap targets */
  .btn-row .btn { width: 100%; }
  .btn { min-height: 50px; }

  .partner-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .stat { border-left: 0; padding-inline: 0; }
  .stat + .stat { border-top: 1px solid var(--line-on-dark); padding-top: var(--s-4); }

  .newsletter__panel { padding: var(--s-4) var(--s-3); border-radius: var(--r-card); }
  .form-grid { grid-template-columns: 1fr; }
  .signing-block { grid-template-columns: 1fr; }

  .escrow-redesign__title { margin-top: var(--s-3); font-size: 40px; }
  .escrow-redesign__lead { font-size: 16px; }
  .escrow-benefits { margin-top: var(--s-3); }
  .escrow-benefits li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 15px; }
  .escrow-benefits svg { width: 28px; height: 28px; }
  .escrow-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); padding: var(--s-3) var(--s-2); }
  .escrow-process::before { display: none; }
  .escrow-process li { min-height: 76px; }
  .escrow-redesign__media { aspect-ratio: 780 / 800; }

  .phone-big { font-size: 22px; }
  .contact-card { padding: var(--s-3); }

  .quote__body { min-height: 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* The side tab must never sit on top of content on small screens */
  .join-tab { display: none; }

  .modal__card { padding: var(--s-4) var(--s-3); }
  .modal .h2 { font-size: 28px; }
}

@media (max-width: 380px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   19. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */
@media print {
  /* review bar print behaviour lives in ../review-bar.css */
  body { padding-top: 0; }
  .join-tab, .nav-toggle { display: none; }
}
