/* ============================================================
   Factory Competitions — website draft
   Single committed dark theme (deliberate, moto/paddock feel).
   Design tokens follow the studio spacing / type / radius scale.
   ============================================================ */

:root {
  /* Surfaces — neutral near-black, KTM Factory Edition (orange + black + blue) */
  --bg: #161616;
  --surface-1: #1f1f1f;
  --surface-2: #272727;
  --surface-3: #323232;
  --border: #333333;
  --border-soft: #272727;

  /* Text */
  --text: #f4f4f5;
  --text-muted: #9c9c9e;
  --text-dim: #6e6e70;

  /* Brand — KTM orange primary, Red Bull KTM blue secondary */
  --accent: #ff6600;
  --accent-hover: #ff8534;
  --accent-ink: #241000;
  --info: #2f6bff;
  --info-hover: #5a8bff;
  --positive: #46c26a;
  --warn: #ffc23d;

  /* Type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* Spacing scale */
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* Radius */
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: var(--r-lg);
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--space-300);
  padding-right: var(--space-300);
}

.section { padding-top: var(--space-900); padding-bottom: var(--space-900); }
.section--tight { padding-top: var(--space-700); padding-bottom: var(--space-700); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-200);
}

.section-head { max-width: 620px; margin-bottom: var(--space-600); }
.section-head h2 { font-size: 36px; line-height: 40px; }
.section-head p { margin-top: var(--space-200); color: var(--text-muted); font-size: 18px; line-height: 28px; }

.skip-link {
  position: absolute;
  left: var(--space-200);
  top: var(--space-200);
  transform: translateY(-160%);
  background: var(--accent);
  color: #fff;
  padding: var(--space-75) var(--space-200);
  border-radius: var(--r-lg);
  font-weight: 600;
  z-index: 200;
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Preview-build notice (removed at launch via chrome.js PRELAUNCH flag) */
.prelaunch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-300);
  flex-wrap: wrap;
  padding: var(--space-75) var(--space-300);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.prelaunch button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
}
.prelaunch button:hover { color: var(--text); border-color: var(--text-muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 8px 12px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), background-color 300ms var(--ease),
    border-color 300ms var(--ease), color 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: #fff; padding-left: var(--space-300); padding-right: var(--space-300); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); padding-left: var(--space-300); padding-right: var(--space-300); }
.btn--ghost:hover { border-color: var(--text-muted); background: var(--surface-1); }

.btn--block { width: 100%; padding-top: var(--space-200); padding-bottom: var(--space-200); font-size: 18px; }

.btn--sm { font-size: 14px; padding: 8px 12px; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* ---------- Island nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  margin-top: var(--space-300);
  width: max-content;
  max-width: calc(100vw - var(--space-400));
  display: flex;
  align-items: center;
  gap: var(--space-300);
  padding: var(--space-75) var(--space-75) var(--space-75) var(--space-300);
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-100); font-weight: 700; letter-spacing: 0.02em; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 600;
}
.nav__links { display: flex; align-items: center; gap: var(--space-300); }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 200ms var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }

.nav__toggle {
  pointer-events: auto;
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 9px; right: 9px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 24px; }

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-200);
  padding: var(--space-600);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}
.menu a {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  transform: translateY(48px);
  opacity: 0;
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}
.menu .btn { align-self: flex-start; margin-top: var(--space-200); transform: translateY(48px); opacity: 0; transition: transform 700ms var(--ease), opacity 700ms var(--ease); }

body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; }
body.menu-open .menu a,
body.menu-open .menu .btn { transform: translateY(0); opacity: 1; }
body.menu-open .menu > *:nth-child(1) { transition-delay: 100ms; }
body.menu-open .menu > *:nth-child(2) { transition-delay: 150ms; }
body.menu-open .menu > *:nth-child(3) { transition-delay: 200ms; }
body.menu-open .menu > *:nth-child(4) { transition-delay: 250ms; }
body.menu-open .menu > *:nth-child(5) { transition-delay: 300ms; }
body.menu-open .nav__toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: var(--space-800); padding-bottom: var(--space-800); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-700); align-items: center; }

.hero h1 {
  max-width: 680px;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { max-width: 680px; margin-top: var(--space-300); color: var(--text-muted); font-size: 20px; line-height: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-200); margin-top: var(--space-500); }
