/* ============================================================
   MailSurety — onboarding flow (builds on auth.css)
   ============================================================ */
.ob-card { width: min(480px, 100%); }

/* aside step list */
.ob-steps-aside { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.ob-steps-aside li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); transition: color .25s; }
.ob-steps-aside li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); flex: none; transition: all .25s; }
.ob-steps-aside li.now { color: var(--ink); }
.ob-steps-aside li.now .n { background: var(--grad-brand); color: var(--brand-ink); border-color: transparent; }
.ob-steps-aside li.done .n { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.4); color: var(--brand-2); }

/* progress dots */
.ob-progress { display: flex; align-items: center; gap: 6px; margin: 4px 0 26px; }
.ob-progress .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); flex: none; transition: background .25s, border-color .25s, transform .25s; }
.ob-progress .dot.active { background: var(--brand); border-color: transparent; }
.ob-progress i { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; }

/* steps */
.ob-step { display: none; }
.ob-step.active { display: block; animation: obIn .3s var(--ease); }
@keyframes obIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* DNS record card */
/* who manages the DMARC record — managed (CNAME) or self-managed (TXT) */
.dns-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 4px; }
.dns-opt { position: relative; text-align: left; padding: 14px 15px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-elev); cursor: pointer; transition: border-color .2s, background .2s; }
.dns-opt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.dns-opt > span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.dns-opt:hover { border-color: var(--brand-2); }
.dns-opt.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev)); }
.dns-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dns-opt-tag { position: absolute; top: -9px; right: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--brand); border-radius: var(--pill); padding: 3px 9px; }
/* the reassurance that makes delegation approvable: it covers DMARC only */
.dns-scope { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.dns-scope svg { width: 16px; height: 16px; color: var(--brand-2); flex: none; margin-top: 1px; }
@media (max-width: 620px) { .dns-choice { grid-template-columns: 1fr; } }

.dns-card { margin: 18px 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--bg-elev); }
.dns-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.dns-row:first-child { border-top: 0; }
.dns-row .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dns-row code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); word-break: break-all; }
.dns-row.val code { color: var(--brand-2); line-height: 1.5; }
.dns-row .copy { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap; }
@media (pointer: coarse) { .dns-row .copy { padding: 10px 13px; } }
.dns-row .copy:hover { border-color: var(--brand-2); color: var(--ink); }

/* hint */
.ob-hint { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; line-height: 1.5; }
.ob-hint svg { width: 17px; height: 17px; color: var(--brand-2); flex: none; margin-top: 1px; }

/* actions */
.ob-actions { display: flex; gap: 12px; margin-top: 20px; }
.ob-actions .btn { flex: 1; justify-content: center; }
.ob-actions .btn--ghost { flex: 0 0 auto; }

/* success */
.ob-success { text-align: center; padding: 10px 0 4px; }
.ob-check { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); box-shadow: 0 16px 40px -12px rgba(59,130,246,.75); animation: obPop .45s var(--ease) both; }
.ob-check svg { width: 32px; height: 32px; color: var(--brand-ink); }
@keyframes obPop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.ob-success h1 { font-size: clamp(24px, 3vw, 30px); }
.ob-success p { margin: 10px auto 22px; color: var(--ink-2); font-size: 15px; max-width: 400px; }
.ob-success .auth-submit { max-width: 320px; margin: 0 auto; }

/* toast (this page doesn't load dashboard.css) */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 18px; font-size: 13.5px; color: var(--ink); box-shadow: var(--sh-3); z-index: 60; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 460px) {
  .dns-row { grid-template-columns: 1fr auto; }
  .dns-row .k { grid-column: 1 / -1; }
}
