/* ==========================================================================
   KAJARBI 54 — Pan-African Coming Soon & Newsletter Design System
   Brand tokens aligned with Kajarbi Marketplace (never white text on orange)
   ========================================================================== */

:root {
  --orange: #fb921d;
  --orange-dark: #e07b0a;
  --orange-text: #b85a00;
  --orange-soft: #fff3e6;
  --navy: #022847;
  --navy-950: #011323;
  --navy-900: #011a2f;
  --navy-800: #062f54;
  --navy-line: rgba(255, 255, 255, 0.11);
  --navy-surface: rgba(255, 255, 255, 0.055);
  --ink: #0f172a;
  --muted: #5b6475;
  --on-navy: #dce5ef;
  --on-navy-muted: #93a7bd;
  --surface: #f0f1f4;
  --surface-soft: #f8f9fb;
  --border: #e5e7eb;
  --border-strong: #cfd5df;
  --white: #ffffff;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --sale: #e11d48;
  --whatsapp: #25d366;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-pill: 999px;

  --container: 1320px;
  --gutter: 40px;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; }
}
@media (max-width: 639px) {
  :root { --gutter: 16px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r);
}
.skip-link:focus { left: 12px; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: 700 15px/1 var(--font-body);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Strict contrast rule: orange always carries deep navy text */
.btn-orange {
  background: var(--orange);
  color: var(--navy);
}
.btn-orange:hover:not(:disabled) {
  background: var(--orange-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(251, 146, 29, 0.5);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover:not(:disabled) {
  background: var(--navy-900);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--navy-line);
  color: var(--white);
  font-weight: 600;
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--navy-950);
}
.btn-whatsapp:hover { background: #1fc35c; }

/* ==========================================================================
   STAGE 1: ARCHITECTURAL NAVY HERO & NAVIGATION
   ========================================================================== */

.hero-shell {
  position: relative;
  background-color: var(--navy-950);
  background-image:
    linear-gradient(90deg, rgba(1, 19, 35, 0.94) 0%, rgba(1, 26, 47, 0.84) 42%, rgba(2, 40, 71, 0.34) 72%, rgba(1, 19, 35, 0.25) 100%),
    linear-gradient(180deg, rgba(1, 19, 35, 0.55) 0%, rgba(1, 19, 35, 0.08) 30%, rgba(1, 19, 35, 0.45) 100%),
    url('./assets/hero-riders.webp?v=2');
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--navy-line);
  backdrop-filter: blur(10px);
}

.topbar-in {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  height: 23px;
  width: auto;
}
.brand-sub {
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--on-navy);
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.brand-54 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--orange);
  color: var(--navy);
  font: 800 12.5px/1 var(--font-display);
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-navy);
}
.topbar-nav a:hover { color: var(--orange); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--navy-line);
  font: 600 12px/1 var(--font-mono);
  color: var(--on-navy);
  letter-spacing: 0.03em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(251, 146, 29, 0.22);
}

.topbar-cta {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

/* Hero layout: left-anchored copy & signup so the riders shine on the right */
.hero {
  position: relative;
  z-index: 2;
  padding: 72px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(32px, 4.9vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero-title .accent {
  color: var(--orange);
}

.hero-lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--on-navy);
  max-width: 560px;
  margin-bottom: 30px;
}

/* ---------- Signup Card ---------- */
.signup-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-xl);
  padding: 22px;
  max-width: 570px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 10, 22, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.35s var(--ease-out-expo);
}
.signup-card:focus-within {
  border-color: rgba(251, 146, 29, 0.42);
  box-shadow: 0 28px 68px rgba(0, 10, 22, 0.48), 0 0 0 1px rgba(251, 146, 29, 0.15);
}

.signup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.signup-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--on-navy-muted);
}
.signup-counter {
  font: 600 12px/1 var(--font-mono);
  color: var(--orange);
}

/* Segmented interest tabs */
.role-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(1, 19, 35, 0.65);
  border: 1px solid var(--navy-line);
  margin-bottom: 14px;
}

.role-tab {
  min-height: 38px;
  padding: 6px 8px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--on-navy-muted);
  font: 600 12.5px/1.2 var(--font-body);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.role-tab:hover { color: var(--white); }
.role-tab[aria-checked='true'] {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 10px;
  margin-bottom: 10px;
}

.field-input,
.field-select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--r);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(1, 19, 35, 0.72);
  color: var(--white);
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field-input::placeholder { color: #7e93aa; }
.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(1, 19, 35, 0.92);
}
.field-input.is-invalid { border-color: #fb7185; }

.field-select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dce5ef' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field-select option {
  background: var(--navy-900);
  color: var(--white);
}

.form-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.submit-btn {
  height: 50px;
  padding: 0 24px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--on-navy-muted);
}
.form-feedback.is-error {
  color: #fda4af;
  font-weight: 500;
}

