/* The front-door page. Janus's own colors (Oxblood, lib/look/palettes.ts; Workbench T-609), light or dark to match
   the device; by day matched to the brand file as Janus is (T-641): a Warm White page, fine gold lines, an oxblood
   title. The device's own fonts: Figtree, Janus's font, would have to come
   from Google, and this page loads nothing from anyone else. */
:root {
  --bg: #faf9f7; --panel: #faf9f7; --ink: #29272b; --muted: #646264; --line: #e4d1af; --line-strong: #dfc9a1;
  --title: #351721; --accent: #351721; --accent-soft: #ece9e8; --accent-ink: #faf9f7;
  --live: #2c6b3f; --wait: #7a4b00; --wait-soft: #fff4e5;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2b121b; --panel: #351721; --ink: #faf9f7; --muted: #b4aaac; --line: #463038; --line-strong: #59454b;
    --title: #faf9f7; --accent: #cda967; --accent-soft: #4a2b2b; --accent-ink: #2b121b;
    --live: #8fd1a3; --wait: #f3cf8e; --wait-soft: #3a2c12;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { margin: 0; color: var(--title); font-size: 26px; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
p, ol { margin: 0; }

.top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.top b { font-size: 17px; letter-spacing: -.01em; }
.seal { width: 26px; height: 26px; flex-shrink: 0; background: var(--accent); -webkit-mask: url("/seal.png") center / contain no-repeat; mask: url("/seal.png") center / contain no-repeat; }

main { flex: 1; display: flex; flex-direction: column; }
.screen { width: 100%; max-width: 560px; margin: 0 auto; padding: 40px 16px 32px; flex: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: center; text-align: center; }
.screen.left { justify-content: flex-start; align-items: stretch; text-align: left; }
.lead { font-size: 16.5px; }
.small { font-size: 14.5px; color: var(--muted); }
.small b { color: var(--ink); font-weight: 600; }

/* With scripts switched off, only the plain way in shows (the <noscript> part of index.html). */
@media (scripting: none) { #checking { display: none; } }

.spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.okmark { color: var(--live); }

.btn { font: 600 15px var(--sans); border-radius: 999px; padding: 10px 20px; min-height: 44px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.secondary { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn.sm { min-height: 40px; font-size: 14px; padding: 6px 16px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.screen.left .btn.primary { align-self: flex-start; }

.note { border-radius: 12px; padding: 12px 16px; font-size: 15px; text-align: left; }
.note.info { background: var(--accent-soft); color: var(--accent); }
.note.warn { background: var(--wait-soft); color: var(--wait); }

.addr { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; width: 100%; text-align: left; }
.addr .lbl { font-size: 13px; color: var(--muted); }
.addr code { font: 500 15px var(--mono); color: var(--accent); overflow-wrap: anywhere; }

.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 52px; position: relative; font-size: 15px; line-height: 1.5; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 13px var(--mono); display: grid; place-items: center; }
.steps b { display: block; }
/* The script shows the steps that match this device: phone or computer. */
.is-phone .for-computer, html:not(.is-phone) .for-phone { display: none; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wait); flex-shrink: 0; }
.dot.stopped { background: var(--line-strong); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .spin, .pulse { animation: none; } }

@media (min-width: 600px) {
  .top { padding-inline: 24px; }
  .screen { padding: 56px 28px 40px; }
  h1 { font-size: 28px; }
}
