/* ==========================================================================
   Kitebase — product analytics marketing site
   ========================================================================== */

:root {
  /* Ink (dark) scale */
  --ink-950: #07080d;
  --ink-900: #0b0c14;
  --ink-850: #0f111b;
  --ink-800: #131623;
  --ink-700: #1c1f30;
  --ink-600: #2a2e44;

  /* Fog (text on dark) */
  --fog-100: #f1f1f6;
  --fog-200: #dcdde8;
  --fog-300: #c3c5d6;
  --fog-400: #a2a5bc;
  --fog-500: #8387a2;

  /* Paper (light) */
  --paper: #f6f5f1;
  --paper-2: #eeede7;
  --white: #ffffff;
  --text: #0e0f18;
  --text-2: #3c3f51;
  --text-3: #5d6074;
  --line: #e4e2db;
  --line-2: #d4d2c9;

  /* Brand */
  --violet-50: #f2efff;
  --violet-100: #e5dfff;
  --violet-300: #b7a9ff;
  --violet-400: #9783ff;
  --violet-500: #6e56ff;
  --violet-600: #5a40f0;
  --violet-700: #4530c8;
  --mint-300: #84f1d4;
  --mint-400: #34e0b4;
  --mint-600: #0e9f7e;
  --mint-700: #0b7f65;
  --amber-400: #ffb547;
  --coral-300: #ff9b8f;
  --coral-400: #ff6b5b;
  --coral-600: #d9412f;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(14, 15, 24, .05), 0 1px 1px rgba(14, 15, 24, .03);
  --shadow-md: 0 1px 2px rgba(14, 15, 24, .04), 0 8px 24px -8px rgba(14, 15, 24, .12);
  --shadow-lg: 0 2px 4px rgba(14, 15, 24, .04), 0 24px 60px -20px rgba(14, 15, 24, .25);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 136px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--violet-500);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--font-mono); }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--violet-500); color: #fff; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hero, .tour-panel, .cta, .site-footer, .site-header, .quote-main, .plan-featured { --focus: var(--violet-300); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--white); color: var(--text); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono { font-family: var(--font-mono); font-size: .92em; }
section[id], [id^="tab-"] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
h2 {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}
h3 { font-size: 1.25rem; }
.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet-600);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--violet-500), var(--mint-400));
  transform: rotate(45deg);
}
.eyebrow-dark { color: var(--violet-300); }

.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 + .lead { margin-top: 20px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: clamp(32px, 6vw, 96px); align-items: end;
}
.section-head-split .eyebrow { grid-column: 1 / -1; justify-self: start; }
.section-head-split h2 + .lead { margin-top: 0; padding-bottom: 6px; }
.section-head-dark h2 { color: var(--white); }
.section-head-dark .lead { color: var(--fog-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 550; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg:last-child { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--violet-500); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px -10px rgba(110, 86, 255, .85);
}
.btn-primary:hover { background: #7b65ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 34px -10px rgba(110, 86, 255, .95); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, .05); color: var(--fog-100);
  border-color: rgba(255, 255, 255, .14);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.btn-outline { background: var(--white); color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--text); }
.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { background: var(--ink-700); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px;
  font-weight: 550; color: var(--violet-600);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link svg { transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11, 12, 20, 0);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  color: var(--fog-100);
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .08); background: rgba(11, 12, 20, .9); }
.site-header.menu-open { background: var(--ink-900); }
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) translateY(-1px); }
.brand-word { font-size: 19px; font-weight: 650; letter-spacing: -0.035em; color: var(--white); }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--fog-300);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin { padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: var(--fog-300); border-radius: 8px; }
.nav-signin:hover { color: var(--white); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  place-items: center;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bars i {
  position: absolute; left: 0; width: 18px; height: 1.8px; border-radius: 2px; background: var(--white);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bars i:first-child { top: 2px; }
.nav-toggle-bars i:last-child { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { top: 5.2px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { top: 5.2px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  padding: 8px var(--gutter) 24px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu li a {
  display: block; padding: 14px 4px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--fog-100);
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 64px));
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 30%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-glow-a {
  width: min(900px, 120vw); height: 520px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 86, 255, .55), rgba(110, 86, 255, 0));
}
.hero-glow-b {
  width: 620px; height: 420px; right: -120px; top: 520px;
  background: radial-gradient(closest-side, rgba(52, 224, 180, .18), rgba(52, 224, 180, 0));
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px; color: var(--fog-200);
  margin-bottom: 28px;
  transition: background-color .2s, border-color .2s;
  max-width: 100%;
}
.announce:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.announce-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(120deg, var(--violet-500), #8f6bff);
  color: var(--white);
}
.announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce svg { flex: none; transition: transform .25s var(--ease); }
.announce:hover svg { transform: translateX(3px); }

.hero-title {
  font-size: clamp(2.6rem, 1.15rem + 5.2vw, 5.25rem);
  line-height: .98;
  letter-spacing: -0.048em;
  font-weight: 600;
  color: var(--white);
  max-width: 14ch;
  max-width: 980px;
}
.hl {
  background: linear-gradient(100deg, #c7bcff 0%, var(--violet-400) 40%, var(--mint-400) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .04em;
}
.hero-sub {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.6;
  color: var(--fog-300);
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fog-400);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(52, 224, 180, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2334E0B4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Product mockup ---------- */
.mock-stage { position: relative; margin-top: clamp(44px, 5.5vw, 68px); }
.mock {
  position: relative;
  text-align: left;
  background: var(--ink-850);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .5),
    0 50px 120px -30px rgba(0, 0, 0, .9),
    0 0 120px -20px rgba(110, 86, 255, .45);
  overflow: hidden;
  color: var(--fog-200);
  font-size: 13px;
  line-height: 1.4;
  user-select: none;
}
.mock::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(183, 169, 255, .8), rgba(52, 224, 180, .7), transparent);
}
.mock-chrome {
  display: flex; align-items: center; gap: 14px;
  height: 42px; padding: 0 14px;
  background: #0c0e17;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mock-dots { display: flex; gap: 6px; flex: none; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #262a3c; }
.mock-url {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline: auto;
  padding: 5px 14px; border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fog-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mock-url svg { flex: none; color: var(--mint-400); }
.mock-avatars { display: flex; flex: none; }
.mock-avatars i {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  margin-left: -6px; border: 2px solid #0c0e17;
  background: var(--c); color: var(--ink-900);
  font-style: normal; font-size: 9px; font-weight: 700;
}
.mock-body { display: grid; grid-template-columns: 212px minmax(0, 1fr); }

.mock-side {
  display: flex; flex-direction: column;
  padding: 14px 12px;
  background: #0d0f18;
  border-right: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px; color: var(--fog-400);
}
.mock-ws {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--fog-100); font-weight: 600;
}
.mock-ws svg { margin-left: auto; color: var(--fog-500); }
.mock-ws-logo {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--amber-400); color: var(--ink-900);
  font-size: 11px; font-weight: 700;
}
.mock-search {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 10px; padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px;
  color: var(--fog-500);
}
.mock-search kbd { margin-left: auto; font-size: 10px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.mock-nav li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 7px;
}
.mock-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mock-nav li.is-active { background: rgba(110, 86, 255, .16); color: var(--white); }
.mock-nav li.is-active svg { color: var(--violet-300); }
.mock-badge {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 9.5px;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(52, 224, 180, .14); color: var(--mint-400);
}
.mock-side-label {
  margin: 18px 8px 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #6f7390;
}
.mock-nav-sub i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-inline: 4px; }
.mock-usage {
  margin-top: auto;
  padding: 10px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px;
}
.mock-usage-row { display: flex; justify-content: space-between; color: var(--fog-300); }
.mock-usage-row span:last-child { font-family: var(--font-mono); color: var(--white); }
.mock-meter { height: 5px; margin: 8px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.mock-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-500), var(--mint-400)); }
.mock-usage-foot { color: var(--fog-500); font-size: 11px; }