/* Confirmed state */
.signup-success[hidden] { display: none; }
.signup-success {
  padding: 6px 2px 2px;
}
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font: 700 11.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.signup-success h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.signup-success p {
  color: var(--on-navy);
  font-size: 14.5px;
  margin-bottom: 16px;
}
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.success-actions .btn {
  min-height: 44px;
  font-size: 14px;
  padding: 0 16px;
}

/* ---------- Right Column: Interactive Africa 54 Map ---------- */
.map-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-xl);
  padding: 22px;
}

.map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font: 600 11.5px/1 var(--font-mono);
  color: var(--on-navy-muted);
}
.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-wave1 { background: var(--orange); }
.dot-wave2 { background: #38bdf8; }
.dot-horizon { background: #64748b; }

.africa-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  max-height: 430px;
  margin: 0 auto;
}
.africa-svg {
  width: 100%;
  height: 100%;
}

.continent-fill {
  fill: rgba(11, 51, 84, 0.62);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.4;
}
.trade-arc {
  fill: none;
  stroke: rgba(251, 146, 29, 0.34);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.hub-node {
  cursor: pointer;
  outline: none;
}
.hub-node .hub-ring {
  fill: transparent;
  stroke-width: 1.5;
  transition: r 0.2s ease, opacity 0.2s ease;
}
.hub-node[data-tier='wave1'] .hub-core { fill: var(--orange); }
.hub-node[data-tier='wave1'] .hub-ring { stroke: rgba(251, 146, 29, 0.6); }
.hub-node[data-tier='wave2'] .hub-core { fill: #38bdf8; }
.hub-node[data-tier='wave2'] .hub-ring { stroke: rgba(56, 189, 248, 0.55); }
.hub-node[data-tier='horizon'] .hub-core { fill: #9fb0c2; }
.hub-node[data-tier='horizon'] .hub-ring { stroke: rgba(159, 176, 194, 0.4); }

.hub-node.is-active .hub-ring,
.hub-node:hover .hub-ring,
.hub-node:focus-visible .hub-ring {
  stroke: var(--white);
  stroke-width: 2;
}
.hub-label {
  fill: var(--white);
  font: 600 10.5px/1 var(--font-mono);
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--navy-950);
  stroke-width: 3px;
}

/* Corridor Inspector HUD */
.hud-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: rgba(1, 19, 35, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.hud-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hud-city {
  font: 700 15px/1.2 var(--font-display);
  color: var(--white);
}
.hud-badge {
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hud-badge[data-tier='wave1'] {
  background: var(--orange);
  color: var(--navy);
}
.hud-badge[data-tier='wave2'] {
  background: #e0f2fe;
  color: #075985;
}
.hud-badge[data-tier='horizon'] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-navy);
}
.hud-rails {
  font-size: 12.5px;
  color: var(--on-navy-muted);
}
.hud-pick {
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font: 600 12.5px/1 var(--font-body);
}
.hud-pick:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

/* ==========================================================================
   CORRIDOR MARQUEE TICKER
   ========================================================================== */

.ticker {
  position: relative;
  width: 100%;
  max-width: 100vw;
  background: var(--navy-950);
  border-bottom: 1px solid var(--border);
  color: var(--on-navy);
  overflow: hidden;
  overflow: clip;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: kj-marquee 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticker-item b { color: var(--orange); }
.ticker-sep { color: rgba(255, 255, 255, 0.24); }

@keyframes kj-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
}

/* ==========================================================================
   STAGE 2: EDITORIAL PILLARS (SUNLIT SURFACE)
   ========================================================================== */

.section {
  padding: 76px 0;
}
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.sec-eyebrow {
  display: block;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  max-width: 580px;
}
.sec-desc {
  max-width: 440px;
  color: var(--muted);
  font-size: 15.5px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  grid-column: span 6;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  transition:
    transform 0.35s var(--ease-out-expo),
    border-color 0.25s ease,
    box-shadow 0.35s var(--ease-out-expo);
}
.bento-card:hover {
  border-color: rgba(2, 40, 71, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -18px rgba(2, 40, 71, 0.14);
}
.bento-card.is-featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.bento-card.is-featured:hover {
  border-color: rgba(251, 146, 29, 0.45);
  box-shadow: 0 24px 52px -16px rgba(1, 19, 35, 0.45);
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bento-idx {
  font: 700 11.5px/1 var(--font-mono);
  color: var(--orange-text);
  background: var(--orange-soft);
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.bento-card.is-featured .bento-idx {
  background: var(--orange);
  color: var(--navy);
}
.bento-tag {
  font: 600 12px/1 var(--font-mono);
  color: var(--muted);
}
.bento-card.is-featured .bento-tag { color: var(--on-navy-muted); }

.bento-card h3 {
  font-size: 21px;
  line-height: 1.24;
  margin-bottom: 8px;
}
.bento-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}
.bento-card.is-featured p { color: var(--on-navy); }

.wallet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 6px;
}
.wallet-pill {
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font: 600 12px/1 var(--font-mono);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.bento-card.is-featured .wallet-pill {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* ==========================================================================
   STAGE 3: BOTTOM CALLOUT BAND & FOOTER
   ========================================================================== */

.bottom-cta {
  background: var(--navy);
  color: var(--white);
  padding: 68px 0;
}
.bottom-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}
.bottom-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  margin: 8px 0 10px;
}
.bottom-cta p {
  color: var(--on-navy);
  max-width: 520px;
}
.bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  background: var(--navy-950);
  color: var(--on-navy-muted);
  border-top: 1px solid var(--navy-line);
  padding: 32px 0;
  font-size: 13.5px;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--white); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST ERGONOMICS)
   ========================================================================== */

@media (max-width: 1023px) {
  .topbar-nav { display: none; }
  .hero-shell {
    background-image:
      linear-gradient(180deg, rgba(1, 19, 35, 0.88) 0%, rgba(1, 26, 47, 0.80) 55%, rgba(1, 19, 35, 0.92) 100%),
      url('./assets/hero-riders.webp?v=2');
    background-position: 70% center;
  }
  .hero { padding: 42px 0 54px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .signup-card, .hero-lede { max-width: 100%; }
  .bento-card { grid-column: span 12; }
  .bottom-cta-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bottom-actions { justify-content: flex-start; }
}

@media (max-width: 639px) {
  .status-pill { display: none; }
  .topbar-in { min-height: 62px; gap: 10px; }
  .brand-lockup { gap: 7px; min-width: 0; }
  .brand-logo { height: 30px; }
  .brand-sub { display: none; }
  .brand-54 { height: 20px; padding: 0 7px; font-size: 11.5px; }
  .topbar-right { flex-shrink: 0; }
  .topbar-cta { min-height: 36px; padding: 0 12px; font-size: 12.5px; }

  .hero { padding: 28px 0 44px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 12px; }
  .hero-title { font-size: clamp(28px, 8vw, 36px); line-height: 1.08; margin-bottom: 14px; }
  .hero-lede { font-size: 15px; margin-bottom: 22px; }

  .signup-card { padding: 16px; border-radius: var(--r-lg); }
  .role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid,
  .form-submit-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .submit-btn { width: 100%; }

  .map-panel { padding: 16px; border-radius: var(--r-lg); }
  .map-topbar { flex-wrap: wrap; gap: 8px; }
  .hud-card { padding: 12px 14px; }
  .hud-pick { width: 100%; }

  .section { padding: 52px 0; }
  .sec-header { margin-bottom: 26px; gap: 12px; }
  .bento-card { padding: 20px; }

  .bottom-cta { padding: 48px 0; }
  .bottom-actions { width: 100%; }
  .bottom-actions .btn { width: 100%; }
}

/* ==========================================================================
   MOTION & SCROLL-TO-REVEAL (RESTRAINED EDITORIAL FEEL)
   ========================================================================== */

@keyframes kj-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy .hero-eyebrow,
.hero-copy .hero-title,
.hero-copy .hero-lede,
.hero-copy .signup-card {
  animation: kj-rise 0.78s var(--ease-out-expo) both;
}
.hero-copy .hero-eyebrow { animation-delay: 40ms; }
.hero-copy .hero-title { animation-delay: 120ms; }
.hero-copy .hero-lede { animation-delay: 200ms; }
.hero-copy .signup-card { animation-delay: 280ms; }

.topbar {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-scrolled {
  background: rgba(1, 19, 35, 0.88);
  box-shadow: 0 10px 30px rgba(0, 10, 22, 0.28);
}

/* Scroll-to-reveal (progressively enhanced via JS .reveal-ready, bidirectional) */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo),
    border-color 0.25s ease,
    box-shadow 0.35s var(--ease-out-expo);
  transition-delay: 0ms;
  will-change: opacity, transform;
}

html.reveal-ready [data-reveal].from-above {
  transform: translateY(-22px);
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.72s, 0.72s, 0.25s, 0.35s;
}

html.reveal-ready [data-reveal].is-visible[data-reveal-delay='1'] { transition-delay: 60ms; }
html.reveal-ready [data-reveal].is-visible[data-reveal-delay='2'] { transition-delay: 140ms; }
html.reveal-ready [data-reveal].is-visible[data-reveal-delay='3'] { transition-delay: 220ms; }
html.reveal-ready [data-reveal].is-visible[data-reveal-delay='4'] { transition-delay: 300ms; }

/* Ensure bento card hover lift wins after reveal and transitions snappily */
html.reveal-ready .bento-card.is-visible:hover {
  transform: translateY(-4px);
  transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .hero-eyebrow,
  .hero-copy .hero-title,
  .hero-copy .hero-lede,
  .hero-copy .signup-card {
    animation: none !important;
  }
  html.reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover,
  .bento-card:hover,
  html.reveal-ready .bento-card.is-visible:hover {
    transform: none !important;
  }
}
