/* Kemet-Tron — palette and type from the app's design tokens */
:root {
  --bg: #0c0d0f;
  --surface: #17191c;
  --raised: #202328;
  --text: #efe6d3;
  --muted: #aeb2b8;
  --gold: #d9a441;
  --gold-deep: #b98524;
  --line: #2c3036;
  --ok: #6fc49a;
  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Pre-launch notice */
.notice {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 9px 16px;
}
.notice strong { color: var(--text); font-weight: 600; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 13, 15, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand svg { width: 16px; height: 34px; flex: none; }
.brand span { font-family: var(--display); font-size: 20px; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--bg); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--gold); color: var(--bg);
  font: 600 16px var(--sans); text-decoration: none;
  border: 0; border-radius: 14px; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: #e6b556; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #4a4f57; }
.btn.ghost:hover { border-color: var(--text); background: transparent; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); letter-spacing: -.005em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.van { position: relative; margin: 0; }
.van img {
  width: 100%; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 60% at 50% 52%, #000 62%, transparent 100%);
}
.van figcaption { text-align: center; font-size: 12.5px; color: #7d828a; margin-top: -6px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 40px; gap: 8px; }
  .van { order: -1; max-width: 460px; margin: 0 auto; }
}

/* Sections */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { max-width: 40em; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.points h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.35; }
.points p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }

