/* =========================================================================
   OPEN1031 — MARKETING DESIGN LAYER  (_marketing.css)
   Single source of truth for every public marketing page.

   Identity is DERIVED from the brand logo (assets/logo.png):
     - Brand teal  #14B8A6  — the teal arch in the logo
     - Brand navy  #1E3A8A  — the "Open1031" wordmark in the logo
     - Admin/platform chrome  #4f46e5  indigo-600  (app only, never marketing)
     - Dark-slate base  #0f172a / #1e293b / #334155
     - 7 hub color tokens (ID, Sales, Escrow, Purchase, Disbursement, IRS, Reverse)
     - Neela gradient blue → indigo
   ...but this is an EXPANSIVE marketing layer: light/airy surfaces, generous
   whitespace, hero gradients, big type scale, conversion-first. The dark-slate
   in-app chrome is RESERVED for app-preview frames and the compliance band, so
   the marketing site visibly "continues into the product" without feeling like
   a cramped modal.

   BRAND ANCHOR (A4 doctrine):
     - Logo teal  #14B8A6  is the BRAND ACCENT — it appears wherever the logo
       appears, on every surface. It is NOT "the app primary."
     - Logo navy  #1E3A8A  is the wordmark color and headline dark tone.
     - Indigo-600 #4f46e5  is the app admin chrome accent ONLY — it does not
       appear in marketing surfaces.
     - The marketing→app bridge is the shared dark hero/footer band + teal accent;
       when a prospect enters the dark app the brand teal already reads as familiar.

   No build step. No external JS frameworks. Mobile-first; desktop is the
   progressive enhancement. Sticky thumb-zone CTA + tap-driven drawer nav.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand teal — anchored to logo.png teal arch #14B8A6 */
  --brand-teal:    #14B8A6;
  --brand-navy:    #1E3A8A;

  /* Teal scale — derived from brand teal anchor */
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #14B8A6;   /* brand teal — logo arch color */
  --teal-500: #0d9488;
  --teal-600: #0f766e;
  --teal-700: #115e59;
  --teal-800: #134e4a;
  --teal-900: #042f2e;

  /* Primary brand accent — logo teal, not "the app primary" */
  --brand-accent:        var(--brand-teal);
  --brand-accent-strong: var(--teal-500);
  --brand-accent-deep:   var(--teal-700);

  /* Aliases kept so existing markup continues to resolve correctly,
     but the semantic meaning is now "brand accent" not "app primary" */
  --primary:        var(--brand-teal);
  --primary-strong: var(--teal-500);
  --primary-deep:   var(--teal-700);

  /* Slate base — straight from the in-app system */
  --slate-950: #0a1120;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* Marketing surfaces (light/expansive) */
  --bg:          #ffffff;
  --bg-tint:     #f0fdfa;     /* faint brand-teal wash */
  --bg-soft:     #f1f5f9;
  --ink:         #0f172a;     /* primary text on light */
  --ink-soft:    #475569;
  --ink-muted:   #64748b;
  --line:        #e3e9ef;
  --line-strong: #cdd6df;

  /* Elevated card / panel surfaces — token so dark mode can flip them */
  --surface:     #ffffff;     /* default card / nav / drawer surface */
  --surface-2:   #f8fffe;     /* faint tint (zebra rows) */
  --surface-mix: #ffffff;     /* base color blended into hub-tinted chips/tags */
  --nav-bg:      rgba(255,255,255,.82);
  --sticky-bg:   rgba(255,255,255,.9);

  /* Dark band surfaces (reused in-app chrome) */
  --dark-bg:     #0f172a;
  --dark-bg-2:   #1e293b;
  --dark-line:   #334155;
  --dark-ink:    #f1f5f9;
  --dark-ink-soft:#94a3b8;

  /* Neela gradient (matches in-app .neela-avatar) */
  --neela-from: #2563eb;
  --neela-to:   #6366f1;

  /* NeelaMark canon — the spark on its avatar disc (mint light / sapphire dark,
     never on teal, never a letter in a circle) */
  --neela-spark-1: #14b8a6;
  --neela-spark-2: #0f766e;
  --neela-spark-3: #115e59;
  --neela-glow:    #0f766e;
  --neela-eye:     #08312f;
  --neela-moon-a:  #fbbf24;
  --neela-moon-b:  #5eead4;
  --neela-orbit:   rgba(51,65,85,.53);
  --neela-disc-a:  #f0fdfa;
  --neela-disc-b:  #ccfbf1;
  --neela-disc-c:  #99f6e4;
  --neela-disc-ring: rgba(15,118,110,.22);

  /* 7 hub tokens — identical hex to _system.css */
  --hub-id:           #2563eb;
  --hub-sales:        #16a34a;
  --hub-escrow:       #0891b2;
  --hub-purchase:     #9333ea;
  --hub-disbursement: #ea580c;
  --hub-irs:          #0f766e;
  --hub-reverse:      #4338ca;

  /* Semantic */
  --good:    #16a34a;
  --good-bg: #ecfdf5;
  --warn:    #d97706;
  --warn-bg: #fffbeb;
  --bad:     #dc2626;
  --bad-bg:  #fef2f2;

  /* Component tint tokens — light values identical to the hex they replaced,
     so light mode is pixel-unchanged; dark flips live in section 20 */
  --tint-teal:        var(--teal-50);
  --tint-teal-border: var(--teal-200);
  --tint-teal-line:   var(--teal-100);
  --good-border: #bbf7d0;
  --warn-border: #fde68a;
  --bad-border:  #fbd5d5;
  --chip-bg:   rgba(255,255,255,.85);
  --subnav-bg: rgba(255,255,255,.92);

  /* Type — Inter loaded first so marketing and app share the same family (A4) */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* Expansive marketing type scale (fluid) */
  --fs-display: clamp(2.6rem, 7vw, 5rem);
  --fs-h1:      clamp(2.1rem, 5.2vw, 3.6rem);
  --fs-h2:      clamp(1.7rem, 3.6vw, 2.6rem);
  --fs-h3:      clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead:    clamp(1.1rem, 1.7vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-eyebrow: 0.78rem;

  /* Rhythm */
  --maxw:      1180px;
  --maxw-text: 760px;
  --gutter:    clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.06), 0 12px 28px rgba(15,23,42,.08);
  --shadow-lg: 0 18px 40px rgba(15,23,42,.12), 0 40px 80px rgba(15,23,42,.10);
  --shadow-teal: 0 18px 50px -12px rgba(20,184,166,.45);

  /* Mobile sticky CTA geometry */
  --tap: 48px;
  --sticky-h: 70px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Reserve room for the mobile sticky CTA so content never hides under it */
  padding-bottom: calc(var(--sticky-h) + var(--safe-bottom));
}
@media (min-width: 880px) {
  body { padding-bottom: 0; }
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
p  { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 650; }

::selection { background: var(--teal-200); color: var(--teal-900); }

/* -------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }

.center { text-align: center; }
.measure { max-width: var(--maxw-text); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-eyebrow); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--primary-strong);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.eyebrow--center { justify-content: center; }
.section-lead { font-size: var(--fs-lead); color: var(--ink-soft); }

/* -------------------------------------------------------------------------
   4. NAV  (thumb-zone drawer on mobile, inline on desktop)
   ------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
/* Full-bleed inner: brand pinned hard-left, links + actions pushed right */
.nav__inner {
  width: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.25rem;
}

/*
  .brand — nav logo lockup.
  Use the real asset:
    <a class="brand" href="/">
      <img class="brand__logo" src="../assets/logo.png" alt="Open1031" width="120" height="40" />
    </a>
  .brand__mark is kept as a compact fallback for tight spaces (mobile bar,
  collapsed sidebar): crop to the teal arch symbol only — never an initial box.
*/
.brand { display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

/* Full-width logo asset — used in nav, hero, footer light contexts */
.brand__logo {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Compact arch-only mark — for tight spaces (mobile sticky bar, collapsed sidebar).
   Renders the logo.png clipped to just the teal arch region.
   Do NOT place text or a colored box here. */
.brand__mark {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
}
.brand__mark img {
  width: 32px; height: 32px;
  object-fit: cover; object-position: left center;
  clip-path: inset(0 60% 0 0);
}

/* Inverted logo asset for dark chrome (footer, hero dark band) */
.brand__logo--dark {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* ---- Desktop link set (hidden on mobile) ---- */
.nav__links { display: none; }
.nav__links a {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  color: var(--ink-soft); font-weight: 550; font-size: var(--fs-sm);
  padding: .45rem .1rem; border-radius: 8px;
  transition: color .16s ease;
}
.nav__links a svg { width: 16px; height: 16px; opacity: .7; transition: opacity .16s ease; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__links a:hover svg { opacity: 1; }
.nav__links a[aria-current="page"] { color: var(--primary-strong); font-weight: 650; }
.nav__links a[aria-current="page"] svg { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: .1rem; right: .1rem; bottom: -.55rem;
  height: 2px; border-radius: 2px; background: var(--primary-strong);
}
.nav__links a:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 3px; }

/* Right-side actions cluster */
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

/* text "Sign in" link */
.nav__signin { display: none; }
.nav__signin a {
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  padding: .55rem .7rem; border-radius: var(--radius-pill);
}
.nav__signin a:hover { color: var(--ink); text-decoration: none; }
.nav__signin a:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 2px; }

.nav .nav__cta { display: none; }
.drawer__links a[aria-current="page"] { color: var(--primary-strong); }
.drawer__links a[aria-current="page"] svg { color: var(--primary-strong); }

/* hamburger — 48px target, on the RIGHT (thumb-reachable) */
.nav__toggle {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle:hover { border-color: var(--primary); }

/* pure-CSS :target drawer, slides from the right */
.drawer {
  position: fixed; inset: 0; z-index: 70;
  visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s;
}
.drawer:target { visibility: visible; opacity: 1; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  padding: 1rem var(--gutter) calc(1.5rem + var(--safe-bottom));
  overflow-y: auto;
}
.drawer:target .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.drawer__close {
  width: var(--tap); height: var(--tap); display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--ink);
}
.drawer__links { display: flex; flex-direction: column; margin-top: .5rem; }
.drawer__links a {
  min-height: var(--tap); display: flex; align-items: center; gap: .7rem;
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.drawer__links a svg { width: 18px; height: 18px; color: var(--ink-muted); flex-shrink: 0; }
.drawer__links a:hover { text-decoration: none; color: var(--primary-strong); }
.drawer__links a:hover svg { color: var(--primary-strong); }
.drawer__cta { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .65rem; }
.drawer__signin {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); font-size: 1rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface);
}
.drawer__signin svg { width: 18px; height: 18px; flex-shrink: 0; }
.drawer__signin:hover { text-decoration: none; color: var(--ink); border-color: var(--primary); }

@media (min-width: 1180px) {
  .nav__links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
  .nav__actions { margin-left: 0; }
  .nav__signin { display: inline-flex; }
  .nav .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .drawer { display: none; }
}
@media (min-width: 1320px) {
  .nav__links { gap: 1.85rem; }
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: 16px; font-weight: 650; line-height: 1;
  padding: .92rem 1.5rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; box-shadow: var(--shadow-teal);
}
.btn--primary:hover { box-shadow: 0 22px 60px -12px rgba(20,184,166,.6); color: #fff; }

.btn--ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-strong); }

.btn--dark { background: var(--brand-navy); color: #fff; }
.btn--dark:hover { background: #1e3d8f; color: #fff; }

.btn--neela {
  background: linear-gradient(135deg, var(--neela-from), var(--neela-to));
  color: #fff; box-shadow: 0 14px 40px -10px rgba(99,102,241,.55);
}
.btn--neela:hover { color: #fff; }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--on-dark.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
.btn--on-dark.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row--center { justify-content: center; }

/* -------------------------------------------------------------------------
   6. HERO  (expansive, gradient — derived from SplashHero radial pattern)
   The dark band behind the hero headline creates the marketing→app bridge:
   same slate-950 base + brand-teal accent that prospects see in the live app.
   ------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section-y); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(20,184,166,.20) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 18%, rgba(30,58,138,.12) 0%, transparent 52%),
    radial-gradient(ellipse at 60% 92%, rgba(20,184,166,.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-tint), var(--bg));
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 880px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__title { font-size: var(--fs-display); letter-spacing: -.035em; margin-top: 1.1rem; }
.hero__title .accent { color: var(--primary-strong); }
.hero__title .grad {
  background: linear-gradient(115deg, var(--primary-strong), var(--hub-reverse));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: 1.25rem; max-width: 40ch; }
.hero__cta { margin-top: 1.9rem; }
.hero__proof { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }

/* badge pill used inline under hero + everywhere for trust micro-proof */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .42rem .8rem; box-shadow: var(--shadow-sm);
}
.pill svg { width: 15px; height: 15px; color: var(--primary-strong); }
.pill--good { color: var(--good); }
.pill--good svg { color: var(--good); }

/* announcement / category pill at top of hero */
.tagpill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-200);
  border-radius: var(--radius-pill); padding: .4rem .85rem;
}
.tagpill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(20,184,166,.22); }

