:root {
  --primary: #0b5ed7;
  --primary-hover: #0a4fb5;
  --primary-soft: rgba(11, 94, 215, 0.07);
  --ink: #16202b;
  --muted: #5c6b7a;
  --border: #d9e0e8;
  --card-bg: #ffffff;
  --page-bg: #eef2f7;
  --nudge: #b45309;
  --nudge-bg: rgba(180, 83, 9, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
}

/* Light page, card near the top: on a phone the card is the page. The old
   navy hero made the card read as a pop-up (survey review, 2026-09-03). */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 12px 48px;
  background:
    radial-gradient(circle at 50% -10%, rgba(11, 94, 215, 0.10) 0%, rgba(11, 94, 215, 0) 55%),
    var(--page-bg);
}

.survey-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px 22px 22px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 6px 24px rgba(22, 32, 43, 0.08), 0 1px 2px rgba(22, 32, 43, 0.06);
}
@media (min-width: 600px) {
  .hero { padding-top: 48px; }
  .survey-card { padding: 30px 32px 28px; }
}

.progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  margin: -24px -22px 18px;
}
@media (min-width: 600px) { .progress-bar { margin: -30px -32px 20px; } }
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.25s ease;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
}
.brand-mark .choice-icon { width: 20px; height: 20px; }
.brand-mark .choice-icon svg { width: 20px; height: 20px; }

.survey-step h1 {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.subline {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.survey-step h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.35;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* One icon set, drawn in the accent, so every phone renders the same card. */
.choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 14px 44px 14px 14px;
  text-align: left;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--primary);
  display: inline-flex;
}
.choice-icon svg { width: 22px; height: 22px; display: block; }
.choice-label { flex: 1 1 auto; }
.choice-btn:hover { border-color: var(--primary); }
.choice-btn:focus-visible { outline: 3px solid rgba(11, 94, 215, 0.35); outline-offset: 2px; }
.choice-btn.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.choice-btn::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice-btn.selected::after {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.choice-btn.selected-warning {
  border-color: var(--nudge);
  background: var(--nudge-bg);
  font-weight: 600;
}
.choice-btn.selected-warning .choice-icon { color: var(--nudge); }
.choice-btn.selected-warning::after {
  border-color: var(--nudge);
  background: var(--nudge);
  box-shadow: inset 0 0 0 3px #fff;
}
/* A nudge, not a scolding: amber, and it says how to fix it. */
.choice-warning {
  color: var(--nudge);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.survey-step label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.survey-step input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  color: var(--ink);
}
.survey-step input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.18); }
.zip-status {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.consent-text {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.consent-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* The button is the most-tapped thing on the page: full width, accent,
   labelled with the reward. Back is a quiet text link beside it. */
.survey-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.nav-btn {
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.nav-btn.prev {
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
  padding-left: 6px;
  padding-right: 10px;
}
.nav-btn.prev:hover { color: var(--ink); }
.nav-btn.next {
  flex: 1 1 auto;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.nav-btn.next:hover { background: var(--primary-hover); }
.nav-btn.next:focus-visible { outline: 3px solid rgba(11, 94, 215, 0.35); outline-offset: 2px; }
.nav-btn.next:disabled {
  background: #b7cdf0;
  box-shadow: none;
  cursor: not-allowed;
}
.nav-btn.next.warning { background: var(--nudge); }
.nav-btn.next.warning:hover { background: #92400e; }

.form-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 12px;
}

.confirmation h2 { color: var(--ink); }

.trust-bar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.trust-bar .testimonial {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}
.trust-line {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Belt-and-suspenders: guarantees [hidden] always wins over any future display rule,
   regardless of selector specificity or source order. A missing version of this exact
   rule caused a real bug in the B2B build (see docs/superpowers/plans/2026-08-10-b2b-lead-funnel.md Task 6). */
[hidden] { display: none !important; }

/* --- shared-engine additions --- */
.step-hint { margin: -6px 0 14px; font-size: 0.9rem; color: var(--muted); }
.choice-group.multi .choice-btn::after { border-radius: 4px; }
.choice-group.multi .choice-btn.selected::after {
  box-shadow: none;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar-fill, .choice-btn, .choice-btn::after { transition: none; }
}