/* Flat-rate comparison */
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 28px; }
.compare .row { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 14px; font-size: 14.5px; color: var(--muted); }
.compare .row + .row { margin-top: 14px; }
.bar { height: 14px; border-radius: 7px; background: #3a3f46; position: relative; }
.bar.peak::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34%; border-radius: 0 7px 7px 0;
  background: repeating-linear-gradient(135deg, #5a606a 0 5px, #3a3f46 5px 10px); }
.bar.kt { background: var(--gold); width: 75%; }
.compare small { display: block; margin-top: 16px; color: #8a8f97; font-size: 13px; }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; position: sticky; top: 88px; }
.card h3 { font-size: 26px; }
.card > p { color: var(--muted); font-size: 15px; margin-top: 8px; }
form { display: grid; gap: 14px; margin-top: 22px; }
label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
input, select {
  min-height: 48px; padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid #3a3f46; border-radius: 12px;
  font: 16px var(--sans); width: 100%;
}
input::placeholder { color: #6d727a; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fine { font-size: 12.5px; color: #8a8f97; line-height: 1.5; }
.form-msg { display: none; border: 1px solid #2f5c48; color: var(--ok); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.form-msg.show { display: block; }
@media (max-width: 900px) { .card { position: static; } }

/* App peek */
.peek { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.phone { border: 1px solid #3a3f46; border-radius: 30px; padding: 8px; background: #000; }
.phone img { border-radius: 23px; }
.peek h2 { font-size: clamp(28px, 3.6vw, 40px); }
.peek p { color: var(--muted); margin-top: 16px; max-width: 34em; }
.tag { display: inline-block; border: 1px solid #3a3f46; color: var(--muted); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; margin-bottom: 18px; }
@media (max-width: 760px) { .peek { grid-template-columns: 1fr; gap: 32px; } .phone { max-width: 280px; margin: 0 auto; } }

/* Rollout */
.route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: linear-gradient(90deg, var(--gold) 0 33%, #3a3f46 33% 100%); }
.route li { position: relative; padding-top: 56px; }
.route li::before {
  content: attr(data-n); position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid #4a4f57; color: var(--muted);
  font: 600 15px var(--sans);
}
.route li.first::before { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.route .when { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.route li.first .when { color: var(--gold); }
.route h3 { font-size: 24px; margin-top: 8px; }
.route p { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold) 0 33%, #3a3f46 33% 100%); }
  .route li { padding: 0 0 36px 60px; }
}
.later { margin-top: 44px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 15.5px; }
.later strong { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.legal { margin-top: 14px; font-size: 13px; color: #8a8f97; max-width: 36em; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Plain pages (privacy, terms) */
.doc { padding: 64px 0 84px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc .draft { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 16px; font-size: 14px; margin: 18px 0 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Simple / Advanced toggle switch */
@view-transition { navigation: auto; }
.notice { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.mode { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px; text-decoration: none; font-size: 13.5px; font-weight: 700; color: #7d828a; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mode .track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #33373e; border: 1px solid #4a4f57; transition: background .22s, border-color .22s; flex: none; }
.mode .track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .22s cubic-bezier(.3,1.4,.5,1), background .22s; }
.mode .l-s { color: var(--text); }
.mode.adv .l-s { color: #7d828a; } .mode.adv .l-a { color: var(--gold); }
.mode.adv .track { background: var(--gold); border-color: var(--gold); }
.mode.adv .track i { transform: translateX(22px); background: var(--bg); }
.mode.flip:not(.adv) .track { background: var(--gold); border-color: var(--gold); }
.mode.flip:not(.adv) .track i { transform: translateX(22px); background: var(--bg); }
.mode.flip.adv .track { background: #33373e; border-color: #4a4f57; }
.mode.flip.adv .track i { transform: none; background: var(--text); }
.more { text-align: center; color: var(--muted); margin-top: 28px; font-size: 15.5px; }
.more a { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mode .track, .mode .track i { transition: none; } }
.btn, .btn.small { border-radius: 999px; }

/* Dark / Light toggle. Light = white page, black accents. */
.toggles { display: inline-flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; justify-content: center; }
button.mode { background: none; border: 0; font-family: inherit; }
:root[data-theme="light"] { --bg: #ffffff; --surface: #f4f2ec; --raised: #e7e3da; --text: #0c0d0f; --muted: #54585e; --gold: #0c0d0f; --gold-deep: #0c0d0f; --line: #dcd8cf; --ok: #1d7a4f; }
[data-theme="light"] .top, [data-theme="light"] .dock { background: rgba(255,255,255,.93); }
[data-theme="light"] .btn:hover { background: #2a2c30; border-color: #2a2c30; }
[data-theme="light"] .btn.ghost { border-color: #0c0d0f; color: #0c0d0f; }
[data-theme="light"] .btn.ghost:hover { background: transparent; }
[data-theme="light"] .eyebrow { border-color: #0c0d0f; }
[data-theme="light"] .van { background: #0c0d0f; border-radius: 28px; padding: 6px 6px 14px; }
[data-theme="light"] .van figcaption { color: #9a9ea5; }
[data-theme="light"] input:not([type=radio]), [data-theme="light"] select { border-color: #b9b5ab; }
[data-theme="light"] fieldset.chips span { border-color: #b9b5ab; }
[data-theme="light"] fieldset.chips input:checked + span { border-color: #0c0d0f; }
[data-theme="light"] .tile svg { background: #e7e3da; }
[data-theme="light"] .step.on { background: #e7e3da; }
[data-theme="light"] .bar { background: #e3dfd6; }
[data-theme="light"] .bar i { background: #9a968c; }
[data-theme="light"] .bar.kt, [data-theme="light"] .bar i.gold { background: #0c0d0f; }
[data-theme="light"] .stage .track { background: repeating-linear-gradient(90deg, #b9b5ab 0 14px, transparent 14px 26px); }
[data-theme="light"] .route .line { background: #dcd8cf; }
[data-theme="light"] .stop b, [data-theme="light"] .route li::before { border-color: #b9b5ab; }
[data-theme="light"] .stop.on b, [data-theme="light"] .route li.first::before { border-color: #0c0d0f; }
[data-theme="light"] .route::before { background: linear-gradient(90deg, #0c0d0f 0 33%, #dcd8cf 33% 100%); }
[data-theme="light"] .tag, [data-theme="light"] .phone { border-color: #b9b5ab; }
[data-theme="light"] .mode { color: #8a8d92; }
[data-theme="light"] .mode .track { background: #cfcabf; border-color: #b9b5ab; }
[data-theme="light"] .mode.adv .track { background: #0c0d0f; border-color: #0c0d0f; }
[data-theme="light"] .mode.adv .l-s { color: #8a8d92; }
[data-theme="light"] .fine, [data-theme="light"] .legal, [data-theme="light"] .compare small, [data-theme="light"] .save-bars .fp { color: #6b6f75; }
[data-theme="light"] dialog::backdrop { background: rgba(12,13,15,.55); }
@media (max-width: 420px) { .mode { font-size: 12.5px; gap: 7px; padding: 0 2px; } .toggles { gap: 2px 10px; } }

/* Light mode, second pass: black boxes carry gold writing; outlined things get gold trim. */
[data-theme="light"] .btn, [data-theme="light"] .nav a.btn { color: #d9a441; }
[data-theme="light"] .btn:hover { color: #e6b556; }
[data-theme="light"] .btn.ghost, [data-theme="light"] .nav a.btn.ghost { color: #0c0d0f; border-color: #d9a441; border-width: 2px; }
[data-theme="light"] .btn.ghost:hover { color: #0c0d0f; border-color: #b98524; }
[data-theme="light"] .eyebrow { border: 2px solid #d9a441; color: #0c0d0f; }
[data-theme="light"] .switch button.on { color: #d9a441; }
[data-theme="light"] .step.on { border-color: #d9a441; background: #fff; }
[data-theme="light"] .step.on b, [data-theme="light"] .stop.on b, [data-theme="light"] .route li.first::before { color: #d9a441; }
[data-theme="light"] .chip { color: #d9a441; }
[data-theme="light"] fieldset.chips input:checked + span { color: #d9a441; }
[data-theme="light"] .tile svg { background: #0c0d0f; stroke: #d9a441; }
[data-theme="light"] .pick-card:hover { border-color: #d9a441; }
[data-theme="light"] .tag { border: 2px solid #d9a441; color: #0c0d0f; }
[data-theme="light"] .van { border: 2px solid #d9a441; }
[data-theme="light"] .mode.adv .track i { background: #d9a441; }
[data-theme="light"] .tap, [data-theme="light"] .ping { border-color: #d9a441; }
[data-theme="light"] dialog { border: 2px solid #d9a441; }
[data-theme="light"] a:focus-visible, [data-theme="light"] button:focus-visible, [data-theme="light"] input:focus-visible { outline-color: #d9a441; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
