/*
 * Ballot Brawl — Landing Page Styles
 * Version: 0.2.0
 * Last updated: 2026-05-11
 *
 * All values derive from tokens.css. No magic numbers.
 *
 * Design lenses applied:
 * - Gestalt: Proximity groups related content (feature-list, steps)
 * - Miller's Law: 3–5 items per chunk (value props, steps, pricing)
 * - Hick's Law: single clear CTA per section
 * - Fitts's Law: 44×44px minimum touch targets
 * - F-pattern: bold labels lead, descriptions follow
 * - Von Restorff: featured pricing card stands out
 * - WCAG AA: all text/background contrast ≥ 4.5:1
 * - Progressive Disclosure: FAQ uses <details>
 * - Single-column mobile: no multi-column at ≤640px
 */

/* ─── Page Base ─── */

html {
  scroll-behavior: smooth;
}

:root {
  --page-max: var(--page-max-width);
  --surface-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(178, 34, 52, 0.09), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(27, 79, 138, 0.09), transparent 30%),
    linear-gradient(180deg, var(--color-neutral-cool) 0%, var(--color-neutral) 56%, var(--color-neutral-warm) 100%);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

/* Newsprint grain body overlay — subtle, not first thing you see */
body.texture-newsprint::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-conic-gradient(
      var(--color-ink) 0% 25%,
      transparent 0% 50%
    );
  background-size: 3px 3px;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
}

/* ─── Container ─── */

.container {
  width: min(100% - (2 * var(--space-5)), var(--page-max));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - (2 * var(--space-4)), var(--page-max));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero--split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: left;
  }

  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .button {
    width: 100%;
  }

  .hero h1,
  .lead {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .section-grid.section-grid--two,
  .section-grid.section-grid--three {
    grid-template-columns: 1fr;
  }

  .preview-shell iframe {
    min-height: 640px;
  }
}

/* ─── Section Rules ─── */

.section-rule {
  border: none;
  height: var(--rule-width);
  background-color: var(--color-rule);
  margin: 0;
}

.rule-light {
  border: none;
  height: var(--rule-width-light);
  background-color: var(--color-rule-light);
  width: 100%;
  margin: var(--space-4) 0;
}

/* ─── Typography ─── */

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-3) 0;
  color: var(--color-headline);
}

h1 {
  font-size: clamp(2rem, 6vw, var(--size-hero));
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h2 {
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--size-h3);
  font-weight: var(--weight-bold);
}

p {
  margin: 0 0 var(--space-4);
  line-height: var(--leading-relaxed);
}

strong {
  font-weight: var(--weight-bold);
}

.text-small {
  font-size: var(--size-small);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-micro {
  font-size: var(--size-micro);
  color: var(--color-text-tertiary);
}

.section-intro {
  max-width: 40em;
  margin-bottom: var(--space-6);
}

.section-intro-block {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

/* ─── Hero ─── */

.hero {
  padding: var(--space-16) 0 var(--space-12);
  background: linear-gradient(160deg, #efe8da 0%, #f7f4ee 55%, #efe9dd 100%);
  border-bottom: var(--rule-width) solid var(--color-rule);
  position: relative;
  text-align: center;
}

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: var(--space-10);
  align-items: center;
  text-align: left;
}

.hero--split h1,
.hero--split .lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy {
  display: grid;
  gap: var(--space-5);
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  border: var(--rule-width-light) solid rgba(26, 26, 26, 0.12);
}

.cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  border: var(--rule-width-light) solid rgba(26, 26, 26, 0.16);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.84);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.trust-strip--secondary {
  margin-top: var(--space-2);
}

.trust-chip--link a {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule-light);
  transition: border-color var(--transition-base);
}

.trust-chip--link a:hover,
.trust-chip--link a:focus-visible {
  border-bottom-color: var(--color-ink);
}

.trust-chip--link a:focus-visible {
  outline: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: var(--rule-width-light) solid var(--color-rule-light);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.72);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ─── Funnel Stage Bar ─── */

.funnel-bar {
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: var(--rule-width-light) solid var(--color-rule-light);
  display: grid;
  gap: var(--space-3);
}

.funnel-stages {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: funnel;
}

.funnel-stage {
  flex: 1;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: var(--rule-width-light) solid var(--color-rule-light);
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  min-height: 44px;
}

.funnel-stage + .funnel-stage::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2) - var(--rule-width-light));
  top: 50%;
  width: var(--space-2);
  height: var(--rule-width);
  background-color: var(--color-rule-light);
  transform: translateY(-50%);
}

