:root {
  --navy: #163653;
  --navy-deep: #0f2941;
  --orange: #e3522e;
  --orange-dark: #c94020;
  --gold: #eaa132;
  --cream: #fdfcf9;
  --paper: #ffffff;
  --ink: #183248;
  --muted: #687b8c;
  --line: #dfe7ec;
  --soft: #f2f6f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(234,161,50,.45); outline-offset: 2px; }
.app-message { position: fixed; z-index: 50; right: 22px; bottom: 22px; padding: 13px 17px; border-radius: 10px; color: white; background: var(--navy); box-shadow: 0 12px 30px rgba(22,54,83,.25); font-size: 12px; font-weight: 800; }
.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 75% 5%, rgba(234,161,50,.10), transparent 26%), var(--cream); }

.topbar { min-height: 94px; padding: 10px max(5vw, 28px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(22,54,83,.10); background: rgba(253,252,249,.92); }
.brand-crop { position: relative; width: 225px; height: 72px; overflow: hidden; display: block; }
.brand-logo { width: 225px; height: 72px; object-fit: contain; transform: scale(1.78); mix-blend-mode: multiply; }
.topbar-note { color: var(--muted); font-size: 13px; font-weight: 700; display: flex; gap: 9px; align-items: center; text-decoration: none; }
.topbar-note:hover { color: var(--navy); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2e9b74; box-shadow: 0 0 0 5px rgba(46,155,116,.12); }

.hero { width: min(1240px, 90vw); min-height: calc(100vh - 165px); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; padding: 65px 0 80px; }
.eyebrow, .step-kicker { color: var(--orange); font-size: 12px; letter-spacing: .15em; font-weight: 900; }
.hero h1 { max-width: 720px; margin: 18px 0 22px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(47px, 5.5vw, 76px); line-height: .99; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span { color: var(--orange); }
.hero-lead { max-width: 650px; margin: 0 0 32px; color: #52697a; font-size: 19px; line-height: 1.65; }
.primary-button { min-height: 48px; border: 0; border-radius: 10px; padding: 15px 22px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; background: var(--orange-dark); color: white; box-shadow: 0 8px 22px rgba(201,64,32,.22); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--navy); box-shadow: 0 12px 26px rgba(22,54,83,.24); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.hero-button { min-width: 218px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.trust-row { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-row span::first-letter { color: #2e9b74; }

.hero-visual { position: relative; min-height: 515px; }
.store-card { position: absolute; inset: 65px 30px 35px 35px; border-radius: 8px 8px 22px 22px; background: white; box-shadow: 0 26px 70px rgba(22,54,83,.18); border: 1px solid rgba(22,54,83,.08); overflow: hidden; }
.awning { position: absolute; z-index: 3; top: 33px; left: 12px; right: 10px; height: 80px; display: flex; filter: drop-shadow(0 12px 12px rgba(22,54,83,.15)); }
.awning span { flex: 1; background: var(--navy); transform: skewX(-18deg); margin-right: 8px; border-radius: 8px 8px 14px 14px; }
.awning span:nth-child(2), .awning span:nth-child(4) { background: var(--orange); }
.store-sign { height: 92px; padding-top: 42px; text-align: center; color: var(--navy); font-size: 18px; letter-spacing: .25em; font-weight: 900; }
.store-window { position: absolute; left: 34px; right: 132px; top: 130px; bottom: 35px; padding: 25px; border-radius: 14px; background: linear-gradient(145deg, #eaf4f7, #cfe4e9); border: 8px solid var(--navy); }
.store-window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.5), transparent 42%); }
.search-pill { position: relative; z-index: 1; background: white; border-radius: 999px; padding: 12px 15px; color: var(--muted); font-size: 12px; box-shadow: 0 6px 18px rgba(22,54,83,.09); }
.mini-score { position: relative; z-index: 1; margin: 38px auto 0; width: 115px; height: 115px; border-radius: 50%; background: conic-gradient(var(--gold) 0 65%, rgba(255,255,255,.7) 65% 100%); display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 13px #dcecef; }
.mini-score strong { color: var(--navy); font-family: Georgia, serif; font-size: 42px; line-height: .85; }
.mini-score small { display: block; color: var(--muted); font-size: 9px; margin-top: 7px; }
.store-door { position: absolute; right: 33px; width: 78px; top: 160px; bottom: 34px; border: 8px solid var(--navy); background: var(--gold); }
.store-door::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; right: 8px; top: 50%; background: var(--navy); }
.floating-card { position: absolute; z-index: 5; min-width: 198px; padding: 15px 18px; border-radius: 14px; display: grid; grid-template-columns: 56px 1fr; align-items: center; background: white; box-shadow: 0 15px 38px rgba(22,54,83,.17); }
.floating-card b { color: var(--orange); font-size: 15px; }
.floating-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.card-one { top: 155px; left: -18px; }
.card-two { right: -10px; bottom: 78px; }
.card-two b { color: var(--gold); }
.map-pin { position: absolute; z-index: 4; right: 38px; top: 125px; width: 50px; height: 62px; display: grid; place-items: center; color: white; font-size: 15px; background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 14px 25px rgba(227,82,46,.3); }
.map-pin::first-letter { transform: rotate(45deg); }

.diagnostic-wrap { width: min(1200px, 92vw); margin: 48px auto 90px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.progress-panel { position: sticky; top: 20px; padding: 25px 22px; border-radius: 18px; color: white; background: var(--navy); box-shadow: 0 18px 46px rgba(22,54,83,.15); }
.progress-heading { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.progress-heading b { color: var(--gold); }
.progress-track { height: 5px; margin: 12px 0 25px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .35s ease; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.step-list li { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 700; }
.step-list li > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); font-size: 10px; }
.step-list li.active { color: white; }
.step-list li.active > span { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.step-list li.done { color: rgba(255,255,255,.85); }
.step-list li.done > span { color: white; background: #2e9b74; border-color: #2e9b74; }
.privacy-note { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.58); font-size: 10px; line-height: 1.6; }
.privacy-note b { color: rgba(255,255,255,.85); }

.wizard-card { border-radius: 20px; background: white; border: 1px solid rgba(22,54,83,.09); box-shadow: 0 20px 55px rgba(22,54,83,.10); overflow: hidden; }
.step-content { min-height: 610px; padding: clamp(28px, 5vw, 58px); }
.step-content h2 { max-width: 720px; margin: 10px 0 9px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; }
.intro { max-width: 730px; margin: 0 0 35px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.form-grid { display: grid; gap: 22px; }
.two-columns { grid-template-columns: 1fr 1fr; }
label { position: relative; display: grid; gap: 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
label > span { color: #91a0ad; font-weight: 500; }
input, select { width: 100%; height: 48px; border: 1px solid #d6e0e6; border-radius: 9px; outline: 0; padding: 0 14px; color: var(--ink); background: #fbfcfd; transition: border .18s, box-shadow .18s; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(234,161,50,.12); }
.full-label { margin-top: 26px; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.segmented button { min-height: 54px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.segmented button.active { color: var(--navy); border-color: var(--gold); background: #fff9ed; box-shadow: inset 0 -3px var(--gold); }
.question-block { display: grid; grid-template-columns: minmax(230px, 1.2fr) 1fr; gap: 25px; align-items: center; padding: 22px 0; border-top: 1px solid #e9eef1; }
.question-block h3 { margin: 0; color: var(--navy); font-size: 14px; line-height: 1.45; }
.question-block p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.choice-row { display: flex; gap: 7px; justify-content: flex-end; }
.choice { min-height: 42px; flex: 1; display: flex; gap: 7px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--muted); background: white; cursor: pointer; font-size: 10px; font-weight: 800; line-height: 1.2; }
.choice:hover { border-color: #9eb0bc; }
.choice.selected { color: var(--navy); border-color: var(--gold); background: #fff9ed; }
.choice-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid #9babb6; border-radius: 50%; }
.choice.selected .choice-dot { border: 2px solid white; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.search-box { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; padding: 14px 15px; border: 1px solid #d8e1e7; border-radius: 10px; background: #fbfcfd; box-shadow: 0 5px 16px rgba(22,54,83,.06); }
.search-box > span { font-size: 20px; font-weight: 900; color: #4285f4; }
.search-box b { font-size: 13px; }
.search-box a { padding: 9px 12px; border-radius: 7px; color: white; background: var(--navy); text-decoration: none; font-size: 10px; font-weight: 800; }
.micro-note { margin: 8px 0 25px; color: #81919d; font-size: 10px; line-height: 1.5; }
.competitor-input { margin-bottom: 28px; }
.insight-box { margin-top: 24px; padding: 17px 20px; border-left: 4px solid var(--orange); border-radius: 0 9px 9px 0; background: #fff6f2; color: #6b524b; font-size: 12px; line-height: 1.6; }
.insight-box b { color: var(--orange-dark); }
.number-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.number-grid label { min-height: 127px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.number-grid label small { color: var(--muted); font-size: 9px; line-height: 1.35; font-weight: 500; }
.number-grid input { height: 42px; padding-left: 13px; background: white; font-size: 18px; font-weight: 800; }
.number-grid .input-prefix, .number-grid .input-suffix { position: absolute; top: 56px; z-index: 2; color: var(--muted); font-weight: 800; }
.number-grid .input-prefix { left: 27px; }
.number-grid .input-prefix + small { margin-top: 0; }
.number-grid label:has(.input-prefix) input { padding-left: 35px; }
.number-grid .input-suffix { right: 28px; }
.scenario-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 26px; }
.scenario { padding: 15px; border-radius: 11px; background: var(--soft); display: grid; grid-template-columns: 1fr auto; }
.scenario span { font-size: 10px; font-weight: 800; color: var(--muted); }
.scenario > b { grid-row: span 2; font-size: 24px; color: var(--navy); }
.scenario small, .scenario em { color: var(--muted); font-size: 8px; font-style: normal; }
.scenario strong { margin-top: 10px; color: var(--navy); font-size: 15px; }
.scenario.blue { border-top: 4px solid var(--navy); }
.scenario.orange { border-top: 4px solid var(--orange); }
.scenario.gold { border-top: 4px solid var(--gold); }

.wizard-footer { min-height: 78px; padding: 14px clamp(28px, 5vw, 58px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e5ebef; background: #fbfcfd; }
.wizard-footer > div { display: flex; align-items: center; gap: 15px; }
.back-button, .text-button { border: 0; padding: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; font-size: 12px; }
.required-note { color: #a17063; font-size: 9px; }

.result-content { padding-bottom: 42px; }
.result-hero { display: grid; grid-template-columns: 155px 1fr; align-items: center; gap: 30px; margin-top: 22px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.result-hero h2 { margin-top: 0; font-size: 34px; }
.result-hero p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.score-ring { --score: 180deg; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(var(--orange) var(--score), #e8eef1 0); display: grid; place-items: center; }
.score-ring::before { content: ""; width: 112px; height: 112px; position: absolute; border-radius: 50%; background: white; }
.score-ring > div { position: relative; z-index: 1; }
.score-ring strong { color: var(--navy); font-family: Georgia, serif; font-size: 48px; }
.score-ring span { color: var(--muted); font-size: 12px; }
.score-bars { display: grid; gap: 13px; margin: 30px 0; }
.score-row { display: grid; grid-template-columns: 170px 1fr 35px; gap: 14px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.score-row > div { height: 8px; overflow: hidden; border-radius: 99px; background: #e8eef1; }
.score-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--orange)); }
.score-row b { color: var(--navy); text-align: right; }
.priority-section h3 { margin: 0 0 13px; color: var(--navy); font-family: Georgia, serif; font-size: 22px; }
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.priority-grid article { min-height: 130px; padding: 17px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.priority-grid article > span { color: var(--orange); font-family: Georgia, serif; font-size: 22px; }
.priority-grid small { margin: 7px 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.priority-grid b { color: var(--navy); font-size: 12px; line-height: 1.45; }
.result-economics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 22px; overflow: hidden; border-radius: 11px; background: #d8e1e7; }
.result-economics > div { padding: 16px; background: var(--navy); }
.result-economics span { display: block; min-height: 26px; color: rgba(255,255,255,.6); font-size: 9px; line-height: 1.35; }
.result-economics b { color: white; font-size: 15px; }
.disclaimer { margin-top: 12px; color: #8a99a4; font-size: 9px; line-height: 1.5; }
.evaluation-cta { margin-top: 24px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border-radius: 16px; color: white; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); box-shadow: 0 20px 45px rgba(15,41,65,.16); }
.evaluation-cta span { color: var(--gold); font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.evaluation-cta h3 { margin: 7px 0; color: white; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; line-height: 1.2; }
.evaluation-cta p { max-width: 610px; margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.55; }
.result-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.secondary-button { min-height: 44px; border: 1px solid var(--navy); border-radius: 9px; padding: 12px 17px; color: var(--navy); text-decoration: none; background: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.secondary-button:hover { color: white; background: var(--navy); }

footer { min-height: 75px; padding: 20px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.62); background: var(--navy-deep); font-size: 11px; }
footer span { color: white; font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
footer p { margin: 0; }
footer nav { display: flex; gap: 16px; }
footer a { color: rgba(255,255,255,.78); font-weight: 700; text-underline-offset: 3px; }
footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 15px; padding-top: 45px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-button { margin: 0 auto; }
  .trust-row { justify-content: center; }
  .hero-visual { width: min(530px, 95%); margin: 0 auto; }
  .diagnostic-wrap { grid-template-columns: 1fr; margin-top: 25px; }
  .progress-panel { position: static; padding: 16px 18px; }
  .step-list { grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .step-list li { display: block; text-align: center; font-size: 0; }
  .step-list li > span { margin: 0 auto; }
  .privacy-note { display: none; }
  .question-block { grid-template-columns: 1fr; gap: 12px; }
  .choice-row { justify-content: stretch; }
}

@media (max-width: 640px) {
  .topbar { min-height: 72px; padding: 6px 18px; }
  .brand-crop { width: 155px; height: 56px; }
  .brand-logo { width: 155px; height: 56px; transform: scale(1.78); }
  .topbar-note { font-size: 0; }
  .hero { min-height: auto; width: 90vw; padding: 45px 0; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .trust-row { gap: 10px 16px; }
  .hero-visual { min-height: 400px; transform: scale(.92); transform-origin: top center; margin-bottom: -35px; }
  .store-card { inset: 55px 5px 25px; }
  .awning { left: -8px; right: -8px; }
  .card-one { left: -20px; }
  .card-two { right: -18px; }
  .diagnostic-wrap { width: 94vw; }
  .step-content { min-height: 0; padding: 30px 22px; }
  .step-content h2 { font-size: 32px; }
  .two-columns, .number-grid, .scenario-preview, .priority-grid, .result-economics { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr 1fr; }
  .question-block { padding: 18px 0; }
  .choice-row { flex-direction: column; }
  .choice { justify-content: flex-start; padding-left: 15px; }
  .search-box { grid-template-columns: 25px 1fr; }
  .search-box a { grid-column: 1 / -1; text-align: center; }
  .wizard-footer { padding: 13px 20px; }
  .wizard-footer > div { gap: 8px; }
  .required-note { display: none; }
  .result-hero { grid-template-columns: 1fr; text-align: center; }
  .score-ring { margin: 0 auto; }
  .score-row { grid-template-columns: 115px 1fr 28px; gap: 8px; }
  .result-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .evaluation-cta { grid-template-columns: 1fr; text-align: center; }
  .evaluation-cta .primary-button { width: 100%; }
  footer { text-align: center; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
