.brand-page {
    --danger: #e3a07c;
    --danger-line: rgba(227, 160, 124, 0.5);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

.auth-aside {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 140px clamp(32px, 5vw, 72px) clamp(48px, 7vh, 80px);
    padding-left: max(clamp(32px, 5vw, 72px), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    border-right: 1px solid var(--line);
    background: var(--ink-deep);
}

.auth-aside img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 40%;
    filter: saturate(0.6) contrast(1.05) brightness(0.5) sepia(0.2);
}

.auth-aside::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 13, 0.42);
}

.auth-aside-copy {
    position: relative;
    z-index: 1;
    max-width: 30em;
}

.auth-aside h2 {
    margin: 22px 0 18px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    line-height: 1.25;
    font-feature-settings: "halt";
}

.auth-aside p {
    margin: 0;
    color: var(--paper);
    opacity: 0.86;
    font-size: 1.02rem;
}

.auth-aside-note {
    margin-top: 36px !important;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
    font-size: 0.88rem !important;
    color: var(--muted);
    opacity: 1 !important;
    letter-spacing: 0.06em;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px var(--gutter) 96px;
}

.auth-panel {
    width: 100%;
    max-width: 440px;
}

.auth-head {
    margin-bottom: 36px;
}

.auth-head h1 {
    margin: 18px 0 10px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.auth-head p {
    margin: 0;
    color: var(--muted);
}

.auth-mobile-line {
    display: none;
}

.promo-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -16px 0 24px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--paper);
    font-size: 0.9rem;
    text-wrap: balance;
}

.promo-note::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.form-alert {
    margin: 0 0 28px;
    padding: 14px 16px;
    border: 1px solid var(--danger-line);
    border-radius: 2px;
    color: #efc6ae;
    font-size: 0.95rem;
    line-height: 1.7;
}

.form-alert.is-success {
    border-color: rgba(201, 164, 107, 0.55);
    color: var(--paper);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: transparent;
    color: var(--paper);
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-google:hover {
    border-color: var(--paper);
    background: rgba(238, 229, 218, 0.04);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.or-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}

.or-line::before,
.or-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-strong);
}

.field {
    position: relative;
    margin: 0 0 26px;
}

.field-label,
.field legend {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.95rem;
    color: var(--paper);
    letter-spacing: 0.04em;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.field-row a,
.text-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 4px;
    transition: color 0.3s var(--ease);
}

.field-row a:hover,
.text-btn:hover {
    color: var(--paper);
}

.brand-page fieldset.field {
    min-width: 0;
    border: 0;
    padding: 0;
}

.input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(238, 229, 218, 0.3);
    border-radius: 2px;
    background: rgba(238, 229, 218, 0.05);
    color: var(--paper);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.input:focus,
.input:focus-visible {
    outline: none;
    border-color: var(--gold);
    background: rgba(238, 229, 218, 0.07);
    box-shadow: 0 0 0 1px var(--gold);
}

.input::placeholder {
    color: var(--faint);
    opacity: 1;
}

.input[aria-invalid="true"] {
    border-color: var(--danger);
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--paper);
    -webkit-box-shadow: 0 0 0 100px #231d1e inset;
    caret-color: var(--paper);
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9a46b' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

select.input option {
    background: var(--ink-raised);
    color: var(--paper);
}

.field-error {
    display: block;
    margin-top: 8px;
    color: var(--danger);
    font-size: 0.88rem;
    line-height: 1.6;
}

.field-error:empty {
    display: none;
}

.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-top: 0;
    background: var(--ink-raised);
}

.email-suggestions.show {
    display: block;
}

.email-suggestion-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    color: var(--paper);
    font-size: 0.95rem;
    cursor: pointer;
}

.email-suggestion-item:hover,
.email-suggestion-item.active {
    background: var(--gold-soft);
}

.birth-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
}

.choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.choice label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 76px;
    height: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.choice label::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 20px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--muted);
    border-radius: 50%;
}

.choice label:hover {
    border-color: var(--muted);
}

.choice .title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--paper);
}

.choice .desc {
    font-size: 0.85rem;
    color: var(--muted);
}

