:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e3e6eb;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #8a93a1;
  --accent: #0e9f6e;
  --accent-hover: #0b8a5f;
  --accent-soft: #e6f6ef;
  --accent-text: #ffffff;
  --danger: #d9443a;
  --danger-soft: #fdecea;
  --warn: #b7791f;
  --warn-soft: #fdf5e6;
  --info-soft: #eaf2fd;
  --c-clean: #0e9f6e;
  --c-landline: #6b7280;
  --c-dnc: #d9443a;
  --c-state: #e8833a;
  --c-litigator: #7c3aed;
  --c-voip: #2f7de1;
  --c-failed: #b7791f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --surface: #161a21;
    --surface-2: #1d222b;
    --border: #2a303b;
    --text: #e8ebf0;
    --text-2: #aab2bf;
    --text-3: #768091;
    --accent: #20c087;
    --accent-hover: #34d399;
    --accent-soft: #12352a;
    --accent-text: #06120d;
    --danger: #f06a60;
    --danger-soft: #3a1b19;
    --warn: #e0a64a;
    --warn-soft: #362a14;
    --info-soft: #172538;
    --c-clean: #20c087;
    --c-landline: #8b93a1;
    --c-dnc: #f06a60;
    --c-state: #f19a55;
    --c-litigator: #a78bfa;
    --c-voip: #5b9cf0;
    --c-failed: #e0a64a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: 13px; }
pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; margin: 0 0 1em;
}
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--text-3); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-lg { padding: 12px 20px; font-size: 16px; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--accent); padding: 0; cursor: pointer; font: inherit; }

label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; resize: vertical;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; margin: 0; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check .desc { display: block; font-size: 13px; color: var(--text-2); }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-tight { padding: 0; overflow: hidden; }
.card h2 { margin-bottom: 12px; }
.stat .label { font-size: 13px; color: var(--text-2); }
.stat .value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; }
.stat .sub { font-size: 12px; color: var(--text-3); }

.notice {
  border-radius: 8px; padding: 10px 14px; font-size: 14px; border: 1px solid transparent;
}
.notice-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-ok { background: var(--accent-soft); color: var(--accent); }
.notice-info { background: var(--info-soft); color: var(--text); }
.testbar {
  background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 13px;
  padding: 6px 16px; border-bottom: 1px solid var(--border); font-weight: 500;
}

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.badge-ok { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-2); }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); transition: width .4s ease; }

