/* Callvera x HorsePower: website chat proposal.
   callvera.ai system: Callvera blue sections with white type, white sections with navy headings,
   the SectionTransition blue<->white fade between them, navy cards on blue.
   The phone, chat widget and mock franchise websites stay light because they are real screens. */
:root {
  --bg: #00519e;
  --card: rgba(7, 22, 48, 0.88);
  --card-soft: rgba(4, 16, 40, 0.45);
  --line: rgba(120, 165, 215, 0.32);
  --line-soft: rgba(255, 255, 255, 0.12);
  --head: #ffffff;
  --text: #dbe7f6;
  --muted: #a7bfdc;
  --white: #ffffff;
  --ink: #0a1020; /* dark text on white surfaces (chat widget, phone) */
  --navy-head: #132f52;
  --navy-text: #45566e;
  --navy-muted: #6a7d96;
  --navy-line: #dbe6f2;
  --stage: #12335d;
  --blue: #0878e7;
  --blue-2: #2ea6f0;
  --blue-light: #9fd3ff;
  --blue-btn: #075ba9;
  --cv: #00519e;
  --green: #12b76a;
  --green-2: #4ade9b;
  --red: #ff9aa2;
  --amber: #f3b54a;
  --navy: #031128;
  --gh: #1c315d;
  --gh-gold: #eab14a;
  --chat-ink: #1c315d;
  --bb: #f1a71e;
  --bb-ink: #24160e;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3 { margin: 0; color: var(--head); }
code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.08); color: #fff; padding: 2px 6px; border-radius: 5px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arr { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arr { transform: translateX(3px); }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-white { background: var(--white); color: var(--blue-btn); box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); }
.btn-white:hover { background: #e9f3ff; }
.btn-blue { background: var(--cv); color: #fff; box-shadow: 0 12px 28px -14px rgba(0,81,158,.9); }
.btn-blue:hover { background: #00468a; }
.btn-blue:disabled { opacity: .7; cursor: default; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn:focus-visible, .tab:focus-visible, a:focus-visible, .seg button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

/* Cursor glow on cards (position set by fx.js) */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(8,120,231,.07), transparent 60%); }
.glow:hover::before { opacity: 1; }

/* ===== Floating top bar ===== */
.topbar { position: sticky; top: 12px; z-index: 60; height: 0; }
.topbar-inner { width: min(1200px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 20px; height: 58px; padding: 0 10px 0 20px; border-radius: 999px; background: rgba(4,16,40,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px -24px rgba(0,0,0,.7); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 100px; }
.brand-x { color: #9fc0e6; font-size: 14px; }
.brand-hp { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.topnav { margin-left: auto; display: flex; gap: 2px; }
.topnav a { font-size: 14px; color: #d3e4f8; padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.topnav a.is-active { color: #fff; background: rgba(255,255,255,.14); }

/* ===== Section heads ===== */
.sec { position: relative; padding: 120px 0; overflow-x: clip; }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head-c { margin-inline: auto; text-align: center; }
.sec-head-c .lead { margin-inline: auto; }
.sec h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; text-wrap: balance; }
.lead { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 640px; text-wrap: pretty; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }

/* ===== Hero ===== */
.hero { position: relative; padding: 140px 0 48px; overflow: hidden; background: linear-gradient(180deg, #041028 0%, #062650 42%, #075093 72%, #00519e 100%); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(rgba(160,196,255,.1) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(90deg, rgba(160,196,255,.1) 1px, transparent 1px) 0 0 / 120px 120px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%); }
.hero-glow { position: absolute; left: 50%; top: 420px; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(46,166,240,.28), transparent); pointer-events: none; }
.hero-inner { position: relative; display: grid; justify-items: center; text-align: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e6edf8; font-size: 13.5px; font-weight: 500; margin-bottom: 26px; transition: background .2s; }
.hero-chip:hover { background: rgba(255,255,255,.13); }
.chip-new { padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--blue-btn); font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(42px, 6.6vw, 86px); font-weight: 800; letter-spacing: -0.05em; line-height: .98; }
.hero h1 span { color: var(--blue-light); }
.hero-sub { margin: 26px auto 0; max-width: 620px; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* Hero stage: phone with callouts either side (they light up as the chat plays) */
.hero-stage { position: relative; display: grid; grid-template-columns: 1fr 330px 1fr; gap: 56px; align-items: center; margin-top: 72px; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.callouts-l { justify-items: end; }
.co { position: relative; width: min(100%, 290px); display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); opacity: .5; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .5s, border-color .5s; }
.co b { color: #fff; font-size: 15.5px; letter-spacing: -0.02em; }
.co small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.co-n { font-size: 11.5px; font-weight: 700; color: var(--blue-light); font-variant-numeric: tabular-nums; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.co-n::after { content: '✓'; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--green); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .45s var(--ease); }
.co::before { content: ''; position: absolute; top: 50%; width: 56px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.4)); opacity: 0; transition: opacity .5s; }
.callouts-l .co::before { right: -56px; }
.callouts-r .co::before { left: -56px; transform: scaleX(-1); }
.co.on { opacity: 1; transform: none; background: rgba(7,22,48,.72); border-color: rgba(159,211,255,.34); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.co.done { opacity: .85; transform: none; }
.co.on::before { opacity: 1; }
.co.done .co-n::after { opacity: 1; transform: none; }

.hero-phone { position: relative; justify-self: center; }
.phone { position: relative; width: 330px; height: 580px; border-radius: 46px; background: #fff; border: 10px solid #0d1830; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 60px 120px -30px rgba(0,0,0,.85); display: flex; flex-direction: column; overflow: hidden; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 90px; height: 24px; border-radius: 999px; background: #0d1830; transform: translateX(-50%); z-index: 2; }
.phone-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 44px 16px 12px; background: #fff; color: var(--ink); border-bottom: 1px solid #eceff4; }
.phone-head b { display: block; font-size: 14.5px; }
.phone-head small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6b7588; white-space: nowrap; }
.phone-head small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.phone-head .cv-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gh); color: var(--gh-gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.phone-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: #f7f8fb; overflow: hidden; }
.phone-body .m { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: pop .35s var(--ease) both; }
.phone-body .m-bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid #eceff4; border-bottom-left-radius: 5px; }
.phone-body .m-user { align-self: flex-end; background: var(--chat-ink); color: #fff; border-bottom-right-radius: 5px; }
.phone-body .m-typing { align-self: flex-start; background: #fff; border: 1px solid #eceff4; padding: 11px 13px; display: flex; gap: 4px; border-radius: 16px; }
.phone-body .m-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b5bdca; animation: typing 1.2s infinite; }
.phone-body .m-typing i:nth-child(2) { animation-delay: .15s; }
.phone-body .m-typing i:nth-child(3) { animation-delay: .3s; }
.phone-body .m-card { align-self: flex-start; background: #f2fbf6; border: 1px solid #bfe9d2; color: var(--ink); border-radius: 14px; padding: 10px 12px; font-size: 13px; animation: pop .35s var(--ease) both; }
.phone-body .m-card b { display: block; color: #0e8a50; margin-bottom: 2px; }
.phone-input { display: flex; align-items: center; gap: 8px; margin: 0 10px 14px; padding: 6px 6px 6px 14px; border: 1px solid #e1e5ec; border-radius: 999px; font-size: 13px; color: #9aa3b2; }
.phone-input span { flex: 1; }
.phone-input i { width: 30px; height: 30px; border-radius: 50%; background: var(--chat-ink); color: #fff; display: grid; place-items: center; }
.phone-input i svg { width: 14px; height: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* Stats: navy cards with small visuals */
.stats { position: relative; margin-top: 88px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: 20px; background: var(--card-soft); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stat b { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.045em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 18px; }
.stat span { font-size: 14px; line-height: 1.45; max-width: 230px; }
.stat-gap b { color: var(--red); }
.stat-viz { position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.stat-viz svg { width: 22px; height: 22px; position: relative; }
.viz-ripple i { position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(159,211,255,.6); animation: ripple 2.6s var(--ease) infinite; }
.viz-ripple i + i { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.viz-cal .tick { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset .6s var(--ease) .5s; }
.in .viz-cal .tick { stroke-dashoffset: 0; }
.viz-ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.viz-ring circle { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 4; }
.viz-ring .arc { stroke: var(--blue-light); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease) .3s; }
.in .viz-ring .arc { stroke-dasharray: 17 100; }
.viz-empty { background: rgba(255,154,162,.12); color: var(--red); }
.source { margin: 20px 0 0; font-size: 12px; color: #a7bfdc; text-align: center; }

/* Brands marquee */
.brands { padding: 40px 0 24px; }
.brands-label { text-align: center; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.marquee-set li { flex: none; width: 176px; height: 80px; display: grid; place-items: center; padding: 12px 20px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -16px rgba(3,16,38,.5); }
.marquee-set img { max-width: 100%; max-height: 56px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-1 * var(--shift, 50%))); } }

/* ===== Segmented control ===== */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: #eef3fa; border: 1px solid var(--navy-line); border-radius: 999px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--navy-muted); cursor: pointer; transition: color .3s; white-space: nowrap; }
.seg button.is-on { color: #fff; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 999px; background: var(--stage); transition: transform .45s var(--ease), background .3s; }
.seg[data-on="1"] .seg-thumb { transform: translateX(100%); background: var(--blue); }

/* ===== White theme (callvera.ai white sections) ===== */
.theme-white { background: #fff; color: var(--navy-text); --head: var(--navy-head); --text: var(--navy-text); --muted: var(--navy-muted); --line: var(--navy-line); }
.theme-white code { background: #eaf3fe; color: var(--cv); }

/* ===== The gap: before / after split ===== */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-col { border-radius: 26px; padding: 30px; display: grid; gap: 26px; align-content: start; }
.ba-before { background: #f4f7fb; border: 1px solid #e3ebf5; }
.ba-after { position: relative; overflow: hidden; background: var(--cv); color: var(--text); box-shadow: 0 30px 70px -30px rgba(0,81,158,.6); }
.ba-after::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 60px 60px,
  linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 60px 60px;
  mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%); }
.ba-head { position: relative; display: grid; gap: 14px; }
.ba-label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy-muted); }
.ba-label i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.ba-after .ba-label { color: var(--blue-light); }
.ba-after .ba-label i { background: currentColor; }
.ba h3 { font-size: clamp(21px, 2.1vw, 26px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.ba-before h3 { color: #8395ac; }
.ba-after h3 { color: #fff; }
.meter { display: flex; align-items: center; gap: 14px; }
.meter-bar { flex: 1; height: 6px; border-radius: 999px; background: #e3ebf5; overflow: hidden; }
.ba-after .meter-bar { background: rgba(255,255,255,.18); }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width 1.2s var(--ease) .3s; }
.in .meter-bar i { width: var(--w); }
.meter-label { font-size: 13.5px; color: var(--navy-muted); white-space: nowrap; }
.meter-label b { color: var(--navy-head); font-variant-numeric: tabular-nums; }
.ba-after .meter-label { color: var(--blue-light); }
.ba-after .meter-label b { color: #fff; }
.ba-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ba-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; transition: background .25s, border-color .25s, transform .3s var(--ease), box-shadow .25s; }
.ba-before li { background: #fff; border: 1px solid #e3ebf5; }
.ba-after li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.ba-list li div { display: grid; gap: 2px; min-width: 0; }
.ba-list li b { font-size: 15px; font-weight: 600; color: var(--navy-head); }
.ba-list li span:not(.st) { font-size: 14px; line-height: 1.45; color: var(--navy-muted); }
.ba-after li b { color: #fff; }
.ba-after li span:not(.st) { color: #d6e6f8; }
.ba-before li.hl { border-color: #c9d7e8; box-shadow: 0 10px 24px -16px rgba(19,47,82,.35); transform: translateX(4px); }
.ba-after li.hl { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); transform: translateX(-4px); }
.st { flex: none; }
.st i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12.5px; }
.st[data-s="no"] i { background: #fdecee; color: #d64550; }
.st[data-s="no"] i::before { content: '✕'; }
.st[data-s="part"] i { background: #fdf3df; color: #b07612; }
.st[data-s="part"] i::before { content: '½'; }
.st[data-s="yes"] i { background: #fff; color: var(--cv); }
.st[data-s="yes"] i::before { content: '✓'; }
.js .ba-after .st i { transform: scale(0); transition: transform .45s var(--ease) calc(.4s + var(--i, 0) * .08s); }
.js .ba-after.in .st i { transform: none; }

/* ===== How it works: sticky scroll with progress rail ===== */
.scrolly { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; }
.scrolly-rail { position: absolute; left: 16px; top: 56px; height: 0; width: 2px; border-radius: 2px; background: #e3ebf5; overflow: hidden; }
.scrolly-rail i { position: absolute; left: 0; right: 0; top: 0; height: var(--p, 0%); background: var(--blue); border-radius: inherit; }
.scrolly-steps { list-style: none; margin: 0; padding: 0 0 0 64px; }
.scrolly-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .32; transition: opacity .4s; }
.scrolly-step.is-active { opacity: 1; }
.scrolly-step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 40px; }
.scrolly-step:last-child { min-height: 52vh; }
.step-n { position: relative; width: 34px; height: 34px; margin: 0 0 -32px -64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #dbe6f2; color: var(--navy-head); font-weight: 700; font-size: 14px; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.scrolly-step.is-active .step-n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(8,120,231,.14); }
.step-k { margin: 6px 0 14px; font-size: 12.5px; font-weight: 600; color: #226ed2; letter-spacing: .01em; }
.scrolly-step h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; }
.scrolly-step p:not(.step-k) { margin: 0; font-size: 17px; line-height: 1.6; max-width: 440px; }
.scrolly-step .scene { display: none; }
.scrolly-stage { position: relative; }
.scrolly-stage-inner { position: sticky; top: calc(50vh - 220px); height: 440px; border-radius: 26px; background: var(--stage); border: 1px solid var(--stage); box-shadow: 0 28px 72px rgba(17,48,91,.24); overflow: hidden; display: flex; flex-direction: column; --text: #dbe7f6; --muted: #a7bfdc; --line: rgba(255,255,255,.14); color: var(--text); }
.stage-bar { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.1); flex: none; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.stage-bar em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stage-pips { margin-left: auto; display: flex; gap: 5px; }
.stage-pips i { width: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); transition: background .3s, width .4s var(--ease); }
.stage-pips i.on { width: 30px; background: var(--blue-light); }
.stage-body { position: relative; flex: 1; background:
  radial-gradient(500px 260px at 50% 0%, rgba(46,166,240,.14), transparent 70%); }
.scrolly-stage .scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.scrolly-stage .scene.is-active { opacity: 1; transform: none; }
.code-win { width: 100%; max-width: 420px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
.code-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.code-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.15); }
.code-bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: #a7bfdc; }
.code-win pre { margin: 0; padding: 16px 18px; font-size: 13px; line-height: 1.75; color: #dbe7f6; white-space: pre-wrap; word-break: break-word; }
.code-win code { background: none; padding: 0; color: inherit; font-size: 1em; }
.c { color: #6f84a6; } .t { color: #8cc8ff; } .a { color: #ffd27a; } .s { color: #6ee7a8; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--blue-light); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-chat { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.mini-chat .b { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.mini-chat .b-user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.mini-chat .b-bot { justify-self: start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.mini-chat .rule { justify-self: start; font-size: 12px; font-weight: 600; color: var(--blue-light); background: rgba(46,166,240,.14); padding: 5px 10px; border-radius: 999px; }
.is-active .mini-chat .b, .is-active .mini-chat .rule { animation: pop .45s var(--ease) both; }
.is-active .mini-chat .b-bot { animation-delay: .35s; }
.is-active .mini-chat .rule { animation-delay: .7s; }
.zipmap { width: 100%; max-width: 380px; display: grid; gap: 16px; justify-items: center; }
.zip-in { background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 18px; font-size: 15px; }
.zip-locs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.zip-locs span { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); color: #a7bfdc; font-size: 13.5px; font-weight: 500; }
.zip-locs .hit { color: #fff; border-color: var(--blue-2); background: rgba(46,166,240,.16); }
.zip-locs small { display: block; font-weight: 400; color: var(--blue-light); font-size: 12px; margin-top: 2px; }
.is-active .zip-locs .hit { animation: hit 1.2s var(--ease) .3s both; }
@keyframes hit { 0% { box-shadow: 0 0 0 0 rgba(46,166,240,.6); } 100% { box-shadow: 0 0 0 14px rgba(46,166,240,0); } }
.lead-card { width: 100%; max-width: 360px; background: #fff; border-radius: 16px; padding: 18px; display: grid; gap: 9px; color: var(--ink); }
.lead-card b { color: var(--ink); }
.lead-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pill-ok { font-size: 12px; font-weight: 700; color: #0e8a50; background: #e6f8ef; padding: 4px 10px; border-radius: 999px; }
.lead-row { display: flex; justify-content: space-between; font-size: 14px; }
.lead-row span { color: #677389; }
.lead-feed { display: grid; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid #e2e7ef; }
.lead-feed span { font-size: 12.5px; color: #677389; display: flex; gap: 8px; align-items: center; }
.lead-feed span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.is-active .lead-row, .is-active .lead-feed span { animation: pop .4s var(--ease) both; }
.is-active .lead-row:nth-child(3) { animation-delay: .08s; } .is-active .lead-row:nth-child(4) { animation-delay: .16s; } .is-active .lead-row:nth-child(5) { animation-delay: .24s; }
.is-active .lead-feed span:nth-child(1) { animation-delay: .45s; } .is-active .lead-feed span:nth-child(2) { animation-delay: .6s; }

/* ===== Channels hub: channels in -> agent -> outcomes ===== */
.hub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 110px; align-items: stretch; padding: 8px 0; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hub-lines path { fill: none; stroke: rgba(255,255,255,.26); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
.hub-lines path.hot { stroke: #fff; stroke-width: 2; stroke-dasharray: none; animation: none; opacity: .9; }
.hub-lines circle { fill: #fff; filter: drop-shadow(0 0 6px rgba(159,211,255,.9)); }
@keyframes flow { to { stroke-dashoffset: -20; } }
.hub-col { position: relative; display: grid; gap: 12px; align-content: space-between; }
.hub-col .hub-node { width: 100%; height: 50px; }
.hub-in { justify-self: end; width: 210px; }
.hub-out { justify-self: start; width: 100%; max-width: 360px; }
.hub-k { margin: 0; padding-left: 18px; line-height: 20px; font-size: 12px; font-weight: 600; color: var(--blue-light); letter-spacing: .02em; }
.hub-node { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--card); border: 1px solid rgba(255,255,255,.14); color: #e6edf8; font-weight: 600; font-size: 14px; white-space: nowrap; }
.hub-new { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 6px rgba(46,166,240,.18), 0 10px 30px -10px rgba(46,166,240,.8); }
.hub-new em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--blue); padding: 2px 7px; border-radius: 999px; }
.hub-node-out { gap: 10px; padding: 0 16px; border-radius: 14px; font-weight: 400; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.hub-node-out b { color: #fff; font-weight: 600; margin-right: -4px; }
.hub-node-out::before { content: '✓'; flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #fff; color: var(--blue-btn); }
.hub-core-wrap { position: relative; display: grid; place-items: center; padding-top: 32px; }
.hub-core { position: relative; width: 196px; height: 196px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #0c2a55, #061631 70%); border: 1px solid rgba(127,195,255,.35); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; box-shadow: 0 0 0 14px rgba(255,255,255,.04), 0 0 80px rgba(46,166,240,.35); }
.hub-core img { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 4px; }
.hub-core b { color: #fff; font-size: 15px; letter-spacing: -0.02em; }
.hub-core small { color: var(--muted); font-size: 11.5px; max-width: 150px; line-height: 1.35; text-wrap: balance; }
.core-ring { position: absolute; inset: -26px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.28); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: #e6edf8; font-size: 15.5px; }
.ticks li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #fff; color: var(--blue-btn); transform: translateY(2px); }
.ticks-row { margin: 72px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.ticks-row li { align-items: flex-start; line-height: 22px; justify-content: center; padding: 26px 20px 0; text-align: left; font-size: 15px; }
.ticks-row li::before { transform: none; }
.ticks-row li + li { border-left: 1px solid rgba(255,255,255,.14); }

/* ===== Templates: tab bar fused to the demo card ===== */
.showcase { background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255,255,255,.1); }
.tab { position: relative; z-index: 1; text-align: left; border: 0; background: none; padding: 20px 24px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
.tab + .tab { border-left: 1px solid rgba(255,255,255,.1); }
.tab-n { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.tab b { font-size: 15.5px; color: #c9d8ea; transition: color .3s; }
.tab small { font-size: 12.5px; color: var(--muted); }
.tab:hover b { color: #fff; }
.tab.is-active b { color: #fff; }
.tab.is-active .tab-n { background: #fff; color: var(--blue-btn); }
.tab-thumb { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / 3); background: rgba(255,255,255,.07); transition: transform .5s var(--ease); }
.panel[hidden] { display: none; }
.panel.is-active .demo { animation: pop .45s var(--ease) both; }
.demo { padding: 24px; }
.demo-info { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.demo-info p { margin: 0; font-size: 15px; line-height: 1.55; color: #e6edf8; max-width: 540px; }
.demo-info .hint { font-size: 13px; color: var(--muted); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.demo-info .hint b { color: #fff; }
.stage { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: stretch; }

/* Mock browser + franchise site (stays light: it's the client's website) */
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #eef1f6; border-bottom: 1px solid #e1e5ec; }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e1; }
.browser-url { margin-left: 12px; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: #fff; font-size: 12px; color: #5d6779; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site { position: relative; height: 560px; overflow: hidden; background: #fafbfc; }
.site { container-type: inline-size; }
.site nav { display: flex; gap: 18px; margin-left: auto; }
.site img { display: block; }
/* Groovy Hues (groovyhues.com) */
.site-gh { background: #1c315d; font-family: 'Jost', var(--font); color: #1c315d; }
.gh-top { display: flex; justify-content: flex-end; gap: 18px; padding: 7px 22px; background: #1c315d; color: #fff; font-size: 12px; }
.gh-top b { font-weight: 600; }
.gh-nav { display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: #f7f5e9; font-weight: 600; font-size: 13px; white-space: nowrap; }
.gh-nav img { height: 34px; width: auto; }
.gh-btn { display: inline-block; padding: 7px 14px; border-radius: 10px; background: #eab14a; color: #1c315d; font-weight: 800; font-size: 12.5px; border: 1.5px solid #1c315d; white-space: nowrap; }
.gh-btn-navy { background: #1c315d; color: #eab14a; }
.gh-hero { position: relative; height: 300px; overflow: hidden; }
.gh-sec { padding: 26px 22px 120px; background: #f7f5e9; }
.gh-sec h5 { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: #1c315d; }
.gh-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 62%; }
.gh-feats span { font-size: 12.5px; color: #44506a; line-height: 1.35; }
.gh-feats b { display: block; font-size: 14px; color: #1c315d; }
.gh-photo { height: 170px; background: var(--img) center 60% / cover no-repeat, #6d7b8f; }
.gh-card { position: relative; z-index: 2; margin: -110px 0 0 7%; width: min(330px, 70%); padding: 22px 20px; border-radius: 16px; background: #f7f5e9; text-align: center; box-shadow: 0 16px 34px -14px rgba(0,0,0,.5); }
.gh-card h4 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: #1c315d; }
.gh-card p { margin: 0 0 14px; font-size: 14.5px; font-weight: 500; }
.gh-stripe { position: absolute; z-index: 1; top: 170px; bottom: 0; left: calc(7% + min(330px, 70%) - 40px); width: 72px; background: linear-gradient(90deg, #4bb3ad 0 25%, #eab14a 25% 50%, #e7774a 50% 75%, #d2504e 75%); }
/* Bumble Bee Blinds (bumblebeeblinds.com) */
.site-bb { background: #24160e; color: #fff; }
.bb-top { display: flex; justify-content: flex-end; gap: 16px; padding: 7px 22px; background: #24160e; font-size: 11.5px; font-weight: 600; }
.bb-nav { display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 8px 0 8px 22px; background: #fff; color: #24160e; font-size: 12.5px; font-weight: 600; }
.bb-nav img { height: 34px; width: auto; }
.bb-btn { display: inline-block; padding: 9px 16px; background: #f1a71e; color: #24160e; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.bb-btn-dark { background: #24160e; color: #fff; }
.bb-nav .bb-btn-dark { margin-right: 14px; }
.bb-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 100%; padding: 40px 0 0 22px; }
.bb-copy small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #f1a71e; text-transform: uppercase; letter-spacing: .08em; }
.bb-copy h4 { margin: 0 0 10px; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.bb-copy p { margin: 0 0 18px; font-size: 14px; color: #e9dfd7; }
.bb-collage { background: var(--img) left top / cover no-repeat, #3a2a20; min-height: 300px; }
@container (max-width: 860px) { .site nav { display: none; } .gh-nav .gh-btn-navy { margin-left: auto; } .bb-nav .bb-btn:not(.bb-btn-dark) { margin-left: auto; } }
@container (max-width: 640px) {
  .gh-top span, .bb-top span { display: none; }
  .gh-nav .gh-btn-navy, .bb-nav .bb-btn:not(.bb-btn-dark) { display: none; }
  .gh-nav .gh-btn, .bb-nav .bb-btn-dark { margin-left: auto; }
  .bb-hero { grid-template-columns: 1fr; }
  .bb-collage { display: none; }
  .gh-card { margin-left: 16px; }
  .gh-stripe { display: none; }
  .gh-feats { grid-template-columns: 1fr; max-width: none; }
  .gh-nav, .bb-nav { padding: 8px 14px; }
  .gh-top, .bb-top { padding: 6px 14px; }
  .gh-nav img, .bb-nav img { height: 28px; }
  .bb-nav .bb-btn-dark { margin-right: 0; }
  .gh-sec, .bb-hero { padding-left: 14px; padding-right: 14px; }
  .bb-copy h4 { font-size: 22px; }
}

/* Inside Callvera log */
.log { background: rgba(0,0,0,.28); border: 1px solid var(--line-soft); color: var(--text); border-radius: 14px; padding: 14px; font-size: 12.5px; display: flex; flex-direction: column; max-height: 596px; overflow: hidden; }
.log-head { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18,183,106,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow-y: auto; align-content: start; }
.log-list li { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.05); line-height: 1.45; animation: logIn .35s ease both; }
.log-list li b { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }
.log-list li.ok b { color: var(--green-2); }
.log-list li.warn b { color: #ffd27a; }
.log-list .empty { background: none; border: 1px dashed rgba(255,255,255,.16); color: var(--muted); }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Chat widget (lives on the franchise site) ===== */
.cv-widget { --accent: var(--gh); --brand: var(--gh); --on-brand: var(--gh-gold); --on-accent: #fff; --launch: var(--gh-gold); --on-launch: var(--gh); position: absolute; right: 18px; bottom: 18px; z-index: 5; font-size: 14px; color: var(--ink); }
.cv-widget[data-brand="bb"] { --accent: var(--bb-ink); --brand: var(--bb); --on-brand: var(--bb-ink); --launch: var(--bb); --on-launch: var(--bb-ink); }
.cv-launcher { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--launch, var(--accent)); color: var(--on-launch, var(--on-accent)); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); margin-left: auto; transition: transform .2s; }
.cv-launcher:hover { transform: scale(1.05); }
.cv-launcher svg { width: 26px; height: 26px; }
.cv-teaser { position: absolute; right: 0; bottom: 70px; width: 230px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 40px -12px rgba(0,0,0,.35); font-size: 13.5px; line-height: 1.45; cursor: pointer; animation: logIn .4s ease both; }
.cv-window { position: absolute; right: 0; bottom: 0; width: 340px; height: 500px; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); animation: winIn .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes winIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cv-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; color: var(--ink); border-bottom: 1px solid #eceff4; }
.cv-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand, var(--gh)); color: var(--on-brand, #fff); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.cv-title { line-height: 1.2; min-width: 0; }
.cv-logo { height: 30px; width: auto; max-width: 130px; object-fit: contain; flex: none; }
.phone-logo { height: 28px; width: auto; min-width: 0; }
.cv-title b { display: block; font-size: 14.5px; }
.cv-title small { white-space: nowrap; font-size: 12px; color: #6b7588; display: flex; align-items: center; gap: 5px; }
.cv-title small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cv-close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .85; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.cv-close:hover { background: #f1f3f7; }
.cv-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: #f7f8fb; scroll-behavior: smooth; }
.cv-msg { max-width: 84%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; animation: logIn .25s ease both; word-wrap: break-word; }
.cv-bot { background: #fff; color: var(--ink); border: 1px solid #eceff4; border-bottom-left-radius: 4px; align-self: flex-start; }
.cv-user { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; align-self: flex-end; }
.cv-sys { align-self: center; font-size: 12px; color: #5d6779; background: #eef1f6; padding: 5px 10px; border-radius: 999px; text-align: center; }
.cv-card { align-self: flex-start; width: 84%; background: #fff; border: 1px solid #eceff4; border-radius: 14px; padding: 12px; animation: logIn .25s ease both; }
.cv-card b { color: var(--ink); display: block; margin-bottom: 4px; }
.cv-card .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #5d6779; padding: 3px 0; }
.cv-card .row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.cv-card.cv-ok { border-color: #bfe9d2; background: #f2fbf6; }
.cv-typing { align-self: flex-start; background: #fff; border: 1px solid #eceff4; border-radius: 14px; padding: 12px 14px; display: flex; gap: 4px; }
.cv-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b5bdca; animation: typing 1.2s infinite; }
.cv-typing i:nth-child(2) { animation-delay: .15s; }
.cv-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.cv-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; justify-content: flex-end; }
.cv-chip { border: 1px solid #d9dee7; color: var(--ink); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; transition: background .15s; }
.cv-chip:hover { border-color: var(--accent); background: #f6f8fb; }
.cv-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eceff4; background: #fff; }
.cv-foot input { flex: 1; min-width: 0; border: 1px solid #e1e5ec; border-radius: 999px; padding: 9px 14px; font-size: 14px; outline: none; color: var(--ink); background: #fff; }
.cv-foot input:focus { border-color: var(--accent); }
.cv-send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; flex: none; }
.cv-send svg { width: 16px; height: 16px; }
.cv-powered { text-align: center; font-size: 10.5px; color: #9aa3b2; padding: 0 0 8px; background: #fff; }
.cv-restart { border: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; align-self: center; padding: 6px; text-decoration: underline; }
.cv-widget-sheet .cv-window { width: 360px; height: 470px; }
.cv-widget-sheet .cv-avatar { background: var(--bb); color: var(--bb-ink); }
.cv-progress { height: 4px; background: #f1f1ec; }
.cv-progress i { display: block; height: 100%; background: var(--bb); width: 0; transition: width .4s ease; }
.cv-nudge { position: absolute; right: 0; bottom: 0; width: 300px; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.45); animation: winIn .35s ease both; }
.cv-nudge b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.cv-nudge p { margin: 0 0 12px; color: #5d6779; font-size: 13.5px; line-height: 1.45; }
.cv-nudge .cv-quick { justify-content: flex-start; }
.cv-nudge .cv-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: #5d6779; cursor: pointer; font-size: 18px; width: 28px; height: 28px; }
.cv-widget[data-brand="bb"] .cv-chip.primary { background: var(--bb); border-color: var(--bb); font-weight: 600; }
.cv-pill { display: flex; background: #fff; border-radius: 999px; padding: 5px; gap: 4px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); animation: winIn .3s ease both; }
.cv-pill button { border: 0; border-radius: 999px; height: 42px; padding: 0 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; background: transparent; color: var(--ink); }
.cv-pill button svg { width: 16px; height: 16px; }
.cv-pill button.cv-call { background: var(--accent); color: var(--on-accent); }
.cv-callcard { align-self: stretch; background: var(--navy); color: #fff; border-radius: 16px; padding: 18px; text-align: center; animation: logIn .3s ease both; }
.cv-callcard .ring { width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: ring 1.4s infinite; }
.cv-callcard .ring svg { width: 24px; height: 24px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.55); } 100% { box-shadow: 0 0 0 18px rgba(18,183,106,0); } }
.cv-callcard b { display: block; font-size: 15px; }
.cv-callcard small { color: #a9b6cc; font-size: 12.5px; }
.cv-callcard .timer { font-variant-numeric: tabular-nums; margin-top: 8px; color: var(--green-2); font-weight: 600; }

/* ===== Routing playground: controls panel + tree ===== */
.play { display: grid; grid-template-columns: 340px 1fr; border-radius: 26px; background: #fff; border: 1px solid #d5e3f2; box-shadow: 0 18px 50px rgba(3,16,38,.08); overflow: hidden; }
.play-controls { display: grid; gap: 12px; align-content: start; padding: 28px; background: #f4f7fb; border-right: 1px solid #e3ebf5; }
.ctl-k { font-size: 12.5px; font-weight: 600; color: var(--navy-muted); }
.scen { display: grid; gap: 8px; }
.scen-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; border: 1px solid #d5e3f2; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.scen-card:hover { border-color: #9fbfe4; box-shadow: 0 8px 20px -12px rgba(3,16,38,.35); transform: translateY(-1px); }
.scen-card:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.scen-card b { display: block; font-size: 14.5px; color: var(--navy-head); font-weight: 600; }
.scen-card small { display: block; margin-top: 2px; font-size: 13px; color: var(--navy-muted); }
.scen-card i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c3d3e6; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.scen-card i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.scen-card.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,120,231,.12); }
.scen-card.is-on i { border-color: var(--blue); background: var(--blue); }
.scen-card.is-on i::after { transform: none; }
.play-result { margin: 10px 0 0; min-height: 68px; padding-top: 16px; border-top: 1px solid #e3ebf5; font-size: 15px; line-height: 1.5; color: var(--navy-head); font-weight: 500; }
.play-result b { color: var(--blue); }
.tree-wrap { padding: 36px 28px; display: grid; align-items: center; background:
  radial-gradient(circle, #e3ebf5 1px, transparent 1.5px) 0 0 / 22px 22px; }
.tree { display: grid; justify-items: center; }
.node { position: relative; z-index: 1; border-radius: 12px; transition: background .35s, border-color .35s, color .35s, box-shadow .35s, opacity .35s; }
.node-root, .node-q { background: #fff; border: 1px solid #d5e3f2; color: var(--navy-head); font-weight: 600; font-size: 14.5px; padding: 11px 18px; white-space: nowrap; }
.node-end { width: 100%; max-width: 220px; border: 1px solid #d5e3f2; padding: 14px; text-align: center; display: grid; gap: 4px; background: #fff; }
.node-end b { color: var(--navy-head); font-size: 15px; }
.node-end small { font-size: 12.5px; color: var(--navy-muted); line-height: 1.4; }
.node.lit { background: var(--stage); border-color: var(--stage); color: #fff; }
.node-end.lit { background: var(--blue); border-color: var(--blue); box-shadow: 0 16px 34px -16px rgba(8,120,231,.8); animation: hit 1s var(--ease) both; }
.node-end.lit b, .node-end.lit small { color: #fff; }
.tree.has-path .node:not(.lit) { opacity: .4; }
.tree-split { position: relative; display: grid; gap: 18px; width: 100%; padding-top: 28px; }
.tree-split::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 14px; background: #c9d7e8; transform: translateX(-50%); }
.tree-split-2 { grid-template-columns: 1fr 2.4fr; }
.tree-split-3 { grid-template-columns: repeat(3, 1fr); }
.tree-branch { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding-top: 14px; }
.tree-branch::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 2px; background: #c9d7e8; transition: background .35s; }
.tree-branch:first-child::before { left: 50%; }
.tree-branch:last-child::before { right: 50%; }
.tree-branch::after { content: ''; position: absolute; top: -14px; left: 50%; width: 2px; height: 28px; background: #c9d7e8; transform: translateX(-50%); transition: background .35s; }
.tree-branch.lit::after, .tree-branch.lit:first-child::before, .tree-branch.lit:last-child::before { background: var(--blue); }
.tree-edge { position: relative; z-index: 1; font-size: 12.5px; font-weight: 600; color: var(--navy-muted); background: #fff; padding: 0 6px; border-radius: 4px; transition: color .35s; }
.tree-branch.lit > .tree-edge { color: var(--blue); }

/* ===== FAQ: navy card, two columns ===== */
.faq-card { border-radius: 30px; padding: 56px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.6); }
.faq-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.faq-note { margin: 0; color: var(--muted); font-size: 15px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq details { border-top: 1px solid rgba(255,255,255,.14); }
.faq-col details:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: 16.5px; font-weight: 600; color: #fff; transition: color .2s; }
.faq summary:hover { color: var(--blue-light); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue); }
.faq details > div { overflow: hidden; }
.faq details p { margin: 0; padding: 0 44px 22px 0; font-size: 15px; line-height: 1.65; color: var(--text); }

/* ===== Join: centered email-only signup ===== */
.join { padding: 120px 0 150px; }
.join-inner { max-width: 720px; text-align: center; }
.join h2 { font-size: clamp(36px, 4.8vw, 62px); }
.join .lead { margin-inline: auto; }
.signup-form { position: relative; max-width: 560px; margin: 40px auto 0; }
.signup-pill { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); transition: box-shadow .2s; }
.signup-pill:focus-within { box-shadow: 0 30px 70px -30px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.25); }
.signup-pill input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; padding: 0 20px; font-size: 16px; color: var(--navy-head); }
.signup-pill input::placeholder { color: #9aabc0; }
.signup-pill input.invalid { animation: shake .4s; }
.signup-pill .btn { flex: none; height: 52px; padding: 0 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; font-size: 14px; min-height: 20px; color: var(--muted); }
.form-msg.err { color: #ffd2d6; }
.signup-done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 8px; animation: pop .5s var(--ease) both; }
.signup-done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; animation: hit 1.2s var(--ease) both; }
.signup-done b { display: block; color: #fff; font-size: 20px; }
.signup-done p { color: var(--text); margin: 4px 0 0; }

/* Floating CTA */
.float-cta { position: fixed; left: 50%; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: #12335d; color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 20px 40px -14px rgba(3,16,38,.6), 0 0 0 1px rgba(255,255,255,.18); transform: translate(-50%, 120%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.float-cta.show { transform: translate(-50%, 0); opacity: 1; }
.float-cta span { transition: transform .3s var(--ease); }
.float-cta:hover span { transform: translateX(4px); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer img { width: 92px; }
.footer a { color: #fff; }

/* ===== Blue <-> white sections (callvera.ai SectionTransition) ===== */
.fade { height: 320px; }
.fade-to-white { background-image: linear-gradient(180deg, #00519e 0%, #397bb2 25%, #7aa7ca 50%, #bdd1e2 75%, #ffffff 100%); background-image: linear-gradient(180deg in oklab, #00519e 0%, #397bb2 25%, #7aa7ca 50%, #bdd1e2 75%, #ffffff 100%); }
.fade-to-blue { background-image: linear-gradient(180deg, #ffffff 0%, #bdd1e2 25%, #7aa7ca 50%, #397bb2 75%, #00519e 100%); background-image: linear-gradient(180deg in oklab, #ffffff 0%, #bdd1e2 25%, #7aa7ca 50%, #397bb2 75%, #00519e 100%); }
.fade + .sec { padding-top: 24px; }
.sec:has(+ .fade) { padding-bottom: 24px; }
.brands:has(+ .fade) { padding-bottom: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .topnav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-stage { grid-template-columns: 1fr 310px 1fr; gap: 32px; }
  .phone { width: 310px; }
  .co::before { display: none; }
  .hub { gap: 72px; }
  .hub-col .hub-node-out { height: auto; min-height: 50px; padding: 10px 16px; white-space: normal; line-height: 1.35; }
  .play { grid-template-columns: 1fr; }
  .play-controls { border-right: 0; border-bottom: 1px solid #e3ebf5; }
  .scen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-stage { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
  .hero-phone { grid-column: 1 / -1; order: -1; margin-bottom: 18px; }
  .callouts, .callouts-l { justify-items: stretch; gap: 14px; }
  .co { width: auto; opacity: .6; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
  .ba { grid-template-columns: 1fr; }
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-stage, .scrolly-rail { display: none; }
  .scrolly-steps { padding-left: 0; }
  .step-n { margin: 0 0 14px; }
  .scrolly-step, .scrolly-step:first-child, .scrolly-step:last-child { min-height: 0; opacity: 1; padding: 0 0 48px; }
  .scrolly-step .step-n { background: var(--blue); border-color: var(--blue); color: #fff; }
  .step-k { margin-top: 0; }
  .scrolly-step .scene { display: grid; place-items: center; margin-top: 22px; padding: 24px; min-height: 240px; border-radius: 20px; background: var(--stage); }
  .scrolly-step .scene * { animation: none !important; }
  .hub { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .hub-lines { display: none; }
  .hub-col { justify-items: center; }
  .hub-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; justify-self: center; width: auto; }
  .hub-in .hub-node { width: auto; height: 44px; }
  .hub-k { padding-left: 0; }
  .hub-core-wrap { padding-top: 0; }
  .hub-in .hub-k, .hub-out .hub-k { width: 100%; text-align: center; }
  .hub-core-wrap { padding: 56px 0; }
  .hub-core-wrap::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(255,255,255,.4) 0 4px, transparent 4px 10px); }
  .hub-out { width: min(100%, 420px); max-width: none; justify-self: center; }
  .hub-node-out { max-width: none; width: 100%; }
  .ticks-row { grid-template-columns: 1fr; max-width: 420px; margin-top: 48px; }
  .ticks-row li { justify-content: flex-start; padding: 16px 4px 0; }
  .ticks-row li + li { border-left: 0; }
  .stage { grid-template-columns: 1fr; }
  .log { max-height: 240px; }
  .faq-card { padding: 36px 28px; }
  .faq { grid-template-columns: 1fr; }
  .faq-col:first-child details:last-child { border-bottom: 0; }
  .sec, .join { padding: 88px 0; }
}
@media (max-width: 640px) {
  .topbar-inner { padding-left: 16px; height: 54px; }
  .hero { padding: 104px 0 32px; }
  .hero-chip { font-size: 12.5px; }
  .hero-sub { font-size: 16.5px; }
  .hero-stage { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stage .callouts-r { margin-top: -4px; }
  .co { padding: 14px; border-radius: 14px; }
  .co b { font-size: 14px; }
  .co small { font-size: 12px; }
  .phone { width: 290px; height: 520px; }
  .stat { padding: 16px; }
  .stat b { font-size: 32px; margin-top: 12px; }
  .stat span { font-size: 13px; }
  .stat-viz { width: 38px; height: 38px; }
  .ba-col { padding: 20px; border-radius: 20px; }
  .ba-list li { padding: 12px; }
  .tabs { grid-template-columns: 1fr; }
  .tab + .tab { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .tab { padding: 14px 18px; }
  .tab-thumb { width: 100%; height: calc(100% / 3); bottom: auto; }
  .demo { padding: 14px; }
  .demo-info .hint { border-radius: 12px; }
  .play-controls { padding: 20px; }
  .scen { grid-template-columns: 1fr; }
  .tree-wrap { padding: 22px 18px; }
  .tree { justify-items: stretch; }
  .tree-split-2, .tree-split-3 { grid-template-columns: 1fr; gap: 14px; padding: 14px 0 0 18px; margin-left: 10px; border-left: 2px solid #c9d7e8; }
  .tree-split::before, .tree-branch::before, .tree-branch::after { display: none; }
  .tree-branch { justify-items: start; padding-top: 0; gap: 8px; }
  .node-root, .node-q { white-space: normal; justify-self: start; }
  .tree-edge { padding: 0; background: none; }
  .node-end { max-width: none; text-align: left; }
  .faq-card { padding: 28px 20px; border-radius: 24px; }
  .faq details p { padding-right: 0; }
  .faq summary { font-size: 15.5px; }
  .fade { height: 220px; }
}
@media (max-width: 520px) {
  .signup-pill { flex-direction: column; align-items: stretch; border-radius: 22px; }
  .signup-pill input { flex: none; text-align: center; }
  .signup-pill .btn { border-radius: 16px; }
  .brand img { width: 88px; }
  .brand-hp, .brand-x { display: none; }
  .site { height: 540px; }
  .cv-widget { right: 10px; bottom: 10px; left: 10px; }
  .cv-window, .cv-widget-sheet .cv-window { width: 100%; height: 480px; }
  .cv-nudge { width: 100%; }
  .cv-pill { margin-left: auto; width: max-content; }
  .cv-teaser { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track, .core-ring, .hub-lines path { animation: none !important; }
}