.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-300);
  margin-top: var(--space-500);
  font-size: 14px; color: var(--text-muted);
}
.hero__proof strong { color: var(--text); font-weight: 600; }
.hero__proof .dot { width: 4px; height: 4px; border-radius: var(--r-full); background: var(--text-dim); }
.stars { color: var(--warn); letter-spacing: 2px; }

/* ---------- Media (KTM-style artwork; swap for real photos later) ---------- */

.shot {
  position: relative;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background:
    url("../img/moto.svg") center 58% / 84% auto no-repeat,
    radial-gradient(120% 90% at 70% 25%, rgba(255, 102, 0, 0.14), transparent 60%),
    var(--surface-2);
  overflow: hidden;
}
.shot::after { content: none; }
.shot--hero { aspect-ratio: 4 / 3; }
.shot--card { aspect-ratio: 16 / 10; border-radius: 0; border: none; border-bottom: 1px solid var(--border); background-size: 76% auto; }
.shot--wide { aspect-ratio: 21 / 9; background-size: 46% auto; }
.shot--thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 102, 0, 0.12) 0 10px, transparent 10px 22px),
    linear-gradient(145deg, var(--surface-3), var(--surface-1));
}
.gallery__thumbs .shot--thumb:nth-child(2) { background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 102, 0, 0.22), transparent 70%),
    linear-gradient(145deg, var(--surface-3), var(--surface-1)); }
.gallery__thumbs .shot--thumb:nth-child(3) { background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 12px),
    linear-gradient(200deg, var(--surface-3), var(--surface-1)); }
.gallery__thumbs .shot--thumb:nth-child(4) { background:
    conic-gradient(from 210deg at 60% 50%, rgba(255,102,0,0.2), transparent 40%),
    linear-gradient(145deg, var(--surface-3), var(--surface-1)); }

/* Monogram avatar (winners) */
.avatar {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent), #b93f00);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.avatar[data-tone="1"] { background: linear-gradient(150deg, #2f6bff, #123a9c); }
.avatar[data-tone="2"] { background: linear-gradient(150deg, #3a3a42, #17171b); color: var(--accent-hover); }
.avatar[data-tone="3"] { background: linear-gradient(150deg, #ff8534, #c24500); }

.hero__art {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.hero__card {
  margin-top: var(--space-400);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-300);
}
.hero__card h3 { font-size: 18px; line-height: 28px; }
.hero__card .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--space-100); }
.hero__card .price { font-family: var(--font-mono); font-size: 20px; color: var(--text); }
.hero__card .btn { margin-top: var(--space-300); }

/* ---------- Progress + countdown ---------- */

.meter { margin-top: var(--space-200); }
.meter__bar {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: var(--accent);
  transition: width 1200ms var(--ease);
}
.meter__label {
  display: flex; justify-content: space-between;
  margin-top: var(--space-75);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.countdown {
  display: inline-flex;
  gap: var(--space-100);
  font-family: var(--font-mono);
}
.countdown span {
  min-width: 46px;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 16px;
}
.countdown span b { display: block; font-weight: 600; }
.countdown span i { display: block; font-style: normal; font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Competition cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-400); }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  overflow: hidden;
  transition: transform 500ms var(--ease), border-color 300ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--text-dim); }
.card__body { padding: var(--space-300); display: flex; flex-direction: column; gap: var(--space-100); flex: 1; }
.card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-25) var(--space-100);
  border-radius: var(--r-full);
  background: rgba(255, 102, 0, 0.14);
  color: var(--accent-hover);
}
.card__title { font-size: 18px; line-height: 28px; }
.card__meta { font-size: 14px; color: var(--text-muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-200); }
.card__price { font-family: var(--font-mono); font-size: 18px; }
.card__price small { display: block; font-size: 11px; color: var(--text-dim); }

/* ---------- Tagline reveal ---------- */

.tagline { padding-top: var(--space-900); padding-bottom: var(--space-900); }
.tagline p {
  max-width: 820px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tagline .word {
  color: rgba(245, 243, 239, 0.28);
  transition: color 600ms var(--ease);
}
.tagline .word.on { color: var(--text); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-400); }
.step {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400);
}
.step__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-xl);
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--accent-hover);
  margin-bottom: var(--space-200);
}
.step__icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 18px; line-height: 28px; }
.step p { margin-top: var(--space-75); color: var(--text-muted); font-size: 14px; line-height: 20px; }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* ---------- Benefits ---------- */

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-300) var(--space-500); }
.benefit { display: flex; gap: var(--space-200); }
.benefit svg { width: 20px; height: 20px; color: var(--positive); flex-shrink: 0; margin-top: 2px; }
.benefit h3 { font-size: 16px; line-height: 24px; }
.benefit p { color: var(--text-muted); font-size: 14px; line-height: 20px; margin-top: var(--space-50); }

