/* ==========================================================================
   TruckerPass Web Portal — "Instrument Grade" Design System (v2)
   --------------------------------------------------------------------------
   Ported from packages/engine-ui/src/tokens.ts so the site and the app share
   one brand. Themes: light (Daylight) / dark (Midnight).

   Rules enforced here:
   - Never hardcode a hex outside this token block.
   - `--accent` is a FILL (pair with --accent-ink). `--accent-text` is for
     amber TEXT — light-mode amber fill fails 4.5:1 as text.
   - Every interactive control has a :focus-visible ring.
   - All motion is disabled under prefers-reduced-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts (no Google Fonts request → no third-party IP transfer)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/PlusJakartaSans_600SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PlusJakartaSans_700Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/PlusJakartaSans_800ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter_500Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter_600SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter_700Bold.ttf") format("truetype");
}

/* --------------------------------------------------------------------------
   2. Tokens
   --------------------------------------------------------------------------
   Base palette is **Daylight**. A visitor whose system preference we cannot
   detect gets Daylight, and that is what js/theme-boot.js assumes too.

   The Midnight palette is declared twice below, on purpose: a `@media` rule
   cannot join a selector list, so the system-preference case and the
   explicit-choice case cannot share one block. The media query only fires
   when `data-theme` is absent — i.e. with JS disabled, or in the moment
   before js/theme-boot.js runs — because that script always sets the
   attribute before first paint. Keep the two Midnight blocks in sync.
   -------------------------------------------------------------------------- */
:root {
  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Type — Gurmukhi fallbacks are included because the Punjabi study copy is
     rendered on the site and neither Inter nor Plus Jakarta Sans ships those
     glyphs. */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans Gurmukhi", "Nirmala UI", "Gurmukhi MN", "Raavi", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Gurmukhi",
    "Nirmala UI", "Gurmukhi MN", "Raavi", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion */
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;

  /* Surfaces */
  --bg: #f5f6f8;
  --bg-alt: #eceef2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #edeef2;
  --footer-bg: #eceef2;
  --glass: rgba(245, 246, 248, 0.86);

  /* Borders */
  --border: #e7e8ed;
  --border-strong: #d5d7df;
  --border-accent: rgba(224, 134, 0, 0.45);

  /* Text */
  --text: #121218;
  --text-muted: #5b5b6b;
  --text-dim: /* AA-safe on light (4.7:1) */ #6b6b7a;
  --text-inverse: #ffffff;

  /* Accent — safety amber */
  --accent: #e08600;
  --accent-hover: #b45309;
  --accent-ink: #1a1200;
  --accent-text: #b45309;
  --accent-soft: #fdf1dc;
  --accent-soft-border: rgba(224, 134, 0, 0.35);

  /* Status — fills + AA text variants */
  --success: #0e9f6e;
  --success-text: #067a50;
  --success-soft: #e2f5ee;
  --error: #dc2626;
  --error-text: #c81e1e;
  --error-soft: #fce9e9;
  --info: #2563eb;
  --info-soft: #e6eefd;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(18, 18, 24, 0.07);
  --shadow-md: 0 4px 14px rgba(18, 18, 24, 0.09);
  --shadow-lg: 0 14px 38px rgba(18, 18, 24, 0.12);
  --shadow-accent: 0 10px 26px rgba(224, 134, 0, 0.2);

  --glow-1: rgba(224, 134, 0, 0.06);
  --glow-2: rgba(37, 99, 235, 0.04);

  color-scheme: light;
}
/* System is dark and no explicit choice is recorded yet (the no-JS path). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    /* Surfaces */
    --bg: #0f0f13;
    --bg-alt: #14141a;
    --surface: #191920;
    --surface-raised: #22222b;
    --surface-sunken: #0a0a0d;
    --footer-bg: #0a0a0d;
    --glass: rgba(15, 15, 19, 0.82);

    /* Borders */
    --border: #2b2b36;
    --border-strong: #3a3a47;
    --border-accent: rgba(255, 176, 32, 0.42);

    /* Text */
    --text: #f5f5f7;
    --text-muted: #9a9aa8;
    --text-dim: /* AA-safe on --bg (5.9:1); app's tertiary token is not */ #8e8e9c;
    --text-inverse: #0f0f13;

    /* Accent — safety amber */
    --accent: #ffb020;
    --accent-hover: #ffc24b;
    --accent-ink: #1a1200;
    --accent-text: #ffc24b;
    --accent-soft: #3a2e10;
    --accent-soft-border: rgba(255, 176, 32, 0.3);

    /* Status — fills + AA text variants */
    --success: #3ddc97;
    --success-text: #3ddc97;
    --success-soft: #0f2e23;
    --error: #ff6b6b;
    --error-text: #ff8080;
    --error-soft: #33161a;
    --info: #7da2ff;
    --info-soft: #1a2138;

    /* Elevation */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 10px 30px rgba(255, 176, 32, 0.22);

    --glow-1: rgba(255, 176, 32, 0.07);
    --glow-2: rgba(125, 162, 255, 0.05);

    color-scheme: dark;
  }
}

