/*
 * landing.css — leagues.sh cinematic waitlist landing page
 *
 * Scoped to body.landing to prevent leakage into the rest of the site.
 *
 * WCAG AA compliance notes (forms verdict A1 / A2):
 *   - Label text: rgba(22,19,16,.7) over #f6f1e7 ≈ 5.2:1 ✓  (minimum .7 alpha)
 *   - Error text: #b91c1c (danger-700) over #f6f1e7 ≈ 6.28:1 ✓
 *   - Muted text: rgba(22,19,16,.6) over #f6f1e7 ≈ 4.56:1 ✓  (just passes)
 *
 * Animations: all motion wrapped in prefers-reduced-motion: no-preference (A10).
 *
 * FOUT mitigation: 'Onest Fallback' and 'Funnel Sans Fallback' below are
 * metric-adjusted aliases of system fonts. They render BEFORE the Google
 * Fonts woff2 arrives, with overrides that match the actual font's
 * cap-height / ascent / descent — so the swap from fallback → real font
 * does not visibly resize the text. Reference values from Google's
 * "Adjusted Font Fallback" generator; tune if jump returns.
 */

/* ── Self-hosted Onest (variable woff2, 600..800) ─────────────────────────── */
/* Latin subset only (U+0000-00FF + Latin-1 supplements) — ~32 KB.            */
/* Sourced from Google Fonts v9 (OFL-licensed).                               */
/* Preloaded in landing.html, so the woff2 is in cache before CSS evaluates.  */

@font-face {
  font-family: 'Onest';
  src: url('/static/fonts/landing/onest-latin.woff2') format('woff2-variations'),
       url('/static/fonts/landing/onest-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Metric-adjusted fallbacks (FOUT layout-shift mitigation) ─────────────── */

@font-face {
  font-family: 'Onest Fallback';
  src: local('Arial');
  size-adjust: 105%;
  ascent-override: 89%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Funnel Sans Fallback';
  src: local('Arial');
  size-adjust: 99%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Menlo'), local('Consolas');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 20%;
  line-gap-override: 0%;
}

/* ── Color tokens ─────────────────────────────────────────────────────────── */

body.landing {
  --c-sun:     oklch(0.78 0.18 55);    /* warm orange */
  --c-coral:   oklch(0.72 0.20 25);    /* coral red */
  --c-magenta: oklch(0.66 0.22 340);   /* magenta */
  --c-violet:  oklch(0.60 0.20 295);   /* violet */
  --c-blue:    oklch(0.62 0.18 245);   /* electric blue */
  --c-teal:    oklch(0.70 0.14 195);   /* teal */
  --c-ink:     oklch(0.16 0.02 60);    /* warm near-black ~#1c1612 */
  --c-paper:   oklch(0.98 0.005 80);   /* off-white */

  /* Palette defaults — overridden by .palette-* classes */
  --accent:  oklch(0.78 0.18 55);
  --accent2: oklch(0.66 0.22 340);
  --accent3: oklch(0.62 0.18 245);
  --wash:    radial-gradient(80% 60% at 70% 80%, oklch(0.72 0.20 25 / .55), transparent 70%),
             radial-gradient(60% 50% at 10% 20%, oklch(0.60 0.20 295 / .35), transparent 60%);
  --wash-b:  linear-gradient(180deg, transparent 0%, oklch(0.62 0.18 245) 200%);
  --wash-c:  radial-gradient(50% 40% at 50% 40%, oklch(0.78 0.18 55), transparent 70%);
}

/* ── Palettes ─────────────────────────────────────────────────────────────── */

body.palette-sunset {
  --accent:  oklch(0.78 0.18 55);
  --accent2: oklch(0.66 0.22 340);
  --accent3: oklch(0.62 0.18 245);
  --wash:    radial-gradient(80% 60% at 70% 80%, oklch(0.72 0.20 25 / .55), transparent 70%),
             radial-gradient(60% 50% at 10% 20%, oklch(0.60 0.20 295 / .35), transparent 60%);
  --wash-b:  linear-gradient(180deg, transparent 0%, oklch(0.62 0.18 245) 200%);
  --wash-c:  radial-gradient(50% 40% at 50% 40%, oklch(0.78 0.18 55), transparent 70%);
}

body.palette-ember {
  --accent:  oklch(0.72 0.20 25);
  --accent2: oklch(0.66 0.22 340);
  --accent3: oklch(0.78 0.18 55);
  --wash:    radial-gradient(80% 60% at 80% 70%, oklch(0.72 0.20 25 / .60), transparent 65%),
             radial-gradient(60% 50% at 15% 30%, oklch(0.66 0.22 340 / .35), transparent 60%);
  --wash-b:  linear-gradient(180deg, transparent 0%, oklch(0.78 0.18 55) 200%);
  --wash-c:  radial-gradient(50% 40% at 50% 40%, oklch(0.72 0.20 25), transparent 70%);
}

body.palette-twilight {
  --accent:  oklch(0.66 0.22 340);
  --accent2: oklch(0.60 0.20 295);
  --accent3: oklch(0.62 0.18 245);
  --wash:    radial-gradient(80% 60% at 70% 70%, oklch(0.66 0.22 340 / .55), transparent 65%),
             radial-gradient(60% 60% at 15% 30%, oklch(0.62 0.18 245 / .40), transparent 60%);
  --wash-b:  linear-gradient(180deg, transparent 0%, oklch(0.62 0.18 245) 200%);
  --wash-c:  radial-gradient(50% 40% at 50% 40%, oklch(0.66 0.22 340), transparent 70%);
}

body.palette-electric {
  --accent:  oklch(0.70 0.20 200);
  --accent2: oklch(0.60 0.20 295);
  --accent3: oklch(0.78 0.18 55);
  --wash:    radial-gradient(80% 60% at 30% 70%, oklch(0.62 0.18 245 / .55), transparent 65%),
             radial-gradient(60% 50% at 80% 20%, oklch(0.70 0.14 195 / .40), transparent 60%);
  --wash-b:  linear-gradient(180deg, transparent 0%, oklch(0.78 0.18 55) 200%);
  --wash-c:  radial-gradient(50% 40% at 50% 40%, oklch(0.70 0.20 200), transparent 70%);
}

/* ── Animations — motion only when user hasn't requested reduced motion ───── */

@media (prefers-reduced-motion: no-preference) {
  @keyframes blink {
    50% { opacity: 0; }
  }

  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 70%, transparent); }
    80%  { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }

  @keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  .landing-cursor {
    animation: blink 1.1s steps(2, end) infinite;
  }

  .ticker-track {
    animation: scroll 60s linear infinite;
  }
}

