:root {
  --bg: #07111f;
  --bg-2: #0d1b2f;
  --panel: rgba(255,255,255,0.08);
  --panel-border: rgba(255,255,255,0.12);
  --text: #eef4ff;
  --muted: #b8c4d9;
  --accent: #7c9cff;
  --accent-2: #6ef3d6;
  --accent-3: #ff83c6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Prevent iOS Safari from automatically resizing text (can cause different wrapping on device) */
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,156,255,0.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(110,243,214,0.12), transparent 22%),
    linear-gradient(180deg, #08111d 0%, #0a1527 35%, #09101b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
/* Respect iPhone safe area insets */
body { padding-bottom: env(safe-area-inset-bottom); }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 240px; height: 240px; background: #7c9cff; top: 10%; left: -70px; animation: drift 9s ease-in-out infinite; }
.orb-2 { width: 180px; height: 180px; background: #6ef3d6; top: 35%; right: 4%; animation: drift 12s ease-in-out infinite reverse; }
.orb-3 { width: 220px; height: 220px; background: #ff83c6; bottom: 8%; left: 12%; animation: drift 11s ease-in-out infinite; }

@keyframes drift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-24px,0) scale(1.05); }
}

.site-header,
.page-shell,
.site-footer { position: relative; z-index: 1; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* base padding; left/right include safe-area insets so content doesn't get squeezed on devices with notches */
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: 18px;
  padding-left: calc(min(5vw, 44px) + env(safe-area-inset-left));
  padding-right: calc(min(5vw, 44px) + env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 60;
  /* slightly stronger, more opaque header so text stays readable over page content */
  background: linear-gradient(180deg, rgba(7,17,31,0.98), rgba(7,17,31,1));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.header-left { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; min-width: 0; }
.main-nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.header-right { display: flex; align-items: center; flex: 0 0 auto; }
.site-header nav { display: flex; gap: 22px; color: var(--muted); }
.site-header .nav-start { margin-left: 12px; }
.nav-start { padding: 10px 14px; font-weight: 700; border-radius: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #08111d;
  box-shadow: var(--shadow);
}

/* New nav styles inspired by the React example */
.nav-wrap { background: transparent; }
.nav-wrap .container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav-card {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,0.03);
  /* increase contrast slightly so the nav card reads better against varied backgrounds */
  border: 1px solid rgba(255,255,255,0.06);
  align-items: center;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.brand-mark { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.brand-primary { color: var(--text); font-weight: 800; margin-right: 4px; }
.brand-accent { color: var(--accent-2); font-weight: 800; }
.nav-links {
  display: flex;
  gap: 18px;
  margin: 0 auto; /* center between brand and CTA */
  justify-content: center;
}
.nav-links a { color: rgba(235,244,255,0.92); text-decoration: none; padding: 8px 6px; border-radius: 8px; transition: transform 0.18s cubic-bezier(.18,.89,.32,1.18), color 0.18s ease; font-weight: 600; text-shadow: 0 1px 0 rgba(0,0,0,0.25); }

/* stronger visual state once the user scrolls a little */
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(7,17,31,1), rgba(7,17,31,1));
  box-shadow: 0 6px 30px rgba(2,6,23,0.55);
  border-bottom-color: rgba(255,255,255,0.06);
}
.site-header.scrolled .nav-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.nav-links a:hover { transform: translateY(-2px); color: var(--text); }
.nav-cta-wrap { margin-left: 0; }
.nav-cta { padding: 10px 16px; border-radius: 12px; font-weight: 700; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.nav-cta:hover { transform: translateY(-2px) scale(1.02); }

@media (max-width: 720px) {
  .nav-card { padding: 8px 10px; gap: 10px; }
  .nav-links { gap: 12px; }
}

/* Mobile stacked layout: brand on top, nav centered, CTA at bottom */
@media (max-width: 520px) {
  .site-header {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .nav-wrap .container { padding: 0 12px; }

  .nav-card {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    width: 100%;
  }

  /* Brand sits at the top and is centered */
  .brand-mark { order: 1; margin: 0; display: inline-flex; justify-content: center; }
  .brand-primary, .brand-accent { display: inline-block; }

  /* Nav links centered and given breathing room in the middle */
  .nav-links { order: 2; margin: 6px 0; justify-content: center; gap: 10px; }

  /* CTA moved to the bottom, centered and easier to tap */
  .nav-cta-wrap { order: 3; width: 100%; display: flex; justify-content: center; }
  .nav-cta { width: min(320px, 92%); padding: 12px 16px; }

  /* Slightly reduce card background on small screens so it doesn't feel heavy */
  .nav-card { background: rgba(255,255,255,0.04); }

  /* Ensure the scrolled state still looks good when stacked */
  .site-header.scrolled .nav-card { background: rgba(255,255,255,0.07); }
}

/* Fixes for nav wrapping and brand alignment on very small screens */
@media (max-width: 420px) {
  /* Allow nav links to wrap and center; give each link breathing room */
  .nav-links {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    justify-content: center;
  }
  .nav-links a {
    padding: 8px 10px;
    white-space: normal; /* let long labels wrap */
    text-align: center;
    line-height: 1.1;
    min-width: 0;
  }

  /* Brand: show a small square mark above the words so it stays aligned when stacked */
  /* Place the mark inline with the text (square to the left) */
  .nav-card .brand-mark {
    background: none; /* remove large inline background used on wide screens */
    width: auto;
    height: auto;
    padding: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  /* Keep brand on a single line and nudge the decorative square behind 'Rate' so it isn't clipped */
  .brand { white-space: nowrap; }
  .nav-wrap .container { padding-left: 18px; padding-right: 18px; }

  .brand-primary {
    display: inline-block;
    position: relative;
    z-index: 2;
    color: var(--text);
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
    padding-left: 6px; /* small padding so text doesn't sit directly on the square */
  }
  .brand-primary::before {
    content: "";
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-14%, -50%); /* nudge left so square sits behind the left side of 'Rate' */
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: var(--shadow);
    z-index: -1; /* ensure the text sits above the square */
    opacity: 0.98;
  }
  .brand-accent { display: inline-block; color: var(--accent-2); font-weight: 800; }

  /* prevent the brand mark from clipping the ::before pseudo-element */
  .nav-card .brand-mark { overflow: visible; }
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  padding-bottom: 60px;
  /* leave space for sticky header so content isn't covered */
  padding-top: calc(var(--header-height, 88px) + 8px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 36px;
  min-height: 420px;
  overflow: hidden;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 10px 0 18px;
  max-width: 11ch;
}
.hero-copy p {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d6e4ff;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-actions, .form-nav {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.primary-btn, .ghost-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.primary-btn {
  color: #09101b;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(124,156,255,0.28);
}
.ghost-btn {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-2px) scale(1.01); }
.primary-btn:active, .ghost-btn:active { transform: translateY(1px) scale(0.985); }
.primary-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.mini-stats div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
}
.mini-stats strong { display: block; font-size: 1.05rem; }
.mini-stats span { color: var(--muted); font-size: 0.92rem; }

.hero-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.floating-card {
  position: absolute;
  width: min(260px, 72%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  animation: bob 8s ease-in-out infinite;
}
.floating-card span { color: var(--accent-2); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.floating-card strong { line-height: 1.35; display: block; }
.card-a { top: 12%; left: 4%; }
.card-b { top: 44%; right: 8%; animation-delay: -2s; }
.card-c { bottom: 2%; left: 18%; animation-delay: -4s; }
.pulse-ring {
  width: 260px; height: 260px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 80px rgba(124,156,255,0.12);
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0px) rotate(0deg);} 50%{ transform: translateY(-12px) rotate(1deg);} }
@keyframes pulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.08);} }

.section-heading h2 { margin: 10px 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 160px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.category-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 140px; height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 65%);
}
.category-card:hover, .category-card.active {
  transform: translateY(-4px);
  border-color: rgba(124,156,255,0.55);
  box-shadow: 0 18px 40px rgba(124,156,255,0.16);
}
.category-card .icon { font-size: 1.8rem; }
.category-card h3 { margin: 18px 0 8px; }
.category-card p { color: var(--muted); font-size: 0.95rem; }

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
}
.form-panel { padding: 26px; min-height: 560px; }
.form-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.form-panel-header h2 { margin: 10px 0 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.sparkle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(255,255,255,0.07);
}
.progress-shell {
  width: 100%; height: 12px; border-radius: 999px;
  background: rgba(255,255,255,0.08); margin: 20px 0 24px;
  overflow: hidden;
}
.progress-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  transition: width 0.45s cubic-bezier(.2,.9,.2,1);
}
.question-stage {
  min-height: 330px;
  display: grid;
}
.empty-state {
  align-self: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
.empty-icon { font-size: 2.3rem; margin-bottom: 14px; }

.question-card {
  align-self: start;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  transform-origin: 50% 100%;
}
.question-card.enter {
  animation: questionIn 0.45s cubic-bezier(.18,.89,.32,1.18);
}
.question-card.exit {
  animation: questionOut 0.22s ease forwards;
}
@keyframes questionIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes questionOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.985); }
}

