/* =========================================
   APEX FORMULA — Stylesheet
   Inspired by Radical Motorsport + Porsche Experience
   ========================================= */

:root {
  --bg-black: #0a0a0a;
  --bg-dark: #121214;
  --bg-elev: #18181b;
  --line: #2a2a2e;
  --text: #f2f2f3;
  --text-dim: #a8a8ad;
  --text-mute: #6b6b70;
  --accent: #e10600;          /* motorsport red */
  --accent-hover: #ff1f17;
  --accent-deep: #b30500;
  --shadow: 0 30px 80px rgba(0,0,0,0.45);

  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
}

.section-dark  { background: var(--bg-dark); }
.section-black { background: var(--bg-black); }
.section-accent {
  background: linear-gradient(180deg, var(--bg-black) 0%, #0d0d0e 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Full-background section ── */
.section-bg {
  position: relative;
  overflow: hidden;
}
.section-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.65) 100%);
}
/* Slightly darker overlay for Why Formula */
#why .section-bg-overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.8) 100%);
}
/* Slightly darker overlay for Pricing */
#register .section-bg-overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.8) 100%);
}
/* Darker overlay for What Your Day Looks Like */
#day .section-bg-overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.9) 100%);
}
.section-bg-content {
  position: relative;
  z-index: 2;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.grid-2.align-top { align-items: flex-start; }

.grid-media { display: flex; }
.grid-img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* ---------- Typography ---------- */
.display,
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.95;
  margin: 0 0 24px;
}

.display {
  font-size: clamp(48px, 7.5vw, 112px);
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(36px, 5vw, 72px);
  color: var(--text);
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

h4.mini-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--text-dim);
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-left: 36px;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
  margin: 0 0 24px;
}

p { color: var(--text-dim); margin: 0 0 18px; }

.emphasis { color: var(--text); }
.emphasis strong { color: var(--accent); }

