/* CartReady landing. Dark navy, one accent (light teal #7fdccf on dark; the dark teal is never used on navy).
   No inline styles or scripts anywhere (strict CSP). Motion: transform/opacity only, plays once, off with prefers-reduced-motion. */
:root {
  --deep: #0b1426; --raised: #101c33; --navy: #1a2c4e;
  --text: #e8eef6; --muted: #9aa8bc; --white: #fff; --tl: #7fdccf; --tl-hover: #a6e8de;
  --glass: rgba(255,255,255,.04); --hair: rgba(255,255,255,.09); --hair-2: rgba(255,255,255,.14);
  --shadow: 0 24px 60px rgba(0,0,0,.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --head: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
html, body { margin: 0; }
body { font: 18px/1.6 var(--font); color: var(--text); background: var(--deep); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: #f4f7fb; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 750; }
h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--deep); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tl); }
.lead { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 60ch; }
.note { margin-top: 12px; font-size: 15px; color: var(--muted); }
.tap { display: inline-flex; align-items: center; min-height: 44px; color: var(--tl); font-weight: 600; text-underline-offset: 3px; }
.tap:hover { color: var(--tl-hover); }

/* Buttons: light teal fill with deep-navy text, or a light outline */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 10px; font: 650 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--tl); color: var(--deep); box-shadow: 0 10px 30px -12px rgba(127,220,207,.55); }
.btn-primary:hover { background: var(--tl-hover); transform: translateY(-1px); }
.btn-secondary { color: var(--white); border-color: rgba(201,211,227,.5); background: rgba(255,255,255,.03); }
.btn-secondary:hover { background: rgba(255,255,255,.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ctas.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--head); background: rgba(11,20,38,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 100%; }
.wordmark { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 750; font-size: 20px; color: var(--white); text-decoration: none; letter-spacing: -.01em; }
.wordmark .mark { display: block; flex: none; width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; border-radius: 8px; }
.nav a:hover { color: var(--white); }
.header-ctas { display: flex; gap: 10px; margin-left: auto; }

/* 0. Opening statement */
.opening { position: relative; display: grid; align-items: center; min-height: calc(100vh - var(--head)); min-height: calc(100svh - var(--head)); text-align: center;
  background: radial-gradient(900px 560px at 50% 45%, rgba(127,220,207,.09), transparent 62%), var(--deep); }
.opening .wrap { opacity: calc(1 - var(--out, 0)); transform: translateY(calc(var(--out, 0) * -48px)) scale(calc(1 - var(--out, 0) * .04)); }
.opening-line { font-size: clamp(44px, 8vw, 112px); line-height: 1.02; font-weight: 780; letter-spacing: -.035em; color: #f4f7fb; }
.grad, h1 em { font-style: normal; color: var(--tl); background: linear-gradient(100deg, #f2fdfb 0%, var(--tl) 72%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 48px; min-height: 44px; color: var(--muted); font-size: 15px; text-decoration: none; }
.scroll-cue span { width: 2px; height: 36px; border-radius: 2px; background: linear-gradient(var(--tl), transparent); }
.js .opening-line { animation: fade-up .9s var(--ease) both; }

/* 1. Hero */
.hero { position: relative; padding: 88px 0 120px;
  background: radial-gradient(900px 560px at 74% 44%, rgba(127,220,207,.09), transparent 60%), radial-gradient(1200px 760px at 70% 30%, #1d3459 0%, var(--navy) 38%, var(--deep) 100%); }
.hero-grid { display: grid; grid-template-columns: 42fr 58fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(34px, 2.9vw, 46px); line-height: 1.1; font-weight: 760; letter-spacing: -.03em; }
h1 .ln { display: block; }
@media (min-width: 961px) { h1 .ln { white-space: nowrap; } }
.sub { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 46ch; }
.micro { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; margin: 0; padding: 0 0 40px 40px; }
.frame { border-radius: 20px; overflow: hidden; background: var(--raised); border: 1px solid var(--hair-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.75); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid var(--hair); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.frame-shot { position: relative; }
.hl { position: absolute; border-radius: 12px; border: 2px solid var(--tl); box-shadow: 0 0 0 4px rgba(127,220,207,.16), 0 0 30px rgba(127,220,207,.35); opacity: 0; pointer-events: none; }
.hl-avail { left: 1.6%; top: 22.6%; width: 30%; height: 44.6%; }
.hl-attn { left: 33.9%; top: 76.2%; width: 64.8%; height: 7.6%; }
.phone { width: 100%; padding: 8px; border-radius: 34px; background: linear-gradient(160deg, #3a4558, #151b26 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 30px 60px -20px rgba(0,0,0,.8); }
.phone-screen { border-radius: 27px; overflow: hidden; background: #f5f6f8; }
.hero-visual .phone { position: absolute; left: 0; bottom: 0; width: 25%; }
.tag { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-visual .tag { text-align: right; }
.replay { position: absolute; right: 0; bottom: 4px; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--hair-2); background: rgba(255,255,255,.04); color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.replay:hover { color: var(--white); }
.hero-visual .tag { margin-right: 96px; }

/* Hero play-once sequence (~4 s). Starting states apply only with JS and motion allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero:not(.play) .ln, .js .hero:not(.play) .sub, .js .hero:not(.play) .ctas, .js .hero:not(.play) .micro,
  .js .hero:not(.play) .frame, .js .hero:not(.play) .hero-visual .phone { opacity: 0; }
  .hero.play .ln { animation: fade-up .8s var(--ease) both; }
  .hero.play .ln:nth-child(2) { animation-delay: .55s; }
  .hero.play .ln:nth-child(3) { animation-delay: 1.1s; }
  .hero.play .sub { animation: fade-up .7s var(--ease) 1.7s both; }
  .hero.play .ctas, .hero.play .micro { animation: fade-up .7s var(--ease) 1.9s both; }
  .hero.play .frame.desk { animation: rise-in 1s var(--ease) .3s both; }
  .hero.play .hero-visual .phone { animation: phone-in 1s var(--ease) .9s both; }
  .hero.play .hl-avail { animation: hl 1.4s ease-out 2.1s both; }
  .hero.play .hl-attn { animation: hl 1.4s ease-out 2.7s both; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes hl { 0% { opacity: 0; transform: scale(1.03); } 35% { opacity: 1; transform: none; } 100% { opacity: .55; transform: none; } }

/* Sections */
section { position: relative; }
.story, .why, .founder, .pilot-sec, .faq-sec, .final { padding: 128px 0; }
.band { background: var(--raised); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.card { border-radius: 16px; padding: 28px; background: var(--glass); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow); }

/* 2. Scroll story */
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.steps { list-style: none; margin: 0; padding: 0; }
/* Inactive steps are dimmed, but at .7 every text colour still clears 4.5:1 on --deep (the lowest, --tl, is about 6.1:1; test/page.test.js checks this). */
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0; opacity: .7; transition: opacity .4s ease; }
.step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 8vh; }
.step.is-active, .step:focus-within { opacity: 1; }
.step-n { font: 650 13px/1 var(--mono); color: var(--tl); letter-spacing: .04em; }
.step p:not(.step-n) { color: var(--text); max-width: 48ch; }
.step-shot { display: none; margin: 8px 0 0; }
.stage { position: relative; }
.stage-inner { position: sticky; top: calc(var(--head) + 48px); height: min(620px, calc(100vh - var(--head) - 120px)); }
.layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s var(--ease); }
.layer.is-on { opacity: 1; transform: none; }
.layer .frame { width: 100%; }
.phone-stage { width: min(300px, 46%); }
.stage .tag { position: sticky; top: calc(100vh - 60px); text-align: right; }

/* 3. Why: bento grid. Three cited figures up top (big light-teal numbers), two qualitative points below with icons. */
.why { background: radial-gradient(900px 480px at 18% 0%, rgba(127,220,207,.07), transparent 60%), var(--raised); }
.why .sec-head { margin-bottom: 48px; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.why-grid .card { position: relative; overflow: hidden; border-radius: 20px; padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--hair-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 60px -30px rgba(0,0,0,.6); }
.why-grid .card p { color: var(--text); font-size: 16px; line-height: 1.6; }
.why-grid .card p + p { margin-top: 10px; }
.why-grid h3 { font-size: 19px; margin-bottom: 10px; }
.stat { grid-column: span 2; display: flex; flex-direction: column; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(127,220,207,.7), transparent); }
.stat::after { content: ""; position: absolute; top: -120px; right: -120px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(127,220,207,.12), transparent 70%); pointer-events: none; }
.stat-fig { display: flex; align-items: flex-start; gap: 2px; }
.stat-fig .num { font-size: clamp(40px, 3.8vw, 58px); line-height: 1.05; font-weight: 780; letter-spacing: -.035em; white-space: nowrap;
  color: var(--tl); background: linear-gradient(100deg, #f2fdfb 0%, var(--tl) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-fig .fn { font-size: 15px; line-height: 1; margin-top: 2px; }
.why-grid .card .stat-label { margin: 12px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.qual { grid-column: span 3; display: flex; gap: 20px; align-items: flex-start; padding: 28px 32px; }
.why-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--tl);
  background: rgba(127,220,207,.08); border: 1px solid rgba(127,220,207,.25); }
.why-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .js .why-grid .reveal { transition-duration: .5s; }
  .js .why-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .js .why-grid .reveal:nth-child(3) { transition-delay: .16s; }
  .js .why-grid .reveal:nth-child(5) { transition-delay: .08s; }
}
.fn { font-size: .7em; line-height: 0; }
.fn a { position: relative; display: inline; padding: 2px 3px; color: var(--tl); font-weight: 700; text-decoration: none; text-align: center; }
/* 44 x 44 px tap target from an invisible, centred pseudo-element: the glyph and the text layout don't change. */
.fn a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.fn a:hover, .fn a:focus-visible { text-decoration: underline; }
.sources { margin-top: 40px; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(11,20,38,.45); }
.sources h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sources ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: src; display: grid; gap: 6px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.sources li { counter-increment: src; position: relative; padding-left: 28px; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--deep); background: var(--tl); }
.sources li:target { color: var(--text); }
.sources a { color: var(--tl); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sources cite { font-style: italic; }

/* 4. Founder */
.founder-card { max-width: 860px; margin: 0 auto; padding: 48px 56px; border-radius: 20px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--hair-2); box-shadow: var(--shadow); }
.founder-card h2.eyebrow { font-size: 13px; letter-spacing: .12em; line-height: 1.4; }
.founder-card blockquote { margin: 0; }
.founder-card blockquote p { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.5; color: #f4f7fb; font-weight: 500; letter-spacing: -.01em; }

/* 5. Pilot */
.pilot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.terms { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.terms li { position: relative; padding-left: 32px; color: var(--text); }
.terms li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--tl); border-bottom: 2px solid var(--tl); transform: rotate(-45deg); }
.terms strong { color: var(--white); }
form.card { display: grid; gap: 18px; position: relative; }
label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--white); }
.opt { font-weight: 400; color: var(--muted); }
input, select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--white); font: 16px var(--font); }
select option { color: var(--deep); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--tl); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #fca5a5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { color: var(--white); }
.field-note { margin-top: 8px; font-size: 14px; }

/* 6. FAQ */
.faq-sec h2 { margin-bottom: 32px; }
details { border-bottom: 1px solid var(--hair); }
summary { display: flex; align-items: center; min-height: 60px; cursor: pointer; font-weight: 650; color: var(--white); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 16px; color: var(--tl); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--text); max-width: 64ch; }

/* 7. Final + footer */
.final { text-align: center; background: radial-gradient(700px 320px at 50% 50%, rgba(127,220,207,.09), transparent 70%); border-top: 1px solid var(--hair); }
.site-footer { padding: 40px 0; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.site-footer p + p { margin-top: 6px; }
.wordmark-sm { color: var(--white); font-weight: 700; }

/* Scroll reveal: 12 px rise, once */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .3s ease-out, transform .3s ease-out; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Privacy page */
.doc { padding: 72px 0 112px; }
.doc h1 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text); max-width: 70ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc code { font: 15px var(--mono); color: var(--white); }

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
}
@media (max-width: 1023px) {
  .story-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step, .step:first-child { min-height: 0; opacity: 1; padding: 28px; margin-bottom: 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); }
  .step-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair-2); }
  .step-shot.phone-sm { width: min(260px, 72%); border-radius: 22px; }
}
@media (max-width: 960px) {
  :root { --head: 60px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hide-sm { display: none; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 0 0 28px 18px; }
  .hero-visual .phone { width: 31%; border-radius: 22px; padding: 5px; }
  .hero-visual .phone .phone-screen { border-radius: 18px; }
  .hero-visual .tag { margin: 14px 84px 0 33%; text-align: left; font-size: 12px; }
  .sub { font-size: 17px; }
  .story, .why, .founder, .pilot-sec, .faq-sec, .final { padding: 80px 0; }
  .sec-head { margin-bottom: 36px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat, .qual { grid-column: auto; }
  .why-grid .card { padding: 24px; }
  .qual { gap: 16px; }
  .why-ico { width: 42px; height: 42px; }
  .sources { padding: 16px 18px; }
  .founder-card { padding: 32px 24px; }
  .pilot { grid-template-columns: 1fr; gap: 36px; }
  .card { padding: 22px; }
}
@media (max-width: 480px) {
  .opening-line { font-size: 44px; }
  h1 { font-size: 30px; }
  .site-header .wrap { gap: 12px; }
  .frame-bar { height: 26px; }
  .frame-bar i { width: 8px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening { min-height: 0; padding: 72px 0 8px; }
  .opening .wrap { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
  .js .opening-line { animation: none; }
  .hl { opacity: .55; }
  .step, .layer, .btn { transition: none; }
  .layer { transform: none; }
}
.u-back { margin-top: 40px; }
