/* The "How Kickstand works" page, always in day colours. Same type and colours as the map (the tokens mirror
   styles.css; keep them in step), laid out as a long, readable page. */

:root {
  --ink: #0e1a2b;
  --ink-soft: #4d596a;
  --ink-faint: #7b8594;
  --paper: #ffffff;
  --mist: #eef0ee;
  --rule: #d9dedb;
  --focus: #1b3fd8;
  --flag-red: #e4002b;
  --flag-blue: #41b6e6;
  --note: #8a4f0b;
  --asphalt: #7b8594;
  --asphalt-dark: #5d6878;
  --kerb: #ffffff;
  --park: #d3e7c7;

  --trail: #0b5d3b;
  --protected: #2a9a55;
  --greenway: #7ab854;
  --buffered: #d19a00;
  --lane: #ea7317;
  --shared: #d93a26;
  --quiet: #c9d0d8;
  --busy: #8c1c1c;

  --band-0: #1a7f4b;
  --band-1: #6fbf4a;
  --band-2: #e3b505;
  --band-3: #ec7a1c;
  --band-4: #b3261e;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Overpass', system-ui, sans-serif;
  --width: 760px;
}


*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--focus); }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------ top bar and title */

.top {
  position: sticky; top: 0; z-index: 2;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.brand svg { width: 52px; height: 12px; fill: var(--flag-red); }
.back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none;
}

.hero { padding: 56px 0 24px; }
.eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--flag-red); }
h1 { margin: 0; font: 800 clamp(40px, 9vw, 68px)/0.95 var(--display); text-transform: uppercase; }
.lede { margin: 18px 0 0; font-size: 20px; color: var(--ink-soft); max-width: 36em; }

h2 { margin: 0 0 6px; font: 800 clamp(30px, 6vw, 40px)/1 var(--display); text-transform: uppercase; }
h3 { margin: 0 0 4px; font-size: 18px; }
.section { padding: 48px 0; border-top: 1px solid var(--rule); }
.section > .wrap > p.intro { margin: 0 0 24px; color: var(--ink-soft); max-width: 38em; }
.small { font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------ principles */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 8px; }
.principle { padding: 18px; border-radius: 14px; background: var(--mist); }
.principle .icon { width: 40px; height: 40px; margin-bottom: 10px; }
.principle p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------ lane types */

.lanes { display: grid; gap: 10px; }
.lane-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 10px 0; }
.lane-row + .lane-row { border-top: 1px solid var(--rule); }
.lane-row svg { width: 112px; height: 64px; border-radius: 8px; }
.lane-row p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.swatch-line { display: inline-block; width: 26px; height: 5px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }

/* ------------------------------------------------------------ the scoring example */

.versus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.choice { border: 2px solid var(--rule); border-radius: 14px; padding: 16px; }
.choice.win { border-color: var(--band-0); }
.choice svg { width: 100%; height: auto; margin: 4px 0 12px; }
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 15px; }
.sum b { font: 800 30px/1 var(--display); }
.verdict { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 6px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.verdict.win { background: color-mix(in srgb, var(--band-0) 18%, transparent); color: var(--band-0); }
.verdict.lose { background: color-mix(in srgb, var(--band-4) 15%, transparent); color: var(--band-4); }

/* ------------------------------------------------------------ "a mile feels like" chart */

.feels { display: grid; gap: 10px; margin: 8px 0 12px; }
.feel { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 12px; align-items: center; }
.feel .what { font-size: 15px; line-height: 1.25; }
.feel .what small { display: block; color: var(--ink-faint); font-size: 13px; }
.bar { position: relative; height: 26px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.bar span { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px;
  border-radius: 6px; font: 800 17px/1 var(--display); color: #fff; min-width: 46px; }
.bar.off span::after { content: '›'; margin-left: 6px; }

/* ------------------------------------------------------------ stress ingredients */

.ingredients { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ingredient { padding: 16px; border-radius: 14px; background: var(--mist); text-align: center; }
.ingredient svg { width: 64px; height: 64px; margin: 0 auto 8px; }
.ingredient p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------------------ corners */

.corners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.corner { border: 1px solid var(--rule); border-radius: 14px; padding: 14px; }
.corner svg { width: 100%; max-width: 180px; height: auto; margin: 0 auto 10px; }
.corner p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.cost { display: flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.cost i { width: 14px; height: 6px; border-radius: 3px; background: var(--rule); }
.cost i.on { background: var(--band-3); }
.cost.low i.on { background: var(--band-1); }
.cost.high i.on { background: var(--band-4); }

/* ------------------------------------------------------------ the three options */

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.option { padding: 18px; border-radius: 14px; background: var(--mist); }
.option h3 { font: 800 28px/1 var(--display); text-transform: uppercase; }
.option p { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.meter { margin-top: 12px; }
.meter div { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.meter .track { height: 8px; border-radius: 4px; background: var(--rule); position: relative; margin-top: 4px; }
.meter .track span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--protected); }

.badges { display: grid; gap: 10px; margin-top: 22px; }
.badge-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; font-size: 15px; }
.tag { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.tag.calm { color: #1d6b3f; background: #e2f1e7; }
.tag.fast { color: #24519e; background: #e3ebf8; }
.tag.yours { color: var(--paper); background: var(--focus); }

/* ------------------------------------------------------------ your knowledge, data, limits */

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.panel { padding: 18px; border-radius: 14px; border: 1px solid var(--rule); }
.panel svg { width: 100%; height: auto; margin-bottom: 12px; border-radius: 10px; }
.panel p { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); }

.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.source { padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 15px; }
.source b { display: block; }
.source span { color: var(--ink-soft); font-size: 14px; }

.limits { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.limits li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; }
.limits li::before { content: '!'; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #ffd23f; color: #0e1a2b; font-weight: 800; }

.closing { padding: 48px 0 72px; border-top: 1px solid var(--rule); text-align: center; }
.closing p { margin: 0 auto 20px; max-width: 30em; color: var(--ink-soft); }
.closing .back { padding: 12px 22px; font-size: 17px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .lane-row { grid-template-columns: 88px 1fr; }
  .lane-row svg { width: 88px; height: 50px; }
  .feel { grid-template-columns: 1fr; gap: 4px; }
  .badge-row { grid-template-columns: 1fr; gap: 4px; }
  .brand svg { display: none; }
}