/* Explicit choice from the theme toggle. */
[data-theme="dark"] {
    /* Surfaces */
    --bg: #0f0f13;
    --bg-alt: #14141a;
    --surface: #191920;
    --surface-raised: #22222b;
    --surface-sunken: #0a0a0d;
    --footer-bg: #0a0a0d;
    --glass: rgba(15, 15, 19, 0.82);

    /* Borders */
    --border: #2b2b36;
    --border-strong: #3a3a47;
    --border-accent: rgba(255, 176, 32, 0.42);

    /* Text */
    --text: #f5f5f7;
    --text-muted: #9a9aa8;
    --text-dim: /* AA-safe on --bg (5.9:1); app's tertiary token is not */ #8e8e9c;
    --text-inverse: #0f0f13;

    /* Accent — safety amber */
    --accent: #ffb020;
    --accent-hover: #ffc24b;
    --accent-ink: #1a1200;
    --accent-text: #ffc24b;
    --accent-soft: #3a2e10;
    --accent-soft-border: rgba(255, 176, 32, 0.3);

    /* Status — fills + AA text variants */
    --success: #3ddc97;
    --success-text: #3ddc97;
    --success-soft: #0f2e23;
    --error: #ff6b6b;
    --error-text: #ff8080;
    --error-soft: #33161a;
    --info: #7da2ff;
    --info-soft: #1a2138;

    /* Elevation */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 10px 30px rgba(255, 176, 32, 0.22);

    --glow-1: rgba(255, 176, 32, 0.07);
    --glow-2: rgba(125, 162, 255, 0.05);

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Ambient wash for depth — pointer-events:none so it never eats clicks */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, var(--glow-1) 0%, transparent 55%),
    radial-gradient(circle at 88% 22%, var(--glow-2) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* `[hidden]` must win over component display rules (e.g. .btn { display:inline-flex }). */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. Accessibility primitives
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 300;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 0.75rem;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: 1.25rem;
}

.text-accent {
  color: var(--accent-text);
}
.text-success {
  color: var(--success-text);
}
.text-muted {
  color: var(--text-muted);
}
.text-dim {
  color: var(--text-dim);
}
.text-center {
  text-align: center;
}

.lede {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

/* Reading-progress bar — subtle, decorative, aria-hidden */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  opacity: 0.85;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.control-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239A9AA8' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 9px 6px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 1.7rem 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.control-select:hover {
  border-color: var(--border-accent);
  color: var(--accent-text);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:hover {
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer[data-open="true"] {
  display: block;
}
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.mobile-drawer a {
  display: block;
  padding: 0.65rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer a:hover {
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 176, 32, 0.34);
}

.btn-outline {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-raised);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   8. Badges / chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius-full);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 1.15rem 0 1rem;
}