.question-meta {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-bottom: 16px;
}
.question-step {
  color: var(--accent-2); font-size: 0.95rem; font-weight: 700;
}
.question-chip {
  padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); font-size: 0.85rem;
}
.question-title { font-size: clamp(1.45rem, 2.5vw, 2rem); margin: 0 0 10px; }
.question-help { color: var(--muted); margin: 0 0 22px; line-height: 1.5; }

.option-grid {
  display: grid;
  gap: 12px;
}
.option-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-btn {
  text-align: left;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.option-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.07); }
.option-btn.selected {
  background: rgba(124,156,255,0.18);
  border-color: rgba(124,156,255,0.65);
}

.field-shell { display: grid; gap: 10px; }
.field-label { font-size: 0.95rem; color: #dbe6f8; }
.text-input, .select-input {
  width: 100%;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5,12,24,0.62);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.text-input:focus, .select-input:focus { border-color: rgba(124,156,255,0.8); transform: translateY(-1px); }
.error-message { color: #ff9cbc; margin-top: 10px; min-height: 20px; }
.helper-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

.side-panel { display: grid; gap: 22px; }
.trust-panel, .steps, .testimonial-grid, .faq-list { gap: 14px; }
.trust-panel { padding: 24px; }
.benefit-list { margin: 18px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.steps { display: grid; }
.step-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
}
.step-card span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #09101b; font-weight: 800;
}
.step-card strong { display: block; margin-top: 12px; }
.step-card p { color: var(--muted); margin-bottom: 0; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.testimonial { padding: 22px; }
.testimonial p { color: #d8e2f3; line-height: 1.6; }
.testimonial strong { color: var(--accent-2); }

.faq-list { display: grid; gap: 12px; }
details { padding: 18px 20px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); }

.result-card {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(110,243,214,0.14), rgba(124,156,255,0.09));
  border: 1px solid rgba(255,255,255,0.14);
  animation: questionIn 0.55s cubic-bezier(.18,.89,.32,1.18);
}
.match-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.agent-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr; /* stack agents vertically */
  margin-top: 12px;
}
.agent-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.agent-card small { color: var(--muted); display: block; margin-top: 6px; }
.call-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #09101b;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.call-btn:active { transform: translateY(1px); }
.match-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.match-card small { color: var(--muted); display: block; margin-top: 4px; }
.badge {
  padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--accent-2); font-size: 0.85rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px min(5vw, 44px) 30px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Enhanced footer styles */
