:root {
  --bg: #f5f6f8; --card: #fff; --ink: #1b2430; --muted: #5d6b7c; --line: #dfe3e8;
  --brand: #1f5fbf; --brand-ink: #fff; --ok: #1a7f4b; --ok-bg: #e6f5ec; --err: #b3261e; --err-bg: #fdecea;
  --warn-bg: #fff4dc;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11161d; --card: #1a212b; --ink: #e8edf3; --muted: #9aa8b8; --line: #2b3541;
          --brand: #5b9bff; --brand-ink: #0b1220; --ok: #5fd39a; --ok-bg: #12301f; --err: #ff8a80; --err-bg: #3a1714; --warn-bg: #3a2f12; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
       background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.top strong { font-size: 1rem; }
.top form { margin: 0; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.4rem; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: .92rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.card.warn { background: var(--warn-bg); }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; }
input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin: 16px 0; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.btn { display: block; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 12px;
       background: var(--brand); color: var(--brand-ink); font-size: 1.05rem; font-weight: 700;
       text-align: center; text-decoration: none; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.link { width: auto; min-height: 40px; background: none; color: var(--brand); padding: 6px 8px; font-size: .95rem; font-weight: 600; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--err); font-size: .92rem; }
.msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.msg.error { background: var(--err-bg); color: var(--err); }
.legal { font-size: .82rem; color: var(--muted); max-height: 9em; overflow: auto; border: 1px solid var(--line);
         border-radius: 10px; padding: 10px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700;
         background: var(--ok-bg); color: var(--ok); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
nav.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
