/* Wreck Circuit — shared site styles
   ------------------------------------------------------------------
   The game's "stadium metal" look (ComicOverlay.swift, ComicMenu.swift,
   HUDStyle.swift): a dark night-stadium backdrop, scuffed steel plates
   with a thin light edge, offset shadows, Barlow Condensed italic type,
   a yellow hazard-plate primary action and red accents. */

:root {
  /* Game palette (Comic / HUD enums) */
  --ink: #0D0E10;
  --paper: #121316;
  --card: #F0ECE4;          /* primary text on metal, 11:1 or better */
  --dim: #A0A4AA;           /* secondary text, 5.3:1 on steel-hi */
  --label: #C2C2C2;         /* HUD caps labels */
  --steel-hi: #2C2F34;
  --steel: #1C1E22;
  --steel-lo: #101114;
  --edge: #5C6068;
  --red: #D6281E;           /* plates, rules and decoration */
  --red-title: #E8392B;     /* large red display type, 4:1 on steel */
  --red-text: #FF6B5B;      /* small red caps, 4.8:1 on steel-hi */
  --yellow: #F6C41A;
  --yellow-hi: #FFD640;
  --yellow-lo: #DE9C08;
  --orange: #FF7018;
  --hud-top: #222428;
  --hud-bottom: #0A0B0D;

  /* Textures from the game's asset catalog */
  --scuffs: url("/assets/img/ui/scuffs.webp");
  --grunge: url("/assets/img/ui/grunge.webp");
  --screw: url("/assets/img/ui/screw.svg");

  /* Type */
  --font: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: 16px;
  --plate-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 4px 0 rgba(0, 0, 0, 0.22), 0 10px 24px rgba(0, 0, 0, 0.45);
}

@media (min-width: 700px) {
  :root { --gutter: 32px; }
}

/* Base ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--card);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.42;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body > main,
body > .stage--page { flex: 1 0 auto; width: 100%; }

h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; }

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

a { color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--yellow-hi); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack { display: flex; flex-direction: column; }

/* Stage: the night stadium behind the menu (MenuBackdrop) ----------- */

.stage {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(18, 19, 22, 0) 0%, rgba(18, 19, 22, 0) 70%, var(--paper) 100%),
    radial-gradient(ellipse at 50% 35%, transparent 35%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.62) 100%),
    url("/assets/img/ui/stadium.webp");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center 30%;
  background-repeat: no-repeat;
}

/* Inner pages: the stadium only behind the top of the page */
.stage--page { background: none; }
.stage--page::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: min(100%, 860px);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(18, 19, 22, 0) 0%, rgba(18, 19, 22, 0) 55%, var(--paper) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 35%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.66) 100%),
    url("/assets/img/ui/stadium.webp");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center 30%;
  background-repeat: no-repeat;
}

