:root {
  color-scheme: dark;
  --ink-950: #05061a;
  --ink-900: #080a1c;
  --ink-850: #0c0f28;
  --ink-800: #11143a;
  --ink-700: #1a1e4d;
  --text: #eef0ff;
  --muted: #b2b7da;
  --dim: #8d93bf;
  --line: rgba(190, 198, 255, 0.14);
  --line-strong: rgba(190, 198, 255, 0.24);
  --glass: rgba(22, 26, 68, 0.55);
  --glass-2: rgba(255, 255, 255, 0.045);
  --indigo: #818cf8;
  --indigo-2: #a5b4fc;
  --violet: #a78bfa;
  --ok: #4ade80;
  --warn: #fbbf24;
  --hot: #fb7185;
  --accent: #f0abfc;
  --accent-2: #a78bfa;
  --accent-ink: #1b0b24;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #1c2063 0%, transparent 60%), radial-gradient(900px 600px at -10% 30%, #170f3d 0%, transparent 60%), var(--ink-900);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-2); }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--indigo-2); color: var(--ink-900); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 60px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* background orbs */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.o1 { width: 520px; height: 520px; background: #4f46e5; top: -180px; right: -140px; animation: drift 22s ease-in-out infinite alternate; }
.o2 { width: 420px; height: 420px; background: #7c3aed; top: 45%; left: -220px; opacity: .25; animation: drift 26s ease-in-out infinite alternate-reverse; }
.o3 { width: 360px; height: 360px; background: var(--accent); bottom: -200px; right: 10%; opacity: .12; transition: background .6s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }

/* demo pill */
.demo-pill {
  position: fixed; z-index: 60; top: 8px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  background: rgba(10, 12, 34, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0 4px 0 14px; height: 36px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,.6);
  transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 24px);
}
.demo-pill a { color: var(--text); text-decoration: none; white-space: nowrap; line-height: 36px; }
.demo-pill a:hover { color: var(--indigo-2); }
.demo-pill-close { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.demo-pill-close::after { content: ""; position: absolute; inset: -8px; }
.demo-pill-close:hover { background: rgba(255,255,255,.08); color: #fff; }
body.chat-focused .demo-pill { opacity: 0; pointer-events: none; }
.demo-pill[hidden] { display: none; }

/* header */
.site-header { padding-top: 52px; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; min-height: 44px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #1c2160, #10133a); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 24px -6px rgba(129,140,248,.6); }
nav { margin-left: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 10px; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.05); }
@media (min-width: 900px) { .nav-links { display: flex; } .site-header { padding-top: 56px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 0; transition: transform .2s var(--ease), box-shadow .2s, background .2s; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #c7d2fe, #818cf8 55%, #a78bfa); color: #0a0c26; box-shadow: 0 10px 30px -10px rgba(129,140,248,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { color: #0a0c26; transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(129,140,248,1), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.btn-xs { min-height: 44px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.glass { background: linear-gradient(180deg, rgba(34, 39, 96, .55), rgba(16, 19, 54, .55)); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }

/* hero */
.hero { padding: 36px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 64px 0 80px; } .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--indigo-2); font-weight: 600; background: rgba(129,140,248,.1); border: 1px solid rgba(129,140,248,.25); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
h1 { font-size: clamp(40px, 10.5vw, 76px); font-weight: 800; letter-spacing: -0.035em; background: linear-gradient(180deg, #fff 30%, #c7cbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-proof { display: flex; gap: 28px; list-style: none; padding: 0; margin: 32px 0 0; flex-wrap: wrap; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--display); font-size: 22px; }
.hero-proof span { color: var(--dim); font-size: 14px; }

.hero-visual { position: relative; max-width: 480px; width: 100%; margin: 0 auto; padding: 52px 8px 40px; }
.hero-card { padding: 18px; }
.hc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hc-head b { display: block; font-size: 15px; }
.hc-head small { color: var(--dim); font-size: 12.5px; }
.hc-avatar { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #c7d2fe, #818cf8); flex: none; }
.hc-badge { margin-left: auto; font-size: 12px; font-weight: 600; color: #fde68a; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.hc-body { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; min-height: 250px; }
.hb { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; opacity: 0; animation: pop 12s var(--ease) infinite; }
.hb.user { align-self: flex-end; background: linear-gradient(135deg, #818cf8, #6366f1); color: #fff; border-bottom-right-radius: 6px; }
.hb.bot { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.hb.card { display: flex; gap: 12px; align-items: center; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.3); max-width: 100%; }
.hb.card b { display: block; } .hb.card small { color: var(--muted); }
.hb1 { animation-delay: 0s; } .hb2 { animation-delay: .9s; } .hb3 { animation-delay: 1.8s; } .hb4 { animation-delay: 2.6s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.98); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
.ok-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052e16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: 0 0 20px rgba(74,222,128,.5); }
.hero-float { position: absolute; padding: 12px 16px; border-radius: 16px; font-size: 13px; min-width: 170px; animation: bob 6s ease-in-out infinite; }
.hero-float small { display: block; color: var(--dim); font-size: 12px; }
.hero-float b { font-size: 14.5px; }
.hf1 { right: -4px; top: -34px; }
.hf2 { left: -4px; bottom: 0; animation-delay: -3s; }
.bar { display: block; height: 6px; background: rgba(255,255,255,.1); border-radius: 6px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--ok)); border-radius: 6px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (min-width: 1024px) { .demo-pill { top: auto; bottom: 16px; left: auto; right: 16px; transform: none; } .site-header { padding-top: 8px; } }
@media (max-width: 520px) { .hf1 { right: 0; top: -20px; } .hf2 { left: 0; } .hero-float { min-width: 0; } }

/* sections */
.section { padding: 56px 0; }
@media (min-width: 980px) { .section { padding: 88px 0; } }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--indigo-2); margin-bottom: 12px; }
.kicker.sm { font-size: 11.5px; margin-bottom: 4px; }
h2 { font-size: clamp(30px, 6.5vw, 48px); font-weight: 800; max-width: 22ch; }
.section-sub { color: var(--muted); font-size: 17.5px; margin-top: 16px; max-width: 46em; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { padding: 26px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(129,140,248,.16); color: var(--indigo-2); font-weight: 800; font-family: var(--display); margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(129,140,248,.35); }
.step h3, .feature h3 { font-size: 20px; margin-bottom: 8px; }
.step p, .feature p { color: var(--muted); font-size: 15.5px; }

.feature-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { padding: 24px; transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.f-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, rgba(129,140,248,.25), rgba(167,139,250,.1)); margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(165,180,252,.3); }
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--indigo-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* demo */
.demo-section { position: relative; }
.scripted-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 16px; border-radius: 14px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.28); color: #fde9b5; font-size: 14.5px; max-width: 760px; }
.scripted-note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #fbbf24; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.scripted-note strong { color: #fff3cf; }

.demo-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 28px 0 18px; }
.industry-switch, .lang-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; }
.industry-switch { flex: 1 1 100%; }
@media (min-width: 900px) { .industry-switch { flex: 0 1 auto; } }
.ind-btn, .lang-btn { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; flex: 1 1 auto; justify-content: center; }
.ind-btn:hover, .lang-btn:hover { color: #fff; background: rgba(255,255,255,.05); }
.ind-btn[aria-pressed="true"], .lang-btn[aria-pressed="true"] { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ind-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #888); }
.ind-btn[data-industry="medspa"] { --c: #f0abfc; }
.ind-btn[data-industry="home"] { --c: #fbbf24; }
.ind-btn[data-industry="dental"] { --c: #5eead4; }
.ind-btn[data-industry="restaurant"] { --c: #fb923c; }
.ind-btn[aria-pressed="true"] .ind-dot { box-shadow: 0 0 10px var(--c); }
.lang-switch { margin-left: auto; }
@media (max-width: 899px) { .lang-switch { margin-left: 0; flex: 1 1 100%; } }

.demo-tabs { display: flex; gap: 6px; padding: 5px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; }
.demo-tab { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; position: relative; }
.demo-tab[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab-ping { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }
.tab-ping[hidden] { display: none; }

.demo-grid { display: grid; gap: 20px; }
@media (max-width: 1023px) { .demo-grid > [role="tabpanel"][data-hidden="true"] { display: none; } }
@media (min-width: 1024px) {
  .demo-tabs { display: none; }
  .demo-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .owner { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
}

/* chat */
.chat { display: flex; flex-direction: column; height: clamp(520px, 76svh, 680px); overflow: hidden; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 40px 100px -50px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.06); transition: border-color .5s, box-shadow .5s; }
@media (min-width: 1024px) { .chat { height: 720px; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.chat-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; box-shadow: 0 6px 24px -8px var(--accent); transition: background .5s; }
.chat-id { min-width: 0; flex: 1; }
.chat-id b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-id small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.06); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
@media (min-width: 720px) { .chat-log { padding: 20px 20px 8px; } }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; animation: msgIn .35s var(--ease); }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent-2)); color: var(--accent-ink); font-weight: 500; border-bottom-right-radius: 6px; }
.msg.system { align-self: center; max-width: 94%; font-size: 13px; color: var(--muted); background: transparent; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; padding: 8px 12px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }

.card-msg { align-self: stretch; max-width: 100%; border-radius: 18px; padding: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,.04)), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); animation: msgIn .35s var(--ease); }
.card-msg h4 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card-msg dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.card-msg dt { color: var(--dim); }
.card-msg dd { margin: 0; font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { flex: 1 1 140px; min-height: 44px; font-size: 14.5px; }
.card-msg.done { border-color: rgba(74,222,128,.45); background: linear-gradient(160deg, rgba(74,222,128,.12), rgba(255,255,255,.03)); }
.card-msg .ok-dot { width: 24px; height: 24px; background-size: 14px; }
.btn-accent { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent-2)); color: var(--accent-ink); }
.btn-accent:hover { color: var(--accent-ink); transform: translateY(-1px); }

.typing { display: flex; gap: 5px; align-self: flex-start; margin: 0 0 8px 16px; padding: 12px 16px; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; width: max-content; }
@media (min-width: 720px) { .typing { margin-left: 20px; } }
.typing[hidden] { display: none; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chips { display: flex; gap: 8px; padding: 8px 14px 10px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 24px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips:empty { padding: 0; }
@media (min-width: 720px) { .chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 8px 20px 10px; } }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--text); font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.chip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.chip:active { transform: scale(.97); }

.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(5,6,26,.35); }
.chat-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); font-size: 16px; }
.chat-form input::placeholder { color: var(--dim); }
.chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.send-btn { width: 48px; height: 48px; flex: none; border: 0; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent-2)); cursor: pointer; display: grid; place-items: center; }
.send-btn svg { width: 20px; height: 20px; fill: var(--accent-ink); }
.chat-foot { font-size: 12px; color: var(--dim); padding: 0 14px 10px; background: rgba(5,6,26,.35); }

