:root {
    --door-bg: #071426;
    --door-surface: #10233d;
    --door-surface-2: #172f4e;
    --door-text: #f7f9ff;
    --door-muted: #aebbd1;
    --door-orange: #ff7a1a;
    --door-yellow: #ffc928;
    --door-blue: #41c6ff;
    --door-green: #63e88c;
    --door-danger: #ff7f78;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(65, 198, 255, .2), transparent 34rem),
        linear-gradient(180deg, #08182c 0%, var(--door-bg) 100%);
    color: var(--door-text);
    font-family: "Barlow", sans-serif;
}

button, input, select { font: inherit; }

.door-shell {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding: env(safe-area-inset-top) 16px calc(32px + env(safe-area-inset-bottom));
}

.door-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 2px 20px;
}

.door-header > div { display: grid; gap: 2px; }
.door-header strong { font-size: .95rem; }
.door-header span { color: var(--door-muted); font-size: .82rem; }

.door-brand {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--door-yellow), var(--door-orange));
    color: #281000;
    font-family: "Teko", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: .8;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(255, 122, 26, .24);
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font: 600 clamp(2.35rem, 11vw, 4rem)/.88 "Teko", sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
h2 { margin-bottom: 16px; font-size: 1.25rem; }

.door-kicker {
    margin-bottom: 7px;
    color: var(--door-yellow);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.door-intro { padding: 22px 4px 18px; }
.door-intro p, .door-lead { color: var(--door-muted); font-size: 1.04rem; line-height: 1.5; }

.door-choice-grid { display: grid; gap: 14px; }

.door-choice {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 3px 15px;
    min-height: 164px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(23, 47, 78, .98), rgba(13, 32, 56, .98));
    color: var(--door-text);
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.door-choice-icon { grid-row: span 3; font-size: 2rem; }
.door-choice strong { align-self: end; font-size: 1.32rem; line-height: 1.1; }
.door-choice small { color: var(--door-muted); font-size: .93rem; line-height: 1.35; }
.door-choice b { align-self: end; margin-top: 12px; color: var(--door-blue); }
.door-choice.passes b { color: var(--door-green); }

.door-lookup { display: block; padding: 24px 4px; color: var(--door-muted); text-align: center; }

.door-card {
    padding: 24px 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(16,35,61,.98), rgba(10,27,48,.98));
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

.door-card + .door-card { margin-top: 16px; }
.door-back { display: inline-block; margin-bottom: 24px; color: var(--door-muted); text-decoration: none; }
.door-closed { margin-top: 15vh; text-align: center; }

.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door-grid label, .door-section label { display: grid; gap: 7px; color: #eaf0fb; font-size: .9rem; font-weight: 700; }
.door-grid label.wide { grid-column: 1 / -1; }
label small { color: var(--door-muted); font-weight: 500; }

input, select {
    width: 100%;
    min-height: 52px;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px;
    outline: none;
    background: #091a30;
    color: var(--door-text);
}

input:focus, select:focus { border-color: var(--door-blue); box-shadow: 0 0 0 3px rgba(65,198,255,.16); }

.door-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.door-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.door-section-heading > div { display: grid; gap: 3px; }
.door-section-heading span, .door-section h2 { font-weight: 800; }
.door-section-heading small, .door-loader { color: var(--door-muted); font-size: .78rem; }
.door-loader { text-align: right; }

.door-division-results { display: grid; gap: 18px; }
.door-division-group { display: grid; gap: 9px; }
.door-division-group h3 { margin: 0; color: var(--door-blue); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

.door-division {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}

.door-division:has(input:checked) { border-color: var(--door-green); background: rgba(99,232,140,.08); }
.door-division input { width: 21px; min-height: 21px; margin: 0; accent-color: var(--door-green); }
.door-division span { min-width: 0; }
.door-division strong { display: block; font-size: .96rem; }
.door-division small { display: block; margin-top: 3px; color: var(--door-muted); font-size: .76rem; line-height: 1.35; }
.door-division b { color: var(--door-yellow); font-size: .78rem; white-space: nowrap; }

.door-check { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; color: var(--door-muted); font-size: .86rem; line-height: 1.4; }
.door-check input { flex: 0 0 22px; width: 22px; min-height: 22px; margin: 1px 0 0; accent-color: var(--door-green); }

.door-submit, .door-button {
    display: block;
    width: 100%;
    min-height: 56px;
    margin-top: 24px;
    padding: 14px 20px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--door-yellow), var(--door-orange));
    color: #291100;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.door-alert { margin: 16px 0; padding: 14px; border-radius: 13px; line-height: 1.45; }
.door-alert-error { border: 1px solid rgba(255,127,120,.5); background: rgba(255,127,120,.1); color: #ffd6d3; }

.door-review { padding-bottom: 20px; }
.door-lines, .door-totals { display: grid; gap: 12px; }
.door-line, .door-totals > div, .door-total { display: flex; justify-content: space-between; gap: 18px; }
.door-line { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.door-line small { display: block; margin-top: 3px; color: var(--door-muted); }
.door-line b { white-space: nowrap; }
.door-totals { margin-top: 16px; }
.door-totals > div { color: var(--door-muted); }
.door-totals .grand { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); color: var(--door-text); font-size: 1.15rem; }
.door-total { align-items: center; margin: 22px 0; padding: 18px; border-radius: 16px; background: var(--door-surface-2); }
.door-total strong { color: var(--door-yellow); font-size: 1.45rem; }
.door-footnote { margin: 20px 0 0; color: var(--door-muted); font-size: .8rem; line-height: 1.45; }
.paypal-note { color: var(--door-muted); font-size: .85rem; }
.paypal-note strong { color: var(--door-text); }
.muted { color: var(--door-muted); }
details { color: var(--door-muted); }
.button { display: inline-block; padding: 12px 16px; border: 0; border-radius: 11px; background: var(--door-surface-2); color: var(--door-text); text-decoration: none; }

@media (min-width: 650px) {
    .door-shell { padding-left: 24px; padding-right: 24px; }
    .door-choice-grid { grid-template-columns: 1fr 1fr; }
    .door-card { padding: 32px; }
}

@media (max-width: 430px) {
    .door-grid { grid-template-columns: 1fr; }
    .door-grid label.wide { grid-column: auto; }
    .door-card { padding: 22px 16px; }
    .door-division { grid-template-columns: 22px 1fr; }
    .door-division b { grid-column: 2; }
}

