/* Prosper — design tokens
   Concept: clinical clarity, human warmth. Bright exam-room canvas, one living green, a data blue,
   honest semantic flags, and a dark "scanner bay" stage for the body. */
:root {
  --paper: #FAFAF8; --surface: #FFFFFF; --ink: #0E1014; --ink-2: #4A4F57; --muted: #5F656D; --line: #E6E7E3; --line-2: #EFF0EC;
  --prosper: #0FA474; --prosper-deep: #0A6E50; --prosper-soft: #E3F6EE; --prosper-bright: #1CCB91;
  --data: #2F6BFF; --data-soft: #E9EFFF;
  --high: #EF5A3C; --high-soft: #FDECE7; --low: #7C6CF2; --low-soft: #F0EEFE; --amber: #F2A516; --amber-soft: #FFF4DA;
  --night: #0A0D14; --night-2: #121826;
  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 14px; --r-md: 22px; --r-lg: 28px;
  --shadow: 0 1px 2px rgba(14,16,20,0.05), 0 18px 40px -22px rgba(14,16,20,0.22);
  --shadow-lg: 0 2px 6px rgba(14,16,20,0.05), 0 40px 80px -36px rgba(14,16,20,0.35);
  --ease: cubic-bezier(.16,1,.3,1);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
section { position: relative; }
.sec { padding-block: clamp(80px, 11vw, 140px); }

/* ---------- type ---------- */
.eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--prosper-deep); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px 6px 10px; border-radius: 999px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--prosper); box-shadow: 0 0 0 0 rgba(15,164,116,.5); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(15,164,116,.45); } 70% { box-shadow: 0 0 0 7px rgba(15,164,116,0); } 100% { box-shadow: 0 0 0 0 rgba(15,164,116,0); } }
.label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -0.03em; line-height: 1.02; margin: 0; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 4.8vw, 62px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------- buttons & forms ---------- */
.btn { font: inherit; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 22px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 200ms ease; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -12px rgba(14,16,20,.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 16px 30px -14px rgba(14,16,20,.7); }
.btn-green { background: #0C7A56; color: #fff; box-shadow: 0 12px 26px -14px rgba(15,164,116,.9); }
.btn-green:hover { transform: translateY(-1px); background: #0A6E50; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd1cb; transform: translateY(-1px); }
.btn .arr { transition: transform 220ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.signup { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); max-width: 480px; width: 100%; }
.signup input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 0; background: transparent; padding: 10px 14px; color: var(--ink); outline: none; }
.signup input::placeholder { color: #9A9FA6; }
.signup:focus-within { border-color: var(--prosper); box-shadow: 0 0 0 3px rgba(15,164,116,.45), var(--shadow); }
.signup input[aria-invalid="true"] { color: var(--high); }
.signup .btn { padding: 11px 18px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; min-height: 1.4em; }
.form-note.ok { color: var(--prosper-deep); font-weight: 600; }
.form-note.err { color: #B4412A; }
@media (max-width: 480px) { .signup { flex-direction: column; border-radius: 22px; } .signup .btn { width: 100%; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: max(12px, env(safe-area-inset-top, 0px)); pointer-events: none; }
.nav-inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(250,250,248,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border: 1px solid transparent; transition: border-color 300ms ease, box-shadow 300ms ease, background 300ms ease; }
.nav.scrolled .nav-inner { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(14,16,20,.35); background: rgba(255,255,255,.94); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; color: var(--ink); }
.logo img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background 160ms ease, color 160ms ease; }
.nav-links a:hover { background: rgba(14,16,20,.05); color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(120px, 15vw, 170px); padding-bottom: clamp(60px, 8vw, 100px); overflow: hidden; }
.hero-bg { position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; z-index: -1; filter: blur(60px); opacity: .9; }
.hero-bg span { position: absolute; border-radius: 50%; }
.hero-bg .b1 { width: 520px; height: 520px; left: 2%; top: 4%; background: radial-gradient(circle, #CFF3E3 0%, rgba(207,243,227,0) 70%); }
.hero-bg .b2 { width: 600px; height: 600px; right: 0; top: 0; background: radial-gradient(circle, #DCE6FF 0%, rgba(220,230,255,0) 70%); }
.hero-bg .b3 { width: 420px; height: 420px; left: 42%; top: 30%; background: radial-gradient(circle, #FFF1D9 0%, rgba(255,241,217,0) 70%); }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { letter-spacing: -0.038em; max-width: 15ch; font-size: clamp(42px, 5.4vw, 78px); }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--prosper); }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; transition: transform 700ms var(--ease), opacity 500ms ease, filter 500ms ease; }
.rotator > span:not(.on) { opacity: 0; transform: translateY(.45em); filter: blur(6px); }
.rotator > span.out { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }
.hero-cta { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 480px; }
.hero-alt { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.hero-alt a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 1px; }
.hero-alt a:hover { border-color: var(--ink); }

/* hero visual */
.stage { position: relative; min-height: 560px; perspective: 1400px; }
.app { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; transform-style: preserve-3d; transition: transform 600ms var(--ease); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #FFD9B8, #F3A27C); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #7A3618; }
.who b { display: block; font-size: 15px; }
.who span { font-size: 12.5px; color: var(--muted); }
.tag { font-family: var(--f-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { background: var(--paper); border-radius: 14px; padding: 10px 12px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi b { font-family: var(--f-display); font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chart-card { border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 14px 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-head b { font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.high { background: var(--high-soft); color: #B4412A; } .pill.ok { background: var(--prosper-soft); color: var(--prosper-deep); } .pill.low { background: var(--low-soft); color: #5446C9; } .pill.amber { background: var(--amber-soft); color: #8A5A00; } .pill.data { background: var(--data-soft); color: #1F4FD1; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.spark { width: 100%; height: auto; display: block; overflow: visible; }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.inview .draw, .draw.go { transition: stroke-dashoffset 1800ms var(--ease); stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .draw { stroke-dashoffset: 0; } }

.log { position: absolute; z-index: 3; left: -36px; bottom: -28px; width: min(360px, 82%); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.log li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity 500ms ease, transform 600ms var(--ease); }
.log li.on { opacity: 1; transform: none; }
.log time { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); padding-top: 1px; }
.log li.now time { color: var(--prosper); font-weight: 600; }
.log li.now span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--prosper); vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) { .log li.now span::after { animation: blink 1.2s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .2; } }
.toast { position: absolute; z-index: 4; right: -18px; top: -34px; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; max-width: 290px; opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity 500ms ease, transform 700ms var(--ease); }
.toast.on { opacity: 1; transform: none; }
.toast .ic { flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--prosper-soft); color: var(--prosper-deep); }
.toast b { display: block; font-size: 13.5px; }
.toast span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 1000px) { .stage { min-height: 0; padding: 10px 6px 90px; } .log { left: 0; } .toast { right: 0; } }
@media (max-width: 520px) { .log { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -20px; } .stage { padding-bottom: 0; } .toast { position: relative; top: auto; right: auto; max-width: none; margin-top: 12px; } .kpi b { font-size: 21px; } }
.sample-note { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); margin-top: 64px; text-align: right; }
@media (max-width: 520px) { .sample-note { margin-top: 16px; text-align: left; } }

/* ---------- sources marquee ---------- */
.sources { padding-block: 34px; border-block: 1px solid var(--line); background: var(--surface); }
.sources p { text-align: center; margin: 0 0 18px; }
.marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin-inline: auto; }
@media (max-width: 620px) { .chip { font-size: 13.5px; padding: 7px 12px; } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; white-space: nowrap; color: var(--ink-2); }
.chip svg { width: 18px; height: 18px; color: var(--prosper); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 800ms ease, transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.inview { opacity: 1; transform: none; }
.js .ins.rv, .js .test.rv { transition: opacity 800ms ease, transform 900ms var(--ease), box-shadow 400ms var(--ease), border-color 300ms ease; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- problem: scatter → one record ---------- */
.scatter { height: 200vh; }
.scatter-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.scatter-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; width: 100%; }
.scatter-copy { display: flex; flex-direction: column; gap: 20px; }
.phase { position: relative; display: grid; }
.phase > div { grid-area: 1 / 1; transition: opacity 500ms ease, transform 700ms var(--ease); }
.phase > div:not(.on) { opacity: 0; transform: translateY(14px); pointer-events: none; }
.meter { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.meter .bar { flex: 1; max-width: 220px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0%; background: var(--prosper); border-radius: 4px; }
.board { position: relative; height: min(620px, 78vh); border-radius: var(--r-lg); background: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, #F3F4F0 100%); border: 1px solid var(--line); overflow: hidden; }
.board-title { position: absolute; left: 22px; top: 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; opacity: 0; transition: opacity 400ms ease; }
.board-title img { width: 22px; height: 22px; }
.board.done .board-title { opacity: 1; }
.board-rail { position: absolute; left: 33px; top: 58px; bottom: 26px; width: 2px; background: linear-gradient(var(--prosper), rgba(15,164,116,0)); transform-origin: top; transform: scaleY(var(--rail, 0)); border-radius: 2px; }
.doc { position: absolute; left: 0; top: 0; width: min(360px, 76%); display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; box-shadow: 0 10px 26px -18px rgba(14,16,20,.45); will-change: transform; font-size: 14px; }
.doc .src { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.doc b { display: block; font-size: 14px; line-height: 1.25; }
.doc span { font-size: 12px; color: var(--muted); }
.doc .ok { margin-left: auto; color: var(--prosper); opacity: 0; transform: scale(.5); transition: opacity 300ms ease, transform 400ms var(--ease); }
.board.done .doc .ok { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .scatter { height: auto; }
  .scatter-pin { position: relative; height: auto; min-height: 0; padding-block: 90px; }
  .scatter-grid { grid-template-columns: minmax(0, 1fr); }
  .phase > div:not(.on) { display: none; }
}

/* ---------- origin ---------- */
.origin { background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 44px); margin-inline: max(12px, env(safe-area-inset-left, 0px)); padding: clamp(56px, 8vw, 100px) 0; overflow: hidden; }
.origin h2 { color: #fff; max-width: 18ch; }
.origin .lede { color: #B9BEC6; }
.origin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: end; }
@media (max-width: 900px) { .origin-grid { grid-template-columns: minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.08); border-radius: 22px; overflow: hidden; }
.stat { background: var(--ink); padding: 22px 22px 20px; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(38px, 4.4vw, 56px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: #9AA0A9; }
.stat.wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stat b.g { color: var(--prosper-bright); }
.origin .glow { position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; background: radial-gradient(circle, rgba(28,203,145,.22), rgba(28,203,145,0) 65%); pointer-events: none; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.step .num { font-family: var(--f-mono); font-size: 12px; color: var(--prosper-deep); background: var(--prosper-soft); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.mini { margin-top: auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; padding: 14px; min-height: 196px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.conn { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px; }
.conn .src { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-family: var(--f-mono); font-size: 10px; font-weight: 700; }
.conn .sw { margin-left: auto; width: 34px; height: 20px; border-radius: 999px; background: #D9DBD6; position: relative; transition: background 300ms ease; }
.conn .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 400ms var(--ease); }
.conn.on .sw { background: var(--prosper); } .conn.on .sw::after { transform: translateX(14px); }
.drop { border: 1.5px dashed #CFD3CB; border-radius: 12px; padding: 9px 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.drop .file { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; opacity: 0; transform: translateY(-8px); transition: opacity 400ms ease, transform 500ms var(--ease); }
.drop.on .file { opacity: 1; transform: none; }
.report { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.report mark { background: transparent; color: inherit; border-radius: 4px; padding: 0 2px; transition: background 500ms ease, color 500ms ease; }
.read .report mark.on { background: #FFF1A8; color: var(--ink); }
.extract { display: flex; flex-wrap: wrap; gap: 6px; }
.extract .pill { opacity: 0; transform: scale(.85); transition: opacity 300ms ease, transform 400ms var(--ease); }
.extract .pill.on { opacity: 1; transform: none; }
.takeaway { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.takeaway p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.ask { display: flex; align-items: center; gap: 8px; background: var(--data-soft); color: #1F4FD1; border-radius: 12px; padding: 8px 10px; font-weight: 600; font-size: 13px; }

/* ---------- trends ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.feature.rev .feature-copy { order: 2; }
@media (max-width: 960px) { .feature, .feature.rev { grid-template-columns: minmax(0, 1fr); } .feature.rev .feature-copy { order: 0; } }
.feature-copy { display: flex; flex-direction: column; gap: 20px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--prosper-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%230A6E50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.ticks b { color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(16px, 2.4vw, 26px); }
.seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; }
.seg button { flex: 0 0 auto; white-space: nowrap; font: inherit; font-size: 14px; font-weight: 500; border: 0; background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14,16,20,.12); }
.trend-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 18px 0 6px; }
.trend-top .big { font-family: var(--f-display); font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.trend-top .big small { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.trend-say { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; min-height: 1.6em; }
.chart-box { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity 150ms ease; z-index: 2; }
.tip.on { opacity: 1; }
.tip span { color: #A9AFB8; }
.chart-axis text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* ---------- body stage (dark) ---------- */
.night { background: var(--night); color: #E9EDF3; border-radius: clamp(28px, 4vw, 44px); margin-inline: max(12px, env(safe-area-inset-left, 0px)); overflow: hidden; }
.night h2 { color: #fff; }
.night .lede { color: #A3ABB7; }
.night .eyebrow { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #9FF0CF; }
.body-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .body-grid { grid-template-columns: minmax(0, 1fr); } }
.viewport { position: relative; border-radius: var(--r-lg); background: radial-gradient(90% 70% at 50% 35%, #172238 0%, #0A0D14 75%); border: 1px solid rgba(255,255,255,.07); overflow: hidden; min-height: 520px; }
.viewport canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.viewport canvas:active { cursor: grabbing; }
.vp-hint { position: absolute; left: 16px; top: 14px; font-family: var(--f-mono); font-size: 11.5px; color: #7F8A9C; }
.vp-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.vp-tools button { font: inherit; font-size: 12.5px; color: #DCE3EE; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background 160ms ease; }
.vp-tools button:hover { background: rgba(255,255,255,.14); }
.vp-tools button[aria-pressed="true"] { background: rgba(15,164,116,.35); border-color: rgba(28,203,145,.6); }
.organ-card { background: #FFFFFF; color: var(--ink); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 520px; }
.organ-card .lv { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.organ-card .lv i { width: 9px; height: 9px; border-radius: 50%; }
.organ-card h3 { font-size: 30px; }
.organ-card .sum { font-size: 14px; color: var(--muted); margin: -6px 0 0; }
.res { display: flex; flex-direction: column; gap: 8px; }
.res-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 86px; gap: 10px; align-items: center; background: var(--paper); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.res-row.flag { background: var(--high-soft); }
.res-row .v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-row.flag .v { color: #B4412A; }
.res-row small { display: block; font-size: 11.5px; color: var(--muted); }
.res-row svg { width: 86px; height: 28px; }
.rep { background: var(--paper); border-radius: 14px; padding: 12px; font-size: 13.5px; }
.rep b { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
.rep p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.45; }
.organ-fade { animation: fadeUp 500ms var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.organ-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.organ-chips button { font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #DCE3EE; border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.organ-chips button i { width: 8px; height: 8px; border-radius: 50%; }
.organ-chips button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.organ-chips button:hover { border-color: rgba(255,255,255,.4); }

/* ---------- insights ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .ins-grid { grid-template-columns: minmax(0, 1fr); } }
.ins { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); transform-style: preserve-3d; }
.ins:hover { box-shadow: var(--shadow-lg); }
.ins .links { display: flex; gap: 6px; flex-wrap: wrap; }
.ins h3 { font-size: 24px; }
.ins p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.ins .mini-viz { margin-top: auto; background: var(--paper); border-radius: 14px; padding: 12px; }
.qs { margin-top: 18px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; background: linear-gradient(135deg, #EAF2FF 0%, #E8F7F0 100%); border: 1px solid #DCE6F5; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
@media (max-width: 900px) { .qs { grid-template-columns: minmax(0, 1fr); } }
.qs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qs li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9); border-radius: 14px; padding: 12px 14px; font-size: 15px; opacity: 0; transform: translateX(14px); transition: opacity 500ms ease, transform 600ms var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.inview .qs li, .qs.inview li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .qs li { opacity: 1; transform: none; } }
.qs li .box { flex: 0 0 20px; height: 20px; border-radius: 6px; border: 1.5px solid #B9C6DD; margin-top: 2px; }

/* ---------- every test ---------- */
.tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .tests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tests { gap: 10px; } .test { padding: 14px; gap: 8px; } .test b { font-size: 15px; } .test span { font-size: 13px; } .test .ti { width: 36px; height: 36px; } }
.test { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms ease; }
.test:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D7DAD3; }
.test .ti { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--c-soft, var(--prosper-soft)); color: var(--c, var(--prosper-deep)); transition: transform 400ms var(--ease); }
.test:hover .ti { transform: rotate(-6deg) scale(1.06); }
.test .ti svg { width: 22px; height: 22px; }
.test b { font-size: 16px; }
.test span { font-size: 14px; color: var(--muted); line-height: 1.45; }

.map-card { margin-top: 18px; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .map-card { grid-template-columns: minmax(0, 1fr); } }
.heat { width: 100%; height: auto; display: block; }
.heat rect { transition: opacity 500ms ease, transform 600ms var(--ease); transform-box: fill-box; transform-origin: center; }
.heat:not(.inview) rect.cell { opacity: 0; transform: scale(.4); }
@media (prefers-reduced-motion: reduce) { .heat:not(.inview) rect.cell { opacity: 1; transform: none; } }
.heat text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ben { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; position: relative; overflow: hidden; }
.ben.w3 { grid-column: span 3; }
@media (max-width: 960px) { .ben, .ben.w3 { grid-column: span 3; } }
@media (max-width: 620px) { .ben, .ben.w3 { grid-column: 1 / -1; } }
.ben h3 { font-size: 24px; }
.ben p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 42ch; }
.ben .art { margin-top: auto; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-list span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; }
.mini-list span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--prosper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.6-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: 0 0 14px; }
.search-mock { display: flex; flex-direction: column; gap: 8px; }
.search-mock .q { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); }
.search-mock .hits { display: flex; flex-wrap: wrap; gap: 6px; }
.share { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; }
.share .url { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.share .copy { font: inherit; font-size: 12.5px; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.lifeline { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.lifeline i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--prosper-bright), var(--prosper)); opacity: .85; transform-origin: bottom; transform: scaleY(0); transition: transform 800ms var(--ease); transition-delay: calc(var(--d, 0) * 40ms); }
.inview .lifeline i { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .lifeline i { transform: none; } }

/* ---------- trust ---------- */
.trust { background: linear-gradient(180deg, #0A3F2F 0%, #0A2E24 100%); color: #EAF7F1; border-radius: clamp(28px, 4vw, 44px); margin-inline: max(12px, env(safe-area-inset-left, 0px)); overflow: hidden; }
.trust h2 { color: #fff; }
.trust .lede { color: #A9D5C4; }
.trust .eyebrow { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #9FF0CF; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; }
@media (max-width: 760px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rules li { background: #0B3A2C; padding: 26px; display: flex; gap: 18px; }
.rules .n { font-family: var(--f-mono); font-size: 13px; color: #6FE0B4; padding-top: 4px; }
.rules b { display: block; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; color: #fff; margin-bottom: 6px; font-weight: 600; }
.rules span { color: #A9D5C4; font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow 300ms ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; transition: transform 400ms var(--ease), background 200ms ease; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--prosper-soft); }
.faq .ans { padding: 0 22px 22px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.faq .ans p { margin: 0 0 10px; }

/* ---------- final CTA ---------- */
.final { text-align: center; padding-block: clamp(100px, 14vw, 170px); overflow: hidden; }
.final h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.045em; }
.final .lede { margin: 22px auto 34px; }
.final .signup { margin: 0 auto; }
.final .mark-big { width: 88px; height: 88px; margin: 0 auto 28px; display: block; filter: drop-shadow(0 18px 30px rgba(15,164,116,.35)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding-block: 42px calc(42px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.fine { margin-top: 26px; font-size: 12.5px; max-width: 90ch; line-height: 1.6; }

/* ---------- utilities & QA ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seg::-webkit-scrollbar { display: none; }
.board-title .tag { font-weight: 400; margin-left: 4px; }
.ins .links .tag { margin-left: auto; }
.spark path, .spark line, .chart path, .chart line { vector-effect: non-scaling-stroke; }
@media (min-width: 700px) and (max-width: 1000px) { .spark { max-height: 140px; } }
.heat-wrap { min-width: 0; }
@media (max-width: 620px) { .heat-wrap { overflow-x: auto; margin-inline: -4px; padding-bottom: 6px; } .heat { width: 600px; max-width: none; } }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1001px) { .stage .sample-note { position: absolute; right: 0; bottom: -62px; margin: 0; } }
@media (min-width: 521px) and (max-width: 1000px) { .stage .sample-note { margin-top: 110px; } }

/* ---------- connect: every source ---------- */
.connect { background: linear-gradient(180deg, var(--paper) 0%, #F2F6F3 100%); overflow: hidden; }
.connect-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .connect-grid { grid-template-columns: minmax(0, 1fr); } }

.cpanel { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; }
.cp-head b { font-family: var(--f-display); font-size: 21px; letter-spacing: -0.02em; }
.cp-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; color: var(--muted); font-size: 15px; min-height: 46px; }
.cp-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.cp-search span { color: var(--ink); }
.cp-search span:empty::before { content: "Search hospitals, labs and scan centers"; color: #8A9098; }
.cp-search .caret { width: 1.5px; height: 18px; background: var(--prosper); margin-left: -8px; opacity: 0; }
.cpanel.typing .caret { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .cpanel.typing .caret { animation: blink 1s steps(1) infinite; } }
.cp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cp-row { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-top: 1px solid var(--line-2); }
.cp-row:first-child { border-top: 0; }
.cp-row .who { align-items: flex-start; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cp-row .who b { font-size: 16px; font-weight: 600; }
.cp-row .who span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row .who span.ok { color: var(--prosper-deep); }
.cp-btn { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: var(--surface); transition: background 300ms ease, border-color 300ms ease, color 300ms ease, transform 400ms var(--ease); }
.cp-btn svg { width: 18px; height: 18px; }
.cp-btn .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--prosper-soft); border-top-color: var(--prosper); }
.cp-row.busy .cp-btn .plus { display: none; } .cp-row.busy .cp-btn .spin { display: block; }
@media (prefers-reduced-motion: no-preference) { .cp-row.busy .cp-btn .spin { animation: spin 800ms linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.cp-row .check { display: none; }
.cp-row.done .cp-btn { background: var(--prosper-soft); border-color: transparent; color: var(--prosper-deep); transform: scale(1.04); }
.cp-row.done .cp-btn .plus { display: none; } .cp-row.done .cp-btn .check { display: block; }
.cp-drop { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 13px 16px; font-size: 14px; color: var(--ink-2); }
.cp-drop svg { width: 18px; height: 18px; color: var(--prosper); flex: 0 0 auto; }

/* source glyph: a neutral monogram badge, not the source's own logo */
.sg { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--c, #4A4F57); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.03em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px -8px var(--c, #000); }
.sg.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }

/* hub */
.hub { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines line { stroke: url(#hubgrad); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; opacity: .9; }
.hub-lines circle { fill: var(--prosper); opacity: 0; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(10,110,80,.55), 0 0 0 10px rgba(15,164,116,.06); display: grid; place-items: center; align-content: center; gap: 8px; z-index: 2; }
.hub-core img { width: 42%; height: auto; }
.hub-core b { font-family: var(--f-display); font-size: clamp(12px, 1.3vw, 15px); letter-spacing: -0.01em; }
.hub-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgba(15,164,116,.35); opacity: 0; }
.hub.inview .hub-ring { animation: ringOut 1.6s var(--ease) 1.5s 2 both; }
@keyframes ringOut { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
.node { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 6px; box-shadow: 0 10px 24px -16px rgba(14,16,20,.45); white-space: nowrap; font-size: 14px; font-weight: 600; transition: opacity 500ms ease, transform 700ms var(--ease), box-shadow 300ms ease; }
.node:hover { box-shadow: 0 16px 30px -16px rgba(14,16,20,.5); }
.node .ok { width: 16px; height: 16px; color: var(--prosper); opacity: 0; transform: scale(.4); transition: opacity 300ms ease, transform 400ms var(--ease); }
.node.synced .ok { opacity: 1; transform: none; }
.js .hub:not(.inview) .node { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
@media (max-width: 640px) {
  .node { padding: 4px; gap: 0; font-size: 0; }
  .node .ok { display: none; }
  .node .sg.sm { width: 38px; height: 38px; font-size: 13px; border-radius: 11px; }
  .hub-core b { font-size: 11px; }
}

/* wall */
.wall-head { display: flex; justify-content: center; margin: clamp(48px, 7vw, 80px) 0 22px; }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
@media (max-width: 520px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.wall li { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-width: 0; transition: opacity 500ms ease, transform 600ms var(--ease), box-shadow 300ms ease, border-color 300ms ease; transition-delay: var(--wd, 0ms); }
.wall li:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line); transition-delay: 0ms; }
.wall li div { display: flex; flex-direction: column; min-width: 0; }
.wall li div b { font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall li div span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js .wall:not(.inview) li { opacity: 0; transform: translateY(10px); }
.wall li.pdf { border-style: dashed; background: transparent; }
.wall-note { margin: 22px auto 0; max-width: 72ch; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .js .wall:not(.inview) li, .js .hub:not(.inview) .node { opacity: 1; transform: translate(-50%, -50%); } .js .wall:not(.inview) li { transform: none; } }
.wall li.more-m { display: none; }
@media (max-width: 520px) { .wall li:nth-child(n+16):not(.more-m):not(.pdf) { display: none; } .wall li.more-m { display: flex; } }

/* ---------- hero story mockup ---------- */
.st-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding: 4px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; white-space: nowrap; transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease; }
.st-tab:hover { color: var(--ink); }
.st-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); transition: box-shadow 250ms ease; }
.st-tab em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: rgba(14,16,20,.05); border-radius: 999px; padding: 1px 6px; transition: background 250ms ease, color 250ms ease; }
.st-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14,16,20,.06), 0 4px 12px -6px rgba(14,16,20,.18); }
.st-tab[aria-selected="true"] i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.st-tab[aria-selected="true"] em { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); }
.story { border: 1px solid var(--line-2); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.story > * { transition: opacity 260ms ease, transform 400ms var(--ease); }
.story.swap > * { opacity: 0; transform: translateY(6px); }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.st-name { font-size: 13px; color: var(--muted); font-weight: 500; }
.st-val { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-val small { font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.st-val .d { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: 5px; }
.st-val .d.good { background: var(--prosper-soft); color: var(--prosper-deep); }
.st-val .d.bad { background: var(--high-soft); color: #B4412A; }
.st-val .d.warn { background: var(--amber-soft); color: #8A5A00; }
.st-val .d.info { background: var(--data-soft); color: #1F4FD1; }
.st-chart { margin: 2px 0 0; }
.st-chart text { font-family: var(--f-mono); font-size: 10.5px; fill: #8A9098; }
.st-chart .ann text { font-family: var(--f-body); font-size: 11.5px; font-weight: 600; fill: var(--ink); }
.st-say { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.st-say b { color: var(--ink); }
.st-next { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 13px; padding: 9px 12px; }
.st-next .ic { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--c-soft, var(--prosper-soft)); color: var(--c, var(--prosper-deep)); }
.st-next .ic svg { width: 16px; height: 16px; }
.st-next .label { display: block; font-size: 10.5px; margin-bottom: 1px; }
.st-next b { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: block; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.st-foot b { color: var(--prosper-deep); font-variant-numeric: tabular-nums; }
.st-foot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--prosper); margin-right: 7px; vertical-align: 1px; }
.st-prog { flex: 0 0 90px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.st-prog i { display: block; height: 100%; width: 0; background: var(--prosper); border-radius: 4px; }
.share-chip { position: absolute; z-index: 4; left: -30px; bottom: 54px; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 9px 14px 9px 9px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity 500ms ease, transform 700ms var(--ease); }
.share-chip.on { opacity: 1; transform: none; }
.share-chip .ic { flex: 0 0 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--data-soft); color: #1F4FD1; }
.share-chip b { display: block; font-size: 13.5px; }
.share-chip span { color: var(--muted); font-size: 12.5px; }
.stage .toast { top: auto; bottom: -66px; right: -18px; max-width: 380px; }
.share-chip { top: -72px; bottom: auto; }
@media (min-width: 1001px) { .stage .sample-note { right: auto; left: 0; bottom: -104px; } }
@media (max-width: 1000px) { .share-chip { left: 0; } .stage .toast { right: 0; } }
@media (max-width: 520px) {
  .share-chip { position: relative; left: auto; bottom: auto; margin-top: 12px; }
  .st-val { font-size: 26px; }
  .st-val .d { display: table; margin: 6px 0 0; }
  .stage .toast { bottom: auto; }
  .share-chip { top: auto; }
  .st-tab { flex: 0 0 auto; }
  .st-foot { flex-wrap: wrap; }
}

/* ---------- hero notifications: calm float + a quiet notification stack ---------- */
.stage .toast { padding: 0; display: block; max-width: 360px; width: 360px; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.stage .toast::before, .stage .toast::after { content: ""; position: absolute; left: 14px; right: 14px; height: 100%; bottom: -7px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(14,16,20,.35); z-index: -1; }
.stage .toast::after { left: 28px; right: 28px; bottom: -13px; background: rgba(255,255,255,.5); z-index: -2; }
.tn { position: relative; display: flex; gap: 11px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; transition: opacity 420ms ease, transform 620ms var(--ease), filter 420ms ease; }
.tn .ic { flex: 0 0 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--c-soft, var(--prosper-soft)); color: var(--c, var(--prosper-deep)); transition: background 400ms ease, color 400ms ease; }
.tn .ic svg { width: 18px; height: 18px; }
.tn > div { min-width: 0; flex: 1; }
.tn b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn time { align-self: flex-start; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.tn.out { opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(2px); }
.tn.in { opacity: 0; transform: translateY(12px) scale(.98); transition: none; }
.share-chip .live { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--prosper); box-shadow: 0 0 0 3px rgba(15,164,116,.15); }
.share-chip { padding-right: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .toast.on { animation: float-a 7s ease-in-out 1s infinite; }
  .share-chip.on { animation: float-b 8.5s ease-in-out .6s infinite; }
  .app { animation: float-c 10s ease-in-out 1.2s infinite; }
}
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 2px -6px; } }
@keyframes float-c { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (max-width: 520px) {
  .stage .toast { width: auto; max-width: none; margin-bottom: 14px; }
  .toast.on, .share-chip.on, .app { animation: none; }
}

.hub.tight .node { font-size: 12.5px; gap: 7px; padding: 4px 10px 4px 4px; }
.hub.tight .node .sg.sm { width: 26px; height: 26px; font-size: 10.5px; border-radius: 8px; }
.hub.tight .node .ok { width: 13px; height: 13px; }

.more-line { margin: clamp(40px, 6vw, 64px) 0 0; text-align: center; font-family: var(--f-display); font-weight: 650; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--ink); }
.more-line .serif { color: var(--prosper-deep); }
.connect .wall-note { margin-top: 12px; }

/* ---------- hero floaters: slight tilts, toast docked to the card's right edge ---------- */
@media (min-width: 1001px) {
  .share-chip { rotate: -2.5deg; transform-origin: right center; }
  .stage .toast { top: auto; bottom: -22px; right: -128px; width: 296px; max-width: 296px; rotate: -2deg; transform-origin: left center; }
  .stage .sample-note { bottom: -46px; }
}
@media (min-width: 1001px) and (max-width: 1240px) { .stage .toast { right: -40px; width: 300px; max-width: 300px; } }

.trust .sec-head { max-width: 1040px; }
@media (min-width: 1001px) and (max-width: 1240px) { .stage .toast { right: -14px; width: 214px; max-width: 214px; } .tn time { display: none; } }

/* section titles run wider before wrapping (ledes keep their own 60ch measure) */
.sec-head { max-width: none; } .sec-head .lede { max-width: 60ch; }

/* ---------- headings fill the line before wrapping (balance was splitting them early) ---------- */
h2 { text-wrap: pretty; }

/* ---------- calmer hero mockup: fewer boxes, badges and moving parts ---------- */
.st-tab em, .st-head .pill, .st-prog { display: none; }
.st-tab { gap: 8px; }
.story { border: 0; padding: 4px 4px 0; gap: 10px; }
.st-chart .ann rect { fill: transparent; stroke: none; }
.st-chart .ann text { font-size: 11px; font-weight: 500; fill: var(--muted); }
.st-chart .ann line { stroke-opacity: .16; }
.st-next { background: transparent; border-top: 1px solid var(--line-2); border-radius: 0; padding: 12px 2px 2px; }
.st-foot { border-top: 0; margin-top: 10px; }
.app { box-shadow: 0 1px 2px rgba(14,16,20,.04), 0 30px 60px -36px rgba(14,16,20,.28); }
.stage .toast::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .app { animation: none; }
  .toast.on { animation: float-a 9s ease-in-out 1s infinite; }
}
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
