/* ===== Design tokens =====
   Premium motorsport palette derived from the Play X logo: near-black,
   graphite, racing red, off-white. No secondary hues (gold/cyan removed) -
   see CLAUDE.md / the approved redesign plan for the rationale. */
:root {
  --bg: #0c0c0d;
  --bg-alt: #141416;
  --bg-card: #1b1c1f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f3f0;
  --text-dim: #9a979b;
  --red: #e2231a;
  --red-dark: #8f1015;
  --radius: 8px;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--text);
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.05rem; margin-bottom: 6px; }

p { color: var(--text-dim); }

.center { text-align: center; }

.kicker {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.section-note { font-size: 0.95rem; margin-top: -6px; margin-bottom: 34px; }

/* Anchor targets nested inside a section (nav links to individual
   Race/Xperience/Hangout cards) need their own scroll-margin so the sticky
   header doesn't cover them when jumped to directly. */
.showcase-card[id] { scroll-margin-top: 100px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

/* Subtle scroll-in reveal - progressive enhancement only. Content is fully
   visible without JS; js/scroll-reveal.js adds .reveal-init before
   observing, so a blocked/slow script never leaves content hidden. */
[data-reveal] { transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].reveal-init { opacity: 0; transform: translateY(20px); }
[data-reveal].reveal-init.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-init { opacity: 1; transform: none; transition: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 22px rgba(226,35,26,0.28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 28px rgba(226,35,26,0.4); }
/* background: none is explicit (not just "no rule") because every existing
   .btn-outline is an <a>, which has no UA background to begin with - a
   <button class="btn btn-outline"> (e.g. Reservation Review's Edit Details)
   would otherwise pick up the browser's default gray button face. */
.btn-outline { background: none; border-color: rgba(255,255,255,0.22); color: var(--text); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-text { background: none; padding: 12px 4px; color: var(--text-dim); }
.btn-text:hover { color: var(--red); transform: none; }
.btn-full { width: 100%; }
.btn-sm { padding: 11px 14px; font-size: 0.8rem; }
.btn-sm.btn-text { padding: 11px 6px; }
.btn[disabled] { opacity: 0.65; cursor: default; transform: none; }

/* ===== Social auth buttons (auth.html) ===== */
.social-auth-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-card);
  color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-transform: none; letter-spacing: normal; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-social:hover { border-color: rgba(255,255,255,0.3); background: var(--bg-alt); transform: none; }
.btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; color: var(--text-dim); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== Header =====
   Three-column grid (logo / centered nav / actions) rather than a plain
   space-between flex row - a centered .main-nav needs a column of its own
   so it centers against the header's full width, not just the leftover
   space next to the logo. Height target ~76-82px comes from the 44px logo
   plus 18px of vertical padding on each side. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }
.logo-img-footer { height: 60px; width: auto; margin-bottom: 14px; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 2.4vw, 36px);
  flex-wrap: wrap;
}
.main-nav a {
  position: relative;
  padding: 8px 1px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: var(--red); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; justify-self: end; }
.desktop-auth-area { display: inline-flex; align-items: center; gap: 6px; }
.header-greeting { font-weight: 600; font-size: 0.85rem; color: var(--text-dim); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; width: 44px; height: 44px; padding: 0; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

.mobile-auth-row { display: none; }
.mobile-auth-row .header-greeting { display: block; margin-bottom: 10px; }

/* Log Out: a subtle secondary nav action next to "My Account", not a large
   filled/outlined button - same dim-text-that-reddens-on-hover treatment as
   the main nav links (.main-nav a) rather than the .btn styles. */
.logout-btn {
  background: none;
  border: none;
  padding: 8px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}
.logout-btn:hover { color: var(--red); }

/* ===== Hero =====
   Full-bleed, not boxed: the racing silhouette is a large background layer
   that bleeds off the right/bottom edge behind the text, like a dominant
   hero photo would - not a contained icon panel. A left-to-right scrim
   keeps the text legible without dimming the visual itself. Still
   deliberately low on color: red is spent in exactly three places - the
   "X" in the tagline, the wheel rims on the silhouette, and the CTA button. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 170px 24px 130px;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 5px);
}
.hero-visual { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-visual svg {
  position: absolute; right: -6%; bottom: 4%;
  width: 68%; min-width: 560px; height: auto;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--bg) 0%, rgba(12,12,13,0.88) 32%, rgba(12,12,13,0.4) 58%, transparent 78%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; text-align: left; }
.hero-tagline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero-tagline .accent { color: var(--red); }
.hero-sub { font-size: 1.1rem; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===== Experiences (Static vs Motion) ===== */
.experience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.experience-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; text-align: center; transition: border-color 0.2s ease, transform 0.2s ease;
}
.experience-card:hover { border-color: var(--red); transform: translateY(-4px); }
.experience-count { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.experience-card h3 { font-size: 1.6rem; }
.experience-card p { font-size: 1rem; }

.amenity-list { list-style: none; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.amenity-list li { padding-left: 24px; position: relative; font-size: 0.95rem; }
.amenity-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ===== Pricing =====
   Each experience group is a heading + a grid of standalone option cards -
   not a bordered table of rows - so a duration tier reads as its own
   product. Static/Motion are shown side by side on every card behind
   persistent labels so the two prices are never ambiguous. auto-fit collapses
   empty tracks, so a 3-option group (Solo) and a 2-option group (Duo) both
   lay out as evenly balanced columns from the same rule. The Grand Race is a
   separate "signature" hero block, never a card in this grid. */
.pricing-groups { display: flex; flex-direction: column; gap: 56px; margin-top: 44px; max-width: 960px; margin-left: auto; margin-right: auto; }

.pricing-group-head { text-align: center; margin-bottom: 26px; }
.pricing-group-title { font-size: 1.35rem; }
.pricing-group-note {
  display: inline-block; font-size: 0.82rem; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 20px; padding: 5px 16px; margin-top: 4px;
}

.pricing-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.pricing-option-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: border-color 0.2s ease, transform 0.2s ease;
}
.pricing-option-card:hover { border-color: rgba(226,35,26,0.4); transform: translateY(-3px); }
.pricing-option-card.featured {
  border-color: var(--red); background: var(--bg-alt); box-shadow: 0 14px 34px rgba(226,35,26,0.14);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-option-duration { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.pricing-option-name { font-size: 1.1rem; margin: 6px 0 20px; }

.pricing-rate-compare { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rate-block { display: flex; flex-direction: column; gap: 4px; }
.rate-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.rate-value { font-family: var(--font-head); font-size: 1.3rem; color: var(--red); }
.rate-divider { width: 1px; height: 34px; background: var(--line); }

.pricing-signature {
  position: relative; margin-top: 4px; padding: 52px 40px; text-align: center; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 5px),
    var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pricing-signature::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0.8;
}
.pricing-kicker-tag { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.pricing-signature-name { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.signature-specs { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 30px; }
.signature-spec { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.signature-spec:not(:last-child)::after {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); margin-left: 14px; vertical-align: middle;
}
.signature-options { display: flex; justify-content: center; gap: 48px; margin-bottom: 32px; flex-wrap: wrap; }
.signature-option { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.signature-option span { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.signature-option strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--red); }

/* Secondary block - deliberately quieter than the pricing groups above. */
.session-benefits { max-width: 760px; margin: 48px auto 0; padding: 18px 28px; border-radius: 40px; border: 1px solid var(--line); text-align: center; }
.session-benefits-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.session-benefits-strip { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 6px; }
.session-benefits-strip span { font-size: 0.85rem; color: var(--text-dim); }
.session-benefits-strip span:not(:last-child)::after { content: "\2022"; margin: 0 12px; color: var(--red); }

/* ===== Race Pass =====
   Visually distinct from the session-pricing groups above: an eyebrow
   label, a Pay -> Get value strip, and the bonus called out as a plain pill
   (never a crossed-out/discount price). race-pass-grid wraps so a future
   second product lays out as an additional card automatically. */
.race-pass { position: relative; }
.race-pass::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0.6;
}
.race-pass-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 44px; }
.race-pass-card {
  flex: 1 1 400px; max-width: 480px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 40px; text-align: center;
}
.race-pass-card.highlight { border-color: var(--red); background: var(--bg-alt); box-shadow: 0 16px 40px rgba(226,35,26,0.12); }
.race-pass-eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.race-pass-value { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 22px 0 16px; flex-wrap: wrap; }
.race-pass-pay, .race-pass-get { display: flex; flex-direction: column; gap: 4px; }
.race-pass-pay span, .race-pass-get span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.race-pass-pay strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--text); }
.race-pass-get strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--red); }
.race-pass-arrow { width: 26px; height: 2px; background: var(--line); position: relative; flex-shrink: 0; }
.race-pass-arrow::after {
  content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px;
  border-top: 2px solid var(--text-dim); border-right: 2px solid var(--text-dim); transform: translateY(-50%) rotate(45deg);
}
.race-pass-bonus-pill {
  display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--red);
  border: 1px solid rgba(226,35,26,0.4); background: rgba(226,35,26,0.08);
  border-radius: 20px; padding: 6px 16px; margin-bottom: 26px;
}
.race-pass-rules { list-style: none; text-align: left; margin-bottom: 30px; }
.race-pass-rules li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.race-pass-rules li:last-child { border-bottom: none; }
.race-pass-card .btn { width: 100%; }

