/* Recoura landing — executes the app's dark/sage system; adds JetBrains Mono
   for ledger/data accents (already the brand's transaction-ID face). */

:root {
  --bg: #0b0c0e;
  --bg-1: #121417;        /* cards */
  --bg-2: #191c20;        /* elevated */
  --bg-3: #21252a;        /* highest */
  --text: #e7e8ea;
  --text-2: #a4a8ad;
  --text-3: #71767c;
  --border: #24282d;
  --border-2: #2e3339;
  --primary: #66cc86;     /* data green */
  --sage: #78a487;        /* brand chrome */
  --recovered: #6dc088;
  --pending: #d6a659;
  --atrisk: #e18a75;
  --cream: #ecebe6;

  --r: 14px;
  --r-sm: 9px;
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* Hidden inline-SVG symbol definitions (was an inline style; moved here for CSP). */
.svg-defs { position: absolute; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #08120c; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; }
.skip:focus { left: 16px; top: 16px; }

.mono-label {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.94rem; font-weight: 600; padding: 11px 19px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color .14s, border-color .14s, transform .14s, color .14s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #08120c; }
.btn-primary:hover { background: #7ad79a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-1); border-color: #3a4046; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: default; }

/* waitlist form — shared by the hero and the closing CTA */
.wl { position: relative; }
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-input { flex: 1 1 250px; min-width: 0; font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 13px 16px; transition: border-color .14s, box-shadow .14s; }
.wl-input::placeholder { color: var(--text-3); }
.wl-input:focus-visible { outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent); }
.wl-input:user-invalid { border-color: var(--atrisk); }
.wl-btn { flex: none; }
/* Label is present for screen readers; the placeholder carries it visually. */
.wl-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Honeypot. Positioned off-screen rather than display:none — bots skip fields
   that are display:none, which is exactly the wrong outcome. */
.wl-hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.wl-status { margin-top: 12px; font-size: 0.88rem; color: var(--text-3); min-height: 1.25em; }
.wl-status.ok { color: var(--recovered); }
.wl-status.err { color: var(--atrisk); }
/* On success the field and button go; the confirmation takes their place. */
.wl.wl-done .wl-row { display: none; }
.wl.wl-done .wl-status { margin-top: 0; font-size: 1.02rem; font-weight: 600; }

/* header */
.hdr { position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 36px; width: auto; aspect-ratio: 473 / 140; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-size: 0.93rem; font-weight: 500; color: var(--text-2); transition: color .14s; }
.nav > a:hover { color: var(--text); }
/* The nav CTA is a real button now, so it keeps .btn-primary's own colours —
   the generic .nav > a colour rule above must not repaint it. */
.nav .nav-cta { padding: 9px 22px; font-size: 0.88rem; color: var(--text); }
.nav .nav-demo { color: color-mix(in srgb, var(--sage) 82%, #fff); border-color: color-mix(in srgb, var(--sage) 65%, transparent); background: color-mix(in srgb, var(--sage) 15%, transparent); }
.nav .nav-demo:hover { color: color-mix(in srgb, var(--sage) 82%, #fff); background: color-mix(in srgb, var(--sage) 24%, transparent); border-color: color-mix(in srgb, var(--sage) 85%, transparent); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 1px solid var(--border-2); border-radius: var(--r-sm); cursor: pointer; }
.burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .18s, opacity .18s; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 76px; }
.hero::before { content: ""; position: absolute; top: -260px; right: -160px; width: 680px; height: 680px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sage) 22%, transparent), transparent 62%);
  pointer-events: none; z-index: 0; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); font-weight: 800; }
.hero h1 .hl { color: var(--sage); }
.lede { margin-top: 22px; font-size: 1.15rem; color: var(--text-2); max-width: 40ch; }
.hero .wl { margin-top: 34px; max-width: 30rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-actions { margin: 4px 0 22px; }
.hero-note { margin-top: 18px; font-size: 0.78rem; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.02em; }
.eyebrow { display: inline-block; margin-bottom: 18px; }

/* hero panel */
.panel { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--r);
  position: relative;
  box-shadow: 0 0 36px -10px rgba(120,164,135,.20); /* soft sage glow around the card */ }
.panel-body { position: relative; padding: 20px; }
.panel-toast { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 6px 9px; background: var(--bg-3); border: 1px solid color-mix(in srgb, var(--recovered) 45%, var(--border-2));
  border-radius: 9px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.65), 0 0 18px -8px color-mix(in srgb, var(--recovered) 45%, transparent);
  font-size: 0.7rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(14px) scale(.96);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .9, .3, 1.1); }
