/* ============ RESET & ROOT ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson: #AA0E41;
  --crimson-dark: #8a0b34;
  --crimson-light: #f5e6ec;
  --navy: #0A0040;
  --navy-mid: #1a1060;
  --ivory: #F5F3EF;
  --white: #FFFFFF;
  --muted: #6B7280;
  --border: #E5E7EB;
  --text: #111827;
  /* Heading text color — same value as --navy in light mode, but kept as
     its own token because --navy also serves as an always-dark background
     (topbar/footer/hero) that must NOT flip in dark mode, while heading
     text on those --white/--ivory surfaces must. */
  --heading: var(--navy);
  /* Card/panel surface color — same value as --white in light mode, but
     kept as its own token because --white is also used as literal white
     text/icon-stroke on the permanently-dark navy chrome (topbar, hero,
     footer), which must NOT flip in dark mode the way a card background must. */
  --surface: var(--white);
}

/* Dark mode — overrides the same tokens every component already reads,
   so section/card/input colors flip without per-selector rules. */
body.dark-mode {
  --ivory: #0E0F20;
  --surface: #14162B;
  --muted: #9CA3AF;
  --border: #2A2D45;
  --text: #EDEDF2;
  --heading: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ============ TOP BAR (floating pill layout, BhuCheQ palette) ============ */
.topbar-wrap {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}
.topbar {
  width: 100%;
  max-width: 1120px;
  background: var(--navy);
  border: 1px solid var(--navy-mid);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(10,0,64,0.25);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 18px;
  gap: 16px;
}

/* Logo — pinned top-left */
.topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* Nav links — centered (desktop) */
.topbar-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}
.topbar-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar-nav a:hover {
  color: var(--white);
}
.topbar-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.topbar-nav a:hover::after {
  transform: scaleX(1);
}

/* Right cluster: login / signup / theme toggle (desktop) */
.topbar-actions {
  display: none;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-login {
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 10px;
  transition: opacity 0.2s;
}
.btn-login:hover {
  opacity: 0.7;
}

.btn-signup {
  background: var(--crimson);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-signup:hover {
  background: var(--crimson-dark);
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
body.dark-mode .theme-toggle .icon-moon { display: none; }
body.dark-mode .theme-toggle .icon-sun { display: block; }

/* Mobile hamburger (default: visible; hidden on desktop) */
.topbar-burger {
  display: flex;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background 0.15s;
}
.topbar-burger span::before,
.topbar-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}
.topbar-burger span::before { top: -6px; }
.topbar-burger span::after { top: 6px; }

.topbar-burger[aria-expanded="true"] span { background: transparent; }
.topbar-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.topbar-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer — full-screen overlay, matching the "Nav open (drawer
   state)" frame in bhucheq-mobile-mockup.html (lines 658-687/139-166).
   position:fixed (not absolute, per the mockup's own comment) so it stays
   put over scrolled content; inset:0 covers the full viewport. z-index:99
   is unchanged from the old dropdown card — still below .topbar-wrap's
   z-index:100, so the topbar pill floats visibly above the drawer exactly
   like the mockup's topbar (z:20) sits above its drawer (z:15). Padding-
   top is 100px, derived from this site's own measured topbar (bottom
   edge at 76px on a 375px-wide mobile viewport) + ~24px breathing room —
   not copied blindly from the mockup, just happens to land close to its
   value because the two topbars are a similar height. Open/close is now
   transform-driven (translateY) instead of max-height, since a
   position:fixed;inset:0 element's height no longer varies with content —
   same .open class toggle, same JS, only what the class visually does
   changes. */
.topbar-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.topbar-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.topbar-mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,243,239,0.1);
}
.topbar-mobile-menu a:hover,
.topbar-mobile-menu a:active {
  opacity: 0.75;
}
.topbar-mobile-menu .mobile-menu-divider {
  height: 1px;
  background: rgba(245,243,239,0.1);
  margin: 20px 0;
}
.topbar-mobile-menu .btn-signup {
  margin: 6px 8px 4px;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
}
.topbar-mobile-menu .cta-start-cheq {
  display: block;
  margin-top: 24px;
  background: var(--crimson);
  color: var(--white);
  text-align: center;
  padding: 15px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

/* Profile control (replaces login/signup once signed in) */
.topbar-profile {
  position: relative;
}
.topbar-profile-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--crimson);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.topbar-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--navy);
  border: 1px solid var(--navy-mid);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10,0,64,0.35);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  z-index: 101;
}
.topbar-profile-menu.open {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
}
.topbar-profile-menu a,
.topbar-profile-menu button {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 40px;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}
.topbar-profile-menu a:hover,
.topbar-profile-menu button:hover {
  background: rgba(255,255,255,0.08);
}