/* Static fallback when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .photo {
    transition: none !important;
  }
  .field-mark {
    transition: none !important;
  }
  .submit .arr {
    transition: none !important;
  }
  .landing-cursor {
    opacity: 1 !important;
  }
}

/* ── Base reset for landing page ──────────────────────────────────────────── */

body.landing {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0b0908;
  color: var(--c-paper);
  font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  font-feature-settings: "ss01";
}

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

/* ── Alpine cloak ─────────────────────────────────────────────────────────── */

body.landing [x-cloak] {
  display: none !important;
}

/* ── Stage (the root fixed layer) ─────────────────────────────────────────── */

body.landing .stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

/* ── Photo layers ─────────────────────────────────────────────────────────── */

body.landing .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: opacity;
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .photo {
    transition: opacity 0.8s ease, filter 0.8s ease;
  }
}


body.landing .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 30% 60%,
    transparent 0%,
    rgba(8, 6, 4, 0.55) 70%,
    rgba(8, 6, 4, 0.85) 100%
  );
}

/* ── Color washes ─────────────────────────────────────────────────────────── */

body.landing .wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.9;
  background: var(--wash);
}

body.landing .wash.wash-b {
  mix-blend-mode: overlay;
  opacity: 0.18;
  background: var(--wash-b);
}

body.landing .wash.wash-c {
  mix-blend-mode: color-dodge;
  opacity: 0.06;
  background: var(--wash-c);
}

/* ── Film grain (off by default) ──────────────────────────────────────────── */

body.landing .grain {
  position: absolute;
  inset: -200px;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Vignettes ────────────────────────────────────────────────────────────── */

body.landing .vignette-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  pointer-events: none;
  /* CR #13: stacked gradients — floor layer ensures ≥0.85 opacity across full width
     at the ticker level (bottom 60-100px), independent of the diagonal vignette-left */
  background:
    linear-gradient(to top, rgba(8, 6, 4, 0.95) 0%, rgba(8, 6, 4, 0.85) 60px, transparent 100px),
    linear-gradient(
      to top,
      rgba(8, 6, 4, 0.95) 0%,
      rgba(8, 6, 4, 0.70) 35%,
      rgba(8, 6, 4, 0.20) 75%,
      transparent 100%
    );
}

body.landing .vignette-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(8, 6, 4, 0.65) 0%,
    rgba(8, 6, 4, 0.25) 50%,
    transparent 100%
  );
}

/* ── Color rail ───────────────────────────────────────────────────────────── */

body.landing .color-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  display: flex;
  flex-direction: column;
  z-index: 6;
}

body.landing .color-rail span {
  flex: 1;
}

body.landing .color-rail .rail-a { background: var(--accent); }
body.landing .color-rail .rail-b { background: var(--accent2); }
body.landing .color-rail .rail-c { background: var(--accent3); }

/* ── Layout frame ─────────────────────────────────────────────────────────── */

