: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;
  --amber: #d97706;

  --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: 20%; 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)); }

/* 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; }

.field-error { color: #b91c1c; font-size: 13px; margin: 0; }

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

/* ───── MATCHING ───────────────────────── */
.matching { text-align: center; padding: var(--space-3) 0 var(--space-4); }
.matching h1 { text-align: center; }
.matching .sub { margin-left: auto; margin-right: auto; text-align: center; }

.radar {
  position: relative; width: 120px; height: 120px;
  margin: var(--space-3) auto var(--space-6);
}
.radar-core {
  position: absolute; inset: 50% auto auto 50%;
  width: 18px; height: 18px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--primary) 18%, transparent);
}
.radar-pulse {
  position: absolute; inset: 0;
  border: 2px solid color-mix(in oklab, var(--primary) 40%, transparent);
  border-radius: 50%;
  animation: radar 2.2s cubic-bezier(.2,.6,.3,1) infinite;
  opacity: 0;
}
.radar-pulse.d2 { animation-delay: 0.7s; }
.radar-pulse.d3 { animation-delay: 1.4s; }
@keyframes radar {
  0%   { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(1);   opacity: 0;   }
}

.status-list {
  list-style: none; padding: 0; margin: var(--space-5) auto 0; max-width: 360px;
  display: grid; gap: var(--space-2); text-align: left;
}
.status-list li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
  font-size: 14px; color: var(--fg-muted);
  transition: all 240ms ease;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border-strong);
  flex: none; transition: all 240ms ease;
  position: relative;
}
.status-list li.active {
  color: var(--fg); border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  background: color-mix(in oklab, var(--primary) 5%, var(--surface));
}
.status-list li.active .status-dot {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 50%, transparent);
  animation: dotPulse 1.2s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 50%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--primary) 0%, transparent); }
}
.status-list li.done { color: var(--fg); border-color: var(--border); }
.status-list li.done .status-dot {
  background: var(--success); border-color: var(--success);
  animation: none;
}
.status-list li.done .status-dot::after {
  content: ''; position: absolute; inset: 1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/70% no-repeat;
}

/* ───── AGENT AVAILABLE ────────────────── */
.available { text-align: center; padding: var(--space-2) 0 var(--space-2); }
.avail-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--success) 12%, white);
  color: color-mix(in oklab, var(--success) 70%, black);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
}
.avail-badge.soft {
  background: color-mix(in oklab, var(--amber) 14%, white);
  color: color-mix(in oklab, var(--amber) 70%, black);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 60%, transparent);
  animation: livePulse 1.4s ease-out infinite;
}
.live-dot.amber { background: var(--amber); box-shadow: 0 0 0 0 color-mix(in oklab, var(--amber) 60%, transparent); }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--success) 60%, transparent); }
  100% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--success) 0%, transparent); }
}
.avail-title {
  text-align: center; margin-bottom: var(--space-3);
}
.available .sub { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: var(--space-6); }

/* CALL CTA — the money button */
.call-cta {
  display: block; text-decoration: none; color: var(--primary-contrast);
  border-radius: 18px; padding: 3px;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--primary) 72%, white) 0%,
    var(--primary) 55%,
    color-mix(in oklab, var(--primary) 80%, black) 100%);
  box-shadow:
    0 14px 40px -12px color-mix(in oklab, var(--primary) 60%, transparent),
    0 2px 4px rgba(15,23,42,.08);
  transition: transform 180ms cubic-bezier(.32,.72,0,1), box-shadow 180ms ease;
  position: relative;
  animation: ctaFloat 3.2s ease-in-out infinite;
}
.call-cta::before {
  content: ''; position: absolute; inset: -6px; border-radius: 22px;
  background: color-mix(in oklab, var(--primary) 30%, transparent);
  filter: blur(22px); z-index: -1; opacity: .7;
}
.call-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 50px -14px color-mix(in oklab, var(--primary) 70%, transparent),
    0 2px 6px rgba(15,23,42,.1);
}
.call-cta:active { transform: translateY(1px); }
.call-cta:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring), 0 14px 40px -12px color-mix(in oklab, var(--primary) 60%, transparent); }

