:root {
  --blue: #0a66d6;
  --green: #14804a;
  --red: #d6350a;
  --orange: #b35c00;
  --gray: #5b6370;
  --link: #0a66d6;
  --err: #c42e08;
  --ok: #12703f;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111827;
  --border: #e5e7eb;
  --soft: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #171a21;
    --text: #f3f4f6;
    --border: #2a2f3a;
    --soft: #1f232c;
    --gray: #9aa3b2;
    --link: #5b9cff;
    --err: #ff7a5c;
    --ok: #4ccf8b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 480px;
  padding: 24px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.subtitle { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.muted { color: var(--gray); font-size: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray); margin-bottom: 2px; }
.value { font-size: 16px; margin-bottom: 12px; }
.value:last-child { margin-bottom: 0; }
.big { font-size: 40px; font-weight: 700; line-height: 1; }
.buttons { display: flex; gap: 10px; margin-top: 12px; }
button, .button {
  flex: 1;
  display: inline-block;
  text-align: center;
  padding: 13px 14px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
button:disabled { opacity: 0.5; cursor: default; }
.primary { background: var(--blue); color: #fff; }
.approve { background: var(--green); color: #fff; }
.decline { background: var(--red); color: #fff; }
.secondary { background: var(--soft); color: var(--text); }
.banner { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.banner.pending { background: #fff4e0; color: #7a4a00; }
.banner.good { background: #e6f6ed; color: #146c40; }
.banner.bad { background: #fdecea; color: #9b2a08; }
.banner.info { background: #e8f0fc; color: #0b4a9c; }
@media (prefers-color-scheme: dark) {
  .banner.pending { background: #3a2a0a; color: #ffcf85; }
  .banner.good { background: #0f2e1d; color: #7ee0a8; }
  .banner.bad { background: #3a1510; color: #ffab96; }
  .banner.info { background: #0f2340; color: #9cc3ff; }
}
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step.done .step-num { background: var(--green); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--gray); white-space: nowrap; }
ol, ul { padding-left: 20px; margin: 6px 0 10px; }
li { margin-bottom: 6px; }
a { color: var(--link); }
#error { color: var(--err); padding: 16px 0; }
#loading { color: var(--gray); padding: 32px 0; text-align: center; }
.footer-link { display: block; text-align: center; margin-top: 12px; padding: 12px 8px; font-size: 14px; }

.legal-links { text-align:center; font-size:14px; color:var(--gray); margin:28px 0 8px; }
.legal-links a { color:var(--gray); text-decoration:none; display:inline-block; padding:12px 8px; }

/* ---- 2026-09-25 design pass: match the iPhone app ---------------------- */
:root { --page: #f6f8fb; --card-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.05); }
@media (prefers-color-scheme: dark) { :root { --page: #0f1115; --card-shadow: none; } }
html { background: var(--page); }
body {
  background: linear-gradient(180deg, rgba(10,102,214,.09) 0, rgba(10,102,214,0) 280px) var(--page);
  min-height: 100vh;
  padding-top: max(28px, env(safe-area-inset-top));
}
h1 {
  font-size: 26px; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 6px;
}
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); font-weight: 600; margin: 28px 4px 10px; }
.card { border: none; border-radius: 18px; padding: 18px; box-shadow: var(--card-shadow); }
@media (prefers-color-scheme: dark) { .card { border: 1px solid var(--border); } }
.big {
  font-size: 56px; letter-spacing: -.02em;
  background: linear-gradient(135deg, #0a66d6, #1f6fe0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
button, .button { border-radius: 14px; transition: transform .08s ease, filter .15s ease; }
button:active:not(:disabled), .button:active { transform: scale(.98); filter: brightness(.95); }
.primary { background: linear-gradient(135deg, #0a66d6, #1f6fe0); box-shadow: 0 6px 16px rgba(10,102,214,.25); }
.approve { box-shadow: 0 6px 16px rgba(20,128,74,.22); }
.banner { border-radius: 14px; }
.step-num { background: linear-gradient(135deg, #0a66d6, #1f6fe0); }
.pill { padding: 3px 10px; font-weight: 500; }
.footer-link { color: var(--gray); text-decoration: none; }
#loading { font-size: 15px; }

.brand { display:block; margin: 4px 0 22px; }
.brand img { width: 200px; height: auto; display:block; }

/* Desktop: the phone-width column looks lost on a laptop. Widen it and
   bump the type a little; the layout is single-column on purpose. */
@media (min-width: 900px) {
  body { max-width: 680px; padding: 40px 24px 64px; font-size: 17px; }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; }
  .card { padding: 22px; border-radius: 14px; }
  .big { font-size: 48px; }
}

.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 0.95em; }
.check input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
button.primary:disabled { opacity: 0.45; }

/* ---- One protection status (docs/specs/protection-status.md) ----------- */
.status { padding: 16px; }
.status-pill { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; }
.status-icon {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
}
.status-title { display: block; font-size: 18px; line-height: 1.3; }
.status-sentence { font-size: 14px; margin-top: 2px; }
.tone-green { background: #e6f6ed; color: #146c40; } .tone-green .status-icon { background: #14804a; }
.tone-amber { background: #fff4e0; color: #7a4a00; } .tone-amber .status-icon { background: #b35c00; }
.tone-red { background: #fdecea; color: #9b2a08; } .tone-red .status-icon { background: #d6350a; }
.tone-grey { background: var(--soft); color: var(--text); } .tone-grey .status-icon { background: #6b7280; }
.status-fresh { font-size: 13px; color: var(--gray); margin: 8px 2px 4px; }
.status-fresh.stale { color: #7a4a00; }
.lights { list-style: none; padding: 0; margin: 4px 0 0; }
.light { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--border); margin: 0; font-size: 15px; }
.light:first-child { border-top: none; }
.light-icon {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; margin-top: 1px; box-sizing: border-box;
}
.s-working .light-icon { background: #14804a; }
.s-checking .light-icon { background: transparent; border: 2px solid #b35c00; color: #b35c00; }
.s-notSetUp .light-icon { background: transparent; border: 2px solid #6b7280; }
.s-attention .light-icon { background: #b35c00; }
.s-partly .light-icon { background: #b35c00; }
.light-name { flex: 1; }
.light-reason { display: block; font-size: 13px; color: var(--gray); }
.light-state { font-size: 13px; color: var(--gray); white-space: nowrap; margin-top: 2px; }
.s-attention .light-state, .s-partly .light-state { color: #9b4a00; font-weight: 600; }
.progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.dots { display: flex; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa3b2; }
.dot.done { background: #14804a; }
.dot.now { background: var(--blue); box-shadow: 0 0 0 3px rgba(10,102,214,.18); }
.next-card { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.next-card p { margin: 2px 0 0; }
.next-link { display: inline-block; margin-top: 2px; padding: 12px 8px 12px 0; min-height: 44px; font-size: 14px; font-weight: 600; }
.row button { min-height: 44px; }
@media (prefers-color-scheme: dark) {
  .tone-green { background: #0f2e1d; color: #7ee0a8; }
  .tone-amber { background: #3a2a0a; color: #ffcf85; }
  .tone-red { background: #3a1510; color: #ffab96; }
  .status-fresh.stale { color: #ffcf85; }
  .s-checking .light-icon { border-color: #ffcf85; color: #ffcf85; }
  .s-notSetUp .light-icon { border-color: #9aa3b2; }
  .s-attention .light-state, .s-partly .light-state { color: #ffcf85; }
}

/* ---- Accessibility (docs/qa/accessibility-1.0.2.md) -------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
#content:focus, h1:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