.funnel-stage--active {
  border-color: var(--color-ink);
  background-color: var(--surface-white);
  box-shadow: var(--shadow-card);
}

.funnel-stage--active + .funnel-stage::before {
  background-color: var(--color-ink);
}

.funnel-stage__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-rule-light);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: var(--size-label);
  font-weight: var(--weight-bold);
}

.funnel-stage--active .funnel-stage__number {
  background-color: var(--color-ink);
  color: var(--color-text-on-dark);
}

.funnel-stage__label {
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
}

.funnel-stage--active .funnel-stage__label {
  color: var(--color-ink);
}

.funnel-stage__desc {
  font-size: var(--size-micro);
  color: var(--color-text-tertiary);
}

.funnel-stage--active .funnel-stage__desc {
  color: var(--color-text-secondary);
}

.funnel-bar__status {
  font-size: var(--size-small);
  color: var(--color-text-tertiary);
  margin: 0;
}

@media (max-width: 640px) {
  .funnel-stage__desc {
    display: none;
  }
  
  .funnel-stage {
    padding: var(--space-2);
    gap: var(--space-1);
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: var(--rule-width-light) solid var(--color-rule-light);
}

.brand {
  display: grid;
  gap: var(--space-1);
}

.brand strong {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  color: var(--color-headline);
}

.brand span {
  font-size: var(--size-small);
  color: var(--color-text-secondary);
}

.hero.texture-halftone-overlay::after {
  border-radius: 0;
}

.eyebrow {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--size-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
}

.hero h1 {
  max-width: 14em;
  margin: 0 auto var(--space-5);
}

.lead {
  margin: 0 auto;
  max-width: 36em;
  font-size: var(--size-h3);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  margin: var(--space-6) auto 0;
}

.hero-actions {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Buttons ─── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-3) var(--space-6);
  border: var(--rule-width) solid transparent;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.button-primary {
  background-color: var(--color-ink);
  color: var(--color-text-on-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: var(--color-headline);
}

.button-primary:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

.button-secondary {
  background-color: var(--surface-white);
  color: var(--color-ink);
  border-color: var(--color-rule);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-ink);
}

.button-secondary:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

.button-full {
  width: 100%;
  text-align: center;
}

/* ─── Sections ─── */

.section {
  padding: var(--space-12) 0;
}

.section-grid {
  display: grid;
  gap: var(--space-5);
}

.section-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-highlight {
  background-color: var(--color-neutral-warm);
  border-top: var(--rule-width) solid var(--color-rule);
  border-bottom: var(--rule-width) solid var(--color-rule);
}

.preview-flow {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.flow-card {
  padding: var(--space-5);
  border: var(--rule-width-light) solid var(--color-rule);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 235, 0.96));
}

.flow-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-3);
  border-radius: 999px;
  background-color: var(--color-ink);
  color: var(--color-neutral);
  font-family: var(--font-display);
  font-size: var(--size-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
}

.flow-card h3 {
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.flow-card p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.preview-callout {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: var(--rule-width) solid var(--color-ink);
  background-color: rgba(255, 255, 255, 0.65);
}

.preview-callout p {
  margin: 0;
}

/* ─── Feature List (Value Props) ─── */

.feature-list {
  margin: 0;
  padding-left: var(--space-5);
  list-style: none;
}

.feature-list li {
  margin-bottom: var(--space-3);
  padding-left: var(--space-1);
  line-height: var(--leading-relaxed);
}

.feature-list li::marker {
  content: '━ ';
  color: var(--color-rule-light);
  font-size: var(--size-small);
}

/* ─── How It Works Steps ─── */

.steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  padding: var(--space-4) 0 var(--space-4) var(--space-10);
  position: relative;
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-black);
  color: var(--color-rule-light);
  line-height: 1;
}

/* ─── Spin Triangle ─── */

.spin-triangle {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border: var(--rule-width) solid var(--color-rule);
  background-color: var(--color-neutral);
  text-align: center;
}

.spin-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.spin-label {
  white-space: nowrap;
}

.spin-outrage { color: var(--color-outrage); }
.spin-economy { color: var(--color-economy); }
.spin-security { color: var(--color-security); }

.spin-arrow {
  color: var(--color-text-tertiary);
  font-weight: var(--weight-regular);
  font-size: var(--size-small);
}

/* ─── Example Round ─── */