/* -------------------------------------------------------------------------
   7. PHONE FRAME  (app preview — renders in-app dark chrome at native scale)
   ------------------------------------------------------------------------- */
.phone {
  position: relative; width: 300px; max-width: 86vw; margin-inline: auto;
  aspect-ratio: 300 / 620;
  background: #0b1426; border: 10px solid #0b1426;
  border-radius: 42px; box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(15,23,42,.12);
  overflow: hidden;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #0b1426; border-radius: 0 0 14px 14px; z-index: 5;
}
.phone__screen {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden;
  background: var(--slate-900); color: var(--slate-100);
  display: flex; flex-direction: column;
  font-size: 12px;
}
.phone__bar {
  background: var(--slate-800); border-bottom: 1px solid var(--slate-700);
  padding: 1.5rem .85rem .65rem; display: flex; align-items: center; gap: .5rem;
}
.phone__dot { width: 10px; height: 10px; border-radius: 50%; }
.phone__body { flex: 1; overflow: hidden; padding: .85rem; display: flex; flex-direction: column; gap: .65rem; background: var(--slate-900); }
.phone__label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 700; }

/* deadline chip rendered inside phone (mirrors .hub-deadline) */
.mini-deadline {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--slate-600); border-radius: 8px; padding: .5rem .6rem;
  background: rgba(15,23,42,.6);
}
.mini-deadline.is-safe { border-color: rgba(74,222,128,.5); }
.mini-deadline.is-safe .md-text { color: #4ade80; }
.mini-deadline.is-warning { border-color: rgba(251,191,36,.5); }
.mini-deadline.is-warning .md-text { color: #fbbf24; }
.md-text { font-size: 12px; font-weight: 700; }
.md-meta { font-size: 10px; color: var(--slate-400); margin-left: auto; }

.mini-row { display:flex; flex-direction:column; gap:.15rem; padding:.55rem .6rem; background: var(--slate-800); border:1px solid var(--slate-700); border-radius:8px; }
.mini-row .k { font-size: 9px; text-transform: uppercase; letter-spacing:.06em; color: var(--slate-500); font-weight:700; }
.mini-row .v { font-size: 13px; font-weight: 700; color: var(--slate-100); }

/* bottom-sheet Neela pinned to the phone bottom edge (the in-app pattern) */
.neela-sheet {
  margin-top: auto; background: linear-gradient(180deg, var(--slate-800), #16213a);
  border-top: 1px solid var(--slate-700); border-radius: 14px 14px 0 0;
  padding: .6rem .7rem .7rem;
}
.neela-sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--slate-600); margin: 0 auto .55rem; }
.neela-sheet__msg { display: flex; gap: .5rem; align-items: flex-start; }
.neela-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 50% 36%, var(--neela-disc-a) 0%, var(--neela-disc-b) 55%, var(--neela-disc-c) 100%);
  box-shadow: inset 0 0 0 1px var(--neela-disc-ring), 0 1px 4px rgba(15,23,42,.14);
  display: grid; place-items: center;
}
.neela-av svg { width: 74%; height: 74%; }
.neela-sheet__bubble { background: var(--slate-900); border: 1px solid var(--slate-700); border-radius: 10px; padding: .45rem .55rem; font-size: 11.5px; color: var(--slate-200); line-height: 1.45; }

