/* MoneyFlows site. Obsidian Noir by default, Sovereign Light by system preference.
   Tokens mirror the app: green is a signal, negatives are bronze (never red),
   system type only, SF Mono only on provenance stamps. Motion: transform/opacity only. */

:root {
  color-scheme: dark light;
  --field: #050505;
  --surface: #1a1a1a;
  --raised: #151515;
  --ink: #f7f5ee;
  --ink2: #b6bbb4;
  --ink3: #83887f;
  --green: #006241;
  --green-hi: #39a36b;
  --green-lt: #6bd3a4;
  --pos: #39a36b;
  --neg: #987f5b;
  --hair: rgba(247, 245, 238, 0.1);
  --lit: rgba(247, 245, 238, 0.07);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  --glass: rgba(10, 10, 10, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --edge: rgba(5, 5, 5, 0.75);
  --ribbon: 0.22;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.17, 0.84, 0.24, 1);
}
/* Critically damped spring (damping 1.0): no overshoot, quick settle. */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.078, 0.235, 0.401, 0.549, 0.669, 0.762, 0.831, 0.882, 0.918, 0.944, 0.962, 0.974, 0.982, 0.988, 0.992, 0.995, 0.997, 0.998, 0.999, 1); }
}

@media (prefers-color-scheme: light) {
  :root {
    --field: #f2f4f6;
    --surface: #ffffff;
    --raised: #f7f8f9;
    --ink: #12231b;
    --ink2: #526457;
    --ink3: #66726b;
    --green: #006241;
    --green-hi: #1c7a4c;
    --green-lt: #006241;
    --pos: #1c7a4c;
    --neg: #6f5b3e;
    --hair: rgba(18, 35, 27, 0.12);
    --lit: rgba(255, 255, 255, 0.9);
    --shadow: 0 30px 70px rgba(18, 35, 27, 0.14);
    --glass: rgba(242, 244, 246, 0.72);
    --glass-edge: rgba(255, 255, 255, 0.85);
    --edge: rgba(242, 244, 246, 0.8);
    --ribbon: 0.28;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  background: var(--field);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: var(--green-hi); text-underline-offset: 0.2em; }
a:hover { color: var(--green-lt); }
:focus-visible { outline: 3px solid var(--green-lt); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0.75rem; z-index: 60; }
.skip:focus { left: 1rem; background: var(--surface); color: var(--ink); padding: 0.75rem 1rem; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tab { font-variant-numeric: tabular-nums; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.ico.lg { width: 1.75rem; height: 1.75rem; color: var(--green-hi); }
.ico.xl { width: 2.5rem; height: 2.5rem; color: var(--green-hi); }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 600px) { .wrap { width: min(1120px, 100% - 3rem); } }

/* ---------- Header: the floating glass layer ---------- */
header.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
/* Scroll-edge fade instead of a hard divider, only once content runs under the glass. */
header.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none;
  background: linear-gradient(var(--edge), transparent); opacity: 0; transition: opacity 0.3s var(--ease);
}
header.nav.scrolled::after { opacity: 1; }
.nav-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 60px; gap: 0 0.5rem; }
.nav-links { flex-wrap: wrap; justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.015em; font-size: 1.0625rem; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 0.125rem; }
.nav-links a { color: var(--ink2); text-decoration: none; padding: 0.5rem 0.7rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; font-size: 0.9375rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.btn { margin-left: 0.4rem; }
@media (max-width: 520px) { .nav-links .hide-s { display: none; } }

/* ---------- Buttons: feedback on press ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.35rem; border-radius: 14px;
  font: 600 1rem/1.2 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 100ms ease-out, background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary, .nav-links a.btn-primary { background: var(--green); color: #f7f5ee; }
.btn-primary:hover, .nav-links a.btn-primary:hover { background: #00734c; color: #f7f5ee; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-quiet:hover { border-color: var(--ink3); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 1.6rem; font-size: 1.0625rem; border-radius: 16px; }

/* ---------- Type: tracking tightens as size grows, leading loosens for body ---------- */
.eyebrow { font-size: 0.8125rem; line-height: 1.4; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); }
h1 { font-size: clamp(3rem, 8.4vw, 6.75rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--ink2); max-width: 36rem; line-height: 1.55; }
.stamp { font: 500 0.8125rem/1.45 var(--mono); color: var(--ink3); letter-spacing: 0; }
.fine { margin-top: 1.25rem; color: var(--ink3); font-size: 0.9375rem; max-width: 32rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }
.hero h1 { margin: 1rem 0 1.5rem; }
.hero-device { justify-self: center; }
@media (min-width: 900px) { .hero-device .shot { --pw: min(312px, calc((100vh - 9rem) * 9 / 19.5)); } }
.ribbon { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; pointer-events: none; opacity: var(--ribbon);
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 55%); mask-image: linear-gradient(to right, transparent 5%, #000 55%); }
.ribbon path { fill: none; stroke-width: 2; stroke-linecap: round; }
.ribbon.r2 { height: 100%; top: 0; opacity: calc(var(--ribbon) * 0.7); -webkit-mask-image: radial-gradient(closest-side, transparent 35%, #000); mask-image: radial-gradient(closest-side, transparent 35%, #000); }
@media (max-width: 640px) { .cta-row .btn-lg { flex: 1 1 100%; } }

/* ---------- The phone: one component scaled by container units ---------- */
.shot { --pw: min(312px, 84vw); width: var(--pw); margin: 0; container-type: inline-size; }
.phone {
  aspect-ratio: 9 / 19.5; padding: 3.1cqw; border-radius: 15cqw;
  background: linear-gradient(145deg, #2c2c2c, #0b0b0b 40%, #1b1b1b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.5), var(--shadow);
}
.screen {
  position: relative; height: 100%; border-radius: 12cqw; overflow: hidden;
  background: var(--field); color: var(--ink);
  display: flex; flex-direction: column;
  font-size: 14px; font-size: 4.55cqw; line-height: 1.35;
}
.status { flex: none; height: 12cqw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 6.5cqw; font-size: 0.9em; font-weight: 600; }
.island { width: 29cqw; height: 8.4cqw; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.sys { justify-self: end; display: flex; align-items: flex-end; gap: 1px; }
.sys i { width: 0.22em; background: currentColor; border-radius: 1px; }
.sys i:nth-child(1) { height: 0.35em; } .sys i:nth-child(2) { height: 0.5em; } .sys i:nth-child(3) { height: 0.65em; } .sys i:nth-child(4) { height: 0.8em; }
.sys em { width: 1.55em; height: 0.75em; border: 1.5px solid currentColor; border-radius: 0.22em; margin-left: 0.35em; opacity: 0.9; box-shadow: inset 0 0 0 1.5px var(--field), inset 1.2em 0 0 0 currentColor; }
.app { flex: 1; min-height: 0; padding: 1.5cqw 5.5cqw 0; display: flex; flex-direction: column; overflow: hidden; }
.app-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5em; margin-bottom: 0.7em; }
.app-title > b { font-size: 2em; letter-spacing: -0.035em; line-height: 1.1; }
.screen .stamp { font-size: 0.86em; line-height: 1.35; }
.app-eye { font-size: 0.84em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }
.app-eye.pad { margin: 1em 0 0.2em; }
.app-note { margin-top: auto; padding: 0.8em 0 0.6em; font-size: 0.86em; color: var(--ink3); }
.tile { background: var(--surface); border: 1px solid var(--hair); border-radius: 1.1em; padding: 0.85em 0.9em 0.6em; box-shadow: inset 0 1px 0 var(--lit); }
.big { display: flex; align-items: baseline; gap: 0.15em; font-size: 2.45em; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin: 0.1em 0 0.15em; }
.big > .up { font-size: 0.6em; }
.spark { display: block; width: 100%; height: auto; }
.spark text { font: 500 10px var(--font); fill: var(--ink3); font-variant-numeric: tabular-nums; }
.spark .grid { stroke: var(--hair); }
.spark .line { fill: none; stroke: var(--green-hi); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--green-hi); opacity: 0.14; }
.spark .dot { fill: var(--green-hi); }
.list { list-style: none; }
.list .row { display: flex; justify-content: space-between; align-items: center; gap: 0.7em; padding: 0.58em 0; border-bottom: 1px solid var(--hair); }
.list .row:last-child { border-bottom: 0; }
.up { color: var(--pos); }
.down { color: var(--neg); }
.chips { display: flex; gap: 0.4em; margin-bottom: 0.6em; }
.chips span { font-size: 0.82em; padding: 0.3em 0.75em; border-radius: 99px; background: var(--surface); color: var(--ink2); border: 1px solid var(--hair); }
.chips .on { background: var(--green); color: #f7f5ee; border-color: transparent; }

/* Signals */
.sig .row { justify-content: flex-start; }
.ring { position: relative; width: 2.6em; height: 2.6em; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .rt { stroke: var(--hair); }
.ring .rv { stroke: var(--green-hi); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--s)); }
.ring b { position: relative; font-size: 0.92em; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.who .stamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b { font-weight: 600; }
.chg { white-space: nowrap; }

/* Flows */
.periods { display: flex; gap: 0.3em; padding: 0.25em; border-radius: 0.9em; background: var(--surface); border: 1px solid var(--hair); }
.periods button {
  position: relative; flex: 1; min-height: 2.35em; border: 0; border-radius: 0.65em; background: transparent; color: var(--ink2);
  font: 600 0.85em/1 var(--font); cursor: pointer; font-variant-numeric: tabular-nums; transition: transform 100ms ease-out, background-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.periods button::before { content: ""; position: absolute; inset: -6px -1px; } /* 44px hit area */
.periods button:active { transform: scale(0.94); }
.periods button[aria-pressed="true"] { background: var(--green); color: #f7f5ee; }
.flows { list-style: none; display: grid; gap: 0.7em; margin-top: 0.4em; }
.ftot { margin-top: 0.8em; display: flex; justify-content: space-between; align-items: center; gap: 0.5em; padding: 0.7em 0.9em; }
.ftot b { font-size: 1.35em; letter-spacing: -0.02em; }
.flows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "t t"; gap: 0.3em 0.5em; align-items: center; font-size: 0.92em; }
.fname { grid-area: n; } .fval { grid-area: v; } .ftrack { grid-area: t; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftrack { position: relative; height: 0.6em; }
.ftrack::after { content: ""; position: absolute; left: 33.333%; top: -0.35em; bottom: -0.35em; width: 1px; background: var(--ink3); opacity: 0.6; }
.ftrack i { position: absolute; top: 0; bottom: 0; border-radius: 0.2em; transition: transform 0.6s var(--spring); }
.fneg { left: 0; width: 33.333%; background: var(--neg); transform-origin: right center; transform: scaleX(var(--w)); }
.fpos { left: 33.333%; width: 66.667%; background: var(--green-hi); transform-origin: left center; transform: scaleX(var(--w)); }
.fval { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.axis { margin-top: 0.5em; padding-top: 0.3em; border-top: 1px solid var(--hair); color: var(--ink3); font-size: 0.86em; }
.ticks { display: block; position: relative; height: 1.3em; font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; left: calc(var(--x) * 33.333%); transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }

/* News */
.row.news { flex-direction: column; align-items: flex-start; gap: 0.15em; }
.row.news b { font-weight: 600; line-height: 1.3; }
.sub { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.78em; color: var(--ink2); border: 1px solid var(--hair); border-radius: 99px; padding: 0.1em 0.55em; margin-top: 0.2em; }
.ico.xs { width: 1em; height: 1em; }

/* Research desk */
.chat { display: flex; flex-direction: column; gap: 0.7em; }
.bubble { padding: 0.7em 0.9em; border-radius: 1.1em; font-size: 0.95em; line-height: 1.42; }
.bubble.you { align-self: flex-end; max-width: 82%; background: var(--green); color: #f7f5ee; border-bottom-right-radius: 0.35em; }
.bubble.desk { align-self: flex-start; max-width: 96%; background: var(--surface); border: 1px solid var(--hair); border-bottom-left-radius: 0.35em; }
.bubble .stamp { display: block; margin-top: 0.45em; font-size: 0.9em; }
.bubble .cite { color: var(--green-hi); }
.w { transition: opacity 0.18s linear; }
.suggest { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4em; padding-bottom: 0.6em; }
.suggest span { font-size: 0.8em; padding: 0.35em 0.75em; border-radius: 99px; border: 1px solid var(--hair); color: var(--ink2); }
.composer { margin: 0 0 0.8em; padding: 0.75em 1em; border-radius: 99px; background: var(--surface); border: 1px solid var(--hair); color: var(--ink3); font-size: 0.88em; }

/* Portfolio */
.badge { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.78em; font-weight: 600; color: var(--green-hi); }
.hold .row { padding: 0.5em 0; }
.risks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; margin-top: 0.8em; }
.risk { background: var(--surface); border: 1px solid var(--hair); border-radius: 0.9em; padding: 0.6em 0.7em; display: flex; flex-direction: column; gap: 0.15em; }
.risk .app-eye { letter-spacing: 0.01em; text-transform: none; font-size: 0.86em; }
.risk b { font-size: 1.2em; letter-spacing: -0.02em; }
.optin { margin: auto 0 0.8em; display: flex; justify-content: space-between; align-items: center; gap: 0.6em; padding: 0.7em 0.8em; border-radius: 0.9em; background: var(--surface); border: 1px solid var(--hair); }
.optin > span:first-child { display: flex; flex-direction: column; }
.switch { width: 2.9em; height: 1.75em; border-radius: 99px; background: var(--hair); position: relative; flex: none; box-shadow: inset 0 0 0 1px var(--hair); }
.switch i { position: absolute; top: 0.15em; left: 0.15em; width: 1.45em; height: 1.45em; border-radius: 50%; background: #f7f5ee; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

/* Tab bar inside the phone (decorative) */
.tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 2cqw 2cqw 6.5cqw; background: var(--raised); border-top: 1px solid var(--hair); }
.tabs span { display: flex; flex-direction: column; align-items: center; gap: 0.15em; color: var(--ink3); }
.tabs .ico { width: 1.4em; height: 1.4em; }
.tabs b { font-size: 0.8em; font-weight: 500; }
.tabs .on { color: var(--green-hi); }

.shot figcaption { margin: 1rem auto 0; max-width: 17rem; text-align: center; font-size: 0.8125rem; }

/* ---------- Sections ---------- */
section.block, .pillars, .tour-sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.pillars { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head h2 { margin-top: 0.8rem; }
.sec-head .lede { margin-top: 1rem; }
.trio { display: grid; gap: 1rem; }
@media (min-width: 800px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.pillar { padding: 1.75rem 0 0.5rem; border-top: 1px solid var(--hair); }
.pillar .eyebrow { margin: 1rem 0 0.35rem; }
.pillar p:last-child { color: var(--ink2); margin-top: 0.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 24px;
  box-shadow: inset 0 1px 0 var(--lit), var(--shadow); padding: clamp(1.25rem, 3vw, 1.75rem);
}
.card.who { box-shadow: inset 0 1px 0 var(--lit); }
.card.who p { color: var(--ink2); margin-top: 0.5rem; }
.split { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.split > *, .hero-grid > *, .faq-grid > *, .trio > *, .page-hero > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split h2 { margin: 0.8rem 0 1.1rem; }
.split p { color: var(--ink2); max-width: 32rem; }
.more { margin-top: 1.25rem; }
.points { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.points li { display: flex; gap: 0.75rem; color: var(--ink2); }
.points li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.68em; border-radius: 50%; background: var(--green-hi); }
.checks { list-style: none; margin-top: 1.75rem; display: grid; gap: 1rem; }
.checks li { display: flex; gap: 0.8rem; color: var(--ink2); }
.checks li .ico { color: var(--green-hi); margin-top: 0.2em; }
.checks b { color: var(--ink); font-weight: 600; }

.specimen { margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--hair); }
.specimen .eyebrow + .spec-row { border-top: 0; margin-top: 0.4rem; }
.spec-k { color: var(--ink2); font-size: 0.9375rem; }
.spec-v { font-size: 1.125rem; font-weight: 600; text-align: right; }
.spec-v.muted { color: var(--ink3); font-weight: 500; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; justify-content: flex-end; }
.spec-tags .stamp { padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--raised); border: 1px solid var(--hair); }
.specimen figcaption { margin-top: 1.4rem; }

.privacy-card { display: grid; gap: 1.25rem; }
.lockup { width: 4.5rem; height: 4.5rem; border-radius: 1.25rem; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--hair); }
.facts { list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--hair); }
.facts span { color: var(--ink2); }
.facts b { font-weight: 600; text-align: right; }

.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } }
.faq-grid .lede { margin-top: 1rem; }
.faq { max-width: 44rem; border-top: 1px solid var(--hair); }
details { border-bottom: 1px solid var(--hair); }
details summary {
  cursor: pointer; list-style: none; min-height: 56px; padding: 0.8rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink); border-radius: 8px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; flex: none; width: 1.5rem; text-align: center; color: var(--ink3); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 0.3s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink2); padding: 0 2.5rem 1.25rem 0; overflow-wrap: anywhere; }

.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(5rem, 11vw, 8rem) 0; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .fine { position: relative; padding: 0.25rem 0.75rem; border-radius: 10px; background: var(--field); width: fit-content; max-width: 100%; }
main:focus { outline: none; }
.cta-glyph { width: 56px; height: 56px; margin-bottom: 1.25rem; }
.cta-band h2 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.045em; }
.cta-band .lede { margin: 1rem auto 0; }
.cta-band .cta-row { justify-content: center; }
.cta-band .fine { margin-inline: auto; }

footer { border-top: 1px solid var(--hair); padding: 2.5rem 0 3rem; color: var(--ink3); font-size: 0.875rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 2rem; margin-bottom: 1.25rem; }
footer .links { display: flex; gap: 0 1.4rem; flex-wrap: wrap; }
footer .links a { color: var(--ink2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer .links a:hover { color: var(--ink); }
footer p { max-width: 48rem; margin-top: 0.6rem; }

/* ---------- Product tour: stacked by default (no JS, narrow screens) ---------- */
.tour { display: grid; gap: 2.5rem; }
.device { display: contents; }
.chap { order: var(--o); max-width: 36rem; }
.tour .shot { order: var(--o); justify-self: center; margin-bottom: 2rem; }
.chap h3 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0.7rem 0 0.9rem; }
.chap > p { color: var(--ink2); }
.chap .num { color: var(--green-hi); margin-right: 0.35rem; }

/* Pinned phone, wide screens with JS: the phone stays put while chapters scroll past. */
@media (min-width: 900px) {
  .js .tour { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(3rem, 7vw, 7rem); row-gap: 0; }
  .js .chap { grid-column: 1; order: 0; min-height: 86vh; display: flex; flex-direction: column; justify-content: center; padding: 3rem 0; }
  .js .chap .eyebrow { transition: color 0.3s var(--ease); }
  .js .chap:not(.on) .eyebrow { color: var(--ink3); }
  .js .chap.on .eyebrow { color: var(--ink); }
  .js .device {
    --pw: min(312px, calc((100vh - 10rem) * 9 / 19.5));
    display: grid; grid-column: 2; grid-row: 1 / span 5; align-self: start;
    position: sticky; top: calc((100vh - var(--pw) * 19.5 / 9 - 2.5rem) / 2 + 1.75rem);
  }
  .js .device .shot { --pw: inherit; grid-area: 1 / 1; margin: 0; order: 0;
    opacity: 0; visibility: hidden; transform: translate3d(0, 28px, 0) scale(0.985);
    transition: opacity 0.35s var(--ease), transform 0.6s var(--spring), visibility 0s linear 0.6s; }
  .js .device .shot.before { transform: translate3d(0, -28px, 0) scale(0.985); }
  .js .device .shot.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease) 0.05s, transform 0.6s var(--spring), visibility 0s; }
}