.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.bar > span { display: block; height: 100%; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.legend-item { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.legend-item .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; transform: translateY(1px); }
.legend-item .n { font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }

.spinner {
  width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- public site ---------- */
.site-nav { display: flex; align-items: center; gap: 20px; padding: 16px 24px; max-width: 1120px; margin: 0 auto; }
.logo { font-weight: 750; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.site-nav .links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.site-nav .links a:not(.btn) { color: var(--text-2); font-weight: 500; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; letter-spacing: -.03em; line-height: 1.08; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero .checks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-top: 18px; }
.hero .checks span::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.section { padding: 56px 0; }
.section h2 { font-size: 30px; letter-spacing: -.02em; }
.section .kicker { color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.feature h3 { font-size: 16px; }
.feature p { color: var(--text-2); font-size: 14px; margin: 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; margin-bottom: 10px;
}
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 24px; }
.plan { text-align: left; }
.plan .name { font-weight: 600; color: var(--text-2); }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .per { font-size: 13px; color: var(--text-3); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--text-2); margin: 8px 0 0; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 13px; margin-top: 40px; }
.demo-card .row-result { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.demo-card .row-result:last-child { border-bottom: none; }

/* ---------- auth ---------- */
.auth { max-width: 400px; margin: 48px auto; padding: 0 16px; }
.auth .card { padding: 28px; }
.auth h1 { font-size: 22px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 4px 8px 18px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px;
  color: var(--text-2); font-weight: 500; font-size: 14px;
}
.nav-link:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.nav-link svg { width: 17px; height: 17px; flex: none; }
.sidebar .credits-box { margin-top: auto; padding: 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.sidebar .credits-box strong { display: block; font-size: 18px; }
.main { padding: 28px 32px 60px; max-width: 1100px; width: 100%; }
.page-head { margin-bottom: 20px; }
.page-head p { margin: 0; color: var(--text-2); }
.mobile-top { display: none; }

.dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 36px 20px; text-align: center;
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .big { font-weight: 600; font-size: 16px; }

.preview-table th.phone-col, .preview-table td.phone-col { background: var(--accent-soft); }
.preview-table th label { display: flex; gap: 6px; align-items: center; margin: 0; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text); cursor: pointer; }
.preview-table td { font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.summary-list { display: grid; gap: 8px; font-size: 14px; }
.summary-list div { display: flex; justify-content: space-between; }
.summary-list .total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 600; }

.result-big { font-size: 22px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; }

.key-box { display: flex; gap: 8px; }
.key-box input { font-family: var(--mono); font-size: 13px; }

.chart { width: 100%; height: 180px; }
.chart .axis { stroke: var(--border); }
.chart text { fill: var(--text-3); font-size: 11px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { font-size: 34px; }
  .site-nav .links a.hide-sm { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; inset: 0 30% 0 0; z-index: 20; height: 100%; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar.open { display: flex; }
  .mobile-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .main { padding: 20px 16px 48px; }
  .kv { grid-template-columns: 1fr; }
}

/* =====================================================================
   Brand, landing page, and motion
   ===================================================================== */

.logo-mark { background: none; width: 28px; height: 28px; color: var(--accent); display: inline-flex; }
.logo-mark svg { width: 100%; height: 100%; }
.wordmark { font-weight: 600; letter-spacing: -.02em; }
.wordmark b { font-weight: 800; color: var(--accent); }

/* ---- hero ---- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 78% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(500px 260px at 10% 10%, color-mix(in srgb, var(--c-voip) 10%, transparent), transparent 70%);
}
.hero-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero h1 .hl { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

/* ---- hero demo card ---- */
.scrub-demo { padding: 18px; position: relative; }
.scrub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.scrub-file { display: flex; align-items: center; gap: 8px; color: var(--text); }
.scrub-file svg { color: var(--text-3); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--warn);
  background: var(--warn-soft); padding: 3px 10px; border-radius: 999px; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.scrub-rows { height: 236px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  background: var(--surface-2); max-height: 60px; transition: opacity .45s, transform .45s, max-height .45s, padding .45s, margin .45s; flex: none; }
.srow.entering { animation: row-in .45s cubic-bezier(.2,.8,.3,1); }
.srow.leaving { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -6px; }
.srow-text { display: flex; flex-direction: column; min-width: 0; }
.srow-text .mono { font-size: 13.5px; }
.srow-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; animation: chip-pop .3s ease-out; }
.chip-wait { background: var(--surface); color: var(--text-3); animation: none; }
.chip-ok { background: var(--accent-soft); color: var(--c-clean); }
.chip-bad { background: var(--danger-soft); color: var(--danger); }
.chip-warn { background: var(--warn-soft); color: var(--c-state); }
.chip-lit { background: color-mix(in srgb, var(--c-litigator) 14%, transparent); color: var(--c-litigator); }
.dot-pulse { display: inline-block; width: 18px; height: 6px; background:
  radial-gradient(circle, currentColor 2.5px, transparent 3px) 0 50% / 6px 6px repeat-x; animation: dots 1s steps(3) infinite; }
.mini-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 14px 0 8px; }
.mini-bar span { display: block; height: 100%; transition: width .5s ease; }
.mini-bar .g { background: var(--c-clean); }
.mini-bar .r { background: var(--c-dnc); }
.scrub-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.scrub-foot b { color: var(--text); font-variant-numeric: tabular-nums; margin-left: 4px; }

/* ---- landing sections ---- */
.section-head { max-width: 640px; margin-bottom: 8px; }
.section-head p { color: var(--text-2); font-size: 16px; }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.cost-card .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--danger); margin-bottom: 6px; }
.cost-card p { color: var(--text-2); font-size: 14px; margin: 0; }
.feature { transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 10px 24px -12px rgba(16,24,40,.25); }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--accent-soft); color: var(--accent); }
.feature-icon svg { width: 20px; height: 20px; }
.feature .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-left: 6px; }
.step-visual { height: 90px; border-radius: 10px; background: var(--surface-2); margin-bottom: 14px; display: grid; place-items: center; color: var(--accent); overflow: hidden; position: relative; }
.step-visual svg { width: 42px; height: 42px; }
.step-visual.float svg { animation: float 2.4s ease-in-out infinite; }