/* -------------------------------------------------------------------------
   8. CARDS
   ------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--primary-strong); margin-bottom: 1rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: var(--fs-sm); }

/* numbered pillar card */
.pillar { position: relative; }
.pillar__num {
  font-size: .8rem; font-weight: 800; color: var(--primary-strong);
  letter-spacing: .1em;
}
.pillar h3 { margin: .35rem 0 .5rem; }

/* stat */
.stat { text-align: center; }
.stat__num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--primary-strong), var(--hub-reverse)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-muted); margin-top: .25rem; }

/* -------------------------------------------------------------------------
   9. EXCHANGE-TYPE CARDS  (hub-colored accents) + accordion explorer
   ------------------------------------------------------------------------- */
.xcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; overflow: hidden;
  --hub: var(--primary-strong);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--hub); }
.xcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--hub) 40%, var(--line)); }
.xcard__tag {
  display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--hub); background: color-mix(in srgb, var(--hub) 10%, var(--surface-mix));
  border: 1px solid color-mix(in srgb, var(--hub) 28%, var(--surface-mix));
  border-radius: var(--radius-pill); padding: .25rem .65rem;
}
.xcard h3 { margin: .85rem 0 .4rem; }
.xcard__cite { font-size: var(--fs-xs); color: var(--ink-muted); font-family: var(--font-mono); margin-top: .65rem; }
.xcard__cite a { color: var(--primary-strong); }

