/* Kerb Kicker — site styles. No frameworks, one file. */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e3121b;
  --red-dark: #a80c12;
  --ink: #1b1420;
  --ink-soft: #4a3f4d;
  --cream: #fff7ea;
  --paper: #ffffff;
  --gold: #ffc23a;
  --orange: #ff8a3d;
  --pink: #f46f8f;
  --sky: #3d5fe0;
  --sky-deep: #2a3fb8;
  --brick: #b4502f;
  --tarmac: #2c262f;
  --line: #f0dcc0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 25, 10, 0.18);
  --chunky: 0 4px 0 var(--ink);
  --font-display: "Lilita One", "Arial Black", Impact, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::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;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--sky-deep);
  color: #fff;
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem; line-height: 1; letter-spacing: 0.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}
.wordmark .r { color: var(--red); }
.wordmark .w { color: #fff; }
.brand:hover .wordmark .w { color: #fff; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 8px 10px; border-radius: 10px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,0.16); color: #fff; }
@media (max-width: 420px) { .site-nav .hide-xs { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(255, 194, 58, 0.55), transparent 60%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 22%, #8a63d2 48%, var(--pink) 68%, var(--orange) 86%, var(--gold) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid; gap: 28px; align-items: center;
  padding-top: 20px; padding-bottom: 48px;
}
.hero-art {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), var(--shadow);
  background: #6b6fd8;
  aspect-ratio: 1086 / 1448;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-block;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--gold);
  padding: 5px 10px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 4rem); line-height: 1.02;
  margin: 14px 0 12px;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.hero h1 .red { color: var(--red); }
.hero .lede {
  font-size: 1.15rem; font-weight: 600; margin: 0 0 22px; max-width: 34em;
  text-shadow: 0 1px 2px rgba(30, 10, 40, 0.45);
}

@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
  .hero-copy { order: 1; }
  .hero-art {
    order: 2; justify-self: center;
    width: min(100%, 340px);
    aspect-ratio: 852 / 1846;
    border-radius: 36px; border-width: 6px;
    transform: rotate(2.5deg);
  }
}

/* ---------- Store badges (placeholders) ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 170px; padding: 9px 16px 9px 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.75); border-radius: 12px;
  line-height: 1.1;
}
.store-badge:hover { color: #fff; border-color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 1.15rem; font-weight: 700; }
.store-badge[aria-disabled="true"] { cursor: default; }
.soon-note { font-size: 0.95rem; font-weight: 600; margin: 12px 0 0; opacity: 0.95; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.05;
  margin: 0 0 10px; color: var(--ink);
}
.section-title .red { color: var(--red); }
.section-intro { margin: 0 0 28px; color: var(--ink-soft); font-size: 1.1rem; max-width: 36em; }

/* Pitch strip */
.pitch-strip { background: var(--ink); color: #fff; padding: 22px 0; }
.pitch-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pitch-strip li { display: flex; gap: 10px; align-items: baseline; font-weight: 700; }
.pitch-strip li::before { content: "●"; color: var(--gold); font-size: 0.8em; }

/* How to play cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--chunky);
  padding: 18px 18px 16px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1;
  background: var(--gold); border: 2px solid var(--ink); margin-bottom: 10px;
}
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 4px; line-height: 1.15; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.card.power .icon { background: var(--sky); }
.card.danger .icon { background: var(--red); }

/* Stages: scoreboard */
.stages-section { background: var(--tarmac); color: #fff; }
.stages-section .section-title { color: #fff; }
.stages-section .section-intro { color: #e6dcea; }
.stages {
  list-style: none; margin: 0; padding: 0; counter-reset: stage;
  display: grid; gap: 10px;
}
.stage {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 14px;
  background: #19141c; border: 2px solid #000; border-radius: 14px; padding: 12px 16px;
}
.stage::before {
  counter-increment: stage; content: counter(stage);
  grid-row: span 2;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--gold); border-radius: 10px;
}
.stage strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.02em; }
.speed { height: 10px; border-radius: 99px; background: #3a3140; overflow: hidden; }
.speed span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--orange), var(--red)); }
.stage.final { border-color: var(--red); }
.stage.final::before { background: var(--red); color: #fff; }

/* Red card + extras */
.split { display: grid; gap: 22px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--chunky); padding: 22px;
}
.panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; line-height: 1.1; }
.panel p { margin: 0; color: var(--ink-soft); }
.panel.red-card { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.panel.red-card p { color: #ffe3e3; }
.panel.red-card::after {
  content: ""; position: absolute; right: 18px; top: 18px;
  width: 44px; height: 62px; background: #ff2a2a; border: 3px solid #fff; border-radius: 6px;
  transform: rotate(12deg); box-shadow: 0 4px 0 rgba(0,0,0,0.35);
}
.panel.red-card h3 { padding-right: 70px; }

/* Coming soon */
.coming {
  background:
    linear-gradient(180deg, var(--orange), var(--gold));
  text-align: center;
}
.coming .app-icon {
  width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 16px;
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.coming .section-title { color: var(--ink); }
.coming p { margin: 0 auto 22px; max-width: 30em; font-weight: 600; }
.coming .badges { justify-content: center; }
.coming .store-badge { border-color: var(--ink); }

/* ---------- Document pages (privacy, terms, support) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--sky) 0%, #8a63d2 60%, var(--pink) 100%);
  color: #fff; padding: 36px 0 32px;
}
.page-head h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.05; margin: 0 0 6px;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink);
}
.page-head p { margin: 0; font-weight: 600; }

.doc { padding: 36px 0 56px; }
.doc h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.6rem; line-height: 1.15; margin: 34px 0 8px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin: 22px 0 4px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 6px; }
.summary-box {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--chunky); padding: 18px 20px; margin-bottom: 8px;
}
.summary-box h2 { margin-top: 0; font-size: 1.35rem; }
.summary-box ul { margin-bottom: 0; }

/* Support: email + copy */
.contact-box {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--chunky); padding: 20px; margin-bottom: 32px;
}
.contact-box h2 { margin-top: 0; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.08rem; font-weight: 700;
  background: var(--cream); border: 2px dashed var(--brick); border-radius: 10px;
  padding: 8px 12px; user-select: all; word-break: break-all;
}
.btn {
  appearance: none; cursor: pointer;
  font: inherit; font-weight: 800;
  background: var(--red); color: #fff;
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink);
  padding: 8px 16px; min-height: 44px;
}
.btn:hover { background: #f0242c; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.copy-status { font-weight: 700; color: #1d7a3a; min-height: 1.6em; margin: 8px 0 0; }
.small { font-size: 0.95rem; color: var(--ink-soft); }

.faq details {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px;
  margin-bottom: 10px; box-shadow: 0 3px 0 var(--ink);
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 800; padding: 14px 44px 14px 16px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--red);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 16px 14px; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #d9cfdc; padding: 32px 0 40px; font-size: 0.95rem;
}
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { text-align: center; padding: 64px 0; }
.notfound .card-big {
  width: 90px; height: 126px; margin: 0 auto 18px; background: var(--red);
  border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 var(--ink); transform: rotate(-8deg);
}

.speed .s1 { width: 20%; } .speed .s2 { width: 38%; } .speed .s3 { width: 56%; }
.speed .s4 { width: 76%; } .speed .s5 { width: 100%; }
