/* ============================================
   GeoGent — Alpha Waitlist Landing
   Mobile-first. Dark "erepublik modern" theme.
   Uses the game's own Oxanium font + tokens.
   ============================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Brand palette — derived from the app's --primary #facc15 / --secondary #f59e0b */
  --bg: #0a0806;
  --bg-2: #0d0a07;
  --surface: #14110d;
  --surface-2: #1c1813;
  --surface-3: #25201a;
  --border: rgba(255, 249, 240, 0.08);
  --border-strong: rgba(255, 249, 240, 0.14);
  --border-bright: rgba(255, 249, 240, 0.22);
  --text: #fff9f0;
  --text-2: rgba(255, 249, 240, 0.7);
  --text-3: rgba(255, 249, 240, 0.45);
  --primary: #fbbf24;
  --primary-2: #f59e0b;
  --primary-3: #b45309;
  --primary-glow: rgba(251, 191, 36, 0.4);
  --rose: #fb7185;
  --blue: #38bdf8;
  --emerald: #10b981;
  --violet: #a78bfa;

  --font-sans: "Oxanium", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Micro5", "Space Mono", monospace;

  --maxw: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 12vw, 8rem);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-2); }

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, button { font-family: inherit; font-size: inherit; }

::selection { background: var(--primary); color: #1a120a; }

/* Skip link for accessibility */
.skip {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: #1a120a;
  padding: 0.5rem 1rem; font-weight: 800;
  z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { top: 0; }

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

/* ---------- Backgrounds ---------- */
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0; opacity: 0.5;
}
.bg-orb-a { width: 360px; height: 360px; top: -100px; right: -100px; background: var(--primary-2); }
.bg-orb-b { width: 320px; height: 320px; bottom: -80px; left: -80px; background: var(--violet); opacity: 0.3; }
.bg-orb-c { width: 400px; height: 400px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--primary-3); opacity: 0.4; }