.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { padding-left: 0; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-name { font-size: 16px; }

/* Company logo — PNG with transparent background. Negative margin keeps header height unchanged. */
.brand-logo {
  display: block;
  height: 100px;
  width: auto;
  margin: -10px 0;
}
.brand-logo--lg { height: 120px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(225, 6, 0, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn-block { width: 100%; }

.btn-waitlist {
  background: #d4880f;
  color: #fff;
}
.btn-waitlist:hover {
  background: #e89918;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 136, 15, 0.35);
}

.text-sold-out { color: #e10600; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero-content .display { color: #fff; }
.subhead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 32px;
  line-height: 1.3;
}
.hero-support {
  max-width: 620px;
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 18px;
}
.hero-support.emphasis {
  color: var(--text);
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-scroll .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll .scroll-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-mute);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
@media (max-width: 700px) {
  .hero-scroll { display: none; }
}

/* ---------- Image placeholders ---------- */
.image-placeholder {
  background:
    repeating-linear-gradient(45deg, #1a1a1d 0, #1a1a1d 10px, #15151a 10px, #15151a 20px);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255,255,255,0.06);
  pointer-events: none;
}
.image-placeholder.tall { aspect-ratio: 3 / 4; }
.image-placeholder.card-media { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.image-placeholder.safety-media { aspect-ratio: 16 / 9; margin-top: 24px; }
.image-placeholder.step-media { aspect-ratio: 16 / 9; }

.ph-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(10,10,10,0.7);
  padding: 8px 14px;
  border: 1px solid var(--line);
}

/* ---------- Feature & check lists ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list .bar {
  width: 24px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 14px; height: 2px;
  background: var(--accent);
}

.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.safety-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
  position: relative;
  padding-left: 36px;
}
.safety-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* ---------- Steps (horizontal) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(255,255,255,0.015); }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.step-body h3 { margin-bottom: 12px; }
.step-body p { margin: 0; font-size: 15px; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-last-child(-n+1) { border-bottom: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .step:last-child { border-bottom: none; }
}

/* ---------- Included grid (arrive & drive) ---------- */
.included {
  margin-top: clamp(56px, 7vw, 96px);
}
.included .mini-title {
  margin-top: 0;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.included-box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.included-box::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.included-box:hover {
  border-color: var(--accent);
  background: #1c1c20;
  transform: translateY(-2px);
}
.included-box span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
@media (max-width: 1100px) {
  .included-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .included-grid { grid-template-columns: 1fr; }
}

/* ---------- Closing statement (arrive & drive) ---------- */
.closing-statement {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing-statement p {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--text);
  margin: 0 0 6px;
}
.closing-statement .big {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  color: var(--accent);
}

/* ---------- Driver grid ---------- */
.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.driver-card {
  background: rgba(10,10,10,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.driver-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.driver-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(10,10,10,0.75);
}
.driver-card:hover::before { width: 100%; }
.driver-card h3 { margin: 0 0 12px; }
.driver-card p { margin: 0; font-size: 15px; }

/* ---------- Pricing tiers ---------- */
/* The pricing section breaks out of the standard 1280px container so 4 cards
   fit comfortably in a single row on larger screens. */
#register .container { max-width: 1600px; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.tier-card {
  position: relative;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.tier-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(10,10,10,0.75);
}
.tier-card.tier-featured {
  background: rgba(10,10,10,0.7);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(225, 6, 0, 0.12);
}
.tier-card.tier-featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(225, 6, 0, 0.22);
  background: rgba(10,10,10,0.85);
}

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  white-space: nowrap;
}

.tier-head { margin-bottom: 32px; }
.tier-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.tier-name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1;
  margin: 0 0 14px;
  color: var(--text);
}
.tier-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tier-price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 4.5vw, 60px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tier-card.tier-featured .tier-price-value { color: var(--accent); }
.tier-price-currency {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
  flex-grow: 1;
}
.tier-features li {
  padding-left: 26px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.tier-features li strong { color: var(--text); font-weight: 600; }
.tier-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 14px; height: 2px;
  background: var(--accent);
}

.tier-cta { margin-top: auto; }

.tier-footnote {
  margin: 48px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  max-width: 640px;
}

@media (max-width: 700px) {
  .tier-grid { grid-template-columns: 1fr; gap: 32px; }
  .tier-card.tier-featured { order: -1; }
}

/* ---------- Form ---------- */
.registration-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.form-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.field label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-black);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #0d0d0e;
}
.field textarea { resize: vertical; min-height: 80px; }