.mock-main { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; min-width: 0; }
.mock-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mock-crumb { font-size: 11.5px; color: var(--fog-500); }
.mock-title { font-size: 19px; font-weight: 600; color: var(--white); letter-spacing: -0.02em; margin-top: 2px; }
.mock-controls { display: flex; gap: 8px; align-items: center; }
.mock-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 12px; color: var(--fog-300); white-space: nowrap;
}
.mock-btn { padding: 5px 12px; border-radius: 7px; background: var(--violet-500); color: var(--white); font-size: 12px; font-weight: 500; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi, .mcard {
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 11px;
}
.kpi { padding: 12px 12px 10px; }
.kpi-label { font-size: 11.5px; color: var(--fog-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value {
  margin-top: 4px;
  font-size: clamp(17px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--white); font-variant-numeric: tabular-nums;
}
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.delta { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.delta.up { color: var(--mint-400); }
.spark { width: 56px; height: 18px; flex: none; overflow: visible; }
.spark path { fill: none; stroke: var(--violet-400); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }

.mock-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.mcard { padding: 14px; min-width: 0; }
.mcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mcard-title { font-size: 13px; font-weight: 600; color: var(--white); }
.mcard-sub { font-size: 11px; color: var(--fog-500); margin-top: 2px; }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--fog-400); white-space: nowrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 2px; border-radius: 2px; }
.lg-cur { background: linear-gradient(90deg, var(--violet-400), var(--mint-400)); }
.lg-prev { background: repeating-linear-gradient(90deg, #6b6f88 0 3px, transparent 3px 5px); }

.chart-card { display: flex; flex-direction: column; }
.chart { position: relative; flex: 1; min-height: 190px; }
.chart-y {
  position: absolute; left: 0; right: 0; top: 0; bottom: 22px;
  font-family: var(--font-mono); font-size: 10px; color: var(--fog-500);
}
.chart-y span { position: absolute; left: 0; right: 0; transform: translateY(-50%); line-height: 1; }
.chart-y span::after {
  content: ""; position: absolute; left: 32px; right: 0; top: 50%; height: 1px;
  background: rgba(255, 255, 255, .06);
}
.chart-y span:nth-child(1) { top: 21.3%; }
.chart-y span:nth-child(2) { top: 44.8%; }
.chart-y span:nth-child(3) { top: 68.2%; }
.chart-y span:nth-child(4) { top: 91.7%; }
.chart-plot { position: absolute; left: 32px; right: 0; top: 0; bottom: 22px; }
.chart-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  clip-path: inset(-10px 0 -10px 0);
  transition: clip-path 2.2s cubic-bezier(.45, .05, .25, 1) .45s;
}
.chart-prev { fill: none; stroke: #5a5e78; stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-marker {
  position: absolute; right: 0; bottom: 0; width: 0;
  border-left: 1px dashed rgba(255, 255, 255, .22);
}
.chart-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--mint-400); box-shadow: 0 0 0 3px var(--ink-800), 0 0 0 4px rgba(52, 224, 180, .5);
  transform: translate(-50%, -50%);
}
.chart-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1.5px solid var(--mint-400); opacity: 0;
  animation: ping 2.4s var(--ease) infinite 2.4s;
}
.chart-tip {
  position: absolute; right: 16px;
  transform: translateY(-50%);
  padding: 5px 9px; border-radius: 7px;
  background: rgba(15, 17, 27, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px; color: var(--fog-300); white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6);
}
.chart-tip b { color: var(--white); font-weight: 600; }
.chart-x {
  position: absolute; left: 32px; right: 0; bottom: 0; height: 22px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-mono); font-size: 10px; color: var(--fog-500);
}

