:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f4f4ef;
  --border: #e8e6df;
  --border-strong: #d6d3ca;
  --fg: #0f172a;
  --fg-muted: #55606f;
  --fg-subtle: #8a92a0;
  --primary: #2563eb;
  --primary-contrast: #ffffff;
  --primary-hover: color-mix(in oklab, var(--primary) 88%, black);
  --primary-soft: color-mix(in oklab, var(--primary) 10%, white);
  --accent: #0f172a;
  --ring: color-mix(in oklab, var(--primary) 35%, transparent);
  --success: #16a34a;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px -4px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 50px -20px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.05);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand img { width: 26px; height: 26px; }
.header-meta {
  font-size: 13px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 20%, transparent);
}
@media (max-width: 560px) {
  .site-header { padding: var(--space-4) var(--space-4); }
  .header-meta { display: none; }
}

/* QUIZ SHELL */
.quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-6) var(--space-4) var(--space-8);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-frame {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-6) var(--space-7);
}
@media (max-width: 560px) {
  .quiz-frame { padding: var(--space-5) var(--space-4) var(--space-6); border-radius: 14px; }
}

/* PROGRESS */
.progress {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 16.6%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 400ms cubic-bezier(.4,0,.2,1);
}
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: 12.5px;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
}
.back-btn:hover { background: var(--surface-2); color: var(--fg); }

/* STEPS */
.step { display: none; animation: stepIn 320ms cubic-bezier(.4,0,.2,1); }
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  .progress-bar { transition: none; }
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}
.step h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
.step .sub {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 var(--space-6);
  max-width: 48ch;
}

/* OPTION BUTTONS */
.options { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-coverage { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) {
  .grid-coverage { grid-template-columns: repeat(2, 1fr); }
}

.option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 64px;
  padding: var(--space-4) var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  text-align: center;
}
.option:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.option:active { transform: translateY(1px); }
.option:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.option .amount { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.option .tag {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 3px 6px;
  border-radius: 999px;
}
.option .tag.muted { background: var(--surface-2); color: var(--fg-muted); }
.option.recommended { border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); }

/* INLINE FORM (ZIP) */
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: start;
}
.inline-form input {
  font: inherit;
  font-size: 17px;
  padding: 0 var(--space-4);
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  width: 100%;
  letter-spacing: 0.04em;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.inline-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.inline-form .field-error { grid-column: 1 / -1; }
@media (max-width: 480px) {
  .inline-form { grid-template-columns: 1fr; }
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 56px;
  padding: 0 var(--space-5);
  background: var(--primary);
  color: var(--primary-contrast);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-lg { width: 100%; height: 60px; font-size: 16px; }

/* CONTACT FORM */
.contact-form { display: grid; gap: var(--space-4); }
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.contact-form input {
  font: inherit;
  font-size: 16px;
  padding: 0 var(--space-4);
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.contact-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .row-2 { grid-template-columns: 1fr; }
}
.fine {
  font-size: 12.5px;
  color: var(--fg-subtle);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}
.field-error {
  color: #b91c1c;
  font-size: 13px;
  margin: 0;
}

/* SUCCESS */
.success { text-align: center; padding: var(--space-5) 0 var(--space-4); }
.success .check {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: color-mix(in oklab, var(--success) 14%, white);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.success h1 { margin-bottom: var(--space-3); }
.success .sub { margin-left: auto; margin-right: auto; }

/* TRUST STRIP */
.trust {
  margin: var(--space-5) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fg-subtle);
}
