/* frontal — official site. Ink on white, like the app; motion is slow, eased and purposeful. */
:root {
  color-scheme: light;
  --ink: #111116;
  --ink-2: #55555f;
  --ink-3: #9a9aa5;
  --line: #ececf0;
  --soft: #f6f6f8;
  --bg: #ffffff;
  --green: #16a34a;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.top.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.top .bar { height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo img { width: 26px; height: 26px; }
.logo span { font-weight: 650; font-size: 19px; letter-spacing: -0.035em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav a { color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.pill { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 550; transition: transform .2s var(--ease), opacity .2s; }
.pill:hover { opacity: .86; }
.pill:active { transform: scale(.97); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; }
.section-head { max-width: 680px; margin-bottom: 72px; }

/* ---------- Buttons ---------- */
.cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border-radius: 15px; background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 24px -10px rgba(17,17,22,.5); }
.store svg { width: 22px; height: 22px; fill: #fff; }
.store small { display: block; font-size: 11px; opacity: .7; line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.text-link { font-weight: 550; font-size: 15.5px; color: var(--ink); }
.text-link span { display: inline-block; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 48px; text-align: center; overflow: hidden; }
.grid-bg { position: absolute; inset: 0; background-image: radial-gradient(#d9d9e0 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); opacity: .7; pointer-events: none; }
.hero .wrap { position: relative; }
.hero .cta { justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.8); font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin: 0 0 28px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
.headline { font-size: clamp(46px, 8vw, 96px); line-height: .98; letter-spacing: -0.045em; font-weight: 750; }
.headline .line { display: block; }
.headline em { font-style: italic; font-weight: 720; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 30em; margin: 28px auto 40px; }

/* Words rise in one after another */
.js [data-words] .w { display: inline-block; opacity: 0; transform: translateY(.38em); filter: blur(10px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(120ms + var(--i) * 70ms); }
.js [data-words].in .w { opacity: 1; transform: none; filter: none; }

/* The timeline draws itself */
.timeline { margin: 80px auto 0; max-width: 940px; }
.timeline figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.branches { width: 100%; height: auto; overflow: visible; }
.branches path { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.branches .milestones circle { fill: var(--ink); }
.branches text { font: 600 13px var(--font); text-anchor: middle; }
.branches .milestones text { fill: var(--ink-3); }
.branches .today text { font-size: 15px; font-weight: 700; fill: var(--ink); }
.branches .ends text { font: 700 18px var(--font); text-anchor: start; font-variant-numeric: tabular-nums; }
.br.gray { stroke: #b4b4bd; } .br.green { stroke: #16a34a; } .br.blue { stroke: #2f74d0; } .br.amber { stroke: #d98e04; } .br.red { stroke: #e11d48; }
.br-dash { stroke: #e11d48; stroke-dasharray: 7 8; }
.halo { fill: rgba(17,17,22,.08); transform-origin: 330px 260px; animation: halo 2.8s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.js .timeline .br { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js .timeline .br.green { transition-delay: .2s; } .js .timeline .br.blue { transition-delay: .32s; } .js .timeline .br.amber { transition-delay: .44s; } .js .timeline .br.red { transition-delay: 1.1s; }
.js .timeline.in .br { stroke-dashoffset: 0; }
.js .timeline .br-dash, .js .timeline .nodes circle, .js .timeline .ends g { opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .timeline .nodes circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition-delay: 1s; }
.js .timeline .br-dash { transition-delay: .6s; }
.js .timeline .ends g { transform: translateX(-6px); transition-delay: calc(1.5s + var(--i) * 60ms); }
.js .timeline.in .br-dash, .js .timeline.in .nodes circle, .js .timeline.in .ends g { opacity: 1; transform: none; }

/* ---------- Generic reveal ---------- */
.js [data-anim] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-anim].in { opacity: 1; transform: none; }

/* ---------- Product story ---------- */
.product { padding: 140px 0 80px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 440px; opacity: .28; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step > .num { font: 600 13px var(--font); color: var(--ink-3); letter-spacing: .08em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step > h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 16px; }
.step > p { color: var(--ink-2); margin: 0; font-size: 18px; }
.inline-phone { display: none; }
.stage { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; place-items: center; }

/* The phone */
.phone { position: relative; width: 316px; height: 650px; padding: 11px; border-radius: 56px; background: #0e0e12; box-shadow: 0 0 0 1px #2a2a31 inset, 0 50px 100px -30px rgba(17,17,22,.45), 0 30px 60px -40px rgba(17,17,22,.5); }
.phone .island { position: absolute; top: 22px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #0e0e12; z-index: 3; }
.screens { position: relative; height: 100%; border-radius: 46px; background: #fff; overflow: hidden; }
.screen { position: absolute; inset: 0; padding: 62px 18px 20px; opacity: 0; transform: scale(.985); transition: opacity .2s ease, transform .2s ease; font-size: 13px; }
.screen.on { opacity: 1; transform: none; transition: opacity .5s var(--ease) .15s, transform .6s var(--ease) .15s; }
.example { position: absolute; bottom: -30px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); }

.app-top { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
.app-top img { width: 18px; height: 18px; }
.app-top span { font-weight: 650; font-size: 15px; letter-spacing: -0.035em; }
.app-title { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; text-align: center; margin: 4px 0 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 6px 18px -10px rgba(17,17,22,.2); font-size: 13.5px; }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.caret { width: 1.5px; height: 16px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fff; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin: 0 0 6px; }

.result { margin-top: 14px; }
.card-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.card-meta .topic { color: #2f74d0; font-weight: 650; }
.card-title { font-weight: 650; font-size: 15px; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 12px; }
.opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.opts li { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 7px; font-size: 12.5px; }
.opts li .lbl { color: var(--ink-2); }
.opts li b { font-variant-numeric: tabular-nums; font-weight: 650; }
.opts li i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; border-radius: 4px; background: var(--soft); overflow: hidden; }
.opts li i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(1.9s + var(--i) * 110ms); }
.opts li:first-child i::after { background: #2f74d0; }
.on .opts li i::after { transform: none; }
.went { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--line); }
.went .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.s-decide .result, .s-decide .went { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.s-decide .result { transition-delay: 1.6s; }
.s-decide .went { transition-delay: 2.5s; }
.s-decide.on .result, .s-decide.on .went { opacity: 1; transform: none; }

.prompt p:last-child { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 550; }
.routes { list-style: none; padding: 0; margin: 16px 2px 0; display: grid; gap: 15px; }
.routes li > div:first-child { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; }
.routes li span { color: var(--ink-2); }
.routes li b { font-variant-numeric: tabular-nums; font-weight: 650; }
.track { position: relative; height: 6px; border-radius: 6px; background: var(--soft); }
.track i { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 6px; background: var(--c); transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(.35s + var(--i) * 140ms); }
.on .track i { transform: none; }
.routes li { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(.25s + var(--i) * 140ms); }
.on .routes li { opacity: 1; transform: none; }
.fine { font-size: 11px; color: var(--ink-3); text-align: center; margin: 18px 0 0; }

.checkin { padding: 16px; }
.checkin .q { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; }
.rates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.rates span { display: grid; justify-items: center; gap: 5px; padding: 8px 0; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 600; }
.rates i { width: 7px; height: 7px; border-radius: 50%; }
.on .rates .pick { animation: tap .5s var(--ease) .7s forwards; }
@keyframes tap { 40% { transform: scale(.92); } 100% { transform: none; background: rgba(255,255,255,.24); } }
.week { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; height: 64px; margin: 18px 0 8px; }
.week span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; font-size: 9.5px; color: rgba(255,255,255,.45); }
.week span.now { color: #fff; font-weight: 700; }
.week i { width: 8px; height: var(--h); border-radius: 8px; background: var(--c); transform: scaleY(.15); transform-origin: bottom; transition: transform .8s var(--ease); transition-delay: calc(1s + var(--i) * 70ms); }
.on .week i { transform: none; }
.streak { font-size: 11px; opacity: .6; margin: 6px 0 0; }
.mini { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 2px; }
.mini span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); grid-column: 1 / -1; }
.mini b { font-size: 30px; letter-spacing: -0.03em; }
.mini em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--green); }
.s-check .mini { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease) 1.7s, transform .6s var(--ease) 1.7s; }
.s-check.on .mini { opacity: 1; transform: none; }

/* ---------- Numbers ---------- */
.numbers { padding: 72px 0 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(#fff, var(--soft)); }
.numbers .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat b { display: block; font-size: clamp(44px, 5.4vw, 68px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat span { color: var(--ink-2); font-size: 16px; }
.source { font-size: 13px; color: var(--ink-3); margin-top: 40px; }

/* ---------- Principles ---------- */
.principles { padding: 140px 0; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cols > div { padding-top: 28px; border-top: 1px solid var(--ink); }
.cols svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ---------- Closing ---------- */
.closing { position: relative; text-align: center; padding: 140px 0 160px; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(17,17,22,.06), transparent); pointer-events: none; }
.closing .wrap { position: relative; }
.closing .mark { width: 56px; height: 56px; margin: 0 auto 32px; }
.closing h2 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 44px; }
.closing .cta { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-3); }
footer .logo img { width: 20px; height: 20px; }
footer .logo span { font-size: 16px; color: var(--ink); }

/* ---------- Legal pages (when they go back on) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 700px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.035em; margin-bottom: 8px; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 650; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 72px 0 32px; }
  .timeline { margin-top: 56px; }
  .nav a:not(.pill) { display: none; }
  .product { padding: 96px 0 40px; }
  .section-head { margin-bottom: 40px; }
  .story { display: block; }
  .stage { display: none; }
  .step { min-height: 0; opacity: 1; max-width: none; padding: 0 0 72px; }
  .inline-phone { display: flex; justify-content: center; margin-top: 36px; }
  .numbers .row, .cols { grid-template-columns: 1fr; gap: 36px; }
  .principles, .closing { padding: 96px 0; }
  .closing h2 br { display: none; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .cta { gap: 20px; }
  .inline-phone .phone { transform: scale(.94); transform-origin: top center; margin-bottom: -36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-anim], .js [data-words] .w { opacity: 1; transform: none; filter: none; }
  .js .timeline .br { stroke-dashoffset: 0; }
  .js .timeline .br-dash, .js .timeline .nodes circle, .js .timeline .ends g { opacity: 1; transform: none; }
}