.funnel-card { display: flex; flex-direction: column; }
.mfunnel { display: grid; gap: 12px; flex: 1; align-content: space-between; }
.mfunnel li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 8px;
  font-size: 11.5px; color: var(--fog-300);
}
.mf-label { grid-row: 1; grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-val { grid-row: 1; grid-column: 2; font-family: var(--font-mono); font-size: 11px; color: var(--fog-200); }
.mf-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.mf-bar i {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
  transform-origin: left; transition: transform 1s var(--ease);
}
.mfunnel li.is-flag .mf-label { color: var(--coral-300); }
.mfunnel li.is-flag .mf-label::after { content: " ⚑"; }
.mfunnel li.is-flag .mf-bar i { background: linear-gradient(90deg, #c2412f, var(--coral-400)); }

.brief-card { display: flex; gap: 12px; align-items: flex-start; }
.brief-icon {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-500), #2fbf9c);
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(110, 86, 255, .8);
}
.brief-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.brief-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--fog-500); }
.brief-text { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--fog-300); }
.tw-rest { visibility: hidden; }
.tw-caret {
  display: inline-block; width: 2px; height: 1.05em; margin: 0 1px -2px;
  background: var(--violet-300); animation: blink 1s steps(1) infinite;
}

/* floating cards */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 12px;
  background: rgba(22, 24, 38, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7);
  font-size: 12.5px; color: var(--fog-300); text-align: left;
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--white); font-weight: 600; font-size: 13px; }
.float-card small { display: block; font-size: 11.5px; color: var(--fog-400); }
.float-alert { bottom: 104px; left: calc(var(--gutter) - 52px); }
.float-icon {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 107, 91, .15); color: var(--coral-400);
}
.float-live { top: -20px; right: calc(var(--gutter) + 132px); padding: 10px 14px; animation-delay: -3.5s; }
.float-live strong { display: inline; font-variant-numeric: tabular-nums; }

.live-dot {
  position: relative; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(52, 224, 180, .2);
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--mint-400);
  animation: ping 2s var(--ease) infinite;
}