.hero .lede {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  /* A deliberate inversion: foreground fill, background text. Using
     --text-inverse here made the badge dark-on-dark in Midnight. */
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  min-height: 52px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-badge small {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-badge strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.trust-bar svg {
  color: var(--success-text);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Diagnostic funnel card
   -------------------------------------------------------------------------- */
.funnel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.funnel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
}

.funnel-progress {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.35rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  transform: translateX(3px);
}
.quiz-option:disabled {
  cursor: default;
}
.quiz-option.is-correct {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--text);
}
.quiz-option.is-incorrect {
  border-color: var(--error);
  background: var(--error-soft);
  color: var(--text);
}

/* Non-colour-only signal: a glyph + the text label */
.option-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  color: transparent;
}
.quiz-option.is-correct .option-mark {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-inverse);
}
.quiz-option.is-incorrect .option-mark {
  background: var(--error);
  border-color: var(--error);
  color: #ffffff;
}

.quiz-feedback {
  display: none;
  border-left: 3px solid var(--success);
  background: var(--success-soft);
  padding: 0.95rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.quiz-feedback[data-visible="true"] {
  display: block;
}
.quiz-feedback[data-correct="false"] {
  border-left-color: var(--error);
  background: var(--error-soft);
}
.quiz-feedback strong {
  display: block;
  margin-bottom: 0.2rem;
}

.quiz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-result {
  text-align: center;
  padding: 1.25rem 0;
}
.quiz-result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}
.quiz-result-icon[data-pass="true"] {
  background: var(--success-soft);
  border: 1px solid var(--success);
  color: var(--success-text);
}
.quiz-result-icon[data-pass="false"] {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
}
.quiz-score {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   11. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.section--alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem;
}
.section-head h2 {
  margin-bottom: 0.8rem;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   12. Stats band
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center;
  padding: 0.25rem 0.5rem;
}
.stat + .stat {
  border-left: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   13. Cards
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.card h3 {
  margin-bottom: 0.55rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

a.card {
  display: block;
}
a.card:hover h3 {
  color: var(--accent-text);
}

/* --------------------------------------------------------------------------
   14. Product mockup (pure CSS/SVG device)
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.device-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.device-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.device {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), inset 0 0 0 6px var(--surface);
  padding: 1.1rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.device-notch {
  width: 78px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  margin: 0.15rem auto 0.35rem;
  flex-shrink: 0;
}

.device-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.device-dial {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0 0.4rem;
}
.device-dial svg {
  width: 108px;
  height: 108px;
}
.device-dial-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.device-dial-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.device-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.8rem;
}
.device-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.device-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.device-opt:last-child {
  margin-bottom: 0;
}
.device-opt[data-state="correct"] {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--text);
}
.device-opt-dot {
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 800;
  color: transparent;
}
.device-opt[data-state="correct"] .device-opt-dot {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-inverse);
}

.device-script {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.55rem;
}

.device-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.5rem 0.15rem;
  border-top: 1px solid var(--border);
}
.device-tab {
  width: 26px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
}
.device-tab[data-active="true"] {
  background: var(--accent);
}

.callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.callout {
  display: flex;
  gap: 0.85rem;
}
.callout-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.callout h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.callout p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   15. Pre-trip spotlight
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1.5rem;
}
.step {
  display: flex;
  gap: 0.8rem;
}
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.script-card {
  border-left: 4px solid var(--accent);
}
.script-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0.75rem 0 1.1rem;
}

/* --------------------------------------------------------------------------
   16. Comparison table (stacks into cards on small screens)
   -------------------------------------------------------------------------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table th {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--surface-raised);
}
.compare-table th.is-us {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.compare-table td.is-us {
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}
.compare-table td {
  color: var(--text-muted);
}
.compare-table td strong {
  color: var(--text);
}

.cell-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cell-yes {
  color: var(--success-text);
  font-weight: 700;
}
.cell-no {
  color: var(--error-text);
  font-weight: 700;
}

.compare-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   17. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.plan:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-accent);
}
.plan-tag {
  position: absolute;
  top: -13px;
  right: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 1rem 0 0.35rem;
  line-height: 1;
}
.plan-price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: normal;
}
.plan-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.plan-note--accent {
  color: var(--accent-text);
}
.plan-note--success {
  color: var(--success-text);
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.5rem 0 1.75rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  flex-grow: 1;
}
.plan-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.plan-features svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--success-text);
}

/* --------------------------------------------------------------------------
   18. FAQ accordion
   -------------------------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
  transition: color var(--dur-fast) var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--accent-text);
}
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-base) var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   19. Legal / long-form pages
   -------------------------------------------------------------------------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.legal h1 {
  margin-bottom: 0.4rem;
}
.legal .meta {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}
.legal h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}
.legal p,
.legal ul {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.7;
}
.legal ul {
  padding-left: 1.35rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal strong {
  color: var(--text);
}
.legal a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}
.callout-box--success {
  border-left-color: var(--success);
}
.callout-box h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.callout-box p {
  margin: 0;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.field .hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.input,
.textarea,
select.input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:focus,
.textarea:focus,
select.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.87rem;
  max-width: 21rem;
  margin-top: 0.85rem;
}
.footer-col h2,
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover {
  color: var(--accent-text);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   21. Sticky mobile CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
.mobile-cta-text {
  flex: 1;
  min-width: 0;
}
.mobile-cta-text strong {
  display: block;
  font-size: 0.9rem;
}
.mobile-cta-text span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   22. Motion
   -------------------------------------------------------------------------- */
/* Progressive enhancement: the hidden state is scoped to `:root.js-enabled`, a class
   added by js/theme-boot.js. With JS disabled or broken the content stays visible
   instead of being stuck at opacity 0 — which would also hide it from crawlers. */
:root.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-decel), transform var(--dur-slow) var(--ease-decel);
}
:root.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Must match the `:root.js-enabled` specificity above, or the reveal never un-hides. */
  :root.js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .plan:hover,
  .btn:hover,
  .quiz-option:hover:not(:disabled),
  .store-badge:hover,
  .icon-btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  /* The header CTA is redundant once the drawer and the sticky bottom bar both
     carry it — keeping it here is what pushed the nav past 390 px. */
  .nav-actions .btn {
    display: none;
  }
  .nav-wrapper {
    gap: 0.5rem;
  }
  .hero-grid,
  .split,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-grid .device-wrap {
    order: -1;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0;
  }
  .stat:nth-child(odd) {
    border-left: none;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.75rem 0;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 74px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .funnel {
    padding: 1.4rem;
  }
  .card {
    padding: 1.5rem;
  }

  /* Comparison table → stacked cards */
  .compare-wrap {
    overflow-x: visible;
    border: none;
    background: none;
    box-shadow: none;
  }
  .compare-table {
    min-width: 0;
  }
  .compare-table thead {
    display: none;
  }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    margin-bottom: 0.85rem;
  }
  .compare-table td {
    border: none;
    padding: 0.35rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: none;
    font-size: 0.9rem;
  }
  .compare-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .compare-table td.is-us {
    border-left: none;
    border-right: none;
    background: none;
    color: var(--text);
  }
  .compare-table td.is-us::before {
    color: var(--accent-text);
  }
  .compare-table td[data-label="Feature"] {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    padding-bottom: 0.6rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
  }
  .compare-table td[data-label="Feature"]::before {
    display: none;
  }
}

/* ================= 50-State Directory ================= */
.state-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.state-link-chip {
  display: block;
  padding: 0.6rem 0.8rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all var(--dur-fast) var(--ease);
}
.state-link-chip:hover {
  border-color: var(--border-accent);
  color: var(--accent-text);
  background: var(--surface-overlay);
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .container {
    padding: 0 1.1rem;
  }
  .hero-ctas .btn,
  .hero-ctas .store-badge {
    width: 100%;
  }
  /* Tighten the remaining header controls so the bar fits a 360 px phone. */
  .nav-actions {
    gap: 0.4rem;
  }
  .control-select {
    padding: 0.4rem 1.5rem 0.4rem 0.6rem;
    font-size: 0.78rem;
  }
  .icon-btn,
  .nav-toggle {
    width: 34px;
    height: 34px;
  }
  .brand-logo {
    font-size: 1.05rem;
    gap: 0.5rem;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
}