@media (min-width: 960px) {
  .topbar-nav { display: flex; }
  .topbar-actions { display: flex; }
  .topbar-burger { display: none; }
  .topbar-mobile-menu { display: none; }
  .topbar { padding: 0 12px 0 20px; gap: 36px; }
  .topbar-wrap { top: 20px; padding: 0 24px; }
}

/* Mobile topbar pill: pull the bar off the screen edges and add blur —
   base .topbar is already border-radius:999px, this just tightens the
   margin and makes the background translucent enough for the blur to
   actually show through. */
@media (max-width: 640px) {
  .topbar-wrap { padding: 0 22px; }
  .topbar {
    background: rgba(10, 0, 64, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Search + hamburger combo capsule (mobile only — hidden at 960px above) */
.topbar-mobile-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  background: var(--navy-mid);
  border-radius: 999px;
  flex-shrink: 0;
}

.topbar-search-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Search dropdown — same fixed/collapse pattern as .topbar-mobile-menu,
   same anchor position, so the two never fight for layout space (they're
   mutually exclusive at runtime — see main.js). */
.topbar-search-bar {
  position: fixed;
  top: 84px; left: 14px; right: 14px;
  z-index: 99;
  background: var(--navy);
  border: 1px solid var(--navy-mid);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(10,0,64,0.35);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.topbar-search-bar.open {
  max-height: 80px;
  opacity: 1;
  pointer-events: auto;
}
.topbar-search-bar form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.topbar-search-bar svg {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.topbar-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}
.topbar-search-bar input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Positioned after the base rules above so it actually wins the cascade —
   see the min-width:960px block near .topbar-burger for the sibling rules
   this mirrors (.topbar-mobile-actions/.topbar-search-bar didn't exist
   there yet when this file was mobile-first-authored). */
@media (min-width: 960px) {
  .topbar-mobile-actions { display: none; }
  .topbar-search-bar { display: none; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  background: var(--navy);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding: 116px 20px 60px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 148px 24px 60px; }
}

@media (max-width: 640px) {
  .hero { display: none; }
}

/* ============ HERO (mobile-only) ============ */
.hero-mobile {
  background: var(--surface);
  padding: 116px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero-mobile { display: none; }
}

#constellation-bg-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

.hero-mobile-eyebrow {
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.hero-mobile-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.hero-mobile-title span { color: var(--crimson); }

.hero-mobile-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

.hero-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-cta-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--crimson);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 15px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-cta-start:hover { background: var(--crimson-dark); }

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.hero-cta-ghost:hover { background: var(--ivory); border-color: var(--muted); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,0,64,0.88) 0%, rgba(10,0,64,0.75) 50%, rgba(10,0,40,0.82) 100%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(170,14,65,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(170,14,65,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
    align-items: flex-start;
    margin: 0;
  }
}

.hero-video-panel {
  flex: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  cursor: pointer;
  background: #000;
}

.hero-video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,0,64,0.35);
  transition: background 0.2s;
}

.hero-video-frame:hover .hero-video-play {
  background: rgba(10,0,64,0.5);
}

.hero-video-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(170,14,65,0.5);
  transition: transform 0.2s;
}

.hero-video-frame:hover .hero-video-play-btn {
  transform: scale(1.08);
}

.hero-video-play-btn svg {
  margin-left: 4px;
}

.hero-video-frame.is-playing .hero-video-play {
  display: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(170,14,65,0.2);
  border: 1px solid rgba(170,14,65,0.4);
  color: #f4a0bc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: #f4a0bc;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; line-height: 1.15; }
}

.hero h1 span {
  color: var(--crimson);
  position: relative;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 420px;
}

#constellation-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: crosshair;
}

/* ============ PAGE PLACEHOLDER ============ */
.page-placeholder {
  padding: 60px 32px 80px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}