/* ---------- Logo strip ---------- */
.logos { padding: clamp(56px, 7vw, 88px) 0 clamp(56px, 7vw, 80px); text-align: center; }
.logos-title { font-size: 14.5px; color: var(--fog-400); padding-inline: var(--gutter); }
.logos-title strong { color: var(--fog-100); font-weight: 600; }
.marquee {
  display: flex; overflow: hidden; margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; flex: none;
  gap: clamp(40px, 5vw, 72px); padding-right: clamp(40px, 5vw, 72px);
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: #9a9db6; font-size: 21px; font-weight: 600; letter-spacing: -0.03em;
  white-space: nowrap; transition: color .2s;
}
.logo:hover { color: var(--white); }
.logo-saltmarsh { font-weight: 500; letter-spacing: -0.04em; }
.logo-parcelwise { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: .14em; }
.logo-mossgrove { font-weight: 700; letter-spacing: -0.05em; }
.logo-halden { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -0.01em; font-size: 22px; }
.logo-box {
  width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 4px;
  display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; font-family: var(--font-sans);
}
.logo-brasswing { font-style: italic; font-weight: 500; }
.logo-fernhill { text-transform: uppercase; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.logo-quillmate { font-weight: 400; letter-spacing: -0.02em; }

/* ---------- Features (bento) ---------- */
.features {
  padding-bottom: clamp(72px, 8vw, 104px);
  background:
    radial-gradient(circle at 1px 1px, rgba(14, 15, 24, .07) 1px, transparent 0) 0 0 / 24px 24px,
    var(--paper);
}
.features::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(246, 245, 241, .4) 30%, var(--paper) 85%);
}
.features > .container { position: relative; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.bento-card h3 { font-size: 1.2rem; line-height: 1.28; letter-spacing: -0.022em; margin: 8px 0 10px; }
.bento-card p { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.bento-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .02em; }
.bento-visual { margin-bottom: 22px; }

.b-auto { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.b-auto h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.03em; }
.b-auto .bento-visual { margin: 0; }
.b-funnel, .b-retention, .b-sessions, .b-ai { grid-column: span 2; }
.b-privacy, .b-sync { grid-column: span 3; }

.stream { background: var(--ink-900); border-radius: 14px; padding: 12px 12px 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.stream-head {
  display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fog-400);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.stream-rate { margin-left: auto; color: var(--mint-400); }
.stream-window {
  height: 216px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 80%, transparent);
}
.stream-list { animation: stream 22s linear infinite; }
.stream-list li {
  display: grid; grid-template-columns: auto 8px auto minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 8px 4px;
  font-family: var(--font-mono); font-size: 11.5px;
  border-bottom: 1px dashed rgba(255, 255, 255, .05);
}
.stream-list time { color: #6f7390; }
.stream-list i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.stream-list code { color: var(--fog-100); }
.stream-list span { color: var(--fog-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-funnel, .mini-cohort { height: 112px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.mini-funnel { display: flex; align-items: flex-end; gap: 8px; }
.mini-funnel span {
  flex: 1; height: var(--h);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--violet-400), var(--violet-600));
  transform-origin: bottom; transition: transform .9s var(--ease);
}
.mini-funnel span.is-drop { background: linear-gradient(180deg, var(--coral-400), var(--coral-600)); }
.mini-funnel span:nth-child(2) { transition-delay: .08s; }
.mini-funnel span:nth-child(3) { transition-delay: .16s; }
.mini-funnel span:nth-child(4) { transition-delay: .24s; }
.mini-funnel span:nth-child(5) { transition-delay: .32s; }
.js .b-funnel:not(.is-in) .mini-funnel span { transform: scaleY(.08); }

.mini-cohort { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mini-cohort span { border-radius: 5px; background: rgba(110, 86, 255, var(--a)); }
.mini-cohort span.e { background: rgba(14, 15, 24, .045); }

.mini-path { height: 112px; display: grid; place-items: center; color: var(--text-3); background: var(--paper); border-radius: 14px; border: 1px solid var(--line); }
.mini-path svg { width: 88%; height: auto; }

.mini-brief {
  height: 112px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(160deg, var(--violet-50), var(--paper) 70%);
  border: 1px solid var(--violet-100);
}
.mb-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--violet-600); margin-bottom: 6px; }
.mb-line { display: block; height: 8px; width: var(--w); margin-top: 9px; border-radius: 4px; background: #dedbe9; }
.mb-hl { background: linear-gradient(90deg, rgba(110, 86, 255, .45), rgba(52, 224, 180, .55)); }

.b-row { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.b-row h3 { margin-bottom: 0; }
.shield {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet-600);
  border: 1px solid var(--violet-100);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  padding: 5px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
}
.sync-visual { display: flex; align-items: center; flex: none; }
.sync-node {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-2); color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.sync-k { background: var(--ink-900); border-color: var(--ink-900); }
.sync-line {
  position: relative; width: 56px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px);
}
.sync-line i {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--mint-600); box-shadow: 0 0 0 3px rgba(14, 159, 126, .18);
  animation: sync 2.4s var(--ease) infinite;
}

/* ---------- Product tour (tabs) ---------- */
.tour { background: var(--paper); padding-top: 0; }
.tour-panel {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-900); color: var(--fog-200);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5.5vw, 80px);
  box-shadow: var(--shadow-lg);
}
.tour-bg { position: absolute; inset: 0; z-index: -1; }
.tour-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 50% at 100% 0%, #000, transparent 70%);
}
.tour-bg::after {
  content: ""; position: absolute; width: 700px; height: 500px; right: -200px; bottom: -200px;
  background: radial-gradient(closest-side, rgba(110, 86, 255, .3), transparent);
  filter: blur(40px);
}
.tour .section-head { margin-bottom: 40px; }

.tablist {
  display: inline-flex; gap: 4px; padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 100%;
}
html:not(.js) .tablist { display: none; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--fog-400);
  white-space: nowrap;
  transition: color .2s, background-color .25s var(--ease), border-color .25s;
}
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] {
  color: var(--white);
  background: rgba(110, 86, 255, .2);
  border-color: rgba(151, 131, 255, .45);
  box-shadow: 0 6px 20px -8px rgba(110, 86, 255, .8);
}
.tab[aria-selected="true"] svg { color: var(--violet-300); }

