/* =========================================================
   AgentFlow AI — Landing
   Design tokens → base → components → sections → utilities
   ========================================================= */

:root {
  /* Brand */
  --green: #25D366;
  --green-600: #1DB954;
  --green-ink: #0B7A3E;       /* green text on light, 4.9:1 on white */
  --green-soft: #E8FBEF;
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --violet-soft: #F1ECFE;
  --indigo-soft: #EEF0FF;

  /* Neutrals */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0B1220;
  --ink-2: #334155;
  --muted: #5B6778;           /* 5.3:1 on #F8FAFC */
  --line: #E4E8EF;
  --line-2: #EEF1F5;

  /* Dark surfaces */
  --navy: #070B1A;
  --navy-2: #0D1328;
  --navy-3: #131A33;
  --navy-line: rgba(255,255,255,.08);
  --on-dark: #F1F5F9;
  --on-dark-muted: #A3AEC2;   /* 7.6:1 on navy */

  /* WhatsApp UI */
  --wa-bg: #EFEAE2;
  --wa-out: #D9FDD3;
  --wa-head: #075E54;

  /* Semantic */
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --danger: #DC2626;

  --grad-brand: linear-gradient(135deg, #25D366 0%, #4F46E5 60%, #7C3AED 100%);
  --grad-text: linear-gradient(100deg, #16A34A 0%, #4F46E5 55%, #7C3AED 100%);

  /* Type */
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.03);
  --sh-2: 0 4px 12px -2px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --sh-3: 0 24px 48px -16px rgba(15,23,42,.18), 0 8px 16px -8px rgba(15,23,42,.08);
  --sh-glow: 0 10px 30px -8px rgba(37,211,102,.55);

  /* Motion */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: 150ms;
  --t-med: 260ms;
  --t-slow: 600ms;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --nav-h: 68px;
  --section-y: 88px;

  /* Z-index */
  --z-nav: 40;
  --z-sticky: 30;
  --z-toast: 100;
}

@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 112px; } }
@media (min-width: 1280px) { :root { --section-y: 128px; } }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .footer :focus-visible, .final-cta :focus-visible { outline-color: var(--green); }

.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-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Icons */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--fill { fill: currentColor; stroke: none; }
.ib { width: 22px; height: 22px; flex: none; fill: currentColor; }

