/* Roadtracer landing page. Tokens from brand/tokens/tokens.css (dark default).
   Mobile first; no external requests; fonts subset to Latin WOFF2 (see README). */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/bc-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/bc-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url("fonts/mono.woff2") format("woff2"); }

:root {
  --amber: #FFB400; --asphalt: #15171A; --tarmac: #262A30; --kerb: #3A4048; --shoulder: #30353C;
  --concrete: #A6AEB8; --chalk: #F4F2EC; --red: #E5322D; --red-bright: #FF7064; --green: #2FB45A;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--asphalt); color: var(--chalk);
  font: 400 1rem/1.55 var(--body);
}
img, svg { display: block; }
.sprite { position: absolute; }
a { color: var(--amber); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.num { font-variant-numeric: tabular-nums; }
.plate { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; }
.muted { color: var(--concrete); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.icon-lg { width: 2rem; height: 2rem; }
.alert-ink { color: var(--red-bright); }
.caution-ink { color: var(--amber); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--amber); color: var(--asphalt); padding: 0.6rem 1rem; font-weight: 600; border-radius: 4px; }
.skip:focus { top: 1rem; }

/* Headings sit closer to what they introduce than to what came before */
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); text-transform: none; }
h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 0.4rem; }
p { margin: 0 0 1rem; }

/* ── Header ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(21, 23, 26, 0.96); border-bottom: 1px solid var(--kerb); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--chalk); }
.wordmark { font: 800 1.6rem/1 var(--head); letter-spacing: 0.02em; color: var(--chalk); margin: 0; }
.wordmark span { color: var(--amber); }
.wordmark.small { font-size: 1.4rem; margin-bottom: 0.4rem; }
.nav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.6rem 0.7rem; color: var(--chalk); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 4px; }
.nav a:hover { background: var(--tarmac); }
.nav-signin { border: 1px solid var(--kerb); }
/* Small phones: keep only Prices and Sign in so the bar never wraps */
@media (max-width: 40rem) {
  .nav li:nth-child(1), .nav li:nth-child(3) { display: none; }
  .wordmark { font-size: 1.35rem; }
}

/* ── Buttons / CTA ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.5rem; padding: 0.9rem 1.5rem; border-radius: 8px;
  font: 700 1.3rem/1.1 var(--head); letter-spacing: 0.02em; text-decoration: none; text-transform: uppercase;
  transition: transform 120ms var(--ease), background-color 120ms var(--ease);
}
.btn-primary { background: var(--amber); color: var(--asphalt); box-shadow: 0 4px 0 #b37e00; }
.btn-primary:hover { background: #ffc233; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #b37e00; }
.btn .icon { width: 1.5rem; height: 1.5rem; }
.cta-block { margin: 1.75rem 0 1.25rem; }
.cta-deck { margin: 0.75rem 0 0; color: var(--concrete); font-size: 0.95rem; }
.cta-center { text-align: center; }
@media (max-width: 40rem) { .btn { width: 100%; } }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 2.5rem 0 3.5rem; background:
  linear-gradient(180deg, rgba(21,23,26,0) 60%, var(--asphalt)),
  repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255,180,0,0.035) 22px 44px); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } .hero { padding: 4.5rem 0 5rem; } }
.eyebrow { font: 700 1rem/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 0.75rem; }
.lede { font-size: 1.2rem; color: var(--chalk); margin-top: 1.1rem; max-width: 36rem; }
.lede strong { color: var(--amber); font-weight: 600; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.hero-proof li { display: flex; gap: 0.5rem; align-items: center; color: var(--concrete); font-size: 0.95rem; }
.hero-proof .icon { color: var(--green); }

/* The phone demonstration */
.phone { margin: 0 auto; width: 100%; max-width: 22rem; }
.phone-screen {
  background: #0d0e10; border: 10px solid #23262b; border-radius: 2rem; padding: 1rem 0.9rem 1.25rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.phone-time { text-align: center; font: 800 3rem/1 var(--head); margin: 0.5rem 0 1rem; color: var(--chalk); }
.alert-card {
  background: var(--shoulder); border-left: 4px solid var(--red); border-radius: 8px; padding: 0.8rem 0.9rem;
  animation: slide-in 400ms var(--ease) 300ms both;
}
/* transform only: the card stays readable if the animation never runs */
@keyframes slide-in { from { transform: translateY(-12px); } to { transform: none; } }
.alert-head { display: flex; gap: 0.4rem; align-items: center; font-size: 0.75rem; color: var(--concrete); letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.alert-head .icon { width: 1rem; height: 1rem; color: var(--red-bright); }
.alert-title { font-weight: 600; margin: 0 0 0.15rem; line-height: 1.35; }
.alert-body { margin: 0; color: var(--concrete); font-size: 0.95rem; }
.alert-action { margin: 0.4rem 0 0; color: var(--amber); font-weight: 600; font-size: 0.9rem; }
.fuel-card { margin-top: 0.75rem; background: var(--tarmac); border-radius: 8px; padding: 0.7rem 0.8rem 0.6rem; }
.fuel-card-head, .fuel-card-foot { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--concrete); }
.fuel-chart { width: 100%; height: 7rem; margin: 0.3rem 0; overflow: visible; }
.fuel-chart .grid { stroke: var(--kerb); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.fuel-chart .level { stroke: var(--amber); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.fuel-chart .drain { stroke: var(--red); }
.fuel-chart .drain-dot { fill: var(--red); }
.drain-label { color: var(--red-bright); font-weight: 600; }
.phone figcaption { text-align: center; color: var(--concrete); font-size: 0.9rem; margin-top: 1rem; }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--tarmac); }
.section-lede { font-size: 1.125rem; color: var(--concrete); max-width: 42rem; margin-bottom: 2rem; }

.leaks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 44rem) { .leaks { grid-template-columns: 1fr 1fr; } }
.leak { background: var(--tarmac); border: 1px solid var(--kerb); border-radius: 8px; padding: 1.25rem; }
.leak p { margin: 0; color: var(--concrete); }