.tabpanel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  border-radius: 16px;
}
html:not(.js) .tabpanel + .tabpanel { margin-top: 64px; }
.tabpanel.is-entering .tp-copy, .tabpanel.is-entering .tp-visual { animation: panelIn .5s var(--ease) both; }
.tabpanel.is-entering .tp-visual { animation-delay: .06s; }
.tp-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.12; letter-spacing: -0.032em; color: var(--white); }
.tp-copy p { margin-top: 16px; color: var(--fog-300); font-size: 16.5px; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fog-200); }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  background: rgba(52, 224, 180, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2334E0B4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

.viz-card {
  background: linear-gradient(180deg, #151829, #11131f);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.viz-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
  font-size: 13px; color: var(--fog-300);
}
.viz-pill {
  font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(110, 86, 255, .18); color: var(--violet-300);
}
.viz-pill-mint { background: rgba(52, 224, 180, .14); color: var(--mint-400); }
.viz-pill-coral { background: rgba(255, 107, 91, .14); color: var(--coral-300); }

/* column funnel */
.colfunnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); margin-top: 28px; }
.cf-col { display: flex; flex-direction: column; min-width: 0; }
.cf-track { position: relative; height: 220px; margin-top: 26px; }
.cf-ghost, .cf-bar { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px 8px 3px 3px; }
.cf-ghost {
  height: calc(var(--p) * 100%);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 4px, transparent 4px 9px);
  border: 1px dashed rgba(255, 255, 255, .1);
}
.cf-bar {
  height: calc(var(--h) * 100%);
  background: linear-gradient(180deg, #8a73ff, var(--violet-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transform-origin: bottom;
  transition: transform .9s var(--ease);
}
.cf-col:nth-child(2) .cf-bar { transition-delay: .06s; }
.cf-col:nth-child(3) .cf-bar { transition-delay: .12s; }
.cf-col:nth-child(4) .cf-bar { transition-delay: .18s; }
.cf-col:nth-child(5) .cf-bar { transition-delay: .24s; }
.cf-pct {
  position: absolute; left: 0; right: 0; bottom: calc(var(--h) * 100% + 6px);
  text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--white);
}
.cf-col.is-flag .cf-ghost { border-color: rgba(255, 107, 91, .5); background: repeating-linear-gradient(-45deg, rgba(255, 107, 91, .14) 0 4px, transparent 4px 9px); }
.cf-note {
  position: absolute; left: 50%; bottom: calc(var(--p) * 100% + 34px); transform: translateX(-50%); z-index: 1;
  padding: 5px 9px; border-radius: 8px; white-space: nowrap;
  background: var(--coral-400); color: #2a0c07;
  font-size: 11.5px; font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(255, 107, 91, .6);
}
.cf-note::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--coral-400);
}
.cf-name { margin-top: 12px; font-size: 13px; color: var(--fog-200); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-n { font-family: var(--font-mono); font-size: 11px; color: var(--fog-500); text-align: center; }
.js .tabpanel:not(.is-shown) .cf-bar { transform: scaleY(0); }

/* cohort */
.cohort { display: grid; gap: 4px; margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px; }
.coh-row { display: grid; grid-template-columns: 58px 52px repeat(6, minmax(0, 1fr)); gap: 4px; align-items: center; }
.coh-headrow { color: var(--fog-500); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.coh-headrow span:nth-child(n+3) { text-align: center; }
.coh-date { color: var(--fog-200); }
.coh-n { color: var(--fog-500); }
.coh-cell {
  padding: 9px 0; border-radius: 6px; text-align: center;
  background: rgba(110, 86, 255, var(--a)); color: var(--white);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.coh-empty { background: rgba(255, 255, 255, .025); }
.js .tabpanel:not(.is-shown) .coh-cell { opacity: 0; transform: scale(.8); }
.viz-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13.5px; color: var(--fog-300); }
.viz-foot b { color: var(--mint-400); }
.spark-ico { color: var(--violet-300); margin-right: 4px; }

/* sessions */
.scrubber { position: relative; height: 6px; margin: 22px 0 8px; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.sc-fill { position: absolute; inset: 0 0 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet-600), var(--violet-400)); transform-origin: left; transition: transform 1.4s var(--ease); }
.js .tabpanel:not(.is-shown) .sc-fill { transform: scaleX(0); }
.scrubber i {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--violet-500);
}
.scrubber i.bad { border-color: var(--coral-400); }
.scrubber i.good { border-color: var(--mint-400); }
.timeline { margin-top: 14px; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 48px 14px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 9px 0; font-size: 13.5px; color: var(--fog-200);
}
.timeline li::before {
  content: ""; position: absolute; left: 66px; top: 26px; bottom: -10px; width: 1px; background: rgba(255, 255, 255, .1);
}
.timeline li:last-child::before { display: none; }
.timeline time { font-family: var(--font-mono); font-size: 12px; color: var(--fog-500); padding-top: 1px; }
.tl-dot { width: 10px; height: 10px; margin: 5px 2px 0; border-radius: 50%; background: var(--violet-400); box-shadow: 0 0 0 4px rgba(110, 86, 255, .18); }
.timeline code { font-size: 12px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: var(--white); }
.timeline em {
  font-style: normal; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  margin-left: 6px; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.timeline li.bad .tl-dot { background: var(--coral-400); box-shadow: 0 0 0 4px rgba(255, 107, 91, .2); }
.timeline li.bad em { background: rgba(255, 107, 91, .16); color: var(--coral-300); }
.timeline li.good .tl-dot { background: var(--mint-400); box-shadow: 0 0 0 4px rgba(52, 224, 180, .18); }
.timeline li.good em { background: rgba(52, 224, 180, .14); color: var(--mint-400); }

/* brief doc */
.bd-top { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.bd-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet-500), #2fbf9c); color: var(--white); }
.bd-top b { display: block; color: var(--white); font-size: 15px; font-weight: 600; }
.bd-top small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--fog-500); }
.bd-section { margin-top: 18px; }
.bd-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fog-500); }
.bd-section ul { margin-top: 8px; display: grid; gap: 8px; }
.bd-section li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--fog-200); }
.bd-section p { margin-top: 8px; font-size: 14px; color: var(--fog-300); line-height: 1.6; }
.bd-chip { flex: none; min-width: 74px; text-align: center; font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.bd-chip.up { background: rgba(52, 224, 180, .14); color: var(--mint-400); }
.bd-chip.down { background: rgba(255, 107, 91, .15); color: var(--coral-300); }
.bd-section li { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bd-section li:nth-child(2) { transition-delay: .12s; }
.bd-section li:nth-child(3) { transition-delay: .24s; }
.js .tabpanel:not(.is-shown) .bd-section li { opacity: 0; transform: translateX(-8px); }
.bd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bd-btn { padding: 8px 12px; border-radius: 9px; background: var(--violet-500); color: var(--white); font-size: 13px; font-weight: 500; }
.bd-btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .14); color: var(--fog-200); }

