:root {
  --fg: #1c1c28;
  --muted: #6b6b7b;
  --accent: #E00099;          /* Magenta — eneste accent-farve */
  --accent-dark: #b3007a;     /* hover / mørkere magenta */
  --accent-soft: #fdeaf6;     /* meget lys magenta til baggrunde/noter */
  --ok: #2e7d32;
  --err: #c62828;
  --line: #e4e4ee;
  --bg: #f5f5f9;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(30, 20, 60, .07);
  padding: 1.75rem 2.25rem 2rem;
  width: 100%;
  max-width: 480px;
}

/* Diskret brand-wordmark */
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; color: var(--fg);
  margin-bottom: 1.5rem;
}
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* Trin-indikator: aktiv = fyldt, fuldført = hak/outline, kommende = grå */
.steps { display: flex; gap: .25rem; margin-bottom: 1.75rem; }
.step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: .4rem; font-size: .72rem; color: var(--muted); text-align: center;
}
.step .dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
}
.step.current { color: var(--accent-dark); font-weight: 600; }
.step.current .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done { color: var(--accent-dark); }
.step.done .dot { border-color: var(--accent); color: var(--accent); }

h1 { font-size: 1.4rem; margin: 0 0 .75rem; }
.lead { color: var(--fg); line-height: 1.55; }
.hint { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.note {
  color: var(--accent-dark); background: var(--accent-soft);
  padding: .5rem .75rem; border-radius: 8px; font-size: .85rem;
}
.error { color: var(--err); background: #ffebee; padding: .6rem .8rem; border-radius: 8px; }
.trust {
  display: flex; align-items: center; gap: .45rem;
  color: var(--muted); font-size: .82rem; margin-top: 1rem;
}
.trust svg { flex: none; }

label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
input {
  width: 100%; padding: .7rem .8rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; color: var(--fg);
}
input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
details { margin: 1rem 0; }
summary { cursor: pointer; color: var(--accent-dark); font-size: .9rem; }

button, .button {
  display: inline-block; margin-top: 1.25rem; padding: .8rem 1.4rem;
  font-size: 1rem; font-weight: 600; color: #fff; background: var(--accent);
  border: none; border-radius: 10px; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-dark); }
button:focus-visible, .button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-soft); outline-offset: 2px;
}
button.secondary {
  background: #fff; color: var(--accent-dark); border: 1px solid var(--accent);
  margin-top: .5rem; padding: .5rem 1rem; font-size: .9rem;
}

.instructions { line-height: 1.6; padding-left: 1.2rem; }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.8rem; font-weight: 700; letter-spacing: .15em;
  text-align: center; color: var(--accent-dark);
  background: var(--accent-soft); border: 2px dashed var(--accent);
  border-radius: 12px; padding: 1rem; margin: .75rem 0;
}
.spinner {
  width: 28px; height: 28px; margin: 1.25rem auto 0;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

.foot { color: var(--muted); font-size: .8rem; margin-top: 1.25rem; }