.page-placeholder h2 {
  color: var(--heading);
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* ============ SECTION SHARED ============ */
section {
  padding: 56px 20px;
}

@media (min-width: 480px) {
  section { padding: 64px 24px; }
}

@media (min-width: 640px) {
  section { padding: 96px 48px; }
}

@media (min-width: 1024px) {
  section { padding: 100px 80px; }
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .section-title { font-size: 22px; }
}

.section-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.problem-stats-grid {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .problem-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ============ PROBLEM / REALITY ============ */
.problem {
  background: var(--ivory);
  border-radius: 16px;
  margin: -14px 10px 0;
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .problem { border-radius: 40px; margin: -40px 16px 0; }
}

/* Mobile: .hero-mobile is a normal-flow section (no dark overlap like
   desktop .hero), so the -14px tuck-under margin above just clips into it —
   that's what broke last time. Reset to a plain stacked block, top-accented
   in crimson to read as a warning rather than just another content card. */
@media (max-width: 640px) {
  .problem {
    margin: 0 0 8px;
    border-radius: 0;
    border-top: 3px solid var(--crimson);
    padding-top: 32px;
  }
}

.problem-stat-block {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
}

.problem-stat-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--crimson);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.problem-stat-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.problem-stat-source {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 640px) {
  .problem-stat-block {
    padding: 20px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(10, 0, 64, 0.07);
  }
  .problem-stat-number { font-size: 34px; }
}

.problem-cards {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .problem-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(10, 0, 64, 0.07);
  }
}

.problem-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.problem-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.problem-card-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ HOW IT WORKS ============ */
.how {
  background: var(--surface);
  border-radius: 16px;
  margin: 4px 10px -14px;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .how { border-radius: 40px; margin: 6px 16px -40px; }
}

.steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--crimson), rgba(170,14,65,0.1));
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  align-items: flex-start;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px rgba(170,14,65,0.15);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
  margin-top: 8px;
}

.step-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .step-title { font-size: 15px; }
}

.how-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  .how-inner { flex-direction: row; align-items: flex-start; gap: 56px; }
  .how-text { flex: 1; }
  .how-offer-panel {
    flex: 0 0 380px;
    padding-left: 56px;
    border-left: 1px solid;
    border-image: linear-gradient(to bottom, transparent, var(--border) 15%, var(--border) 85%, transparent) 1;
  }
}

.offer-panel-headline {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.005em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
}
.offer-panel-price-pill {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #ffd166;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 999px;
}

.offer-card {
  margin: 0 auto;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(10,0,64,0.08);
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.offer-card-top { display: flex; align-items: center; justify-content: space-between; }
.offer-icon-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--crimson); font-weight: 800;
}
.offer-brand-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ivory);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--heading);
}
.offer-name { font-size: 19px; font-weight: 800; color: var(--heading); letter-spacing: -0.01em; }
.offer-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.offer-features { display: flex; flex-direction: column; gap: 12px; }
.offer-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.offer-feature-check {
  width: 18px; height: 18px; border-radius: 50%; background: #16a34a; color: var(--white);
  font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.offer-divider { border-top: 1px solid var(--border); margin: 2px 0; }
.offer-price-row { display: flex; align-items: baseline; gap: 6px; }
.offer-price-strike { font-size: 18px; font-weight: 700; color: var(--muted); text-decoration: line-through; }
.offer-price { font-size: 30px; font-weight: 900; color: var(--heading); letter-spacing: -0.02em; }
.offer-price-label {
  font-size: 11px; color: #16a34a; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(22,163,74,0.12); padding: 3px 9px; border-radius: 999px; margin-left: 4px;
}
.offer-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--white); font-size: 15px; font-weight: 700;
  padding: 15px 24px; border-radius: 999px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.2s; width: 100%;
}
.offer-cta:hover { background: var(--navy-mid); }
.offer-note { font-size: 11.5px; color: #9CA3AF; line-height: 1.5; max-width: 380px; margin: 14px auto 0; text-align: center; }

/* Mobile-only: offer panel becomes the "featured CTA panel" — navy card,
   crimson-accent CTA button — instead of a white card with a navy button.
   Every text/border color below is hardcoded (not var(--heading)/var(--muted)/
   var(--border)) because those flip for light/dark THEME mode, but this card's
   background no longer follows theme mode on mobile — it's always navy now,
   so its content colors have to be pinned relative to navy, not to the page. */
@media (max-width: 640px) {
  .offer-card {
    background: linear-gradient(160deg, var(--navy), #150836);
    border: none;
  }
  .offer-icon-circle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .offer-brand-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
  }
  .offer-name { color: var(--white); }
  .offer-tagline { color: rgba(255, 255, 255, 0.65); }
  .offer-feature { color: rgba(255, 255, 255, 0.85); }
  .offer-divider { border-top-color: rgba(255, 255, 255, 0.15); }
  .offer-price-strike { color: rgba(255, 255, 255, 0.5); }
  .offer-price { color: var(--white); }
  .offer-price-label { background: rgba(22, 163, 74, 0.18); }
  .offer-cta { background: var(--crimson); }
  .offer-cta:hover { background: var(--crimson-dark); }
}

@media (max-width: 640px) {
  .how { display: none; }
}

/* ============ CARD STACK (mobile-only) ============ */
.card-stack {
  margin: 4px 10px -14px;
  padding-top: 8px;
}
@media (min-width: 640px) {
  .card-stack { display: none; }
}

.stack-card {
  position: relative;
  padding: 24px 20px;
  border-radius: 20px;
}

.card-stack .stack-card-01 { margin-top: 40px; }

.stack-card-01 { background: var(--ivory); z-index: 1; }

.stack-card-02 {
  background: linear-gradient(160deg, var(--navy), #150836);
  margin-top: -14px;
  z-index: 2;
}

.stack-card-03 {
  background: var(--ivory);
  margin-top: -14px;
  z-index: 3;
}

.stack-card-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
/* No existing token fits: --crimson/--crimson-dark are too dark on navy,
   --crimson-light is a pale background-fill tint, not a text color. One-off value. */
.stack-card-02 .stack-card-tag { color: #ff9db8; }

.stack-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 8px;
}
.stack-card-02 .stack-card-title { color: var(--white); }

.stack-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.stack-card-02 .stack-card-body { color: rgba(255, 255, 255, 0.8); }

.stack-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.stack-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--crimson-light);
  color: var(--crimson-dark);
}