.sum { margin-top: 2rem; border: 2px dashed var(--amber); border-radius: 8px; padding: 1.25rem 1.5rem; max-width: 32rem; }
.sum h3 { margin-top: 0; }
.sum-rows { margin: 0.75rem 0; }
.sum-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--kerb); }
.sum-rows dt { color: var(--concrete); }
.sum-rows dd { margin: 0; font-weight: 600; }
.sum-total { color: var(--amber); font: 800 1.6rem/1 var(--head); }
.sum p { margin: 0; font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-no { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 8px; background: var(--amber); color: var(--asphalt); font: 800 1.8rem/1 var(--head); }
.steps p { color: var(--concrete); margin: 0; }
.trace-rule { margin-top: 2.5rem; height: 4px; background: repeating-linear-gradient(90deg, var(--amber) 0 18px, transparent 18px 30px); opacity: 0.6; }

.features { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 44rem) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--tarmac); border-radius: 8px; padding: 1.4rem; border-top: 3px solid var(--amber); }
.feature .icon-lg { color: var(--amber); }
.feature ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--concrete); }
.feature strong { color: var(--chalk); }
.note { display: flex; gap: 0.75rem; align-items: flex-start; margin: 2rem 0 0; color: var(--concrete); max-width: 46rem; }
.note .icon { margin-top: 0.2rem; color: var(--concrete); }
.note strong { color: var(--chalk); }

/* Comparison table: scrolls sideways on phones instead of squashing */
.table-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid var(--kerb); }
.compare { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kerb); }
.compare thead th { font: 700 1.05rem/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--concrete); background: var(--asphalt); }
.compare tbody th { font-weight: 600; width: 32%; }
.compare td { color: var(--concrete); }
.compare td .icon { display: inline-block; vertical-align: -0.25rem; margin-right: 0.3rem; width: 1.1rem; height: 1.1rem; }
.compare .yes { color: var(--green); }
.compare .no { color: var(--red-bright); }
.compare .us { background: rgba(255, 180, 0, 0.08); color: var(--chalk); font-weight: 600; }
.compare thead .us { color: var(--amber); }
.compare tr:last-child > * { border-bottom: 0; }

/* Prices */
.plans { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 56rem) { .plans { grid-template-columns: 1fr 1.1fr 1fr; } }
.plan { background: var(--tarmac); border: 1px solid var(--kerb); border-radius: 8px; padding: 1.5rem; }
.plan h3 { margin-top: 0; }
.plan ul { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--concrete); }
.plan strong { color: var(--chalk); }
.plan-featured { border: 2px solid var(--amber); }
.plan-flag { display: inline-block; background: var(--amber); color: var(--asphalt); font: 700 0.85rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.35rem 0.6rem; border-radius: 4px; margin-bottom: 0.75rem; }
.price { margin: 0.5rem 0 0; }
.price > span:first-child { font: 800 2.25rem/1 var(--head); }
.per { color: var(--concrete); font-size: 0.9rem; }
.note-plain { color: var(--concrete); margin: 1.25rem 0 0; }
/* Unset prices stay loud until the owner fills them in */
.todo { outline: 2px dashed var(--red-bright); outline-offset: 2px; }

.guarantee { margin-top: 2.5rem; background: var(--amber); color: var(--asphalt); border-radius: 8px; padding: 1.5rem 1.75rem; max-width: 46rem;
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(21,23,26,0.06) 14px 28px); }
.guarantee h3 { margin: 0 0 0.5rem; font-size: 1.9rem; text-transform: uppercase; }
.guarantee p { margin: 0; font-size: 1.1rem; }

/* FAQ: tap targets, no hover-only content */
details { border-bottom: 1px solid var(--kerb); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 800 1.75rem/1 var(--head); color: var(--amber); }
details[open] summary::after { content: "−"; }
details p { color: var(--concrete); margin: 0 0 1.25rem; }

.final { padding: 4.5rem 0; text-align: center; border-top: 4px solid var(--amber); }
.final h2 { max-width: 44rem; margin: 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--kerb); padding: 2rem 0 2.5rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-links a { display: inline-block; padding: 0.4rem 0; }
