/* ReRoute Racing's site: asphalt dark, racing red, checkered accents. */
:root {
  --asphalt: #14161b;
  --asphalt-2: #1d2027;
  --asphalt-3: #272b34;
  --line: #343946;
  --text: #f3f4f6;
  --muted: #a9afbc;
  --red: #e5432d;
  --red-dark: #b8321f;
  --gold: #e8b92a;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #ff7a63; }
a:hover { color: #ffa08e; }

img { max-width: 100%; display: block; }

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

/* A strip of checkers. */
.checker {
  height: 10px;
  background:
    conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 20px 20px,
    var(--asphalt);
  opacity: 0.9;
}

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(20, 22, 27, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.2px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; background: radial-gradient(ellipse at top, #2a1a18 0%, var(--asphalt) 60%); }
.hero .icon { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 22px; box-shadow: 0 12px 40px rgba(229, 67, 45, 0.35); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; margin: 0 0 10px; font-weight: 900; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 800;
}
.badge:hover { background: var(--red-dark); color: #fff; }
.badge.soon { background: var(--asphalt-3); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.small { font-size: 14px; color: var(--muted); }

/* Screenshot slots (filled from the phone before launch) */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 40px 0 0; }
.shot { aspect-ratio: 2868 / 1320; border-radius: var(--radius); background: var(--asphalt-2); border: 1px dashed var(--line); display: flex; align-items: flex-end; overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-weight: 700; font-size: 15px; text-align: left; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--asphalt-2); }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; font-weight: 850; letter-spacing: -0.5px; }
h2 + p { color: var(--muted); margin-top: 0; max-width: 680px; }
h3 { margin: 0 0 6px; font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--asphalt-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* The track library */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.tracks h3 { font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.tracks ul { list-style: none; margin: 0; padding: 0; }
.tracks li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.tracks li span { color: var(--muted); font-size: 14.5px; text-align: right; }

/* Free vs Full Garage */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 26px; }
.tier { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: var(--asphalt-3); }
.tier.paid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.tier h3 { font-size: 22px; }
.tier .price { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.tier ul { margin: 0; padding-left: 20px; color: var(--muted); }
.tier li { margin: 5px 0; }

/* FAQ */
details { background: var(--asphalt-3); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p, details ul { color: var(--muted); margin: 10px 0 0; }

/* Plain pages (support, privacy, press) */
.page { padding: 48px 0 64px; max-width: 760px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; letter-spacing: -0.5px; }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: #d6d9e0; }
.page .note { color: var(--muted); font-style: italic; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.facts td:first-child { color: var(--muted); width: 38%; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
/* The non-affiliation note: a line of its own above the footer row. */
footer .wrap > p.small { flex-basis: 100%; margin: 0; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  section { padding: 44px 0; }
  .hero { padding-top: 44px; }
}