/* Header + nav ------------------------------------------------------ */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.logo { display: block; flex: 0 0 auto; }
.logo img { width: 230px; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

/* Angled metal tab plates (SkewPlate): steel, red when current */
.tab {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: var(--card);
  font-style: italic;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}
.tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-17deg);
  border: 1.5px solid var(--edge);
  border-radius: 2px;
  background-color: var(--steel);
  background-image: var(--scuffs), linear-gradient(180deg, var(--steel-hi), var(--steel) 55%, var(--steel-lo));
  background-size: 384px, auto;
  background-blend-mode: hard-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: filter 0.12s ease;
}
.tab:hover { color: #fff; }
.tab:hover::before { filter: brightness(1.25); }
.tab[aria-current="page"]::before {
  background-color: var(--red);
  background-image: var(--scuffs), linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 50%, rgba(0, 0, 0, 0.3));
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 3px 12px rgba(214, 40, 30, 0.45);
}
.tab[aria-current="page"] { color: #fff; }

.nav-chevrons {
  width: 46px;
  height: 40px;
  background: url("/assets/img/ui/chevrons.svg") no-repeat center / contain;
  flex: 0 0 auto;
}

/* Buttons ----------------------------------------------------------- */

/* The yellow hazard plate (START YOUR ENGINE): a scuffed yellow face in
   a dark steel frame with four screws. */
.btn-hazard {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 34px;
  margin: 6px;
  color: var(--ink);
  font-style: italic;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  background-color: var(--yellow);
  background-image:
    var(--screw), var(--screw), var(--screw), var(--screw),
    var(--scuffs),
    linear-gradient(180deg, var(--yellow-hi), var(--yellow) 50%, var(--yellow-lo));
  background-size: 9px 9px, 9px 9px, 9px 9px, 9px 9px, 384px, auto;
  background-position: 5px 5px, right 5px top 5px, left 5px bottom 5px, right 5px bottom 5px, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-blend-mode: normal, normal, normal, normal, hard-light, normal;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 6px 2px rgba(0, 0, 0, 0.25),
    0 0 0 5px var(--steel),
    0 0 0 6.5px var(--edge),
    0 8px 18px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-hazard svg { flex: 0 0 auto; width: 1em; height: 1em; }
.btn-hazard:hover { color: var(--ink); filter: brightness(1.06); }
.btn-hazard:active { transform: scale(0.98); filter: brightness(0.94); }
.btn-hazard:focus-visible { outline-offset: 10px; }

.btn-hazard--big { min-height: 76px; font-size: clamp(1.7rem, 5vw, 2.4rem); padding: 12px 40px; }
.btn-hazard--nav { min-height: 44px; font-size: 1.2rem; padding: 6px 22px; }

/* Secondary actions (ComicChipButtonStyle): dark metal plate with an icon */
.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 18px;
  color: var(--card);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--edge);
  border-radius: 5px;
  background-color: var(--steel);
  background-image: var(--scuffs), linear-gradient(180deg, var(--steel-hi), var(--steel) 55%, var(--steel-lo));
  background-size: 384px, auto;
  background-blend-mode: hard-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-chip svg { width: 20px; height: 20px; opacity: 0.9; flex: 0 0 auto; }
.btn-chip:hover { color: #fff; filter: brightness(1.2); }

/* Plates ------------------------------------------------------------ */

/* The menu's metal plate (MetalPlate): steel gradient with scratches, a
   thin outline, a faint inner bevel and a short hard drop shadow. */
.plate {
  position: relative;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  background-color: var(--steel);
  background-image: var(--scuffs), linear-gradient(180deg, var(--steel-hi), var(--steel) 50%, var(--steel-lo));
  background-size: 512px, auto;
  background-blend-mode: hard-light, normal;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 0 0 2.5px rgba(255, 255, 255, 0.05), var(--plate-shadow);
}

/* Pause / results card plate (comicOverlayPanel): screws, red hazard
   slashes in the corner and a light outline. */
.plate--card {
  border-color: #9E9E9E;
  border-radius: 8px;
  background-image:
    var(--screw), var(--screw), var(--screw), var(--screw),
    url("/assets/img/ui/slashes.webp"),
    url("/assets/img/ui/slashes-left.webp"),
    var(--scuffs),
    linear-gradient(180deg, var(--steel-hi), var(--steel) 50%, var(--steel-lo));
  background-size: 11px 11px, 11px 11px, 11px 11px, 11px 11px, 220px 140px, 80px 280px, 512px, auto;
  background-position: 13px 13px, right 13px top 13px, left 13px bottom 13px, right 13px bottom 13px, right -6px bottom 0, left 0 bottom 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-blend-mode: normal, normal, normal, normal, normal, normal, hard-light, normal;
}

/* The HUD panel (HUDPanelBackground): darker gunmetal, black outer edge
   with a thin light bevel inside, and a short offset shadow. */
.hud-panel {
  position: relative;
  border: 1.5px solid rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  background-color: var(--hud-bottom);
  background-image: var(--scuffs), linear-gradient(180deg, var(--hud-top), var(--hud-bottom));
  background-size: 512px, auto;
  background-blend-mode: hard-light, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 3.5px 0 rgba(0, 0, 0, 0.2);
}

/* Type pieces ------------------------------------------------------- */

/* Small yellow tag above a title (ComicTagline) */
.tagline {
  position: relative;
  isolation: isolate;
  align-self: flex-start;
  display: inline-block;
  padding: 2px 12px;
  color: var(--ink);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.tagline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  -webkit-mask-image: var(--grunge);
  mask-image: var(--grunge);
  -webkit-mask-size: 260px;
  mask-size: 260px;
}

/* Huge distressed condensed italic: first part white, the rest red
   ("GAME PAUSED"). */
.overlay-title {
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: var(--card);
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.85);
  -webkit-mask-image: var(--grunge);
  mask-image: var(--grunge);
  -webkit-mask-size: 340px;
  mask-size: 340px;
  padding: 0 6px 6px 0;
}
.overlay-title .red { color: var(--red-title); }

/* Red brush stroke under a title (ui-brush) */
.brush {
  display: block;
  height: 14px;
  width: min(100%, 520px);
  background: url("/assets/img/ui/brush.webp") no-repeat left center / 100% 100%;
}

/* Section label with a short red rule ("CHOOSE YOUR ARENA") */
.section-label {
  align-self: flex-start;
  display: inline-block;
  padding-bottom: 7px;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--card);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  background: linear-gradient(var(--red), var(--red)) left bottom / calc(100% - 6px) 4px no-repeat;
}