/* hub color mapping — static lookup, no dynamic interpolation */
.hub-forward      { --hub: var(--hub-sales); }
.hub-reverse      { --hub: var(--hub-reverse); }
.hub-improvement  { --hub: var(--hub-purchase); }
.hub-simultaneous { --hub: var(--hub-escrow); }
.hub-dst          { --hub: var(--hub-irs); }
.hub-id-c         { --hub: var(--hub-id); }
.hub-disburse     { --hub: var(--hub-disbursement); }

/* accordion explorer (native <details>, works on file://, no JS) */
.xpand { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.xpand + .xpand { margin-top: .85rem; }
.xpand > summary {
  list-style: none; cursor: pointer;
  min-height: 64px; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .9rem;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  --hub: var(--primary-strong);
}
.xpand > summary::-webkit-details-marker { display: none; }
.xpand > summary .x-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--hub); flex-shrink: 0; }
.xpand > summary .x-chev { margin-left: auto; transition: transform .22s ease; color: var(--ink-muted); }
.xpand[open] > summary .x-chev { transform: rotate(180deg); }
.xpand[open] > summary { border-bottom: 1px solid var(--line); }
.xpand__body { padding: 1.25rem; display: grid; gap: 1rem; }
.xpand__body .vs { display: grid; gap: .75rem; }
@media (min-width: 760px) { .xpand__body .vs { grid-template-columns: 1fr 1fr; } }
.vs__side { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.vs__side h4 { font-size: var(--fs-sm); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.vs__side p { font-size: var(--fs-sm); }
.vs__side--them { background: var(--bad-bg); border-color: var(--bad-border); }
.vs__side--them h4 { color: #b91c1c; }
.vs__side--us { background: var(--good-bg); border-color: var(--good-border); }
.vs__side--us h4 { color: #15803d; }

/* exchange-type chip strip (mobile horizontal scroll) */
.chips { display: flex; gap: .55rem; overflow-x: auto; padding: .25rem .1rem .75rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; --hub: var(--primary-strong);
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .95rem; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--hub) 30%, var(--line));
  background: color-mix(in srgb, var(--hub) 8%, var(--surface-mix));
  color: var(--hub); font-weight: 650; font-size: var(--fs-sm); white-space: nowrap;
}
.chip:hover { text-decoration: none; background: color-mix(in srgb, var(--hub) 14%, var(--surface-mix)); }
.chip .x-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hub); }

