:root {
    color-scheme: light dark;
    --bg: #f5f5f2;
    --surface: #ffffff;
    --text: #141414;
    --muted: #656565;
    --border: #deded8;
    --accent: #ff453a;
    --accent-dark: #dc2f27;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
}

.account-shell {
    width: min(680px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.account-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 750;
    text-decoration: none;
}

.account-brand img { width: 34px; height: 34px; }

.account-card {
    margin-top: 48px;
    padding: clamp(24px, 6vw, 48px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.08);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(32px, 8vw, 52px); line-height: 1; letter-spacing: -0.045em; }
h2 { margin: 30px 0 8px; }
p { color: var(--muted); line-height: 1.55; }

.field { display: grid; gap: 7px; margin-top: 20px; font-weight: 650; }
.field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--bg);
    color: inherit;
    font: inherit;
}

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button {
    border: 1px solid var(--text);
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--text);
    color: var(--surface);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.55; transform: none; }
.button--secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button--danger { background: transparent; color: #c92922; border-color: #c92922; }

.notice {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
}
.notice strong { display: block; }
.notice p { margin: 5px 0 0; font-size: 13px; }
.notice--error { border-color: #c92922; color: #c92922; }

.hidden { display: none !important; }
.device-code { font: 700 20px ui-monospace, monospace; letter-spacing: 0.09em; }
.turnstile { margin-top: 18px; min-height: 65px; }

.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.plan-grid--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.plan {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.plan--primary { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.plan__price { display: block; margin: 12px 0 2px; font-size: 28px; font-weight: 800; }
.plan p { margin: 4px 0; font-size: 13px; }

.account-list { display: grid; gap: 8px; margin-top: 16px; }
.account-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.account-list__item span { color: var(--muted); font-size: 13px; }
.account-list__item .button { padding: 7px 12px; font-size: 12px; }

.legal-links { margin-top: 26px; font-size: 13px; color: var(--muted); }
.legal-links a { color: inherit; }

@media (max-width: 560px) {
    .account-card { margin-top: 28px; }
    .plan-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111113;
        --surface: #1b1b1e;
        --text: #f6f6f2;
        --muted: #ababaa;
        --border: #3a3a3f;
    }
}