.kicker {
  color: var(--red-text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Small dark stat plate (StatChip); yellow when highlighted */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 12px;
  border: 1.5px solid var(--edge);
  border-radius: 4px;
  background: var(--steel-lo);
  color: var(--card);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip--hot { background: var(--yellow); color: var(--ink); border-color: rgba(0, 0, 0, 0.75); }

/* Plate holding a short fact (the menu's "14 CARS / 2 MINUTES") */
.fact-plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 18px 6px 14px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact-plate svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--card); opacity: 0.85; }

/* Hero (home) ------------------------------------------------------- */

.hero {
  display: grid;
  gap: 36px;
  padding-top: 18px;
  padding-bottom: 48px;
  align-items: center;
}

.hero__copy { gap: 18px; min-width: 0; }

.hero__title {
  font-size: clamp(4.2rem, 19vw, 8.6rem);
  margin-top: 2px;
}
.hero__title span { display: inline-block; }

.hero__lede {
  max-width: 34em;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--card);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 22px;
  margin-top: 8px;
}

.hero__media { position: relative; min-width: 0; }

/* Event-card style photo: graded render inset in a plate */
.photo-plate { padding: 8px; }
.photo-plate img {
  width: 100%;
  border-radius: 3px;
  border: 1.5px solid rgba(0, 0, 0, 0.7);
}
/* The selected card's glowing orange outline */
.hero__media .photo-plate {
  border-color: var(--orange);
  box-shadow:
    0 0 0 1.5px var(--orange),
    0 0 10px rgba(255, 112, 24, 0.85),
    0 0 26px rgba(214, 40, 30, 0.55),
    var(--plate-shadow);
}