/* ---------- Winners ---------- */

.winners { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-300); }
.winner {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-300);
}
.winner .shot { margin-bottom: var(--space-200); }
.winner__name { font-weight: 600; }
.winner__prize { font-size: 13px; color: var(--text-muted); margin-top: var(--space-25); }
.winner__ticket { font-family: var(--font-mono); font-size: 12px; color: var(--accent-hover); margin-top: var(--space-100); }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-400); }
.quote {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400);
}
.quote p { font-size: 15px; line-height: 24px; }
.quote footer { margin-top: var(--space-300); font-size: 13px; color: var(--text-muted); }
.quote .stars { display: block; margin-bottom: var(--space-200); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-200);
  padding: var(--space-300) 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq__q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 400ms var(--ease); color: var(--text-muted); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 500ms var(--ease);
}
.faq__a p { padding-bottom: var(--space-300); color: var(--text-muted); font-size: 15px; line-height: 24px; }

/* ---------- Final CTA ---------- */

.final {
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  background: var(--surface-1);
  padding: var(--space-800) var(--space-500);
  text-align: center;
}
.final h2 { font-size: 36px; line-height: 40px; max-width: 620px; margin: 0 auto; }
.final p { margin: var(--space-200) auto 0; color: var(--text-muted); max-width: 520px; }
.final .btn { margin-top: var(--space-400); }

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

.footer { border-top: 1px solid var(--border); padding-top: var(--space-700); padding-bottom: var(--space-500); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-400); }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: var(--space-200); }
.footer a { display: block; font-size: 14px; color: var(--text-muted); padding: var(--space-50) 0; }
.footer a:hover { color: var(--text); }
.footer .brand { display: inline-flex; color: var(--text); font-size: 16px; padding: 0; }
.footer .brand:hover { color: var(--text); }
.footer__legal {
  margin-top: var(--space-600);
  padding-top: var(--space-300);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-200);
  font-size: 12px;
  color: var(--text-dim);
}
.footer__legal .age {
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 2px 10px;
  font-family: var(--font-mono);
}

/* ---------- Competition detail ---------- */

.breadcrumb { font-size: 13px; color: var(--text-muted); padding-top: var(--space-700); }
.breadcrumb a:hover { color: var(--text); }

.comp { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-600); align-items: start; padding-top: var(--space-400); }
.gallery__main { margin-bottom: var(--space-200); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-200); }

.buybox {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400);
  position: sticky;
  top: var(--space-500);
}
.buybox h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.buybox__value { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin-top: var(--space-100); }
.buybox__price { font-family: var(--font-mono); font-size: 30px; margin-top: var(--space-300); }
.buybox__price small { font-size: 13px; color: var(--text-dim); }

