/* Signup wizard */
body.wizard { min-height: 100dvh; }
.wz-top { position: sticky; top: 0; z-index: 40; background: rgba(250,250,247,.9); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.wz-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wz-top .meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); }
.wz-progress { height: 3px; background: var(--line); }
.wz-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 400ms var(--ease); }

.wz { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.wz-rail { position: sticky; top: 112px; display: grid; gap: 24px; }
.wz-steps { list-style: none; display: grid; gap: 2px; }
.wz-steps button { width: 100%; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.wz-steps button:hover:not([disabled]) { background: rgba(11,13,18,.04); color: var(--ink); }
.wz-steps button[disabled] { cursor: default; }
.wz-steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wz-steps .n .i { width: 14px; height: 14px; }
.wz-steps [aria-current="step"] { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.wz-steps [aria-current="step"] .n { background: var(--ink); border-color: var(--ink); color: #fff; }
.wz-steps .done .n { background: var(--success-soft); border-color: transparent; color: var(--success-ink); }
.wz-sum { padding: 20px; display: grid; gap: 14px; font-size: 14px; }
.wz-sum h3 { font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.wz-sum dl { display: grid; gap: 10px; margin: 0; }
.wz-sum dl div { display: flex; justify-content: space-between; gap: 12px; }
.wz-sum dt { color: var(--ink-2); }
.wz-sum dd { margin: 0; font-weight: 600; text-align: right; }

.wz-main { min-width: 0; }
.wz-panel { padding: 40px; }
.wz-panel[hidden] { display: none; }
.wz-panel.enter { animation: panelIn 280ms var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.wz-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 60ch; }
.wz-head .kick { font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wz-head h1 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.wz-head p { color: var(--ink-2); font-size: 17px; }
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.wz-foot .right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sub-h { font-size: 16px; font-weight: 600; margin: 32px 0 6px; }
.sub-p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* step 1 */
.url-row { display: flex; gap: 10px; }
.url-row .input-group { flex: 1; min-width: 0; }
.skel { display: grid; gap: 14px; margin-top: 28px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #EFEDE8 0, #F8F7F4 40%, #EFEDE8 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel .status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.found { margin-top: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.found-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.found-body { padding: 24px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.found-body .full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 48px; padding: 7px; border: 1px solid var(--control); border-radius: var(--r-ctl); background: var(--surface); }
.chips:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 31, .28); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 14px; font-weight: 500; }
.chip button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.chip button:hover { background: rgba(11,13,18,.08); color: var(--ink); }
.chip button .i { width: 14px; height: 14px; }
.chips input { flex: 1; min-width: 120px; border: 0; outline: none; background: transparent; font-size: 15px; height: 32px; padding: 0 6px; }
.hours-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--surface-2); font-size: 14.5px; }

/* step 2 */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.voice { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.voice:hover { border-color: #B5B1A8; }
.voice input { position: absolute; opacity: 0; pointer-events: none; }
.voice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
.voice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.voice .av { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; font-size: 17px; background: var(--surface-2); color: var(--ink); }
.voice b { display: block; font-size: 16px; font-weight: 600; }
.voice .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; font-size: 13px; color: var(--ink-2); }
.voice .play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; position: relative; z-index: 1; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.voice .play:hover { border-color: var(--ink); }
.voice .play .i { width: 16px; height: 16px; }
.voice .play.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.voice .check-mark { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: none; place-items: center; }
.voice .check-mark .i { width: 12px; height: 12px; }
.voice:has(input:checked) .check-mark { display: grid; }
.voice .bars { display: none; gap: 2px; align-items: center; height: 14px; }
.voice .bars i { width: 2px; height: 40%; border-radius: 2px; background: var(--accent); animation: wv 700ms var(--ease) infinite alternate; }
.voice .bars i:nth-child(2) { animation-delay: -.2s; } .voice .bars i:nth-child(3) { animation-delay: -.45s; } .voice .bars i:nth-child(4) { animation-delay: -.1s; }
.voice.playing .bars { display: inline-flex; }
@keyframes wv { from { height: 25%; } to { height: 100%; } }

/* step 3 */
.hours-grid { display: grid; gap: 4px; }
.hrow { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; min-height: 56px; padding: 4px 0; }
.hrow + .hrow { border-top: 1px solid #F0EEEA; }
.hrow .times { display: flex; align-items: center; gap: 8px; }
.hrow .times .select { width: 140px; min-height: 44px; font-size: 15px; }
.hrow .closed { color: var(--ink-2); font-size: 14.5px; }
.rule-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.rule + .rule { border-top: 1px solid var(--line); }
.rule b { font-weight: 500; font-size: 15px; }
.rule .seg button { min-height: 36px; font-size: 13.5px; padding: 0 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* step 4 */
.test { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.test-l { align-self: start; padding: 28px; display: grid; gap: 16px; align-content: start; background: var(--ink); color: #fff; border-radius: var(--r-card); }
.test-l .lbl { color: #B9BCC4; font-size: 14px; }
.test-l .num-big { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.test-l p { color: #C9CBD1; font-size: 14.5px; }
.test-l .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }
.test-l .btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.test-r { display: flex; flex-direction: column; overflow: hidden; min-height: 420px; }
.test-r .th { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.test-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.test-empty { margin: auto; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--ink-2); font-size: 14.5px; max-width: 32ch; }
.test-empty .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.msg { display: grid; gap: 4px; max-width: 88%; animation: panelIn 240ms var(--ease); }
.msg .who { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.msg p { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.msg.ai p { background: var(--surface-2); border-top-left-radius: 4px; }
.msg.caller { margin-left: auto; justify-items: end; }
.msg.caller p { background: var(--ink); color: #fff; border-top-right-radius: 4px; }
.checks { list-style: none; display: grid; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .i { width: 18px; height: 18px; color: var(--success-ink); }

/* step 5 */
.carriers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.carriers button { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: all var(--t-fast) var(--ease); }
.carriers button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fwd { padding: 24px; display: grid; gap: 20px; }
.fwd ol { list-style: none; display: grid; gap: 18px; counter-reset: f; }
.fwd li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; font-size: 15.5px; }
.fwd li::before { counter-increment: f; content: counter(f); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.code-big { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 10px 10px 16px; border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line); font-size: 22px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.off-note { font-size: 13.5px; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--line); }
.verify { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin-top: 16px; border-radius: var(--r-card); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.verify b { display: block; font-size: 16px; }
.verify p { font-size: 14px; color: #6A3B25; }
.verify.ok { border-color: #BFE3CC; background: var(--success-soft); }
.verify.ok p { color: var(--success-ink); }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.mode label { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.mode label b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.mode label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mode input { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; }

/* step 6 */
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick label { position: relative; display: grid; gap: 4px; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.pick label:hover { border-color: #B5B1A8; }
.pick input { position: absolute; opacity: 0; }
.pick label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
.pick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick b { font-size: 16px; }
.pick .p { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pick .p span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.pick small { color: var(--ink-2); font-size: 13.5px; }
.pick .tag { position: absolute; top: 16px; right: 16px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-top: 24px; }
.paybox { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-card); border: 1.5px dashed var(--line-2); background: var(--surface); }
.paybox .ph { display: grid; place-items: center; gap: 8px; min-height: 120px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink-2); text-align: center; font-size: 14px; padding: 16px; }
.paybox .ph b { color: var(--ink); font-size: 15px; }
.total { padding: 24px; display: grid; gap: 12px; align-content: start; font-size: 15px; }
.total div { display: flex; justify-content: space-between; gap: 12px; }
.total .due { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.total .due b { font-size: 24px; letter-spacing: -0.02em; }

.done-screen { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 56px 24px; }
.done-screen .ok { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--success-soft); color: var(--success-ink); }
.done-screen .ok .i { width: 28px; height: 28px; }
.done-screen p { color: var(--ink-2); max-width: 44ch; }

.mbar { display: none; }

@media (max-width: 1000px) {
  .wz { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .wz-rail { display: none; }
  .wz-head .kick { display: none; }
  .mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
  .mbar b { color: var(--ink); }
}
@media (max-width: 720px) {
  .wz { padding-bottom: 120px; }
  .wz-panel { padding: 24px 20px; }
  .wz-head { margin-bottom: 24px; }
  .wz-top .meta .hide-m { display: none; }
  .url-row { flex-direction: column; }
  .found-body, .two, .voices, .mode, .pick, .checkout, .test { grid-template-columns: 1fr; }
  .found-body { padding: 20px 16px; }
  .hrow { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
  .hrow .times .select { width: auto; flex: 1; }
  .rule { flex-direction: column; align-items: flex-start; gap: 8px; }
  .verify { flex-direction: column; align-items: flex-start; }
  .code-big { font-size: 18px; }
  .wz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .wz-foot .right { flex: 1; justify-content: flex-end; }
  .wz-foot .right .btn-primary { flex: 1; }
  .test-r { min-height: 360px; }
}
