:root {
    --navy: #25357a;
    --navy-dark: #1b2860;
    --purple: #6657d9;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #e5e5ea;
    --page: #fafafa;
    --card: #ffffff;
    --soft: #f5f6fb;
    --danger: #d92d20;
    --danger-dark: #b42318;
    --success: #067647;
    --shadow: 0 18px 55px rgba(20, 28, 60, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--navy);
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.panel {
    width: min(100%, 760px);
    background: var(--card);
    border: 1px solid rgba(37, 53, 122, 0.1);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.brand-row,
.account-card {
    display: flex;
    align-items: center;
}

.brand-row {
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.brand-logo {
    width: 108px;
    height: auto;
    display: block;
}

.back-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.intro {
    padding: 28px 0 18px;
}

.eyebrow {
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
    margin-bottom: 14px;
}

h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
}

p {
    margin-bottom: 1rem;
}

.lede {
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
}

.section {
    display: grid;
    gap: 18px;
}

.hidden {
    display: none !important;
}

.button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    padding: 0 18px;
    transition: transform 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.primary {
    background: var(--navy);
    color: #fff;
}

.primary:hover:not(:disabled),
.secondary:hover:not(:disabled) {
    background: var(--navy-dark);
    color: #fff;
}

.secondary {
    background: var(--soft);
    color: var(--navy);
}

.danger {
    width: 100%;
    background: var(--danger);
    color: #fff;
}

.danger:hover:not(:disabled) {
    background: var(--danger-dark);
}

.fine-print,
.label,
.uid,
.summary-label,
.status,
.support-note {
    color: var(--muted);
    font-size: 14px;
}

.account-card {
    justify-content: space-between;
    gap: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.account-card strong,
.account-card span {
    display: block;
}

.uid {
    overflow-wrap: anywhere;
}

.data-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.summary-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.summary-value,
.summary-label {
    display: block;
}

.summary-value {
    color: var(--navy);
    font-size: 18px;
    font-weight: 850;
}

.danger-zone {
    border: 1px solid rgba(217, 45, 32, 0.28);
    border-radius: 8px;
    background: #fff7f6;
    padding: 18px;
}

.danger-zone p {
    color: #6b2c28;
}

.check-row,
.confirm-row {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    margin: 14px 0;
}

.check-row {
    grid-template-columns: 20px 1fr;
    align-items: center;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

.confirm-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 46px;
    padding: 0 12px;
}

.confirm-row input:focus {
    border-color: var(--purple);
    outline: 3px solid rgba(102, 87, 217, 0.16);
}

.status {
    min-height: 22px;
    margin-top: 18px;
}

.status.error {
    color: var(--danger);
    font-weight: 800;
}

.status.success {
    color: var(--success);
    font-weight: 800;
}

.progress {
    width: 100%;
    height: 10px;
    accent-color: var(--navy);
}

.complete {
    margin-top: 18px;
    border: 1px solid rgba(6, 118, 71, 0.28);
    border-radius: 8px;
    background: #f2fbf6;
    color: #064e3b;
    padding: 18px;
}

.complete p {
    margin-bottom: 0;
}

.support-note {
    border-top: 1px solid var(--line);
    margin: 24px 0 0;
    padding-top: 18px;
}

@media (max-width: 620px) {
    .shell {
        align-items: start;
        padding: 0;
    }

    .panel {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        padding: 24px 18px;
    }

    .brand-row,
    .account-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .data-summary {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }
}
