:root {
  color-scheme: light;
  /* Basta brand palette */
  --navy: #0b0940;        /* headings, primary text, dark sections */
  --blue: #006af8;        /* buttons, selections, progress */
  --blue-dark: #0052c2;   /* button hover */
  --blue-tint: #eaf2ff;   /* selected backgrounds */
  --field: #eef5ff;       /* light-blue text fields */
  --field-border: #a9c6ef;
  --gold: #f0ca45;        /* accent: fills only, never text on white */
  --gold-tint: #fdf6dc;
  --text: #0b0940;
  --text-2: #3d4a68;      /* body copy (AA on white) */
  --muted: #56637f;       /* hints (AA on white) */
  --line: #e3e9f3;
  --canvas: #04198A;      /* outermost page background */
  --surface: #ffffff;     /* cards */
  --question: #ffffff;    /* inner item boxes: white */
  --error: #b42318;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(11,9,64,.07);
  font-family: 'Neue Haas Grotesk Text', 'Neue Haas Grotesk Display', 'neue-haas-grotesk-text', 'neue-haas-grotesk-display', 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--canvas); font-size: 16px; line-height: 1.6; }
button, input, select { font: inherit; }
a { color: inherit; }
.page-shell { min-height: 100vh; }
h1, h2, h3, p { margin-top: 0; }

