/* Spendho landing (private beta). Tokens copied from the app tokens, dark theme, dark theme. */
@font-face {
  font-family: 'Spendho Inter';
  src: url('/fonts/Inter-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #10141d;
  --surface: #181e29;
  --surface-sunken: #131923;
  --surface-raised: #202735;
  --hover: #202a3b;
  --line: #2a3343;
  --line-strong: #3a4558;
  --text: #edf1fa;
  --text-muted: #a5b2c7;
  --text-faint: #96a4ba;
  --accent: #82a5ff;
  --accent-soft: #253754;
  --accent-text: #b1c8ff;
  --on-accent: #111d34;
  --positive: #6cceaa;
  --negative: #ff9faa;
  --warning: #e9bf71;
  --forecast: #20314d;
  --violet: #c39af1;
  --shadow: 0 24px 60px #0007;

  --font: 'Spendho Inter', Inter, 'Segoe UI', system-ui, sans-serif;
  --radius-s: 5px;
  --radius: 6px;
  --radius-l: 9px;
  --radius-xl: 14px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(48px, 4.5vw, 64px);
  --bar-h: 40px;
  --promo: #4fd88a;
  --promo-strong: #13804a;
  --promo-ink: #06301c;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 430 16px/1.55 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-s); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.money-out, .money-in, .result-figure, .scenario-figures dd, .assumptions dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-out { color: var(--negative); }
.money-in { color: var(--positive); }

.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, var(--text-faint)); }
.c-amber { --c: var(--warning); }
.c-violet { --c: var(--violet); }
.c-green { --c: var(--positive); }
.c-blue { --c: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--text);
  font: 560 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); }