/* ===== Cafe (atmosphere) ===== */
.cafe { position: relative; }
.cafe::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0.6;
}
.cafe-headline { line-height: 1.08; }
.cafe-headline span { display: block; }
.cafe-headline .accent { color: var(--red); }

/* ===== Race / Xperience / Hangout showcase cards =====
   Image-led cards: .showcase-media holds the photo (or, until a real photo
   exists for Xperience/Hangout, a placeholder empty state) and is sized via
   aspect-ratio so it reads as roughly 55-60% of the card at the default
   3-column desktop width, with .showcase-body (title/description/CTA)
   filling the rest. Consistent aspect-ratio + flex body keeps all three
   cards the same height regardless of copy length. */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.showcase-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.showcase-card:hover { border-color: rgba(226,35,26,0.4); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.showcase-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(155deg, #1c1d20 0%, #101012 70%);
}
.showcase-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.showcase-card:hover .showcase-img { transform: scale(1.06); }
.showcase-media-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
}
/* Placeholder shown for Xperience/Hangout until real photography exists -
   see the HTML comments above each card for the expected filename. */
.showcase-media-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--text-dim);
}
.showcase-media-empty::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 5px);
}
.showcase-media-empty svg { position: relative; width: 32px; height: 32px; color: var(--red); opacity: 0.85; }
.showcase-media-empty span { position: relative; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.showcase-body { position: relative; padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.showcase-label {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); background: rgba(226,35,26,0.12); border: 1px solid rgba(226,35,26,0.35);
  border-radius: 20px; padding: 4px 12px; margin-bottom: 14px;
}
.showcase-title { font-size: 1.35rem; margin-bottom: 10px; }
.showcase-desc { font-size: 0.95rem; margin-bottom: 22px; flex: 1; }
.showcase-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); transition: color 0.15s ease;
}
.showcase-cta svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.showcase-cta:hover { color: var(--red); }
.showcase-cta:hover svg { transform: translateX(3px); }

