/* Kept Response Alerts: base theme. Tenants may override only --accent (from the curated set) and the logo. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  --walnut: #100904;
  --walnut-2: #170d06;
  --cork: #40372e;
  --dim: #94857a;
  --cream: #ffedd7;
  --ember: #dc5000;
  --accent: var(--ember);

  --bg: var(--walnut);
  --surface: var(--walnut-2);
  --line: var(--cork);
  --text: var(--cream);
  --muted: var(--dim);

  --radius: 14px;
  --gutter: 20px;
  color-scheme: dark;
}

/* Light mode: cream canvas, walnut type. Accent stays the tenant's. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffedd7;
    --surface: #f6e2c8;
    --line: #d8c3a6;
    --text: #100904;
    --muted: #5f5246;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 "Hanken Grotesk", system-ui, sans-serif;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.shell { max-width: 520px; margin: 0 auto; padding: 48px var(--gutter); }
.kicker { color: var(--accent); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
h1 { font-weight: 500; font-size: 34px; line-height: 1.15; margin: 0 0 16px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.status { color: var(--muted); font-size: 14px; }

/* Setup, home and alert screens */
[hidden] { display: none !important; }
h2 { font-weight: 500; font-size: 19px; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
a { color: var(--text); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary, button.secondary { display: block; width: 100%; min-height: 56px; border-radius: var(--radius); font-weight: 500; margin: 12px 0 0; }
button.primary { background: var(--accent); border: 1px solid var(--accent); color: #100904; }
button.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.huge { min-height: 128px; font-size: 28px; }
button.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 14px 0; min-height: 48px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 15px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.platforms button { min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); }
.platforms button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
ol { padding-left: 20px; margin: 0; }
ol li { margin: 0 0 14px; }
ol img { vertical-align: middle; }
.field { display: block; color: var(--muted); font-size: 14px; }
.field input { display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; font-size: 15px; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; }
.state { margin: 0; font-size: 19px; }
.state.off { color: var(--accent); }
.doc h2 { margin-top: 28px; }
