/* Gearlug landing – tokens follow docs/BRAND.md */
:root {
  color-scheme: light dark;
  --bg: #F1F2EE;
  --surface: #FFFFFF;
  --surface2: #E3E6DF;
  --ink: #141817;
  --muted: #4E5652;
  --faint: #626A66;
  --hivis: #C6F135;
  --on-hivis: #141817;
  --hivis-deep: #4A6B00;
  --stop: #B3261E;
  --care: #8A5300;
  --ok: #4A6B00;
  --spoke: #5B3FC4;
  --line: #D3D8CF;
  --radius: 14px;
  --display: "Chakra Petch", "Avenir Next Condensed", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --surface: #1B1F1E;
    --surface2: #252A28;
    --ink: #EEF1EC;
    --muted: #A9B1AC;
    --faint: #8A928D;
    --hivis-deep: #C6F135;
    --stop: #FF8A80;
    --care: #FFB95C;
    --ok: #C6F135;
    --spoke: #A996F2;
    --line: #333937;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--hivis-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hivis-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--hivis); color: var(--on-hivis); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--hivis-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; background: var(--hivis); color: var(--on-hivis); font-weight: 600; text-decoration: none; border: 2px solid var(--hivis); }
.btn:hover { filter: brightness(.95); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }

.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.fine { font-size: .95rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.stand { background: var(--surface); border-radius: 20px; padding: 18px; border: 1px solid var(--line); }
.stand svg { display: block; width: 100%; height: auto; }
.bike-ground { fill: var(--surface2); }
.bike-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.bike-thin { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.bike-solid { fill: var(--ink); }
.hot { fill: var(--hivis); stroke: var(--ink); stroke-width: 2.5; }
.hot-ring { fill: none; stroke: var(--hivis-deep); stroke-width: 2; opacity: .55; }
.hot-label { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.stand-note { margin: 12px 4px 0; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 28px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--on-hivis); background: var(--hivis); width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 10px; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* Screens */
.shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
.shots figcaption { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.3; text-align: center; }

/* Repair cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.verdict { display: flex; align-items: center; gap: 8px; padding: 10px 18px; font-family: var(--display); font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--line); }
.verdict svg { width: 18px; height: 18px; flex: none; }
.verdict-ok { color: var(--ok); }
.verdict-care { color: var(--care); }
.verdict-stop { color: var(--stop); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body > p { color: var(--muted); }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.parts-title { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: 6px 0 4px; }
.disclosure { font-size: .95rem; color: var(--muted); margin: 0 0 8px; }
.parts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.parts li { border-bottom: 1px solid var(--line); }
.parts a { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 2px; color: var(--ink); text-decoration: none; }
.parts a:hover .go { text-decoration: underline; }
.kind { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; border: 1.5px solid currentColor; }
.kind-part { color: var(--hivis-deep); }
.kind-tool { color: var(--spoke); }
.kind-consumable { color: var(--care); }
.item-name { font-weight: 600; }
.item-compat { grid-column: 2 / 4; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.go { color: var(--hivis-deep); font-weight: 600; font-size: .95rem; white-space: nowrap; }

.shop-more { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.stop-panel { border-left: 6px solid var(--stop); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.stop-panel h3 { color: var(--stop); }
.stop-panel ul, .note ul { margin: 0; padding-left: 1.2em; }
.stop-panel li, .note li { margin-bottom: 6px; }
.note { background: var(--bg); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }

/* Download */
.download { text-align: center; }
.soon { display: inline-block; font-family: var(--display); font-weight: 600; background: var(--hivis); color: var(--on-hivis); padding: 12px 24px; border-radius: 999px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .95rem; color: var(--muted); }
.disclaimer { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

/* Docs */
.doc { padding: 48px 0 64px; }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc .meta { color: var(--muted); }
.doc ul { padding-left: 1.2em; }

/* 404 */
.lost { padding: 96px 0; text-align: center; }

@media (max-width: 520px) {
  .parts a { grid-template-columns: auto 1fr; }
  .item-compat { grid-column: 2; }
  .go { grid-column: 2; grid-row: 3; white-space: normal; }
}

@media (max-width: 860px) {
  .hero-grid, .safety-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero { padding-top: 36px; }
}