.panel-toast svg { width: 13px; height: 13px; color: var(--recovered); flex: none; }
.panel-toast span { color: var(--text-2); }
.panel-toast strong { color: var(--recovered); font-weight: 700; }
.panel-toast.show { opacity: 1; transform: translateX(0) scale(1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head .t { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.panel-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.panel-tot > div { display: flex; flex-direction: column; gap: 3px; }
.panel-tot .n { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.panel-tot small { font-size: 0.68rem; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.04em; }
.n.risk { color: var(--atrisk); } .n.pend { color: var(--pending); } .n.rec { color: var(--recovered); }
.panel-rows { list-style: none; margin: 0; padding: 0; }
.panel-rows li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.panel-rows li:last-child { border-bottom: none; padding-bottom: 2px; }
.rn { display: flex; flex-direction: column; min-width: 0; flex: 2; }
.rn strong { font-size: 0.9rem; font-weight: 600; }
.rn span { font-size: 0.73rem; color: var(--text-3); }
.ra { flex: 1; min-width: 60px; text-align: right; font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.rst { flex: none; width: 116px; display: flex; align-items: center; gap: 8px; }
.rst .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.rst-t { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; min-width: 0; }
.rst-t strong { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.rst-t span { font-size: 0.68rem; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.01em; }
.dot-g { background: var(--recovered); }
.dot-r { background: var(--atrisk); }
.dot-y { background: var(--pending); }
.dot-m { background: var(--text-3); }

/* strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-1); }
.logos-strip { padding: 20px 24px; display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.logos-label { flex: none; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.logos-set { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.logos-set img { width: auto; display: block; opacity: .6; filter: brightness(0) invert(1); transition: opacity .16s; }
/* per-logo optical sizing: wide wordmarks and compact/square marks need
   different heights to read as the same visual size. Tune these to taste. */
.logos-set img[alt="Stripe"] { height: 23px; }
.logos-set img[alt="Square"] { height: 22px; }
.logos-set img[alt="Slack"] { height: 20px; }
.logos-set img[alt="Microsoft Teams"] { height: 24px; }
.logos-set img[alt="Claude"] { height: 20px; }
.logos-set li:hover img { opacity: 1; }

/* generic section */
.sec { padding: 88px 0; }
/* Clears the 72px sticky header when an in-page nav link jumps to a section. */
.sec, .cta-sec { scroll-margin-top: 88px; }
.sec-alt { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.sec-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); font-weight: 800; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head p { margin-top: 16px; color: var(--text-2); font-size: 1.05rem; }

/* the gap — three columns */
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gap-col { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 26px 24px; }
.gap-col .tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }
.gap-col.soft .tag { color: var(--recovered); }
.gap-col.hard .tag { color: var(--pending); }
.gap-col.human .tag { color: var(--sage); }
.gap-col h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.gap-col p { color: var(--text-2); font-size: 0.94rem; }

/* how — steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 6px; display: flex; flex-direction: column; }
.step-n { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--sage); letter-spacing: 0.1em; margin-bottom: 16px; display: block; }
.step-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font-size: 0.72rem; font-family: var(--mono); font-weight: 600; margin-bottom: 12px; }
.step-badge.free { color: var(--recovered); }
.step-badge.paid { color: var(--pending); }
.step h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.94rem; margin-bottom: 20px; }
/* margin-top: auto pushes the divider to the bottom of the (equal-height) column so
   all three line up regardless of how many lines each step's copy runs. */
.step-line { height: 1px; background: var(--border-2); margin: auto 0 0; }
.shot { margin: 52px 0 0; border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; background: var(--bg-1);
  box-shadow: 0 30px 80px -34px rgba(0,0,0,.75), 0 0 60px -22px color-mix(in srgb, var(--sage) 26%, transparent); }
.shot img { display: block; width: 100%; height: auto; }

/* two ways to recover — split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--r); padding: 32px 30px; position: relative; overflow: hidden; }
.sec-alt .mode { background: var(--bg); }
.mode-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mode-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--sage); background: color-mix(in srgb, var(--sage) 14%, transparent); flex: none; }
.mode-ic svg { width: 21px; height: 21px; }
.mode h3 { font-size: 1.25rem; font-weight: 700; }
.mode .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 2px; }
.mode > p { color: var(--text-2); font-size: 0.96rem; margin-bottom: 18px; }
.mode ul { list-style: none; margin: 0; padding: 0; }
.mode ul li { display: flex; gap: 11px; padding: 8px 0; font-size: 0.92rem; color: var(--text); }
.mode ul li svg { width: 17px; height: 17px; color: var(--sage); flex: none; margin-top: 3px; }

/* recovery guard — signature */
.guard { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.guard-copy .eyebrow { margin-bottom: 16px; }
.guard-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }
.guard-copy > p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 22px; }
.guard-copy ul { list-style: none; margin: 0; padding: 0; }
.guard-copy ul li { display: flex; gap: 12px; padding: 9px 0; font-size: 0.96rem; }
.guard-copy ul li svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 3px; }
.guard-copy ul li strong { font-weight: 600; }

/* guard diagram */
.guard-viz { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--r); padding: 26px; box-shadow: 0 20px 60px -24px rgba(0,0,0,.6); }
.gv-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.gv-flow { display: flex; flex-direction: column; gap: 0; }
.gv-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.gv-node .gv-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.gv-node .gv-ic svg { width: 17px; height: 17px; }
.gv-node .gv-txt strong { display: block; font-size: 0.9rem; font-weight: 600; }
.gv-node .gv-txt span { font-size: 0.76rem; color: var(--text-3); font-family: var(--mono); }
.gv-node.check { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.gv-node.check .gv-ic { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.gv-node.gate .gv-ic { background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); }
.gv-node.stop .gv-ic { background: color-mix(in srgb, var(--recovered) 16%, transparent); color: var(--recovered); }
.gv-node.send .gv-ic { background: color-mix(in srgb, var(--pending) 16%, transparent); color: var(--pending); }
.gv-arrow { display: flex; justify-content: center; padding: 5px 0; color: var(--text-3); }
.gv-arrow svg { width: 16px; height: 16px; }
.gv-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px; transition: transform .16s, border-color .16s; }
.sec-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sage) 40%, var(--border)); }
.card-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px; color: var(--sage); background: color-mix(in srgb, var(--sage) 14%, transparent); }
.card-ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.93rem; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.price { background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--r); padding: 34px 32px; display: flex; flex-direction: column; }
.price.feat { border-color: color-mix(in srgb, var(--sage) 55%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--sage) 7%, var(--bg-1)), var(--bg-1)); position: relative; }
.price .badge { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); background: color-mix(in srgb, var(--sage) 15%, transparent); padding: 4px 9px; border-radius: 999px; }
.price .pn { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .amt small { font-size: 0.95rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.amt-was { margin-right: 14px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 2px; }
.price .pdesc { color: var(--text-2); font-size: 0.94rem; margin: 12px 0 22px; }
.price ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.price ul li { display: flex; gap: 11px; padding: 8px 0; font-size: 0.93rem; color: var(--text); }
.price ul li svg { width: 17px; height: 17px; color: var(--sage); flex: none; margin-top: 3px; }
.price ul li.muted { color: var(--text-3); }
.price ul li.muted svg { color: var(--text-3); }
.price .btn { width: 100%; }
.price-note { max-width: 860px; margin: 22px auto 0; text-align: center; font-size: 0.88rem; color: var(--text-3); }

/* faq */
#faq { padding: 72px 0; }
#faq .sec-head { margin-bottom: 44px; }
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .16s; }
.sec-alt .faq-item { background: var(--bg); }
.faq-item[open] { border-color: color-mix(in srgb, var(--sage) 40%, var(--border)); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.15rem; color: var(--sage); flex: none; transition: transform .16s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--text); background: color-mix(in srgb, var(--sage) 4%, transparent); }
.faq-item p { padding: 0 22px 20px; color: var(--text-2); font-size: 0.95rem; }

