/* Sign-up, sign-in, reset, account and download pages. */
.page-title { font-size: clamp(28px, 3.4vw, 40px); }
/* Oliver, 29 Oct 2026, the site in the topic pages' style: the form stands unboxed on the left, with a
 * dimmed copy of the Atlas Mind window (app-frame/) behind it on the right, as the topic pages open. */
.auth-main { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 96px); min-height: calc(100vh - var(--nav-height) - 260px); }
@media (min-width: 961px) { .auth-main:has(.auth-art) { min-height: calc(min(1040px, 64vw) * 0.625 + 220px); } }
.auth-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 360px); gap: clamp(24px, 5vw, 72px); justify-content: start; align-items: start; }
.auth-card { display: grid; gap: 18px; padding: 28px 0 0; background: transparent; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; }
/* While accounts are closed the form says so as a status line above its heading, as the Download page's
 * platforms do, rather than a box between the rule and the heading (29 Oct 2026 review). */
.auth-card > .notice-pending { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 0; border: 0; background: none; font-size: 13px; color: var(--text-dim); }
.auth-card > .notice-pending::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }
.auth-card > .notice-pending strong { font-weight: 400; color: var(--text-body); }
/* The window's top edge on the form's top rule (the main's own top padding), clear of the header. */
.auth-art { position: absolute; top: clamp(56px, 8vw, 120px); left: max(44vw, 520px); width: min(1040px, 64vw); margin: 0; z-index: 0; pointer-events: none; }
.auth-art::after { content: ""; position: absolute; inset: -2px; border-radius: 16px;
  background: linear-gradient(90deg, rgb(11 11 11 / 0.92), rgb(11 11 11 / 0.66) 40%, rgb(11 11 11 / 0.5)); }
@media (max-width: 960px) { .auth-art { display: none; } }
.auth-aside { display: grid; gap: 12px; padding-top: 8px; }
.auth-aside h2 { font-size: 17px; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: minmax(0, 520px); } .auth-aside { padding-top: 0; } }

.auth-title { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.auth-sub { font-size: 14px; color: var(--text-body); }
.auth-email { color: var(--text); font-weight: 500; word-break: break-all; }
.auth-form { display: grid; gap: 16px; }
.auth-form[hidden] { display: none; }
.auth-legal { font-size: 12px; color: var(--text-dim); }
.auth-legal a { color: var(--text-body); }
.auth-switch { font-size: 14px; color: var(--text-dim); }
.auth-switch a { color: var(--text); }
.auth-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); min-height: 1lh; }
.auth-status:empty { display: none; }
.auth-plan { padding: 8px 12px; border-left: 2px solid var(--violet); background: var(--panel-active); border-radius: 0 var(--radius) var(--radius) 0; font-size: 13px; color: var(--text-body); }
.auth-plan strong { color: var(--text); font-weight: 500; }
.auth-plan[hidden] { display: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--text); text-decoration: underline; cursor: pointer; font-size: inherit; }
.link-button:hover { color: #fff; }
/* Consent: what the app may do, one line each. */
.consent-scopes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text); }
.consent-scopes li { display: flex; gap: 10px; align-items: baseline; }
.consent-scopes li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); transform: translateY(-2px); }
/* Continue with Google, and the words between it and the email form (no rule, by design). */
.google-mark { width: 18px; height: 18px; flex: none; }
.auth-or { font-size: 13px; color: var(--text-dim); text-align: center; }
.auth-or[hidden] { display: none; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-link { font-size: 13px; color: var(--text-dim); }
.field-link:hover { color: var(--text); }

.auth-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: 12px; color: var(--text-dim); }
.auth-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); counter-increment: s; }
.auth-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--panel-active); font-size: 10px; color: var(--text-body); }
.auth-steps li[aria-current="step"] { color: var(--text); border-color: var(--border-strong); }
.auth-steps li[aria-current="step"]::before { background: var(--chip); color: var(--chip-text); }
.auth-steps li[data-done="true"]::before { content: "✓"; background: #1d3b24; color: var(--success); }

/* The six code boxes: one digit each, submit on the sixth. */
.code-boxes { display: flex; gap: 8px; }
.code-box { width: 100%; max-width: 56px; height: 56px; padding: 0; text-align: center; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .code-boxes { gap: 5px; } .code-box { height: 48px; font-size: 18px; } }

.password-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-dim); }
.password-rules li { display: inline-flex; align-items: center; gap: 5px; }
.password-rules li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--text-dim); }
.password-rules li[data-met="true"] { color: var(--success); }
.password-rules li[data-met="true"]::before { background: var(--success); border-color: var(--success); }