.qty { display: flex; align-items: center; gap: var(--space-200); margin-top: var(--space-300); }
.qty button {
  width: 40px; height: 40px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.qty button:hover { border-color: var(--text-muted); }
.qty input {
  width: 72px;
  height: 40px;
  text-align: center;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
}
.qty__quick { display: flex; gap: var(--space-75); margin-top: var(--space-200); flex-wrap: wrap; }
.qty__quick button {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: var(--space-50) var(--space-100);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.qty__quick button:hover { color: var(--text); border-color: var(--text-muted); }
.qty__note { font-size: 12px; color: var(--text-dim); margin-top: var(--space-100); }

.skillq {
  margin-top: var(--space-400);
  padding: var(--space-300);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.skillq legend { font-size: 13px; font-weight: 600; padding: 0; }
.skillq p.hint { font-size: 13px; color: var(--text-muted); margin: var(--space-50) 0 var(--space-200); }
.skillq label { display: flex; gap: var(--space-100); align-items: flex-start; padding: var(--space-75) 0; font-size: 14px; cursor: pointer; }
.skillq input { margin-top: 3px; accent-color: var(--accent); }
.skillq .err { color: var(--warn); font-size: 12px; margin-top: var(--space-100); display: none; }
.skillq.invalid .err { display: block; }

.buybox .btn--block { margin-top: var(--space-300); }
.buybox__free { display: block; text-align: center; margin-top: var(--space-200); font-size: 13px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.buybox__trust { display: flex; flex-wrap: wrap; gap: var(--space-200); margin-top: var(--space-300); font-size: 12px; color: var(--text-dim); }
.buybox__trust span { display: inline-flex; align-items: center; gap: var(--space-50); }
.buybox__trust svg { width: 14px; height: 14px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-200) 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 42%; color: var(--text-muted); font-weight: 500; }
.spec-table td { font-family: var(--font-mono); }

.prose { max-width: 720px; }
.prose p { color: var(--text-muted); font-size: 16px; line-height: 26px; margin-top: var(--space-200); }
.prose h3 { font-size: 20px; line-height: 28px; margin-top: var(--space-400); }

.postal {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-500);
}
.postal address { font-style: normal; font-family: var(--font-mono); font-size: 14px; line-height: 24px; margin-top: var(--space-200); color: var(--text); }
.postal ol { color: var(--text-muted); font-size: 14px; line-height: 22px; padding-left: var(--space-300); margin-top: var(--space-200); }
.postal li { margin-bottom: var(--space-100); }

.callout {
  border-left: 3px solid var(--accent);
  padding: var(--space-100) 0 var(--space-100) var(--space-300);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 800ms var(--ease), transform 800ms var(--ease), filter 800ms var(--ease); }
.js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .tagline .word { color: var(--text); }
}

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

@media (max-width: 960px) {
  .cards, .steps, .quotes { grid-template-columns: 1fr; }
  .winners { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 44px; }
  .tagline p { font-size: 32px; }
  .section-head h2, .final h2 { font-size: 30px; line-height: 36px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__pill { width: calc(100vw - var(--space-400)); justify-content: space-between; }
  .section { padding-top: var(--space-700); padding-bottom: var(--space-700); }
  .hero h1 { font-size: 36px; }
  .footer__grid { grid-template-columns: 1fr; }
  .winners { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Dynamic features (mock backend): basket, my entries, winners,
   verify, admin, odds meter, entry feed, draw states, reveal.
   ============================================================ */

.page-head { padding-top: 120px; padding-bottom: var(--space-500); }
.page-head h1 { font-size: 36px; line-height: 40px; }
.page-head p { margin-top: var(--space-200); color: var(--text-muted); max-width: 560px; }

.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text);
}
.nav__cart svg { width: 16px; height: 16px; }
.nav__cart[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute;
  top: -6px; right: -6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-25) var(--space-100);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge--open { color: var(--positive); border-color: rgba(70, 194, 106, 0.45); }
.badge--closed { color: var(--warn); border-color: rgba(255, 194, 61, 0.4); }
.badge--drawing { color: var(--info-hover); border-color: rgba(47, 107, 255, 0.5); }
.badge--complete { color: var(--text-dim); }
.badge--pending { color: var(--warn); border-color: rgba(255, 194, 61, 0.4); }
.badge--paid { color: var(--positive); border-color: rgba(70, 194, 106, 0.45); }
.badge--won { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Odds meter */
.odds {
  margin-top: var(--space-200);
  padding: var(--space-200);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
  font-size: 13px;
  color: var(--text-muted);
}
.odds strong { color: var(--text); font-family: var(--font-mono); }

/* Entry feed */
.feed { display: flex; flex-direction: column; gap: var(--space-100); }
.feed__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  padding: var(--space-100) var(--space-200);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  font-size: 13px;
}
.feed__row span:last-child { font-family: var(--font-mono); color: var(--text-dim); }
.feed__row.is-new { border-color: rgba(255, 102, 0, 0.5); }

/* Generic data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td {
  text-align: left;
  padding: var(--space-200);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dtable th { color: var(--text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.dtable td.num, .dtable td.mono { font-family: var(--font-mono); }
.dtable tbody tr:hover, .dtable tbody tr:hover { background: var(--surface-1); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-2xl); }

/* Forms */
.field { margin-bottom: var(--space-300); }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: var(--space-75); }
.field input, .field select {
  width: 100%;
  padding: var(--space-200);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.form-note { font-size: 12px; color: var(--text-dim); margin-top: var(--space-75); }
.form-error {
  border-left: 3px solid var(--warn);
  padding-left: var(--space-200);
  color: var(--warn);
  font-size: 13px;
  margin-bottom: var(--space-300);
}
.form-ok {
  border-left: 3px solid var(--positive);
  padding-left: var(--space-200);
  color: var(--text);
  font-size: 14px;
  margin-bottom: var(--space-300);
}

/* Basket */
.basket-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-300);
  align-items: center;
  padding: var(--space-300) 0;
  border-bottom: 1px solid var(--border);
}
.basket-line h3 { font-size: 16px; }
.basket-line .qty { margin: 0; }
.basket-line .qty button { width: 32px; height: 32px; font-size: 16px; }
.basket-line .qty input { width: 56px; height: 32px; }
.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-300) 0;
  font-size: 18px;
}
.basket-total strong { font-family: var(--font-mono); font-size: 24px; }
.empty-state {
  text-align: center;
  padding: var(--space-800) var(--space-300);
  border: 1px dashed var(--border);
  border-radius: var(--r-2xl);
  color: var(--text-muted);
}
.stub-note {
  margin-top: var(--space-300);
  padding: var(--space-200) var(--space-300);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Draw state panel on competition page */
.drawstate {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400);
  margin-top: var(--space-300);
}
.drawstate h3 { font-size: 18px; }
.drawstate p { color: var(--text-muted); font-size: 14px; margin-top: var(--space-100); }
.drawstate .embed {
  margin-top: var(--space-300);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

/* Digit roller */
.dr { text-align: center; }
.dr-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-200);
}
.dr-rack {
  display: inline-flex;
  gap: var(--space-100);
  padding: var(--space-200);
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--border);
}
.dr-reel {
  width: 44px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
}
.dr-reel--stopped { border-color: var(--accent); }
.dr-strip { display: flex; flex-direction: column; will-change: transform; }
.dr-cell {
  height: 64px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  color: var(--text);
}
.dr-winner {
  margin-top: var(--space-400);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.dr-winner.in { opacity: 1; transform: translateY(0); }
.dr-winner-num { font-family: var(--font-mono); font-size: 20px; color: var(--accent-hover); }
.dr-winner-name { font-size: 28px; font-weight: 600; margin-top: var(--space-75); }
.dr-winner-region { color: var(--text-muted); font-size: 14px; margin-top: var(--space-25); }
.dr-verify {
  display: inline-block;
  margin-top: var(--space-200);
  font-size: 13px;
  color: var(--info-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Verify page */
.verify-result {
  margin-top: var(--space-400);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400);
}
.verify-result dl { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-200) var(--space-300); margin: 0; }
.verify-result dt { color: var(--text-muted); font-size: 13px; }
.verify-result dd { margin: 0; font-family: var(--font-mono); font-size: 13px; word-break: break-all; }
.verify-match { font-size: 15px; font-weight: 600; padding: var(--space-200) 0; }
.verify-match.ok { color: var(--positive); }
.verify-match.bad { color: var(--warn); }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-400); }
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400);
}
.admin-card h2 { font-size: 18px; margin-bottom: var(--space-200); }
.admin-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-200);
  padding: var(--space-300);
  border: 1px solid var(--warn);
  border-radius: var(--r-xl);
  background: rgba(255, 206, 74, 0.06);
  margin-bottom: var(--space-400);
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