/* final cta */
.cta-sec { padding: 100px 0; }
.cta { position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--border-2); border-radius: 22px; padding: 48px 32px; max-width: 720px; margin: 0 auto; }
.cta::before { content: ""; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%); width: 620px; height: 400px; background: radial-gradient(circle, color-mix(in srgb, var(--sage) 16%, transparent), transparent 65%); pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; max-width: 22ch; margin: 0 auto; }
.cta p { position: relative; margin: 16px auto 30px; color: var(--text-2); font-size: 1.08rem; max-width: 52ch; }
.launch-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--text-2); }
.launch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--recovered); }
.js .launch-dot { animation: livePulse 2.6s ease-out infinite; }
.launch-pill + p { margin-top: 14px; }
.cta .btn { position: relative; }
.cta .wl { max-width: 30rem; margin: 0 auto; }
.cta .wl-row { justify-content: center; }
.cta .wl-status { text-align: center; }
.cta-note { position: relative; margin-top: 16px; margin-bottom: 0 !important; font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }
.cta-note-bottom { position: relative; margin-bottom: 0 !important; margin-top: 0 !important; font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }

/* footer */
.ft { border-top: 1px solid var(--border); background: var(--bg-1); padding: 54px 0 32px; }
/* Top-aligned, not centered: the nav is one row against a much taller brand
   column, so centering leaves it floating with dead space above and below. */
