/* Shared look for the public pages (signup, enrollment, test checkout). The console has the same tokens inline. */
:root {
  --bg: #f5f7fa; --panel: #ffffff; --ink: #18212d; --muted: #5d6877; --line: #dfe4ea; --soft: #eef2f6;
  --brand: #1f4e79; --brand-ink: #ffffff; --green: #17784f; --green-bg: #e2f3eb; --red: #b42318; --red-bg: #fdeceb;
  --amber: #9a5b00; --amber-bg: #fff3df; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a; --panel: #161d25; --ink: #e6ebf1; --muted: #9aa6b4; --line: #27313d; --soft: #1d2631;
    --brand: #5b9bd5; --brand-ink: #0b1118; --green: #4cc38a; --green-bg: #12291f; --red: #f97066; --red-bg: #2d1615;
    --amber: #f5b14c; --amber-bg: #2b2112; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a; --panel: #161d25; --ink: #e6ebf1; --muted: #9aa6b4; --line: #27313d; --soft: #1d2631;
  --brand: #5b9bd5; --brand-ink: #0b1118; --green: #4cc38a; --green-bg: #12291f; --red: #f97066; --red-bg: #2d1615;
  --amber: #f5b14c; --amber-bg: #2b2112; --shadow: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); }
.page { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.brand { font-weight: 800; font-size: 20px; color: var(--brand); text-decoration: none; display: inline-block; margin-bottom: 24px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); margin-top: 18px; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 4px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
input[type=checkbox] { width: auto; }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.code { font-size: 26px; letter-spacing: .35em; text-align: center; }
button { font: inherit; cursor: pointer; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 10px 16px; }
button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
button:disabled { opacity: .55; cursor: default; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--red); background: var(--red-bg); padding: 10px 12px; border-radius: 10px; margin-top: 14px; }
.ok { color: var(--green); background: var(--green-bg); padding: 10px 12px; border-radius: 10px; margin-top: 14px; }
.note { color: var(--amber); background: var(--amber-bg); padding: 10px 12px; border-radius: 10px; margin-top: 14px; }
.terms { max-height: 260px; overflow-y: auto; white-space: pre-wrap; font-size: 13px; background: var(--soft); border-radius: 10px; padding: 12px; }
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 10px; }
.secret { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: var(--soft); padding: 6px 8px; border-radius: 6px; }
.plans { display: grid; gap: 10px; }
.plan { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.plan b { white-space: nowrap; }
.hidden { display: none !important; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