/* Factory Club tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-300);
  margin-top: var(--space-400);
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: var(--surface-1);
  padding: var(--space-400) var(--space-300);
}
.tier--popular { border-color: var(--accent); }
.tier--current { border-color: var(--positive); }
.tier__flag {
  position: absolute;
  top: calc(var(--space-200) * -1);
  left: var(--space-300);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.tier__name { font-size: 18px; }
.tier__price { font-family: var(--font-mono); font-size: 28px; margin-top: var(--space-100); }
.tier__price span { font-size: 13px; color: var(--text-dim); }
.tier__value { font-size: 13px; color: var(--accent-hover); margin-top: var(--space-75); }
.tier__perks {
  list-style: none;
  padding: 0;
  margin: var(--space-300) 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
}
.tier__perks li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: var(--space-200);
  position: relative;
  line-height: 18px;
}
.tier__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--accent);
}

@media (max-width: 960px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .verify-result dl { grid-template-columns: 1fr; gap: var(--space-75); }
  .verify-result dd { margin-bottom: var(--space-200); }
  .basket-line { grid-template-columns: 1fr auto; }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
}

/* ---------- Category strip (home) ---------- */
.cats-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-1);
}
.cats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-300);
  padding: var(--space-400) 0;
}
.cats li {
  display: flex;
  flex-direction: column;
  gap: var(--space-25);
  padding-left: var(--space-200);
  border-left: 2px solid var(--accent);
}
.cats__k {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.cats__v {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .cats { grid-template-columns: repeat(2, 1fr); gap: var(--space-300) var(--space-400); }
}
@media (max-width: 480px) {
  .cats { grid-template-columns: 1fr; }
}