/* owner */
.owner { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 720px) { .owner { padding: 24px; } }
.owner-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.owner-head h3 { font-size: 22px; }
.status-badge { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: rgba(129,140,248,.14); color: var(--indigo-2); border: 1px solid rgba(129,140,248,.35); }
.status-badge[data-s="booked"] { background: rgba(74,222,128,.12); color: #86efac; border-color: rgba(74,222,128,.4); }
.status-badge[data-s="quote"] { background: rgba(56,189,248,.12); color: #7dd3fc; border-color: rgba(56,189,248,.4); }
.status-badge[data-s="handoff"] { background: rgba(251,191,36,.12); color: #fcd34d; border-color: rgba(251,191,36,.4); }
.status-badge[data-s="lead"] { background: rgba(240,171,252,.12); color: #f5d0fe; border-color: rgba(240,171,252,.4); }
.owner-block { background: rgba(5,6,26,.3); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.owner-block h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-family: var(--font); font-weight: 600; margin-bottom: 8px; }
.block-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.block-row h4 { margin: 0; }
.summary { font-size: 15px; color: var(--text); }
.owner-split { display: grid; gap: 14px; }
@media (min-width: 520px) { .owner-split { grid-template-columns: 1fr auto; } }
.fields { margin: 0; display: grid; gap: 2px; }
.fields > div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14.5px; }
.fields > div:last-child { border-bottom: 0; }
.fields dt { color: var(--dim); }
.fields dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; border-radius: 6px; transition: background .6s; }
.fields dd.flash { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.fields dd[data-tone="high"] { color: #fda4af; }
.fields dd[data-tone="pos"] { color: #86efac; }
.fields dd[data-tone="neg"] { color: #fda4af; }
.fields dd[data-tone="med"] { color: #fcd34d; }

.score-block { display: flex; flex-direction: column; align-items: center; }
.score-block h4 { align-self: flex-start; }
.score-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-ring .track { stroke: rgba(255,255,255,.08); }
.score-ring .val { stroke: var(--ring, var(--indigo)); stroke-linecap: round; stroke-dasharray: var(--v) 100; transition: stroke-dasharray .8s var(--ease), stroke .5s; }
.score-ring div { text-align: center; }
.score-ring b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.score-ring small { color: var(--muted); font-size: 12.5px; }

.draft { font-size: 14.5px; background: rgba(255,255,255,.05); border-radius: 14px 14px 14px 4px; padding: 12px 14px; border: 1px solid var(--line); white-space: pre-line; }
.micro { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.micro:empty { display: none; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: rgba(5,6,26,.3); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.metric b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.metric small { color: var(--dim); font-size: 12.5px; line-height: 1.3; display: block; margin-top: 2px; }
.metric b.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--accent); } }

.inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.inbox details { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.inbox details[open] { background: rgba(255,255,255,.05); }
.inbox summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; min-height: 44px; align-items: center; border-radius: 12px; }
.inbox summary::-webkit-details-marker { display: none; }
.inbox .ib-who { font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .ib-meta { grid-column: 1; font-size: 12.5px; color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .ib-out { grid-row: 1 / span 2; grid-column: 2; }
.inbox .ib-body { padding: 0 12px 12px; font-size: 14px; color: var(--muted); }
.inbox li.new details { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); animation: msgIn .5s var(--ease); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.booked { background: rgba(74,222,128,.14); color: #86efac; }
.pill.quote { background: rgba(56,189,248,.14); color: #7dd3fc; }
.pill.handoff { background: rgba(251,191,36,.14); color: #fcd34d; }
.pill.answered { background: rgba(165,180,252,.14); color: #c7d2fe; }
.pill.lead { background: rgba(240,171,252,.14); color: #f5d0fe; }

/* missed call */
.missed-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .missed-grid { grid-template-columns: 1fr 380px; gap: 64px; } }
.missed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.missed-actions .micro { margin: 0; font-size: 14px; }
.owner-alert { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-top: 20px; max-width: 460px; animation: msgIn .4s var(--ease); }
.owner-alert[hidden] { display: none; }
.owner-alert b { display: block; }
.owner-alert small { color: var(--muted); font-size: 14px; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(340px, 100%); aspect-ratio: 9 / 18.5; max-height: 700px; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #2a2f63, #0d0f2a); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), inset 0 0 0 1.5px rgba(255,255,255,.14), 0 0 80px -30px var(--accent); position: relative; }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #000; border-radius: 20px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 38px; overflow: hidden; background: radial-gradient(400px 300px at 50% 0%, #22265e, #0a0b20 70%); display: flex; flex-direction: column; position: relative; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 13px; font-weight: 600; height: 46px; }
.ps-icons { display: flex; gap: 4px; align-items: center; }
.ps-icons i { width: 14px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.8); }
.ps-icons i:nth-child(1) { width: 4px; } .ps-icons i:nth-child(2) { width: 9px; }
.phone-idle { text-align: center; padding-top: 50px; }
.pi-time { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; }
.pi-date { color: var(--muted); margin-top: 6px; }
.pi-hint { margin-top: 60px; color: var(--dim); font-size: 13px; padding: 0 20px; }
.phone-call { text-align: center; padding-top: 60px; }
.phone-call[hidden], .phone-idle[hidden], .phone-thread[hidden] { display: none; }
.pc-label { color: var(--muted); font-size: 14px; }
.pc-name { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 6px; padding: 0 16px; }
.pc-num { color: var(--muted); margin-top: 4px; }
.pc-ring { margin: 60px auto 0; width: 72px; height: 72px; border-radius: 50%; background: #ef4444; display: grid; place-items: center; position: relative; }
.pc-ring::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(239,68,68,.5); animation: ring 1.2s infinite; }
.pc-ring span { width: 30px; height: 12px; border-radius: 8px; background: #fff; transform: rotate(135deg); }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.phone-thread { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pt-head { display: flex; flex-direction: column; align-items: center; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); gap: 2px; }
.pt-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 800; }
.pt-head b { font-size: 14px; }
.pt-head small { font-size: 11.5px; color: var(--dim); }
.pt-missed { text-align: center; font-size: 12px; color: #fca5a5; padding: 8px; }
.pt-msgs { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 7px; }
.sms { max-width: 82%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.4; animation: msgIn .3s var(--ease); white-space: pre-line; }
.sms.in { align-self: flex-start; background: rgba(255,255,255,.1); border-bottom-left-radius: 5px; }
.sms.out { align-self: flex-end; background: #3b82f6; color: #fff; border-bottom-right-radius: 5px; }
.sms.typing-sms { display: flex; gap: 4px; padding: 10px 12px; }
.sms.typing-sms span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.sms.typing-sms span:nth-child(2) { animation-delay: .15s; } .sms.typing-sms span:nth-child(3) { animation-delay: .3s; }
.sms-note { align-self: center; font-size: 11.5px; color: var(--dim); }

/* roi */
.roi-grid { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .roi-grid { grid-template-columns: 1.1fr 1fr; } }
.roi-inputs, .roi-result { padding: 24px; }
@media (min-width: 720px) { .roi-inputs, .roi-result { padding: 32px; } }
.slider + .slider { margin-top: 26px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.slider label { color: var(--muted); font-weight: 500; }
.slider output { font-family: var(--display); font-weight: 800; font-size: 22px; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--indigo) 0 var(--p), rgba(255,255,255,.12) var(--p) 100%); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--indigo); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -10px; box-shadow: 0 0 0 6px rgba(129,140,248,.3), 0 4px 12px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(129,140,248,.3); }
.roi-inputs .micro { margin-top: 22px; }
.roi-result { display: flex; flex-direction: column; gap: 18px; background: radial-gradient(500px 300px at 100% 0%, rgba(129,140,248,.25), transparent 70%), linear-gradient(180deg, rgba(34,39,96,.6), rgba(16,19,54,.6)); }
.roi-big { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 11vw, 68px); line-height: 1; letter-spacing: -0.03em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.roi-big span { background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi-big small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.roi-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-sub div { background: rgba(5,6,26,.3); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.roi-sub b { font-family: var(--display); font-size: 22px; display: block; }
.roi-sub small { color: var(--dim); font-size: 13px; }
.roi-result .btn { margin-top: auto; }

/* cta & footer */
.cta-card { padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; background: radial-gradient(600px 300px at 50% 0%, rgba(129,140,248,.3), transparent 70%), linear-gradient(180deg, rgba(34,39,96,.6), rgba(16,19,54,.6)); }
.cta-card h2 { max-width: 20ch; }
.cta-card p { color: var(--muted); max-width: 40em; }
@media (min-width: 720px) { .cta-card { padding: 56px; } }
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14.5px; }
.site-footer a { color: var(--indigo-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hb { opacity: 1; animation: none !important; }
  .orb { animation: none !important; }
}

.chat-log .typing { margin: 0; }