/* ============ READY TO START (mobile-only) ============ */
.ready-section {
  margin: 20px 10px 20px;
}
@media (min-width: 640px) {
  .ready-section { display: none; }
}

.ready-rows {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ready-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 20px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(10, 0, 64, 0.07);
}

.ready-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ready-row-text {
  flex: 1;
  min-width: 0;
}

.ready-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.ready-row-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.ready-row-arrow {
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.ready-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--crimson);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 15px 24px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.2s;
}
.ready-cta:hover { background: var(--crimson-dark); }

/* ============ WHAT WE CHECK ============ */
.checks {
  background: var(--ivory);
  border-radius: 16px;
  margin: -14px 10px 0;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .checks { border-radius: 40px; margin: -40px 16px 0; }
}

.check-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .check-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 1024px) {
  .check-grid { grid-template-columns: repeat(4, 1fr); }
}

.check-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.check-card:hover {
  box-shadow: 0 8px 24px rgba(10,0,64,0.08);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .check-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(10, 0, 64, 0.07);
  }
}

.check-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.check-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.check-card-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ REGISTRATION ASSIST ============ */
.register {
  background: var(--ivory);
  border-radius: 24px;
  margin: 16px 10px 0;
  position: relative;
  z-index: 4;
  padding: 32px 20px;
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .register { border-radius: 40px; margin: 24px 16px 0; padding: 40px 24px; }
}
@media (max-width: 640px) {
  .register {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(10, 0, 64, 0.07);
  }
}

.register-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--crimson); background: var(--crimson-light); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.register-title { font-size: clamp(22px, 5vw, 30px); font-weight: 800; color: var(--heading); letter-spacing: -0.02em; margin-bottom: 10px; }
.register-body { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 560px; }
.register-stats { margin-top: 24px; display: flex; gap: 20px; flex-wrap: wrap; }
.register-stat {
  flex: 1; min-width: 130px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 12px; text-align: center;
  box-shadow: 0 2px 8px rgba(10,0,64,0.05);
}