/* ---------- Account ---------- */
.account-grid { display: grid; gap: 20px; max-width: 760px; }
.account-head { display: grid; gap: 10px; }
.account-sections { display: grid; gap: 16px; }
.account-sections[hidden] { display: none; }
.account-section { display: grid; gap: 12px; }
.account-section h2 { font-size: 16px; }
.account-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.session-list { margin: 0; padding: 0; list-style: none; display: grid; }
.session-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.session-list li:first-child { border-top: 0; padding-top: 0; }
.session-list .session-meta { display: grid; gap: 2px; min-width: 0; }
.session-list .session-meta span { color: var(--text-dim); font-size: 12px; }
.session-list .session-meta strong { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.session-list li[data-state="revoking"] { opacity: 0.6; }
.session-empty { color: var(--text-dim); font-size: 14px; padding: 6px 0; }

/* ---------- Download ---------- */
.release-cards { align-items: stretch; }
.release-cards[hidden] { display: none; }
.release { display: grid; gap: 12px; align-content: start; }
.release h2 { font-size: 17px; }
.release-meta { display: grid; gap: 6px; font-size: 13px; color: var(--text-body); }
.release-meta div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.release-meta dt { color: var(--text-dim); }
.release-meta dd { margin: 0; overflow-wrap: anywhere; }
.release-meta code { font-family: var(--font-mono); font-size: 12px; }
.release[data-state="unavailable"] { border-style: dashed; }
.release-note { font-size: 13px; color: var(--text-dim); }
.copy-button { margin-left: 6px; }

/* Welcome after purchase. */
.welcome-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; max-width: 720px; }
.welcome-steps li { counter-increment: step; background: transparent; border-top: 1px solid var(--border); border-radius: 0; padding: 20px 24px 20px 64px; position: relative; }
.welcome-steps li::before { content: counter(step); position: absolute; left: 24px; top: 20px; font-size: 20px; font-weight: 500; color: var(--text-dim); }
.welcome-steps h2 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.welcome-steps p { margin: 0 0 8px; color: var(--text-body); line-height: 1.55; }
.welcome-help { margin-top: 20px; color: var(--text-dim); font-size: 14px; }

/* 404: the wordmark's thin, tracked numerals over the copy, centred in the viewport. */
.not-found { min-height: calc(100svh - var(--nav-height) - 120px); display: grid; align-items: center; }
.not-found-body { display: grid; gap: 18px; justify-items: start; padding: clamp(72px, 12vw, 160px) 0; max-width: 620px; }
.not-found-body .eyebrow { font-size: clamp(56px, 9vw, 120px); font-weight: 200; letter-spacing: 0.18em; color: #fff; text-transform: none; line-height: 1; }
.not-found-body .page-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -0.02em; }
/* The account page's step-up for adding or removing Google (decision 1081). */
.step-up { display: grid; gap: 12px; margin-top: 16px; max-width: 360px; }
.step-up p { margin: 0; }

/* Second factors on the account page (task 2108): passkeys listed by space, not lines; the app's setup. */
.passkey-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.passkey-list[hidden] { display: none; }
.passkey-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.passkey-list .passkey-meta { display: grid; gap: 2px; min-width: 0; }
.passkey-list .passkey-meta strong { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.passkey-list .passkey-meta span { color: var(--text-dim); font-size: 12px; }
.method-note { margin: 0; font-size: 13px; }
.app-setup { display: grid; gap: 12px; margin-top: 8px; max-width: 420px; }
.app-setup[hidden] { display: none; }
.app-setup p { margin: 0; }
.app-qr { width: 180px; height: 180px; padding: 8px; background: #fff; border-radius: var(--radius-small); }
.app-key .mono { overflow-wrap: anywhere; letter-spacing: 0.06em; }
.backup-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; font-size: 13px; }
.button-danger { color: var(--danger); }
.button-danger:hover { border-color: var(--danger); color: var(--danger); }
