/* Shared styles for the public site. Palette A tokens, matching the app. */
:root {
  --bg: #f7f8f4; --surface: #fff; --ink: #0e1a12; --muted: #45524a; --line: #dde3da;
  --primary: #0b6b3a; --on-primary: #fff; --danger: #b3261e; --soft: #e3f1e8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b120e; --surface: #141e18; --ink: #f1f5ef; --muted: #aebbb2; --line: #26332b;
    --primary: #4ed08a; --on-primary: #04210f; --danger: #ff8a80; --soft: #16301f;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-weight: 800; font-size: 19px; }
header a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); }
a { color: var(--primary); font-weight: 600; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input { width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; font: inherit; background: var(--surface); color: var(--ink); }
input:focus { outline: none; border-color: var(--primary); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .5; }
.notice { border-radius: 14px; padding: 14px 16px; margin: 16px 0; background: var(--soft); }
.notice.error { background: transparent; border: 2px solid var(--danger); }
.code { font: 700 28px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; padding: 16px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface); }
footer { margin-top: 48px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); font-weight: 500; margin-right: 12px; }
[hidden] { display: none !important; }
