/* KeepTo site. Same tokens as the app (docs/DESIGN_SYSTEM.md). Fonts are self-hosted: no third-party requests. */
@font-face { font-family: "Atkinson"; src: url("fonts/AtkinsonHyperlegibleNext-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0B0C0B; --raised: #171917; --line: #2A2D2A; --text: #F5F5F0; --muted: #9DA39B;
  --green: #5FD68E; --amber: #F5B83D; --red: #D7262B; --ink: #0B0C0B;
  --words: "Atkinson", -apple-system, system-ui, sans-serif;
  --numbers: "Barlow", "Atkinson", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #F7F7F3; --raised: #FFFFFF; --line: #DCDDD6; --text: #0B0C0B; --muted: #52564F; --green: #0A6B3B; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--words); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--text); }
/* Wide but not edge to edge: content up to 1280 px, centred, with fluid side padding. */
.wrap { width: 100%; max-width: calc(1280px + 2 * clamp(20px, 5vw, 72px)); margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }
.muted { color: var(--muted); }

/* Header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; color: var(--text); text-decoration: none; }
.brand-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 24px; font-weight: 500; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
footer { border-top: 1px solid var(--line); margin-top: 96px; padding-block: 32px 56px; font-size: 15px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* The speed sign: the only symbol */
.sign { --size: 48px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; background: #fff;
  border: calc(var(--size) * 0.11) solid var(--red); display: grid; place-items: center;
  font: 700 calc(var(--size) * 0.4) / 1 var(--numbers); color: var(--ink); letter-spacing: -0.02em; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: center;
  min-height: min(86vh, 900px); padding-block: 32px 64px; }
.eyebrow { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 10px; }
.state-shape { width: 28px; height: 28px; flex: none; }
.state-shape path { fill: var(--green); }
.hero h1 { font-weight: 700; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 15ch; }
.hero p.lead { font-size: clamp(17px, 1.25vw, 20px); color: var(--muted); margin: 0 0 36px; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.button:hover { color: var(--bg); opacity: 0.9; }
.note { font-size: 15px; color: var(--muted); }

/* Phone mock of the Drive screen */
.phones { display: flex; gap: clamp(16px, 2vw, 32px); justify-content: center; }
.phone { width: clamp(220px, 17vw, 300px); aspect-ratio: 393 / 852; border-radius: 40px; background: var(--ink); color: #F5F5F0;
  box-shadow: 0 0 0 1px #2A2D2A, 0 30px 60px -20px rgba(0,0,0,.5); padding: 44px 18px 18px; display: flex; flex-direction: column; position: relative; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: #000; }
.phone.amber { background: var(--amber); color: var(--ink); margin-top: 48px; }
.phone .zone { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phone .zone b { display: block; font-size: 15px; line-height: 1.2; }
.phone .zone div span { display: block; font-size: 12px; opacity: .7; }
.phone .sign { --size: 40px; }
.phone .label { font-size: 14px; font-weight: 600; margin-top: 28px; }
.phone .hero-number { font: 600 118px/0.85 var(--numbers); letter-spacing: -2px; color: #5FD68E; margin-top: 6px; }
.phone.amber .hero-number { color: var(--ink); }
.phone .unit { font-size: 13px; opacity: .7; margin-top: 8px; }
.phone .stats { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .stats small { display: block; font-size: 11px; opacity: .7; }
.phone .stats strong { font: 600 34px/1 var(--numbers); }
.phone .bar { height: 4px; border-radius: 2px; background: rgba(245,245,240,.2); margin: 12px 0; overflow: hidden; }
.phone.amber .bar { background: rgba(11,12,11,.2); }
.phone .bar i { display: block; height: 100%; width: 44%; background: currentColor; }
.phone .voice { border-radius: 14px; background: #171917; text-align: center; padding: 14px 0; font-weight: 700; font-size: 14px; color: #F5F5F0; }
.phone.amber .voice { background: var(--ink); }

/* Sections */
section { padding-block: clamp(64px, 8vw, 120px) 0; }
section h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 22ch; }
section p { max-width: 62ch; }
section .sub, section > .wrap > p { color: var(--muted); font-size: clamp(18px, 1.3vw, 21px); }
.green { color: var(--green); }

.big { font: 600 64px/1 var(--numbers); display: block; margin-bottom: 12px; }
.big.green { color: var(--green); } .big.amber { color: var(--amber); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.plan.pick { border: 2px solid var(--green); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font: 600 44px/1.1 var(--numbers); margin: 8px 0 4px; }
.plan p { margin: 0; color: var(--muted); font-size: 15px; }
.free { margin-top: 16px; color: var(--muted); font-size: 16px; }


/* Document pages */
.doc { max-width: 720px; padding-top: 32px; }
.doc h1 { font-weight: 700; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.doc .summary { background: var(--raised); border-radius: 20px; padding: 24px; margin: 32px 0 8px; font-size: 20px; }
.doc .summary strong { color: var(--green); }
.doc h2 { font-size: 24px; margin: 48px 0 8px; }
.doc p, .doc li { font-size: 18px; }
.doc ul { padding-left: 22px; }
.doc .faq { border-top: 1px solid var(--line); padding: 24px 0; }
.doc .faq h2 { margin: 0 0 6px; }
.doc .faq p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; min-height: 0; }
  .plans { grid-template-columns: 1fr; }
  .phone { width: 220px; }
  .phone .hero-number { font-size: 100px; }
  .nav { gap: 16px; }
}
@media (max-width: 520px) {
  .phones .phone.amber { display: none; }
  .nav a.hide-sm { display: none; }
}

/* Waitlist */
.waitlist { display: grid; gap: 12px; max-width: 520px; }
.waitlist label { font-weight: 700; }
.waitlist-row { display: flex; gap: 12px; flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1 1 220px; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--raised); color: var(--text); font: inherit; }
.waitlist input[type=email]:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.waitlist button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.waitlist .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Capabilities bento */
.section-title { font-weight: 700; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 clamp(28px, 3vw, 48px); max-width: 20ch; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: clamp(12px, 1.2vw, 20px); }
.tile { background: var(--raised); border-radius: 28px; padding: clamp(24px, 2.4vw, 40px); display: flex; flex-direction: column;
  justify-content: space-between; gap: 24px; overflow: hidden; }
.tile h3 { font-size: clamp(19px, 1.4vw, 23px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: clamp(15px, 1vw, 17px); max-width: 44ch; }
.t-keep { grid-column: span 7; grid-row: span 2; }
.t-strip { grid-column: span 5; }
.t-amber { grid-column: span 5; background: var(--amber); color: var(--ink); }
.t-amber p { color: rgba(11, 12, 11, .72); }
.t-voice { grid-column: span 5; grid-row: span 2; }
.t-island { grid-column: span 7; }
.t-truck { grid-column: span 4; }
.t-hazard { grid-column: span 3; }
.t-private { grid-column: span 12; flex-direction: row; align-items: center; justify-content: flex-start; gap: clamp(20px, 3vw, 48px); min-height: 0; }

.keep-visual { display: flex; flex-direction: column; }
.keep-label { font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; }
.keep-number { font: 700 clamp(128px, 13vw, 220px)/0.8 var(--numbers); color: var(--green); letter-spacing: -0.03em; margin: 12px 0 8px; }
.keep-unit { color: var(--muted); font-size: clamp(16px, 1.2vw, 20px); }

.strip { width: 100%; height: auto; }
.strip .road-rest, .strip .road-done { fill: none; stroke-width: 10; stroke-linejoin: round; }
.strip .road-rest { stroke: var(--line); }
.strip .road-done { stroke: var(--text); }
.strip .gantry { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.strip .dot-ring { fill: var(--raised); }
.strip .dot { fill: var(--green); }

.amber-visual small { display: block; font-size: 16px; font-weight: 700; }
.amber-visual span { font: 700 clamp(80px, 7vw, 112px)/0.85 var(--numbers); letter-spacing: -0.02em; }

.voice-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.voice-lines li { border-left: 3px solid var(--green); padding: 2px 0 2px 16px; }
.voice-lines small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 2px; }
.voice-lines q { quotes: "“" "”"; font-size: clamp(16px, 1.2vw, 19px); font-weight: 600; line-height: 1.35; }

.island { align-self: flex-start; display: inline-flex; align-items: center; gap: 56px; background: #000; color: #F5F5F0;
  border-radius: 999px; padding: 14px 28px; box-shadow: 0 0 0 1px var(--line); }
.island-avg { font: 700 40px/1 var(--numbers); }
.island-keep { font: 700 40px/1 var(--numbers); color: #5FD68E; }

.truck-visual { display: inline-flex; align-self: flex-start; background: var(--bg); border-radius: 18px; padding: 6px; gap: 6px; }
.truck-visual .seg { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px;
  font-weight: 700; color: var(--muted); }
.truck-visual .seg.on { background: var(--text); color: var(--bg); }

.chip { align-self: flex-start; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 8px 14px; }

.private-number { font: 700 clamp(72px, 6vw, 104px)/0.8 var(--numbers); color: var(--green); }

/* Pricing and final call */
.pricing .sub { color: var(--muted); font-size: clamp(16px, 1.15vw, 19px); margin: -16px 0 0; max-width: 56ch; }
.plan { position: relative; background: var(--raised); border: 1px solid var(--line); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--green); color: var(--ink); font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; }
.final { padding-bottom: 24px; }
.final-inner { background: var(--raised); border-radius: 32px; padding-block: clamp(40px, 5vw, 80px); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.final-inner .section-title { margin: 0; }
.final-inner { max-width: 1280px; margin-inline: auto; width: calc(100% - 2 * clamp(20px, 5vw, 72px)); padding-inline: clamp(24px, 4vw, 64px); }

@media (max-width: 1100px) {
  .t-keep, .t-voice { grid-column: span 12; grid-row: span 1; }
  .t-strip, .t-amber, .t-island { grid-column: span 6; }
  .t-truck, .t-hazard { grid-column: span 6; }
}
@media (max-width: 700px) {
  .bento > .tile { grid-column: span 12; }
  .t-private { flex-direction: column; align-items: flex-start; }
  .final-inner { grid-template-columns: 1fr; }
  .island { gap: 32px; }
}

/* Hero demo drive (animated phone) */
.demo { margin: 0; display: grid; justify-items: center; gap: 20px; }
.phone.live { width: clamp(240px, 21vw, 300px); padding: 0; overflow: hidden; background: var(--ink); color: #F5F5F0;
  transition: background-color .35s ease-in-out, color .35s ease-in-out; }
.phone.live[data-state="over"] { background: var(--amber); color: var(--ink); }
.phone.live[data-state="done"] { background: #5FD68E; color: var(--ink); }
.phone.live .screen { position: absolute; inset: 0; padding: 48px 20px 20px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease-in-out, transform .35s ease-in-out; pointer-events: none; }
.phone.live[data-state="enter"] .s-enter,
.phone.live[data-state="drive"] .s-drive,
.phone.live[data-state="over"] .s-drive,
.phone.live[data-state="done"] .s-done { opacity: 1; transform: none; }

.s-enter .enter-title, .s-done .done-title { font-size: 20px; line-height: 1.2; }
.s-enter .enter-sub, .s-done .done-sub { font-size: 13px; opacity: .75; margin-top: 4px; }
.s-enter .enter-sign { margin: auto; }
.s-enter .enter-length, .s-done .done-time { display: flex; justify-content: space-between; align-items: baseline; }
.s-enter .enter-length small, .s-done .done-time small { font-size: 12px; opacity: .75; }
.s-enter .enter-length strong, .s-done .done-time strong { font: 600 30px/1 var(--numbers); }
.s-done .done-label { margin-top: auto; font-size: 14px; font-weight: 700; }
.s-done .done-number { font: 700 120px/0.85 var(--numbers); letter-spacing: -2px; margin: 6px 0 16px; }
.s-done .done-time { border-top: 1px solid rgba(11,12,11,.25); padding-top: 12px; }

.s-drive .label .over-text { display: none; }
.phone.live[data-state="over"] .s-drive .label .over-text { display: inline; }
.phone.live[data-state="over"] .hero-number { color: var(--ink); }
.phone.live .hero-number { transition: color .35s ease-in-out; font-variant-numeric: tabular-nums; }
.phone.live .stats { margin-top: auto; }
.mini-strip { width: 100%; height: auto; margin: 10px 0 12px; }
.mini-strip .road-rest, .mini-strip .road-done { fill: none; stroke-width: 12; stroke-linejoin: round; }
.mini-strip .road-rest { stroke: rgba(245,245,240,.18); }
.mini-strip .road-done { stroke: currentColor; }
.mini-strip .dot-ring { fill: var(--ink); transition: fill .35s; }
.mini-strip .dot { fill: #5FD68E; transition: fill .35s; }
.phone.live[data-state="over"] .mini-strip .road-rest { stroke: rgba(11,12,11,.2); }
.phone.live[data-state="over"] .mini-strip .dot-ring { fill: var(--amber); }
.phone.live[data-state="over"] .mini-strip .dot { fill: var(--ink); }

.voice-caption { max-width: 320px; min-height: 76px; text-align: center; }
.voice-caption small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.voice-caption q { quotes: "“" "”"; font-weight: 600; font-size: 16px; line-height: 1.4; display: inline-block; }
.voice-caption q.show { animation: caption-in .5s ease-out; }
@keyframes caption-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .phone.live, .phone.live .screen, .phone.live .hero-number { transition: none; }
  .voice-caption q.show { animation: none; }
}
