/* The test-call page (index.html). One file, no framework: the page is
   served under a Content-Security-Policy that allows only its own files. */

:root {
  --ink: #1c2430;
  --muted: #5b6675;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #d9d5cb;
  --accent: #1f5f8b;
  --accent-ink: #ffffff;
  --danger: #a3271f;
  --ok: #2c6e49;
  --alert-bg: #fdf0ee;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

p { margin: 0 0 0.8rem; }

.lede { color: var(--muted); }

.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem 1.1rem 3.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--card);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.7rem;
  text-align: center;
}

.step > :last-child { margin-bottom: 0; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--accent);
}

.button {
  appearance: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button:hover:not(:disabled) { background: #eef1f4; }

.button:focus-visible,
.check input:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

.button:disabled {
  border-color: var(--line);
  color: #9aa2ad;
  cursor: not-allowed;
}

.button.primary:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover:not(:disabled) { background: #184c70; }

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.button.danger:hover:not(:disabled) { background: #861f19; }

.meter-row,
.call-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.meter-row { margin-bottom: 0.2rem; }

meter {
  flex: 1 1 12rem;
  max-width: 18rem;
  height: 1rem;
}

.status { font-weight: 600; }

.timer {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.alert {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--danger);
  border-radius: 4px;
  background: var(--alert-bg);
}

.done {
  margin-top: 1.5rem;
  padding: 1.4rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--ok);
  border-radius: 10px;
}

.done h2 { font-size: 1.4rem; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 120ms ease; }
}
