/* =========================================================
   AI Call Assistant — Client Explainer
   Design tokens (light default, dark via media + data-theme)
   ========================================================= */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e7f0;
  --line-2: #cfd6e4;
  --primary: #4f46e5;
  --primary-ink: #ffffff;
  --primary-soft: #eef0ff;
  --chat: #6366f1;
  --web: #0ea5e9;
  --inb: #8b5cf6;
  --outb: #f59e0b;
  --company: #10b981;
  --danger: #ef4444;
  --ok: #10b981;
  --wire: #e9edf5;
  --wire-2: #dbe1ec;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 60px rgba(15, 23, 42, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d;
    --bg-2: #0f1628;
    --surface: #121a2f;
    --surface-2: #172038;
    --ink: #e7ebf4;
    --ink-2: #c3cad8;
    --muted: #93a0b8;
    --line: #233050;
    --line-2: #2d3b5f;
    --primary: #818cf8;
    --primary-ink: #0a0f1d;
    --primary-soft: #1d2447;
    --wire: #1b2541;
    --wire-2: #24304f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1d;
  --bg-2: #0f1628;
  --surface: #121a2f;
  --surface-2: #172038;
  --ink: #e7ebf4;
  --ink-2: #c3cad8;
  --muted: #93a0b8;
  --line: #233050;
  --line-2: #2d3b5f;
  --primary: #818cf8;
  --primary-ink: #0a0f1d;
  --primary-soft: #1d2447;
  --wire: #1b2541;
  --wire-2: #24304f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