/* -------------------------------------------------------------------------
   10. COMPARISON TABLE  (desktop table -> stacked cards on mobile)
   ------------------------------------------------------------------------- */
.compare { display: grid; gap: .85rem; }            /* mobile = stacked cards */
.compare__head { display: none; }                   /* hidden on mobile */
.compare__row {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.compare__axis { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); margin-bottom: .7rem; }
.compare__cell { display: flex; align-items: flex-start; gap: .55rem; font-size: var(--fs-sm); padding: .3rem 0; }
.compare__cell + .compare__cell { border-top: 1px dashed var(--line); }
.compare__who { font-weight: 700; min-width: 92px; flex-shrink: 0; }
.compare__cell--us .compare__who { color: var(--primary-strong); }
.compare__cell--them .compare__who { color: var(--ink-muted); }
.tick { flex-shrink: 0; width: 18px; height: 18px; color: var(--good); margin-top: 1px; }
.cross { flex-shrink: 0; width: 18px; height: 18px; color: var(--bad); margin-top: 1px; }

@media (min-width: 880px) {
  .compare {
    display: table; width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .compare__head { display: table-row; }
  .compare__head > div {
    display: table-cell; padding: 1.1rem 1.25rem; font-weight: 700; font-size: var(--fs-sm);
    background: var(--bg-soft); border-bottom: 1px solid var(--line); text-align: left;
  }
  .compare__head > div.is-us { background: var(--teal-50); color: var(--teal-700); }
  .compare__row { display: table-row; background: var(--surface); border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .compare__row > * { display: table-cell; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  .compare__row:nth-child(even) > * { background: var(--surface-2); }
  .compare__axis { margin: 0; }
  .compare__cell { padding: 0; border: 0; }
  .compare__who { display: none; }
  .compare__cell--us { background: rgba(20,184,166,.05); }
}

/* -------------------------------------------------------------------------
   11. TIMELINE  (vertical scroll story; the 7-hub lifecycle)
   ------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2.25rem; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(180deg, var(--hub-id), var(--hub-sales), var(--hub-escrow), var(--hub-purchase), var(--hub-disbursement), var(--hub-irs));
  border-radius: 2px;
}
.tstep { position: relative; padding-bottom: 2.25rem; }
.tstep:last-child { padding-bottom: 0; }
.tstep__node {
  position: absolute; left: -2.25rem; top: .1rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--hub, var(--primary)); display: grid; place-items: center;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hub, var(--primary)) 14%, var(--surface-mix));
}
.tstep__node b { font-size: .65rem; font-weight: 800; color: var(--hub, var(--primary-strong)); }
.tstep__tag { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--hub, var(--primary-strong)); }
.tstep h3 { margin: .25rem 0 .4rem; font-size: 1.2rem; }
.tstep p { font-size: var(--fs-sm); }
.tstep__watch {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem;
  font-size: var(--fs-xs); font-weight: 700; color: var(--good);
  background: var(--good-bg); border: 1px solid var(--good-border); border-radius: var(--radius-pill); padding: .3rem .7rem;
}
.tstep--id { --hub: var(--hub-id); }
.tstep--sales { --hub: var(--hub-sales); }
.tstep--escrow { --hub: var(--hub-escrow); }
.tstep--purchase { --hub: var(--hub-purchase); }
.tstep--disburse { --hub: var(--hub-disbursement); }
.tstep--irs { --hub: var(--hub-irs); }
.tstep--reverse { --hub: var(--hub-reverse); }

/* -------------------------------------------------------------------------
   12. TRUST / SAFETY band + control cards
   Dark band = marketing→app bridge: same slate-950 + brand-teal accent.
   Prospects see this surface before entering the dark app, so brand teal
   carries across the seam without a jarring palette switch.
   ------------------------------------------------------------------------- */
.band-dark {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(20,184,166,.15) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(30,58,138,.16) 0%, transparent 55%),
    var(--dark-bg);
  color: var(--dark-ink);
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--dark-ink); }
.band-dark p { color: var(--dark-ink-soft); }
.band-dark .eyebrow { color: var(--teal-300); }
.band-dark .section-lead { color: var(--dark-ink-soft); }

.safebox {
  background: var(--dark-bg-2); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
}
.safebox h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.safebox h3 svg { width: 22px; height: 22px; color: var(--teal-300); }
.safebox p { font-size: var(--fs-sm); }

/* regime / control card */
.regime {
  background: var(--dark-bg-2); border: 1px solid var(--dark-line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.regime__name { font-weight: 700; color: var(--dark-ink); display: flex; align-items: center; gap: .5rem; }
.regime__name .status { margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .18rem .5rem; border-radius: var(--radius-pill); }
.status--live { background: rgba(22,163,74,.18); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.status--progress { background: rgba(217,119,6,.16); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.regime__desc { font-size: var(--fs-sm); color: var(--dark-ink-soft); margin-top: .45rem; }

/* badge row */
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-xs); font-weight: 650; color: var(--dark-ink);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill); padding: .45rem .85rem;
}
.badge svg { width: 15px; height: 15px; color: var(--teal-300); }
.badge--light { color: var(--ink-soft); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.badge--light svg { color: var(--primary-strong); }

/* -------------------------------------------------------------------------
   13. PRICING
   ------------------------------------------------------------------------- */
.price-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price--featured { border-color: var(--primary); box-shadow: var(--shadow-teal); position: relative; }
.price--featured::after {
  content: "Most chosen"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; padding: .3rem .8rem; border-radius: var(--radius-pill);
}
.price__name { font-weight: 700; font-size: 1.1rem; }
.price__fee { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin: .5rem 0 .15rem; color: var(--ink); }
.price__fee small { font-size: 1rem; font-weight: 600; color: var(--ink-muted); }
.price__note { font-size: var(--fs-xs); color: var(--ink-muted); }
.price__list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.price__list li { display: flex; gap: .55rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.price__list svg { width: 17px; height: 17px; color: var(--good); flex-shrink: 0; margin-top: 2px; }
.price .btn { margin-top: auto; }

/* -------------------------------------------------------------------------
   14. CTA SECTION
   Dark band — this is the footer CTA bridge into the app experience.
   Brand teal accent is explicit here to tie the marketing page to the product.
   ------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(20,184,166,.28) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(30,58,138,.25) 0%, transparent 60%),
    linear-gradient(135deg, var(--teal-700), var(--slate-900));
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; margin-top: .75rem; }
.cta-band .cta-row { margin-top: 1.75rem; }

/* -------------------------------------------------------------------------
   15. CALLOUTS / DISCLAIMERS
   ------------------------------------------------------------------------- */
.callout {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--teal-50); border: 1px solid var(--teal-200); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; font-size: var(--fs-sm); color: var(--ink-soft);
}
.callout svg { width: 20px; height: 20px; color: var(--primary-strong); flex-shrink: 0; margin-top: 1px; }
.callout strong { color: var(--ink); }
.callout--reverse { background: #eef0fc; border-color: #c7caf2; border-left-color: var(--hub-reverse); }
.callout--reverse svg { color: var(--hub-reverse); }

.disclaimer {
  font-size: var(--fs-xs); color: var(--ink-muted); line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem;
}
.disclaimer code { font-family: var(--font-mono); font-size: .92em; color: var(--ink-soft); }

/* synthetic-data marker */
.synthetic {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius-pill); padding: .15rem .55rem;
}

/* -------------------------------------------------------------------------
   16. FOOTER
   Dark band — slate-950 to match app chrome. Brand teal carried via logo
   asset (logo_white.png) in the footer brand lockup so the handoff feels
   continuous: dark marketing footer → dark app shell → same brand teal arch.
   ------------------------------------------------------------------------- */
.footer { background: var(--slate-900); color: var(--dark-ink-soft); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.footer a { color: var(--dark-ink-soft); }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__top { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand { color: #fff; }
.footer__col h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: .85rem; letter-spacing: 0; }
.footer__col a { display: block; font-size: var(--fs-sm); padding: .28rem 0; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs);
}

/* -------------------------------------------------------------------------
   17. STICKY MOBILE CTA  (thumb zone) — hidden >= 880px
   ------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem var(--gutter) calc(.65rem + var(--safe-bottom));
  background: var(--sticky-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15,23,42,.08);
}
.sticky-cta__copy { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__copy b { font-size: var(--fs-sm); color: var(--ink); }
.sticky-cta__copy span { font-size: var(--fs-xs); color: var(--ink-muted); }
.sticky-cta .btn { margin-left: auto; min-height: var(--tap); }
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* -------------------------------------------------------------------------
   18. UTILITIES
   ------------------------------------------------------------------------- */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.muted{color:var(--ink-muted)}
.text-sm{font-size:var(--fs-sm)}.text-xs{font-size:var(--fs-xs)}
.hide-mobile{display:none}
@media (min-width:880px){ .hide-mobile{display:revert} .hide-desktop{display:none} }
.fade-up{opacity:0;transform:translateY(14px);animation:fadeUp .6s ease forwards}
@keyframes fadeUp{to{opacity:1;transform:none}}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------------
   19. THEME TOGGLE  (light is marketing default; dark via .dark on <html>)
   The toggle lives in the nav between the links and the primary CTA.
   Logo swaps logo.png <-> logo_white.png; JS persists the choice.
   ------------------------------------------------------------------------- */
.theme-toggle {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--primary); }
.theme-toggle svg { width: 20px; height: 20px; }
/* show sun in dark mode, moon in light mode */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root.dark .theme-toggle .icon-sun { display: block; }
:root.dark .theme-toggle .icon-moon { display: none; }

/* desktop nav row: toggle inline; on mobile it sits next to the hamburger */
@media (min-width: 880px) { .theme-toggle { width: 40px; height: 40px; } }

/* logo asset swap — show light logo in light mode, white logo in dark mode.
   Pages mark the white asset with .brand__logo--swap-dark. */
.brand__logo--swap-dark { display: none; }
:root.dark .brand .brand__logo:not(.brand__logo--swap-dark) { display: none; }
:root.dark .brand .brand__logo--swap-dark { display: block; }

/* =========================================================================
   20. DARK THEME  (.dark on <html>)  — full surface flip
   Marketing default is LIGHT; this activates only when the user opts in.
   Dark band sections (footer, .band-dark, .cta-band, .phone) are ALREADY
   dark by design and intentionally keep their look in both modes.
   ========================================================================= */
:root.dark {
  --bg:          #0b1220;
  --bg-tint:     #0e1a24;
  --bg-soft:     #111c2b;
  --ink:         #e9eef5;
  --ink-soft:    #b3c0d1;
  --ink-muted:   #8a9bb1;
  --line:        #21303f;
  --line-strong: #314152;

  --surface:     #111c2b;
  --surface-2:   #16243456;
  --surface-mix: #16243a;
  --nav-bg:      rgba(11,18,32,.82);
  --sticky-bg:   rgba(11,18,32,.92);

  /* keep teal readable on dark surfaces */
  --primary-strong: var(--teal-300);
  --primary-deep:   var(--teal-300);

  /* semantic status colors brighten so status text/icons clear AA on dark */
  --good: #4ade80;
  --warn: #fbbf24;
  --bad:  #f87171;
  --good-bg: rgba(22,163,74,.16);
  --warn-bg: rgba(217,119,6,.16);
  --bad-bg:  rgba(220,38,38,.16);

  /* component tint tokens */
  --tint-teal:        rgba(20,184,166,.12);
  --tint-teal-border: rgba(20,184,166,.3);
  --tint-teal-line:   rgba(20,184,166,.22);
  --good-border: rgba(74,222,128,.35);
  --warn-border: rgba(251,191,36,.35);
  --bad-border:  rgba(248,113,113,.35);
  --chip-bg:   rgba(17,28,43,.85);
  --subnav-bg: rgba(11,18,32,.92);

  /* NeelaMark disc flips to sapphire; spark brightens for dark surfaces */
  --neela-spark-1: #7ff0e0;
  --neela-spark-2: #2dd4bf;
  --neela-spark-3: #6366f1;
  --neela-glow:    #2dd4bf;
  --neela-orbit:   rgba(148,163,184,.35);
  --neela-disc-a:  #15294a;
  --neela-disc-b:  #102040;
  --neela-disc-c:  #0b1424;
  --neela-disc-ring: rgba(255,255,255,.12);

  /* hub wayfinding colors brighten one step so hub-colored text, tags,
     dots, and borders clear AA on dark surfaces */
  --hub-id:           #60a5fa;
  --hub-sales:        #4ade80;
  --hub-escrow:       #22d3ee;
  --hub-purchase:     #c084fc;
  --hub-disbursement: #fb923c;
  --hub-irs:          #2dd4bf;
  --hub-reverse:      #818cf8;

  color-scheme: dark;
}

/* in dark mode the body itself becomes the dark surface */
:root.dark body { background: var(--bg); color: var(--ink); }

/* selection contrast on dark */
:root.dark ::selection { background: var(--teal-700); color: var(--teal-50); }

/* ghost button on dark surfaces */
:root.dark .btn--ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-strong);
}
:root.dark .btn--ghost:hover { border-color: var(--primary); color: var(--teal-300); }

/* primary CTA keeps the light-mode brand gradient — the flipped
   --primary-strong (teal-300) would wash white label text out */
:root.dark .btn--primary { background: linear-gradient(135deg, var(--brand-teal), var(--teal-500)); }
:root.dark .price--featured::after { background: linear-gradient(135deg, var(--brand-teal), var(--teal-500)); }

/* hero radial wash dims so dark text/cards stay legible */
:root.dark .hero::before {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(20,184,166,.16) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 18%, rgba(99,102,241,.14) 0%, transparent 52%),
    radial-gradient(ellipse at 60% 92%, rgba(20,184,166,.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-tint), var(--bg));
}