/* ---------- How it works ---------- */
.how { background: var(--white); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 22px; left: 46px; right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.step { position: relative; display: flex; flex-direction: column; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--violet-600);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px; position: relative;
}
.step h3 { font-size: 1.35rem; letter-spacing: -0.025em; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.step-visual { margin-top: 24px; flex: 1; }

.code { background: var(--ink-900); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.code-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-top i { width: 8px; height: 8px; border-radius: 50%; background: #2a2e44; }
.code-top span { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fog-500); }
.code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-size: 13px; line-height: 1.75; color: var(--fog-100); }
.c-key { color: var(--violet-300); }
.c-str { color: var(--mint-300); }
.c-fn { color: var(--amber-400); }
.c-mut { color: var(--fog-500); }

.goal { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.goal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g-k { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); min-width: 44px; }
.g-chip {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text);
  padding: 5px 10px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--line-2);
}
.g-chip-goal { background: var(--violet-50); border-color: var(--violet-100); color: var(--violet-700); font-weight: 500; }

.chat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-md); }
.chat-msg { display: flex; gap: 12px; }
.chat-av { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-900); }
.chat-msg b { font-size: 14px; }
.chat-msg small { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.chat-msg p { margin-top: 2px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.chat-msg .up { color: var(--mint-700); font-weight: 600; }
.chat-msg u { color: var(--violet-600); text-underline-offset: 2px; }
.chat-react { display: flex; gap: 6px; margin-top: 12px; padding-left: 46px; }
.chat-react span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--text-2); }

