/* BE Voice sign-up. Colours and type are the Binary Elements design system:
   a dark brand side, a light form side, one cyan accent. */
:root {
  --bg: #f3f5f7; --panel: #fff; --panel2: #eef1f4; --line: #dfe4ea; --line2: #cfd6de; --edge: #c5ced8;
  --ink: #1f2933; --bright: #0d141c; --muted: #5f6b78; --lbl: #3b4652; --cyan: #0a7ea4; --on: #fff;
  --ok: #1d8348; --ok-bg: #e3f4ea; --warn: #9a6200; --warn-bg: #fff6e0; --warn-edge: #e6c77a; --bad: #c4302b;
  --sel-bg: #e2f2f7; --focus: 0 0 0 3px rgba(10,126,164,.22);
  --d-bg: #0a0d12; --d-panel: #0d1117; --d-line: #1b222b; --d-line2: #2a333f; --d-ink: #d7dde5; --d-bright: #e6ecf3;
  --d-muted: #7d8794; --d-cyan: #5fd3f0; --d-sel: #0d2229; --d-sel-edge: #2f6f80;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: #0a66a8; } a:hover { color: #084f82; }
.hidden { display: none !important; }
.page { display: flex; flex-wrap: wrap; min-height: 100vh; }

.side { flex: 1 1 380px; min-width: 0; background: var(--d-bg) radial-gradient(var(--d-line) 1px, transparent 1px) 0 0 / 22px 22px;
  color: var(--d-ink); padding: 32px 36px 36px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { font-weight: 600; font-size: 17px; letter-spacing: .06em; color: var(--d-bright); }
.brand i { width: 1px; height: 18px; background: var(--d-line2); }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side .eyebrow { color: var(--d-muted); }
.side h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; color: var(--d-bright); text-wrap: balance; }
.side h1 span { color: var(--d-cyan); }
.side p { margin: 0; font-size: 16px; color: #b8c2cc; max-width: 400px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 14px; color: var(--d-muted); }
.steps .rail { display: flex; flex-direction: column; align-items: center; }
.steps .dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--d-panel); border: 1px solid var(--d-line2); }
.steps .rail::after { content: ""; width: 2px; flex: 1; min-height: 16px; background: var(--d-line); }
.steps li:last-child .rail::after { background: transparent; }
.steps .name { padding: 3px 0 16px; }
.steps li.done { color: #b8c2cc; }
.steps li.done .dot { background: var(--d-sel); color: var(--d-cyan); border-color: var(--d-sel-edge); }
.steps li.done .rail::after { background: var(--d-sel-edge); }
.steps li.now { color: var(--d-bright); font-weight: 600; }
.steps li.now .dot { background: var(--d-cyan); color: #06141a; border-color: var(--d-cyan); box-shadow: 0 0 0 4px rgba(95,211,240,.22); }
.preview { margin-top: auto; background: var(--d-panel); border: 1px solid var(--d-line2); border-radius: 6px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; }
.preview .top { display: flex; align-items: center; justify-content: space-between; }
.preview .live { display: inline-flex; align-items: center; gap: 8px; }
.preview .live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #43d17a; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 18px; border-radius: 2px; background: var(--d-cyan); animation: bar 1.4s ease-in-out infinite; }
.wave i:nth-child(2n) { height: 10px; animation-delay: .2s; } .wave i:nth-child(3n) { height: 22px; animation-delay: .45s; }
.wave i:nth-child(5n) { height: 13px; animation-delay: .7s; }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.bubble { max-width: 90%; border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.bubble.caller { align-self: flex-end; background: #171d26; border: 1px solid var(--d-line2); }
.bubble.ai { align-self: flex-start; background: var(--d-sel); border: 1px solid var(--d-sel-edge); color: var(--d-bright); }
.bubble.ai b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--d-cyan); margin-bottom: 4px; }
.promise { font-family: var(--mono); font-size: 12px; color: var(--d-muted); }

.main { flex: 999 1 520px; min-width: 0; padding: 28px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.top, .card, .foot { width: 100%; max-width: 640px; }
.main > .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.bar { display: flex; gap: 6px; flex: 1; max-width: 300px; }
.bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); }
.bar i.on { background: var(--cyan); }
.card { background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; padding: 36px; }
.card > section { display: flex; flex-direction: column; gap: 20px; }
.card .eyebrow.step { color: var(--cyan); margin-bottom: 20px; }
h2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--bright); text-wrap: balance; }
h2 small { font-size: inherit; font-weight: 400; color: var(--muted); }
.lead { margin: -8px 0 0; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > .grow { flex: 1 1 200px; }
label { font-size: 13px; font-weight: 500; color: var(--lbl); display: block; margin-bottom: 6px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--bright); background: #fff; border: 1px solid var(--edge);
  border-radius: 6px; padding: 0 14px; height: 50px; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--focus); }