body.landing .frame {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 36px 22px;
}

/* ── Top bar / wordmark ───────────────────────────────────────────────────── */

body.landing .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 5;
}

body.landing .wordmark {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}

body.landing .wordmark .dot {
  color: var(--accent);
  font-weight: 500;
}

body.landing .wordmark .tld {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

body.landing .wordmark .landing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  margin-left: 6px;
  transform: translateY(1px);
}

/* ── Hero / mid section ───────────────────────────────────────────────────── */

body.landing .hero-row {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.7fr);
  gap: 48px;
  align-items: end;
  /* Bottom padding clears the hero's descenders ('g' in 'league nights.', etc.)
     from the ticker baseline. Onest @ 140px with line-height 0.92 overflows
     its line-box by ~10px on descender; 36px gives visual breathing room too. */
  padding: 0 4px 36px;
  z-index: 4;
}

body.landing h1.hero {
  font-family: 'Onest', 'Onest Fallback', sans-serif;
  font-weight: 800;
  /* Hero size ramp shrunk per user direction (was clamp(64px, 9.8vw, 184px)). */
  font-size: clamp(56px, 7.5vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
  margin: 0;
  /* CR #11: scrim guarantee — contrast floor independent of photo region */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

body.landing h1.hero em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

/* ── Waitlist card ────────────────────────────────────────────────────────── */

body.landing .card-wrap {
  position: relative;
  border-radius: 6px;
  box-shadow:
    0 40px 80px -28px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.15);
}

body.landing .card {
  background: #f6f1e7;
  border-radius: 6px;
  padding: 30px 28px 24px;
  position: relative;
  color: #161310;
  overflow: hidden;
}

/* Barely-visible paper texture */
body.landing .card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      color-mix(in oklch, var(--accent) 12%, transparent),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 30%);
}

body.landing .card > * {
  position: relative;
}

/* ── Card header ──────────────────────────────────────────────────────────── */

body.landing .card-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(22, 19, 16, 0.12);
}

body.landing .card-hd-l {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* kicker — contrast: rgba(22,19,16,.7) over #f6f1e7 ≈ 5.2:1 ✓ (A1 fix) */
body.landing .card-hd .kicker {
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 19, 16, 0.7);
  margin: 0;
}

body.landing .card-hd h2 {
  font-family: 'Onest', 'Onest Fallback', sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: #161310;
  letter-spacing: -0.03em;
  margin: 0;
}

/* seat meta — "SPRING / 26" */
body.landing .card-hd .seat {
  text-align: right;
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* contrast: rgba(22,19,16,.7) over #f6f1e7 ≈ 5.2:1 ✓ (A1 fix) */
  color: rgba(22, 19, 16, 0.7);
  line-height: 1.5;
}

body.landing .card-hd .seat b {
  display: block;
  color: #161310;
  font-weight: 600;
  font-size: 11px;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */

body.landing .field {
  position: relative;
  margin-bottom: 14px;
}

/* Label — contrast: rgba(22,19,16,.7) over #f6f1e7 ≈ 5.2:1 ✓ (A1 fix from .5 to .7) */
body.landing .field label {
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 19, 16, 0.7);
  display: block;
  margin-bottom: 6px;
}

body.landing .field input {
  width: 100%;
  height: 42px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(22, 19, 16, 0.18);
  padding: 0 2px;
  color: #161310;
  font: 500 18px/1 'Funnel Sans', sans-serif;
  letter-spacing: -0.015em;
  outline: none;
  border-radius: 0;
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .field input {
    transition: border-color 0.15s;
  }
}

body.landing .field input::placeholder {
  color: rgba(22, 19, 16, 0.28);
  font-weight: 400;
}

body.landing .field input:focus {
  border-bottom-color: #161310;
}

body.landing .field input.is-error {
  border-bottom-color: #b91c1c;
}

/* Accent underline bar — scales in on focus */
body.landing .field-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .field-mark {
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

body.landing .field input:focus ~ .field-mark {
  transform: scaleX(1);
}

/* ── Inline field errors — A2: fixed danger color, not accent ─────────────── */

/* Contrast: #b91c1c (danger-700) over #f6f1e7 ≈ 6.28:1 ✓ */
body.landing .landing-field-error {
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #b91c1c;
  margin: 0 0 4px 0;
  display: block;
  line-height: 1.4;
}

/* ── Error summary — override for cream card context ─────────────────────── */

body.landing .error-summary {
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid rgba(185, 28, 28, 0.3);
  background: rgba(185, 28, 28, 0.06);
  padding: 12px 14px;
}

body.landing .error-summary-heading {
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b91c1c;
  font-weight: 600;
  margin: 0 0 8px;
}

body.landing .error-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.landing .error-summary li {
  margin-bottom: 4px;
}

body.landing .error-summary-link {
  font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif;
  font-size: 13px;
  color: #b91c1c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.landing .error-summary-link:hover {
  color: #991b1b;
}

/* ── Submit button ────────────────────────────────────────────────────────── */

body.landing .submit {
  margin-top: 18px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: 600 14px/1 'Funnel Sans', sans-serif;
  letter-spacing: -0.005em;
  color: #f6f1e7;
  background: #161310;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .submit {
    transition: background 0.15s ease;
  }
}

