/* ---------- Auth + onboarding ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 32px; }
.auth-top .muted a { font-weight: 500; }
.auth-center { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 20px 48px; }
.auth-col { width: 100%; max-width: 380px; }
.auth-col.wide { max-width: 520px; }
.auth h1 { font-size: 26px; letter-spacing: -0.025em; }
.auth-sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.auth-form { margin-top: 28px; }
.auth-form .btn-lg { margin-top: 20px; }
.auth-foot { display: flex; justify-content: center; gap: 20px; padding: 20px; font-size: 12.5px; color: var(--faint); }
.auth-foot a { color: var(--faint); }

.newbox { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.newbox h2 { font-size: 15px; }
.newbox p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.newbox .btn + .btn { margin-top: 10px; }
.newbox .fine { font-size: 12.5px; color: var(--faint); margin-top: 12px; text-align: center; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 3px; border-radius: 2px; background: var(--surface-2); transition: background var(--t); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #DC6803; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #12B76A; }
.pw-meter[data-s="4"] i { background: var(--success); }

.otp { display: flex; gap: 8px; margin-top: 24px; }
.otp input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 600; border: 1px solid var(--border-strong); border-radius: var(--r); outline: none; font-variant-numeric: tabular-nums; transition: border-color var(--t), box-shadow var(--t); }
.otp input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
@media (max-width: 400px) { .otp input { width: 42px; height: 50px; } }

/* Wizard */
.wiz-progress { height: 2px; background: var(--surface-2); }
.wiz-progress i { display: block; height: 100%; background: var(--accent); transition: width 260ms var(--ease); }
.wiz-step { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.wiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.wiz-actions .hint { display: inline-flex; align-items: center; gap: 6px; }
.wiz-body { margin-top: 28px; animation: rise 200ms var(--ease); }

.plan-pick { display: grid; gap: 10px; }
.plan-opt { display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); cursor: pointer; transition: border-color var(--t), box-shadow var(--t); background: var(--bg); text-align: left; }
.plan-opt:hover { border-color: #AEB6C4; }
.plan-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border-strong); margin-top: 2px; }
.plan-opt.on .radio { border: 5px solid var(--accent); }
.plan-opt .name { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.plan-opt .desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plan-opt .bul { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.plan-opt .price { text-align: right; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.plan-opt .price small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.creating { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 14vh; }
.creating .spinner { width: 28px; height: 28px; border-width: 2.5px; }
.creating h1 { margin-top: 24px; font-size: 22px; }
.creating-steps { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 14px; color: var(--muted); }
.creating-steps div { display: flex; align-items: center; gap: 10px; transition: color var(--t); }
.creating-steps div.done { color: var(--ink); }
.creating-steps div.done svg { color: var(--success); }
.creating-steps svg { color: var(--border-strong); }

/* Trial step: what's due and when, then the card */
.trial-sum { padding: 4px 16px 14px; }
.trial-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink-2); }
.trial-row b { color: var(--ink); font-weight: 600; }
.trial-row .segmented { flex-wrap: wrap; justify-content: flex-end; }
.trial-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--muted); }
.trial-note svg { flex: none; margin-top: 2px; color: var(--accent); }
.card-field { display: grid; grid-template-columns: 34px minmax(0, 1fr) 76px 56px 64px; align-items: center; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg); transition: border-color var(--t), box-shadow var(--t); }
.card-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.card-field.invalid { border-color: var(--danger); }
.card-field input { min-width: 0; height: 100%; border: 0; outline: none; background: transparent; padding: 0 8px; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.card-field input:first-of-type { padding-left: 2px; }
.card-field .cc-brand { display: grid; place-items: center; color: var(--faint); }
.card-field .cc-name { font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--accent); animation: pv-dot 200ms var(--ease); }
.card-pending { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--r); font-size: 13.5px; color: var(--muted); }
.card-pending svg { flex: none; margin-top: 2px; }
.card-pending b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 480px) { .card-field { grid-template-columns: 30px minmax(0, 1fr) 64px 48px; } .card-field input[name="ccZip"] { display: none; } }

/* Setup guide: questions on the left, a live copy of the workspace on the right */
.setup-split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 400px); gap: 64px; align-items: start; justify-content: center; width: 100%; max-width: 1040px; }
.setup-split .auth-col.wide { max-width: none; }
.pv { position: sticky; top: 32px; margin-top: 34px; animation: rise 320ms var(--ease); }
/* Faint concentric rings behind the window, echoing the logo */
.pv::before { content: ""; position: absolute; z-index: -1; top: -36px; right: -28px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid var(--accent-tint-2); box-shadow: 0 0 0 28px var(--bg), 0 0 0 29px var(--accent-tint-2), 0 0 0 56px var(--bg), 0 0 0 57px var(--accent-tint); pointer-events: none; }
.pv-window { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pv-bar span { margin-left: 10px; font-size: 11px; color: var(--faint); font-family: var(--mono); }
.pv-app { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.pv-side { border-right: 1px solid var(--border); background: var(--surface); padding: 12px 8px; }
.pv-ws { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; }
.pv-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.pv-ws-text { min-width: 0; display: flex; flex-direction: column; }
.pv-ws-text b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-ws-text small { font-size: 10.5px; color: var(--muted); }
.pv-nav { display: flex; flex-direction: column; gap: 2px; }
.pv-nav span { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 11.5px; color: var(--faint); transition: color 220ms var(--ease), background 220ms var(--ease); }
.pv-nav span svg { flex: none; }
.pv-nav span.on { color: var(--ink); background: var(--bg); box-shadow: var(--shadow-xs); font-weight: 500; }
.pv-nav span.lit { color: var(--accent); background: var(--accent-tint); font-weight: 500; }
.pv-nav span.lit::after { content: ""; position: absolute; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pv-dot 280ms var(--ease); }
.pv-main { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.pv-hello { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pv-receipt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 11.5px; }
.pv-r-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.pv-r-head .pv-logo { width: 22px; height: 22px; border-radius: 6px; font-size: 9.5px; }
.pv-r-head > span { display: flex; flex-direction: column; min-width: 0; }
.pv-r-head b { font-size: 12px; }
.pv-r-head small { font-size: 10.5px; color: var(--muted); }
.pv-r-head small.ghost { color: var(--faint); font-style: italic; }
.pv-r-line, .pv-r-total { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.pv-r-line.muted { color: var(--muted); }
.pv-r-total { padding-top: 8px; border-top: 1px solid var(--border); font-weight: 600; }
.pv-r-total span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
.pv-r-foot { font-size: 10.5px; color: var(--faint); }
.pv-cap { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.pv-pop { border-radius: 3px; animation: pv-pop 700ms var(--ease); }
@keyframes pv-pop { from { background: var(--accent-tint-2); } to { background: transparent; } }
@keyframes pv-dot { from { transform: scale(0); } }
@media (max-width: 1000px) { .setup-split { grid-template-columns: minmax(0, 520px); } .pv { display: none; } }
@media (prefers-reduced-motion: reduce) { .pv, .pv-pop, .pv-nav span.lit::after { animation: none; } .pv-nav span { transition: none; } }

@media (max-width: 600px) {
  .auth-top { padding: 0 16px; height: 60px; }
  .auth-center { padding-top: 3vh; }
  .auth h1 { font-size: 22px; }
}
