/* Bizamatic landing. Design language follows reaos.ai: white page, large tightly
   tracked Hanken Grotesk headlines, pill buttons, hairline dividers, one blue accent.
   Brand colors are sampled from the Bizamatic logo: blue #1A78EC, navy #04154A.
   Radius system: interactive = full pill, cards = 24px, inner chips/inputs = 14px. */

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #04154a;
  --ink: #0b1430;
  --ink-2: #333a4d;
  --ink-3: #5b6275;
  --line: #d8dbe3;
  --line-soft: #e8eaf0;
  --wash: #f4f6fa;
  --blue: #1a78ec;
  --blue-press: #0f62cc;
  --blue-wash: #e8f1fe;
  --blue-line: #b9d5fb;
  --amber: #b45309;
  --amber-wash: #fdf1e3;
  --green: #15803d;
  --r-card: 24px;
  --r-in: 14px;
  --body: "Hanken Grotesk", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(4, 21, 74, 0.06), 0 24px 48px -24px rgba(4, 21, 74, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

section { padding-inline: var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: 1400px; height: 72px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nl { padding: 10px 14px; text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nl:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav-links .pill { margin-left: 10px; min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
@media (max-width: 900px) { .nl { display: none; } }
@media (max-width: 480px) { .brand img { height: 28px; } .nav-links .pill { padding: 0 16px; font-size: 0.88rem; } }

/* ------------------------------------------------------------ buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.pill:active { transform: scale(0.98); }
.pill svg { font-size: 1.1em; transition: transform 0.25s var(--ease); }
.pill:hover svg { transform: translateX(3px); }
.pill-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.pill-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(26, 120, 236, 0.7); }
.pill-blue:hover { background: var(--blue-press); }
.pill-line { background: #fff; color: var(--ink); border-color: var(--line); }
.pill-line:hover { border-color: var(--ink); }
.pill-white { background: #fff; color: var(--navy); }
.pill-white:hover { background: var(--blue-wash); }

/* ------------------------------------------------------------ type */
.h2 { font: 700 clamp(2.1rem, 4.4vw, 3.5rem)/1.06 var(--body); letter-spacing: -0.045em; text-wrap: balance; }
.h2 .muted, .muted { color: var(--ink-3); }
.lede { margin-top: 18px; max-width: 40rem; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.45; color: var(--ink-2); }
.center { text-align: center; margin-inline: auto; }
.ink-blue { color: var(--blue); }

.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wash); color: var(--ink-2); font-size: 1.3rem; flex: none; }
.ico-blue { background: var(--blue-wash); color: var(--blue); }
.ico-amber { background: var(--amber-wash); color: var(--amber); }
.ico-white { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font: 700 clamp(2.5rem, 4.6vw, 3.9rem)/1.03 var(--body); letter-spacing: -0.055em; text-wrap: balance; }
.hero-title .h-line { display: block; }
.hero-title .ink-blue { white-space: nowrap; }
.hero-lede { margin-top: 22px; max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink-2); }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .cta { justify-content: center; }
}
@media (max-width: 480px) { .cta .pill { width: 100%; } }