@media (max-width: 640px) {
  .register-stat {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(10, 0, 64, 0.06);
  }
}
.register-stat-num { font-size: 26px; font-weight: 900; color: var(--crimson); letter-spacing: -0.02em; line-height: 1; }
.register-stat-label { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.register-stats-note { font-size: 10.5px; color: #B5BAC4; margin-top: 6px; font-style: italic; }
.register-cta-row { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.register-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-size: 14.5px; font-weight: 700;
  padding: 14px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background 0.2s;
}
.register-cta-btn:hover { background: var(--navy-mid); }
.register-learn-more {
  font-size: 13.5px; font-weight: 700; color: var(--crimson); text-decoration: none;
  border-bottom: 1.5px solid var(--crimson); padding-bottom: 1px; transition: opacity 0.2s;
}
.register-learn-more:hover { opacity: 0.7; }

/* ============ CREDIBILITY STRIP ============ */
.trust-strip { padding: 28px 24px; text-align: center; }
.trust-strip-inner {
  max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 8px;
  font-size: 12.5px; color: #9CA3AF; font-weight: 500;
}
.trust-strip-dot { color: var(--border); }

/* ============ EMAIL CAPTURE ============ */
.notify {
  background: var(--navy);
  text-align: center;
  padding: 56px 20px;
  border-radius: 24px;
  margin: 20px 10px 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .notify { padding: 72px 24px; border-radius: 40px; margin: 32px 16px 0; }
}

.notify .section-title { color: var(--white); }
.notify .section-body { color: rgba(255,255,255,0.6); margin: 0 auto 32px; text-align: center; }

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.email-input {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.email-input::placeholder { color: rgba(255,255,255,0.35); }
.email-input:focus { border-color: var(--crimson); }

.email-submit {
  padding: 16px;
  border-radius: 10px;
  background: var(--crimson);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
  min-height: 44px;
}

.email-submit:hover { background: var(--crimson-dark); }
.email-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.email-success {
  color: #86efac;
  font-size: 14px;
  font-weight: 600;
  display: none;
  margin-top: 8px;
}

.email-error {
  color: #fca5a5;
  font-size: 13px;
  display: none;
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .email-form { flex-direction: row; }
  .email-input { flex: 1; }
  .email-submit { white-space: nowrap; padding: 16px 24px; }
}

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--crimson);
  padding: 56px 20px;
  text-align: center;
  border-radius: 24px;
  margin: 20px 10px 0;
  position: relative;
  z-index: 2;
}
@media (min-width: 640px) {
  .final-cta { padding: 72px 24px; border-radius: 40px; margin: 32px 16px 0; }
}

.final-cta h2 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* index.html only — about.html/bhumap.html use plain .final-cta and are NOT
   affected: .final-cta-home is an additional class only index.html's section
   carries, and this is written as the .final-cta.final-cta-home compound
   (higher specificity than plain .final-cta) specifically so this can never
   accidentally leak onto the shared class regardless of stylesheet order. */
@media (max-width: 640px) {
  .final-cta.final-cta-home {
    background: linear-gradient(200deg, var(--navy), #1f0a45);
    border-top: 3px solid var(--crimson);
  }
}

@media (max-width: 640px) {
  .checks,
  .register,
  .final-cta-home {
    display: none;
  }
}

/* Match .notify/footer's mobile width to .stack-card's (315px) rather than
   the sitewide 355px — footer is a bare tag selector shared by every page
   via the partial system, so it's scoped through body.is-home (index.html
   only, hand-added, untouched by sync-partials) to avoid affecting the
   other 17 pages' footers. */
@media (max-width: 640px) {
  .notify { margin-left: 30px; margin-right: 30px; }
  body.is-home footer { margin-left: 30px; margin-right: 30px; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy);
  padding: 40px 20px;
  text-align: center;
  border-radius: 24px;
  margin: 20px 10px 20px;
  position: relative;
  z-index: 3;
}
@media (min-width: 640px) {
  footer { border-radius: 40px; margin: 32px 16px 32px; padding: 40px 24px; }
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* ============ CONDENSED MOBILE FOOTER (site-wide) ============
   .footer-full holds each page's existing footer content (rich 4-column
   grid, or the simple link row) completely unchanged. .footer-condensed
   is a second, parallel block with trimmed content, shown only at
   mobile — same "duplicate block, toggle via display" pattern already
   used elsewhere on the site (e.g. .page-hero/.page-hero-mobile splits).
   Reuses .footer-logo/.footer-links/.footer-copy as-is; only
   .footer-mini-desc and .footer-mini-social are new. */
.footer-condensed { display: none; }
@media (max-width: 640px) {
  .footer-full { display: none; }
  .footer-condensed {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-mini-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    max-width: 320px;
    margin: 0 0 18px;
  }
  .footer-mini-social { display: flex; gap: 10px; margin-bottom: 22px; }
  .footer-mini-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 11px; font-weight: 800;
    text-decoration: none;
  }
}
