@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --maroon: #6E1B2C;
    --maroon-dark: #4A1220;
    --maroon-deep: #3A0E18;
    --maroon-mid: #8C2740;
    --cream: #F6E7C1;
    --rose: #F8EEEF;
    --bg: #F3F0F1;
    --stage: #E6DFE1;
    --ink: #1C1214;
    --muted: #6D6166;
    --line: #E7DDE0;
    --ok: #059669;
    --danger: #9F1239;
    --shadow: 0 18px 50px rgba(58, 14, 24, 0.16);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--stage);
    -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

.stage {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
}

.shell {
    width: min(480px, 100%);
    min-height: 100dvh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    position: relative;
}

.hero {
    background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 58%, #7A2438 100%);
    color: #fff;
    padding: calc(18px + env(safe-area-inset-top)) 18px 16px;
}

.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.brand-mark {
    width: 86px;
    background: transparent;
    flex-shrink: 0;
    line-height: 0;
}

.brand-mark img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-copy {
    min-width: 0;
    text-align: center;
}

.kicker {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream);
}

.hero h1 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.steps {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 16px 0 0;
    padding: 0 4px;
}

.step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    z-index: 1;
}

.step.is-current .dot {
    background: var(--cream);
    color: var(--maroon-dark);
}

.step.is-done .dot {
    background: var(--ok);
    color: #fff;
}

.step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.62);
}

.step.is-current .step-label,
.step.is-done .step-label { color: #fff; }

.bar {
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.step.is-done .bar { background: var(--ok); }

.content {
    flex: 1;
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(74, 18, 32, 0.06);
    overflow: hidden;
}

.card-accent { height: 8px; background: var(--maroon); }

.card-body { padding: 18px; }

.card h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: var(--maroon-dark);
}

.lede, .muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.lede { margin: 8px 0 0; }

.meta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.pin {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--maroon-mid);
}

.choice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(74, 18, 32, 0.06);
}

a.choice:hover { border-color: #E7C9D0; }

.choice.is-closed {
    opacity: 0.62;
    box-shadow: none;
    background: #F7F4F5;
}

.choice-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--rose);
    color: var(--maroon);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.choice.is-closed .choice-icon {
    background: #EFEAEB;
    color: #8A8084;
}

.choice-body { flex: 1; min-width: 0; }

.choice-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ok);
    margin-bottom: 2px;
}

.choice.is-closed .choice-kicker { color: #8A8084; }

.choice strong {
    display: block;
    color: var(--maroon-dark);
    font-size: 14px;
    line-height: 1.35;
}

.chevron {
    color: #B7A8AD;
    font-size: 22px;
    line-height: 1;
}

.prose {
    margin: 12px 0 0;
    color: #3F3337;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-line;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.label {
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon-dark);
}

.control {
    width: 100%;
    height: 48px;
    border: 1px solid #E4DADF;
    background: #fff;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--ink);
    outline: none;
}

textarea.control {
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}

.control:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(110, 27, 44, 0.12);
}

.options { display: flex; flex-direction: column; gap: 8px; }

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
}

.option input {
    accent-color: var(--maroon);
    width: 18px;
    height: 18px;
    margin: 0;
}

.option span { font-size: 14px; font-weight: 600; color: #3C2C31; }

.option:has(input:checked) {
    border-color: var(--maroon);
    background: var(--rose);
}

.option:has(input:checked) span { color: var(--maroon-dark); }

.q-index {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon-mid);
}

.alert {
    background: #FFF1F2;
    color: var(--danger);
    border: 1px solid #FECDD3;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
}

.dock {
    position: sticky;
    bottom: 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(243, 240, 241, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(110, 27, 44, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.btn-primary {
    background: var(--maroon);
    color: #fff;
    box-shadow: 0 10px 24px rgba(110, 27, 44, 0.28);
}

.btn-primary:hover { background: var(--maroon-dark); }

.btn-ghost {
    min-height: 36px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    box-shadow: none;
}

.done {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 12px;
}

.done-badge {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: #D1FAE5;
    color: var(--ok);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.done h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.04em;
    color: var(--maroon-dark);
}

.done p { margin: 8px 0 0; }

.summary {
    width: 100%;
    text-align: left;
    margin-top: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.summary-row span { color: var(--muted); }
.summary-row strong { color: var(--maroon-dark); text-align: right; }

.legal {
    margin: 0;
    padding: 0 16px 18px;
    text-align: center;
    color: #A39498;
    font-size: 11px;
    font-weight: 700;
}

.legal a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 520px) {
    body { background: var(--bg); }
    .shell { box-shadow: none; }
}
