:root {
  --bg: #f6f7fa; --surface: #ffffff; --band: #eef1f6; --line: #dde1ea;
  --text: #121620; --muted: #5d6579; --mint: #0f9f8c; --mint-ink: #ffffff; --violet: #6d4fd6; --warn: #d08a1c;
  --sans: "Space Grotesk", system-ui, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14; --surface: #151923; --band: #11141c; --line: #262c3d;
    --text: #e8eaf0; --muted: #8a92a6; --mint: #5eead4; --mint-ink: #0d0f14; --violet: #a78bfa; --warn: #fbbf24;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); }
a { color: var(--mint); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 12px; }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--mint); color: var(--mint-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; }

header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { height: 64px; justify-content: space-between; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.mark { height: 1.5em; width: 1.5em; vertical-align: -0.4em; margin-right: 0.15em; border-radius: 24%; }
.wordmark { height: 2em; width: auto; vertical-align: -0.45em; }
.links { display: flex; gap: 22px; }
.links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.links a:hover { color: var(--text); }

section { padding: 88px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.sub { color: var(--muted); font-size: 1.1rem; margin: 10px 0 36px; max-width: 640px; }

.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--mint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 20px 0 28px; max-width: 560px; }
.cta { flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

h1 em { font-style: normal; color: var(--mint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The demonstration: four scenes in a small copy of the app, played in turn by landing.js. */
.demo { min-width: 0; }
.demo-frame { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(15, 20, 40, 0.45); }
.demo-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px 8px; font-size: 0.95rem; }
.demo-top .mark { margin: 0; }
.demo-tag { margin-left: auto; font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.demo-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); height: 38px; overflow: hidden; }
.tab { padding: 8px 8px; font-size: 0.85rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.demo[data-scene="0"] .demo-tabs .tab { visibility: hidden; }
.demo[data-scene="1"] .t-home, .demo[data-scene="3"] .t-home, .demo:not([data-scene]) .t-home,
.demo[data-scene="2"] .t-new { color: var(--text); font-weight: 600; border-bottom-color: var(--mint); }
.demo[data-scene="1"] .tab { animation: pop 0.45s both; }
.demo[data-scene="1"] .t-trip { animation-delay: 0.25s; } .demo[data-scene="1"] .t-debt { animation-delay: 0.45s; }
.t-new { display: none; }
.demo[data-scene="2"] .t-new { display: block; animation: pop 0.5s 2.3s both; }
.demo[data-scene="3"] .t-new { display: block; }
.demo-stage { position: relative; height: 300px; }
.scene { position: absolute; inset: 0; padding: 18px; display: none; flex-direction: column; gap: 12px; }
.scene.on, .demo:not([data-scene]) .scene[data-n="1"] { display: flex; }
.ask, .say, .working { margin: 0; font-size: 0.95rem; max-width: 86%; }
.ask { background: var(--band); border-radius: 14px 14px 14px 4px; padding: 10px 14px; align-self: flex-start; }
.say { background: var(--mint); color: var(--mint-ink); border-radius: 14px 14px 4px 14px; padding: 10px 14px; align-self: flex-end; min-height: 2.6em; }
.say span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: blink 1s steps(2) infinite; }
.working { color: var(--muted); align-self: center; margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--mint); color: var(--mint); border-radius: 99px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }
.chip.off { border-color: var(--line); color: var(--muted); font-weight: 400; }
.tiles, .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile, .card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile { border-top: 3px solid var(--mint); } .tile:nth-child(2) { border-top-color: var(--warn); } .tile:nth-child(3) { border-top-color: var(--violet); }
.tile span, .card span { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.tile b, .card b { font-size: 1.05rem; } .tile small, .card small { font-size: 0.7rem; color: var(--muted); }
.good { color: var(--mint); } .violet { color: var(--violet); }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--band); position: relative; overflow: hidden; margin: 3px 0; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; background: var(--mint); border-radius: 99px; }
.w60::after { width: 60%; } .w63::after { width: 63%; }
.scene .bars { margin-top: 4px; gap: 10px; }
.cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; height: 110px; margin-top: auto; }
.cols div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 0.72rem; color: var(--muted); }
.cols i { width: 100%; border-radius: 6px 6px 0 0; background: var(--mint); transform-origin: bottom; animation: grow 0.6s 2.9s both; }
.cols i.warn { background: var(--warn); }
.h48 { height: 48%; } .h55 { height: 55%; } .h62 { height: 62%; } .h70 { height: 70%; } .h100 { height: 100%; }
.scene.on .pop { animation: pop 0.45s both; }
.q1 { animation-delay: 0.15s !important; } .q2 { animation-delay: 0.4s !important; } .q3 { animation-delay: 0.65s !important; } .q4 { animation-delay: 0.9s !important; }
.d3 { animation-delay: 2.5s !important; } .d4 { animation-delay: 2.9s !important; } .d5 { animation-delay: 3.3s !important; }
.d6 { animation-delay: 3.7s !important; } .d7 { animation-delay: 4.4s !important; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes blink { to { opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }

.demo-bar { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.demo-play { flex: none; width: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--muted); cursor: pointer; font-size: 0.7rem; }
.demo-steps { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: d; }
.demo-steps button { counter-increment: d; width: 100%; height: 100%; text-align: left; font: inherit; font-size: 0.8rem; line-height: 1.25; color: var(--muted);
  background: none; border: 0; border-top: 3px solid var(--line); padding: 8px 2px 0; cursor: pointer; position: relative; }
.demo-steps button::before { content: counter(d) " "; font-family: var(--mono); }
.demo-steps button::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--mint); transform: scaleX(0); transform-origin: left; }
.demo-steps button.done::after { transform: none; }
.demo-steps button.now { color: var(--text); font-weight: 600; }
.demo-steps button.now::after { animation: fill var(--scene, 7s) linear both; }
.demo.paused .demo-steps button.now::after { animation: none; transform: none; }
.demo-play:focus-visible, .demo-steps button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.feature.yours { border-top: 3px solid var(--mint); border-radius: 0 0 16px 16px; }
.step { margin: 0 0 10px; color: var(--mint); font-size: 1.3rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene.on .pop, .demo .tab, .cols i, .say span::after, .demo-steps button.now::after { animation: none !important; }
  .demo-steps button.now::after { transform: none; }
}