button, .btn { font-family: var(--mono); font-size: 13px; font-weight: 500; height: 50px; padding: 0 22px; border-radius: 6px;
  cursor: pointer; background: #fff; border: 1px solid var(--edge); color: var(--bright); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; }
button:hover { border-color: #a9b4c0; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.primary, .primary:hover { background: var(--cyan); border-color: var(--cyan); color: var(--on); font-size: 14px; padding: 0 26px; }
.plain { background: transparent; border-color: transparent; color: var(--lbl); padding: 0 10px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.nav .primary { margin-left: auto; }
.error { background: #fdecea; border: 1px solid #efb3ae; color: var(--bad); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-top: 20px; }
.code { letter-spacing: .3em; font-family: var(--mono); font-size: 24px; font-weight: 500; height: 60px; max-width: 260px; text-align: center; }
.sent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sent::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.choices button { flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 14px; text-align: left; font-family: var(--sans); }
.choices b { font-size: 15px; font-weight: 600; }
.choices span { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.choices button[aria-pressed="true"] { border-color: var(--cyan); background: var(--sel-bg); box-shadow: var(--focus); }
.note { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; background: var(--warn-bg); border: 1px solid var(--warn-edge); border-radius: 6px; padding: 10px 12px; }
.note b { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--warn); align-self: center; }
.hero { background: var(--d-bg) radial-gradient(var(--d-line) 1px, transparent 1px) 0 0 / 22px 22px; border-radius: 6px; padding: 26px; }
.hero .eyebrow { color: var(--d-muted); }
.hero .eyebrow.wait { color: #f5b942; }
.hero .num { font-family: var(--mono); font-size: 40px; line-height: 1.2; font-weight: 500; color: var(--d-cyan); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: flex; gap: 14px; padding-bottom: 14px; position: relative; }
.flow li::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--cyan); flex-shrink: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 2px; background: var(--line2); }
.flow li:last-child::before { background: var(--ok); }
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel2); border-radius: 6px; }
.person .av { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--lbl); color: #fff; font-size: 13px; font-weight: 600; }
.person:first-child .av { background: var(--cyan); }
.person .who { flex: 1 1 160px; min-width: 0; }
.person .who b { display: block; color: var(--bright); }
.person .who span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.person .ext { font-family: var(--mono); font-size: 13px; background: #fff; border: 1px solid var(--line2); border-radius: 6px; padding: 4px 10px; }
.people { display: flex; flex-direction: column; gap: 8px; }
.add { border: 1px dashed var(--edge); border-radius: 6px; padding: 14px; }
.livehead { display: flex; align-items: center; gap: 14px; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 24px; }
.livehead .eyebrow { color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tiles div { background: var(--panel2); border-radius: 6px; padding: 16px; }
.tiles b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--bright); }
.foot { font-size: 13px; color: var(--muted); text-align: center; }
pre.pw { margin: 0; background: var(--panel2); border-radius: 6px; padding: 12px 14px; font-family: var(--mono); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
@media (max-width: 860px) { .preview { display: none; } .side { padding: 24px; gap: 20px; } .side h1 { font-size: 30px; } .card { padding: 24px; } }
#waiting, #done { display: flex; flex-direction: column; gap: 20px; }
#waiting p, #done p { margin: 0; }
.livehead > span:last-child { display: flex; flex-direction: column; }
.livehead .hint { margin: 0; }
#teamPw { display: flex; flex-direction: column; gap: 6px; }
.hero .num { font-size: clamp(26px, 8vw, 40px); white-space: nowrap; }