/* ---------- Motion: only when JS is on, so nothing is hidden without it ---------- */
.js .h-in { opacity: 0; transform: translate3d(0, 16px, 0); }
.js .hero.in .h-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease) calc(var(--d, 0) * 90ms), transform 0.75s var(--spring) calc(var(--d, 0) * 90ms); }
.js .ribbon path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .in > .ribbon path, .js .hero.in .ribbon path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) 0.3s; }
.js .reveal { opacity: 0; transform: translate3d(0, 20px, 0); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease) calc(var(--i, 0) * 45ms), transform 0.75s var(--spring) calc(var(--i, 0) * 45ms); }
.js .cta-band.in .ribbon path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) 0.2s; }

/* Inside a screen: evidence rows follow at 45 ms intervals, rings fill, lines draw, bars grow from the axis. */
.js .shot .row { transition: opacity 0.4s var(--ease) calc(var(--i, 0) * 45ms), transform 0.55s var(--spring) calc(var(--i, 0) * 45ms); }
.js .shot:not(.on) .row { opacity: 0; transform: translate3d(0, 10px, 0); transition: none; }
.js .shot .rv { transition: stroke-dashoffset 0.9s var(--spring) 0.15s; }
.js .shot:not(.on) .rv { stroke-dashoffset: 100; transition: none; }
.js .shot .spark .line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--ease) 0.1s; }
.js .shot:not(.on) .spark .line { stroke-dashoffset: 1; transition: none; }
.js .shot .spark .area, .js .shot .spark .dot { transition: opacity 0.5s var(--ease) 0.7s; }
.js .shot:not(.on) .spark .area, .js .shot:not(.on) .spark .dot { opacity: 0; transition: none; }
.js .shot:not(.on) .ftrack i { transform: scaleX(0); transition: none; }
.js .shot.on .ftrack i { transition-delay: calc(var(--i, 0) * 45ms); }
.js .shot.on .flows.live .ftrack i { transition-delay: 0s; }
.js .typing .w { opacity: 0; }
.js .typing .w.t { opacity: 1; }