body.landing .submit:hover {
  background: #000;
}

body.landing .submit .arr {
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .submit .arr {
    transition: transform 0.2s ease;
  }

  body.landing .submit:hover .arr {
    transform: translateX(3px);
  }
}

/* ── Honeypot trap (offscreen, NOT display:none) ──────────────────────────── */

body.landing .hp-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Success state ────────────────────────────────────────────────────────── */

body.landing .success {
  text-align: left;
}

body.landing .success .check-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #161310;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 18px;
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
}

body.landing .success h3 {
  font-family: 'Onest', 'Onest Fallback', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #161310;
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

body.landing .success h3 .first-name {
  color: var(--accent);
}

/* Muted text — contrast: rgba(22,19,16,.6) over #f6f1e7 ≈ 4.56:1 ✓ */
body.landing .success p {
  font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif;
  font-size: 14px;
  color: rgba(22, 19, 16, 0.6);
  line-height: 1.55;
  margin: 0 0 18px;
}

body.landing .success p b {
  color: #161310;
  font-weight: 600;
}

body.landing .add-another {
  margin-top: 16px;
  background: transparent;
  border: none;
  /* CR #5: bumped from .55 → .70 to clear WCAG AA 4.5:1 (6.57:1 against #f6f1e7) */
  color: rgba(22, 19, 16, 0.7);
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  /* CR #8: 12px vertical padding to reach ≥44px touch target */
  padding: 12px 8px;
  display: inline-block;
  text-decoration: none;
}

body.landing .add-another:hover {
  color: rgba(22, 19, 16, 0.8);
}

/* ── Duplicate state (already on waitlist) ────────────────────────────────── */

body.landing .card-body-duplicate h2 {
  font-family: 'Onest', 'Onest Fallback', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #161310;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

/* Muted text ≈ 4.56:1 ✓ */
body.landing .card-body-duplicate p {
  font-family: 'Funnel Sans', 'Funnel Sans Fallback', sans-serif;
  font-size: 14px;
  color: rgba(22, 19, 16, 0.6);
  line-height: 1.55;
  margin: 0 0 18px;
}

body.landing .card-body-duplicate p b {
  color: #161310;
  font-weight: 600;
}

body.landing .card-body-duplicate .resend-form {
  margin: 0;
}

body.landing .card-body-duplicate .btn-card-primary {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: 600 14px/1 'Funnel Sans', sans-serif;
  letter-spacing: -0.005em;
  color: #f6f1e7;
  background: #161310;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

@media (prefers-reduced-motion: no-preference) {
  body.landing .card-body-duplicate .btn-card-primary {
    transition: background 0.15s ease;
  }
}

body.landing .card-body-duplicate .btn-card-primary:hover {
  background: #000;
}

body.landing .card-body-duplicate .btn-card-primary .arr {
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
}

body.landing .card-body-duplicate .card-status-foot {
  margin-top: 14px;
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* CR #6: bumped from .50 → .70 to clear WCAG AA 4.5:1 (6.57:1 against #f6f1e7) */
  color: rgba(22, 19, 16, 0.7);
  text-align: center;
}

body.landing .card-body-duplicate .card-status-foot a {
  color: #161310;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  /* CR #8: vertical padding to reach ≥44px touch target */
  padding: 12px 8px;
}

/* ── Ticker ───────────────────────────────────────────────────────────────── */

body.landing .ticker-bar {
  z-index: 5;
  font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.landing .ticker {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  position: relative;
  height: 18px;
}

body.landing .ticker-track {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 36px;
  white-space: nowrap;
  align-items: center;
}

body.landing .ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

body.landing .ticker-track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 9px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  body.landing .frame {
    padding: 20px 22px 18px;
  }

  body.landing .hero-row {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  body.landing h1.hero {
    font-size: clamp(50px, 12vw, 90px);
  }
}

/* ── Visually hidden (screen reader only) ─────────────────────────────────── */

body.landing .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── space-y utilities (for error_summary.html) ───────────────────────────── */

body.landing .space-y-1\.5 > * + * {
  margin-top: 0.375rem;
}

/* ── text-sm utility (for error_summary.html) ─────────────────────────────── */

body.landing .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* ── text-danger-700 (for error_summary.html non-field errors) ────────────── */

body.landing .text-danger-700 {
  color: #b91c1c;
}