.footer-rich {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 28px min(5vw, 44px) 20px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: 100%;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.brand-mark.small { width: 28px; height: 28px; border-radius: 8px; font-size: 0.9rem; display: grid; place-items: center; }
.footer-actions { display: flex; gap: 14px; align-items: center; }
.newsletter { display: flex; gap: 8px; align-items: center; }
.newsletter-input { padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: rgba(5,12,24,0.5); color: var(--text); outline: none; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
.primary-btn.small { padding: 8px 12px; border-radius: 12px; }
.social { display: flex; gap: 8px; }
.social-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.04); color: var(--text); text-decoration: none; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 720px) {
  .footer-content { flex-direction: column; align-items: stretch; gap: 16px; }
  .footer-actions { justify-content: space-between; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* accessible hidden label */
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .experience-grid, .hero { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* Floating start button (always visible while scrolling) */
@media (max-width: 540px) {
  .site-header { padding: 12px 18px; }
  .nav-start { padding: 8px 10px; border-radius: 10px; }
  /* On small screens, allow the nav to wrap under the brand for readability */
  .header-left { flex-wrap: wrap; gap: 10px; }
  .main-nav { width: 100%; justify-content: flex-start; }
  /* Mobile: pin the Start button to the right edge and make it smaller */
  .nav-start {
    position: fixed;
    right: 12px;
    top: calc(env(safe-area-inset-top) + 36px); /* moved slightly lower, honoring the notch */
    padding: 12px 22px; /* larger tappable area */
    font-size: 1.06rem;
    border-radius: 14px;
    z-index: 220;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.34);
  }
  /* Ensure header-right doesn't reserve space when button is pinned */
  .header-right { min-width: 48px; }
}

@media (max-width: 720px) {
  .site-header { flex-direction: column; gap: 14px; align-items: flex-start; }
  .site-header nav { gap: 14px; flex-wrap: wrap; }
  .hero, .form-panel { padding: 22px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .option-grid.two-col { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .category-grid { grid-template-columns: 1fr; }
  .question-card { padding: 22px; }
  .form-nav { justify-content: space-between; }
}
