/* TrackPeek site, Roadbook world (DESIGN.md at repo root). Light only, like the app. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --cobalt: #1E3A8A; --cobalt-tint: #DCE3F2; --on-cobalt: #F4F6FB; --on-cobalt-soft: #B9C5E4;
  --trail: #E2462B; /* track and profile cursor only: never on chrome */
  --stock: #F2F3F5; --sheet: #FCFCFD; --ink: #14161A; --stone: #545A65; --rule: #DADDE3;
  --sans: "Bricolage Grotesque", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --lift: 0 -6px 24px rgba(20,22,26,.16), 0 24px 60px rgba(20,22,26,.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  accent-color: var(--cobalt);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--stock); color: var(--ink); font: 500 18px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
::selection { background: var(--cobalt-tint); color: var(--ink); }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }
.cover :focus-visible { outline-color: var(--on-cobalt); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Condensed numeral face: big type and every number read at a glance */
.num, h1, .h2 { font-stretch: 75%; font-weight: 780; letter-spacing: -.02em; line-height: .95; }
.mono { font-family: var(--mono); font-weight: 500; }

/* Cobalt shell: bar, hero cover, closing band */
.cover { background: var(--cobalt); color: var(--on-cobalt); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-cobalt); text-decoration: none; font-size: 30px; font-stretch: 75%; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.bar nav { display: flex; align-items: center; gap: 6px; }
.bar nav a { color: var(--on-cobalt-soft); text-decoration: none; font: 500 14px var(--mono); padding: 10px 10px; border-radius: 999px; }
.bar nav a[aria-current] { color: var(--on-cobalt); }
.bar nav a:hover { color: var(--on-cobalt); }
.bar nav .get { background: var(--sheet); color: var(--ink); font: 700 15px var(--sans); padding: 10px 18px; margin-left: 6px; }
.bar nav .get:hover { color: var(--cobalt); }

/* Hero: the cover, with the real app sheet hanging off its edge like the roadbook over the map */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(60px, 8.4vw, 6rem); margin: 0 0 24px; text-wrap: balance; }
.hero .lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--on-cobalt-soft); max-width: 31em; margin: 0; }
.hero .lead b { color: var(--on-cobalt); font-weight: 650; }
.formats { margin: 36px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(185,197,228,.35); display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 15px var(--mono); color: var(--on-cobalt-soft); }
.formats b { color: var(--on-cobalt); font-weight: 700; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 22px 12px 20px; border-radius: 999px; background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.store svg { width: 20px; height: 20px; flex: none; }
.store small { font: 500 12px var(--mono); color: var(--stone); padding: 3px 8px; border-radius: 8px; background: var(--stock); }
.store[aria-disabled] { cursor: default; }
a.store:hover { background: #fff; }
.hero { padding-bottom: clamp(48px, 6vw, 80px); }
.hero-shot { position: relative; z-index: 1; margin: 0 0 calc(-1 * clamp(200px, 22vw, 300px)); justify-self: center; width: min(100%, 360px); }
.hero-shot img, .shot { border-radius: 24px; box-shadow: var(--lift); background: var(--sheet); }
.hero-shot img { animation: rise 1.1s var(--ease) both; }
@keyframes rise { from { transform: translateY(48px); } }
.after-hero { padding-top: clamp(200px, 22vw, 300px); }
.after-hero > section:first-child { padding-top: clamp(64px, 6vw, 96px); }

.cap { font: 500 12.5px/1.4 var(--mono); color: var(--stone); margin-top: 14px; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0 0; }
.h2 { font-size: clamp(44px, 5.6vw, 72px); margin: 0 0 20px; text-wrap: balance; }
.prose { max-width: 34em; color: var(--stone); margin: 0 0 8px; }
.prose b, .prose strong { color: var(--ink); font-weight: 650; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split figure { margin: 0; }
.split .shot { border-radius: 24px; }

/* Cue sheet: label over value, closed by a hairline (the app's stats table) */
.cue { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 36px 0 0; }
.cue div { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.cue dt { font-size: 14px; color: var(--stone); font-weight: 560; margin-bottom: 4px; }
.cue dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.2px; }

/* File readout: what the app recognises, set like the cursor plate's mono */
.files { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); font: 500 15px var(--mono); }
.files li span:last-child { font-weight: 700; }
.files .arrow { color: var(--stone); font-weight: 400; margin-right: 10px; }

.wide { margin-top: 44px; }
.wide img { border-radius: 14px; box-shadow: 0 2px 10px rgba(20,22,26,.12); }

/* Free / Pro table */
.plans { width: 100%; border-collapse: collapse; margin-top: 8px; }
.plans th, .plans td { padding: 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 17px; }
.plans thead th { font-size: 14px; color: var(--stone); font-weight: 560; padding-top: 0; }
.plans .c { width: 64px; text-align: center; }
.plans svg { width: 20px; height: 20px; vertical-align: -4px; }
.plans .no { color: var(--rule); }
.pro-num { font-size: clamp(56px, 7vw, 88px); display: block; margin: 8px 0 6px; }
.pro-num small { font-size: .32em; font-stretch: 100%; font-weight: 620; letter-spacing: 0; color: var(--stone); margin-left: 6px; }
.note { font-size: 15px; color: var(--stone); max-width: 38em; margin-top: 20px; }

/* Guides and other links as control rows */
.rows { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.rows a:hover { background: var(--sheet); }
.rows b { display: block; font-size: 20px; font-weight: 720; letter-spacing: -.3px; }
.rows span span { color: var(--stone); font-size: 16px; }
.rows svg { width: 22px; height: 22px; color: var(--cobalt); transition: transform .3s var(--ease); }
.rows a:hover svg { transform: translateX(4px); }

/* Closing band */
.close { margin-top: clamp(80px, 10vw, 140px); padding: clamp(56px, 8vw, 96px) 0; }
.close .h2 { color: var(--on-cobalt); max-width: 12em; }
.close p { color: var(--on-cobalt-soft); max-width: 34em; margin: 0; }

footer { padding: 32px 0 48px; font-size: 14px; color: var(--stone); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer a { color: var(--stone); }

/* Reading pages: guides and privacy */
.page { max-width: 760px; padding-top: 32px; padding-bottom: 32px; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(48px, 7vw, 80px); margin: 0; max-width: 11em; text-wrap: balance; }
.page-head .lead { color: var(--on-cobalt-soft); font-size: 20px; max-width: 34em; margin: 20px 0 0; }
.crumbs { font: 500 14px var(--mono); color: var(--on-cobalt-soft); margin: 0 0 18px; }
.crumbs a { color: var(--on-cobalt); }
article h2 { font-size: 30px; font-weight: 760; letter-spacing: -.4px; line-height: 1.15; margin: 56px 0 12px; }
article h3 { font-size: 21px; font-weight: 720; margin: 32px 0 6px; }
article p, article li { max-width: 68ch; }
article ol, article ul { padding-left: 1.3em; }
article li { margin: 6px 0; }
article li::marker { color: var(--stone); font-family: var(--mono); font-size: .85em; }
.tip { background: var(--sheet); border: 1px solid var(--rule); padding: 16px 20px; border-radius: 14px; margin: 24px 0; }
.tip b:first-child { display: block; font-weight: 720; margin-bottom: 2px; }
code, kbd { font: 500 .85em var(--mono); background: var(--cobalt-tint); padding: 1px 6px; border-radius: 8px; }
.cta { background: var(--cobalt); color: var(--on-cobalt); border-radius: 24px; padding: clamp(24px, 4vw, 40px); margin: 56px 0 32px; }
.cta h2 { margin: 0 0 8px; color: var(--on-cobalt); font-size: clamp(36px, 5vw, 52px); font-stretch: 75%; font-weight: 780; letter-spacing: -.02em; line-height: 1; }
.cta p { color: var(--on-cobalt-soft); margin: 0 0 20px; }
.cta .store { color: var(--ink); }
.meta { font: 500 14px var(--mono); color: var(--on-cobalt-soft); margin: 18px 0 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.toc a { color: var(--on-cobalt); background: rgba(244,246,251,.12); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 650; }
.toc a:hover { background: rgba(244,246,251,.22); }

@media (max-width: 860px) {
  .hero, .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { width: min(82vw, 330px); margin-top: 16px; }
  .split.flip figure { order: 2; }
  .split figure { max-width: 380px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .bar nav a:not(.get) { padding: 10px 6px; }
  .brand { font-size: 26px; }
  .brand img { width: 30px; height: 30px; }
  .cue { grid-template-columns: 1fr; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: space-between; }
  .plans th, .plans td { font-size: 16px; }
  .plans .c { width: 48px; }
  /* ponytail: the iPad shot is unreadable at phone width, so it becomes a swipeable strip */
  .wide { margin-inline: -16px; overflow-x: auto; padding: 0 16px 12px; scroll-snap-type: x proximity; }
  .wide img { width: 900px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-shot img { animation: none; }
  .rows svg { transition: none; }
}