.example-scenario {
  border-left: var(--rule-width) solid var(--color-ink);
  padding: var(--space-5) var(--space-6);
  background-color: var(--color-neutral-warm);
  margin-top: var(--space-4);
}

.situation-name {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.example-path {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--size-body);
}

.spin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.spin-dot--outrage { background-color: var(--color-outrage); }
.spin-dot--economy { background-color: var(--color-economy); }
.spin-dot--security { background-color: var(--color-security); }

.spin-text--outrage { color: var(--color-outrage); }
.spin-text--economy { color: var(--color-economy); }
.spin-text--security { color: var(--color-security); }

/* ─── Sample Cards Grid ─── */

.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
  align-items: start;
}

.preview-shell {
  border: var(--rule-width) solid var(--color-rule);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--surface-white);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-rows: auto 1fr;
}

.preview-shell__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--rule-width-light) solid var(--color-rule-light);
  font-family: var(--font-display);
  font-size: var(--size-label);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  text-wrap: balance;
}

.preview-shell__meta {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--size-small);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
}

.preview-shell iframe {
  display: block;
  width: 100%;
  min-height: clamp(620px, 86vw, 760px);
  border: 0;
  background: var(--surface-white);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.policy-card {
  padding: var(--space-4);
  border: var(--rule-width-light) solid rgba(26, 26, 26, 0.16);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 242, 235, 0.94));
}

.policy-card--public {
  box-shadow: inset 0 0 0 1px rgba(27, 79, 138, 0.08);
}

.policy-card--internal {
  box-shadow: inset 0 0 0 1px rgba(178, 34, 52, 0.08);
}

.policy-card__tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  background-color: var(--color-ink);
  color: var(--color-neutral);
  font-family: var(--font-display);
  font-size: var(--size-label);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

@media (max-width: 640px) {
  .preview-shell iframe {
    min-height: 640px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .preview-shell__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.sample-card {
  position: relative;
  border: var(--rule-width) solid var(--color-rule);
  border-radius: var(--border-radius-lg);
  background-color: var(--surface-white);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.gallery-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  border: var(--rule-width-light) solid var(--color-rule-light);
  box-shadow: var(--shadow-card);
}

.sample-card__badge {
  font-family: var(--font-display);
  font-size: var(--size-label);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-ink);
  color: var(--color-neutral);
  display: inline-block;
  align-self: flex-start;
}

.sample-card__placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.sample-card__placeholder span {
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-tertiary);
}

.sample-red {
  background: linear-gradient(160deg, rgba(178, 34, 52, 0.10) 0%, var(--surface-white) 60%);
  border-color: var(--color-red-team);
}

.sample-blue {
  background: linear-gradient(160deg, rgba(27, 79, 138, 0.10) 0%, var(--surface-white) 60%);
  border-color: var(--color-blue-team);
}

.sample-neutral {
  background: linear-gradient(160deg, rgba(224, 123, 57, 0.10) 0%, var(--surface-white) 60%);
}

.sample-dark {
  background-color: var(--color-dark);
  border-color: var(--color-dark-elevated);
}

.sample-dark .sample-card__badge {
  background-color: var(--color-neutral);
  color: var(--color-dark);
}

.sample-dark .sample-card__placeholder span {
  color: var(--color-text-on-dark);
  opacity: 0.6;
}

/* ─── Avoid List (Tone Block) ─── */

.avoid-list {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
}

.avoid-list li {
  font-size: var(--size-small);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  position: relative;
}

.avoid-list li::before {
  content: '—';
  position: absolute;
  left: var(--space-2);
  color: var(--color-text-tertiary);
}

/* ─── Pricing Grid ─── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.pricing-card {
  padding: var(--space-6) var(--space-5);
  border: var(--rule-width-light) solid var(--color-rule);
  border-radius: var(--border-radius-lg);
  background-color: var(--surface-white);
  text-align: center;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border: var(--rule-width) solid var(--color-ink);
  box-shadow: var(--shadow-elevated);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .pricing-card.featured {
    transform: scale(1);
  }
}

.featured-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-ink);
  color: var(--color-neutral);
  font-family: var(--font-display);
  font-size: var(--size-label);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
}

/* ─── FAQ ─── */

.faq-list {
  max-width: 40em;
}

.faq-list details {
  padding: var(--space-4) 0;
  border-bottom: var(--rule-width-light) solid var(--color-rule-light);
}

.faq-list details:first-child {
  border-top: var(--rule-width-light) solid var(--color-rule-light);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: var(--space-4);
}