/* tinted section backgrounds */
:root.dark .section--soft { background: var(--bg-soft); }
:root.dark .section--tint { background: var(--bg-tint); }

/* tagpill / callout / teal-50 surfaces on dark */
:root.dark .tagpill { background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.3); color: var(--teal-300); }
:root.dark .callout { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.28); color: var(--ink-soft); }
:root.dark .callout--reverse { background: rgba(67,56,202,.16); border-color: rgba(99,102,241,.35); }
:root.dark .card__icon { background: rgba(20,184,166,.14); color: var(--teal-300); }

/* comparison table header tints */
:root.dark .compare__head > div { background: var(--surface-mix); }
:root.dark .compare__head > div.is-us { background: rgba(20,184,166,.14); color: var(--teal-300); }
:root.dark .compare__cell--us { background: rgba(20,184,166,.09); }

/* vs sides keep their semantic meaning, dimmed for dark */
:root.dark .vs__side--them { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.3); }
:root.dark .vs__side--them h4 { color: #fca5a5; }
:root.dark .vs__side--us { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.3); }
:root.dark .vs__side--us h4 { color: #86efac; }

/* tstep watch chip */
:root.dark .tstep__watch { background: rgba(22,163,74,.14); border-color: rgba(22,163,74,.3); color: #86efac; }

/* price featured ring stays teal */
:root.dark .price--featured { border-color: var(--primary); }

/* synthetic marker */
:root.dark .synthetic { background: rgba(217,119,6,.16); border-color: rgba(217,119,6,.4); color: #fbbf24; }