.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-light { background: linear-gradient(100deg, #4ADE80, #A5B4FC 60%, #C4B5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Buttons ============ */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 18px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--xl { --h: 60px; padding: 0 32px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  color: #03230F;
  background: linear-gradient(180deg, #3BE07A 0%, #22C55E 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(3,35,15,.2), 0 6px 18px -6px rgba(34,197,94,.6);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(3,35,15,.2), var(--sh-glow); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(.97); }

.btn--dark { color: #fff; background: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--sh-2); }
.btn--dark:hover { background: #1A2336; transform: translateY(-1px); }

.btn--outline { color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn--outline:hover { border-color: #CBD3DF; background: #fff; transform: translateY(-1px); box-shadow: var(--sh-2); }

.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: rgba(15,23,42,.05); }

.btn__arrow { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-spring); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn__play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform var(--t-med) var(--ease-spring); }
.btn__play .i { width: 11px; height: 11px; margin-left: 2px; }
.btn:hover .btn__play { transform: scale(1.1); }

.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .0; }
.btn.is-loading .spinner { display: block; position: absolute; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(79,70,229,.35); transition: text-decoration-color var(--t-fast); min-height: 24px; }
.link-btn:hover { text-decoration-color: currentColor; }

/* ============ Badges / chips ============ */
.badge { display: inline-flex; align-items: center; gap: 8px; }
.badge--hero {
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  box-shadow: var(--sh-1); backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: border-color var(--t-fast), box-shadow var(--t-med);
}
.badge--hero:hover { border-color: #C7D2FE; box-shadow: var(--sh-2); }
.badge--hero .i--sm { color: var(--muted); transition: transform var(--t-med) var(--ease-spring); }
.badge--hero:hover .i--sm { transform: translateX(2px); }
.badge__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--grad-brand); color: #fff; }
.badge__icon .i { width: 15px; height: 15px; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip .i { width: 13px; height: 13px; stroke-width: 2.5; }
.chip--ok { color: var(--green-ink); background: var(--green-soft); }
.chip--busy { color: var(--indigo); background: var(--indigo-soft); }
.chip--busy .spinner { width: 11px; height: 11px; }
.chip--violet { color: #6D28D9; background: var(--violet-soft); }
.chip--blue { color: #1D4ED8; background: #E6EEFF; }
.chip--warn { color: var(--warn); background: var(--warn-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.eyebrow--dark { color: #A5B4FC; }

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 2s var(--ease-out) infinite; }
.pulse-dot--sm { width: 6px; height: 6px; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%,100% { transform: scale(2.6); opacity: 0; } }

/* ============ Navbar ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  height: var(--nav-h);
  transition: background-color var(--t-med), box-shadow var(--t-med), border-color var(--t-med), height var(--t-med);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248,250,252,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(228,232,239,.9);
  box-shadow: 0 6px 24px -12px rgba(15,23,42,.12);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; min-height: 44px; }
.logo__mark { width: 32px; height: 32px; }
.logo__ai { margin-left: 5px; padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0; color: #fff; background: var(--ink); vertical-align: 2px; }
.logo--light { color: #fff; }
.logo--light .logo__ai { background: rgba(255,255,255,.12); }

.nav__links { display: none; gap: 4px; margin-left: 16px; }
.nav__links a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color var(--t-fast), background-color var(--t-fast); }
.nav__links a:hover { color: var(--ink); background: rgba(15,23,42,.04); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad-brand); }

.nav__actions { display: none; margin-left: auto; gap: 8px; align-items: center; }
.nav__toggle { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); }
.nav__toggle:hover { background: rgba(15,23,42,.05); }

.mobile-menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 12px var(--gutter) 24px;
  background: rgba(248,250,252,.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: var(--sh-3);
  animation: menuIn var(--t-med) var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu__links { display: grid; }
.mobile-menu__links a { padding: 14px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 18px; }

@media (min-width: 1024px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* ============ Hero ============ */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 72px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero__glow--a { width: 520px; height: 520px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(37,211,102,.45), transparent 65%); }
.hero__glow--b { width: 560px; height: 560px; right: 160px; top: 200px; background: radial-gradient(circle, rgba(124,58,237,.30), transparent 65%); }

.hero__inner { position: relative; display: grid; gap: 56px; align-items: center; }
.hero__copy { max-width: 620px; }
.hero__title { margin-top: 24px; font-size: clamp(40px, 7vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero__kicker { margin-top: 20px; font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.hl {
  position: relative; white-space: nowrap; padding: 0 6px; border-radius: 8px;
  background: linear-gradient(100deg, rgba(37,211,102,.18), rgba(79,70,229,.14) 60%, rgba(124,58,237,.16));
  box-shadow: inset 0 0 0 1px rgba(79,70,229,.14);
}
.hero__lead { margin-top: 12px; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero__assure li { display: inline-flex; align-items: center; gap: 6px; }
.hero__assure .i { width: 16px; height: 16px; color: var(--green-ink); stroke-width: 2.5; }

.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 400px; }

@media (min-width: 1024px) {
  .hero { padding: calc(var(--nav-h) + 72px) 0 96px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero__visual { justify-self: end; }
}
@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; }
}

/* ============ WhatsApp mock ============ */
.wa-phone {
  position: relative; padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #1F2937, #0B1220);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 50px 90px -30px rgba(15,23,42,.45), 0 20px 40px -20px rgba(79,70,229,.35);
}
.wa-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }
.wa-phone .wa { border-radius: 34px; height: 580px; }

.wa { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--wa-bg); }
.wa--card { border-radius: var(--r-lg); box-shadow: var(--sh-3); border: 1px solid var(--line); }
.wa__header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: var(--wa-head); color: #fff; }
.wa-phone .wa__header { padding-top: 48px; }
.wa__back { width: 20px; height: 20px; opacity: .9; }
.wa__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: #128C7E; flex: none; }
.wa__avatar--brand { background: var(--grad-brand); }
.wa__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wa__meta strong { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; }
.wa__verified { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #25D366; }
.wa__verified .i { width: 9px; height: 9px; stroke-width: 3.5; color: #fff; }
.wa__status { font-size: 12.5px; opacity: .85; transition: opacity var(--t-fast); }
.wa__tools { margin-left: auto; display: flex; gap: 16px; opacity: .9; }
.wa__tools .i { width: 19px; height: 19px; }

.wa__body {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px;
  overflow: hidden;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(0,0,0,.035) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.wa__day { align-self: center; margin-bottom: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.85); font-size: 11.5px; font-weight: 600; color: #54656F; box-shadow: 0 1px .5px rgba(11,20,26,.1); }

.msg {
  position: relative; max-width: 82%; padding: 7px 9px 6px 10px;
  border-radius: 10px; font-size: 14.5px; line-height: 1.42; color: #111B21;
  box-shadow: 0 1px .5px rgba(11,20,26,.13);
  animation: msgIn 360ms var(--ease-spring) both;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg--out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.msg__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -3px 10px; font-size: 11px; color: #667781; }
.msg__meta .i { width: 15px; height: 15px; color: #53BDEB; stroke-width: 2.2; }
.msg__ai { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; color: #6D28D9; }
.msg__ai .i { width: 12px; height: 12px; }
.msg--in + .msg--in, .msg--out + .msg--out { margin-top: -2px; }

@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border-top-left-radius: 2px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); animation: msgIn 240ms var(--ease-out) both; }
.typing__dots { display: inline-flex; gap: 4px; }
.typing__dots i { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: blink 1.2s infinite ease-in-out; }
.typing__dots i:nth-child(2) { animation-delay: .15s; }
.typing__dots i:nth-child(3) { animation-delay: .3s; }
.typing__label { font-size: 12px; font-weight: 600; color: #6D28D9; }
@keyframes blink { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

.wa__composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: var(--wa-bg); }
.wa__input { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; color: #8696A0; font-size: 15px; }
.wa__mic, .wa__send { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #00A884; color: #fff; flex: none; transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast); }
.wa__mic .i, .wa__send .i { width: 19px; height: 19px; }
.wa__send:hover { background: #008F6F; }
.wa__send:active { transform: scale(.92); }
.wa__composer--live { padding: 10px; }
.wa__field { flex: 1; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; font-size: 16px; color: #111B21; }
.wa__field:focus-visible { outline: 2px solid #00A884; outline-offset: 0; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 90%; animation: msgIn 360ms var(--ease-out) both; }
.quick-replies span { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #D1D7DB; color: #008069; font-size: 13px; font-weight: 600; }

/* Floating proof cards */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(228,232,239,.9); box-shadow: var(--sh-3);
  font-size: 13px; line-height: 1.3;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.float-card__icon .i { width: 18px; height: 18px; }
.float-card__icon--green { background: var(--green-soft); color: var(--green-ink); }
.float-card__icon--violet { background: var(--violet-soft); color: var(--violet); }
.float-card--a { left: -64px; bottom: 28px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-spring); }
.float-card--a.is-in { opacity: 1; transform: none; }
.float-card--b { right: -44px; top: 64px; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 1180px) { .float-card--a { left: -24px; } .float-card--b { right: -12px; } }
@media (max-width: 480px) { .float-card { display: none; } .wa-phone .wa { height: 540px; } }

/* ============ Trust ============ */
.trust { padding: 16px 0 72px; }
.trust__title { text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: 24px; }
.logo-ph { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; color: #8390A2; filter: grayscale(1); transition: color var(--t-med); }
.logo-ph svg { width: 20px; height: 20px; fill: currentColor; opacity: .8; }
.logo-ph:hover { color: var(--ink-2); }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logos { grid-template-columns: repeat(6, 1fr); } }

.metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  overflow: hidden;
}
.metric { display: flex; flex-direction: column-reverse; gap: 4px; padding: 24px 20px; border-color: var(--line); border-style: solid; border-width: 0; }
.metric:nth-child(odd) { border-right-width: 1px; }
.metric:nth-child(-n+2) { border-bottom-width: 1px; }
.metric dt { font-size: 14px; color: var(--muted); line-height: 1.4; }
.metric__num { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric__num small { font-size: .5em; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
@media (min-width: 1024px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric { padding: 28px 32px; border-width: 0 !important; }
  .metric + .metric { border-left-width: 1px !important; }
}

/* ============ Section scaffolding ============ */
.section { position: relative; padding: var(--section-y) 0; }
.section--tint { background: linear-gradient(180deg, #F1F4F9, #F8FAFC); border-block: 1px solid var(--line-2); }
.section--dark { background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section--dark__glow { position: absolute; z-index: -1; inset: -20% -10% auto; height: 700px; background: radial-gradient(ellipse 50% 50% at 30% 30%, rgba(79,70,229,.25), transparent 70%), radial-gradient(ellipse 40% 40% at 75% 20%, rgba(37,211,102,.14), transparent 70%); pointer-events: none; }
.section--dark__glow--alt { inset: auto -10% -30%; background: radial-gradient(ellipse 50% 50% at 70% 60%, rgba(124,58,237,.25), transparent 70%), radial-gradient(ellipse 40% 40% at 20% 60%, rgba(37,211,102,.12), transparent 70%); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.035em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); line-height: 1.6; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--dark p { color: var(--on-dark-muted); }
.section-head--dark h2 { color: #fff; }

/* ============ Features ============ */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.feature {
  --accent: var(--green);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%);
  opacity: 0; transition: opacity var(--t-med);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: transform var(--t-med) var(--ease-spring);
}
.feature__icon .i { width: 22px; height: 22px; }
.feature:hover .feature__icon { transform: scale(1.08) rotate(-4deg); }
.feature h3 { font-size: 19px; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature__tag { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); border-top: 1px dashed var(--line); }

/* ============ Steps / Builder ============ */
.steps { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .steps { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; } }

.steps__list { display: grid; gap: 12px; }
.step {
  position: relative; display: flex; gap: 18px; width: 100%; padding: 22px; text-align: left;
  border-radius: var(--r-lg); border: 1px solid transparent; overflow: hidden;
  transition: background-color var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.step:hover { background: rgba(255,255,255,.6); }
.step.is-active { background: var(--surface); border-color: var(--line); box-shadow: var(--sh-2); }
.step__num { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--muted); padding-top: 3px; transition: color var(--t-med); }
.step.is-active .step__num { color: var(--indigo); }
.step__body { display: grid; gap: 6px; }
.step__body strong { font-size: 19px; letter-spacing: -.02em; }
.step__body span { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; }
.step.is-active .step__progress { animation: stepProg var(--step-dur, 6s) linear forwards; }
.steps.is-paused .step.is-active .step__progress, .steps.is-manual .step.is-active .step__progress { animation: none; transform: scaleX(1); opacity: .35; }
@keyframes stepProg { to { transform: scaleX(1); } }

.builder { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.app-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #FBFCFE; }
.app-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.app-chrome > span:nth-child(1) { background: #FF6059; } .app-chrome > span:nth-child(2) { background: #FFBE2F; } .app-chrome > span:nth-child(3) { background: #2ACA44; }
.app-chrome__url { margin-left: 12px; flex: 1; max-width: 320px; padding: 4px 12px; border-radius: 8px; background: var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chrome--dark { background: var(--navy-2); border-color: var(--navy-line); }
.app-chrome--dark .app-chrome__url { background: rgba(255,255,255,.06); color: var(--on-dark-muted); }

.builder__top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 4px; }
.builder__top small { display: block; font-size: 12.5px; color: var(--muted); }
.builder__top strong { font-size: 17px; }
.builder__dots { display: flex; gap: 6px; }
.builder__dots li { width: 24px; height: 4px; border-radius: 4px; background: var(--line); transition: background var(--t-med); }
.builder__dots li.is-on { background: var(--indigo); }

.builder__panel { padding: 20px 24px 28px; display: grid; gap: 16px; min-height: 360px; align-content: start; }
.builder__panel.is-active { animation: panelIn 420ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.dropzone { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-md); border: 1.5px dashed #C7D2FE; background: linear-gradient(180deg, #F8F9FF, #fff); }
.dropzone strong { display: block; font-size: 15px; }
.dropzone small { color: var(--muted); font-size: 13px; }
.dropzone__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); flex: none; }

.kb-list { display: grid; gap: 8px; }
.kb-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); animation: msgIn 420ms var(--ease-out) both; }
.kb-list li:nth-child(2) { animation-delay: 80ms; } .kb-list li:nth-child(3) { animation-delay: 160ms; }
.kb-list li > div { flex: 1; min-width: 0; }
.kb-list strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-list small { color: var(--muted); font-size: 12.5px; }
.kb-list__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.kb-list__icon .i { width: 18px; height: 18px; }
.kb-list__icon--red { background: #FEECEC; color: #DC2626; }
.kb-list__icon--blue { background: #E6EEFF; color: #1D4ED8; }
.kb-list__icon--violet { background: var(--violet-soft); color: var(--violet); }
@media (max-width: 480px) { .kb-list .chip { display: none; } }

.meter__label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.meter__label strong { color: var(--ink); }
.meter__bar { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad-brand); transform-origin: left; animation: grow 1.1s var(--ease-out) both; }
.meter__bar--dark { background: rgba(255,255,255,.08); height: 6px; margin: 8px 0; }
@keyframes grow { from { transform: scaleX(0); } }

.field-mock label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-mock__input { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; background: #fff; }
.field-mock__input--area { min-height: 92px; line-height: 1.5; font-size: 14px; color: var(--ink-2); }
.caret { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px; background: var(--indigo); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.seg-mock { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--line-2); }
.seg-mock span { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg-mock span.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.tags-mock { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-mock span { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: var(--green-soft); color: var(--green-ink); }

.connect { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.connect__qr { position: relative; width: 168px; height: 168px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-2); }
.qr {
  width: 100%; height: 100%;
  background:
    linear-gradient(#0B1220 0 0) 0 0 / 38px 38px no-repeat,
    linear-gradient(#0B1220 0 0) 100% 0 / 38px 38px no-repeat,
    linear-gradient(#0B1220 0 0) 0 100% / 38px 38px no-repeat,
    conic-gradient(from 90deg at 2px 2px, #0B1220 25%, transparent 0) 0 0 / 12px 12px,
    repeating-linear-gradient(45deg, #0B1220 0 3px, transparent 3px 9px);
  -webkit-mask: radial-gradient(#000 0 0);
  opacity: .9;
  border-radius: 4px;
}
.connect__qr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--green); box-shadow: 0 0 0 4px #fff; }
.connect__qr-logo .ib { width: 28px; height: 28px; }
.connect__info strong { font-size: 17px; }
.connect__info ol { margin-top: 10px; display: grid; gap: 8px; counter-reset: s; }
.connect__info li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.connect__info li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); font-size: 12px; font-weight: 700; }
.connect__status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); border: 1px solid #BBF7D0; }
.connect__status > div { flex: 1; }
.connect__status strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.connect__status small { color: var(--green-ink); font-size: 13px; }
.connect__status .chip--ok { background: #fff; }

/* ============ Dashboard ============ */
.dash {
  display: grid; grid-template-columns: 1fr;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--navy-2); border: 1px solid var(--navy-line);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
}
@media (min-width: 900px) { .dash { grid-template-columns: 236px 1fr; } }

.dash__side { display: none; padding: 20px 14px; border-right: 1px solid var(--navy-line); background: rgba(7,11,26,.6); }
@media (min-width: 900px) { .dash__side { display: flex; flex-direction: column; } }
.dash__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; font-weight: 700; color: #fff; }
.dash__brand .logo__mark { width: 26px; height: 26px; }
.dash__nav { display: grid; gap: 2px; }
.dash__nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--on-dark-muted); text-align: left; transition: background-color var(--t-fast), color var(--t-fast); }
.dash__nav button:hover { background: rgba(255,255,255,.04); color: #fff; }
.dash__nav button.is-active { background: rgba(255,255,255,.07); color: #fff; box-shadow: inset 2px 0 0 var(--green); }
.dash__nav .i { width: 18px; height: 18px; }
.dash__nav em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--green); color: #03230F; }
.dash__plan { margin-top: auto; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); }
.dash__plan small { display: block; font-size: 12px; color: var(--on-dark-muted); }
.dash__plan small:first-child { color: #fff; font-weight: 600; }

.dash__main { padding: 20px; min-width: 0; }
@media (min-width: 768px) { .dash__main { padding: 28px; } }
.dash__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dash__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash__title h3 { font-size: 22px; color: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(37,211,102,.12); color: #4ADE80; font-size: 13px; font-weight: 600; border: 1px solid rgba(37,211,102,.25); }
.dash__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dash__search { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); color: var(--on-dark-muted); font-size: 14px; min-width: 180px; }
.dash__search .i { width: 16px; height: 16px; }
@media (min-width: 1100px) { .dash__search { display: flex; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--navy-line); }
.seg button { min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--on-dark-muted); transition: background-color var(--t-fast), color var(--t-fast); }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--navy-3); border: 1px solid var(--navy-line); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.kpi:hover { border-color: rgba(255,255,255,.16); transform: translateY(-2px); }
.kpi__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-muted); line-height: 1.3; }
.kpi__label .i { width: 16px; height: 16px; color: #A5B4FC; }
.kpi__value { font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi__delta { font-size: 12.5px; font-weight: 600; color: #4ADE80; }

.dash__grid { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 1100px) { .dash__grid { grid-template-columns: 1.6fr 1fr; } .panel--wide { grid-column: 1 / -1; } }
.panel { padding: 18px; border-radius: 14px; background: var(--navy-3); border: 1px solid var(--navy-line); min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__head strong { display: block; font-size: 15px; color: #fff; }
.panel__head small { font-size: 12.5px; color: var(--on-dark-muted); }
.panel .link-btn { color: #A5B4FC; text-decoration-color: rgba(165,180,252,.35); font-size: 14px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-dark-muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend__sw { width: 10px; height: 10px; border-radius: 3px; }
.legend__sw--a { background: var(--green); }
.legend__sw--b { background: #818CF8; }
.legend__sw--muted { background: #64748B; }

.chart { width: 100%; height: 190px; overflow: visible; }
.chart__grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__line--a { stroke: var(--green); }
.chart__line--b { stroke: #818CF8; stroke-dasharray: 5 5; }
.chart__area { opacity: 1; transition: opacity 1s var(--ease-out) .4s; }
.chart__dot { fill: var(--green); stroke: var(--navy-3); stroke-width: 3; vector-effect: non-scaling-stroke; transition: opacity 400ms 1.2s; }
.chart__x { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-muted); }

/* Draw-in states (JS adds .is-drawn when visible) */
.js [data-dash] .chart__line--a, .js [data-growth] .growth__line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.6s var(--ease-out); }
.js [data-dash] .chart__area, .js [data-growth] .growth__area { opacity: 0; }
.js [data-dash] .chart__dot { opacity: 0; }
.js [data-dash].is-drawn .chart__line--a, .js [data-growth].is-drawn .growth__line { stroke-dashoffset: 0; }
.js [data-dash].is-drawn .chart__area, .js [data-growth].is-drawn .growth__area { opacity: 1; }
.js [data-dash].is-drawn .chart__dot { opacity: 1; }
.js [data-dash] .bars__track span { transform: scaleX(0); }
.js [data-dash].is-drawn .bars__track span { transform: scaleX(1); }

.bars { display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: "l v" "t t"; gap: 6px 8px; font-size: 13.5px; color: var(--on-dark); }
.bars li > span { grid-area: l; }
.bars em { grid-area: v; font-style: normal; text-align: right; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.bars__track { grid-area: t; height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.bars__track span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #4F46E5, #8B5CF6); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.bars li:first-child .bars__track span { background: linear-gradient(90deg, #22C55E, #4ADE80); }

.convos { display: grid; }
.convos li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--navy-line); }
.convos li:first-child { border-top: 0; }
.convos li > div { min-width: 0; }
.convos strong { display: block; font-size: 14.5px; color: #fff; }
.convos small { display: block; font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convos time { display: none; font-size: 12.5px; color: var(--on-dark-muted); white-space: nowrap; }
.convos .chip { background: rgba(255,255,255,.06); }
.convos .chip--ok { color: #4ADE80; } .convos .chip--violet { color: #C4B5FD; } .convos .chip--warn { color: #FCD34D; } .convos .chip--blue { color: #93C5FD; }
@media (max-width: 560px) { .convos .chip { font-size: 0; gap: 0; width: 28px; padding: 0; justify-content: center; } .convos .chip .i { width: 14px; height: 14px; } }
@media (min-width: 768px) { .convos li { grid-template-columns: 40px 1fr auto 90px; } .convos time { display: block; text-align: right; } }
.av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: hsl(var(--h) 60% 45%); }

/* ============ Personalization ============ */
.persona { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .persona { grid-template-columns: 1fr 1fr; gap: 64px; } }
.persona .section-head { margin-bottom: 32px; }

.config { display: grid; gap: 20px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.config__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .config__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
fieldset.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field textarea, .select select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: 16px; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field textarea:hover, .select select:hover { border-color: #CBD3DF; }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79,70,229,.14); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.field__err { font-size: 13.5px; color: var(--danger); min-height: 0; }
.field__err:empty { display: none; }
.field__help { font-size: 13px; color: var(--muted); }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select .i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { position: relative; cursor: pointer; }
.chip-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-toggle span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all var(--t-fast); user-select: none; }
.chip-toggle span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #CBD3DF; transition: all var(--t-fast); }
.chip-toggle:hover span { border-color: #C7D2FE; }
.chip-toggle input:checked + span { border-color: var(--indigo); background: var(--indigo-soft); color: #3730A3; }
.chip-toggle input:checked + span::before { border-color: var(--indigo); background: var(--indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat; }
.chip-toggle input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }

.seg--light { background: var(--line-2); border-color: transparent; padding: 4px; border-radius: 12px; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.seg--light label { position: relative; cursor: pointer; }
.seg--light input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg--light span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); transition: all var(--t-fast); }
.seg--light input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }
.seg--light input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }

.preview-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.preview-card__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.preview-card__head > div { flex: 1; }
.preview-card__head strong { display: block; font-size: 15px; }
.preview-card__head small { font-size: 12.5px; color: var(--muted); }
.wa__body--preview { min-height: 260px; justify-content: flex-end; padding: 18px 16px; }
.prompt { padding: 16px 18px 18px; background: #0B1220; color: #CBD5E1; }
.prompt__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #94A3B8; margin-bottom: 8px; }
.prompt__head .i { width: 15px; height: 15px; }
.prompt code { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt code b { color: #86EFAC; font-weight: 500; }

/* ============ Integrations ============ */
.integrations { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .integrations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .integrations { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .integrations { grid-template-columns: repeat(5, 1fr); } }
.integ {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
@media (min-width: 1200px) { .integ { flex-direction: column; align-items: flex-start; padding: 20px; } }
.integ:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.integ > div { flex: 1; min-width: 0; }
.integ strong { display: block; font-size: 15px; }
.integ small { font-size: 13px; color: var(--muted); }
.integ__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, white); flex: none; transition: transform var(--t-med) var(--ease-spring); }
.integ:hover .integ__logo { transform: scale(1.08); }
.integ__btn { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: #fff; transition: all var(--t-fast); white-space: nowrap; }
.integ__btn:hover { border-color: #CBD3DF; color: var(--ink); }
.integ__btn[aria-pressed="true"] { color: var(--green-ink); background: var(--green-soft); border-color: #BBF7D0; }
.integ__btn.is-loading { color: var(--muted); }
@media (min-width: 1200px) { .integ__btn { align-self: stretch; } }

/* ============ Use cases (tabs) ============ */
.tabs__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 calc(var(--gutter) * -1) 28px; padding-inline: var(--gutter); scroll-snap-type: x proximity; }
.tabs__list::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs__list { flex-wrap: wrap; justify-content: center; margin-inline: 0; } }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: all var(--t-fast);
}
.tab .i { width: 17px; height: 17px; color: var(--muted); transition: color var(--t-fast); }
.tab:hover { border-color: #C7D2FE; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--sh-2); }
.tab[aria-selected="true"] .i { color: var(--green); }

.case { display: grid; gap: 32px; align-items: center; padding: 24px; border-radius: var(--r-xl); background: linear-gradient(135deg, #fff, #F5F7FF); border: 1px solid var(--line); box-shadow: var(--sh-2); }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; } }
.case:focus-visible { outline-offset: 4px; }
.case__copy.is-swapping, .case__chat.is-swapping { opacity: 0; transform: translateY(6px); }
.case__copy, .case__chat { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.case__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--green); margin-bottom: 18px; }
.case__icon .i { width: 22px; height: 22px; }
.case__copy h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.case__copy > p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.case__list { display: grid; gap: 10px; margin-top: 20px; }
.case__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.case__list .i { width: 20px; height: 20px; margin-top: 2px; color: var(--green-ink); stroke-width: 2.5; }
.case__metric { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 24px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.case__metric strong { font-size: 28px; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metric span { font-size: 14px; color: var(--muted); }
.wa__body--case { min-height: 380px; }

/* ============ Results ============ */
.results .section-head { max-width: 820px; }
.big-stats { display: grid; gap: 16px; }
@media (min-width: 768px) { .big-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.big-stat { display: flex; flex-direction: column-reverse; padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid var(--navy-line); transition: border-color var(--t-med), background-color var(--t-med); }
.big-stat:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.big-stat dd { font-size: clamp(52px, 7vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-stat dt { margin-top: 12px; font-size: 16px; color: var(--on-dark-muted); }

.growth { margin-top: 20px; padding: 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid var(--navy-line); }
.growth__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.growth__head strong { display: block; color: #fff; font-size: 16px; }
.growth__head small { font-size: 13px; color: var(--on-dark-muted); }
.growth__chart { width: 100%; height: 220px; overflow: visible; }
.growth__line { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.growth__line--muted { stroke: #64748B; stroke-width: 2; stroke-dasharray: 6 6 !important; stroke-dashoffset: 0 !important; }
.growth__area { transition: opacity 1.2s var(--ease-out) .5s; }
.chart__grid--dark line { stroke: rgba(255,255,255,.07); }
.chart__x--dark { color: var(--on-dark-muted); }

/* ============ Pricing ============ */
.billing { display: flex; width: max-content; margin: -24px auto 40px; padding: 4px; gap: 4px; border-radius: 12px; background: var(--line-2); border: 1px solid var(--line); }
.billing__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: all var(--t-fast); }
.billing__opt.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }
.billing__save { padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--green-ink); background: var(--green-soft); }

.plans { display: grid; gap: 20px; align-items: stretch; max-width: 1100px; margin: 0 auto; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.plan--featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 60px -24px rgba(79,70,229,.35);
}
@media (min-width: 960px) { .plan--featured { transform: translateY(-12px); } .plan--featured:hover { transform: translateY(-16px); } }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--sh-2); }
.plan__badge .i { width: 13px; height: 13px; color: var(--green); }
.plan__name { font-size: 20px; }
.plan__desc { margin-top: 6px; font-size: 14.5px; color: var(--muted); min-height: 44px; }
.plan__price { display: flex; align-items: baseline; gap: 2px; margin-top: 20px; }
.plan__cur { font-size: 24px; font-weight: 600; align-self: flex-start; margin-top: 8px; }
.plan__amt { font-size: 56px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; transition: opacity 180ms, transform 180ms var(--ease-out); }
.plan__amt.is-flip { opacity: 0; transform: translateY(-6px); }
.plan__per { margin-left: 6px; font-size: 14.5px; color: var(--muted); }
.plan__note { display: block; margin: 6px 0 24px; font-size: 13px; color: var(--muted); min-height: 20px; }
.plan__list { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan__list .i { width: 18px; height: 18px; margin-top: 2px; color: var(--green-ink); stroke-width: 2.5; }
.plan--featured .plan__list .i { color: var(--indigo); }
.plans__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; font-size: 15px; color: var(--muted); }
.plans__foot .i { width: 18px; height: 18px; color: var(--green-ink); }

/* ============ FAQ ============ */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: box-shadow var(--t-med), border-color var(--t-med); }
.faq__item:hover { border-color: #D5DCE6; }
.faq__item.is-open { box-shadow: var(--sh-2); border-color: #D5DCE6; }
.faq__item h3 { font-size: inherit; letter-spacing: normal; }
.faq__item button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 16px 20px; text-align: left; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; border-radius: inherit; }
.faq__item button .i { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform var(--t-med) var(--ease-out), color var(--t-fast); }
.faq__item.is-open button .i { transform: rotate(45deg); color: var(--indigo); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.faq__panel > div { overflow: hidden; }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel p { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }

/* ============ Final CTA ============ */
.final-cta { position: relative; padding: 24px var(--gutter) var(--section-y); }
.final-cta__bg { display: none; }
.final-cta__inner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 72px 24px; border-radius: var(--r-xl);
  background: var(--navy); color: #fff;
  box-shadow: 0 40px 80px -30px rgba(7,11,26,.6);
}
.final-cta__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 120%, rgba(37,211,102,.35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% -10%, rgba(124,58,237,.35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% -10%, rgba(79,70,229,.35), transparent 70%);
}
.final-cta__inner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
}
@media (min-width: 768px) { .final-cta__inner { padding: 104px 48px; } }
.final-cta__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(160deg, #3BE07A, #16A34A); color: #fff; box-shadow: 0 20px 40px -12px rgba(37,211,102,.6), inset 0 1px 0 rgba(255,255,255,.4); margin-bottom: 28px; }
.final-cta__mark .ib { width: 34px; height: 34px; }
.final-cta h2 { max-width: 780px; font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.04em; }
.final-cta p { margin-top: 16px; font-size: 19px; color: var(--on-dark-muted); }
.final-cta .btn { margin-top: 36px; }
.final-cta small { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }

/* ============ Footer ============ */
.footer { background: var(--navy); color: var(--on-dark-muted); padding: 72px 0 32px; }
.footer__top { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; max-width: 340px; }
.footer__brand p { margin-top: 14px; font-size: 15px; line-height: 1.6; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer__brand { grid-column: auto; } }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__col h3 { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 10px; }
.footer__col a, .footer__link { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--on-dark-muted); text-align: left; transition: color var(--t-fast); width: max-content; }
.footer__col a:hover, .footer__link:hover { color: #fff; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--navy-line); color: var(--on-dark-muted); transition: all var(--t-fast); }
.social a:hover { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.social .i, .social .ib { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 13.5px; }
.footer__status { display: inline-flex; align-items: center; gap: 8px; }

/* ============ Sticky mobile CTA ============ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(248,250,252,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--t-med) var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ============ Modals ============ */
.modal { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); width: 460px; max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
.modal--demo { width: 920px; }
.modal::backdrop { background: rgba(7,11,26,.55); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 320ms var(--ease-spring); }
.modal[open]::backdrop { animation: fade 240ms var(--ease-out); }
.modal.is-closing { animation: modalOut 180ms var(--ease-out) forwards; }
.modal.is-closing::backdrop { animation: fade 180ms reverse forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal__card { position: relative; padding: 32px 28px 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 40px 80px -20px rgba(7,11,26,.45); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal__card--demo { padding: 0; overflow: hidden; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--muted); transition: background-color var(--t-fast), color var(--t-fast); }
.modal__close:hover { background: var(--line-2); color: var(--ink); }
.modal__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--indigo-soft); color: var(--indigo); margin-bottom: 18px; }
.modal__icon--ok { background: var(--green-soft); color: var(--green-ink); animation: pop 500ms var(--ease-spring); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.modal h2 { font-size: 26px; letter-spacing: -.03em; outline: none; }
.modal__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form__legal { font-size: 13px; color: var(--muted); text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal .divider + .form { margin-top: 16px; }
#modal-login .btn--outline { margin-top: 24px; }
.pass { position: relative; }
.pass input { padding-right: 52px !important; }
.pass__toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); border-radius: 10px; }
.pass__toggle[aria-pressed="true"] { color: var(--indigo); }
.next-steps { display: grid; gap: 10px; margin: 24px 0; }
.next-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.next-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.next-steps li.is-done { background: var(--green-soft); border-color: #BBF7D0; color: var(--green-ink); }
.next-steps li.is-done .i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; }

.demo { display: grid; }
@media (min-width: 820px) { .demo { grid-template-columns: 1fr 1.05fr; } }
.demo__info { padding: 36px 28px 24px; }
.demo__info h2 { margin-top: 12px; }
.demo__info p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.demo__suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all var(--t-fast); text-align: left; }
.chip-btn:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-soft); }
.chip-btn:active { transform: scale(.97); }
.wa--demo { border-radius: 0; border: 0; box-shadow: none; height: min(560px, 70dvh); }
@media (max-width: 819px) { .wa--demo { height: 440px; } .demo__info { padding-bottom: 20px; } }
.wa__body--demo { overflow-y: auto; scroll-behavior: smooth; }

/* ============ Toasts ============ */
.toasts { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--sh-3); animation: toastIn 320ms var(--ease-spring); pointer-events: auto; }
.toast .i { width: 18px; height: 18px; color: var(--green); }
.toast.is-out { animation: toastOut 200ms var(--ease-out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) { .toasts { bottom: 96px; } }

/* ============ Reveal on scroll ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pulse-dot::after { display: none; }
}