/* hero demo */
.hero-demo { position: relative; padding: 0 0 70px 28px; }
.dash { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; transform: translate3d(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 5px), 0); transition: transform 0.5s var(--ease); }
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-biz { display: flex; align-items: center; gap: 10px; }
.dash-biz img { width: 27px; }
.dash-biz b { display: block; font-size: 0.98rem; letter-spacing: -0.02em; }
.dash-biz small { display: block; font-size: 0.78rem; color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: #eaf7ee; color: var(--green); font-size: 0.78rem; font-weight: 700; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.kpis { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { padding: 12px; border-radius: var(--r-in); background: var(--wash); }
.kpi small { display: block; font-size: 0.72rem; line-height: 1.2; color: var(--ink-3); font-weight: 500; }
.kpi b { display: block; margin-top: 6px; font-size: 1.7rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi b.bump { animation: bump 0.6s var(--ease); }
.kpi-warn { background: var(--amber-wash); }
.kpi-warn b { color: var(--amber); }
@keyframes bump { 0% { transform: translateY(6px); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.feed-head { margin-top: 18px; display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.feed { margin-top: 8px; display: grid; gap: 6px; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line-soft); border-radius: var(--r-in); background: #fff; }
.feed li.new { animation: slideIn 0.55s var(--ease) both; }
.feed .ico { width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem; }
.feed b { display: block; font-size: 0.88rem; line-height: 1.25; }
.feed small { display: block; font-size: 0.8rem; line-height: 1.3; color: var(--ink-3); }
.feed time { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

.float-card { position: absolute; left: 0; bottom: 0; max-width: 330px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow); transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0); transition: transform 0.5s var(--ease); }
.float-card small { display: block; font-size: 0.74rem; color: var(--ink-3); font-weight: 600; }
.float-card b { display: block; font-size: 0.9rem; line-height: 1.3; font-weight: 500; transition: opacity 0.3s; }
@media (max-width: 960px) { .hero-demo { max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) {
  .hero-demo { padding: 0 0 24px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
}

/* ------------------------------------------------------------ problem */
.problem { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-soft); }
.problem .h2 { max-width: var(--max); }
.problem .h2 span { display: block; }
.pains { margin-top: 44px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.pain { padding: 28px 28px 0 0; display: grid; gap: 16px; align-content: start; }
.pain + .pain { padding-left: 28px; border-left: 1px solid var(--line); }
.pain p { font-size: 1.12rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 800px) {
  .pains { grid-template-columns: 1fr; }
  .pain, .pain + .pain { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ------------------------------------------------------------ services bento */
.services { padding-block: clamp(64px, 8vw, 112px); background: var(--wash); }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; perspective: 1400px; }
.cell { --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 50%; position: relative; overflow: hidden; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line-soft); padding: 28px; display: grid; gap: 24px; align-content: space-between; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(26, 120, 236, 0.09), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.cell:hover { border-color: var(--blue-line); box-shadow: 0 30px 60px -30px rgba(4, 21, 74, 0.3); }
.cell:hover::after { opacity: 1; }
.cell .cell-text .ico { transition: transform 0.45s var(--ease), background 0.3s, color 0.3s; }
.cell:hover .cell-text .ico { transform: rotate(-8deg) scale(1.08); background: var(--blue); color: #fff; }
.cell h3 { margin-top: 16px; font-size: 1.45rem; letter-spacing: -0.035em; line-height: 1.15; }
.cell p { margin-top: 8px; color: var(--ink-2); line-height: 1.5; max-width: 34rem; }
.reveal.cell { transform: translateY(22px) rotateX(var(--rx)) rotateY(var(--ry)); }
.reveal.cell.in-view { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.cell-recep { grid-column: span 3; grid-template-columns: minmax(0, 1fr) 236px; align-items: center; align-content: center; background: radial-gradient(120% 90% at 100% 100%, var(--blue-wash), #fff 60%); }
.cell-dash { grid-column: span 3; align-content: start; }
.cell-chat { grid-column: span 2; }
.cell-web { grid-column: span 4; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); align-items: center; align-content: center; }
@media (max-width: 1120px) {
  .cell-recep, .cell-dash, .cell-chat, .cell-web { grid-column: span 6; }
  .cell-recep { grid-template-columns: minmax(0, 1fr) 236px; }
}
@media (max-width: 760px) {
  .cell-recep, .cell-web { grid-template-columns: 1fr; }
}

.b { max-width: 86%; padding: 9px 13px; border-radius: 18px; line-height: 1.35; }
.b.ai { background: var(--wash); border-bottom-left-radius: 6px; justify-self: start; }
.b.me { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.chip { justify-self: center; margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #eaf7ee; color: var(--green); font-weight: 700; font-size: 0.8rem; }
@keyframes pop { from { transform: translateY(8px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* phone on a call */
.phone-wrap { justify-self: center; transform: rotate(4deg) translateY(4px); transition: transform 0.6s var(--ease); }
.cell-recep:hover .phone-wrap { transform: rotate(0deg) translateY(-6px); }
.phone { width: 236px; padding: 9px; border-radius: 42px; background: #0b1430; box-shadow: 0 0 0 1px #2a3352 inset, 0 40px 60px -28px rgba(4, 21, 74, 0.55); }
.ph-screen { position: relative; height: 500px; border-radius: 34px; overflow: hidden; padding: 12px 14px 16px; display: flex; flex-direction: column; color: #fff; background: radial-gradient(120% 70% at 50% 0%, #1d5fd0 0%, #0a2366 55%, #06153f 100%); font-size: 0.78rem; }
.ph-status { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-weight: 700; padding: 0 6px; }
.ph-island { width: 70px; height: 20px; border-radius: 999px; background: #000; }
.ph-sig { display: inline-flex; gap: 3px; font-size: 0.8rem; }
.ph-caller { margin-top: 18px; display: grid; justify-items: center; gap: 3px; text-align: center; }
.ph-caller b { margin-top: 10px; font-size: 1.05rem; letter-spacing: -0.02em; }
.ph-caller small { color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ph-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.ph-avatar { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.ph-avatar img { position: relative; width: 34px; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); animation: ring 2.4s var(--ease) infinite; }
.ring.r2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
.wave { margin: 14px auto 0; height: 26px; display: flex; align-items: center; gap: 3px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, 0.85); transform: scaleY(0.2); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: 0.9s; } .wave i:nth-child(4n) { animation-duration: 1.3s; } .wave i:nth-child(5n) { animation-duration: 0.75s; }
.wave i:nth-child(2n) { animation-delay: -0.4s; } .wave i:nth-child(3n + 1) { animation-delay: -0.7s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.ph-transcript { flex: 1; margin-top: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.ph-transcript .b { font-size: 0.74rem; padding: 7px 10px; border-radius: 14px; max-width: 88%; }
.ph-transcript .b.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.14); color: #fff; border-bottom-left-radius: 5px; }
.ph-transcript .b.me { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-right-radius: 5px; }
.ph-transcript .chip { align-self: center; font-size: 0.7rem; padding: 6px 11px; background: #dcfce7; color: #166534; }
.js-call .ph-transcript > * { display: none; }
.js-call .ph-transcript > .on { display: block; animation: pop 0.4s var(--ease) both; }
.js-call .ph-transcript > .chip.on { display: inline-flex; }
.ph-controls { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-controls span { display: grid; justify-items: center; gap: 4px; font-size: 1.05rem; }
.ph-controls span svg { box-sizing: content-box; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: background 0.2s, transform 0.3s var(--ease); }
.ph-controls small { font-size: 0.6rem; color: rgba(255, 255, 255, 0.65); }
.ph-controls .end svg { background: #e5484d; }
.cell-recep:hover .ph-controls .end svg { transform: rotate(-12deg) scale(1.08); }

/* white operations dashboard */
.dboard { display: grid; gap: 10px; padding: 14px; border-radius: 20px; border: 1px solid var(--line-soft); background: #fff; box-shadow: 0 1px 2px rgba(4, 21, 74, 0.04); font-size: 0.8rem; }
.db-top { display: flex; justify-content: space-between; align-items: center; }
.db-top b { font-size: 0.92rem; letter-spacing: -0.02em; }
.db-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wash); }
.db-tabs span { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; color: var(--ink-3); }
.db-tabs .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(4, 21, 74, 0.12); }
.db-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.db-kpis > div { padding: 10px; border-radius: 12px; background: var(--wash); transition: background 0.25s, transform 0.3s var(--ease); }
.db-kpis > div:hover { background: var(--blue-wash); transform: translateY(-2px); }
.db-kpis small { display: block; font-size: 0.68rem; color: var(--ink-3); font-weight: 600; }
.db-kpis b { display: block; margin-top: 4px; font-size: 1.3rem; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.db-kpis em { margin-top: 5px; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--green); }
.db-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.db-card { padding: 12px; border-radius: 14px; border: 1px solid var(--line-soft); }
.db-h { display: block; font-size: 0.7rem; font-weight: 700; color: var(--ink-3); }
.bars { margin-top: 10px; height: 76px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.bars i { position: relative; display: block; height: calc(var(--h, 50) * 1%); border-radius: 5px 5px 2px 2px; background: var(--blue-line); transform-origin: bottom; transition: background 0.2s; cursor: default; }
.bars i:nth-child(5) { background: var(--blue); }
.bars i:hover { background: var(--navy); }
.bars i::after { content: attr(data-v); position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translate(-50%, 4px); padding: 2px 6px; border-radius: 6px; background: var(--navy); color: #fff; font: 700 0.62rem/1.4 var(--body); font-style: normal; opacity: 0; transition: opacity 0.2s, transform 0.25s var(--ease); pointer-events: none; }
.bars i:hover::after { opacity: 1; transform: translate(-50%, 0); }
.bars i:nth-child(1) { --h: 44; } .bars i:nth-child(2) { --h: 66; } .bars i:nth-child(3) { --h: 33; } .bars i:nth-child(4) { --h: 77; } .bars i:nth-child(5) { --h: 100; } .bars i:nth-child(6) { --h: 55; } .bars i:nth-child(7) { --h: 44; }
.in-view .bars i { animation: grow 0.9s var(--ease) both; }
.in-view .bars i:nth-child(2) { animation-delay: 0.06s; } .in-view .bars i:nth-child(3) { animation-delay: 0.12s; } .in-view .bars i:nth-child(4) { animation-delay: 0.18s; }
.in-view .bars i:nth-child(5) { animation-delay: 0.24s; } .in-view .bars i:nth-child(6) { animation-delay: 0.3s; } .in-view .bars i:nth-child(7) { animation-delay: 0.36s; }
@keyframes grow { from { transform: scaleY(0.05); } to { transform: none; } }
.bars-x { margin-top: 6px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 0.64rem; color: var(--ink-3); }
.db-src { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.db-src .db-h { grid-column: 1 / -1; }
.donut { position: relative; width: 74px; height: 74px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 6; }
.donut .d-bg { stroke: var(--line-soft); }
.donut .d1 { stroke: var(--blue); stroke-dasharray: 45 55; }
.donut .d2 { stroke: var(--navy); stroke-dasharray: 30 70; stroke-dashoffset: -46; }
.donut .d3 { stroke: #7fb3f5; stroke-dasharray: 22 78; stroke-dashoffset: -77; }
.in-view .donut circle:not(.d-bg) { animation: dash 1.2s var(--ease) both; }
.in-view .donut .d2 { animation-delay: 0.2s; } .in-view .donut .d3 { animation-delay: 0.4s; }
@keyframes dash { from { stroke-dasharray: 0 100; } }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; letter-spacing: -0.03em; }
.legend { display: grid; gap: 4px; font-size: 0.7rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; }
.legend .c1 { background: var(--blue); } .legend .c2 { background: var(--navy); } .legend .c3 { background: #7fb3f5; }
.legend span { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.db-h-row { display: flex; justify-content: space-between; align-items: baseline; }
.db-h-row b { font-size: 0.78rem; color: var(--green); }
.db-line svg { margin-top: 6px; display: block; width: 100%; height: 62px; overflow: visible; }
.db-line .area { fill: url(#lg); }
.db-line .ln { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; }
.db-line circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.in-view .db-line .ln { animation: draw 1.6s 0.3s var(--ease) both; }
.in-view .db-line .area { animation: fadeIn 1s 0.9s both; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.db-todo { display: grid; gap: 4px; }
.db-todo li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--wash); font-weight: 500; transition: background 0.2s, transform 0.3s var(--ease); }
.db-todo li:hover { background: var(--blue-wash); transform: translateX(3px); }
.db-todo em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 0.7rem; color: var(--blue-press); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.amber { background: #f59e0b; } .dot.blue { background: var(--blue); } .dot.green { background: #22c55e; }
@media (max-width: 520px) {
  .db-kpis { grid-template-columns: repeat(2, 1fr); }
  .db-row { grid-template-columns: 1fr; }
}

/* chat card */
.mini { font-size: 0.86rem; }
.mini-chat { border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -26px rgba(4, 21, 74, 0.35); transition: transform 0.5s var(--ease); }
.cell-chat:hover .mini-chat { transform: translateY(-4px); }
.mc-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.mc-head img { width: 22px; }
.mc-head b { font-size: 0.82rem; }
.mc-head .live { margin-left: auto; padding: 3px 9px; font-size: 0.68rem; }
.mc-body { padding: 12px; min-height: 184px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; }
.mc-body .b { font-size: 0.8rem; max-width: 88%; }
.mc-body .b.ai { align-self: flex-start; } .mc-body .b.me { align-self: flex-end; }
.mc-body .chip { align-self: center; }
.mc-body .typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--wash); }
.mc-body .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.mc-body .typing i:nth-child(2) { animation-delay: 0.2s; } .mc-body .typing i:nth-child(3) { animation-delay: 0.4s; }
.js-chat .mc-body > :not(.on) { display: none; }
.js-chat .mc-body > .on { animation: pop 0.4s var(--ease) both; }
.mc-input { display: flex; align-items: center; gap: 8px; margin: 0 10px 10px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-3); font-size: 0.78rem; }
.mc-input i { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }

/* website before / after */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.ba { --pos: 50%; position: relative; padding: 0 0 18px; }
.ba.auto { animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { --pos: 72%; } 50% { --pos: 22%; } }
.ba-frame { border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(4, 21, 74, 0.45); }
.ba-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); background: var(--wash); }
.ba-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ba-bar i:nth-child(1) { background: #ff6159; } .ba-bar i:nth-child(2) { background: #ffbd2e; } .ba-bar i:nth-child(3) { background: #28c941; }
.ba-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; font-size: 0.7rem; color: var(--ink-3); }
.ba-stage { position: relative; height: 270px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.site { position: absolute; inset: 0; }
.site-old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #e8e4d8; color: #222; font-family: "Times New Roman", Times, serif; font-size: 0.78rem; }
.so-head { padding: 10px; background: #3b5998; color: #ff0; font-weight: 700; font-size: 1.05rem; text-align: center; letter-spacing: 0.04em; border-bottom: 3px ridge #999; }
.so-marq { padding: 4px 8px; background: #ff0; color: #c00; font-weight: 700; white-space: nowrap; overflow: hidden; font-size: 0.72rem; }
.so-body { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px; }
.so-side { display: grid; gap: 6px; align-content: start; padding: 8px; background: #ccc; border: 2px outset #eee; }
.so-side u { color: #00e; }
.so-main p { line-height: 1.3; }
.so-img { margin: 8px 0; height: 70px; display: grid; place-items: center; background: #bbb; color: #555; border: 1px dashed #777; font-style: italic; }
.so-red { color: #d00; font-weight: 700; font-size: 1rem; }
.site-new { background: #fff; padding: 12px 16px; display: grid; gap: 12px; align-content: start; font-size: 0.74rem; }
.sn-nav { display: flex; align-items: center; gap: 10px; }
.sn-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.82rem; letter-spacing: -0.02em; }
.sn-logo i { width: 14px; height: 14px; border-radius: 5px; background: var(--blue); }
.sn-links { margin-left: auto; display: flex; gap: 8px; }
.sn-links i { width: 30px; height: 6px; border-radius: 3px; background: var(--line-soft); }
.sn-cta { padding: 5px 11px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.66rem; }
.sn-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; }
.sn-copy { display: grid; gap: 8px; justify-items: start; }
.sn-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-press); font-weight: 700; font-size: 0.62rem; }
.sn-copy b { font-size: 1.2rem; line-height: 1.05; letter-spacing: -0.04em; }
.sn-btns { display: flex; gap: 6px; }
.fake-btn { padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.66rem; font-weight: 700; }
.fake-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.sn-art { position: relative; height: 112px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1a78ec, #04154a); }
.sn-art .o1 { position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -20px; top: -24px; background: rgba(255, 255, 255, 0.16); animation: float 6s ease-in-out infinite; }
.sn-art .o2 { position: absolute; width: 54px; height: 54px; border-radius: 16px; left: 14px; bottom: -12px; background: rgba(255, 255, 255, 0.22); transform: rotate(18deg); animation: float 7s -2s ease-in-out infinite; }
.sn-art .o3 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--green); font-weight: 700; font-size: 0.66rem; white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.4); }
.sn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sn-cards span { display: grid; gap: 4px; padding: 9px; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--blue); font-size: 0.95rem; }
.sn-cards b { font-size: 0.68rem; color: var(--ink); }
.sn-chat { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1rem; box-shadow: 0 8px 18px -6px rgba(26, 120, 236, 0.7); animation: float 4s ease-in-out infinite; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(4, 21, 74, 0.25); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 1rem; box-shadow: 0 6px 16px -4px rgba(4, 21, 74, 0.45); transition: transform 0.3s var(--ease); }
.ba-stage:hover .ba-handle span { transform: translate(-50%, -50%) scale(1.12); }
.ba-tag { position: absolute; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; }
.t-old { left: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.t-new { right: 10px; background: var(--blue); color: #fff; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); font-size: 0.74rem; font-weight: 700; color: var(--ink); animation: float 5s ease-in-out infinite; }
.float-chip svg { color: var(--blue); }
.fc1 { left: -14px; bottom: 0; }
.fc2 { right: -8px; top: 26px; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 760px) { .fc1 { left: 6px; } .fc2 { right: 6px; } }
@media (max-width: 480px) { .sn-links { display: none; } .sn-cta { white-space: nowrap; } .sn-copy b { font-size: 1.05rem; } .sn-hero { grid-template-columns: 1fr; } .sn-art { display: none; } .so-body { grid-template-columns: 74px 1fr; } }

/* ------------------------------------------------------------ how */
.how { padding-block: clamp(64px, 8vw, 112px); }
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { position: relative; padding-top: 30px; border-top: 2px solid var(--ink); }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #fff; }
.steps h3 { font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -0.05em; line-height: 1; }
.steps p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; line-height: 1.5; max-width: 26rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ------------------------------------------------------------ why */
.why { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-soft); }
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-grid .h2 { position: sticky; top: 120px; }
.why-list { display: grid; gap: 28px; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.why-list h3 { font-size: 1.3rem; letter-spacing: -0.03em; }
.why-list p { margin-top: 6px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } .why-grid .h2 { position: static; } }

/* ------------------------------------------------------------ industries marquee */
.industries { padding-block: 40px 56px; border-block: 1px solid var(--line-soft); overflow: hidden; }
.ind-title { text-align: center; font-weight: 600; color: var(--ink-3); }
.marquee { margin-top: 22px; max-width: none; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; gap: 12px; animation: marquee 48s linear infinite; }
.track span { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ------------------------------------------------------------ plan / form */
.plan { padding-block: clamp(64px, 8vw, 112px); background: var(--wash); }
.plan-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.gets { margin-top: 32px; display: grid; gap: 16px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; line-height: 1.4; }
.gets svg { margin-top: 3px; padding: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

.form, .form-done { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b9bfcc; border-radius: var(--r-in); background: #fff; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 120, 236, 0.18); }
.field.bad input { border-color: #c2261b; }
.err { min-height: 0; font-size: 0.86rem; color: #b42318; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #b9bfcc; font-weight: 500; font-size: 0.95rem; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.pick input:checked + span { background: var(--blue-wash); border-color: var(--blue); color: var(--blue-press); }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; }
.submit[disabled] { opacity: 0.7; cursor: progress; }
.fine { font-size: 0.86rem; color: var(--ink-3); text-align: center; }
.form-status { font-size: 0.92rem; color: #b42318; text-align: center; }
.form-status:empty { display: none; }
.form-done { text-align: center; display: grid; justify-items: center; gap: 12px; padding-block: 56px; }
.form-done[hidden], .form[hidden] { display: none; }
.plan-grid > .form-done { grid-column: 2; grid-row: 1; align-self: stretch; align-content: center; }
@media (max-width: 900px) { .plan-grid > .form-done { grid-column: auto; grid-row: auto; } }
.form-done h3 { font-size: 1.8rem; letter-spacing: -0.04em; }
.form-done p { max-width: 26rem; color: var(--ink-2); }
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 2rem; animation: pop 0.5s var(--ease) both; }

/* ------------------------------------------------------------ faq */
.faq { padding-block: clamp(64px, 8vw, 112px); }
.qs { margin-top: 40px; max-width: 820px; }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary svg { font-size: 1.2rem; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.qs details[open] summary svg { transform: rotate(180deg); }
.qs details p { padding: 0 0 22px; max-width: 44rem; color: var(--ink-2); line-height: 1.55; }

/* ------------------------------------------------------------ closing band */
.band { padding-block: clamp(64px, 8vw, 104px); background: var(--navy); color: #fff; }
.band-inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.band-inner img { width: 66px; }
.band p { color: rgba(255, 255, 255, 0.78); font-size: 1.15rem; }
.band .pill { margin-top: 10px; }

/* ------------------------------------------------------------ footer */
.foot { padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.foot-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-inner img { height: 26px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot small { color: var(--ink-3); }

/* ------------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-demo { animation: rise 0.9s 0.1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ chat widget */
.chatw { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: grid; justify-items: end; gap: 12px; }
.launcher { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.75rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(26, 120, 236, 0.75); transition: transform 0.25s var(--ease), background 0.2s; }
.launcher:hover { background: var(--blue-press); transform: translateY(-2px); }
.launcher span { grid-area: 1 / 1; display: grid; place-items: center; transition: transform 0.3s var(--ease), opacity 0.2s; }
.launcher .l-close { opacity: 0; transform: rotate(-90deg); }
.chatw.open .launcher .l-open { opacity: 0; transform: rotate(90deg); }
.chatw.open .launcher .l-close { opacity: 1; transform: none; }

.teaser { position: relative; max-width: 280px; animation: pop 0.45s var(--ease) both; }
.teaser[hidden] { display: none; }
.teaser-body { display: grid; gap: 4px; text-align: left; padding: 14px 18px; padding-right: 36px; border-radius: 18px 18px 6px 18px; border: 1px solid var(--line-soft); background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.teaser-body b { font-size: 0.95rem; letter-spacing: -0.01em; }
.teaser-body span { font-size: 0.85rem; color: var(--ink-3); }
.teaser-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.teaser-x:hover { background: var(--wash); }

.panel { width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: 0 30px 70px -20px rgba(4, 21, 74, 0.38); overflow: hidden; transform-origin: bottom right; animation: panelIn 0.35s var(--ease) both; }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-head img { width: 30px; }
.panel-head div { flex: 1; min-width: 0; }
.panel-head h2 { font-size: 1rem; letter-spacing: -0.02em; }
.panel-head small { display: block; font-size: 0.75rem; color: var(--ink-3); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--wash); display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { background: var(--line-soft); }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 0.94rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop 0.3s var(--ease) both; }
.msg.bot { align-self: flex-start; background: var(--wash); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite both; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; } .msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.quick[hidden] { display: none; }
.quick button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--blue-line); background: #fff; color: var(--blue-press); font-size: 0.84rem; font-weight: 600; cursor: pointer; text-align: left; }
.quick button:hover { background: var(--blue-wash); }
.compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
.compose input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #b9bfcc; font-size: 1rem; }
.compose input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 120, 236, 0.18); }
.send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer; }
.send:disabled { opacity: 0.5; cursor: default; }
.lead-card { align-self: stretch; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--blue-line); border-radius: 18px; background: #fff; animation: pop 0.35s var(--ease) both; }
.lead-card b { font-size: 0.95rem; }
.lead-card label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.lead-card input { min-height: 42px; padding: 0 12px; border: 1px solid #b9bfcc; border-radius: 12px; font-size: 1rem; font-weight: 400; }
.lead-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 120, 236, 0.18); }
.lead-card .pill { min-height: 44px; font-size: 0.95rem; }
@media (max-width: 480px) {
  .chatw { right: 12px; bottom: 12px; }
  .panel { width: calc(100vw - 24px); height: calc(100dvh - 100px); }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .dash, .float-card { transform: none; }
}

/* ------------------------------------------------------------ legal / 404 */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 96px; }
.legal h2 { margin-top: 36px; font-size: 1.35rem; letter-spacing: -0.03em; }
.legal p { margin-top: 12px; color: var(--ink-2); line-height: 1.6; }
.legal .updated { color: var(--ink-3); font-size: 0.95rem; }
.notfound { text-align: center; min-height: 60dvh; display: grid; align-content: center; justify-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .track span:nth-child(n + 11) { display: none; } }

/* ------------------------------------------------------------ motion and hover layer */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #59a2ff); transform-origin: left; transform: scaleX(var(--p, 0)); }
.nav { transition: box-shadow 0.3s, background 0.3s; }
.nav-inner { transition: height 0.35s var(--ease); }
.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(4, 21, 74, 0.25); }
.nav.scrolled .nav-inner { height: 62px; }
.nl { position: relative; }
.nl::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.nl:hover { text-decoration: none; }
.nl:hover::after { transform: scaleX(1); transform-origin: left; }

.pill { position: relative; overflow: hidden; isolation: isolate; }
.pill-blue::before, .pill-white::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.pill-blue:hover::before, .pill-white:hover::before { transform: translateX(120%); }
.pill-blue:hover { box-shadow: 0 14px 28px -12px rgba(26, 120, 236, 0.8); }
.pill-line:hover { background: var(--ink); color: #fff; }
.magnetic { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.magnetic:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.98); }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(4, 21, 74, 0.13) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 70% at 75% 45%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 75% 45%, #000, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: 4%; top: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(26, 120, 236, 0.16), transparent 65%); animation: drift 14s ease-in-out infinite; pointer-events: none; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-60px, 40px); } }
.scribble { position: relative; }
.scribble::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.12em; border-radius: 1em; background: var(--blue); opacity: 0.25; transform: scaleX(0); transform-origin: left; animation: underline 0.9s 0.7s var(--ease) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.kpi { transition: transform 0.3s var(--ease), background 0.25s; }
.kpi:hover { transform: translateY(-3px); background: var(--blue-wash); }
.kpi-warn:hover { background: #fbe3c6; }
.feed li { transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s; }
.feed li:hover { border-color: var(--blue-line); transform: translateX(4px); box-shadow: 0 8px 20px -14px rgba(4, 21, 74, 0.35); }

.pain .ico { transition: transform 0.45s var(--ease), background 0.3s, color 0.3s; }
.pain:hover .ico { transform: translateY(-4px) rotate(-6deg); background: var(--blue); color: #fff; }
.pain p { transition: color 0.3s; }
.pain:hover p { color: var(--ink); }

.steps li { border-top-color: var(--line); }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s 0.2s var(--ease); }
.steps li.in-view::after { transform: scaleX(1); }
.steps li::before { z-index: 1; transition: transform 0.4s var(--ease), background 0.3s; }
.steps li:hover::before { transform: scale(1.5); }
.steps h3 { transition: color 0.3s, transform 0.4s var(--ease); }
.steps li:hover h3 { color: var(--blue); transform: translateX(4px); }

.why-list li { padding: 14px; margin: -14px; border-radius: 18px; transition: background 0.3s, transform 0.4s var(--ease); }
.why-list li:hover { background: var(--wash); transform: translateX(6px); }
.why-list .ico { transition: transform 0.45s var(--ease), background 0.3s, color 0.3s; }
.why-list li:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--blue); color: #fff; }

.track span { transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.track span:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.gets li svg { transition: transform 0.4s var(--ease); }
.gets li:hover svg { transform: scale(1.15) rotate(-8deg); }
.field input:hover, .field textarea:hover { border-color: #8d95a8; }
.pick span { transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.pick:hover span { border-color: var(--blue); transform: translateY(-1px); }
.pick input:checked + span { animation: pick 0.35s var(--ease); }
@keyframes pick { 50% { transform: scale(1.06); } }
.form { transition: box-shadow 0.4s var(--ease); }
.form:focus-within { box-shadow: 0 1px 2px rgba(4, 21, 74, 0.06), 0 34px 70px -30px rgba(26, 120, 236, 0.4); }

.qs summary { transition: color 0.2s; }
.qs summary:hover { color: var(--blue); }
.qs details { overflow: hidden; }

.band { position: relative; isolation: isolate; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px circle at var(--bx, 50%) var(--by, 30%), rgba(26, 120, 236, 0.45), transparent 60%); transition: background-position 0.2s; }
.band-inner img { animation: float 5s ease-in-out infinite; }

.launcher::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); animation: ring 2.8s var(--ease) infinite; pointer-events: none; }
.chatw.open .launcher::after { animation: none; opacity: 0; }
.launcher:hover { transform: translateY(-2px) scale(1.05); }
.send { transition: transform 0.25s var(--ease), background 0.2s; }
.send:not(:disabled):hover { transform: scale(1.07); background: var(--blue-press); }
.quick button { transition: background 0.2s, transform 0.25s var(--ease); }
.quick button:hover { transform: translateY(-1px); }

.cell.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .magnetic, .cell { transform: none !important; }
  .scribble::after { transform: scaleX(1); }
  .steps li::after { transform: scaleX(1); }
}
.legal a { color: var(--blue-press); text-underline-offset: 3px; }