/* ===== Location (map + contact) ===== */
.location-map {
  margin: 36px auto 40px; max-width: 900px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card);
}
.location-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.location-details {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 8px; padding-top: 32px; border-top: 1px solid var(--line);
}
.location-detail h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.location-detail p { color: var(--text); font-size: 0.98rem; line-height: 1.6; }
.location-detail p a { color: var(--red); }
.location-cta-row { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ===== Booking form ===== */
.booking-form { max-width: 720px; margin: 40px auto 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-dim); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.form-field select:disabled { opacity: 0.6; cursor: not-allowed; }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 6px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 6px; font-weight: 600; }
.booking-form .btn { width: 100%; margin-top: 6px; }
.form-status { margin-top: 16px; text-align: center; font-weight: 600; min-height: 1.4em; }

/* Groups the form's three subsections (Your Race / Your Session / Your
   Details). The divider only applies from the second subsection onward via
   the adjacent-sibling combinator, so the first subsection - sitting right
   under the form's own top padding - doesn't need a separate "no border"
   class. */
.booking-form-section + .booking-form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.booking-form-kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
/* Guest-only nudge shown above the submit button - hidden by js/script.js
   once a Cognito session is confirmed. Reuses .form-hint's look, just
   centered since it sits below the full-width form, not under one field. */