/* ---------- Hero (full page only, hidden in the embed) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 18% 85%, rgba(0,106,248,.35), transparent 40%), var(--navy); }
.hero-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 98px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 99px; color: var(--navy); background: var(--gold); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.hero h1 { max-width: 850px; margin: 10px 0 22px; font-size: clamp(38px, 7vw, 66px); line-height: 1.04; letter-spacing: -.04em; }
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 710px; margin-bottom: 14px; color: rgba(255,255,255,.88); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.6; }
.hero-note { max-width: 610px; margin-bottom: 30px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; }
.wave { position: absolute; right: -3%; bottom: -1px; left: -3%; height: 36px; background: var(--canvas); clip-path: ellipse(58% 45% at 50% 100%); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border: 2px solid transparent; border-radius: 100px; text-decoration: none; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button-light, .button-primary { color: #fff; background: var(--blue); }
.button-light:hover, .button-primary:hover { background: var(--navy); color: var(--gold); }
.button-outline-light { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.button-outline-light:hover { background: rgba(255,255,255,.1); }
.button-secondary { color: var(--navy); background: #fff; border-color: #b7c6de; }
.button-secondary:hover { border-color: var(--navy); }
.button-edit { width: 100%; color: #fff; background: #0a3a8f; border-color: rgba(255,255,255,.35); }
.button-edit:hover { color: var(--gold); background: #0c2f6e; }
.button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Intro (full page only) ---------- */
.intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(1120px, calc(100% - 40px)); margin: 36px auto 0; }
.intro-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.intro-card > span { color: var(--blue); font-size: 22px; line-height: 1; }
.intro-card strong { display: block; margin-bottom: 4px; font-size: 16px; }
.intro-card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Calculator ---------- */
.calculator-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 72px; scroll-margin-top: 24px; }
.section-heading { max-width: 650px; margin: 0 auto 28px; text-align: center; }
.eyebrow-blue { margin-bottom: 8px; color: var(--gold); }
.section-heading h2 { margin-bottom: 8px; color: #fff; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; }
.section-heading > p:last-child { margin-bottom: 0; color: #d6e4fb; font-size: 16px; }

#app { max-width: 980px; margin: 0 auto; }
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.wizard-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
.wizard-main { min-width: 0; }

/* Progress bar */
.progress { margin-bottom: 32px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.progress-step { color: #fff; font-size: 16px; font-weight: 700; }
.progress-step-name { color: #d6e4fb; font-weight: 500; }
.progress-pct { color: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.22); }
.progress-fill { height: 100%; border-radius: 99px; background: #7bbcff; transition: width .35s ease; }
.progress.is-complete .progress-fill { background: var(--gold); }
.progress.is-complete .progress-pct { color: var(--gold); }

/* Step card */
.card { overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: 0 10px 30px rgba(11,9,64,.18); }
.step-content { padding: clamp(30px, 6vw, 56px) clamp(22px, 6vw, 56px) 8px; }
.step-title-row { margin-bottom: 36px; }
.step-count { display: none; }
.step-title-row h2 { margin-bottom: 10px; line-height: 1.25; color: var(--gold); font-size: 26px; letter-spacing: -.02em; }
.step-title-row p { margin: 0; color: #e3ecfb; font-size: 16px; }

/* Each question is its own container */
.field-list { display: grid; gap: 24px; }
.question, .result-hero, .info-panel, .package-body { --muted: #3d4a68; --text-2: #2a3452; }
.question { padding: clamp(24px, 4vw, 32px) clamp(22px, 4vw, 36px); border: 0; border-radius: 12px; background: var(--question); }
.field label, .field legend { display: block; margin-bottom: 18px; line-height: 1.45; padding: 0; color: var(--navy); font-size: 16px; font-weight: 700; }
.required { color: var(--blue); }
.optional-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; color: var(--muted); background: #e6ecf6; font-size: 12px; font-weight: 600; vertical-align: 2px; }
.field fieldset { padding: 0; margin: 0; border: 0; }

/* Text fields (light blue) */
.field input:not([type="range"]), .field select { width: 100%; min-height: 50px; padding: 12px 15px; border: 1.5px solid var(--field-border); border-radius: 10px; background: var(--field); color: var(--navy); font-size: 16px; }
.field input:not([type="range"]):hover, .field select:hover { border-color: var(--blue); }
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b0940' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select:focus { border-color: var(--blue); background-color: #fff; outline: 3px solid rgba(0,106,248,.35); outline-offset: 1px; }
.field select option { color: var(--navy); background: #fff; }
.field input:not([type="range"]):focus { border-color: var(--blue); background: #fff; outline: 3px solid rgba(0,106,248,.35); outline-offset: 1px; }
.field input::placeholder { color: #66749a; opacity: 1; }

/* Pills (short single-choice) */
.radio-options { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-option { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px; border: 1.5px solid #c9d5e8; border-radius: 100px; color: var(--navy); background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.radio-options.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.radio-options.cols-2 .radio-option { justify-content: center; width: 100%; text-align: center; }
.radio-option:hover { border-color: var(--blue); }
.radio-option[aria-pressed="true"] { border-color: var(--blue); color: #fff; background: var(--blue); font-weight: 700; }

/* Sliders (ordered ranges) */
.slider-field { padding: 0 2px; }
.slider-readout { min-height: 28px; margin-bottom: 18px; color: var(--navy); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slider-field.is-unset .slider-readout { color: var(--muted); font-size: 15px; font-weight: 500; line-height: 28px; }
.slider-field input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 10px 0 0; border-radius: 99px; background: linear-gradient(to right, var(--blue) 0 var(--pct), #dde3ec var(--pct) 100%); cursor: pointer; }
.slider-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border: 4px solid var(--blue); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11,9,64,.2); }
.slider-field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--blue); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11,9,64,.2); }
.slider-field.is-unset input[type="range"]::-webkit-slider-thumb { border-color: #8a9ab8; }
.slider-field.is-unset input[type="range"]::-moz-range-thumb { border-color: #8a9ab8; }
.slider-ticks { position: relative; height: 24px; margin: 20px 13px 0; }
.slider-tick { position: absolute; top: 0; transform: translateX(-50%); padding: 2px 4px; border: 0; border-radius: 6px; color: var(--muted); background: none; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.slider-tick:first-child { transform: translateX(-13px); }
.slider-tick:last-child { transform: translateX(calc(-100% + 13px)); }
.slider-tick:hover { color: var(--navy); text-decoration: underline; }
.slider-tick.is-active { color: var(--blue); font-weight: 800; }

/* Errors */
.question.has-error { background: #fff7f6; box-shadow: inset 0 0 0 2px var(--error); }
.error-text { margin: 10px 0 0; color: var(--error); font-size: 14px; font-weight: 600; }
.error-text::before { content: "! "; font-weight: 800; }

.wizard-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 36px clamp(22px, 6vw, 56px) clamp(32px, 6vw, 52px); background: var(--navy); }
.wizard-footer.is-first { justify-content: flex-end; }
.wizard-footer .button-secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); }
.wizard-footer .button-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.wizard-footer .button-primary:hover { background: #fff; color: var(--navy); }
.card :focus-visible { outline-color: var(--gold); }

/* Sidebar */
.sidebar { position: sticky; top: 20px; margin-top: 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sidebar h3 { margin-bottom: 14px; color: var(--navy); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.answer-list { display: grid; gap: 18px; max-height: 460px; overflow: auto; }
.answer-entry span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.answer-entry strong { display: block; overflow: hidden; color: var(--navy); font-size: 14px; text-overflow: ellipsis; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }

/* ---------- Results ---------- */
.result-stack { display: grid; gap: 26px; padding: clamp(28px, 6vw, 56px); border-radius: 22px; background: var(--navy); box-shadow: 0 10px 30px rgba(11,9,64,.18); }
.result-hero { padding: clamp(28px, 5vw, 44px); border-radius: 16px; background: var(--question); border-top: 6px solid var(--blue); }
.result-hero.tier-refined { border-top-color: var(--gold); }
.result-hero.tier-signature { border-top-color: #7bbcff; }
.result-topline { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 24px; row-gap: 12px; margin-bottom: 28px; }
.result-topline .tier-pill, .result-topline h2 { grid-column: 1; }
.tier-pill { display: block; width: fit-content; padding: 5px 12px; border-radius: 99px; color: var(--navy); background: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-hero h2 { margin: 0; color: var(--navy); font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.price-label { grid-column: 2; margin: 0; text-align: right; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-value { grid-column: 2; margin: 0; padding: 0; text-align: right; color: var(--navy); background: none; font-size: clamp(24px, 4vw, 32px); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.signature-note { padding: 16px 20px; margin: 0 0 28px; border-radius: 12px; color: var(--text-2); background: var(--blue-tint); font-size: 15px; }
.signature-note strong { color: var(--navy); }
.included-title { margin: 0 0 16px; color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feature-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 32px; padding: 0; margin: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.feature-list li::before { content: "✓"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }

.info-panel { padding: 26px 30px; border: 0; border-radius: 14px; background: var(--question); }
.info-panel h3 { margin-bottom: 10px; color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.info-panel p:last-child, .info-panel ul:last-child { margin-bottom: 0; }
.info-panel p, .info-panel li { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.info-panel strong { color: var(--navy); }
.info-panel ul { display: grid; gap: 4px; padding-left: 20px; margin: 8px 0 0; }
.panel-custom { border-left: 5px solid #7bbcff; }
.panel-addons { border-left: 5px solid var(--blue); }
.panel-notes { border-left: 5px solid var(--gold); }
.fee-row { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.fee-row:last-child { border-bottom: 0; }
.fee-row strong { text-align: right; color: var(--navy); }

.comparison h3 { margin: 12px 0 18px; color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.comparison-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.package-card { display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 14px; background: var(--question); }
.package-card.recommended { box-shadow: 0 0 0 3px #4d9dff; }
.package-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 22px; color: var(--navy); background: #cfe2ff; font-size: 15px; font-weight: 800; }
.package-card.refined .package-head { color: var(--navy); background: var(--gold); }
.package-card.signature .package-head { color: #fff; background: #2b46a3; }
.package-fit-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 99px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.package-body { flex: 1; padding: 22px; }
.package-price { margin-bottom: 6px; color: var(--navy); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.package-fit { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.package-body ul { list-style: none; display: grid; gap: 10px; padding-left: 0; margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.package-body ul li { display: flex; align-items: flex-start; gap: 8px; }
.package-body ul li::before { content: "✓"; flex: 0 0 auto; color: var(--blue); font-weight: 800; }

.submission-status { margin: 0; padding: 14px 18px; border-radius: 12px; color: var(--navy); background: #e6f0ff; font-size: 15px; font-weight: 600; }
.submission-status[hidden] { display: none; }
.submission-status.error { color: #7a1d14; background: #fde8e5; }
.disclaimer { margin: 0; padding-left: 16px; border-left: 3px solid var(--gold); color: #e3ecfb; font-size: 14px; line-height: 1.6; }
.result-actions { display: flex; gap: 16px; }
.result-actions > * { flex: 1; }
.result-actions .button-primary { border-color: rgba(255,255,255,.35); }
.result-actions .button-primary:hover { color: var(--navy); background: #fff; }

/* ---------- Closing CTA + footer (full page only) ---------- */
.closing-cta { padding: 60px 20px; color: #fff; background: var(--navy); }
.closing-cta > div { width: min(850px, 100%); margin: auto; text-align: center; }
.closing-cta .eyebrow { color: var(--gold); }
.closing-cta h2 { margin-bottom: 10px; font-size: clamp(26px, 4vw, 34px); }
.closing-cta p:not(.eyebrow) { max-width: 620px; margin: 0 auto 22px; color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.6; }
.button-row { display: flex; justify-content: center; gap: 12px; }
.site-footer { padding: 16px; color: rgba(255,255,255,.75); background: #070630; font-size: 13px; text-align: center; }

.embed-mode .hero, .embed-mode .intro, .embed-mode .section-heading, .embed-mode .closing-cta, .embed-mode .site-footer { display: none; }
.embed-mode .calculator-section { padding: 20px 0; }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 820px) {
  .wizard-layout, .wizard-layout.has-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-inner { padding: 62px 0 78px; }
}
@media (max-width: 620px) {
  .hero-inner, .intro, .calculator-section { width: min(100% - 24px, 1120px); }
  .intro { grid-template-columns: 1fr; margin-top: 22px; }
  .hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .progress-step-name { display: none; }
  .question { padding: 22px 20px; }
  .slider-tick:not(:first-child):not(:last-child) { display: none; }
  .result-topline { grid-template-columns: 1fr; }
  .result-topline .price-label, .result-topline .price-value { grid-column: 1; text-align: left; }
  .price-value { width: fit-content; }
  .feature-list { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .result-actions, .button-row { flex-direction: column; }
  .wizard-footer .button { padding-inline: 16px; }
}