:root {
    color-scheme: light;
    --ink: #102f58;
    --muted: #61758f;
    --blue: #2442bd;
    --border: #dce3f0;
    --gold: #d7a52b;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.6 "Segoe UI", Arial, sans-serif; }
a { color: var(--blue); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c49422; outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 5; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }
.journey-layout { display: grid; grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); min-height: 100vh; }
.journey-intro { display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 65px); background: linear-gradient(145deg, #dbe4ff, #ecf0ff 75%, #f4f6ff); }
.journey-brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.journey-brand img { flex-shrink: 0; border-radius: 50%; }
.journey-brand span { display: grid; }
.journey-brand strong { font: 700 29px/1.1 Georgia, serif; letter-spacing: -1px; }
.journey-brand small { margin-top: 4px; font-size: 9px; letter-spacing: 1.5px; font-weight: 700; }
.intro-copy { margin-top: clamp(30px, 7vh, 70px); max-width: 480px; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: #6b7188; }
.intro-copy h1 { font-size: clamp(25px, 2.4vw, 36px); line-height: 1.25; margin: 12px 0 16px; letter-spacing: -.6px; }
.intro-copy > p { font-size: 16px; line-height: 1.9; color: #365477; }
.intro-copy .intro-note { color: #5b6f8e; font-size: 12px; line-height: 1.7; }
.intro-back { margin-top: auto; padding-top: 24px; font-size: 12px; color: #3e5279; }
.journey-art { position: relative; display: grid; place-items: center; min-height: 290px; margin: 22px 0; }
.art-orbit { position: absolute; width: 255px; height: 255px; border: 1px solid #b7c7ed; border-radius: 50%; }
.art-orbit::after { position: absolute; content: ""; inset: 20px; border: 1px dashed #b7c7ed; border-radius: inherit; }
.art-panel { position: relative; width: 205px; padding: 22px; border: 1px solid #fff; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 24px 50px #18366c18; transform: rotate(-5deg); }
.art-icon { display: block; font-size: 32px; }
.art-line { display: block; width: 30px; height: 3px; background: var(--gold); margin: 12px 0; }
.art-panel strong { font-size: 17px; line-height: 1.4; }
.art-bars { display: flex; gap: 7px; align-items: flex-end; height: 45px; margin-top: 13px; }
.art-bars i { flex: 1; height: 25%; background: #b5c5f2; border-radius: 4px 4px 0 0; }
.art-bars i:nth-child(2) { height: 40%; }
.art-bars i:nth-child(3) { height: 60%; background: #6d88d4; }
.art-bars i:nth-child(4) { height: 80%; background: #4464bc; }
.art-bars i:nth-child(5) { height: 100%; background: var(--gold); }
.art-coin { position: absolute; display: grid; place-items: center; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: #fff5d8; border: 5px solid #e9c365; color: #9c6c08; font-size: 12px; font-weight: 800; box-shadow: 0 9px 16px #a3791118; }
.coin-one { left: 6%; bottom: 65px; transform: rotate(-14deg); }
.coin-two { right: 5%; top: 45px; width: 40px; height: 40px; font-size: 21px; }
.art-caption { position: absolute; bottom: -10px; color: #62779e; font-size: 9px; letter-spacing: 1.4px; }
.journey-main { padding: 36px clamp(24px, 7vw, 115px) 50px; }
.form-shell { width: 100%; max-width: 620px; margin: 0 auto; }
.journey-topline { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; font-weight: 700; color: var(--muted); }
.journey-status { display: flex; align-items: center; justify-content: space-between; margin-top: 35px; min-height: 38px; font-size: 13px; color: var(--muted); }
.back-button { width: 38px; height: 38px; padding: 0; background: #edf0ff; border: 0; border-radius: 7px; color: var(--blue); font-size: 22px; }
progress { width: 100%; height: 4px; display: block; appearance: none; border: 0; margin: 18px 0 32px; background: #edf0f7; color: var(--blue); border-radius: 8px; }
progress::-webkit-progress-bar { background: #edf0f7; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 8px; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.question-step { margin-bottom: 32px; }
.question-step > legend { width: 100%; color: var(--blue); font-size: 25px; line-height: 1.35; letter-spacing: -.4px; padding: 0; }
.question-step > legend::after { content: ""; display: block; width: 42px; height: 3px; background: var(--gold); margin-top: 12px; }
.step-description { color: var(--muted); font-size: 13px; margin: 17px 0 27px; }
.profile-field { margin-top: 22px; }
.profile-field > label, .choice-fieldset > legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #3c5578; }
.profile-field > input { width: 100%; min-height: 49px; border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; background: #fff; color: var(--ink); }
.profile-field > input:focus { border-color: var(--blue); }
.field-hint { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.field-hint:empty { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-option { position: relative; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--blue); }
.choice-option input { order: 2; width: 17px; height: 17px; flex-shrink: 0; margin-left: auto; accent-color: var(--blue); }
.choice-option:has(input:checked) { background: #f6f8ff; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 600; }
.choice-option:has(input:focus-visible) { outline: 3px solid #c49422; outline-offset: 3px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 14px 22px; border: 1px solid var(--blue); border-radius: 9px; background: var(--blue); color: white; text-decoration: none; font-weight: 650; font-size: 15px; text-align: center; }
.primary-button:hover { background: #1d369b; }
.journey-actions .primary-button { width: 100%; }
.form-note { font-size: 11px; text-align: center; color: #6a7c96; line-height: 1.7; margin-top: 17px; }
.error-summary { padding: 15px 18px; margin: 20px 0; background: #fff5f5; border: 1px solid #d79c9c; border-radius: 10px; font-size: 13px; }
.error-summary ul { padding-left: 20px; margin-bottom: 0; }
.error-summary a, .field-error { color: #a32323; }
.field-error { font-size: 12px; }
.has-error > input { border-color: #a32323; }
.offers-header { max-width: 1240px; margin: auto; min-height: 82px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.offers-header .journey-brand strong { font-size: 24px; }
.text-link { font-size: 13px; font-weight: 600; }
.offers-toolbar { background: #edf1fc; border-block: 1px solid #dce3f2; }
.toolbar-inner { max-width: 1240px; padding: 20px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.offer-summary { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 2px 0 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.outline-button { min-height: 42px; padding: 8px 15px; border: 1px solid #7a8acc; border-radius: 8px; background: #fff; color: var(--blue); white-space: nowrap; font-size: 13px; }
.offers-content { min-height: calc(100vh - 180px); padding: 32px max(24px, calc((100% - 1192px) / 2)) 55px; background: #f5f7fc; }
.offer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.offer-heading h1 { font-size: 26px; letter-spacing: -.5px; margin: 6px 0; }
.offer-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.offer-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.offer-controls select { padding: 8px; border: 1px solid var(--border); border-radius: 6px; color: #677795; }
.budget-filter { display: flex; gap: 6px; align-items: center; }
.controls-note { color: var(--muted); font-size: 11px; text-align: right; margin: 15px 0 24px; }
.comparison-columns { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border: 1px solid var(--border); border-radius: 10px 10px 0 0; background: #fff; color: var(--muted); font-size: 11px; }
.offers-empty { text-align: center; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 14px 14px; padding: 40px 24px; background: #fff; box-shadow: 0 5px 18px #17356b05; }
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 17px; place-items: center; font-size: 35px; color: var(--blue); border-radius: 18px; background: #edf1ff; }
.status-pill { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; border-radius: 30px; padding: 4px 10px; background: #fff5da; color: #835e0b; }
.offers-empty h2 { font-size: 25px; margin: 12px 0; }
.offers-empty p { max-width: 650px; margin: 12px auto; font-size: 13px; color: var(--muted); }
.offers-empty .primary-button { margin-top: 14px; min-height: 46px; font-size: 13px; }
.comparison-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; font-size: 12px; color: var(--muted); }
.comparison-notes p { margin: 0; padding: 16px; border-radius: 10px; border: 1px solid var(--border); }
.comparison-notes strong { color: var(--ink); }
.profile-review { border: 1px solid var(--border); border-radius: 10px; padding: 17px 20px; background: #fff; font-size: 13px; }
.profile-review summary { cursor: pointer; font-weight: 650; }
.profile-review dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-review dd { font-size: 13px; }
.offers-disclaimer { font-size: 11px; color: var(--muted); margin: 24px 0 0; }

@media (min-width: 1000px) {
    .journey-intro { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
}
@media (max-width: 900px) {
    .journey-layout { grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); }
    .journey-intro { padding: 24px; }
    .journey-main { padding: 30px; }
    .journey-art { transform: scale(.85); margin-inline: -20px; }
    .intro-copy > p { font-size: 14px; }
    .journey-brand strong { font-size: 24px; }
    .journey-brand img { width: 48px; height: 48px; }
    .journey-brand small { font-size: 8px; }
}
@media (max-width: 650px) {
    .journey-layout { display: block; }
    .journey-intro { padding: 16px 22px 20px; }
    .intro-copy { margin-top: 18px; }
    .intro-copy h1 { font-size: 24px; margin: 8px 0; }
    .intro-copy > p { font-size: 13px; margin: 8px 0; line-height: 1.6; }
    .journey-art, .intro-note, .intro-back { display: none; }
    .journey-main { padding: 22px 22px 40px; }
    .journey-status { margin-top: 20px; }
    .question-step > legend { font-size: 23px; }
    .choice-grid { gap: 9px; }
    .choice-option { padding: 11px; font-size: 13px; }
    .offers-header { padding: 12px 18px; min-height: 75px; }
    .toolbar-inner { padding: 18px; align-items: flex-start; flex-direction: column; gap: 14px; }
    .offer-summary { gap: 12px 20px; }
    .offer-summary > div { flex: 1 1 40%; }
    .offer-summary dd { font-size: 13px; }
    .offers-content { padding: 24px 16px 35px; }
    .offer-heading h1 { font-size: 24px; }
    .controls-note { text-align: left; }
    .comparison-columns { display: none; }
    .offers-empty { border-top: 1px solid var(--border); border-radius: 14px; padding: 30px 18px; }
    .comparison-notes, .profile-review dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