.booking-guest-hint { text-align: center; margin-top: 4px; margin-bottom: 4px; }

/* Live price summary shown once an Xperience is selected - values are set
   by js/script.js from js/pricing-config.js, never hardcoded here. */
.booking-summary { margin-bottom: 22px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.booking-summary-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.booking-summary-value { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 18px; }
.booking-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.summary-item { display: flex; flex-direction: column; gap: 4px; }
.summary-item span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.summary-item strong { font-family: var(--font-head); font-size: 0.95rem; }
.booking-summary-total { display: flex; align-items: center; justify-content: space-between; }
.booking-summary-total span { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.booking-summary-total strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--red); }
/* Status row - same layout rhythm as .booking-summary-total, but the value
   is a .booking-status-pill badge rather than a large price figure. */
.booking-summary-status { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.booking-summary-status span { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
/* Booking reference on the final "You're On The Grid" confirmation
   (#bookingResult) - a quiet line between the status row and the
   View My Bookings/Back to Home actions, only shown when the backend
   returned an id (see js/script.js's submitBookingRequest()). Reused as-is
   on each My Bookings list item (js/my-bookings.js's renderBookingItem()). */
.booking-reference { margin: 14px 0 0; font-size: 0.8rem; color: var(--text-dim); }
/* A booking's own free-text notes, shown on its My Bookings list item only
   when present (js/my-bookings.js). Sits above .booking-reference, same
   dashed-divider rhythm as .booking-summary-status. */
.booking-notes { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--text-dim); }
.booking-notes span { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 4px; }
.form-status.success { color: #34d399; }

/* Reservation Review screen - shown in place of the booking form after
   submit, before any verification/API step exists (see js/script.js's
   showReservationReview()). Inherits .booking-form's card/padding, so only
   the parts that differ from a plain form need their own rules. */
.reservation-review-title { text-align: center; font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 24px; }
.reservation-review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.reservation-review-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reservation-review-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.reservation-review-section p#reviewNotes { color: var(--text-dim); }
.reservation-review-hint { text-align: center; margin-top: 22px; margin-bottom: 4px; }
.reservation-review-actions { display: flex; gap: 12px; margin-top: 18px; }
.reservation-review-actions .btn { width: auto; flex: 1; margin-top: 0; }

/* Visually hidden but still readable by screen readers - used for the
   #otpInputGroup fieldset's <legend>, which would otherwise duplicate the
   copy already shown above it. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* OTP verification - replaces reservationReviewActions once POST /auth/start
   succeeds (see js/script.js's showOtpVerification()). Sits inside the same
   .reservation-review card, so no border/background of its own is needed. */
.otp-verification-copy { text-align: center; color: var(--text-dim); margin-bottom: 20px; line-height: 1.5; }
.otp-verification-copy strong { color: var(--text); font-family: var(--font-head); font-size: 1rem; }
.otp-input-group {
  display: flex; justify-content: center; gap: 10px; border: none; padding: 0; margin: 0 0 20px;
}
/* .otp-digit is the booking flow's 6-digit boxes (js/script.js); .mb-otp-digit
   is the identical-looking set on the My Bookings sign-in gate below - kept
   as a separate class only so document.querySelectorAll('.otp-digit') in
   js/script.js's booking flow never picks up the other form's inputs. */
.otp-digit, .mb-otp-digit {
  width: 100%; max-width: 52px; aspect-ratio: 1; text-align: center;
  font-family: var(--font-head); font-size: 1.3rem; padding: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--text);
}
.otp-digit:focus, .mb-otp-digit:focus { outline: none; border-color: var(--red); }
.otp-verification .btn { width: 100%; margin-top: 0; }
.otp-secondary-actions { display: flex; justify-content: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }

/* Shown in place of the booking form / My Bookings list when the visitor
   isn't logged in - booking and viewing booking history both require a Play
   X account (see js/script.js, js/my-bookings.js). */
.booking-login-gate { max-width: 720px; margin: 40px auto 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
/* Passwordless "Verify your email" sign-in form on that gate - Play X has no
   password login left in the customer-facing journey (see
   js/script.js's My Bookings gate section). Reuses .form-field for the email
   input, same as the booking form, so only the layout/button width need
   their own rules here. */
.my-bookings-auth-form { max-width: 360px; margin: 0 auto; text-align: left; }
.my-bookings-auth-form .btn { width: 100%; margin-top: 4px; }
.booking-login-gate p { margin-bottom: 18px; color: var(--text-dim); }

/* ===== My Bookings ===== */
/* Upcoming/History toggle above the list (js/my-bookings.js) - same
   segmented-control look as .modal-tabs/.modal-tab on auth.html. */
.my-bookings-tabs { display: flex; gap: 6px; max-width: 360px; margin: 28px auto 0; background: var(--bg); border-radius: 8px; padding: 4px; }
.my-bookings-tab {
  flex: 1; padding: 10px; border: none; border-radius: 6px; background: none;
  color: var(--text-dim); font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer;
}
.my-bookings-tab.active { background: var(--red); color: #fff; }
.my-bookings-list { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 16px; }
.my-bookings-list .booking-summary { margin-bottom: 0; }
/* Both rules above set their own `display` (flex), which otherwise beats the
   browser's default `[hidden] { display: none }` UA rule - author CSS always
   wins over UA CSS regardless of selector specificity. Without this, setting
   el.hidden = true from js/my-bookings.js left the tabs/list visibly laid
   out (just empty) instead of actually hidden - exactly what let the
   Upcoming/History toggle and its empty-state text show through before a
   customer had signed in. */
.my-bookings-tabs[hidden], .my-bookings-list[hidden] { display: none; }
.booking-status-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-card); border: 1px solid var(--line); }
.booking-status-pill.pending { color: #f0b429; border-color: #f0b429; }
.booking-status-pill.confirmed { color: #34d399; border-color: #34d399; }
.booking-status-pill.cancelled, .booking-status-pill.no_show { color: var(--text-dim); }
.booking-status-pill.completed { color: var(--red); border-color: var(--red); }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-tagline { margin-top: 4px; font-size: 0.9rem; }
.footer-grid h4 { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--red); }
.footer-terms { font-size: 0.85rem; line-height: 1.55; }
.footer-copy { text-align: center; color: var(--text-dim); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 24px; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: #25d366; color: #fff; padding: 13px 20px; border-radius: 30px;
  font-weight: 700; font-size: 0.9rem; box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ===== Auth page (auth.html) ===== */
.auth-topbar {
  padding: 18px 24px; text-align: center; background: var(--bg-card); border-bottom: 1px solid var(--line);
}
.auth-topbar .logo { display: inline-flex; }

.auth-page {
  min-height: 60vh;
  display: flex; justify-content: center;
  padding: 56px 24px;
  background: radial-gradient(circle at 50% -10%, rgba(226,35,26,0.14) 0%, var(--bg) 55%);
}
.auth-card {
  position: relative; width: 100%; max-width: 460px; height: fit-content;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 40px 36px; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Success state */
.auth-success { text-align: center; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 1.6rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.auth-success h2 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-success p { margin-bottom: 22px; }
.auth-demo-note { margin-top: 18px; font-size: 0.82rem; color: var(--text-dim); }

/* Hero banner below the card, echoing the reference auth page's large facility image */
.auth-hero-banner {
  background: var(--bg-alt); border-top: 1px solid var(--line);
  padding: 56px 24px; text-align: center;
}
.auth-hero-graphic { width: 100%; max-width: 480px; margin: 0 auto 20px; border-radius: var(--radius); overflow: hidden; }
.gfx-track-bg { fill: var(--bg-card); }
.gfx-track { fill: none; stroke: var(--red); stroke-width: 6; stroke-linejoin: round; }
.gfx-flag-hero { fill: var(--red); }
.auth-hero-caption { color: var(--text-dim); font-size: 0.95rem; max-width: 480px; margin: 0 auto; }

/* ===== Shared auth form styling (used on auth.html) ===== */
.modal-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 8px; padding: 4px; margin-bottom: 26px; }
.modal-tab {
  flex: 1; padding: 10px; border: none; border-radius: 6px; background: none;
  color: var(--text-dim); font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer;
}
.modal-tab.active { background: var(--red); color: #fff; }
.modal-view h1, .modal-view h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-sub { font-size: 0.92rem; margin-bottom: 22px; }
.modal-view .form-field { margin-bottom: 16px; }
.modal-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-dim); }
.checkbox-line input { width: auto; }
.link-muted { color: var(--red); font-size: 0.88rem; }
.link-inline { background: none; border: none; color: var(--red); font-weight: 700; cursor: pointer; padding: 0; font-family: var(--font-body); font-size: 1rem; }
.modal-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.reset-code-fields { margin-top: 16px; }
.perk-list { list-style: none; margin: 0 0 22px; }
.perk-list li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 0.92rem; color: var(--text); }
.perk-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner { padding: 14px 20px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 20px 24px; border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav a { padding: 12px 2px; }
  .site-header.nav-open .main-nav a::after { display: none; }
  .mobile-auth-row { display: flex; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
  .mobile-auth-row .btn { flex: 1; text-align: center; }
  .header-actions .auth-btn-desktop { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-card:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 560px; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-visual svg { right: -12%; bottom: 0; width: 90%; min-width: 0; opacity: 0.5; }
  .hero-scrim { background: rgba(12,12,13,0.6); }
  .location-map iframe { height: 320px; }
  .location-details { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .logo-img { height: 36px; }
  .experience-grid, .showcase-grid,
  .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 20px 70px; min-height: 520px; }
  .hero-visual svg { width: 115%; opacity: 0.4; }
  .hero-scrim { background: rgba(12,12,13,0.68); }
  .amenity-list { gap: 18px; }
  .booking-form { padding: 24px; }
  .booking-form .btn-lg { padding: 16px 20px; }
  .booking-summary { padding: 18px 16px; }
  .booking-summary-grid { gap: 10px; }
  .reservation-review-grid, .reservation-review-contact-grid { grid-template-columns: 1fr; }
  .reservation-review-actions { flex-direction: column; }
  .otp-input-group { gap: 8px; }
  .otp-digit { max-width: 44px; font-size: 1.1rem; }
  .auth-card { padding: 30px 22px; }
  .auth-page { padding: 36px 16px; }
  .pricing-groups { gap: 40px; }
  .pricing-group-head { margin-bottom: 20px; }
  .pricing-option-card { padding: 22px 18px; }
  .pricing-signature { padding: 34px 22px; }
  .signature-specs { gap: 10px; margin: 12px 0 22px; }
  .signature-options { gap: 24px; }
  .race-pass-card { flex-basis: 100%; padding: 32px 24px; }
  .race-pass-value { gap: 14px; }
  .location-map iframe { height: 260px; }
  .location-details { grid-template-columns: 1fr; gap: 20px; }
  .location-cta-row .btn { flex: 1; text-align: center; }
}

/* ================================================================
   PARKED FOR LAUNCH - NOT LIVE
   Styles for the three sections currently commented out in index.html
   (Racing Academy, Pro Shop, Events & Leagues). Kept so those sections
   still look right if/when they're restored. Safe to leave here while
   unused - none of these rules match anything in the current page.
   ================================================================ */

/* ===== FUTURE (NOT LIVE): Academy ===== */
.academy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.academy-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.academy-card h3 span { font-family: var(--font-body); font-size: 0.85rem; color: var(--red); margin-left: 8px; }

/* ===== FUTURE (NOT LIVE): Pro Shop ===== */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.shop-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: center; gap: 14px; font-weight: 600;
}
.shop-item span { font-size: 1.6rem; }

/* ===== FUTURE (NOT LIVE): Events & Leagues ===== */
.check-list { list-style: none; margin: 22px 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.events-graphic { display: flex; justify-content: center; }
.events-graphic svg { width: 100%; max-width: 320px; }
.gfx-podium { opacity: 0.9; }
.podium-1 { fill: var(--red); }
.podium-2 { fill: var(--text-dim); }
.podium-3 { fill: var(--red-dark); }

@media (max-width: 900px) {
  .academy-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .academy-grid, .shop-grid { grid-template-columns: 1fr; }
}
