/* Goose verification pages: the Verify flow, the public start page and the
   privacy and terms documents. Tokens copy apps/dashboard/app/globals.css (a
   test keeps them equal) so the bot, dashboard and verifier read as one product.
   Light by default, dark from the system setting. State hooks ([data-state],
   [hidden]) are owned by app.js. Inter (SIL OFL 1.1, assets/fonts/inter/OFL.txt)
   is self-hosted as a 48 KB Latin subset. */
@font-face { font-family:"Inter"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/static/inter-latin.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Light theme tokens (same values as the dashboard). */
:root { color-scheme:light; --bg-0:#f5f6f8; --paper:#ffffff; --paper-2:#f9fafb; --sunken:#eef0f3; --text:#0f1720; --text-2:#3d4a5a; --muted:#5e6b7b; --faint:#5e6b7b; --accent:#0f6e4f; --accent-hover:#0b5a40; --on-accent:#ffffff; --link:#0b6b4c; --accent-subtle:#e3f6ee; --line:#e2e6eb; --line-strong:#cfd6de; --input-line:#858f9c; --warn:#8a5a00; --warning-surface:#fdf3dc; --warning-text:#8a5a00; --warning-line:#ecd096; --ok:#0b6b4c; --ok-surface:#e3f6ee; --danger:#b4232a; --danger-surface:#fdecec; --info:#1f5fbf; --info-surface:#e8f0fd; --discord:#5865f2; --discord-hover:#4752c4; --focus:#0f6e4f; --shadow:0 1px 2px rgb(15 23 32 / 6%); --shadow-lg:0 4px 16px rgb(15 23 32 / 8%),0 1px 3px rgb(15 23 32 / 6%); --type-body:1rem; --type-caption:.875rem; --radius:8px; --radius-card:16px; --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace; }
/* Dark theme tokens, following the system setting. */
@media (prefers-color-scheme:dark) {
  :root { color-scheme:dark; --bg-0:#0b1017; --paper:#121b25; --paper-2:#162130; --sunken:#0e151e; --text:#eff4f8; --text-2:#b4c1cf; --muted:#8d9bab; --faint:#8d9bab; --accent:#a8f0cc; --accent-hover:#c1f7dd; --on-accent:#0d2b1e; --link:#a8f0cc; --accent-subtle:#15302a; --line:#243140; --line-strong:#33435a; --input-line:#5a6b80; --warn:#f3c66b; --warning-surface:#33280f; --warning-text:#f3c66b; --warning-line:#5c4818; --ok:#8fe6bd; --ok-surface:#14302a; --danger:#ff9a9c; --danger-surface:#3a1d22; --info:#9cc5ff; --info-surface:#172a45; --focus:#a8f0cc; --shadow:0 1px 2px rgb(0 0 0 / 30%); --shadow-lg:0 4px 16px rgb(0 0 0 / 35%),0 1px 3px rgb(0 0 0 / 30%); }
}
/* Aliases kept for the dev-only review page (dev.css). */
:root { --surface:var(--paper); --surface-2:var(--paper-2); --surface-3:var(--sunken); --line-soft:var(--line); --accent-ink:var(--link); --accent-tint:var(--accent-subtle); --accent-tint-2:var(--accent-subtle); --ok-ink:var(--ok); --ok-tint:var(--ok-surface); --ok-line:var(--line-strong); --warn-tint:var(--warning-surface); --warn-line:var(--warning-line); --radius:8px; --shadow-card:var(--shadow); --ease-out:cubic-bezier(.2,.7,.2,1); --grad:none; }

/* Base. */
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none!important; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; font-family:var(--font); font-size:var(--type-body); line-height:1.6; color:var(--text); background:var(--bg-0); -webkit-font-smoothing:antialiased; font-feature-settings:"cv11","ss03"; }
a { color:var(--link); text-decoration-thickness:1px; text-underline-offset:3px; overflow-wrap:anywhere; }
a:hover { text-decoration-thickness:2px; }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
::selection { background:color-mix(in srgb,var(--accent) 28%,transparent); }
h1,h2,h3 { color:var(--text); font-weight:600; letter-spacing:-.011em; text-wrap:balance; }
h1 { margin:0 0 12px; font-size:clamp(1.625rem,5vw,2rem); line-height:1.2; letter-spacing:-.02em; }
h2 { margin:32px 0 10px; font-size:1.125rem; line-height:1.35; }
h3 { margin:24px 0 8px; font-size:1rem; }
p { margin:10px 0; }
ul,ol { padding-left:22px; }
li { margin:8px 0; }
strong { color:var(--text); font-weight:600; }
code { padding:1px 5px; border-radius:4px; background:var(--sunken); font-family:var(--mono); font-size:.9em; }
.skip-link { position:absolute; top:12px; left:12px; z-index:10; padding:10px 16px; border-radius:var(--radius); color:var(--on-accent); background:var(--accent); font-weight:600; transform:translateY(-200%); }
.skip-link:focus { transform:none; color:var(--on-accent); }
.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; }

/* Top bar with the shared brand. */
.topbar { border-bottom:1px solid var(--line); background:var(--paper); }
.topbar__inner { display:flex; align-items:center; gap:16px; max-width:1100px; height:60px; padding:0 20px; margin:0 auto; }
.topbar__actions { display:flex; align-items:center; gap:12px; margin-left:auto; }
.topbar__actions label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:var(--type-caption); }
.topbar__actions select { max-width:160px; min-height:36px; padding:5px 8px; border:1px solid var(--line-strong); border-radius:8px; color:var(--text); background:var(--paper); font:inherit; }
.topbar__actions #locale-status { max-width:190px; color:var(--muted); font-size:var(--type-caption); }
.topbar__actions #locale-retry { min-height:36px; padding:5px 8px; border:1px solid var(--line-strong); border-radius:8px; color:var(--text); background:var(--paper); font:inherit; cursor:pointer; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--text); font-weight:650; letter-spacing:-.011em; text-decoration:none; }
.brand__avatar { width:28px; height:28px; }
.brand__name { font-size:1rem; }
.brand__sub { color:var(--muted); font-size:var(--type-caption); font-weight:400; padding-left:10px; border-left:1px solid var(--line-strong); }
.brand__dashboard { display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--text-2); font-size:var(--type-caption); font-weight:500; text-decoration:none; }
.brand__dashboard:hover { color:var(--text); text-decoration:underline; }

