/* Onboarding: header, registered-status card and the four-step stepper. */
.head { display: grid; gap: 4px; padding: clamp(8px, 3vw, 20px) 0 clamp(20px, 5vw, 32px); }
.head .h1 { margin-top: 4px; }
.quiet-link { justify-self: start; margin-top: 8px; padding: 6px 0; color: var(--muted); font-size: 0.9rem; }
.quiet-link:hover { color: var(--ink); }

.page > .notice { margin-bottom: 20px; }

/* Registered status card */
.status {
  display: grid; gap: 14px; margin-bottom: clamp(24px, 5vw, 36px); padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-h { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.facts { display: grid; gap: 12px; }
.facts > div { min-width: 0; }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 2px; font: 0.88rem/1.5 var(--mono); overflow-wrap: anywhere; word-break: break-all; }
.countdown { display: block; margin-top: 2px; font: 0.9rem var(--font); color: var(--warn); font-variant-numeric: tabular-nums; }

/* Stepper (mirrors the landing page steps) */
.stepper { display: grid; counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 16px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 1px; background: var(--line); }
.dot {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.dot .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.step.current .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step-main { min-width: 0; padding-top: 5px; }
.step-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.step.todo .step-title { color: var(--muted); }
.step-sum { margin-top: 2px; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.step-body { margin-top: 14px; display: grid; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.step-body > p { max-width: 56ch; }
.step-body .btn { max-width: 100%; }
.step-body .live { display: grid; gap: 10px; }
.step-body .live:empty { display: none; }
.more { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.more summary { cursor: pointer; width: fit-content; }
.more p { margin-top: 4px; }

.records { display: grid; gap: 8px; }
.records dd { margin: 0; }
.records .kv-val { padding-right: 2px; }

.code-wrap { display: grid; gap: 8px; min-width: 0; }
.code-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-wrap .code { white-space: pre; }
.notes { display: grid; gap: 8px; padding-left: 18px; list-style: disc; color: var(--muted); font-size: 0.95rem; }
.notes li::marker { color: var(--line); }

@media (max-width: 400px) {
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; }
  .dot { width: 32px; height: 32px; }
  .step:not(:last-child)::after { left: 15px; top: 38px; }
  .step-body { padding: 16px; border-radius: 18px; }
  .btn { padding: 0 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .step-body, .status, .notice { animation: rise 0.45s var(--ease) both; }
}

.dns-host { margin: 2px 0 0; }
