/* OnTrack — public site. Dark departure-board identity, system fonts only (no third-party font requests). */
:root {
  --bg: #0E1116;
  --surface: #151A21;
  --surface-2: #1C222B;
  --ink: #F4F5F7;
  --muted: #9AA1AB;
  --hair: #262C35;
  --accent: #F9DA19;
  --accent-ink: #0E1116;
  --good: #4FCB8C;
  --warn: #E5B14A;
  --bad: #F0605A;
  --link: #8FB4FF;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(14, 17, 22, 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav li a { color: var(--muted); font-size: 15px; }
.nav li a[aria-current="page"], .nav li a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) { .nav ul { gap: 14px; } .nav li a { font-size: 14px; } }

/* type */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 40ch; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.prose { max-width: 66ch; display: grid; gap: 14px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose li { padding-left: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
small, .small { font-size: 14px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--ink); border-color: var(--hair); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); }
.phone { justify-self: center; width: min(320px, 80vw); border-radius: 36px; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(0,0,0,0.55); overflow: hidden; background: #000; }
.phone img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .phone { width: min(280px, 70vw); } }

/* board strip */
.board { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--surface); }
.board .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.board .cell { padding: 18px 20px 18px 0; display: grid; gap: 4px; }
.board .cell + .cell { padding-left: 20px; border-left: 1px solid var(--hair); }
.board .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.board .v { font-size: 17px; font-weight: 600; }
@media (max-width: 640px) { .board .cell + .cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); } }

/* sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--hair); }
section.block:last-of-type { border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split .copy { display: grid; gap: 16px; }
.split .copy p { color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .num { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.num.good { color: var(--good); } .num.warn { color: var(--warn); } .num.bad { color: var(--bad); }

/* coverage table */
.scroller { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); margin-top: 24px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tbody th { font-weight: 700; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.chip.m { background: #16352A; color: var(--good); }
.chip.p { background: #3A2D12; color: var(--warn); }
.chip.n { background: var(--surface-2); color: var(--muted); }
td .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* honesty list */
.rules { display: grid; gap: 14px; margin-top: 24px; max-width: 70ch; }
.rule { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.rule .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.rule p { color: var(--muted); }
.rule strong { color: var(--ink); }

/* maker */
.maker { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 24px; margin-top: 24px; max-width: 760px; }
.maker img { width: 64px; height: 64px; border-radius: 16px; }
.maker p { color: var(--muted); }

/* page header for docs */
.page-head { padding: 56px 0 24px; border-bottom: 1px solid var(--hair); display: grid; gap: 10px; }
.doc { padding: 36px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 8px; font-size: 14px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .doc .wrap { grid-template-columns: 1fr; } .toc { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.callout { background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; color: var(--muted); }
.callout strong { color: var(--ink); }
dl.faq { display: grid; gap: 22px; margin: 0; }
dl.faq dt { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
dl.faq dd { margin: 6px 0 0; color: var(--muted); max-width: 66ch; }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