section.block { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
section.block.alt { background: var(--bg-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.num-badge {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: .85rem; margin-right: 6px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--chat), var(--web));
  color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-size: .88rem; font-weight: 600; padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; flex: none;
}
.icon-btn:hover { border-color: var(--line-2); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--chat), var(--web), var(--company)); }
@media (max-width: 960px) { .nav { display: none; } .topbar .icon-btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 18px;
  font-weight: 700; font-size: .95rem; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 40% at 15% 20%, color-mix(in srgb, var(--chat) 18%, transparent), transparent 70%),
    radial-gradient(35% 35% at 85% 30%, color-mix(in srgb, var(--web) 18%, transparent), transparent 70%),
    radial-gradient(30% 30% at 60% 90%, color-mix(in srgb, var(--company) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.hero h1 .grad { background: linear-gradient(90deg, var(--chat), var(--web) 55%, var(--company)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; margin-bottom: 28px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hero orbit visual */
.orbit-wrap { position: relative; aspect-ratio: 1; max-width: 500px; margin-inline: auto; width: 100%; }
.orbit-ring { position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.orbit-ring.r2 { inset: 24%; border-style: solid; border-color: var(--line); }
.orbit-core {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary) 30%, var(--surface)), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.orbit-core::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); animation: pulse 2.6s ease-out infinite;
}
.orbit-core strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.orbit-core small { color: var(--muted); font-size: .76rem; }
.orbit-core .core-ico { width: 40px; height: 40px; margin: 0 auto 6px; color: var(--primary); }
.orbit-spin { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-node {
  position: absolute; width: 21%; aspect-ratio: 1; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; transform: translate(-50%, -50%);
}
.orbit-node > div { animation: spin 40s linear infinite reverse; display: grid; place-items: center; gap: 2px; }
.orbit-node svg { width: 26px; height: 26px; }
.orbit-node span { font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.orbit-node.n1 { left: 50%; top: 9%; color: var(--chat); }
.orbit-node.n2 { left: 91%; top: 50%; color: var(--web); }
.orbit-node.n3 { left: 50%; top: 91%; color: var(--inb); }
.orbit-node.n4 { left: 9%; top: 50%; color: var(--outb); }
.bubble-float {
  position: absolute; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; max-width: 230px; transition: opacity .5s, transform .5s;
}
.bubble-float .lang { display: block; font-size: .68rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bubble-float.b1 { top: 2%; right: -2%; border-bottom-right-radius: 4px; }
.bubble-float.b2 { bottom: 6%; left: -4%; border-bottom-left-radius: 4px; }
.bubble-float.swap { opacity: 0; transform: translateY(6px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- Generic cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); position: relative; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.card .ico svg { width: 24px; height: 24px; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.c-chat { color: var(--chat); } .c-web { color: var(--web); } .c-inb { color: var(--inb); } .c-outb { color: var(--outb); } .c-company { color: var(--company); } .c-primary { color: var(--primary); }
.card h3 { color: var(--ink); }
.callout {
  border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Actors ---------- */
.actors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.actor .who { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.actor ul { padding-left: 18px; margin: 10px 0 0; color: var(--ink-2); font-size: .94rem; }
.actor li { margin-bottom: 4px; }
@media (max-width: 1000px) { .actors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .actors { grid-template-columns: 1fr; } }

/* ---------- Big flow SVG ---------- */
.flow-card { padding: 16px; }
.flow-svg { width: 100%; height: auto; }
.flow-svg .node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.flow-svg .node.hl rect { stroke: var(--primary); stroke-width: 2.5; }
.flow-svg .node text { fill: var(--ink); font-family: var(--font); font-size: 14px; font-weight: 700; }
.flow-svg .node text.sub { fill: var(--muted); font-size: 11.5px; font-weight: 500; }
.flow-svg .grp { fill: var(--surface-2); stroke: var(--line); stroke-dasharray: 5 5; }
.flow-svg .grp-label { fill: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.flow-svg .edge { fill: none; stroke: var(--line-2); stroke-width: 2; }
.flow-svg .edge.anim { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.flow-svg .edge-label { fill: var(--muted); font-size: 11px; font-weight: 600; }
.flow-svg .brain rect { fill: url(#brainGrad); stroke: none; }
.flow-svg .brain text { fill: #fff; }
.flow-svg .brain text.sub { fill: rgba(255, 255, 255, .85); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; font-size: .84rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Journey stepper ---------- */
.journey { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.steps .bar { position: absolute; left: 19px; top: 12px; width: 2px; background: var(--primary); height: 0; transition: height .5s cubic-bezier(.2, .7, .2, 1); }
.steps li { position: relative; }
.steps button {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 10px 10px 10px 0;
  color: var(--ink-2); border-radius: 12px;
}
.steps button:hover .s-title { color: var(--ink); }
.steps .s-dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  border: 2px solid var(--line-2); font-weight: 800; font-size: .9rem; color: var(--muted); position: relative; z-index: 1; transition: all .3s;
}
.steps .s-title { font-weight: 700; color: var(--ink-2); display: block; margin-top: 2px; }
.steps .s-sub { font-size: .84rem; color: var(--muted); display: block; }
.steps li.done .s-dot { border-color: var(--primary); color: var(--primary); }
.steps li.active .s-dot { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 6px var(--primary-soft); }
.steps li.active .s-title { color: var(--ink); }
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 520px;
  display: grid; grid-template-rows: auto 1fr;
}
.stage-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.stage-head .who-pill { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #fff; }
.stage-head h3 { margin: 0; font-size: 1.05rem; }
.stage-head .ctrls { margin-left: auto; display: flex; gap: 8px; }
.stage-body { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 0; }
@media (max-width: 760px) { .stage-body { grid-template-columns: 1fr; } }
.stage-visual { padding: 22px; background: var(--bg-2); border-right: 1px solid var(--line); display: grid; place-items: center; min-height: 380px; }
.stage-text { padding: 24px; }
.stage-text h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.stage-text ul { padding-left: 18px; margin: 0 0 18px; color: var(--ink-2); }
.stage-text li { margin-bottom: 6px; }
.fade-swap { animation: fadeUp .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.autoplay-bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 14px; }
.autoplay-bar i { display: block; height: 100%; width: 0; background: var(--primary); }

/* ---------- Wireframe primitives ---------- */
.wf { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: .82rem; }
.wf-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.wf-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--wire-2); }
.wf-bar i:nth-child(1) { background: #f87171; } .wf-bar i:nth-child(2) { background: #fbbf24; } .wf-bar i:nth-child(3) { background: #34d399; }
.wf-bar .url { margin-left: 10px; flex: 1; background: var(--wire); border-radius: 6px; padding: 3px 10px; color: var(--muted); font-size: .72rem; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-body { padding: 14px; }
.wf-title { font-weight: 800; color: var(--ink); font-size: .92rem; margin-bottom: 10px; }
.wf-line { height: 9px; border-radius: 5px; background: var(--wire); margin: 7px 0; }
.wf-line.w40 { width: 40%; } .wf-line.w60 { width: 60%; } .wf-line.w80 { width: 80%; }
.wf-input { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; margin: 6px 0; color: var(--muted); background: var(--surface); display: flex; justify-content: space-between; gap: 8px; }
.wf-input b { color: var(--ink); font-weight: 600; }
.wf-label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 10px; }
.wf-btn { display: inline-block; background: var(--primary); color: var(--primary-ink); font-weight: 700; padding: 7px 12px; border-radius: 8px; margin-top: 10px; font-size: .8rem; }
.wf-btn.ghost { background: var(--wire); color: var(--ink-2); }
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wf-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.wf-tile { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; text-align: center; background: var(--surface); }
.wf-tile.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.wf-tile .em { font-size: 1.3rem; display: block; }
.wf-tile small { font-weight: 700; color: var(--ink-2); }
.wf-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.wf-row:last-child { border-bottom: 0; }
.wf-row .grow { flex: 1; min-width: 0; }
.status { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status.ready { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.status.proc { background: color-mix(in srgb, var(--outb) 18%, transparent); color: #b45309; }
.status.fail { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.status.info { background: var(--primary-soft); color: var(--primary); }
.status.proc .spin { display: inline-block; width: 8px; height: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 4px; vertical-align: -1px; }
.toggle { width: 30px; height: 17px; border-radius: 999px; background: var(--wire-2); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: var(--ok); } .toggle.on::after { left: 15px; }
.code-snip { font-family: var(--mono); font-size: .72rem; background: #0f172a; color: #c7d2fe; border-radius: 8px; padding: 10px; overflow-x: auto; white-space: pre; }
.pbar { height: 6px; background: var(--wire); border-radius: 4px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; animation: grow 2.2s ease-out forwards; }
@keyframes grow { from { width: 0; } }
.mini-flag { font-size: 1rem; }

/* ---------- Onboarding ---------- */
.onb { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 960px) { .onb { grid-template-columns: 1fr; } }
.onb-list { display: grid; gap: 10px; }
.onb-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); text-align: left; color: var(--ink-2); transition: all .25s; width: 100%;
}
.onb-item:hover { border-color: var(--line-2); }
.onb-item .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.onb-item strong { display: block; color: var(--ink); }
.onb-item .d { font-size: .88rem; color: var(--muted); display: block; max-height: 0; overflow: hidden; transition: max-height .4s, margin .3s; }
.onb-item.active { border-color: var(--company); box-shadow: 0 0 0 4px color-mix(in srgb, var(--company) 14%, transparent); }
.onb-item.active .n { background: var(--company); color: #fff; border-color: var(--company); }
.onb-item.active .d { max-height: 180px; margin-top: 4px; }
.onb-screen { position: sticky; top: 90px; }
.onb-screen .wf { max-width: none; }
.onb-screen .wf-body { min-height: 330px; }
.console { display: grid; grid-template-columns: 120px 1fr; min-height: 380px; }
.console-side { background: var(--surface-2); border-right: 1px solid var(--line); padding: 12px 8px; display: grid; align-content: start; gap: 4px; }
.console-side span { font-size: .72rem; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.console-side span.on { background: var(--primary-soft); color: var(--primary); }
.console-main { padding: 16px; }

/* ---------- Channel tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .92rem;
}
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { color: #fff; border-color: transparent; }
.tab[data-ch="chat"][aria-selected="true"] { background: var(--chat); }
.tab[data-ch="web"][aria-selected="true"] { background: var(--web); }
.tab[data-ch="inb"][aria-selected="true"] { background: var(--inb); }
.tab[data-ch="outb"][aria-selected="true"] { background: var(--outb); }
.channel-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .channel-panel { grid-template-columns: 1fr; } }
.device-stage { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; place-items: center; min-height: 560px; position: relative; overflow: hidden; }
.ch-steps { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: st; }
.ch-steps li {
  counter-increment: st; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; border: 1px solid transparent; transition: all .3s; color: var(--ink-2);
}
.ch-steps li::before {
  content: counter(st); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: .82rem; color: var(--muted); transition: all .3s;
}
.ch-steps li.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.ch-steps li.on::before { background: var(--accent, var(--primary)); color: #fff; border-color: transparent; }
.ch-steps li.past::before { color: var(--accent, var(--primary)); border-color: var(--accent, var(--primary)); }
.ch-steps li b { color: var(--ink); }

/* Browser / widget mock */
.browser { width: 100%; max-width: 440px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.site-mock { position: relative; height: 470px; padding: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.site-mock .hero-wire { height: 70px; border-radius: 10px; background: var(--wire); margin-bottom: 10px; }
.widget {
  position: absolute; right: 14px; bottom: 14px; width: 300px; max-width: calc(100% - 28px); height: 400px; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.widget-head { padding: 12px 14px; color: #fff; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--chat), #7c3aed); }
.widget-head.web { background: linear-gradient(135deg, var(--web), #2563eb); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 800; flex: none; }
.widget-head b { display: block; font-size: .9rem; line-height: 1.2; }
.widget-head small { opacity: .85; font-size: .72rem; }
.widget-head .live { margin-left: auto; font-size: .66rem; font-weight: 800; background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 999px; }
.convo { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: 8px 11px; border-radius: 14px; font-size: .82rem; line-height: 1.45; animation: pop .35s cubic-bezier(.2, .9, .3, 1.2); }
.msg.ai { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); align-self: flex-start; }
.msg.user { background: var(--chat); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: .72rem; font-weight: 700; text-align: center; padding: 2px 6px; max-width: 95%; }
.msg.sys .pill { display: inline-block; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 3px 9px; }
.msg .src { display: block; font-size: .66rem; color: var(--muted); margin-top: 4px; font-weight: 600; }
.msg .quick { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.msg .quick span { border: 1px solid var(--chat); color: var(--chat); border-radius: 999px; padding: 2px 8px; font-size: .7rem; font-weight: 700; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.widget-input { border-top: 1px solid var(--line); padding: 9px 10px; display: flex; gap: 8px; align-items: center; }
.widget-input .field { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: .76rem; min-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-input .call-btn { font-size: .7rem; font-weight: 800; color: var(--web); border: 1px solid var(--web); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }

/* Voice call UI */
.voice-ui { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.voice-center { display: grid; place-items: center; align-content: center; gap: 12px; padding: 14px; text-align: center; }
.voice-orb { width: 94px; height: 94px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7dd3fc, var(--web) 55%, #1d4ed8); position: relative; box-shadow: 0 10px 30px color-mix(in srgb, var(--web) 45%, transparent); }
.voice-orb.speaking::before, .voice-orb.speaking::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--web) 60%, transparent); animation: pulse 1.4s ease-out infinite; }
.voice-orb.speaking::after { animation-delay: .7s; }
.voice-orb.listening { background: radial-gradient(circle at 35% 30%, #c4b5fd, var(--chat) 55%, #4338ca); }
.voice-state { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.wave { display: flex; gap: 3px; align-items: center; height: 30px; }
.wave i { width: 4px; border-radius: 3px; background: var(--web); height: 6px; transition: height .12s; }
.captions { min-height: 92px; max-height: 120px; overflow: hidden; padding: 0 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.cap { font-size: .76rem; line-height: 1.4; animation: pop .3s ease; }
.cap b { font-weight: 800; }
.cap.ai b { color: var(--web); } .cap.user b { color: var(--chat); }
.cap.sys { color: var(--muted); font-weight: 700; font-size: .7rem; text-align: center; }
.voice-ctrls { display: flex; justify-content: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); }
.voice-ctrls span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.voice-ctrls span.end { background: var(--danger); color: #fff; border-color: transparent; }
.voice-ctrls svg { width: 16px; height: 16px; }

/* Phone mock */
.phone {
  width: 260px; height: 520px; border-radius: 40px; background: #0b1020; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3352; position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #1e1b4b, #0f172a 60%); color: #fff; display: grid; grid-template-rows: auto auto 1fr auto; padding: 48px 16px 18px; position: relative; }
.phone-screen.light { background: linear-gradient(180deg, #f8fafc, #eef2ff); color: #0f172a; }
.ph-name { text-align: center; font-size: 1.15rem; font-weight: 700; }
.ph-sub { text-align: center; font-size: .76rem; opacity: .75; margin-top: 2px; }
.ph-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 18px auto 6px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 1.8rem; font-weight: 800; position: relative; }
.ph-avatar.ring::before, .ph-avatar.ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: pulse 1.3s ease-out infinite; }
.ph-avatar.ring::after { animation-delay: .65s; }
.ph-caps { overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 6px 0; }
.ph-caps .cap { font-size: .72rem; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 8px; }
.ph-caps .cap.ai b { color: #a5b4fc; } .ph-caps .cap.user b { color: #fcd34d; }
.ph-caps .cap.sys { background: none; color: rgba(255,255,255,.65); }
.ph-ctrls { display: flex; justify-content: center; gap: 18px; }
.ph-ctrls span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.ph-ctrls span.end { background: var(--danger); }
.ph-ctrls span.accept { background: var(--ok); }
.ph-ctrls svg { width: 20px; height: 20px; }
.phone-row { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
.tag-col { display: grid; gap: 10px; width: 210px; align-content: center; }
.tag-col-h { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 560px) { .tag-col { width: 100%; } }
.side-tag {
  position: relative; min-height: 50px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .76rem; font-weight: 700; color: var(--ink-2); max-width: 200px; opacity: 0; transform: translateY(8px); transition: all .4s;
}
.side-tag.show { opacity: 1; transform: none; }
.side-tag small { display: block; color: var(--muted); font-weight: 600; }

/* Outbound form mock */
.out-stage { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; place-items: center; }
.form-mock { width: 100%; max-width: 330px; }
.form-mock .wf-input { transition: border-color .3s, background .3s; }
.form-mock .wf-input.filled { border-color: var(--outb); background: color-mix(in srgb, var(--outb) 6%, var(--surface)); }
.consent { display: flex; gap: 8px; align-items: center; font-size: .74rem; color: var(--ink-2); margin-top: 8px; }
.consent .box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: .7rem; color: #fff; }
.consent .box.on { background: var(--outb); border-color: var(--outb); }
.checks { display: grid; gap: 6px; width: 100%; max-width: 330px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; opacity: .35; transition: opacity .3s; }
.check.on { opacity: 1; }
.check .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--wire-2); display: grid; place-items: center; color: #fff; font-size: .7rem; flex: none; }
.check.on .tick { background: var(--ok); }

/* ---------- AI turn loop ---------- */
.loop-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .loop-wrap { grid-template-columns: 1fr; } }
.loop { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop .ring { fill: none; stroke: var(--line); stroke-width: 2; }
.loop .ring-prog { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.loop-node {
  position: absolute; width: 30%; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center;
  box-shadow: var(--shadow); transition: all .35s;
}
.loop-node .e { font-size: 1.4rem; display: block; line-height: 1.2; }
.loop-node b { font-size: .86rem; display: block; color: var(--ink); }
.loop-node small { font-size: .7rem; color: var(--muted); display: block; line-height: 1.3; }
.loop-node.on { border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft), var(--shadow-lg); transform: translate(-50%, -50%) scale(1.06); }
.loop-center { position: absolute; inset: 33%; display: grid; place-items: center; text-align: center; }
.loop-center .big { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.loop-center small { color: var(--muted); font-size: .76rem; }
.latency { margin-top: 18px; }
.lat-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.lat-seg { height: 100%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; width: 0; transition: width .6s cubic-bezier(.2, .7, .2, 1); white-space: nowrap; overflow: hidden; }
.lat-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.behav { display: grid; gap: 10px; }
.behav-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.behav-row .e { font-size: 1.3rem; }
.behav-row b { color: var(--ink); display: block; }
.behav-row span { font-size: .88rem; color: var(--muted); }

/* ---------- Multi-language ---------- */
.lang-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .lang-demo { grid-template-columns: 1fr; } }
.lang-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lang-picker button { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--ink-2); font-size: .88rem; }
.lang-picker button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.kb-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
@media (max-width: 640px) { .kb-flow { grid-template-columns: 1fr; } .kb-flow .arrow { transform: rotate(90deg); justify-self: center; } }
.kb-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.kb-box .e { font-size: 1.6rem; }
.kb-box b { display: block; font-size: .88rem; }
.kb-box small { color: var(--muted); font-size: .76rem; display: block; }
.arrow { color: var(--muted); font-size: 1.4rem; }
.lang-chat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.lang-chat .convo { height: 330px; }
.lang-chat[dir="rtl"] .msg.ai { align-self: flex-end; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.lang-chat[dir="rtl"] .msg.user { align-self: flex-start; border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.decision { display: grid; gap: 12px; margin-top: 20px; }
.dec-row { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 10px; align-items: center; }
.dec-row .q, .dec-row .a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .86rem; }
.dec-row .q { font-weight: 700; }
.dec-row .a { color: var(--ink-2); }
.dec-row .arrow { text-align: center; font-size: 1rem; }
.lang-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.lang-table th, .lang-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.lang-table th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lang-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.tier { display: inline-block; font-weight: 800; font-size: .74rem; padding: 3px 9px; border-radius: 999px; }
.tier.t1 { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.tier.t2 { background: color-mix(in srgb, var(--outb) 18%, transparent); color: #b45309; }
.tier.t3 { background: var(--wire); color: var(--muted); }

/* ---------- After the conversation ---------- */
.after { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .after { grid-template-columns: 1fr; } }
.after-list { display: grid; gap: 10px; }
.after-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; opacity: .3; transform: translateX(-8px); transition: all .5s; }
.after-item.on { opacity: 1; transform: none; }
.after-item .tick { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.2rem; }
.after-item.on .tick { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.after-item b { color: var(--ink); display: block; }
.after-item span { color: var(--muted); font-size: .88rem; }
.summary-card .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.summary-card .row:last-child { border-bottom: 0; }
.summary-card .row span:first-child { color: var(--muted); }
.summary-card .row span:last-child { font-weight: 700; text-align: right; }

/* ---------- Dashboard ---------- */
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.dash-top .sample { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--muted); border: 1px dashed var(--line-2); padding: 3px 9px; border-radius: 999px; }
.dash-layout { display: grid; grid-template-columns: 190px 1fr; }
@media (max-width: 760px) { .dash-layout { grid-template-columns: 1fr; } .dash-side { display: none !important; } }
.dash-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 4px; background: var(--surface-2); }
.dash-side button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .86rem; display: flex; gap: 8px; align-items: center; }
.dash-side button.on { background: var(--primary-soft); color: var(--primary); }
.dash-main { padding: 18px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
.kpi small { color: var(--muted); font-weight: 600; font-size: .78rem; display: block; }
.kpi .v { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.kpi .delta { font-size: .74rem; font-weight: 700; color: var(--ok); }
.dash-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .dash-charts { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); min-width: 0; }
.panel h4 { font-size: .86rem; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.panel h4 small { color: var(--muted); font-weight: 600; font-size: .74rem; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 160px; padding-top: 8px; }
.bar-col { display: flex; flex-direction: column-reverse; height: 100%; gap: 2px; position: relative; }
.bar-col .seg { width: 100%; border-radius: 4px; height: 0; transition: height .9s cubic-bezier(.2, .7, .2, 1); }
.bar-col .lbl { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); }
.bars-wrap { padding-bottom: 22px; }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; flex: none; }
.donut circle { fill: none; stroke-width: 18; transition: stroke-dasharray 1s ease; }
.donut-legend { display: grid; gap: 6px; font-size: .82rem; }
.donut-legend span { display: flex; align-items: center; gap: 8px; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dtable { width: 100%; border-collapse: collapse; font-size: .84rem; }
.dtable th, .dtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.dtable th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.dtable tr:last-child td { border-bottom: 0; }
.ch-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dash-view { display: none; }
.dash-view.on { display: block; animation: fadeUp .4s ease; }

/* ---------- Trust ---------- */
.trust .card .ico { color: var(--company); }

/* ---------- Roadmap ---------- */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.phase::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pc, var(--primary)); }
.phase .p-n { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pc, var(--primary)); }
.phase h3 { font-size: 1rem; margin: 6px 0 8px; }
.phase ul { padding-left: 16px; margin: 0; font-size: .84rem; color: var(--ink-2); }
.phase .exit { margin-top: 10px; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- Decisions ---------- */
.decide .card { padding: 20px; }
.decide .q { font-weight: 800; color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; }
.decide .why { font-size: .88rem; color: var(--muted); margin: 6px 0 12px; }
.decide .sugg { font-size: .88rem; background: color-mix(in srgb, var(--company) 10%, transparent); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.decide .sugg b { color: var(--company); }

/* ---------- Glossary ---------- */
.gloss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .gloss { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gloss { grid-template-columns: 1fr; } }
.gloss details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gloss summary { font-weight: 700; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.gloss summary::-webkit-details-marker { display: none; }
.gloss summary::after { content: "+"; color: var(--muted); font-weight: 800; }
.gloss details[open] summary::after { content: "–"; }
.gloss details p { margin: 8px 0 0; font-size: .9rem; }

/* ---------- CTA + Footer ---------- */
.cta { background: linear-gradient(135deg, #312e81, #1e3a8a 50%, #0f766e); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; } .cta p { color: rgba(255,255,255,.82); }
.cta .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.cta .btn-primary { background: #fff; color: #1e1b4b; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }
footer { padding: 36px 0 48px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

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

/* ---------- Print ---------- */
@media print {
  .topbar, .ctrls, .tabs, .btn-row, .lang-picker { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  section.block { padding: 24px 0; break-inside: avoid-page; }
}

/* ---------- Fixes: voice/phone caption overflow, mobile flow ---------- */
.widget.voice { height: 430px; }
.voice-ui { overflow: hidden; min-height: 0; }
.voice-center { padding: 10px; gap: 8px; }
.voice-orb { width: 72px; height: 72px; }
.captions { min-height: 0; height: 104px; max-height: none; justify-content: flex-start; overflow: hidden; }
.ph-caps { min-height: 0; justify-content: flex-start; }
.ph-avatar { width: 64px; height: 64px; margin: 12px auto 6px; font-size: 1.4rem; }
@media (max-width: 700px) {
  .flow-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .flow-svg { min-width: 760px; }
  .flow-card::after { content: "← swipe to explore →"; display: block; text-align: center; font-size: .75rem; color: var(--muted); margin-top: 6px; }
}

/* =========================================================
   v2 · Minimal scale
   Smaller type, quieter surfaces, borders over shadows.
   ========================================================= */
:root {
  --bg: #fbfbfd; --bg-2: #f4f5f9; --line: #e8eaf0; --line-2: #d8dce6;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 6px 24px rgba(15, 23, 42, .07);
  --radius: 12px; --radius-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0f1a; --bg-2: #0f1422; --surface: #121827; --surface-2: #161d2e; --line: #1f2840; --line-2: #2a3552;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 8px 28px rgba(0,0,0,.4); }
}
:root[data-theme="dark"] { --bg: #0b0f1a; --bg-2: #0f1422; --surface: #121827; --surface-2: #161d2e; --line: #1f2840; --line-2: #2a3552;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 8px 28px rgba(0,0,0,.4); }

body { font-size: 15px; line-height: 1.6; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.03em; line-height: 1.12; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: .98rem; }
p { font-size: .95rem; }
section.block { padding: clamp(56px, 7vw, 92px) 0; }
.section-head { margin-bottom: 28px; }
.lead, .hero .lead { font-size: 1rem; max-width: 620px; }
.eyebrow { background: none; padding: 0; margin-bottom: 10px; font-size: .7rem; letter-spacing: .14em; color: var(--muted); gap: 6px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.eyebrow svg { display: none; }

.topbar .container { height: 56px; }
.brand { font-size: .92rem; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.nav a { font-size: .8rem; font-weight: 500; padding: 6px 9px; border-radius: 6px; transition: color .2s, background .2s; }
.nav a.active { font-weight: 600; }
.nav-ext { color: var(--primary) !important; }
.nav-current { display: none; font-size: .8rem; font-weight: 600; color: var(--primary); margin-left: 8px; }
@media (max-width: 960px) { .nav-current { display: inline; } }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.progress { height: 1.5px; }

.btn { padding: 9px 14px; font-size: .86rem; font-weight: 600; border-radius: 9px; }
.btn-primary { box-shadow: none; }
.btn-sm { padding: 6px 10px; font-size: .8rem; border-radius: 8px; }

.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.hero::before { opacity: .55; }
.hero-chips { margin: 16px 0 24px; gap: 6px; }
.chip { font-size: .76rem; font-weight: 500; padding: 5px 10px; }
.orbit-wrap { max-width: 380px; }
.orbit-node { border-radius: 16px; }
.orbit-node svg { width: 20px; height: 20px; }
.orbit-node span { font-size: .66rem; }
.orbit-core strong { font-size: .95rem; }
.bubble-float { font-size: .78rem; padding: 8px 12px; border-radius: 12px; max-width: 200px; }

.grid { gap: 14px; }
.card { padding: 18px; box-shadow: none; }
.card:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.card .ico { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 12px; }
.card .ico svg { width: 17px; height: 17px; }
.card p { font-size: .88rem; }
.tag { font-size: .68rem; font-weight: 600; }
.callout { font-size: .9rem; padding: 12px 16px; border-left-width: 3px; }
.actor ul { font-size: .86rem; }

.tabs { gap: 6px; margin-bottom: 18px; }
.tab { padding: 7px 12px; font-size: .84rem; font-weight: 600; border-radius: 9px; }
.tab svg { width: 15px; height: 15px; }
.device-stage { min-height: 500px; padding: 18px; border-radius: 14px; }
.ch-steps li { padding: 9px 12px 9px 46px; font-size: .9rem; }
.ch-steps li::before { width: 24px; height: 24px; top: 9px; font-size: .74rem; border-radius: 7px; }
.ch-steps li.on { box-shadow: none; }
#chTitle { font-size: 1.15rem !important; }

.loop { max-width: 400px; }
.loop-node { padding: 8px; border-radius: 12px; box-shadow: none; }
.loop-node.on { box-shadow: 0 0 0 4px var(--primary-soft); }
.loop-node .e { font-size: 1.1rem; }
.loop-node b { font-size: .78rem; } .loop-node small { font-size: .64rem; }
.loop-center .big { font-size: 1.6rem; }
.behav { gap: 8px; }
.behav-row { padding: 10px 12px; grid-template-columns: 28px 1fr; }
.behav-row .e { font-size: 1.05rem; }
.behav-row b { font-size: .88rem; } .behav-row span { font-size: .82rem; }

.kb-box { box-shadow: none; padding: 12px; }
.kb-box .e { font-size: 1.2rem; }
.lang-chat, .dash, .stage, .wf, .browser { box-shadow: var(--shadow); }
.lang-picker button { padding: 6px 12px; font-size: .82rem; font-weight: 600; }
.dec-row .q, .dec-row .a { font-size: .82rem; padding: 8px 10px; }
.lang-table { box-shadow: none; font-size: .86rem; } .lang-table th, .lang-table td { padding: 9px 12px; }

.after-item { padding: 11px 14px; grid-template-columns: 34px 1fr; }
.after-item .tick { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }
.after-item b { font-size: .9rem; } .after-item span { font-size: .82rem; }
.summary-card .row { font-size: .82rem; padding: 6px 0; }

.kpi { padding: 12px; } .kpi .v { font-size: 1.35rem; } .kpi small { font-size: .72rem; }
.dash-main { padding: 14px; } .panel { padding: 12px; } .bars { height: 130px; }
.dash-side button { font-size: .8rem; padding: 7px 9px; }

.decide .card { padding: 16px; } .decide .q { font-size: .92rem; } .decide .why, .decide .sugg { font-size: .82rem; }
.gloss summary { font-size: .9rem; } .gloss details { padding: 10px 12px; } .gloss details p { font-size: .84rem; }
.cta { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }
.cta h2 { color: var(--ink); } .cta p { color: var(--muted); }
.cta .btn-primary { background: var(--primary); color: var(--primary-ink); }
.cta .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Onboarding (pinned on desktop) */
.onb { gap: 28px; }
.onb-list { gap: 6px; }
.onb-item { padding: 10px 12px; grid-template-columns: 30px 1fr; gap: 12px; border-radius: 10px; }
.onb-item .n { width: 30px; height: 30px; border-radius: 8px; font-size: .78rem; }
.onb-item strong { font-size: .9rem; font-weight: 600; }
.onb-item .d { font-size: .82rem; }
.onb-item.active { box-shadow: none; }
.onb-screen { top: 80px; }
.onb-screen .wf-body, .console { min-height: 340px; }
.is-pinned .onb-screen { position: static; }

/* =========================================================
   Scroll story (end-to-end flow)
   ========================================================= */
.story { padding-top: 4px; }
.story-map { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 4px; }
.story-svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.story-svg .lane { fill: var(--surface-2); }
.story-svg .lane-label { fill: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-svg .track { fill: none; stroke: var(--line-2); stroke-width: 2; }
.story-svg .seg { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .55s cubic-bezier(.4, 0, .2, 1); }
.story-svg .loop-path { fill: none; stroke: var(--company); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .35; transition: opacity .4s; }
.story-svg .loop-path.on { opacity: 1; animation: dash 1.2s linear infinite; }
.story-svg .loop-label { fill: var(--company); font-size: 11px; font-weight: 600; opacity: .5; transition: opacity .4s; }
.story-svg .loop-label.on { opacity: 1; }
.story-svg .snode { cursor: pointer; }
.story-svg .snode circle.dot { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; transition: fill .3s, stroke .3s; }
.story-svg .snode text.num { fill: var(--muted); font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: central; transition: fill .3s; }
.story-svg .snode text.lbl { fill: var(--muted); font-size: 12px; font-weight: 600; text-anchor: middle; transition: fill .3s; }
.story-svg .snode circle.halo { fill: none; stroke: var(--primary); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.story-svg .snode.done circle.dot { fill: var(--primary-soft); stroke: var(--primary); }
.story-svg .snode.done text.num { fill: var(--primary); }
.story-svg .snode.on circle.dot { fill: var(--primary); stroke: var(--primary); }
.story-svg .snode.on text.num { fill: var(--primary-ink); }
.story-svg .snode.on text.lbl, .story-svg .snode.done text.lbl { fill: var(--ink); }
.story-svg .snode.on circle.halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.story-svg .pill rect { fill: var(--surface); stroke: var(--line-2); stroke-dasharray: 4 3; }
.story-svg .pill text { fill: var(--muted); font-size: 11px; font-weight: 600; }
.story-svg .pill line { stroke: var(--line-2); stroke-dasharray: 4 3; }
.story-svg .pill.on rect { stroke: var(--inb); } .story-svg .pill.on text { fill: var(--ink); } .story-svg .pill.on line { stroke: var(--inb); }
.story-svg .ch-dot { transition: transform .3s; transform-box: fill-box; transform-origin: center; }

.story-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; align-items: start; min-height: 330px; }
.story-text { padding: 6px 4px; }
.story-text .s-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.story-text .s-count { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.story-text .who-pill { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; }
.story-text h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.story-text .s-sum { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.story-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.story-text li { position: relative; padding-left: 18px; font-size: .88rem; color: var(--ink-2); }
.story-text li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.story-visual { display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 320px; }
.story-visual .wf { max-width: 400px; font-size: .76rem; }
.story-visual .card { padding: 12px; }
.story-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.story-dots { display: flex; gap: 6px; flex: 1; }
.story-dots button { flex: 1; height: 4px; border: 0; padding: 0; border-radius: 4px; background: var(--line-2); transition: background .3s; }
.story-dots button.done { background: color-mix(in srgb, var(--primary) 45%, var(--line-2)); }
.story-dots button.on { background: var(--primary); }
.story-hint { font-size: .74rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .story-map { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .story-svg { min-width: 760px; }
  .story-panel { grid-template-columns: 1fr; }
  .story-hint { display: none; }
}

/* =========================================================
   Roadmap (horizontal scroll on desktop)
   ========================================================= */
.rm-viewport { overflow: hidden; }
.roadmap { display: flex; gap: 14px; grid-template-columns: none; width: max-content; padding: 4px 0 6px; }
.phase { width: 330px; flex: none; box-shadow: none; padding: 18px; border-radius: 12px; }
.phase::before { height: 3px; }
.phase h3 { font-size: .98rem; }
.phase ul { font-size: .84rem; }
.phase .big-n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--line-2); line-height: 1; float: right; }
.rm-progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 16px; overflow: hidden; }
.rm-progress i { display: block; height: 100%; width: 0; background: var(--primary); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; }
  .phase { width: auto; }
  .rm-progress { display: none; }
}
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* =========================================================
   Pinned sections (desktop): the whole section, title included,
   fits exactly in the space under the top bar while it is pinned.
   ========================================================= */
.sv-fit { transform-origin: top center; width: 100%; display: grid; justify-items: center; }
@media (min-width: 901px) {
  /* End-to-end story: column layout, diagram on top, panel fills the rest */
  #journey.is-pinned { height: calc(100vh - 52px); height: calc(100svh - 52px); padding: 16px 0 12px; box-sizing: border-box; display: flex; flex-direction: column; }
  #journey.is-pinned > .container { flex: none; }
  #journey.is-pinned .section-head { margin-bottom: 10px; }
  #journey.is-pinned .section-head h2 { margin-bottom: 4px; }
  #journey.is-pinned .section-head .lead { max-width: none; margin: 0; }
  #journey.is-pinned .story { flex: 1; min-height: 0; padding-top: 0; }
  #journey.is-pinned .story > .container { height: 100%; display: flex; flex-direction: column; }
  #journey.is-pinned .story-map { flex: none; padding: 6px 10px 2px; }
  #journey.is-pinned .story-svg { max-height: 30vh; width: auto; max-width: 100%; margin: 0 auto; }
  #journey.is-pinned .story-panel { flex: 1; min-height: 0; margin-top: 10px; align-items: stretch; }
  #journey.is-pinned .story-text { overflow: hidden; }
  #journey.is-pinned .story-visual { min-height: 0; height: auto; overflow: hidden; padding: 10px; place-items: start center; }
  #journey.is-pinned .story-nav { flex: none; margin-top: 10px; }

  /* Company setup: compact rows so title + 9 steps + console sit in one screen */
  #setup.is-pinned { padding: 28px 0; }
  #setup.is-pinned .section-head { margin-bottom: 18px; }
  #setup.is-pinned .onb-list { gap: 5px; }
  #setup.is-pinned .onb-item { padding: 7px 12px; }
  #setup.is-pinned .onb-item.active .d { margin-top: 2px; }

  /* Roadmap: tighter padding so it centres cleanly */
  #roadmap { padding: 40px 0; }
}

/* =========================================================
   v3 · Compact scale + full-screen hero
   ========================================================= */
body { font-size: 14px; }
p { font-size: .9rem; }
.container { width: min(1200px, 100% - 48px); }
h1 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.15; }
h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h3 { font-size: .92rem; }
.lead, .hero .lead { font-size: .92rem; max-width: 560px; }
.eyebrow { font-size: .64rem; margin-bottom: 8px; }
section.block { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { margin-bottom: 22px; }

/* Topbar */
.topbar .container { height: 52px; }
.nav a { font-size: .76rem; padding: 5px 8px; }
.brand { font-size: .86rem; } .brand-mark { width: 24px; height: 24px; }
.icon-btn { width: 30px; height: 30px; }

/* Hero: fills the first screen, content centred, next section starts below the fold */
.hero { min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); display: flex; align-items: center; padding: 32px 0 56px; }
.hero > .container { width: min(1200px, 100% - 48px); }
.hero-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { margin-bottom: 18px; }
.hero-chips { margin: 0 0 20px; }
.chip { font-size: .72rem; padding: 4px 9px; }
.btn { padding: 8px 13px; font-size: .82rem; }
.orbit-wrap { max-width: 340px; }
.orbit-node { border-radius: 50%; width: 22%; }          /* round nodes: no tilted boxes while the ring turns */
.orbit-node span { font-size: .6rem; }
.orbit-node svg { width: 18px; height: 18px; }
.orbit-core strong { font-size: .88rem; } .orbit-core small { font-size: .66rem; }
.bubble-float { font-size: .72rem; max-width: 180px; }
.bubble-float.b1 { top: 0; right: -6%; } .bubble-float.b2 { bottom: 4%; left: -8%; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue:hover { text-decoration: none; color: var(--ink); }
.scroll-cue i { width: 18px; height: 28px; border: 1.5px solid var(--line-2); border-radius: 10px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .hero { min-height: 0; padding: 32px 0 48px; } .scroll-cue { display: none; } .hero-grid { grid-template-columns: 1fr; } }

/* Cards, lists, components */
.card { padding: 16px; }
.card .ico { width: 30px; height: 30px; margin-bottom: 10px; }
.card .ico svg { width: 15px; height: 15px; }
.card p, .actor ul { font-size: .82rem; }
.tag { font-size: .64rem; }
.callout { font-size: .84rem; padding: 10px 14px; }
.tab { font-size: .78rem; padding: 6px 11px; }
.ch-steps li { font-size: .84rem; }
#chTitle { font-size: 1.05rem !important; }
.device-stage { min-height: 470px; }
.behav-row b { font-size: .82rem; } .behav-row span { font-size: .78rem; }
.story-text h3 { font-size: 1.08rem; } .story-text .s-sum { font-size: .88rem; } .story-text li { font-size: .82rem; }
.onb-item strong { font-size: .84rem; } .onb-item .d { font-size: .78rem; }
.lang-table { font-size: .8rem; } .dec-row .q, .dec-row .a { font-size: .78rem; }
.after-item b { font-size: .84rem; } .after-item span { font-size: .78rem; }
.phase h3 { font-size: .9rem; } .phase ul { font-size: .78rem; }
.decide .q { font-size: .86rem; } .decide .why, .decide .sugg { font-size: .78rem; }
.gloss summary { font-size: .84rem; } .gloss details p { font-size: .8rem; }
.kpi .v { font-size: 1.2rem; }
footer { font-size: .78rem; }
/* Hero bubbles sit outside the ring so they never cover the channel nodes */
.bubble-float.b1 { top: -7%; right: -22%; }
.bubble-float.b2 { bottom: -5%; left: -24%; }
@media (max-width: 1100px) { .bubble-float.b1 { right: -6%; } .bubble-float.b2 { left: -6%; } }

/* Language picker + note; Ethiopic fallback font for Amharic */
.lang-picker { align-items: center; row-gap: 8px; }
.lang-note { font-size: .74rem; color: var(--muted); margin: -8px 0 12px; }
.lang-chat, .msg { font-family: var(--font), "Noto Sans Ethiopic", sans-serif; }

/* Latency bar: numbers inside, names in a legend (no clipped labels) */
.lat-bar { position: relative; overflow: visible; }
.lat-seg { font-size: .66rem; font-family: var(--mono); }
.lat-seg:first-child { border-radius: 10px 0 0 10px; }
.lat-target { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1.5px dashed var(--ink-2); opacity: .55; pointer-events: none; }
.lat-target em { position: absolute; top: -18px; left: 0; transform: translateX(-50%); font-style: normal; font-size: .64rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.latency { margin-top: 26px; }
.lat-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.lat-legend li { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); padding: 3px 0; transition: color .25s; }
.lat-legend li i { width: 9px; height: 9px; border-radius: 3px; flex: none; opacity: .45; transition: opacity .25s; }
.lat-legend li b { margin-left: auto; font-family: var(--mono); font-weight: 600; font-size: .74rem; }
.lat-legend li.done, .lat-legend li.on { color: var(--ink-2); }
.lat-legend li.done i, .lat-legend li.on i { opacity: 1; }
.lat-legend li.on { color: var(--ink); font-weight: 600; }
.lat-legend .lat-total { grid-column: 1 / -1; border-top: 1px dashed var(--line-2); padding-top: 8px; color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .lat-legend { grid-template-columns: 1fr; } }

/* =========================================================
   DevsTree branding
   ========================================================= */
/* Logo variant per theme: dark wordmark on light, white wordmark on dark */
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: inline-block; }
}
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: inline-block; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: inline-block; }

/* "by DevsTree" next to the product name */
.by-devstree { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0 4px 12px; margin-left: 2px; border-left: 1px solid var(--line-2); color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none; opacity: .9; transition: opacity .2s; white-space: nowrap; }
.by-devstree:hover { opacity: 1; text-decoration: none; }
.by-devstree img { height: 20px; width: auto; display: block; }
@media (max-width: 1180px) and (min-width: 961px) { .by-devstree span { display: none; } }
@media (max-width: 420px) { .by-devstree { display: none; } }

/* Branded footer */
footer.site-footer { padding: 44px 0 28px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .8rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 32px; }
.site-footer .f-brand img { height: 36px; width: auto; display: block; }
.site-footer .f-brand p { margin: 14px 0 14px; font-size: .82rem; max-width: 380px; }
.site-footer .f-brand b { color: var(--ink); }
.site-footer .f-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .f-stats li { display: grid; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .f-stats b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; text-transform: none; }
.site-footer h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 10px; }
.site-footer .f-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.site-footer .f-col a { color: var(--muted); }
.site-footer .f-col a:hover { color: #ff003c; text-decoration: none; }
.site-footer .f-offices { font-size: .8rem; margin: 0 0 8px; line-height: 1.7; }
.site-footer .f-follow { margin-top: 6px; }
.site-footer .f-social { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.site-footer .f-social a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: color .2s, border-color .2s, background .2s; }
.site-footer .f-social a:hover { color: #fff; background: #ff003c; border-color: #ff003c; }
.site-footer .f-social a.f-clutch { width: auto; padding: 0 10px; font-size: .74rem; font-weight: 700; }
.site-footer .f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .74rem; }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer .f-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.cta-contact { font-size: .82rem; margin-top: 10px; }
@media print { .by-devstree span { display: inline; } }
/* Logo theme switch: explicit (beats component rules that set display on the images) */
img.logo-on-light { display: block !important; }
img.logo-on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.logo-on-light { display: none !important; }
  :root:not([data-theme="light"]) img.logo-on-dark { display: block !important; }
}
:root[data-theme="dark"] img.logo-on-light { display: none !important; }
:root[data-theme="dark"] img.logo-on-dark { display: block !important; }

/* =========================================================
   Navbar · floating glass pill
   The header is a transparent fixed layer; the .container
   inside it is the capsule. It drops in on load, tightens
   with a soft shadow once the page scrolls.
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: 12px;
  background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
}
.topbar .container {
  pointer-events: auto; position: relative; height: 52px; gap: 10px;
  width: min(1200px, 100% - 32px); padding: 0 8px 0 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 18px rgba(15, 23, 42, .05);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  transition: height .35s cubic-bezier(.3, .9, .3, 1), width .35s cubic-bezier(.3, .9, .3, 1), box-shadow .35s, background-color .35s, border-color .35s;
  animation: navDrop .7s cubic-bezier(.2, .9, .3, 1) .05s both;
}
.topbar.scrolled .container {
  height: 48px; width: min(1180px, 100% - 32px);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 34px rgba(15, 23, 42, .12);
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-140%); } to { opacity: 1; transform: none; } }

/* Contents of the capsule */
.topbar .brand { padding-left: 2px; }
.topbar .nav { padding: 3px; border-radius: 999px; }
.topbar .nav a { border-radius: 999px; padding: 6px 11px; font-size: .78rem; transition: color .25s; }
.topbar .nav a:hover { color: var(--ink); }
.topbar .nav a.active { color: var(--primary); font-weight: 600; }
.topbar .nav a::after { display: none; }                     /* hover pill replaces the underline */
.topbar .nav-ind { height: 30px; margin-top: -15px; border-radius: 999px; background: var(--primary-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent) inset; }
.nav-hover { position: absolute; left: 0; top: 50%; height: 30px; margin-top: -15px; border-radius: 999px; z-index: 0; pointer-events: none; opacity: 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform .4s cubic-bezier(.3, .9, .3, 1), width .4s cubic-bezier(.3, .9, .3, 1), opacity .25s; }
.topbar .icon-btn { border-radius: 50%; width: 34px; height: 34px; background: color-mix(in srgb, var(--surface) 60%, transparent); transition: transform .3s, border-color .2s; }
.topbar .icon-btn:hover { transform: rotate(18deg); border-color: var(--line-2); }
.topbar .btn-sm { border-radius: 999px; }
.topbar .by-devstree { border-left-color: color-mix(in srgb, var(--ink) 12%, transparent); }

/* Reading progress: a hairline inside the bottom of the capsule */
.topbar .progress { left: 22px; bottom: 0; height: 2px; max-width: calc(100% - 44px); border-radius: 2px; opacity: .8; }

/* Space for the floating bar */
.hero { min-height: 100vh; min-height: 100svh; padding-top: 76px; }
body > .topbar + .container.doc-layout { padding-top: 96px; }
.toc { top: 84px; }
html { scroll-padding-top: 80px; }

/* Pinned sections start under the capsule (72px) */
@media (min-width: 901px) {
  #journey.is-pinned { height: calc(100vh - 72px); height: calc(100svh - 72px); }
}

@media (max-width: 960px) {
  .topbar .container { width: calc(100% - 20px); padding: 0 6px 0 12px; }
  .topbar.scrolled .container { width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) { .topbar .container { animation: none; } }
@media print { .topbar { display: none !important; } }

/* Voice-over toggle hint */
.vo-hint { font-size: .74rem; color: var(--muted); margin: 8px 0 0; min-height: 1em; }
.vo-hint:empty { display: none; }

/* Language demo: picker + voice toggle on one row */
.lang-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.lang-head .lang-picker { margin-bottom: 0; }
.lang-head .btn { flex: none; }
#langVoHint { margin: -6px 0 10px; }

.lang-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lang-title-row h3 { margin: 0; }

/* =========================================================
   Navbar · links centred, CTA on the right (inside the glass capsule)
   ========================================================= */
.topbar .nav { margin: 0 auto; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-cta { box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); white-space: nowrap; }
.nav-cta span { display: inline-block; transition: transform .25s; }
.nav-cta:hover span { transform: translateX(3px); }
@media (max-width: 1240px) and (min-width: 961px) { .topbar .by-devstree { display: none; } }
@media (max-width: 1080px) and (min-width: 961px) { .nav-cta { display: none; } }
@media (max-width: 960px) { .nav-actions { margin-left: auto; } .nav-cta { padding: 6px 12px; } }
@media (max-width: 420px) { .nav-cta { display: none; } }

/* =========================================================
   Hero v2 · centred copy, glowing "Maya" sphere with orbit rings,
   four linked channel cards, glass stats bar
   ========================================================= */
.hero.hero-v2 { position: relative; display: block; min-height: 100vh; min-height: 100svh; padding: 112px 0 56px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

/* Background extras: masked grid + central glow behind the sphere */
.hero-gridlines { position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); }
.hero-glow { position: absolute; left: 50%; top: 66%; width: 720px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 28%, transparent), transparent); filter: blur(10px); }

/* Copy */
.hero-v2 .hero-copy { text-align: center; max-width: 780px; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); margin-bottom: 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--primary) 0%, transparent); } }
.hero-v2 h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; }
.hero-v2 .lead { font-size: .98rem; max-width: 600px; margin: 0 auto 24px; }
.hero-v2 .btn-row { justify-content: center; }
.hero-v2 .btn { padding: 10px 18px; border-radius: 999px; font-size: .86rem; }
.hero-listen { gap: 10px; padding-left: 8px !important; }
.hl-play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--primary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); animation: playPing 2.2s ease-out infinite; }
@keyframes playPing { 70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Stage: sphere in the middle, cards around it, connector lines between */
.hero-stage { --mx: 0; --my: 0; position: relative; width: 100%; height: 340px; margin-top: 30px; }
.hero-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-links path { fill: none; stroke: color-mix(in srgb, var(--primary) 45%, transparent); stroke-width: 1.2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: linkFlow 1.6s linear infinite; }
.hero-links circle { fill: var(--primary); filter: drop-shadow(0 0 4px var(--primary)); }
@keyframes linkFlow { to { stroke-dashoffset: -20; } }

.hero-orb { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; transform: translate(-50%, -54%); perspective: 900px;
  translate: calc(var(--mx) * 8px) calc(var(--my) * 8px); }
.hero-orb .ring { position: absolute; inset: -26%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent);
  transform: rotateX(74deg) rotateZ(0deg); animation: ringSpin 14s linear infinite; }
.hero-orb .ring.r2 { inset: -12%; border-color: color-mix(in srgb, var(--web) 45%, transparent); animation-duration: 10s; animation-direction: reverse; transform: rotateX(68deg) rotateY(18deg); }
.hero-orb .ring.r3 { inset: -42%; border-style: dashed; border-color: color-mix(in srgb, var(--ink) 14%, transparent); animation-duration: 40s; }
.hero-orb .ring i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px 2px var(--primary); }
.hero-orb .ring.r2 i { background: var(--web); box-shadow: 0 0 12px 2px var(--web); }
@keyframes ringSpin { from { transform: rotateX(74deg) rotateZ(0deg); } to { transform: rotateX(74deg) rotateZ(360deg); } }
.hero-orb .ring.r2 { animation-name: ringSpin2; }
@keyframes ringSpin2 { from { transform: rotateX(66deg) rotateY(16deg) rotateZ(0deg); } to { transform: rotateX(66deg) rotateY(16deg) rotateZ(-360deg); } }

.sphere { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #c7d2fe 0%, #818cf8 18%, #4f46e5 45%, #1e1b4b 82%);
  box-shadow: 0 0 0 1px color-mix(in srgb, #fff 18%, transparent) inset, 0 30px 80px color-mix(in srgb, var(--primary) 55%, transparent), 0 0 120px color-mix(in srgb, var(--web) 25%, transparent);
  animation: sphereFloat 6s ease-in-out infinite; }
@keyframes sphereFloat { 50% { transform: translateY(-6px); } }
.sphere-mesh { position: absolute; inset: -20%; opacity: .28;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 1px, transparent 1px 16px), repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 16px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 68%); mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 68%);
  animation: meshDrift 18s linear infinite; }
@keyframes meshDrift { to { transform: translateX(16px) translateY(16px); } }
.sphere-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: #fff; text-align: center; }
.sphere-core strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; }
.sphere-wave { display: flex; gap: 3px; align-items: center; height: 18px; margin-top: 2px; }
.sphere-wave i { width: 3px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.9); animation: waveBar 1s ease-in-out infinite; }
.sphere-wave i:nth-child(2) { animation-delay: .15s; } .sphere-wave i:nth-child(3) { animation-delay: .3s; } .sphere-wave i:nth-child(4) { animation-delay: .45s; } .sphere-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes waveBar { 50% { height: 16px; } }

.hero-caption { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 2; padding: 8px 14px; border-radius: 12px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: opacity .45s, filter .45s; }
.hero-caption .lang { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-right: 8px; }
.hero-caption.swap { opacity: 0; filter: blur(4px); }

.hero-card { position: absolute; width: 228px; display: grid; grid-template-columns: 38px 1fr 18px; gap: 10px; align-items: center; padding: 12px 12px 12px 12px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  transition: border-color .25s, box-shadow .25s, background-color .25s; z-index: 2; }
.hero-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 14px 36px color-mix(in srgb, var(--c) 22%, transparent); }
.hc-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.hc-txt b { display: block; font-size: .86rem; font-weight: 700; }
.hc-txt small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.hc-arrow { color: var(--muted); transition: transform .25s, color .25s; }
.hero-card:hover .hc-arrow { transform: translateX(3px); color: var(--c); }
.hero-card.c1 { left: 0; top: 34px; translate: calc(var(--mx) * -14px) calc(var(--my) * -10px); }
.hero-card.c2 { left: 2%; bottom: 34px; translate: calc(var(--mx) * -10px) calc(var(--my) * 12px); }
.hero-card.c3 { right: 0; top: 34px; translate: calc(var(--mx) * 14px) calc(var(--my) * -10px); }
.hero-card.c4 { right: 2%; bottom: 34px; translate: calc(var(--mx) * 10px) calc(var(--my) * 12px); }

/* Glass stats bar */
.hero-stats { margin-top: 30px; display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.hs-lead { display: flex; align-items: center; gap: 10px; padding: 4px 18px 4px 6px; border-right: 1px solid var(--line); }
.hs-lead b { display: block; font-size: .8rem; color: var(--ink); }
.hs-lead small { display: block; font-size: .7rem; color: var(--muted); }
.hs-avatars { display: flex; }
.hs-avatars i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; background: var(--surface-2); border: 2px solid var(--surface); margin-left: -8px; }
.hs-avatars i:first-child { margin-left: 0; }
.hs-item { padding: 2px 18px; text-align: center; }
.hs-item + .hs-item { border-left: 1px solid var(--line); }
.hs-item b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); letter-spacing: -.01em; line-height: 1.2; }
.hs-item small { font-size: .68rem; color: var(--muted); }

/* Tablet / mobile: sphere on top, cards in a grid, no connector lines */
@media (max-width: 1000px) {
  .hero.hero-v2 { padding-top: 96px; }
  .hero-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 250px; }
  .hero-links { display: none; }
  .hero-orb { top: 0; width: 170px; height: 170px; transform: translate(-50%, 18%); }
  .hero-caption { top: 214px; bottom: auto; }
  .hero-card { position: static; width: auto; translate: none !important; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .hs-lead { border-right: 0; width: 100%; justify-content: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hs-item { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb .ring, .sphere, .sphere-mesh, .sphere-wave i, .hero-links path, .hero-badge i, .hl-play { animation: none !important; }
}
/* Banner off-screen: pause its loops */
.hero-off .hero-orb .ring, .hero-off .sphere, .hero-off .sphere-mesh, .hero-off .sphere-wave i, .hero-off .hero-links path, .hero-off .hero-badge i, .hero-off .hl-play { animation-play-state: paused; }

/* Hero v2 refinements */
.hero-v2 .scroll-cue { display: none; }                      /* the stats bar holds the bottom edge */
.hero-v2 .hero-card { translate: none !important; }          /* cards stay put so connector lines stay attached */
.hero-links path { stroke-width: 1.2; }
/* Shorter laptop screens: tighten everything so the banner (incl. stats) fits one screen */
@media (min-width: 1001px) and (max-height: 940px) {
  .hero.hero-v2 { padding: 86px 0 22px; }
  .hero-badge { margin-bottom: 12px; }
  .hero-v2 h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 10px; }
  .hero-v2 .lead { font-size: .9rem; margin-bottom: 16px; max-width: 560px; }
  .hero-stage { height: 270px; margin-top: 14px; }
  .hero-orb { width: 172px; height: 172px; }
  .sphere-core strong { font-size: 1rem; }
  .hero-card { padding: 10px; width: 216px; }
  .hero-card.c1, .hero-card.c3 { top: 18px; }
  .hero-card.c2, .hero-card.c4 { bottom: 26px; }
  .hero-caption { bottom: -4px; padding: 6px 12px; }
  .hero-stats { margin-top: 18px; padding: 8px 10px; }
  .hs-item b { font-size: 1.05rem; }
}

/* Centre the banner content vertically in the screen (space under the floating navbar is in the top padding) */
.hero.hero-v2 { display: flex; flex-direction: column; justify-content: center; }
.hero.hero-v2 > .hero-inner { width: min(1200px, 100% - 48px); margin: 0 auto; }

@media (max-width: 560px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 0; width: 100%; }
  .hs-lead { grid-column: 1 / -1; }
  .hs-item + .hs-item { border-left: 0; }
  .hs-item:nth-of-type(even) { border-right: 1px solid var(--line); } /* left column (the header block counts as the 1st div) */
}

/* =========================================================
   Site-wide background (experiment)
   One fixed layer behind every section: drifting colour blobs, a soft grid
   and film grain, the same look as the banner. Active only while <body>
   has class "bg-global"; remove that class to return to plain sections.
   ========================================================= */
.site-bg { display: none; }
.bg-global .site-bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sb-blob { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .14; will-change: transform; }
.sb-blob.b1 { width: 48vw; height: 48vw; left: -12vw; top: -14vw; background: var(--chat); animation: sbDrift1 26s ease-in-out infinite alternate; }
.sb-blob.b2 { width: 40vw; height: 40vw; right: -10vw; top: 22vh; background: var(--web); animation: sbDrift2 30s ease-in-out infinite alternate; }
.sb-blob.b3 { width: 38vw; height: 38vw; left: 28vw; bottom: -22vw; background: var(--company); opacity: .1; animation: sbDrift3 34s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb-blob { opacity: .16; } :root:not([data-theme="light"]) .sb-blob.b3 { opacity: .09; } }
:root[data-theme="dark"] .sb-blob { opacity: .16; }
:root[data-theme="dark"] .sb-blob.b3 { opacity: .09; }
@keyframes sbDrift1 { to { transform: translate(10vw, 8vh) scale(1.1); } }
@keyframes sbDrift2 { to { transform: translate(-12vw, 10vh) scale(.9); } }
@keyframes sbDrift3 { to { transform: translate(-8vw, -10vh) scale(1.12); } }
.sb-grid { position: absolute; inset: 0; opacity: .45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 80%); }
.sb-grain { position: absolute; inset: -50%; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Sections let the shared background through; alternate sections keep a faint tint for rhythm */
.bg-global section.block { background: transparent; }
.bg-global section.block.alt { background: color-mix(in srgb, var(--bg-2) 45%, transparent); }
.bg-global .site-footer { background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* The banner now uses the shared layer: drop its own copies, keep the glow behind Maya and the cursor spotlight */
.bg-global .hero-bg .aurora, .bg-global .hero-bg .hero-gridlines, .bg-global .hero-bg .grain { display: none; }
@media (prefers-reduced-motion: reduce) { .sb-blob { animation: none !important; } }
@media print { .site-bg { display: none !important; } }

/* Call-language picker (channel demos) */
.call-lang { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: -6px 0 14px; padding: 4px; border-radius: 999px; width: fit-content;
  background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.call-lang[hidden] { display: none; }
.call-lang .cl-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 10px; }
.call-lang button { border: 0; background: none; color: var(--ink-2); font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.call-lang button:hover { color: var(--ink); }
.call-lang button[aria-checked="true"] { background: var(--primary); color: var(--primary-ink); }

/* Flow diagram fills its card (viewBox width follows the card; see placeStory in app.js) */
@media (min-width: 901px) {
  #journey .story-svg { width: 100%; height: 330px; max-height: none; margin: 0; }
  #journey.is-pinned .story-svg { width: 100%; height: clamp(210px, 31vh, 330px); max-height: none; margin: 0; }
}

/* =========================================================
   "Your leads" section
   ========================================================= */
.lf-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) 30px) minmax(0, 1fr); align-items: stretch; margin-bottom: 26px; }
.lf-stage { position: relative; padding: 16px 14px 14px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.lf-stage h3 { font-size: .9rem; margin: 6px 0 10px; }
.lf-n { position: absolute; top: -11px; left: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.lf-srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lf-srcs li { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--ink); padding: 5px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.lf-srcs li small { color: var(--muted); font-weight: 500; margin-left: auto; font-size: .66rem; }
.lf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .78rem; color: var(--ink-2); }
.lf-checks li { position: relative; padding-left: 20px; }
.lf-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.lf-checks.plain li::before { content: "•"; color: var(--primary); font-size: 1.1rem; line-height: 1.1; }
.lf-buckets { display: grid; gap: 8px; }
.lf-buckets > div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.lf-buckets b { display: block; font-size: .8rem; } .lf-buckets small { color: var(--muted); font-size: .7rem; }
.lf-buckets .ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 9%, transparent); } .lf-buckets .ok b { color: var(--ok); }
.lf-buckets .warn { border-color: color-mix(in srgb, var(--outb) 40%, var(--line)); background: color-mix(in srgb, var(--outb) 9%, transparent); } .lf-buckets .warn b { color: #d97706; }
.lf-buckets .bad { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, transparent); } .lf-buckets .bad b { color: var(--danger); }
/* Animated connector: a dot travels along each arrow */
.lf-arrow { position: relative; display: grid; place-items: center; }
.lf-arrow::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--primary) 55%, transparent) 0 5px, transparent 5px 9px); }
.lf-arrow::after { content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: translateY(-50%) rotate(45deg); }
.lf-arrow i { position: absolute; top: 50%; left: 4px; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: lfTravel 1.8s linear infinite; }
@keyframes lfTravel { from { left: 4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }

.lf-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.lf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.lf-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .8rem; padding: 6px 12px 6px 6px; border-radius: 999px; }
.lf-tabs button b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--wire); color: var(--ink-2); }
.lf-tabs button[aria-selected="true"] { border-color: var(--primary); color: var(--ink); }
.lf-tabs button[aria-selected="true"] b { background: var(--primary); color: var(--primary-ink); }
.lf-screen { max-width: none; } .lf-screen .wf-body { min-height: 330px; }
.lf-progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 10px; overflow: hidden; } .lf-progress i { display: block; height: 100%; width: 0; background: var(--primary); }
.lf-drop { display: grid; justify-items: center; gap: 2px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 12px; margin-bottom: 10px; text-align: center; }
.lf-drop span { font-size: 1.4rem; } .lf-drop small { color: var(--muted); }
.lf-map { display: grid; gap: 6px; margin-bottom: 8px; }
.lf-map .row { display: grid; grid-template-columns: 1fr 20px 1fr 18px; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.lf-map code { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); background: none; border: 0; padding: 0; }
.lf-map .arr { color: var(--primary); text-align: center; } .lf-map .field { font-weight: 700; font-size: .78rem; } .lf-map .ok { color: var(--ok); font-weight: 800; }
.lf-check { display: grid; gap: 8px; margin-bottom: 6px; }
.lf-check .row { display: grid; grid-template-columns: 170px 1fr 40px; gap: 10px; align-items: center; font-size: .78rem; }
.lf-check .t { height: 8px; border-radius: 6px; background: var(--wire); overflow: hidden; }
.lf-check i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .9s cubic-bezier(.2, .8, .2, 1); } .lf-check i.on { width: var(--w); }
.lf-check b { text-align: right; }
.lf-summary { margin: 12px 0 2px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--company) 10%, transparent); font-size: .8rem; }
.lf-side h3 { font-size: 1rem; margin: 0 0 10px; } .lf-h3 { margin-top: 22px !important; }
.lf-cols td, .lf-cols th { padding: 8px 10px !important; font-size: .8rem; }
.lf-note { font-size: .78rem; color: var(--muted); margin: 10px 0; }
.lf-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .84rem; color: var(--ink-2); }
.lf-steps b { color: var(--ink); }
.lf-rule { margin-top: 24px; }
@media (max-width: 1100px) {
  .lf-flow { grid-template-columns: 1fr 1fr; gap: 18px; } .lf-arrow { display: none; }
  .lf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .lf-flow { grid-template-columns: 1fr; } .lf-check .row { grid-template-columns: 120px 1fr 32px; } }
@media (prefers-reduced-motion: reduce) { .lf-arrow i { animation: none; display: none; } }

/* 10-step setup: compact on shorter screens so title + all steps fit while pinned */
@media (min-width: 901px) and (max-height: 860px) {
  #setup.is-pinned { padding: 14px 0; }
  #setup.is-pinned .section-head { margin-bottom: 12px; }
  #setup.is-pinned .section-head .lead { display: none; }
  #setup.is-pinned .onb-list { gap: 4px; }
  #setup.is-pinned .onb-item { padding: 5px 10px; }
  #setup.is-pinned .onb-item .n { width: 26px; height: 26px; }
}

/* Lead-flow connectors: line, travelling dot and arrowhead share one centre line */
.lf-arrow::before { top: 50%; height: 2px; transform: translateY(-50%); }
.lf-arrow::after { top: 50%; transform: translateY(-50%) rotate(45deg); }
.lf-arrow i { top: 50%; margin-top: 0; transform: translateY(-50%); }