.call-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--space-4);
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--primary) 92%, white) 0%,
    var(--primary) 100%);
  border-radius: 15px;
  padding: 18px 22px;
  text-align: left;
}
.call-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); color: #fff;
  backdrop-filter: blur(4px);
}
.call-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.call-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in oklab, white 80%, var(--primary));
}
.call-number {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 400; letter-spacing: -0.01em;
  color: #fff;
}
.call-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}
.call-cta:hover .call-arrow { transform: translateX(3px); background: rgba(255,255,255,.28); }
@keyframes ctaFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .call-cta { animation: none; }
}
@media (max-width: 420px) {
  .call-number { font-size: 26px; }
  .call-cta-inner { padding: 16px 16px; gap: var(--space-3); }
  .call-icon { width: 40px; height: 40px; }
}

.reservation {
  margin-top: var(--space-5);
  display: flex; justify-content: center;
}
.res-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-muted);
  padding: 8px 14px;
  background: var(--surface-2);
  border-radius: 999px;
}
.res-row strong { color: var(--fg); font-variant-numeric: tabular-nums; font-weight: 600; }

.trust-row {
  list-style: none; padding: 0;
  margin: var(--space-6) 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4);
  font-size: 12.5px; color: var(--fg-subtle);
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }

/* ───── PARTNERS ─────────────────────────────────────── */
.partners { padding: var(--space-2) 0; }
.partners .avail-title { text-align: left; }
.partners > .sub { margin: 0 0 var(--space-6); text-align: left; max-width: none; }

.partner-list {
  display: grid; gap: var(--space-3);
}
.partner-card {
  display: block;
  text-decoration: none; color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 180ms cubic-bezier(.32,.72,0,1),
              border-color 180ms ease,
              box-shadow 180ms ease;
  box-shadow: var(--shadow-sm);
}
.partner-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
  box-shadow: var(--shadow-md);
}
.partner-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: var(--primary);
}

.partner-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-3);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.partner-company { color: var(--fg-muted); }
.partner-badge {
  background: color-mix(in oklab, var(--primary) 12%, white);
  color: var(--primary);
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.06em;
  flex: none;
}

.partner-media {
  width: 100%;
  aspect-ratio: 16 / 7;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--surface-2) 55%, white) 0%,
      var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5) var(--space-6);
  overflow: hidden;
}
.partner-media img {
  display: block;
  max-width: 78%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  min-width: 0;
}
.partner-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}
.partner-desc {
  font-size: 14.5px; color: var(--fg-muted);
  line-height: 1.55; margin: 0;
}
.partner-desc p { margin: 0 0 6px; }
.partner-desc p:last-child { margin-bottom: 0; }
.partner-desc ul, .partner-desc ol {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid; gap: 4px;
}
.partner-desc li { line-height: 1.5; }
.partner-desc ul li::marker { color: var(--primary); }
.partner-desc strong, .partner-desc b { color: var(--fg); font-weight: 600; }
.partner-desc a { color: var(--primary); text-decoration: underline; }

.partner-cta {
  margin-top: var(--space-2);
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em;
  transition: gap 180ms ease;
}
.partner-card:hover .partner-cta { gap: 10px; }

@media (max-width: 520px) {
  .partner-head { padding: var(--space-3) var(--space-4) var(--space-2); }
  .partner-body { padding: var(--space-4); }
  .partner-headline { font-size: 20px; }
  .partner-media { aspect-ratio: 16 / 8; padding: var(--space-4); }
}

/* Skeleton loader */
.partner-skel {
  height: 140px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg,
      var(--surface-2) 0%,
      color-mix(in oklab, var(--surface-2) 50%, white) 50%,
      var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border: 1px solid var(--border);
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.partners-fallback { margin-top: var(--space-5); }