.choice input:checked + label {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.choice input:checked + label::before {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: inset 0 0 0 3px var(--ink);
}

.choice input:focus-visible + label {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.choice input[aria-invalid="true"] + label {
    border-color: var(--danger-line);
}

.captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.captcha-row .captcha-input {
    flex: 1;
    min-width: 0;
}

.captcha-img {
    flex-shrink: 0;
    width: auto;
    height: 52px;
    aspect-ratio: 100 / 38;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    cursor: pointer;
}

.captcha-refresh {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.btn-block {
    display: flex;
    width: 100%;
    margin-top: 8px;
}

.auth-alt {
    margin: 32px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.auth-alt a,
.brand-page .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 164, 107, 0.45);
    text-underline-offset: 4px;
}

.auth-alt a:hover,
.brand-page .text-link:hover {
    text-decoration-color: var(--gold);
}

.legal-text {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.legal-text a {
    padding: 11px 0;
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

.legal-text a:hover {
    text-decoration-color: var(--paper);
}

.req-list {
    list-style: none;
    margin: -4px 0 28px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.req-list h2 {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--paper);
    letter-spacing: 0.06em;
}

.req-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    transition: color 0.3s var(--ease);
}

.req-list li i {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border: 1px solid var(--muted);
    border-radius: 50%;
}

.req-list li.valid {
    color: var(--paper);
}

.req-list li.valid i {
    border-color: var(--gold);
    background: var(--gold);
}

.code-input {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 28px;
}

.code-input input {
    width: 100%;
    min-height: 64px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: transparent;
    color: var(--paper);
    font-family: var(--serif);
    font-size: 1.7rem;
    text-align: center;
    transition: border-color 0.3s var(--ease);
}

.code-input input:focus,
.code-input input:focus-visible {
    outline: none;
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.text-btn.btn-block {
    justify-content: center;
    min-height: 48px;
    margin-top: 12px;
}

.text-btn[disabled] {
    cursor: not-allowed;
    text-decoration: none;
}

.auth-state h1 {
    margin: 18px 0 14px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.25;
}

.auth-state p {
    margin: 0 0 28px;
    color: var(--muted);
}

.auth-state strong {
    color: var(--gold);
    font-weight: 500;
    word-break: break-all;
}

.countdown-text {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 110px);
    padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
}

.legal-toc {
    position: sticky;
    top: 104px;
    align-self: start;
    font-size: 0.92rem;
}

.legal-toc h2 {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.12em;
}

.legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
}

.legal-toc a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.legal-toc a:hover {
    color: var(--paper);
}

.legal-toc .toc-title a {
    color: var(--paper);
    font-family: var(--serif);
    font-weight: 700;
}

.prose {
    max-width: 68ch;
    font-size: 17px;
    line-height: 1.9;
    color: var(--paper);
}

.prose .legal-section {
    scroll-margin-top: 100px;
}

.prose .legal-section + .legal-section {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.prose h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 18px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
}

.prose h2 .num {
    font-weight: 500;
    color: var(--gold);
    font-size: 1.1rem;
}

.prose h2 .num::after {
    content: '.';
}

.prose h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}

.prose p {
    margin: 0 0 1em;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose ul {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.prose li {
    position: relative;
    padding-left: 1.4em;
}

.prose li + li {
    margin-top: 0.7em;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 0.7em;
    height: 1px;
    background: var(--gold);
}

.prose strong {
    font-weight: 700;
    color: var(--paper);
}

.prose .age-badge,
.prose .warning-box {
    margin: 0 0 1em;
    padding: 14px 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    font-weight: 500;
}

.prose .warning-box {
    margin-top: 1.4em;
}

.prose .contact-box a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 164, 107, 0.45);
    word-break: break-all;
}

.prose .contact-box a:hover {
    border-color: var(--gold);
}

.legal-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line-strong);
}

.err {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 140px 0 96px;
    border-bottom: 1px solid var(--line);
}

.err {
    position: relative;
    overflow: hidden;
}

.err > .wrap {
    position: relative;
    z-index: 1;
}

.err-photo {
    position: absolute;
    inset: 0 0 0 56%;
    border-left: 1px solid var(--line);
}

.err-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.55) contrast(1.05) brightness(0.5) sepia(0.2);
}

.err-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 13, 0.35);
}

.err-copy {
    max-width: min(680px, calc(56vw - max(0px, (100vw - var(--wrap)) / 2) - var(--gutter) - 48px));
}

.err h1 {
    margin: 24px 0 20px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.18;
    font-feature-settings: "halt";
}

.err p {
    margin: 0 0 40px;
    max-width: 34em;
    color: var(--muted);
    font-size: 1.08rem;
}

.err p a {
    color: var(--paper);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 4px;
}

.err-actions,
.solo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
}

.solo-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.solo-head .brand-nav-inner {
    height: 76px;
}

.ledger {
    margin: 0 0 36px;
    padding: 0;
    border-top: 1px solid var(--line-strong);
}

.ledger > div {
    display: grid;
    grid-template-columns: 8em minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.ledger dt {
    color: var(--muted);
    font-size: 0.92rem;
}

.ledger dd {
    margin: 0;
    color: var(--paper);
}

.ledger .time-num {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.ledger .time-unit {
    margin: 0 12px 0 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .auth {
        display: block;
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        display: block;
        padding: 112px var(--gutter) 72px;
    }

    .auth-panel {
        margin: 0 auto;
    }

    .auth-mobile-line {
        display: block;
        margin: 0;
        font-family: var(--serif);
        font-weight: 700;
        font-size: 1rem;
        color: var(--gold);
        letter-spacing: 0.08em;
    }

    .auth-head .kicker {
        display: none;
    }

    .auth-head h1,
    .auth-state h1 {
        margin-top: 10px;
    }

    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .legal-toc {
        display: none;
    }

    .err {
        align-items: flex-start;
        min-height: 0;
        padding: 150px 0 120px;
    }

    .err-photo {
        display: none;
    }

    .err-copy {
        max-width: 680px;
    }
}

@media (max-width: 420px) {
    .birth-row {
        gap: 10px;
    }

    .choice label {
        padding: 12px 12px 12px 38px;
    }

    .choice label::before {
        left: 13px;
    }

    .captcha-row {
        gap: 12px;
    }

    .captcha-img {
        height: 46px;
    }

    .ledger > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

.pw-wrap {
    position: relative;
    display: block;
}

.pw-wrap .input {
    padding-right: 72px;
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    min-width: 60px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.pw-toggle:hover,
.pw-toggle:focus-visible {
    color: var(--gold);
}