.ft-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.ft-brand { max-width: 360px; }
.ft-logo { height: 28px; width: auto; aspect-ratio: 473 / 140; margin-bottom: 14px; }
.ft-brand p { color: var(--text-3); font-size: 0.9rem; }
/* Secondary to the description above it, so it doesn't out-shout it. */
.ft-brand .ft-usa { margin-top: 10px; color: var(--text-3); font-size: 0.85rem; }
.ft-mail { display: inline-block; margin-top: 14px; color: var(--text-2); font-size: 0.86rem; font-family: var(--mono); text-decoration: none; transition: color .14s; }
.ft-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.ft-badge { display: block; }
.ft-badge img { display: block; height: 48px; width: auto; border: 0; }
.ft-mail:hover { color: var(--text); }
/* Titled link columns, grouped to the right of the brand and top-aligned with the
   logo. flex-basis 0 keeps the columns on the brand's row instead of dropping to a
   full-width row below (auto basis sizes by content and overflows). Stacks below
   the brand on mobile (see the max-width:720px block). */
.ft-nav { display: flex; gap: 56px; flex-wrap: wrap; justify-content: flex-end; flex: 1 1 0; min-width: 0; }
.ft-col { display: flex; flex-direction: column; gap: 14px; }
.ft-col-t { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 5px; }
.ft-nav a { color: var(--text-2); font-size: 0.92rem; line-height: 1.2; transition: color .14s; }
.ft-nav a:hover { color: var(--text); }
.ft-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.82rem; font-family: var(--mono); }
.ft-legal { display: flex; align-items: center; gap: 10px; }
.ft-legal a { color: var(--text-3); transition: color .14s; }
.ft-legal a:hover { color: var(--text); }
.ft-legal button { font: inherit; color: var(--text-3); background: none; border: 0; padding: 0; cursor: pointer; transition: color .14s; }
.ft-legal button:hover { color: var(--text); }

/* the scale — involuntary-churn stats + do-the-math */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px 20px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; gap: 11px; }
.stat .num { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--cream); line-height: 1; }
.stat .num.risk { color: var(--atrisk); }
.stat .lbl { font-size: 0.85rem; line-height: 1.5; color: var(--text-2); }
.math { margin-top: 26px; display: flex; align-items: flex-start; gap: 15px; padding: 22px 24px; background: color-mix(in srgb, var(--atrisk) 7%, var(--bg-1)); border: 1px solid color-mix(in srgb, var(--atrisk) 22%, var(--border)); border-radius: var(--r); }
.math-ic { flex: none; color: var(--atrisk); margin-top: 1px; }
.math p { color: var(--text-2); font-size: 1rem; line-height: 1.6; }
.math strong { color: var(--text); }
.math .big { color: var(--atrisk); font-weight: 700; }
.src { margin-top: 16px; font-size: 0.78rem; color: var(--text-3); font-family: var(--mono); letter-spacing: 0.01em; }

/* legal pages (terms, privacy) */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.legal .legal-meta { margin-top: 10px; font-family: var(--mono); font-size: 0.8rem; color: var(--text-3); letter-spacing: 0.01em; }
.legal .legal-intro { margin-top: 22px; color: var(--text-2); font-size: 1.02rem; line-height: 1.65; }
.legal h2 { margin-top: 44px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.legal h2 + p, .legal p + p, .legal ul + p { margin-top: 14px; }
.legal p { margin-top: 14px; color: var(--text-2); font-size: 0.96rem; line-height: 1.7; }
.legal ul { margin: 14px 0 0 1.2em; color: var(--text-2); font-size: 0.96rem; line-height: 1.7; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--sage); }
.legal strong { color: var(--text); }
.legal a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-toc { margin-top: 26px; padding: 18px 22px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); }
.legal .legal-toc ul { margin-top: 8px; gap: 5px; list-style: none; margin-left: 0; }
.legal .legal-toc a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.legal .legal-toc a:hover { color: var(--text); }