/* Main column and the card holding the current state. */
.page { flex:1; width:100%; padding:clamp(24px,6vw,64px) 16px 64px; }
.card { width:min(100%,600px); margin:0 auto; padding:clamp(24px,5vw,40px); border:1px solid var(--line); border-radius:var(--radius-card); background:var(--paper); box-shadow:var(--shadow); outline:none; }
.card--wide { width:min(100%,800px); }
.card--verification:has([data-state="consent"]:not([hidden])),.card--verification:has([data-state="sign-in"]:not([hidden])) { width:min(100%,1040px); }
.server-label { display:flex; align-items:center; gap:8px; margin:0 0 20px; color:var(--muted); font-size:var(--type-caption); }
.server-label strong { color:var(--text); font-weight:600; }
.lead { color:var(--text-2); font-size:1.0625rem; line-height:1.6; }
.muted,.state-hint { color:var(--text-2); }
.state-hint { padding:12px 14px; border-radius:var(--radius); background:var(--paper-2); border:1px solid var(--line); }
.fine { color:var(--faint); font-size:var(--type-body); margin-top:18px; }
.fine,.state-hint,.callout p { font-size:var(--type-body); }

/* State icons: the bot's tones, never color alone (each state has a heading). */
.state-icon,.check { display:grid; place-items:center; width:48px; height:48px; margin:0 0 20px; border-radius:12px; background:var(--info-surface); color:var(--info); }
.state-icon svg,.check svg { width:24px; height:24px; }
.check { background:var(--ok-surface); color:var(--ok); }
.state-icon--warn { background:var(--warning-surface); color:var(--warn); }
.state-icon--danger { background:var(--danger-surface); color:var(--danger); }
.spinner { width:28px; height:28px; margin:4px 0 20px; border:3px solid var(--line-strong); border-top-color:var(--accent); border-radius:50%; animation:spin .9s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Consent: the full disclosure beside the member's choice. */
.consent-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:32px; align-items:start; margin-top:24px; }
.disclosure { margin:24px 0; padding:20px 22px; border:1px solid var(--line); border-radius:12px; background:var(--paper-2); color:var(--text-2); }
.disclosure h2,.disclosure h3 { margin-top:0; }
.disclosure ul { padding:0; list-style:none; }
.disclosure li { margin:0; padding:12px 0; border-top:1px solid var(--line); }
.disclosure li:first-child { border-top:0; padding-top:0; }
.disclosure li strong { display:block; margin-bottom:2px; }
.consent-details { margin:0; }
.consent-action { position:sticky; top:24px; min-width:0; }
.consent-action h2 { margin:0 0 6px; }
.consent-action>.muted { margin-top:0; }
.account-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:12px 14px; margin:0 0 16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper-2); font-size:var(--type-caption); color:var(--text-2); }
.account-row strong { color:var(--text); }
.link-button { min-height:32px; padding:0; border:0; background:none; color:var(--link); font:inherit; font-weight:500; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.callout { padding:14px 16px; margin:16px 0; border:1px solid var(--warning-line); border-radius:var(--radius); background:var(--warning-surface); }
.callout strong { color:var(--warning-text); }
.callout p { margin:6px 0 0; color:var(--text); }
.geo-opt,.consent-choice { display:flex; gap:12px; align-items:flex-start; padding:14px; margin:12px 0; border:1px solid var(--line); border-radius:var(--radius); cursor:pointer; color:var(--text); }
.geo-opt:has(input:checked),.consent-choice:has(input:checked) { border-color:var(--accent); background:var(--accent-subtle); }
input[type=checkbox] { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:var(--accent); cursor:pointer; }

/* Buttons. */
.primary,.secondary,.discord-button { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px; padding:12px 20px; margin-top:12px; border:1px solid transparent; border-radius:10px; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; transition:background-color .15s ease; }
.primary { color:var(--on-accent); background:var(--accent); }
.primary:hover:not(:disabled) { background:var(--accent-hover); }
.secondary { color:var(--text); background:var(--paper); border-color:var(--line-strong); }
.secondary:hover:not(:disabled) { background:var(--paper-2); }
.discord-button { color:#ffffff; background:var(--discord); }
.discord-button:hover:not(:disabled) { background:var(--discord-hover); }
.discord-button svg { width:22px; height:22px; flex:none; }
.primary:disabled,.secondary:disabled,.discord-button:disabled { opacity:.5; cursor:not-allowed; }
.primary--link { text-align:center; }
.actions { display:grid; gap:0; margin-top:20px; }
#captcha { margin:16px 0; overflow:auto; }

/* Step list on the start page and the sign-in step. */
.steps { display:grid; gap:14px; padding:0; margin:20px 0; list-style:none; counter-reset:step; }
.steps li { display:grid; grid-template-columns:28px 1fr; gap:12px; margin:0; color:var(--text-2); counter-increment:step; }
.steps li::before { content:counter(step); display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line-strong); border-radius:50%; color:var(--text); font-size:var(--type-caption); font-weight:600; }
.steps li strong { display:block; }

/* Footer, shared by every page. */
.site-footer { display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; max-width:1100px; width:100%; padding:20px; margin:0 auto; border-top:1px solid var(--line); font-size:var(--type-caption); color:var(--muted); }
.site-footer a,.document-nav a { display:inline-flex; align-items:center; min-height:44px; color:var(--text-2); text-decoration:none; }
.site-footer a:hover,.document-nav a:hover { color:var(--text); text-decoration:underline; }
.site-footer span { margin-left:auto; }

/* Privacy notice and terms. */
.document-meta { color:var(--muted); font-size:var(--type-caption); }
.document-nav { display:flex; flex-wrap:wrap; gap:0 18px; padding:8px 0; margin:20px 0 8px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:var(--type-caption); }
.document-section { scroll-margin-top:24px; }
.document-section h2,.card--wide section>h2 { padding-top:28px; margin-top:28px; border-top:1px solid var(--line); }
.document-links { display:flex; flex-direction:column; gap:12px; margin:24px 0; }

/* Narrow screens: disclosure first, then the choice; release sticky positioning. */
@media(max-width:800px) { .consent-layout { grid-template-columns:1fr; gap:24px; } .consent-action { position:static; } }
@media(max-width:480px) { .brand__sub { display:none; } .card { border-radius:12px; } .site-footer span { margin-left:0; flex-basis:100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } .spinner { border-color:var(--accent); } }