/* ---------- Customers ---------- */
.customers { background: var(--paper); }
.quote-block { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.quote-main {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink-900); color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.5vw, 56px);
}
.quote-main::before {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; left: -180px; top: -260px;
  background: radial-gradient(closest-side, rgba(110, 86, 255, .45), transparent);
}
.quote-main::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; bottom: -220px;
  background: radial-gradient(closest-side, rgba(52, 224, 180, .2), transparent);
}
.quote-mark { color: var(--violet-400); width: 40px; height: auto; }
.quote-main blockquote { margin: 28px 0 40px; }
.quote-main blockquote p {
  font-size: clamp(1.35rem, .95rem + 1.4vw, 2.05rem);
  line-height: 1.3; letter-spacing: -0.025em; font-weight: 500;
  text-wrap: pretty;
}
.quote-main figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quote-main figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .18); }
.quote-main figcaption b { display: block; font-size: 16px; font-weight: 600; }
.quote-main figcaption small { display: block; font-size: 14px; color: var(--fog-400); }
.quote-logo { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--fog-400); font-size: 18px; font-weight: 500; letter-spacing: -0.04em; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.stat dd {
  font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.6rem);
  font-weight: 600; line-height: 1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat:first-child dd {
  background: linear-gradient(100deg, var(--violet-600), var(--violet-400) 60%, var(--mint-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat dt { font-size: 14.5px; color: var(--text-2); line-height: 1.45; }

.quotes-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.quote-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.quote-card blockquote p { font-size: 17px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card b { display: block; font-size: 15px; }
.quote-card small { display: block; font-size: 13.5px; color: var(--text-3); }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); border-top: 1px solid var(--line); }
.pricing .section-head { margin-bottom: 36px; }
.billing {
  display: flex; width: max-content; max-width: 100%;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 4px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.billing-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-3);
  font-size: 14.5px; font-weight: 550;
  transition: background-color .25s var(--ease), color .25s, box-shadow .25s;
}
.billing-opt:hover { color: var(--text); }
.billing-opt[aria-pressed="true"] { background: var(--white); color: var(--text); box-shadow: 0 1px 2px rgba(14, 15, 24, .08), 0 4px 12px -4px rgba(14, 15, 24, .15); }
.billing-save {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(14, 159, 126, .12); color: #0a6e57;
}

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan h3 { font-size: 1.2rem; }
.plan-desc { margin-top: 6px; font-size: 14.5px; color: var(--text-3); min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-top: 24px; font-variant-numeric: tabular-nums; }
.plan-price .cur { align-self: flex-start; margin-top: 8px; font-size: 22px; font-weight: 500; color: var(--text-3); }
.plan-price .amt { font-size: clamp(3rem, 2.4rem + 1.6vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; display: inline-block; }
.plan-price .per { font-size: 15px; color: var(--text-3); margin-left: 4px; }
.plan-price .was { margin-left: 10px; font-size: 15px; color: var(--text-3); text-decoration-thickness: 1.5px; text-decoration-color: rgba(217, 65, 47, .7); }
.plans[data-mode="monthly"] .was { display: none; }
.plan-featured .plan-price .was { color: var(--fog-500); }
.amt.is-swapping { animation: swap .45s var(--ease); }
.plan-note { margin: 10px 0 24px; font-size: 13.5px; color: var(--text-3); min-height: 1.5em; }
.plan-feats { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.plan-feats li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23F2EFFF'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='%235A40F0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-featured {
  background: var(--ink-900); color: var(--fog-200);
  border-color: rgba(151, 131, 255, .5);
  box-shadow: 0 30px 70px -30px rgba(110, 86, 255, .7), 0 0 0 1px rgba(110, 86, 255, .3);
  overflow: hidden; isolation: isolate;
}
.plan-featured::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -40% auto auto; width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(110, 86, 255, .35), transparent);
}
.plan-featured h3, .plan-featured .amt { color: var(--white); }
.plan-featured .plan-desc, .plan-featured .plan-note, .plan-featured .per, .plan-featured .cur { color: var(--fog-400); }
.plan-featured .plan-note { color: var(--mint-300); }
.plan-featured .plan-feats { border-top-color: rgba(255, 255, 255, .1); }
.plan-featured .plan-feats li { color: var(--fog-200); }
.plan-featured .plan-feats li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2334E0B4' fill-opacity='.16'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='%2334E0B4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-badge {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(120deg, var(--violet-500), #8f6bff); color: var(--white);
}
.enterprise {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 16px; padding: 26px clamp(22px, 3vw, 34px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
}
.enterprise h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.enterprise p { margin-top: 4px; font-size: 14.5px; color: var(--text-3); }
.enterprise .btn { flex: none; }

/* ---------- Integrations ---------- */
.integrations { background: var(--paper); border-top: 1px solid var(--line); }
.integrations-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.integrations .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.int {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.int:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.int-ico {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ic); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -6px var(--ic);
}
.int-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.int b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.int small { font-size: 13px; color: var(--text-3); line-height: 1.35; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-side .lead { margin-top: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  margin-top: 32px; padding: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
}
.contact-card p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.contact-card b { color: var(--text); }
.contact-avatars { display: flex; flex: none; }
.contact-avatars img, .contact-avatars span {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper); margin-left: -10px;
}
.contact-avatars img:first-child { margin-left: 0; }
.contact-avatars span { display: grid; place-items: center; background: var(--violet-50); color: var(--violet-600); font-family: var(--font-mono); font-size: 12px; }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; letter-spacing: normal; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 24px 0;
  background: none; border: 0; text-align: left;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); font-weight: 550; letter-spacing: -0.015em; line-height: 1.4;
  color: var(--text);
  text-wrap: pretty;
  transition: color .2s;
}
.acc-btn:hover { color: var(--violet-600); }
.acc-icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--white);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -0.9px 0 0 -6px;
  background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s;
}
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--violet-500); border-color: var(--violet-500); color: var(--white); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease), visibility 0s; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner p { padding: 0 56px 26px 0; color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 64ch; }
.acc-inner code { font-size: 13.5px; padding: 1px 6px; border-radius: 5px; background: var(--paper-2); }
.js .acc-item:not(.is-open) .acc-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s linear .4s; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-900); color: var(--fog-200);
  padding-block: clamp(96px, 12vw, 160px);
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg .hero-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 70%);
}
.cta-glow {
  position: absolute; left: 50%; top: 50%; width: min(1000px, 140vw); height: 600px; transform: translate(-50%, -40%);
  background:
    radial-gradient(closest-side at 40% 50%, rgba(110, 86, 255, .45), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(52, 224, 180, .18), transparent);
  filter: blur(30px);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-mark { margin-bottom: 28px; filter: drop-shadow(0 12px 30px rgba(110, 86, 255, .6)); }
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 1.1rem + 4.2vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; max-width: 900px; }
.cta .lead { margin-top: 22px; color: var(--fog-300); }
.signup { width: 100%; max-width: 540px; margin-top: 40px; text-align: left; }
.signup-field {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  color: var(--fog-400);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.signup-field:focus-within { border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(110, 86, 255, .28); background: rgba(255, 255, 255, .08); }
.signup-field.is-invalid { border-color: var(--coral-400); box-shadow: 0 0 0 4px rgba(255, 107, 91, .2); }
.signup-field svg { flex: none; }
.signup-field input {
  flex: 1; min-width: 0; height: 44px;
  background: transparent; border: 0; outline: none;
  color: var(--white); font-size: 16px;
}
.signup-field input::placeholder { color: var(--fog-500); }
.signup-error {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-size: 14px; color: var(--coral-300);
}
.signup-error::before {
  content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--coral-400); color: var(--ink-900); font-size: 12px; font-weight: 700;
}
.signup-hint { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--fog-400); }
.signup-success {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px; border-radius: 16px;
  background: rgba(52, 224, 180, .08); border: 1px solid rgba(52, 224, 180, .35);
  animation: panelIn .5s var(--ease) both;
}
.signup-success:focus { outline: none; }
.signup-success:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 3px; }
.success-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-400); color: var(--ink-900); }
.success-title { font-size: 18px; font-weight: 600; color: var(--white); letter-spacing: -0.015em; }
.success-text { margin-top: 4px; font-size: 14.5px; color: var(--fog-300); overflow-wrap: anywhere; }
.success-text b { color: var(--white); font-weight: 550; }
.success-demo { display: block; margin-top: 4px; color: var(--fog-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--fog-400); padding: clamp(64px, 8vw, 96px) 0 96px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 96px); }
.footer-brand > p { margin-top: 16px; font-size: 15px; max-width: 320px; color: var(--fog-400); }
.footer-brand .status { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); font-family: var(--font-mono); font-size: 12px; color: var(--fog-300); }
.footer-brand address { margin-top: 20px; font-size: 13.5px; line-height: 1.8; color: var(--fog-500); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-h { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fog-500); margin-bottom: 18px; line-height: 1.4; }
.footer-cols ul { display: grid; gap: 12px; }
.footer-cols a { font-size: 14.5px; color: var(--fog-300); transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-cols a:hover { color: var(--white); }
.tag-hiring { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(52, 224, 180, .14); color: var(--mint-400); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.5px; color: var(--fog-500);
}
.credit a { color: var(--fog-100); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.credit a:hover { text-decoration-color: currentColor; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(19, 22, 35, .9); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s, background-color .2s;
  --focus: var(--violet-400);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--violet-500); }
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px;
  background: var(--ink-800); color: var(--fog-100);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  font-size: 14px;
  opacity: 0; pointer-events: none; transform: translate(-50%, -8px);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal & motion ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-mock { transform: perspective(2000px) rotateX(14deg) translateY(40px) scale(.97); transform-origin: 50% 0; transition-duration: 1.3s; }
.js .reveal-mock.is-in { transform: perspective(2000px) rotateX(0) translateY(0) scale(1); }
.js .reveal-mock:not(.is-in) .chart-svg { clip-path: inset(-10px 100% -10px 0); }
.chart-dot, .chart-tip, .chart-marker { transition: opacity .5s ease 2.4s, transform .5s var(--ease) 2.4s; }
.js .reveal-mock:not(.is-in) .chart-dot,
.js .reveal-mock:not(.is-in) .chart-tip,
.js .reveal-mock:not(.is-in) .chart-marker { opacity: 0; }
.js .reveal-mock:not(.is-in) .mf-bar i { transform: scaleX(0); }
.mfunnel li:nth-child(1) .mf-bar i { transition-delay: .7s; }
.mfunnel li:nth-child(2) .mf-bar i { transition-delay: .8s; }
.mfunnel li:nth-child(3) .mf-bar i { transition-delay: .9s; }
.mfunnel li:nth-child(4) .mf-bar i { transition-delay: 1s; }
.mfunnel li:nth-child(5) .mf-bar i { transition-delay: 1.1s; }

@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes stream { to { transform: translateY(-50%); } }
@keyframes sync { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes swap { 0% { opacity: 0; transform: translateY(-14px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-mock { opacity: 1; transform: none; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); gap: 28px 48px; animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .stream-list { animation: none; }
  .live-dot::after, .chart-dot::after { display: none; }
  .float-card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .float-alert { left: 8px; bottom: -26px; }
  .float-live { right: calc(var(--gutter) + 110px); }
}
@media (max-width: 1100px) {
  .mock-body { grid-template-columns: 184px minmax(0, 1fr); }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: grid; }

  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-side { display: none; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-auto { grid-column: 1 / -1; }
  .b-funnel, .b-retention, .b-sessions, .b-ai, .b-privacy, .b-sync { grid-column: span 1; }
  .b-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .section-head-split { grid-template-columns: minmax(0, 1fr); }
  .section-head-split h2 + .lead { margin-top: 20px; }
  .quote-block { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .plan-desc { min-height: 0; }
  .enterprise { max-width: 560px; margin-inline: auto; flex-direction: column; align-items: flex-start; }
  .integrations-inner, .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .integrations .section-head, .faq-side { position: static; }
  .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) {
  .mobile-menu { display: none; }
  .js .tabpanel { min-height: 430px; }
}
@media (max-width: 760px) {
  .float-card { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-grid { grid-template-columns: minmax(0, 1fr); }
  .mock-chip-hide { display: none; }
  .b-auto { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .steps::before { display: none; }
  .quotes-row { grid-template-columns: minmax(0, 1fr); }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 600px) {
  .tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tab { padding: 10px 8px; font-size: 14.5px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-funnel, .b-retention, .b-sessions, .b-ai, .b-privacy, .b-sync { grid-column: auto; }
  .stats { gap: 12px; }
  .coh-row { grid-template-columns: 46px repeat(6, minmax(0, 1fr)); gap: 3px; }
  .coh-n { display: none; }
  .cohort { font-size: 10.5px; }
  .coh-cell { padding: 8px 0; border-radius: 5px; }
  .cf-track { height: 170px; }
  .cf-note { font-size: 10.5px; padding: 4px 7px; left: 0; transform: none; }
  .cf-note::after { left: 18px; }
  .tour-panel { border-radius: 22px; }
}
@media (max-width: 560px) {
  .funnel-card { display: none; }
  .mock-chrome { gap: 10px; padding: 0 10px; }
  .mock-avatars { display: none; }
  .mock-main { padding: 14px; gap: 10px; }
  .mock-title { font-size: 17px; }
  .legend span:last-child { display: none; }
  .chart-tip { display: none; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .announce-tag { display: none; }
  .announce { padding-left: 12px; }
  .int { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 16px 14px; }
  .int-ico { grid-row: auto; margin-bottom: 14px; width: 38px; height: 38px; }
  .int b { font-size: 14.5px; }
  .signup-field { flex-wrap: wrap; padding: 6px; }
  .signup-field svg { margin-left: 10px; }
  .signup-field .btn { width: 100%; }
  .acc-inner p { padding-right: 0; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-avatars img:first-child { margin-left: 0; }
  .quote-logo { margin-left: 0; width: 100%; }
}