/* responsive */
@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .rn { flex: 1.4; }
  .lede { max-width: 48ch; }
  .gap-grid, .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .split { grid-template-columns: 1fr; }
  .guard { grid-template-columns: 1fr; gap: 36px; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .math { flex-direction: column; gap: 12px; }
  .burger { display: flex; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--border); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav > a { padding: 11px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 10px; padding: 13px 16px; font-size: 0.95rem; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 58px 0 54px; }
  .hero .wl-row { justify-content: center; }
  /* button fills the width only once it wraps onto its own line; the input's
     dominant grow keeps the button at its natural size while they sit inline */
  .hero .wl-input, .cta .wl-input { flex-grow: 100; }
  .hero .wl-btn, .cta .wl-btn { flex: 1 1 auto; }
  .sec, .cta-sec { padding: 62px 0; }
  .gv-branch { grid-template-columns: 1fr; }
  .ft-nav { flex-basis: 100%; justify-content: flex-start; }
  .ft-bot { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.js .grid .card, .js .gap-col { opacity: 0; transform: translateY(18px); will-change: opacity, transform;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.js .grid .card.in, .js .gap-col.in { opacity: 1; transform: none; }
.js .grid .card.done, .js .gap-col.done { will-change: auto; transition: transform .16s, border-color .16s; }

.js .guard-viz .gv-node,
.js .guard-viz .gv-arrow { opacity: .25; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.js .guard-viz.in .gv-node,
.js .guard-viz.in .gv-arrow { opacity: 1; transform: none; }
.js .guard-viz.in .gv-flow > *:nth-child(1) { transition-delay: .05s; }
.js .guard-viz.in .gv-flow > *:nth-child(2) { transition-delay: .28s; }
.js .guard-viz.in .gv-flow > *:nth-child(3) { transition-delay: .5s; }
.js .guard-viz.in .gv-flow > *:nth-child(4) { transition-delay: .72s; }
.js .guard-viz.in .gv-branch .gv-node { transition-delay: .95s; }
.js .guard-viz.in .gv-branch .gv-node:last-child { transition-delay: 1.08s; }

@media (prefers-reduced-motion: reduce) {
  .js .grid .card,
  .js .gap-col,
  .js .guard-viz .gv-node,
  .js .guard-viz .gv-arrow { opacity: 1 !important; transform: none !important; }
}

@keyframes cardRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes livePulse {
  0%        { box-shadow: 0 0 0 0 color-mix(in srgb, var(--recovered) 50%, transparent); }
  70%, 100% { box-shadow: 0 0 0 5px transparent; }
}
.js .count { visibility: hidden; }
.js .panel-rows li { animation: cardRise .55s cubic-bezier(.16, .84, .44, 1) both; }
.js .panel-rows li:nth-child(1)   { animation-delay: .46s; }
.js .panel-rows li:nth-child(2)   { animation-delay: .58s; }
.js .panel-rows li:nth-child(3)   { animation-delay: .70s; }
.js .panel-rows li:nth-child(4)   { animation-delay: .82s; }
.js .panel-rows li:first-child .dot { animation: livePulse 2.6s ease-out 1.4s infinite; }

/* Wyndrel row settles into "recovered" when the second toast fires */
@keyframes rowRecover { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dotPop { 0% { transform: scale(1); } 45% { transform: scale(1.7); } 100% { transform: scale(1); } }
@keyframes amtFlash { 0%, 15% { color: var(--recovered); } 100% { color: var(--text); } }
.panel-rows li { position: relative; }
.js .panel-rows li.recovered::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -20px; right: -20px;
  background: color-mix(in srgb, var(--recovered) 16%, transparent);
  opacity: 0; pointer-events: none; z-index: 0;
  animation: rowRecover 1.2s ease-out;
}
.js .panel-rows li.recovered > * { position: relative; z-index: 1; }
.js .panel-rows li:first-child.recovered .dot { animation: dotPop .5s cubic-bezier(.2, .9, .3, 1.4); }
.js .panel-rows li.recovered .ra { animation: amtFlash 1.3s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .js .panel-tot > div, .js .panel-rows li,
  .js .panel-rows li:first-child .dot { animation: none; }
}

/* ---------- blog ---------- */
.nav > a[aria-current="page"] { color: var(--sage); }

/* blog index */
.blog-head { max-width: 660px; margin: 0 auto; padding: 76px 0 0; text-align: center; }
.blog-head h1 { font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 800; margin-top: 14px; }
.blog-head p { margin-top: 18px; color: var(--text-2); font-size: 1.1rem; }
.post-list { max-width: 880px; margin: 52px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; transition: transform .16s, border-color .16s; }
.post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sage) 40%, var(--border)); }
.post-card .p-cat { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.post-card h2 { margin-top: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.post-card .p-ex { margin-top: 11px; color: var(--text-2); font-size: 0.98rem; line-height: 1.6; }
.post-card .p-meta { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.76rem; color: var(--text-3); }
.post-card .p-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.post-card .p-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--sage); font-size: 0.9rem; font-weight: 600; }
.post-card .p-more svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }

/* article */
.post { max-width: 760px; margin: 0 auto; padding: 44px 24px 24px; }
.post-crumb { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.76rem; color: var(--text-3); }
.post-crumb a { color: var(--text-3); transition: color .14s; }
.post-crumb a:hover { color: var(--text); }
.post-header { margin-top: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.post-header h1 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.post-meta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.post-lead { margin-top: 28px; font-size: 1.2rem; line-height: 1.6; color: var(--text); }

.post-toc { margin-top: 30px; padding: 20px 24px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r); }
.post-toc strong { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.post-toc ol { margin: 12px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.post-toc li::marker { color: var(--sage); }
.post-toc a { color: var(--text-2); font-size: 0.95rem; }
.post-toc a:hover { color: var(--text); }

.post-body { margin-top: 6px; }
.post-body h2 { margin-top: 46px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: 88px; }
.post-body h3 { margin-top: 30px; font-size: 1.14rem; font-weight: 700; }
.post-body p { margin-top: 16px; color: var(--text-2); font-size: 1.03rem; line-height: 1.75; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.post-body code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--cream); }
.post-body ul { margin: 16px 0 0 1.25em; color: var(--text-2); font-size: 1.03rem; line-height: 1.7; display: flex; flex-direction: column; gap: 9px; }
.post-body ul li::marker { color: var(--sage); }

/* numbered connection steps */
.post-body ol.post-steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; }
.post-steps li { position: relative; counter-increment: step; padding: 0 0 26px 58px; }
.post-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 0.92rem; color: var(--sage); background: color-mix(in srgb, var(--sage) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sage) 38%, transparent); }
.post-steps li::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 2px; width: 1px; background: var(--border-2); }
.post-steps li:last-child { padding-bottom: 0; }
.post-steps li:last-child::after { display: none; }
.post-steps h3 { margin: 7px 0 0; font-size: 1.05rem; font-weight: 700; }
.post-steps p { margin-top: 8px; color: var(--text-2); font-size: 0.99rem; line-height: 1.7; }

/* processor tab switcher */
.proc-switch { display: inline-flex; gap: 4px; margin: 24px 0 0; padding: 4px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-sm); }
.proc-tab { font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-3); background: transparent; border: none; border-radius: 6px; padding: 8px 22px; cursor: pointer; transition: background-color .14s, color .14s; }
.proc-tab:hover { color: var(--text-2); }
.proc-tab.is-active { background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); }
.proc-tab:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.proc-panel[hidden] { display: none; }

/* callout */
.callout { margin-top: 30px; display: flex; gap: 15px; align-items: flex-start; padding: 22px 24px; background: color-mix(in srgb, var(--sage) 6%, var(--bg-1)); border: 1px solid color-mix(in srgb, var(--sage) 30%, var(--border)); border-radius: var(--r); }
.callout .callout-ic { flex: none; color: var(--sage); margin-top: 1px; }
.callout .callout-ic svg { width: 24px; height: 24px; }
.callout p { margin: 0; color: var(--text-2); font-size: 0.99rem; line-height: 1.7; }
.callout p + p { margin-top: 12px; }
.callout strong { color: var(--text); font-weight: 600; }

.post-back { display: inline-flex; align-items: center; gap: 9px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--sage); font-weight: 600; font-size: 0.95rem; }
.post-back svg { width: 16px; height: 16px; transform: scaleX(-1); }