.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 1.2em;
}
.form-status.success { color: #4ade80; }
.form-status.error   { color: #ff6b6b; }

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.faq-item[open] { background: rgba(255,255,255,0.015); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 56px 28px 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--text);
  position: relative;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-body { padding: 0 0 28px; }
.faq-body p { color: var(--text-dim); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.footer-tag {
  flex-basis: 100%;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-mute);
  max-width: 480px;
}
.footer-cta { text-align: right; }
.footer-fineprint {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cta { text-align: left; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll .line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Calendar page ---------- */
body.calendar-page .calendar-main {
  padding: 140px 0 100px;
  background: var(--bg-black);
  min-height: 80vh;
}

.cal-head {
  margin-bottom: 56px;
  max-width: 820px;
}
.back-link {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.cal-display {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 16px;
}
.cal-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0;
  max-width: 640px;
}

/* Contact-only state (Performance) */
.cal-contact {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: clamp(32px, 5vw, 56px);
  max-width: 760px;
}
.cal-contact .section-title { margin-bottom: 16px; }
.cal-contact-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
}

/* Calendar layout */
.cal-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.cal-month {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}
.cal-nav {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cal-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(225, 6, 0, 0.05);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot {
  width: 12px; height: 12px;
  display: inline-block;
}
.legend-available { background: var(--accent); }
.legend-full      { background: #3a3a3e; }
.legend-past      { background: #1c1c20; border: 1px solid var(--line); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-mute);
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cal-days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 14px 10px 10px;
  min-height: 86px;
  font: inherit;
  text-align: left;
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.cal-cell-empty {
  background: transparent;
  border-color: transparent;
}
.cal-day-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  line-height: 1;
}
.cal-day-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

.cal-cell.is-past .cal-day-num { color: var(--text-mute); }
.cal-cell.is-past { background: #0f0f11; opacity: 0.6; }

.cal-cell.is-empty { opacity: 0.55; }

.cal-cell.is-full {
  background: #1c1c20;
  cursor: pointer;
}
.cal-cell.is-full .cal-day-num { color: var(--text-dim); }
.cal-cell.is-full .cal-day-tag { color: #e10600; }

.cal-cell.is-available {
  cursor: pointer;
  border-color: var(--accent);
  background: rgba(225, 6, 0, 0.08);
}
.cal-cell.is-available .cal-day-tag { color: var(--accent); }
.cal-cell.is-available:hover {
  background: rgba(225, 6, 0, 0.18);
  transform: translateY(-2px);
}

.cal-cell.is-selected {
  background: var(--accent);
  border-color: var(--accent);
}
.cal-cell.is-selected .cal-day-num,
.cal-cell.is-selected .cal-day-tag {
  color: #fff;
}

.cal-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
  min-height: 1.4em;
}

/* Selected-date detail panel */
.cal-detail {
  margin-top: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 32px;
  max-width: 520px;
}
.cal-detail-date {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 26px;
  margin: 0 0 24px;
}
.cal-detail-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}
.cal-detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cal-detail-list dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}
.cal-detail-list dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  text-align: right;
}
.cal-detail-foot {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .cal-cell {
    min-height: 68px;
    padding: 10px 6px 8px;
  }
  .cal-day-num { font-size: 15px; }
  .cal-day-tag { font-size: 9px; }
}

/* ---------- Booking page (shared shell) ---------- */
body.booking-page .public-main {
  padding: 140px 0 100px;
  background: var(--bg-black);
  min-height: 80vh;
}

.booking-head {
  margin-bottom: 56px;
  max-width: 820px;
}
.booking-head .display {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 16px;
}

/* Two-column form layout */
.booking-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}

.booking-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}
.booking-summary-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 28px;
  margin: 0 0 24px;
}
.booking-summary-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.booking-summary-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.booking-summary-list dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}
.booking-summary-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}
.booking-summary-foot {
  margin: 0;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
}

.booking-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.booking-form .field { margin-bottom: 20px; }
.booking-form .fieldset {
  border: 1px solid var(--line);
  padding: 20px 20px 4px;
  margin: 0 0 20px;
}
.booking-form .fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 8px;
}
.booking-form .field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}
.booking-form .alert {
  margin-bottom: 24px;
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid var(--err);
  color: var(--err);
  background: rgba(255,107,107,0.05);
}
.booking-form .alert ul { margin: 8px 0 0 18px; padding: 0; }

/* ── Waiver modal ── */
.waiver-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.waiver-overlay[hidden] { display: none; }