.faq-list summary::after {
  content: '+';
  font-size: var(--size-h3);
  font-weight: var(--weight-regular);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

.faq-list details p {
  margin-top: var(--space-3);
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── Preorder Card Variant ─── */

.pricing-card--preorder {
  display: grid;
  gap: var(--space-4);
}

.pricing-card--preorder .price {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0;
}

.button-preorder {
  background-color: var(--color-ink);
  color: var(--color-text-on-dark);
  border-color: var(--color-ink);
}

.button-preorder:hover,
.button-preorder:focus-visible {
  background-color: var(--color-headline);
}

.button-preorder:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

.pricing-card.featured .button-preorder {
  background-color: var(--color-ink);
  color: var(--color-text-on-dark);
}

/* ─── Preorder Modal ─── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
  overscroll-behavior: contain;
}

.modal-surface {
  background-color: var(--surface-white);
  border: var(--rule-width) solid var(--color-rule);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-elevated);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: var(--size-h2);
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-base);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--color-ink);
}

.modal-close:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

.modal-body {
  display: grid;
  gap: var(--space-4);
}

.modal-body .helper-text {
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ─── Success State (Modal) ─── */

.success-state {
  text-align: center;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.success-icon {
  font-size: 3rem;
  color: var(--color-success);
  line-height: 1;
}

.success-state h2 {
  margin-bottom: 0;
}

.success-state .helper-text {
  margin-bottom: 0;
}

.success-state .button-secondary {
  justify-self: center;
}

/* ─── Checkbox Field ─── */

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--size-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

/* ─── Preorder flow card variant ─── */

.flow-card--preorder {
  border-color: var(--color-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 242, 235, 0.98));
  box-shadow: var(--shadow-card);
}

.flow-card__step--preorder {
  background-color: var(--color-outrage);
  color: var(--color-ink);
}

/* ─── Email Capture ─── */

.card-surface {
  padding: var(--space-8) var(--space-6);
  background-color: var(--surface-white);
  border: var(--rule-width) solid var(--color-rule);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
}

.helper-text {
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
}

.form-error {
  display: none;
  margin-top: var(--space-1);
  font-size: var(--size-small);
  color: var(--color-danger);
  line-height: var(--leading-normal);
}

.form-message {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius-sm);
  font-size: var(--size-body);
  line-height: var(--leading-normal);
}

.form-message--success {
  background-color: rgba(59, 138, 90, 0.12);
  color: var(--color-economy-dark);
  border: var(--rule-width-light) solid var(--color-economy);
}

.form-message--error {
  background-color: rgba(196, 43, 63, 0.12);
  color: var(--color-red-team-dark);
  border: var(--rule-width-light) solid var(--color-red-team);
}

input[aria-invalid="true"] {
  border-color: var(--color-danger);
}

input[aria-invalid="true"]:focus {
  outline-color: var(--color-danger);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.launch-form {
  display: grid;
  gap: var(--space-4);
}

.form-field {
  display: grid;
  gap: var(--space-1);
}

label {
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-ink);
  border: var(--rule-width-light) solid var(--color-rule);
  border-radius: var(--border-radius-sm);
  background-color: var(--surface-white);
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus {
  outline: 2px solid var(--color-ink);
  outline-offset: 0;
}

input::placeholder {
  color: var(--color-text-tertiary);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

/* ─── Microcopy ─── */

.microcopy {
  font-size: var(--size-small);
  color: var(--color-text-secondary);
  margin: var(--space-3) 0 0;
}

/* ─── Footer ─── */

.footer {
  padding: var(--space-10) 0 var(--space-8);
  border-top: var(--rule-width) solid var(--color-rule);
  margin-top: var(--space-16);
  text-align: center;
}

.disclaimer {
  font-size: var(--size-small);
  color: var(--color-text-secondary);
  max-width: 36em;
  margin: 0 auto var(--space-6);
  line-height: var(--leading-relaxed);
}

.footer-legal {
  font-size: var(--size-micro);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.back-to-top {
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink);
  text-decoration: none;
}

.back-to-top:hover {
  text-decoration: underline;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-outrage);
  outline-offset: 2px;
}

/* ─── Desktop breakpoint (≥641px) ─── */

@media (min-width: 641px) {
  :root {
    --page-max: var(--page-max-width-desktop);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid--two,
  .section-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .avoid-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: var(--space-16) 0;
  }

  .hero--split {
    padding-top: var(--space-12);
  }

  .section-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Reduced Motion ─── */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