.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 96px 1fr 64px; gap: 10px; align-items: center; font-size: 0.9rem; }
.bar i { height: 8px; border-radius: 99px; background: var(--band); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; background: var(--mint); border-radius: 99px; }
.w72::after { width: 72%; } .w94::after { width: 94%; } .w41::after { width: 41%; } .w58::after { width: 58%; }
.bar i.warn::after { background: var(--warn); }
.bar b { text-align: right; font-weight: 400; color: var(--muted); }

.grid { display: grid; gap: 18px; }
.three { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border-top: 3px solid var(--mint); background: var(--surface); border-radius: 0 0 16px 16px; color: var(--muted); }
.steps li::before { content: counter(s); display: block; font-family: var(--mono); color: var(--mint); font-size: 1.4rem; margin-bottom: 8px; }
.steps b { color: var(--text); display: block; margin-bottom: 4px; }

.security { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { padding-left: 34px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); font-size: 0.8rem; display: grid; place-items: center; font-weight: 700; }
.checks b { color: var(--text); }

.prices { max-width: 760px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.price-card.best { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.price-card .tag { position: absolute; top: -12px; right: 20px; margin: 0; background: var(--mint); color: var(--mint-ink); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.amount { margin: 4px 0 8px; color: var(--muted); }
.amount .num { font-size: 2.4rem; font-weight: 700; color: var(--text); font-family: var(--sans); }
.price-card ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); }
.price-card .btn { margin-top: auto; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 24px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { color: var(--muted); margin: 10px 0 0; }

.closing h2 { margin-bottom: 24px; }
.waitlist { margin: 40px auto 0; max-width: 520px; }
.waitlist label { display: block; color: var(--muted); margin-bottom: 12px; }
.waitlist-row { gap: 10px; justify-content: center; flex-wrap: wrap; }
.waitlist input { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; }
.waitlist input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.foot { justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .security { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .three, .two, .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { gap: 36px; }
  .demo-steps { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .tile b, .card b { font-size: 0.95rem; }
  .scene { padding: 14px; }
  .actions .ghost { display: none; }
  header.top .btn { padding: 8px 12px; font-size: 0.9rem; }
}