.compare { margin-top: 28px; }
.compare table td, .compare table th { padding: 12px 16px; }
.compare th:nth-child(2), .compare td:nth-child(2) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare th:nth-child(2) { color: var(--accent); }
.compare td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.save { font-size: 12px; font-weight: 700; color: var(--c-clean); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.yes { color: var(--c-clean); font-weight: 700; }

.calc { margin-top: 20px; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); }
.calc .calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.calc .calc-out .v { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.calc .calc-out .us .v { color: var(--accent); }

.switch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.url-swap { font-family: var(--mono); font-size: 13px; }
.url-swap .old { color: var(--text-3); text-decoration: line-through; }
.url-swap .new { color: var(--accent); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.final-cta { text-align: center; padding: 48px 24px; background:
  radial-gradient(500px 200px at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--surface); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- uploader ---- */
.dropzone .up-icon { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--accent); animation: float 2.6s ease-in-out infinite; }
.dropzone.over { transform: scale(1.01); }
.dropzone.over .up-icon { animation: bounce .6s ease-in-out infinite; }
.upload-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--surface-2); animation: row-in .4s ease; }
.upload-card .doc { position: relative; width: 44px; height: 54px; flex: none; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.upload-card .doc svg { width: 22px; height: 22px; }
.upload-card .doc.scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent); animation: scan 1.1s linear infinite; }
.upload-card .grow { flex: 1; min-width: 0; }
.progress.striped > div { background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%);
  background-size: 18px 18px; animation: stripes .8s linear infinite; }

/* ---- processing ---- */
.proc { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--surface-2); }
.ring-bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.3,.7,.3,1); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.stages li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.stages li { transition: color .3s; }
.stages li .st { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; transition: background .3s, box-shadow .3s; }
.stages li.active { color: var(--text); font-weight: 600; }
.stages li.active .st { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.2s ease-in-out infinite; }
.cycler { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.cycler span:last-child { transition: opacity .25s, transform .25s; }
.cycler .out { opacity: 0; transform: translateY(-4px); }
.stream { position: relative; height: 56px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.stream-gate { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 12px var(--accent); }
.pill { position: absolute; left: -30px; width: 22px; height: 8px; border-radius: 999px; background: var(--text-3); opacity: .8;
  animation-name: flow; animation-timing-function: linear; animation-fill-mode: forwards; }
.pill-ok { --after: var(--c-clean); }
.pill-bad { --after: var(--c-dnc); --drop: 40px; }
.pill-warn { --after: var(--c-state); --drop: 40px; }
.pill-lit { --after: var(--c-litigator); --drop: 40px; }

/* ---- completion ---- */
.done-banner { display: flex; gap: 16px; align-items: center; animation: row-in .5s cubic-bezier(.2,.8,.3,1); }
.done-banner h2 { margin: 0; }
.check-anim circle { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease-out forwards; }
.check-anim path { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .5s ease-out forwards; }
.bar.grow > span { transition: width 1s cubic-bezier(.2,.8,.3,1); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: confetti-fly 1.9s cubic-bezier(.15,.6,.35,1) forwards; }

/* ---- auth ---- */
.auth-page { position: relative; min-height: 100vh; overflow: hidden; }
.auth-page::before, .auth-page::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: -1; }
.auth-page::before { background: var(--accent); top: -160px; right: -120px; animation: drift 16s ease-in-out infinite alternate; }
.auth-page::after { background: var(--c-voip); bottom: -200px; left: -160px; opacity: .2; animation: drift 20s ease-in-out infinite alternate-reverse; }
.auth .card { animation: card-in .5s cubic-bezier(.2,.8,.3,1); }
.auth-success { text-align: center; padding: 18px 0 6px; animation: row-in .4s ease; }
.auth-success .check-anim { margin: 0 auto 12px; display: block; }

/* ---- keyframes ---- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes chip-pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes dots { from { background-position: 0 50%; } to { background-position: 18px 50%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scan { to { top: 100%; } }
@keyframes stripes { to { background-position: 18px 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.1); } }
@keyframes flow {
  0% { transform: translateX(0); background: var(--text-3); }
  49% { background: var(--text-3); }
  50% { background: var(--after); transform: translateX(calc(var(--w, 600px) / 2 + 22px)); }
  100% { background: var(--after); transform: translate(calc(var(--w, 600px) + 40px), var(--drop, 0)); opacity: 0; }
}
@keyframes confetti-fly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  35% { transform: translate(var(--x1), var(--y1)) rotate(calc(var(--r) * .4)); opacity: 1; }
  100% { transform: translate(var(--x2), var(--y2)) rotate(var(--r)); opacity: 0; }
}

@media (max-width: 860px) {
  .switch-grid, .proc { grid-template-columns: 1fr; }
  .proc .ring { margin: 0 auto; }
  .hero h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