/* The hero photo's caption, as the mirror's tab */
.hero__media figcaption {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 2px 12px;
  text-align: center;
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero__media figcaption b { color: var(--yellow); font-weight: 700; }

/* The yellow tag on the picked card ("PICKED ✓") */
.picked-tag {
  position: absolute;
  top: 22px;
  right: 18px;
  padding: 4px 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* "DRIVE HARDER / LAST LONGER" sprayed on the wall */
.slogan-art {
  display: none;
  position: absolute;
  top: -80px;
  right: 50px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  line-height: 0.85;
  text-transform: uppercase;
  transform: rotate(-6deg);
}
.slogan-art span {
  display: block;
  -webkit-mask-image: var(--grunge);
  mask-image: var(--grunge);
  -webkit-mask-size: 260px;
  mask-size: 260px;
}
.slogan-art::after {
  content: "";
  position: absolute;
  right: -42px;
  top: 2px;
  width: 30px;
  height: 22px;
  opacity: 0.5;
  background: url("/assets/img/ui/crown.svg") no-repeat center / contain;
  filter: grayscale(1) brightness(4);
}

/* HUD stat strip ---------------------------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 10px 6px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.9);
  background-color: #060607;
  background-image: var(--scuffs), linear-gradient(180deg, rgba(26, 26, 26, 0.97), rgba(6, 6, 6, 0.97));
  background-size: 512px, auto;
  background-blend-mode: hard-light, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 0 rgba(0, 0, 0, 0.5), 0 3.5px 0 rgba(0, 0, 0, 0.2);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px 10px 4px 16px;
  min-width: 0;
}
.stat dt {
  color: var(--label);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}
.stat dd {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat--accent dd { color: var(--yellow); }
/* Leaning divider between cells (HUDStatDivider) */
.stat::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(14deg);
}
.stat:nth-child(3n + 1)::before { display: none; }
.stat:nth-child(n + 4) { margin-top: 8px; }

.stats-band { padding-bottom: 8px; }

/* Sections ---------------------------------------------------------- */

.section { padding-top: 56px; padding-bottom: 8px; gap: 22px; }

/* Mode cards (the menu's arena / circuit cards) */
.card-grid {
  display: grid;
  gap: 18px;
}

.event-card { display: flex; flex-direction: column; }
.event-card picture {
  margin: 8px 8px 0;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.7);
  background: #000;
}
.event-card picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55));
}
.event-card img { width: 100%; aspect-ratio: 900 / 420; object-fit: cover; }
.event-card__body { gap: 6px; padding: 12px 16px 16px; flex: 1 1 auto; }
.event-card h3 {
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.event-card p:not(.kicker) { color: rgba(240, 236, 228, 0.9); font-size: 1.15rem; line-height: 1.38; }
.event-card .chip-row { margin-top: auto; padding-top: 8px; }

/* Feature panels (HUD) */
.feature-grid {
  display: grid;
  gap: 16px;
}
.feature {
  gap: 8px;
  padding: 18px 20px 20px;
}
.feature svg { width: 34px; height: 34px; color: var(--yellow); }
.feature h3 {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.feature p { color: rgba(240, 236, 228, 0.88); font-size: 1.15rem; line-height: 1.38; }

/* Car row (the menu's "CHOOSE YOUR CAR") */
.cars { gap: 16px; padding-top: 22px; }
.cars__head { gap: 6px; }
.cars__head h3 {
  align-self: flex-start;
  padding-bottom: 5px;
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  background: linear-gradient(var(--red), var(--red)) left bottom / calc(100% - 6px) 3.5px no-repeat;
}
.cars__head p { color: rgba(240, 236, 228, 0.88); max-width: 44em; font-size: 1.2rem; }
.car-grid { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.car-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  min-height: 120px;
}
.car-card picture {
  align-self: stretch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 75%, transparent 100%);
}
.car-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px 0 0 5px; }
.car-card__text { text-align: right; padding: 10px 16px 10px 4px; }
.car-card h4 {
  font-style: italic;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.car-card ul {
  list-style: none;
  padding: 0;
  margin-top: 4px;
  color: var(--dim);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.car-card li::before { content: "· "; }

/* Screenshots in the rear-view mirror's bezel */
.shot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.shot {
  position: relative;
  min-width: 0;
  padding: 7px 7px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #212121, #050505);
  box-shadow:
    inset 0 1.2px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.1),
    0 3px 0 rgba(0, 0, 0, 0.5),
    0 5px 0 rgba(0, 0, 0, 0.2);
}
.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  outline: 1.5px solid #000;
}
/* The small "REAR VIEW" tab on the bottom bezel */
.shot figcaption {
  display: block;
  margin: 9px auto 0;
  max-width: calc(100% - 16px);
  width: max-content;
  padding: 2px 12px;
  text-align: center;
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.shot figcaption b { color: var(--yellow); font-weight: 700; }

/* The pause / results card ---------------------------------------- */

.pause-section { padding-top: 70px; padding-bottom: 72px; }
.pause-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px 34px;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.pause-card .tagline { align-self: center; }
.pause-card__title { font-size: clamp(2.6rem, 10vw, 4.9rem); }
.pause-card .brush { margin: -10px auto 0; width: min(92%, 560px); }
.pause-card__line {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.pause-card__actions {
  width: 100%;
  max-width: 540px;
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
.pause-card__actions .btn-hazard { margin: 6px; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pause-card__hint { color: var(--dim); font-size: 1.05rem; max-width: 36em; }

/* "DRIVE HARDER. LAST LONGER." (SloganLine) */
.slogan {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 4px;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slogan span:first-child { color: var(--dim); }
.slogan span:last-child {
  color: rgba(240, 236, 228, 0.9);
  padding-bottom: 6px;
  background: url("/assets/img/ui/brush.webp") no-repeat left bottom / 100% 6px;
}
.crown {
  position: absolute;
  right: 62px;
  bottom: 28px;
  width: 36px;
  height: 26px;
  background: url("/assets/img/ui/crown.svg") no-repeat center / contain;
}

/* Inner pages ------------------------------------------------------- */

.page-head {
  padding-top: 26px;
  padding-bottom: 40px;
  gap: 14px;
}
.page-title { font-size: clamp(3.6rem, 15vw, 6.4rem); }
.page-head .brush { margin-top: -12px; width: min(100%, 420px); }
.page-head__lede { font-size: 1.4rem; max-width: 30em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

/* Support */
.support-top {
  display: grid;
  gap: 22px;
  align-items: start;
}
.support-intro { gap: 26px; min-width: 0; }
.page-head__titles { gap: 14px; }
.page-head__titles .brush { margin-top: -12px; width: min(100%, 420px); }
.stat-strip.stat-strip--3 { grid-template-columns: repeat(3, 1fr); }
.email-card { padding: 28px 22px 30px; gap: 12px; min-width: 0; }
.email-card .btn-hazard {
  align-self: flex-start;
  font-size: clamp(1.25rem, 6vw, 1.9rem);
  text-transform: none;
  padding: 12px 24px;
  max-width: calc(100% - 12px);
  overflow-wrap: anywhere;
}
.email-card__note { color: rgba(240, 236, 228, 0.88); font-size: 1.15rem; }
.needs { padding: 18px 20px 20px; gap: 12px; }
.needs p { color: rgba(240, 236, 228, 0.9); font-size: 1.15rem; }
.label-caps {
  color: var(--label);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker-yellow { color: var(--yellow); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; }

.faq { padding-top: 48px; padding-bottom: 72px; gap: 22px; }
.faq-grid { display: grid; gap: 16px; }
.faq-item { padding: 18px 20px 20px; gap: 8px; }
.faq-item h3 {
  position: relative;
  padding-left: 18px;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.faq-item h3::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  bottom: 3px;
  width: 5px;
  background: var(--red);
  transform: skewX(-14deg);
}
.faq-item p { color: rgba(240, 236, 228, 0.9); font-size: 1.15rem; line-height: 1.42; }

/* Privacy */
.summary { padding: 20px 22px 22px; gap: 8px; border-left: 6px solid var(--yellow); }
.summary h2 {
  font-style: italic;
  font-weight: 800;
  font-size: 1.9rem;
  text-transform: uppercase;
  color: var(--yellow);
}
.summary p { font-size: 1.3rem; line-height: 1.45; }

.policy-wrap { max-width: 920px; }
.policy { padding: 28px 22px 34px; gap: 30px; margin: 26px 0 72px; }
.policy__part { gap: 12px; }
.policy h2 {
  align-self: flex-start;
  padding-bottom: 6px;
  font-style: italic;
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  background: linear-gradient(var(--red), var(--red)) left bottom / calc(100% - 4px) 3px no-repeat;
}
.policy p, .policy li { font-weight: 500; font-size: 1.25rem; line-height: 1.5; color: rgba(240, 236, 228, 0.94); }
.policy ul { padding-left: 1.3em; display: grid; gap: 6px; }
.policy li::marker { color: var(--red-text); }

/* 404 */
.not-found {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 72px;
}
.not-found .page-head { padding: 0; }
.not-found .btn-hazard { align-self: flex-start; margin-top: 10px; }

/* Footer ------------------------------------------------------------ */

.site-footer {
  position: relative;
  margin-top: 12px;
  background-color: var(--steel-lo);
  background-image: var(--scuffs), linear-gradient(180deg, var(--steel), var(--steel-lo));
  background-size: 512px, auto;
  background-blend-mode: hard-light, normal;
  border-top: 1.5px solid var(--edge);
}
/* Worn yellow and black hazard stripes along the top edge */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 10px;
  background: repeating-linear-gradient(-55deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
  opacity: 0.85;
  -webkit-mask-image: var(--grunge);
  mask-image: var(--grunge);
  -webkit-mask-size: 260px;
  mask-size: 260px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.footer-logo img { width: 190px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--card);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--yellow); text-decoration: underline; }
.footer-nav a[href^="mailto"] { text-transform: none; letter-spacing: 0.03em; color: var(--yellow); }
.copyright { color: var(--dim); font-size: 1.05rem; width: 100%; }

/* Responsive -------------------------------------------------------- */

@media (max-width: 480px) {
  .logo img { width: 200px; }
  .site-nav { width: 100%; gap: 8px 10px; }
  .site-nav .tab { flex: 1 1 0; padding: 0 12px; font-size: 1.15rem; }
  .site-nav .btn-hazard--nav { flex: 1 1 100%; margin: 6px 6px 4px; }
  .nav-chevrons { display: none; }
  .btn-hazard--big { width: calc(100% - 12px); padding: 12px 18px; font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .chip-grid { grid-template-columns: 1fr; }
  .pause-card { padding-left: 16px; padding-right: 16px; }
  .pause-card .btn-hazard--big { font-size: clamp(1.2rem, 5.6vw, 1.6rem); padding: 12px 14px; gap: 10px; }
  .crown { display: none; }
  .plate--card { background-size: 11px 11px, 11px 11px, 11px 11px, 11px 11px, 160px 102px, 0 0, 512px, auto; }
  .stat dd { font-size: 2rem; }
}

@media (min-width: 640px) {
  .stat-strip {
    grid-template-columns: repeat(6, 1fr);
    padding: 10px 8px 10px 18px;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  }
  .stat:nth-child(3n + 1)::before { display: block; }
  .stat:first-child::before { display: none; }
  .stat:nth-child(n + 4) { margin-top: 0; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pause-card { padding: 34px 48px 36px; }
}

@media (min-width: 760px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > :last-child { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .car-grid { grid-template-columns: repeat(3, 1fr); }
  .car-card { grid-template-columns: minmax(0, 1fr); }
  .car-card picture {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
  }
  .car-card img { border-radius: 5px 5px 0 0; aspect-ratio: 560 / 274; }
  .car-card__text { padding: 0 16px 14px; margin-top: -30px; position: relative; }
  .policy { padding: 36px 44px 44px; }
}

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding-top: 30px; padding-bottom: 60px; }
  .slogan-art { display: block; }
  .hero__media { margin-top: 70px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid > :last-child { grid-column: auto; }
  .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .car-card picture {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 75%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 75%, transparent 100%);
  }
  .car-card img { border-radius: 5px 0 0 5px; aspect-ratio: auto; }
  .car-card__text { padding: 10px 16px 10px 0; margin-top: 0; }
  .not-found { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .support-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

@media (min-width: 1200px) {
  .logo img { width: 280px; }
}

/* Motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .btn-hazard:active { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