/* Sign-up CTAs are green; only the hero one gets the sweep and pulsing ring, so it stays the loudest */
.btn-primary[data-signup] { position: relative; border-color: var(--promo); color: var(--promo-ink); font-weight: 650; background: linear-gradient(110deg, var(--promo) 38%, #c2f7d8 50%, var(--promo) 62%) var(--promo); background-size: 260% 100%; background-position: 100% 0; }
.btn-primary[data-signup]:hover { border-color: #6be39d; background-color: #6be39d; filter: brightness(1.05); }
.cta-row .btn-primary[data-signup] { animation: btn-shine 3.6s ease-in-out 1.2s infinite; }
.cta-row .btn-primary[data-signup]::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: btn-ring 2.4s ease-out infinite; }
@keyframes btn-shine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }
@keyframes btn-ring { 0% { box-shadow: 0 0 0 0 #4fd88a99; } 70%, 100% { box-shadow: 0 0 0 12px #4fd88a00; } }
.btn-quiet:hover { background: var(--hover); border-color: var(--line-strong); }
.btn-small { height: 34px; font-size: 13px; }
.btn-large { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 8px; }

/* Announcement bar: always visible, green, the one loud element on the page */
.beta-bar { position: sticky; top: 0; z-index: 21; height: var(--bar-h); overflow: hidden; background: var(--promo-strong); color: #fff; font-size: 13px; }
.beta-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff2e 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s ease-in-out 1s infinite; pointer-events: none; }
.beta-bar-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; height: 100%; }
.beta-live { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 650; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: live 1.6s ease-out infinite; }
.beta-ticker { position: relative; display: grid; flex: 1; min-width: 0; height: 100%; align-items: center; overflow: hidden; }
.beta-ticker > span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; }
.beta-ticker > .is-current { opacity: 1; }
.beta-ticker strong { font-weight: 700; }
.beta-cta { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--promo-strong); font-size: 12px; font-weight: 700; text-decoration: none; transition: background-color .15s; }
.beta-cta:hover { background: #e2f8eb; }
.beta-cta:focus-visible { outline-color: #fff; }
@keyframes shine { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes live { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }

.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

/* Header */
.site-header { position: sticky; top: var(--bar-h); z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 740; letter-spacing: -1.4px; color: var(--text); text-decoration: none; }
.brand-mark { width: 26px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 7px; color: var(--accent); font-size: 20px; letter-spacing: 0; line-height: 1; }
.brand b { color: var(--accent); margin-left: -6px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--text); }
.link-quiet { color: var(--text-muted); font-size: 14px; text-decoration: none; transition: color .15s; }
.link-quiet:hover { color: var(--text); }
.header-login { margin-right: -12px; }

/* Shared section type */
.section { padding-block: var(--section-y); }
.section-sunken { background: var(--surface-sunken); border-block: 1px solid var(--line); }
.eyebrow { margin-bottom: 20px; color: var(--accent-text); font-size: 15px; font-weight: 560; }
h1 { font-size: clamp(38px, 3.75vw, 54px); line-height: 1.04; font-weight: 650; letter-spacing: -.04em; text-wrap: balance; }
h2 { max-width: 18ch; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 640; letter-spacing: -.04em; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 620; letter-spacing: -.01em; }
.lead { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); text-wrap: pretty; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-lead { max-width: 36em; margin-top: 24px; font-size: 18px; color: var(--text-muted); text-wrap: pretty; }

/* Hero */
.hero { padding-block: clamp(48px, 6vw, 80px) var(--section-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: 'head demo' 'copy demo'; gap: 28px clamp(40px, 5vw, 72px); align-items: start; }
.hero-head { grid-area: head; align-self: end; }
.hero-copy { grid-area: copy; }
.hero .demo { grid-area: demo; align-self: center; }
.hero .lead { margin-top: 0; }
.announce { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 4px 16px 4px 4px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--accent-soft) 55%, transparent); color: var(--text); font-size: 14px; font-weight: 540; text-decoration: none; transition: border-color .15s, background-color .15s; }
.announce:hover { border-color: var(--accent); background: var(--accent-soft); }
.announce-tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.cta-note [data-posti] { color: var(--text); font-weight: 560; font-variant-numeric: tabular-nums; }
.was { text-decoration: line-through; text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.beta-ticker .was { opacity: .8; margin-right: 2px; }
.price-inline .was, .final-note .was { text-decoration-color: var(--promo); }
.promo { color: var(--promo); font-weight: 700; }
.trust-points { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; font-size: 14px; color: var(--text-muted); }
.trust-points li { display: flex; align-items: center; gap: 10px; }
.trust-points svg, .flow-result svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--positive); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Product panels share the app's surface language */
.demo, .flow-panel, .scenario { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.demo { overflow: hidden; }
.demo-top { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.demo-title { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.demo-replay { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: transparent; color: var(--text-muted); font: 500 12px var(--font); cursor: pointer; }
.demo-replay:hover { color: var(--text); background: var(--hover); }
.demo-body { padding: 28px 28px 24px; }
.ask { justify-self: end; width: fit-content; max-width: 90%; margin-left: auto; padding: 12px 16px; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 16px; font-weight: 520; }
.status { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--text-faint); }
.status-working, .status-done { grid-column: 2; grid-row: 1; transition: opacity .2s; }
.status-working { opacity: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.answer { margin-top: 14px; }
.answer-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; font-weight: 560; letter-spacing: -.015em; }
.answer-lead strong { font-weight: 680; color: var(--negative); font-variant-numeric: tabular-nums; }
.drivers { display: grid; gap: 2px; margin-top: 12px; }
.drivers li { display: grid; grid-template-columns: 8px 88px minmax(24px, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.drivers li:last-child { border-bottom: 0; }
.driver-bar { height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.driver-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: color-mix(in srgb, var(--negative) 55%, transparent); transform-origin: left; transition: transform .6s var(--ease); }
.drivers li:nth-child(1) { --w: 100%; }
.drivers li:nth-child(2) { --w: 76%; }
.drivers li:nth-child(3) { --w: 49%; }
.drivers .money-out { text-align: right; font-weight: 560; min-width: 6ch; }
.driver-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag-owed { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.tag-once { background: var(--surface-raised); color: var(--text-muted); }
.tag-recurring { background: var(--accent-soft); color: var(--accent-text); }

.real { display: grid; gap: 2px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-sunken); font-size: 13px; }
.real-row, .real-total { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.real-row { color: var(--text-muted); }
.real-row span:last-child { color: var(--text); }
.real-total { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line-strong); align-items: baseline; font-size: 15px; font-weight: 600; }
.real-total strong { font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--promo); }
.answer-foot { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.nw { white-space: nowrap; }
.demo-foot { padding: 0 28px 18px; font-size: 11px; color: var(--text-faint); }

/* Motion is choreographed in landing.js; the default (no JS, reduced motion) is the finished state. */
.demo.is-playing .demo-body, .flow.is-playing .flow-panel { opacity: 0; }
.demo.is-working .pulse { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.status { position: relative; }
.status-working b { font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.scan { position: absolute; left: 18px; right: 0; bottom: -8px; height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; opacity: 0; }
.scan i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.char { white-space: pre-wrap; }
@keyframes pulse { 50% { opacity: .35; } }

/* Problem: three questions, each with the answer Spendho gives */
.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 0 20px; }
.usecase { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.usecase .ask { align-self: start; font-size: 15px; }
.uc-answer { display: grid; align-content: start; padding: 18px; border-radius: var(--radius-l); background: var(--surface-sunken); }
.uc-label { font-size: 13px; color: var(--text-faint); }
.uc-figure { margin-top: 2px; font-size: 30px; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.uc-figure small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.uc-bar { display: flex; gap: 3px; height: 6px; margin: 14px 0 6px; }
.uc-bar i { border-radius: 3px; background: var(--c); }
.uc-bar-trip i:nth-child(1) { flex: 620; } .uc-bar-trip i:nth-child(2) { flex: 384; }
.uc-bar-trip i:nth-child(3) { flex: 168; } .uc-bar-trip i:nth-child(4) { flex: 112; }
.uc-bar-refund i { flex: 1; background: var(--positive); }
.uc-bar-refund i:last-child { background: transparent; box-shadow: inset 0 0 0 1px var(--warning); }
.uc-bar-save { position: relative; }
.uc-bar-save i:nth-child(1) { flex: 240; } .uc-bar-save i:nth-child(2) { flex: 160; } .uc-bar-save i:nth-child(3) { flex: 120; }
.uc-bar-save::after { content: ''; position: absolute; left: 96.15%; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--text); }
.uc-rows li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.uc-rows li:last-child { border-bottom: 0; }
.uc-rows li > span:last-child { color: var(--text); font-weight: 560; font-variant-numeric: tabular-nums; }
.uc-rows .money-in { color: var(--positive); }
.uc-rows .is-pending > span:last-child { color: var(--warning); }
.uc-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
.uc-how { font-size: 15px; color: var(--text-muted); }

.free-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 40px); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 20px; background: var(--forecast); }
.free-title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; font-weight: 640; letter-spacing: -.03em; }
.free-copy { max-width: 34em; margin-top: 8px; font-size: 17px; color: var(--text-muted); }
.free-action { display: grid; justify-items: center; gap: 10px; }
.free-seats { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Actions */
.act-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.commands { display: grid; gap: 10px; margin-top: 40px; }
.commands li { width: fit-content; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-muted); font-size: 15px; transition: background-color .3s, border-color .3s, color .3s; }
.commands li::before { content: '“'; color: var(--text-faint); }
.commands li::after { content: '”'; color: var(--text-faint); }
.commands .is-current { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); color: var(--accent-text); }

.flow-panel { display: grid; padding: 8px; }
.scene { grid-area: 1 / 1; display: grid; align-content: start; }
.scene:not(.is-active) { visibility: hidden; }
.flow-command { justify-self: end; max-width: 90%; margin: 10px 8px 14px; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; font-weight: 520; }
.flow-file { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-l); background: var(--surface-sunken); font-size: 14px; overflow: hidden; }
.flow-file-meta b { font-weight: 560; font-variant-numeric: tabular-nums; }
.flow-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; }
.flow-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.flow-rows li { position: relative; transition: background-color .25s; }
.flow-rows li.is-scanning { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.tag { display: inline-grid; justify-self: start; perspective: 200px; font-size: 12px; font-weight: 560; }
.tag > span { grid-area: 1 / 1; padding: 3px 9px; border-radius: 999px; backface-visibility: hidden; }
.tag-old { background: var(--surface-raised); color: var(--text-muted); opacity: 0; }
.tag-new { background: var(--accent-soft); color: var(--accent-text); }
.flow-file svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.flow-file-name { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-file-meta { color: var(--text-faint); font-size: 13px; }
.flow-rows { margin: 6px 0; }
.flow-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 132px 86px; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.raw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 13px; letter-spacing: .01em; }
.cat { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.flow-rows .money-out, .flow-rows .money-in { text-align: right; }
.flow-result { display: flex; align-items: center; gap: 8px; padding: 16px; font-size: 15px; }
.flow-result span { color: var(--text-muted); }
.flow-result strong { color: var(--text); font-weight: 620; }
.flow-result b { font-weight: inherit; font-variant-numeric: tabular-nums; }

/* Scenario */
.scenario { display: grid; grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden; }
.scenario-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: clamp(24px, 3vw, 36px); }
.scenario .ask { margin-left: 0; justify-self: start; border-radius: 12px 12px 12px 4px; }
.scenario-toggle { display: inline-flex; width: fit-content; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-sunken); }
.scenario-toggle button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--text-muted); font: 520 13px var(--font); cursor: pointer; transition: background-color .15s, color .15s; }
.scenario-toggle [aria-pressed='true'] { background: var(--surface-raised); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.scenario-answer { max-width: 40em; min-height: 3.1em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; font-weight: 520; letter-spacing: -.01em; }
.scenario-answer strong { font-weight: 660; font-variant-numeric: tabular-nums; }
.cash-chart { width: 100%; height: auto; overflow: visible; }
.cash-chart text { font: 500 11px var(--font); fill: var(--text-faint); }
.cash-chart .grid { stroke: var(--line); stroke-width: 1; }
.cash-chart .marker { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.cash-chart .marker-label { fill: var(--text-muted); font-weight: 560; }
.cash-chart .line-base { fill: none; stroke: var(--text-faint); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .7; }
.cash-chart .line-trip { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; transition: opacity .3s; }
.cash-chart .area-trip { fill: var(--forecast); opacity: .55; transition: opacity .4s; }
.cash-chart .min-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 3; transition: opacity .3s; transform-box: fill-box; transform-origin: center; }
.cash-chart .min-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scenario[data-mode='base'] .line-trip { opacity: 0; }
.scenario[data-mode='base'] .area-trip, .scenario[data-mode='base'] .min-dot-trip { opacity: 0; }
.scenario[data-mode='trip'] .min-dot-base { opacity: 0; }
.scenario[data-mode='base'] .line-base { stroke: var(--accent); stroke-dasharray: none; opacity: 1; stroke-width: 2.2; }
.scenario.is-playing .cash-chart > * { opacity: 0; }
.scenario-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.scenario-figures dt { font-size: 13px; color: var(--text-faint); }
.scenario-figures dd { margin-top: 4px; font-size: clamp(23px, 2.4vw, 30px); font-weight: 640; letter-spacing: -.025em; }
.scenario-figures .figure-note { margin-top: 2px; font-size: 13px; font-weight: 430; letter-spacing: 0; color: var(--text-muted); white-space: normal; }
.assumptions { padding: clamp(24px, 3vw, 36px) 28px; border-left: 1px solid var(--line); background: var(--surface-sunken); }
.assumptions h3 { font-size: 15px; }
.assumptions dl { margin-top: 18px; }
.assumptions dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; transition: opacity .3s; }
.assumptions dt { color: var(--text-muted); }
.assumptions dd { font-weight: 560; }
.assume-trip dd { color: var(--accent-text); }
.scenario[data-mode='base'] .assume-trip { opacity: .4; }
.scenario[data-mode='base'] .assume-trip dd { text-decoration: line-through; }
.assumptions-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); line-height: 1.5; }