/* Digit roll for new market data (420 ms, tabular). */
.roll { display: inline-flex; height: 1.1em; overflow: hidden; line-height: 1.1; vertical-align: bottom; }
.roll .col { display: inline-flex; flex-direction: column; transition: transform 420ms var(--ease); }
.roll .col > span { height: 1.1em; display: block; text-align: center; }

/* ---------- Mobile download dock (reuses the header glass) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .js .dock {
    display: flex; align-items: center; gap: 0.5rem; position: fixed; z-index: 45;
    left: max(0.75rem, env(safe-area-inset-left)); right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    padding: 0.5rem 0.25rem 0.5rem 0.9rem; border-radius: 22px;
    background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair), 0 16px 40px rgba(0, 0, 0, 0.3);
    transform: translate3d(0, calc(100% + 2rem), 0); visibility: hidden;
    transition: transform 0.5s var(--spring), visibility 0s linear 0.5s;
  }
  .js .dock.show { transform: none; visibility: visible; transition: transform 0.5s var(--spring), visibility 0s; }
}
.dock-id { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.dock-id svg { width: 28px; height: 28px; flex: none; }
.dock-id > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dock-id b { font-size: 0.9375rem; }
.dock-id span span { font-size: 0.8125rem; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-x { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink2); border-radius: 50%; cursor: pointer; transition: transform 100ms ease-out; }
.dock-x:active { transform: scale(0.92); }

/* ---------- Prose pages (support, privacy, 404) ---------- */
.page { padding: clamp(2.5rem, 7vw, 4.5rem) 0 4rem; }
.page h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); margin: 0.8rem 0 0.6rem; }
.page .subtitle { color: var(--ink3); font-size: 0.9375rem; margin-bottom: 2.25rem; }
.page > .lede { margin-top: 1rem; }
.page-hero { display: grid; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .page-hero { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.page-hero .lede { margin-top: 0.5rem; }
.contact { display: grid; gap: 0.75rem; justify-items: start; }
.contact h2 { font-size: 1.375rem; letter-spacing: -0.02em; }
.contact p { color: var(--ink2); }
.contact .btn { margin-top: 0.5rem; max-width: 100%; overflow-wrap: anywhere; }
.quick { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 3rem; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); }
.quick .ico { color: var(--green-hi); margin-top: 0.15rem; }
.quick span { display: flex; flex-direction: column; color: var(--ink2); font-size: 0.9375rem; }
.quick b { color: var(--ink); font-size: 1rem; }
.sub-h { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.prose { max-width: 42rem; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 2.4rem 0 0.7rem; }
.prose p, .prose li { color: var(--ink2); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.55rem; }
.prose strong { color: var(--ink); }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .h-in, .js .reveal, .js .shot:not(.on) .row { transform: none; }
  .js .hero.in .h-in, .js .reveal.in { transition: opacity 0.25s ease; }
  .js .shot .row { transform: none; transition: opacity 0.2s ease; }
  .js .shot:not(.on) .row { opacity: 1; }
  .js .ribbon path, .js .shot .spark .line { stroke-dashoffset: 0 !important; transition: none !important; }
  .js .shot:not(.on) .rv { stroke-dashoffset: calc(100 - var(--s)); }
  .js .shot:not(.on) .spark .area, .js .shot:not(.on) .spark .dot { opacity: 1; }
  .js .shot:not(.on) .ftrack i { transform: scaleX(var(--w)); }
  .ftrack i, .js .shot .rv, .js .shot .spark .area, .js .shot .spark .dot { transition: none !important; }
  .js .typing .w { opacity: 1; }
  .roll .col { transition: none; }
  .btn:active, .periods button:active, .dock-x:active { transform: none; }
  details summary::after { transition: none; }
  @media (min-width: 900px) {
    .js .device .shot, .js .device .shot.before, .js .device .shot.on { transform: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
    .js .device .shot.on { transition: opacity 0.2s ease, visibility 0s; }
  }
  @media (max-width: 899px) {
    .js .dock, .js .dock.show { transform: none; opacity: 0; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
    .js .dock.show { opacity: 1; transition: opacity 0.2s ease, visibility 0s; }
  }
}
@media (prefers-reduced-transparency: reduce) {
  header.nav { background: var(--field); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--hair); }
  .js .dock { background: var(--surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  :root { --hair: rgba(247, 245, 238, 0.4); --ink2: #d6dad4; --ink3: #b6bbb4; }
  .card, .tile, .risk, .quick li { border-color: var(--ink3); }
  header.nav { background: var(--field); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--ink3); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root { --hair: rgba(18, 35, 27, 0.55); --ink2: #12231b; --ink3: #33443a; }
}
@media (forced-colors: active) {
  .btn, .periods button, .chips span, .tile, .card { border: 1px solid CanvasText; }
  .periods button[aria-pressed="true"] { border: 2px solid Highlight; }
  .fneg, .fpos, .phone, .island { forced-color-adjust: none; }
}
html:not(.js) .periods { display: none; }
/* Legibility floor for text inside the phone illustrations (12px minimum at any phone size). */
.screen .stamp, .app-eye, .app-note, .tabs b, .chips span, .sub, .badge, .axis, .periods button, .composer, .suggest span, .ring b, .flows li, .bubble .stamp, .risk .app-eye { font-size: max(12px, 0.86em); }
.spark text { font-size: 14px; }