.bg-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(0deg,  transparent 24%, rgba(251, 191, 36, 0.05) 25%, rgba(251, 191, 36, 0.05) 26%, transparent 27%, transparent 74%, rgba(251, 191, 36, 0.05) 75%, rgba(251, 191, 36, 0.05) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(251, 191, 36, 0.05) 25%, rgba(251, 191, 36, 0.05) 26%, transparent 27%, transparent 74%, rgba(251, 191, 36, 0.05) 75%, rgba(251, 191, 36, 0.05) 76%, transparent 77%);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1rem var(--pad-x) 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.topbar {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0 0;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  color: var(--text); font-weight: 800; font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  display: block;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.topbar-link {
  font-size: 0.875rem; font-weight: 700; color: var(--text-2);
  padding: 0.5rem 0.875rem; border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.topbar-link:hover { color: var(--primary); background: rgba(251, 191, 36, 0.08); }

.hero-inner {
  position: relative; z-index: 5;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(2rem, 8vw, 4rem);
  padding-bottom: 2rem;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.75rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 var(--primary-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.headline {
  font-size: clamp(2.25rem, 9.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  width: 100%;
  text-wrap: balance;
}
.line-a {
  display: block;
  background: linear-gradient(180deg, var(--text) 0%, rgba(255, 249, 240, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.line-b {
  display: block;
  margin-top: 0.1em;
  color: var(--primary);
  text-shadow: 0 0 40px var(--primary-glow);
}
.line-b em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.line-b em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.1em; height: 0.15em;
  background: var(--primary); border-radius: 4px;
  opacity: 0.4;
}

.lede {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 32ch;
  margin-bottom: 2rem;
  font-weight: 500;
}
.lede .dim { color: var(--text-3); }

/* ---------- Waitlist form ---------- */
.waitlist {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}
.field {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
  min-width: 0;
}
.field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}
.field input {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 0.875rem;
  min-width: 0;
}
.field input::placeholder { color: var(--text-3); font-weight: 500; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 48px;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #1a120a;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-transform: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary svg { width: 18px; height: 18px; }

.form-status {
  min-height: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
}
.form-status.ok { color: var(--emerald); }
.form-status.err { color: var(--rose); }

.form-note {
  display: flex; justify-content: center; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; color: var(--text-3);
  margin-top: 0.875rem;
}
.form-note svg { width: 14px; height: 14px; color: var(--emerald); }

.form-wrap { position: relative; }
.form-wrap > .form-success[hidden] { display: none; }
.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.625rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  animation: form-success-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.form-success-mark {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.12);
  margin-bottom: 0.25rem;
}
.form-success-mark svg { width: 28px; height: 28px; }
.form-success-head {
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.01em; margin: 0;
}
.form-success-head .pos {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.form-success-body {
  font-size: 0.9375rem; color: var(--text-2); margin: 0; max-width: 28ch;
}
.form-success-share {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 700; color: var(--text);
  padding: 0.5rem 0.875rem;
  margin-top: 0.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  background: var(--surface);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.form-success-share:hover {
  color: var(--primary);
  background: rgba(251, 191, 36, 0.06);
  border-color: var(--primary);
}
.form-success-share svg { width: 14px; height: 14px; }

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.trust {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--text-2);
  font-weight: 600;
  margin-top: 1.5rem;
}
.trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}
.trust .dim { color: var(--text-3); font-weight: 500; }

/* ============================================
   STORY STRIP (4-step progress)
   ============================================ */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 249, 240, 0.02);
  padding: 1.25rem var(--pad-x);
  overflow: hidden;
}
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.strip-item {
  display: inline-flex; align-items: center; gap: 0.625rem;
  flex-shrink: 0;
}
.strip-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem; font-weight: 900; color: var(--primary);
  font-family: var(--font-sans);
}
.strip-label {
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.strip-divider {
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .strip-inner { gap: 0.5rem; }
  .strip-divider { display: none; }
  .strip { padding: 1rem var(--pad-x); }
  .strip-item { gap: 0.375rem; }
  .strip-num { width: 24px; height: 24px; font-size: 0.6875rem; }
  .strip-label { font-size: 0.75rem; }
}

/* ============================================
   STORY SECTIONS
   ============================================ */
.story {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  overflow: hidden;
}
.story-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.kicker.center { display: block; text-align: center; }

.story-head {
  font-size: clamp(1.875rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.grad {
  background: linear-gradient(135deg, var(--primary) 0%, #fde68a 50%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-body {
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 50ch;
}

.story-bullets {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.story-bullets li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text);
}
.bullet-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  flex-shrink: 0;
}

/* Phone frame around screenshots */
.story-shot {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.phone-frame {
  position: relative;
  width: min(100%, 320px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(251, 191, 36, 0.12);
  transition: transform 0.3s ease;
}
.phone-frame img {
  width: 100%; height: auto; display: block;
}
.story-shot::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(ellipse at center, var(--primary-glow), transparent 60%);
  filter: blur(40px); opacity: 0.4;
}

/* Alternating layouts on wider screens */
@media (min-width: 880px) {
  .story-inner { grid-template-columns: 1fr 1fr; }
  .story-inner > .story-shot { order: 0; }
  .story-inner > .story-copy { order: 0; }

  .story-map .story-inner,
  .story-battle .story-inner,
  .story-ai .story-inner {
    grid-template-columns: 1fr 1fr;
  }
  .story-community .story-inner,
  .story-market .story-inner {
    grid-template-columns: 1fr 1fr;
  }
  .story-community .story-shot,
  .story-market .story-shot { order: -1; }
}

/* Subtle section dividers (alternating subtle bg) */
.story-map { background: linear-gradient(180deg, var(--bg) 0%, rgba(245, 158, 11, 0.02) 100%); }
.story-community { background: rgba(255, 249, 240, 0.015); }
.story-battle { background: linear-gradient(180deg, var(--bg) 0%, rgba(168, 85, 247, 0.025) 100%); }
.story-market { background: rgba(255, 249, 240, 0.015); }
.story-ai { background: linear-gradient(180deg, var(--bg) 0%, rgba(168, 85, 247, 0.04) 100%); }

/* ============================================
   ROADMAP
   ============================================ */
.roadmap {
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.roadmap-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.roadmap-head {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: center;
  margin-bottom: 0.75rem;
}
.roadmap-sub {
  text-align: center;
  font-size: 1rem; color: var(--text-2);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.phases {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 1.25rem;
}
.phase-tag {
  font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem 0;
  white-space: nowrap;
}
.phase-now .phase-tag { color: var(--primary); }

.phase-line {
  position: absolute;
  left: 0.5rem;
  top: 1.75rem;
  bottom: -1.25rem;
  width: 1px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}
.phase:last-child .phase-line { display: none; }
.phase-now .phase-line {
  background: linear-gradient(180deg, var(--primary), var(--border-strong));
}

.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.phase-now .phase-card {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), var(--surface));
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.08);
}
  .phase-when {
  display: inline-block;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  padding: 0.25rem 0.625rem;
  margin-bottom: 0.875rem;
}
.phase-card:not(.phase-now .phase-card) .phase-when {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--border);
}
.phase-title {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.phase-body {
  font-size: 0.9375rem; line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 1rem;
}
.phase-feats {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem 0.75rem;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-2);
}
.phase-feats li {
  position: relative; padding-left: 1rem;
}
.phase-feats li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary);
}

@media (min-width: 880px) {
  .phases {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .phase {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  .phase-tag {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .phase-line { display: none; }
}

/* ============================================
   VISION
   ============================================ */
.vision {
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.05), transparent 60%),
    var(--bg);
}
.vision-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.vision-head {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.vision-body {
  font-size: clamp(1rem, 3.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  text-align: left;
}
.vision-quote {
  position: relative;
  margin: 2.5rem auto 0;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
  max-width: 36ch;
  padding: 0 1.5rem;
  letter-spacing: -0.01em;
}
.vision-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote-mark {
  position: absolute;
  top: -1.5rem; left: -0.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(245, 158, 11, 0.04) 100%);
  overflow: hidden;
  isolation: isolate;
}
.cta-inner {
  position: relative; z-index: 5;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-head {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  color: var(--text);
}
.cta-body {
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 44ch;
  margin-left: auto; margin-right: auto;
}
.cta-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-3);
  font-weight: 600;
}
.cta-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.meta-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 4px var(--emerald);
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
  padding: 2.5rem var(--pad-x) 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text); font-weight: 800; font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.foot-tag {
  font-size: 0.875rem; color: var(--text-2);
  margin-bottom: 1.25rem;
}
.foot-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--primary); }
.foot-legal {
  font-size: 0.75rem; color: var(--text-3);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (min-width: 1024px) {
  .hero-inner { padding-top: 4rem; }
}

@media (max-width: 640px) {
  .headline { font-size: clamp(1.875rem, 9vw, 2.375rem); }
  .lede { font-size: 1rem; }
  .field { flex-direction: column; padding: 0.5rem; border-radius: var(--radius); gap: 0.5rem; align-items: stretch; }
  .field input { padding: 0.875rem; text-align: center; }
  .btn-primary { width: 100%; justify-content: center; height: 50px; }
  .phone-frame { width: min(100%, 280px); }
  .phase-feats { grid-template-columns: 1fr; }
  .strip-inner { gap: 0.75rem; }
  .strip-label { font-size: 0.8125rem; }
  .topbar-link { font-size: 0.8125rem; padding: 0.4375rem 0.75rem; }
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .line-b em::after { bottom: 0.05em; height: 0.1em; }
}

@media (max-width: 380px) {
  .headline { font-size: 1.75rem; }
  .strip-label { font-size: 0.75rem; }
  .topbar-link { padding: 0.375rem 0.625rem; }
}

/* On mobile, always show text first, then image (force alternation) */
@media (max-width: 879px) {
  .story-inner > .story-shot { order: 2; }
  .story-inner > .story-copy { order: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