/* Trust */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.pillars li { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.pillars svg { width: 24px; height: 24px; margin-bottom: 20px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillars p { margin-top: 10px; color: var(--text-muted); max-width: 30em; }
.statement { color: var(--text); font-size: 20px; font-weight: 560; }
.trust-line { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.03em; color: var(--accent-text); }

/* Pricing: the middle plan shouts, the others wait */
.pricing-head { margin-inline: auto; text-align: center; }
.pricing-head h2, .pricing-head .section-lead { margin-inline: auto; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.plan { position: relative; display: grid; align-content: start; gap: 10px; padding: 32px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan-name { font-size: 22px; letter-spacing: -.02em; }
.plan-desc { font-size: 15px; color: var(--text-muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 30px; font-weight: 640; letter-spacing: -.03em; }
.plan-period { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.plan-features { display: grid; gap: 10px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.plan-features li { position: relative; padding-left: 24px; }
.plan-features li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 10px; height: 5px; border-left: 2px solid var(--positive); border-bottom: 2px solid var(--positive); transform: rotate(-45deg); }

.plan.is-soon { border-style: dashed; background: var(--surface-sunken); }
.plan.is-soon > :not(.soon-badge) { opacity: .55; }
.plan.is-soon .plan-features li::before { border-color: var(--text-faint); }
.soon-badge { justify-self: start; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 600; }
.soon-price span { filter: blur(5px); user-select: none; }

.plan.is-featured { gap: 12px; padding: 44px 32px 36px; border: 1.5px solid var(--promo-strong); box-shadow: 0 0 0 5px color-mix(in srgb, var(--promo-strong) 18%, transparent), 0 30px 80px #0009; }
.plan-flag { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--promo-strong); color: #fff; font-size: 12px; font-weight: 700; }
.is-featured .plan-price { font-size: 26px; color: var(--text-muted); }
.is-featured .was { position: relative; text-decoration: none; }
.is-featured .was::after { content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 3px; border-radius: 2px; background: var(--promo); transform: rotate(-8deg); transform-origin: left center; }
.plan-free { display: flex; align-items: baseline; gap: 10px; font-size: clamp(60px, 6.4vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -.055em; color: var(--promo); font-variant-numeric: tabular-nums; transform-origin: left center; }
.plan-free .plan-period { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan-free-note { font-size: 14px; color: var(--text-muted); }
.plan-cta { margin-top: 10px; width: 100%; }
.plan-sticker { position: absolute; top: -22px; right: -16px; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--promo); color: var(--promo-ink); font-size: 20px; font-weight: 800; letter-spacing: -.03em; transform: rotate(12deg); box-shadow: 0 10px 24px #0007; }
.plans.is-playing .plan-free, .plans.is-playing .plan-sticker { opacity: 0; }.plans.is-playing .was::after { transform: rotate(-8deg) scaleX(0); }
.plan-cta-quiet { margin-top: 10px; width: 100%; }

.compare { margin-top: clamp(40px, 5vw, 64px); }
.compare-title { margin-bottom: 20px; font-size: 22px; letter-spacing: -.02em; }
.compare-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { position: sticky; top: 0; background: var(--surface-sunken); font-size: 15px; font-weight: 640; }
.compare-table thead th:first-child { color: var(--text-faint); font-size: 13px; font-weight: 500; }
.compare-table tbody th { width: 30%; font-weight: 500; color: var(--text); }
.compare-table td { width: 23.33%; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.compare-table td:nth-child(3), .compare-table .col-featured { background: color-mix(in srgb, var(--promo-strong) 14%, transparent); color: var(--text); }
.compare-table td:nth-child(4), .compare-table th:nth-child(4) { opacity: .7; }
.compare-table .yes::before { content: ''; display: inline-block; width: 9px; height: 5px; margin: 0 9px 3px 1px; border-left: 2px solid var(--positive); border-bottom: 2px solid var(--positive); transform: rotate(-45deg); }
.compare-table .no { color: var(--text-faint); }
.col-tag { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--promo); }
.col-tag-soon { color: var(--text-faint); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 148px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 560; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--text-muted), var(--text-muted)) center / 12px 1.5px no-repeat, linear-gradient(var(--text-muted), var(--text-muted)) center / 1.5px 12px no-repeat; transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-text); }
.faq-list details p { max-width: 40em; padding-bottom: 24px; color: var(--text-muted); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .2s var(--ease), content-visibility .2s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* Final CTA */
.final { padding-top: 0; }
.final-panel { display: grid; justify-items: center; text-align: center; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px); border: 1px solid var(--line); border-radius: 20px; background: var(--forecast); }
.final-panel h2 { max-width: 20ch; }
.final-panel .section-lead { margin-inline: auto; }
.badge { display: inline-flex; align-items: center; height: 28px; margin-bottom: 28px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.final-actions { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
.final-login { font-size: 14px; color: var(--text-muted); }
.final-login a { color: var(--accent-text); font-weight: 560; }
.final-seats { margin-top: 28px; font-size: 15px; color: var(--text-muted); }
.final-seats strong { color: var(--text); font-weight: 620; font-variant-numeric: tabular-nums; }
.final-note { margin-top: 6px; font-size: 13px; color: var(--text-faint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 32px; min-height: 88px; font-size: 14px; color: var(--text-faint); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer-inner nav a { color: var(--text-muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--text); }
.brand-small { font-size: 18px; letter-spacing: -1px; }
.brand-small .brand-mark { width: 20px; height: 22px; font-size: 15px; border-radius: 5px; }
.brand-small b { margin-left: -5px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'head' 'copy' 'demo'; }
  .hero .demo { align-self: start; }
  h1 { font-size: clamp(40px, 7vw, 60px); }
  .act-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .scenario { grid-template-columns: minmax(0, 1fr); }
  .assumptions { border-left: 0; border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .plan.is-featured { order: -1; margin-bottom: 12px; }
  .plan-sticker { right: 8px; }
  .faq-head { position: static; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; height: 60px; }
  .beta-live-label { display: none; }
  .beta-bar { font-size: 12px; }
  .usecases { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .usecase { grid-row: auto; grid-template-rows: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .flow-rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; padding-block: 10px; row-gap: 4px; }
  .flow-rows .raw { grid-column: 1 / -1; }
  .final-actions, .free-action { width: 100%; }
  .final-actions .btn, .free-action .btn { width: 100%; }
  .header-login { margin: 0 -8px 0 auto; }
  .demo-body { padding: 22px 18px 18px; }
  .demo-foot { padding-inline: 18px; }
  .drivers li { grid-template-columns: 8px 1fr auto auto; gap: 10px; }
  .driver-bar { display: none; }
  .scenario-figures { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-wrap: wrap; gap: 12px 24px; padding-block: 24px; }
  .footer-inner nav { margin-left: 0; order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .cta-row .btn { flex: 1 1 100%; }
}

@media (scripting: none) {
  .demo.is-playing .demo-body, .flow.is-playing .flow-panel { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) { scroll-behavior: auto; }
  html:not(.motion-full) *, html:not(.motion-full) *::before, html:not(.motion-full) *::after, html:not(.motion-full) *::details-content { animation: none !important; transition: none !important; }
}