.waiver-modal {
  background: var(--bg-card, #111);
  border: 1px solid var(--line);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
}
.waiver-title {
  font-family: var(--ff-heading, 'Barlow Condensed', sans-serif);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.waiver-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.waiver-body p { margin: 0 0 10px; }

.waiver-signature {
  margin-bottom: 24px;
}
.waiver-signature label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.waiver-signature canvas {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: crosshair;
  touch-action: none;
}
.waiver-signature .btn-sm {
  margin-top: 8px;
  font-size: 12px;
  padding: 4px 14px;
}

.waiver-photo {
  margin-bottom: 24px;
}
.waiver-photo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.waiver-photo .field-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-mute);
}
.waiver-camera-wrap {
  margin-bottom: 10px;
}
.waiver-camera-wrap video {
  display: none;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.waiver-photo .btn-sm {
  font-size: 12px;
  padding: 4px 14px;
}
.waiver-match { min-height: 18px; margin-top: 6px; }

.waiver-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.sig-ok { color: #4ade80; }
.sig-bad { color: var(--err); }
.waiver-modal button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Terms modal (used on public site) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal-panel {
  background: var(--bg-card, #111);
  border: 1px solid var(--line);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body .mini-title {
  margin: 0 0 8px;
  font-size: 11px;
  border: none;
  padding: 0;
  color: var(--text);
}
.modal-body .booking-terms-body {
  font-size: 13px;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.5;
  margin-bottom: 18px;
}

.booking-terms {
  background: var(--bg-black);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: 8px 0 18px;
  max-height: 220px;
  overflow-y: auto;
}
.booking-terms .mini-title {
  margin: 0 0 8px;
  font-size: 11px;
  border: none;
  padding: 0;
}
.booking-terms .mini-title + .booking-terms-body { margin-bottom: 14px; }
.booking-terms-body {
  font-size: 13px;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.5;
}

.terms-link {
  color: var(--accent, #e63946);
  text-decoration: underline;
  cursor: pointer;
}
.terms-link:hover {
  color: var(--accent-hover, #ff4d5a);
}

.booking-terms-collapse {
  background: var(--bg-black);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: -12px 0 18px;
  max-height: 220px;
  overflow-y: auto;
}
.booking-terms-collapse .mini-title {
  margin: 0 0 8px;
  font-size: 11px;
  border: none;
  padding: 0;
}

.terms-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1.45;
}
.terms-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- Booking status page ---------- */
.booking-status-container {
  padding-top: 0;
}
.booking-status-head {
  margin-bottom: 48px;
  max-width: 820px;
}
.booking-status-head .display {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0;
}

.booking-status-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .booking-status-grid { grid-template-columns: 1fr; }
}

.status-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 28px 28px 32px;
  position: sticky;
  top: 100px;
}
.status-card.status-confirmed { border-left-color: var(--ok); }
.status-card.status-cancelled,
.status-card.status-expired { border-left-color: var(--text-mute); }

.status-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.status-card-tier {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}

.status-card-body {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}
.status-card-body > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.status-card-body dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}
.status-card-body dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

/* Status pill (shared with admin styles but slightly different palette here) */
.status-card .status-pill {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.status-card .status-pill.status-confirmed { color: var(--ok); border-color: var(--ok); }
.status-card .status-pill.status-cancelled,
.status-card .status-pill.status-expired { color: var(--text-mute); border-color: var(--text-mute); }

/* Reference code block */
.ref-block {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.ref-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.ref-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ref-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-black);
  border: 1px solid var(--line);
  padding: 10px 16px;
  color: var(--text);
  flex: 1;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* Instructions panel */
.instructions {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.instructions .section-title {
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 24px;
}
.instructions-custom {
  background: var(--bg-black);
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.55;
  margin-bottom: 24px;
}
.instructions-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 18px;
}
.instructions-list li {
  position: relative;
  padding-left: 56px;
  color: var(--text);
  line-height: 1.55;
  counter-increment: step;
  font-size: 15px;
}
.instructions-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.instructions-list li strong { color: var(--text); }
.instructions-list .countdown {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
}
.ref-inline {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--bg-black);
  border: 1px solid var(--line);
  padding: 3px 8px;
  margin: 0 2px;
  color: var(--accent);
  font-weight: 600;
}
.instructions-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-mute);
}

.confirmed-box { border-left: 3px solid var(--ok); }

.booking-error {
  max-width: 720px;
  padding: 32px 0 0;
}
.booking-error .display {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 16px;
}
.booking-error .lead { margin-bottom: 32px; }

/* Tiny utility */
.m-0 { margin: 0; }

/* ---------- Contact page ---------- */
body.contact-page .contact-main {
  padding: 140px 0 100px;
  background: var(--bg-black);
  min-height: 80vh;
}
.contact-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.contact-head .display {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 16px;
}
.contact-form {
  max-width: 640px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}
.contact-form .field { margin-bottom: 20px; }
.contact-form .form-status {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 1.2em;
}
.contact-form .form-status.success { color: #4ade80; }
.contact-form .form-status.error   { color: #ff6b6b; }
