/* ============================================================
   KOINAI Marketing Site — uses app palette
   Background crema (#FAF7F2), Primary orange (#E8702A)
   ============================================================ */

:root {
  --background:        hsl(37 47% 96%);      /* #FAF7F2 */
  --foreground:        hsl(33 53% 7%);       /* #1A1208 */
  --card:              hsl(37 50% 98%);      /* #FDFBF7 */
  --primary:           hsl(22 80% 54%);      /* #E8702A */
  --primary-2:         hsl(22 82% 63%);      /* #F09050 */
  --primary-fg:        #ffffff;
  --secondary:         hsl(37 38% 91%);      /* #F0EBE0 */
  --muted:             hsl(37 38% 91%);
  --muted-fg:          hsl(30 15% 42%);      /* #7A6B5C */
  --accent:            hsl(24 100% 95%);     /* #FFF0E6 */
  --accent-fg:         hsl(20 100% 24%);
  --border:            hsl(33 25% 82%);      /* #D8CEBE */
  --border-soft:       hsl(33 25% 88%);
  --ring:              hsl(22 80% 54%);
  --ok:                hsl(142 71% 40%);
  --warn:              hsl(38 92% 50%);
  --danger:            hsl(0 72% 51%);

  --radius:            0.625rem;
  --radius-lg:         1rem;
  --shadow-sm:         0 1px 2px rgba(26, 18, 8, 0.04);
  --shadow:            0 4px 16px rgba(26, 18, 8, 0.06);
  --shadow-lg:         0 24px 56px -16px rgba(232, 112, 42, 0.25), 0 8px 24px rgba(26, 18, 8, 0.08);

  --font-sans:         'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:         'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 6px 18px rgba(232, 112, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover { background: var(--primary-2); box-shadow: 0 10px 26px rgba(232, 112, 42, 0.32); }

.btn--ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--card); border-color: var(--foreground); }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
}
.wordmark__alt { color: var(--primary); }

/* Inline brand mention — use inside body copy: KOI<span class="brand">NAI</span>.
   Inherits font-size/weight so it doesn't disturb the surrounding text. */
.brand { color: var(--primary); font-weight: inherit; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--muted-fg);
  font-weight: 500;
  font-size: 14.5px;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--foreground); }

/* ── Dropdown menu (Features / Agents) ─────────────────────── */
.menu { position: relative; }
.menu__btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none;
  font: inherit; cursor: pointer;
  color: var(--muted-fg);
  font-weight: 500; font-size: 14.5px;
  padding: 0;
  transition: color .15s ease;
}
.menu__btn:hover, .menu.is-open .menu__btn { color: var(--foreground); }
.menu__caret {
  width: 12px; height: 12px;
  transition: transform .2s ease;
}
.menu.is-open .menu__caret { transform: rotate(180deg); }
.menu__panel {
  position: absolute;
  top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.18);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.menu.is-open .menu__panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu__panel::before {
  content: '';
  position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--card);
  border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
}
.menu__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color .15s ease;
}
.menu__item:hover { background: var(--accent); }
.menu__item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.menu__item:hover .menu__item-icon { background: rgba(232, 112, 42, 0.22); }
.menu__item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu__item-title { font-size: 13.5px; font-weight: 700; color: var(--foreground); }
.menu__item-sub { font-size: 12px; color: var(--muted-fg); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--card);
  margin-right: 4px;
}
.lang__btn {
  border: none;
  background: transparent;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.lang__btn.is-active { background: var(--primary); color: var(--primary-fg); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 12% 0%, rgba(232, 112, 42, 0.12), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(240, 144, 80, 0.10), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__title {
  margin: 18px 0 18px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hero__title .hl {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 18px;
  color: var(--muted-fg);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero__ctas { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hero__meta { font-size: 13px; color: var(--muted-fg); margin: 0; }

/* hero mockup */
.hero__visual { position: relative; }
.hero__glow {
  position: absolute;
  inset: -10% -10% -10% -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 112, 42, 0.18), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}
.mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  text-align: left;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.mock__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-fg);
}
.mock__body {
  display: grid;
  grid-template-columns: 156px 1fr;
  min-height: 420px;
}

/* ── sidebar ───────────────────────────────────────────────── */
.mock__side {
  background: var(--background);
  border-right: 1px solid var(--border-soft);
  padding: 14px 10px;
  font-size: 12px;
}
.mock__brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 16px;
}
.mock__brand-mark {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.mock__brand-mark svg { width: 18px; height: 18px; }
.mock__brand-name { font-weight: 800; font-size: 13px; letter-spacing: 0.01em; line-height: 1; }
.mock__brand-plan {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--muted-fg);
  margin-top: 4px;
}
.mock__nav { display: flex; flex-direction: column; gap: 1px; }
.mock__navitem {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px;
  color: var(--muted-fg);
  font-weight: 500;
  border: 1px solid transparent;
}
.mock__navitem svg { width: 14px; height: 14px; flex: 0 0 14px; }
.mock__navitem span:not(.mock__count):not(.mock__plan-pill) { flex: 1; }
.mock__navitem.is-active {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border-color: rgba(232, 112, 42, 0.35);
}
.mock__navitem.is-locked { opacity: 0.55; }
.mock__navlabel {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--muted-fg);
  padding: 14px 8px 6px;
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
}
.mock__plan-pill {
  background: rgba(232, 112, 42, 0.14);
  color: var(--primary);
  font-size: 8.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  letter-spacing: 0.04em; flex: 0 0 auto;
}
.mock__count {
  background: var(--ok);
  color: #fff;
  font-size: 9.5px; font-weight: 800;
  padding: 1px 6px; border-radius: 999px;
  min-width: 18px; text-align: center;
  flex: 0 0 auto;
}

/* ── content area (topbar + main + rail) ───────────────────── */
.mock__content { display: flex; flex-direction: column; min-width: 0; }
.mock__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.mock__status {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: var(--primary);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.mock__status svg { width: 11px; height: 11px; }
.mock__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.mock__search {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted-fg);
  font-size: 11.5px;
  max-width: 220px;
  justify-self: center;
  width: 100%;
}
.mock__search svg { width: 12px; height: 12px; }
.mock__search span { flex: 1; }
.mock__kbd {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 9.5px; color: var(--muted-fg);
}
.mock__top-end { display: inline-flex; align-items: center; gap: 10px; }
.mock__bell { width: 14px; height: 14px; color: var(--muted-fg); }
.mock__user {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700;
}

/* ── main + right rail ─────────────────────────────────────── */
.mock__layout {
  display: grid;
  grid-template-columns: 1fr 130px;
  min-height: 0; flex: 1;
}
.mock__main {
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.mock__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.kpi {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 10px;
}
.kpi__value { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.kpi__label {
  font-size: 10px; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin: 6px 0 4px; font-weight: 600;
}
.kpi__trend { font-size: 10.5px; font-weight: 600; }
.kpi__trend--up { color: var(--ok); }
.kpi__trend--down { color: var(--muted-fg); }

.mock__chart {
  display: flex; align-items: flex-end; gap: 5px;
  height: 72px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 10px;
}
.bar {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent), var(--primary-2));
  opacity: 0.85;
}
.bar.is-hot {
  background: linear-gradient(to top, var(--primary-2), var(--primary));
  opacity: 1;
}

.mock__todo {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.mock__todo-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-fg);
}
.mock__todo-body { display: flex; flex-direction: column; }
.mock__todo-item {
  display: grid; grid-template-columns: 24px 1fr auto;
  align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.mock__todo-item:last-child { border-bottom: none; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.mock__title { font-size: 12px; font-weight: 600; }
.mock__sub { font-size: 10.5px; color: var(--muted-fg); }
.pill {
  font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pill--ai { background: var(--accent); color: var(--primary); }
.pill--warn { background: rgba(244, 162, 47, 0.16); color: #8a4d00; }
.pill--ok { background: rgba(34, 165, 90, 0.14); color: #126b3a; }

/* ── right rail ────────────────────────────────────────────── */
.mock__rail {
  border-left: 1px solid var(--border-soft);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--background);
}
.mock__rail-section { display: flex; flex-direction: column; gap: 8px; }
.mock__rail-title {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-fg);
}
.mock__rail-agent {
  display: grid; grid-template-columns: 22px 1fr;
  align-items: center; gap: 8px;
}
.mock__rail-badge {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
}
.mock__rail-name { font-size: 11.5px; font-weight: 700; }
.mock__rail-sub { font-size: 10px; color: var(--muted-fg); }
.mock__rail-upgrade {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.mock__rail-lock { width: 18px; height: 18px; color: var(--muted-fg); }
.mock__rail-upgrade p {
  font-size: 10.5px; color: var(--muted-fg);
  margin: 0; line-height: 1.35;
}
.mock__rail-upgrade strong { color: var(--foreground); }
.mock__rail-link {
  font-size: 10.5px; font-weight: 700;
  color: var(--primary);
}

/* ── TRUST BAR ─────────────────────────────────────────────── */
.trust {
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--card);
}
.trust__label {
  text-align: center; color: var(--muted-fg);
  font-size: 13px; margin: 0 0 18px;
}
.trust__logos {
  display: flex; align-items: center; justify-content: space-around;
  gap: 24px; flex-wrap: wrap;
}
.trust__logo {
  font-weight: 700; color: var(--muted-fg); opacity: 0.7;
  font-size: 17px; letter-spacing: -0.01em;
}

/* ── SECTION ───────────────────────────────────────────────── */
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 14px;
}
.section__sub {
  font-size: 17px;
  color: var(--muted-fg);
  margin: 0;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features { padding: 96px 0; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card__title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card__body { color: var(--muted-fg); margin: 0; font-size: 14.5px; }

/* ── FEATURES TABS ─────────────────────────────────────────── */
.featurebar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}
.featurebar::-webkit-scrollbar { display: none; }
.featurebar__tab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.featurebar__tab:hover:not(.is-active) { color: var(--foreground); }
.featurebar__tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 112, 42, 0.28);
}
.featurebar__icon { font-size: 15px; line-height: 1; }

.featurepanel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.featurepane { text-align: center; }
.featurepane[hidden] { display: none; }
.featurepane.is-active { animation: featurepane-in .35s ease both; }
.featurepane--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  text-align: left;
}
.featurepane--split .featurepane__icon { margin-bottom: 16px; }
.featurepane--split .featurepane__body { margin: 0; max-width: none; }

/* ── Proactive visual ──────────────────────────────────────── */
.prox {
  background: #FAF6F0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  font-size: 11px;
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.12);
}
.prox__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}
.prox__title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 800; color: var(--foreground);
}
.prox__title-icon { color: var(--primary); font-size: 14px; }
.prox__sub { font-size: 10.5px; color: var(--muted-fg); margin: 4px 0 0; line-height: 1.4; }

.prox__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.prox__kpi {
  border-radius: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
}
.prox__kpi-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-fg);
  margin-bottom: 4px;
}
.prox__kpi-label span { font-size: 11px; }
.prox__kpi-value { font-size: 20px; font-weight: 800; line-height: 1; }
.prox__kpi-sub { font-size: 10px; color: var(--muted-fg); margin-top: 4px; }

.prox__kpi--churn {
  background: rgba(220, 56, 56, 0.08);
  border-color: rgba(220, 56, 56, 0.18);
}
.prox__kpi--churn .prox__kpi-label,
.prox__kpi--churn .prox__kpi-value { color: #c43a3a; }

.prox__kpi--upsell {
  background: rgba(34, 165, 90, 0.10);
  border-color: rgba(34, 165, 90, 0.22);
}
.prox__kpi--upsell .prox__kpi-label,
.prox__kpi--upsell .prox__kpi-value { color: #126b3a; }

.prox__kpi--dormant {
  background: rgba(76, 110, 200, 0.10);
  border-color: rgba(76, 110, 200, 0.22);
}
.prox__kpi--dormant .prox__kpi-label,
.prox__kpi--dormant .prox__kpi-value { color: #3a5bb8; }

.prox__kpi--vip {
  background: rgba(244, 162, 47, 0.14);
  border-color: rgba(244, 162, 47, 0.30);
}
.prox__kpi--vip .prox__kpi-label,
.prox__kpi--vip .prox__kpi-value { color: #a35c00; }

.prox__panel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.prox__panel:last-child { margin-bottom: 0; }
.prox__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px; font-weight: 700;
}
.prox__panel-icon { font-size: 12px; }
.prox__panel-icon--churn { color: #c43a3a; }
.prox__panel-icon--upsell { color: #126b3a; }
.prox__panel-link { color: var(--primary); font-weight: 600; font-size: 10.5px; }
.prox__panel-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 11px; color: var(--muted-fg);
}
.prox__panel-empty span { color: #22a55a; }

.prox__item {
  display: grid; grid-template-columns: 24px 1fr auto;
  align-items: center; gap: 10px;
  padding: 9px 12px;
}
.prox__avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.prox__avatar--churn { background: #c43a3a; }
.prox__avatar--upsell { background: #22a55a; }
.prox__item-title { font-size: 12px; font-weight: 700; line-height: 1.2; }
.prox__item-sub { font-size: 10.5px; color: var(--muted-fg); margin-top: 2px; }
.prox__score {
  font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}
.prox__score--high { background: rgba(220, 56, 56, 0.12); color: #c43a3a; }
.prox__score--ok { background: rgba(34, 165, 90, 0.14); color: #126b3a; }

/* Larger variant — used on the dedicated product page */
.prox--lg { font-size: 13px; padding: 22px; border-radius: 16px; }
.prox--lg .prox__title { font-size: 18px; }
.prox--lg .prox__sub { font-size: 12.5px; }
.prox--lg .prox__kpi { padding: 12px 14px; }
.prox--lg .prox__kpi-label { font-size: 10.5px; }
.prox--lg .prox__kpi-value { font-size: 26px; }
.prox--lg .prox__kpi-sub { font-size: 11.5px; }
.prox--lg .prox__panel-head { padding: 11px 14px; font-size: 12.5px; }
.prox--lg .prox__item { padding: 11px 14px; gap: 12px; grid-template-columns: 28px 1fr auto; }
.prox--lg .prox__avatar { width: 28px; height: 28px; font-size: 12px; }
.prox--lg .prox__item-title { font-size: 13px; }
.prox--lg .prox__item-sub { font-size: 11.5px; }
.prox--lg .prox__score { font-size: 12px; padding: 4px 10px; }

.spotlight__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Knowledge Base visual ─────────────────────────────────── */
.kb {
  background: #FAF6F0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  font-size: 11px;
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.12);
}
.kb__head { margin-bottom: 12px; }
.kb__title { font-size: 16px; font-weight: 800; color: var(--foreground); }
.kb__sub { font-size: 10.5px; color: var(--muted-fg); margin: 4px 0 0; }

.kb__search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--muted-fg);
  font-size: 11px;
  margin-bottom: 14px;
}
.kb__search svg { width: 13px; height: 13px; flex-shrink: 0; }

.kb__row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.kb__row-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-fg);
}
.kb__row-icon svg { width: 18px; height: 18px; }
.kb__row-title { font-size: 12.5px; font-weight: 700; }
.kb__row-sub { font-size: 10.5px; color: var(--muted-fg); margin-top: 2px; }
.kb__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  color: var(--foreground);
}
.kb__btn svg { width: 11px; height: 11px; }

.kb__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kb__tile {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}
.kb__tile-icon {
  width: 22px; height: 22px;
  color: var(--foreground);
  margin: 0 auto 8px;
  display: block;
}
.kb__tile-title { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.kb__tile-sub { font-size: 10px; color: var(--muted-fg); line-height: 1.35; }

/* ── Integration library visual ────────────────────────────── */
.intg {
  background: #FAF6F0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.12);
}
.intg__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.intg__tile {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.intg__tile:hover { border-color: var(--border); transform: translateY(-1px); }
.intg__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.intg__mark--drive { background: #fff; border: 1px solid var(--border-soft); padding: 4px; }
.intg__mark--drive svg { width: 100%; height: 100%; }
.intg__name { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.intg__cat {
  font-size: 10px; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}
.intg__more {
  margin-top: 12px;
  text-align: center;
  font-size: 11px; color: var(--muted-fg);
  font-style: italic;
}
.featurepane__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.featurepane__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
}
.featurepane__body {
  font-size: 16px;
  color: var(--muted-fg);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.6;
}
@keyframes featurepane-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── AGENTS INTRO (homepage teaser) ────────────────────────── */
.agents-intro { padding: 96px 0; }
.agent-mini { display: flex; flex-direction: column; }
.agent-mini__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.agent-mini__role {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.agent-mini__more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px; font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  align-self: flex-start;
}
.agent-mini__more:hover { text-decoration: underline; }

/* ── SPOTLIGHT ─────────────────────────────────────────────── */
.spotlight {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bullets {
  list-style: none; padding: 0; margin: 28px 0 0;
}
.bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--foreground);
  font-weight: 500;
  font-size: 15px;
}
.bullets li:last-child { border-bottom: none; }
.bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px;
  background: var(--primary); color: var(--primary-fg);
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--background);
}
.panel__title { font-weight: 700; font-size: 14px; }
.panel__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--ok);
}
.panel__pill::before {
  content: ''; width: 6px; height: 6px; background: var(--ok); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 165, 90, 0.16);
}
.panel__row {
  display: grid; grid-template-columns: 12px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.panel__row:last-child { border-bottom: none; }
.dotcolor { width: 10px; height: 10px; border-radius: 50%; }
.dotcolor--red { background: var(--danger); }
.dotcolor--amber { background: var(--warn); }
.dotcolor--green { background: var(--ok); }
.muted { color: var(--muted-fg); font-size: 12px; margin-top: 2px; }
.score {
  font-weight: 800; font-size: 14px;
  padding: 4px 10px; border-radius: 999px;
}
.score--high { background: rgba(220, 56, 56, 0.12); color: var(--danger); }
.score--mid  { background: rgba(244, 162, 47, 0.16); color: #8a4d00; }
.score--ok   { background: rgba(34, 165, 90, 0.14); color: #126b3a; }

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how { padding: 96px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.step__title { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.step__body  { color: var(--muted-fg); font-size: 14.5px; margin: 0; }

/* ── METRICS ───────────────────────────────────────────────── */
.metrics {
  padding: 64px 0;
  background: var(--foreground);
  color: var(--background);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric__value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric__label {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ── PRICING ───────────────────────────────────────────────── */
.pricing { padding: 96px 0; }
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.plan--featured {
  border-color: var(--primary);
  box-shadow: 0 12px 32px -8px rgba(232, 112, 42, 0.22);
  transform: translateY(-8px);
}
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan__name { font-size: 18px; font-weight: 700; margin: 0; }
.plan__price {
  font-size: 18px; font-weight: 700; color: var(--muted-fg);
  margin: 14px 0 4px;
}
.plan__price span {
  font-size: 44px; color: var(--foreground); letter-spacing: -0.02em;
}
.plan__price small { font-size: 14px; color: var(--muted-fg); font-weight: 500; margin-left: 4px; }
.plan__sub { color: var(--muted-fg); font-size: 14px; margin: 0 0 20px; }
.plan__list {
  list-style: none; padding: 0; margin: 0 0 28px;
  flex: 1;
}
.plan__list li {
  padding: 8px 0 8px 26px; position: relative; font-size: 14px;
}
.plan__list li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--primary); font-weight: 800;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta { padding: 96px 0; }
.cta__inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(232, 112, 42, 0.10) 0%, rgba(240, 144, 80, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
}
.cta__title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px;
}
.cta__sub { color: var(--muted-fg); font-size: 17px; margin: 0 0 28px; }
.cta__actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── FOOTER ───────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 28px;
  background: var(--card);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.foot__tag { color: var(--muted-fg); margin-top: 14px; font-size: 14px; max-width: 280px; }
.foot__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; color: var(--muted-fg); }
.foot__col a {
  display: block; padding: 6px 0; color: var(--foreground);
  font-size: 14px;
}
.foot__col a:hover { color: var(--primary); }
.foot__bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted-fg);
  border-top: 1px solid var(--border-soft); padding-top: 20px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: 2; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .spotlight__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { height: 64px; }
  .hero { padding: 56px 0 40px; }
  .features, .spotlight, .how, .pricing, .cta { padding: 64px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .foot__bottom { flex-direction: column; gap: 6px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__layout { grid-template-columns: 1fr; }
  .mock__rail { display: none; }
  .mock__search { max-width: 100%; }
  .featurebar { border-radius: 14px; padding: 4px; }
  .featurebar__tab { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; }
  .featurepanel { padding: 40px 24px; }
  .featurepane__title { font-size: 22px; }
  .featurepane--split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .featurepane--split .featurepane__body { max-width: 480px; margin: 0 auto; }
  .cta__inner { padding: 40px 20px; }
  .nav__actions .btn--ghost { display: none; }
}

/* ── ABOUT / TEAM ──────────────────────────────────────────── */
.about { padding: 96px 0; }
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
}
.member {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.member:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.member__avatar,
.member__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--avatar-from, var(--primary-2)) 0%, var(--avatar-to, var(--primary)) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.02em;
  border: 4px solid var(--card);
  box-shadow: 0 8px 22px -8px rgba(232, 112, 42, 0.35);
}
.member__avatar::before { content: attr(data-initials); }
.member__photo { object-fit: cover; }
.member__name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.member__role {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.member__bio { color: var(--muted-fg); font-size: 14.5px; margin: 0 0 16px; }
.member__link {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.member__link:hover { color: var(--primary); border-color: var(--primary); }
.member__actions {
  display: inline-flex; align-items: center; gap: 14px;
  justify-content: center;
}
.member__more {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--primary);
}
.member__more:hover { text-decoration: underline; }

/* ── Feature / Agent detail pages ──────────────────────────── */
.detail { padding: 0 0 64px; }
.detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--muted-fg);
  margin-bottom: 18px;
}
.detail__back:hover { color: var(--primary); }
.detail__hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 56px;
}
.detail__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.detail__title { font-size: 40px; font-weight: 800; margin: 0 0 14px; line-height: 1.1; }
.detail__lead {
  font-size: 18px; color: var(--muted-fg);
  margin: 0; max-width: 680px; line-height: 1.55;
}
.detail__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.detail__chip {
  background: var(--accent); color: var(--primary);
  font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.detail__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.highlight {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 22px;
}
.highlight__num {
  font-size: 13px; font-weight: 800; color: var(--primary);
  margin-bottom: 6px; letter-spacing: 0.04em;
}
.highlight__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.highlight__body { font-size: 14px; color: var(--muted-fg); margin: 0; line-height: 1.5; }

@media (max-width: 1024px) {
  .detail__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .detail__title { font-size: 30px; }
  .highlights { grid-template-columns: 1fr; }
}

/* ── RESUME PAGE ───────────────────────────────────────────── */
.resume { padding: 64px 0 96px; }
.resume__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--muted-fg);
  margin-bottom: 32px;
}
.resume__back:hover { color: var(--primary); }
.resume__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 40px;
}
.resume__avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--avatar-from, var(--primary-2)) 0%, var(--avatar-to, var(--primary)) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.02em;
  border: 4px solid var(--card);
  box-shadow: 0 10px 28px -10px rgba(232, 112, 42, 0.4);
}
.resume__name { font-size: 32px; font-weight: 800; margin: 0 0 6px; }
.resume__role {
  color: var(--primary); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.resume__contact {
  display: inline-flex; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--muted-fg);
}
.resume__contact a { color: var(--muted-fg); }
.resume__contact a:hover { color: var(--primary); }
.resume__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}
.resume__section { margin-bottom: 36px; }
.resume__section:last-child { margin-bottom: 0; }
.resume__sec-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.resume__entry { margin-bottom: 22px; }
.resume__entry:last-child { margin-bottom: 0; }
.resume__entry-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.resume__entry-title { font-size: 15px; font-weight: 700; margin: 0; }
.resume__entry-meta { font-size: 12.5px; color: var(--muted-fg); font-weight: 500; }
.resume__entry-sub {
  font-size: 13.5px; color: var(--primary);
  font-weight: 600; margin: 0 0 6px;
}
.resume__entry-body {
  font-size: 14px; color: var(--muted-fg); margin: 0;
  line-height: 1.55;
}
.resume__skills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.resume__skill {
  font-size: 12.5px; font-weight: 600;
  background: var(--accent); color: var(--primary);
  padding: 5px 10px; border-radius: 999px;
}
.resume__lead {
  font-size: 16px; color: var(--muted-fg);
  line-height: 1.65; margin: 0;
}
@media (max-width: 720px) {
  .resume__head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .resume__contact { justify-content: center; }
  .resume__grid { grid-template-columns: 1fr; gap: 32px; }
  .resume__avatar { width: 96px; height: 96px; font-size: 32px; }
  .resume__name { font-size: 26px; }
}

/* ── SUB-PAGE HERO (agents / demo) ─────────────────────────── */
.subhero {
  position: relative;
  padding: 80px 0 56px;
  text-align: center;
}
.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(232, 112, 42, 0.10), transparent 70%);
  pointer-events: none;
}
.subhero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.subhero h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 18px 0 16px;
}
.subhero p {
  font-size: 18px;
  color: var(--muted-fg);
  margin: 0;
}

/* ── AGENTS PAGE ───────────────────────────────────────────── */
.agents { padding: 64px 0 96px; }
.agents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.agents__grid--three { grid-template-columns: repeat(3, 1fr); }
.agents__grid--three .agentcard { grid-template-columns: 56px 1fr; gap: 18px; padding: 28px; }
.agents__grid--three .agentcard__icon { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; }
.agentcard {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.agentcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.agentcard__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 18px -6px rgba(232, 112, 42, 0.4);
}
.agentcard__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.agentcard__name { font-size: 19px; font-weight: 700; margin: 0; }
.agentcard__tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
}
.agentcard__role { color: var(--primary); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.agentcard__body { color: var(--muted-fg); font-size: 14.5px; margin: 0 0 14px; }
.agentcard__meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  font-size: 11.5px; font-weight: 600;
  background: var(--background);
  border: 1px solid var(--border-soft);
  padding: 4px 10px; border-radius: 999px;
  color: var(--muted-fg);
}

/* ── DEMO PAGE ─────────────────────────────────────────────── */
.demo { padding: 56px 0 96px; }
.demo__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: flex-start;
}
.demo__copy h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 14px;
}
.demo__copy p { color: var(--muted-fg); font-size: 16.5px; margin: 0 0 28px; }

.demo__list { list-style: none; padding: 0; margin: 0 0 32px; }
.demo__list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.demo__list li:last-child { border-bottom: none; }
.demo__list .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.demo__list strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.demo__list span { color: var(--muted-fg); font-size: 13.5px; }

.quote {
  background: var(--accent);
  border-left: 3px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--accent-fg);
  font-size: 15px;
}
.quote cite { display: block; margin-top: 8px; font-style: normal; color: var(--muted-fg); font-size: 12.5px; }

/* booking widget */
.booking {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.booking__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.booking__title { font-size: 17px; font-weight: 700; margin: 0; }
.meet {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted-fg);
  background: var(--background);
  border: 1px solid var(--border-soft);
  padding: 5px 10px; border-radius: 999px;
}
.meet svg { width: 16px; height: 16px; }

.booking__section { margin-bottom: 22px; }
.booking__label {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 10px;
}
/* month calendar */
.cal { width: 100%; }
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cal__title { font-size: 14.5px; font-weight: 700; }
.cal__nav {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--background);
  border: 1px solid var(--border-soft);
  font-size: 18px; line-height: 1;
  cursor: pointer; color: var(--foreground);
  transition: all .15s ease;
}
.cal__nav:hover:not(.is-disabled) { border-color: var(--primary); color: var(--primary); }
.cal__nav.is-disabled { opacity: 0.35; cursor: not-allowed; }

.cal__dows {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 6px;
}
.cal__dow {
  text-align: center;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted-fg); padding: 4px 0;
}
.cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__cell {
  aspect-ratio: 1 / 1;
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: all .15s ease;
}
.cal__cell:hover:not(.is-disabled):not(.cal__cell--blank) {
  border-color: var(--primary); color: var(--primary);
}
.cal__cell.is-selected {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.cal__cell.is-disabled {
  opacity: 0.32; cursor: not-allowed;
  text-decoration: line-through;
  background: transparent;
}
.cal__cell--blank {
  background: transparent; border: 1px solid transparent; cursor: default;
}

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 9px 6px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  transition: all .15s ease;
}
.slot:hover:not(.is-disabled) { border-color: var(--primary); }
.slot.is-selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot.is-disabled {
  opacity: 0.35; cursor: not-allowed;
  text-decoration: line-through;
}

.field {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--foreground);
  margin-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 112, 42, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field { margin-bottom: 10px; }

.booking__hint {
  font-size: 12.5px; color: var(--muted-fg); margin: 14px 0 0; text-align: center;
}
.booking__error {
  font-size: 13px; color: var(--danger); margin: 0 0 12px;
  background: rgba(220, 56, 56, 0.08);
  border: 1px solid rgba(220, 56, 56, 0.25);
  padding: 9px 12px; border-radius: 8px;
  text-align: center;
}
.field.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 56, 56, 0.12);
}

.booking--done {
  text-align: center;
  padding: 56px 32px;
}
.booking--done .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 18px;
}
.booking--done h3 { margin: 0 0 8px; font-size: 22px; }
.booking--done p { color: var(--muted-fg); margin: 0 0 8px; }
.booking__summary {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--accent); color: var(--accent-fg);
  padding: 14px 20px; border-radius: 12px;
  margin-top: 18px; font-size: 14px;
}
.booking__summary strong { font-size: 16px; }

/* ── responsive overrides for new sections ─────────────────── */
@media (max-width: 1024px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .agents__grid { grid-template-columns: 1fr; }
  .demo__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .team { grid-template-columns: 1fr; }
  .agentcard { grid-template-columns: 1fr; gap: 14px; }
  .agentcard__icon { width: 52px; height: 52px; font-size: 24px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .cal__cell { font-size: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .about, .agents, .demo { padding: 64px 0; }
}

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── MEMORY LAYER + INTEGRATIONS sections ──────────────────── */
.memory { padding: 96px 0; }
.integrations {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ── AGENT ROWS (3 stacked agent rows) ─────────────────────── */
.agentrows { display: flex; flex-direction: column; gap: 72px; }
.agentrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.agentrow--rev .agentrow__copy { order: 2; }
.agentrow--rev .agentrow__visual { order: 1; }
.agentrow__eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.agentrow__title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800;
  margin: 0 0 16px;
}
.agentrow__body { color: var(--muted-fg); font-size: 16px; line-height: 1.6; margin: 0; }
.agentrow__copy .bullets { margin-top: 22px; }
.agentrow__copy .agent-mini__more { display: inline-block; margin-top: 22px; }

/* ── Visual: CC inbox draft ────────────────────────────────── */
.vinbox {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; max-width: 460px;
}
.vinbox__head { display: flex; align-items: center; gap: 12px; }
.vinbox__avatar {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.vinbox__from { flex: 1; }
.vinbox__name { font-weight: 700; font-size: 14px; }
.vinbox__chan { font-size: 12px; color: var(--muted-fg); }
.vinbox__msg {
  margin: 14px 0; padding: 12px 14px;
  background: var(--secondary); border-radius: 12px;
  font-size: 14px; color: var(--foreground);
}
.vinbox__reply {
  border: 1px dashed var(--primary); border-radius: 12px;
  padding: 12px 14px; background: var(--accent);
}
.vinbox__reply-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary); margin-bottom: 6px;
}
.vinbox__reply p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--accent-fg); }
.vinbox__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.vinbox__btn {
  background: var(--primary); color: var(--primary-fg);
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 10px;
}
.vinbox__edit { font-size: 13px; font-weight: 600; color: var(--muted-fg); }

/* ── Visual: AM account list ───────────────────────────────── */
.vaccts {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; max-width: 460px;
}
.vaccts__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
  background: var(--background); font-weight: 700; font-size: 13px;
}
.vaccts__count { color: var(--muted-fg); font-weight: 500; }
.vaccts__row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
}
.vaccts__row:last-child { border-bottom: none; }
.vaccts__avatar {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: var(--secondary); color: var(--foreground);
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.vaccts__info { flex: 1; }
.vaccts__name { font-weight: 600; font-size: 14px; }
.vaccts__sub { font-size: 12px; color: var(--muted-fg); }
.flag {
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
}
.flag--risk   { background: rgba(220, 56, 56, 0.12); color: var(--danger); }
.flag--expand { background: rgba(34, 165, 90, 0.14); color: #126b3a; }
.flag--ok     { background: var(--secondary); color: var(--muted-fg); }

/* ── Visual: Dreamer weekly digest ─────────────────────────── */
.vdigest {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px; max-width: 460px;
}
.vdigest__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted-fg);
}
.vdigest__icon { color: var(--primary); font-size: 15px; }
.vdigest__big { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 16px; }
.vdigest__list { list-style: none; padding: 0; margin: 0; }
.vdigest__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.vdigest__score {
  flex: none; width: 34px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.vdigest__score--high { background: rgba(220, 56, 56, 0.12); color: var(--danger); }
.vdigest__score--mid  { background: rgba(244, 162, 47, 0.16); color: #8a4d00; }
.vdigest__cta { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ── INTEGRATIONS grid ─────────────────────────────────────── */
.intcat__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.intcat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
.intcat__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-fg); margin-bottom: 14px;
}
.intcat__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 14px; font-weight: 600;
}
.intcat__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  color: #fff; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.intcat__mark svg { width: 20px; height: 20px; }
.intcat__mark--mail { background: var(--secondary); color: var(--primary); }
.intcat__mark--drive { background: #fff; border: 1px solid var(--border-soft); }

@media (max-width: 1024px) {
  .agentrow { grid-template-columns: 1fr; gap: 32px; }
  .agentrow--rev .agentrow__copy { order: 1; }
  .agentrow--rev .agentrow__visual { order: 2; }
  .agentrow__visual { display: flex; justify-content: center; }
  .intcat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .memory, .integrations { padding: 64px 0; }
  .agentrows { gap: 48px; }
  .intcat__grid { grid-template-columns: 1fr; }
}

/* ── Keyword line (agent rows) ─────────────────────────────── */
.kwline { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.kwline .chip { background: var(--secondary); color: var(--muted-fg); }

/* ── Animated agent visuals (.va) ──────────────────────────── */
.va {
  width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.va__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  background: var(--background);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted-fg);
}
.va__live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: vaPulse 1.6s ease-in-out infinite; }
.va__live--warn { background: var(--warn); }
.va__tabs { margin-left: auto; display: flex; gap: 6px; }
.va__tabs i { font-style: normal; font-size: 10px; padding: 3px 7px; border-radius: 999px; background: var(--secondary); color: var(--muted-fg); }
.va__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.va__in {
  align-self: flex-start; max-width: 82%;
  background: var(--secondary); padding: 10px 13px; border-radius: 12px 12px 12px 4px;
  font-size: 13px; animation: vaIn 6s ease-in-out infinite;
}
.va__reply { border: 1px solid var(--border-soft); border-radius: 12px; padding: 11px 13px; background: var(--accent); }
.va__reply-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.va__type { display: inline-flex; gap: 3px; }
.va__type i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: vaBlink 1.2s infinite; }
.va__type i:nth-child(2) { animation-delay: .2s; }
.va__type i:nth-child(3) { animation-delay: .4s; }
.va__reply-text { margin: 8px 0 0; font-size: 13px; color: var(--accent-fg); line-height: 1.5; }
.va__route { font-size: 12.5px; font-weight: 600; color: var(--muted-fg); animation: vaRise 6s ease-in-out infinite; }
.va__route--play { color: var(--primary); }
/* AM meters */
.va__meter { display: flex; align-items: center; gap: 10px; }
.va__meter-label { font-size: 12px; color: var(--muted-fg); width: 76px; flex: none; }
.va__track { flex: 1; height: 8px; background: var(--secondary); border-radius: 999px; overflow: hidden; }
.va__fill { display: block; height: 100%; width: var(--w); border-radius: 999px;
  background: linear-gradient(90deg, var(--warn), var(--danger)); animation: vaFill 3.2s ease-in-out infinite; }
.va__score { font-weight: 800; font-size: 14px; color: var(--danger); width: 22px; text-align: right; }
.va__spark { flex: 1; display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.va__spark i { flex: 1; height: var(--h); background: var(--primary-2); border-radius: 3px; transform-origin: bottom; animation: vaSpark 2.4s ease-in-out infinite; }
.va__spark i:nth-child(2) { animation-delay: .25s; }
.va__spark i:nth-child(3) { animation-delay: .5s; }
.va__spark i:nth-child(4) { animation-delay: .75s; }
.va__spark i:nth-child(5) { animation-delay: 1s; }
/* Dreamer scan */
.va__scan { position: relative; margin: 16px; border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.va__sweep { position: absolute; left: 0; right: 0; top: -30px; height: 30px;
  background: linear-gradient(180deg, rgba(232,112,42,.20), transparent);
  animation: vaSweep 3.2s ease-in-out infinite; pointer-events: none; }
.va__srow { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 13px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-soft); }
.va__srow:last-child { border-bottom: none; }
.va__srow span { font-size: 11px; font-weight: 500; color: var(--muted-fg); }
.va__srow--hit { animation: vaHit 3.2s ease-in-out infinite; }
.va__tag { background: rgba(34,165,90,.16); color: #126b3a !important; padding: 3px 8px; border-radius: 999px; font-weight: 700 !important; }
.va__foot { padding: 0 16px 16px; font-size: 12.5px; font-weight: 600; color: var(--primary); animation: vaRise 6s ease-in-out infinite; }

@keyframes vaPulse { 0%,100% { transform: scale(1); opacity: .55 } 50% { transform: scale(1.4); opacity: 1 } }
@keyframes vaBlink { 0%,80%,100% { opacity: .25 } 40% { opacity: 1 } }
@keyframes vaIn { 0%,6% { opacity: 0; transform: translateY(6px) } 14%,100% { opacity: 1; transform: translateY(0) } }
@keyframes vaRise { 0%,52% { opacity: 0; transform: translateY(6px) } 68%,100% { opacity: 1; transform: translateY(0) } }
@keyframes vaFill { 0% { width: 0 } 55%,100% { width: var(--w) } }
@keyframes vaSpark { 0%,100% { transform: scaleY(.55) } 50% { transform: scaleY(1) } }
@keyframes vaSweep { 0% { top: -30px } 100% { top: 100% } }
@keyframes vaHit { 0%,45% { background: transparent } 60%,80% { background: rgba(232,112,42,.10) } 100% { background: transparent } }

@media (prefers-reduced-motion: reduce) {
  .va *, .va { animation: none !important; }
  .va__in, .va__route, .va__foot { opacity: 1 !important; transform: none !important; }
  .va__fill { width: var(--w) !important; }
  .va__sweep { display: none; }
}

/* ── Pricing: two-plan layout + included block ─────────────── */
.subhero .subhero__meta { font-size: 13px; color: var(--muted-fg); margin: 18px 0 0; }
.subhero .subhero__meta + .subhero__meta { margin-top: 6px; }
.plans--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.plan .btn--block { margin-top: auto; }
.included {
  max-width: 760px; margin: 40px auto 0;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 28px 32px;
}
.included__title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-fg); margin: 0 0 16px;
}
.included__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px;
}
.included__list li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; font-weight: 500; }
.included__list li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--primary); font-weight: 800; }
@media (max-width: 720px) {
  .plans--two { grid-template-columns: 1fr; }
  .included__list { grid-template-columns: 1fr; }
}

/* ── LEGAL / PRIVACY page ──────────────────────────────────── */
.legal { padding: 56px 0 80px; }
.legal__head { max-width: 820px; margin: 0 auto 40px; }
.legal__head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 8px; line-height: 1.1; }
.legal__meta { color: var(--muted-fg); font-size: 14px; }
.legal__body { max-width: 820px; margin: 0 auto; }
.legal__body h2 { font-size: 22px; font-weight: 800; margin: 44px 0 14px; letter-spacing: -0.01em; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.legal__body h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin: 26px 0 10px; }
.legal__body p { color: var(--foreground); font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.legal__body .legal__intro { color: var(--muted-fg); }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; }
.legal__body li { font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.legal__box { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; margin: 6px 0 18px; line-height: 1.7; font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border-soft); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.5; }
.legal th { background: var(--secondary); font-weight: 700; }
.legal__foot { max-width: 820px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--border-soft); color: var(--muted-fg); font-size: 13px; text-align: center; line-height: 1.7; }

/* ── CONTACT page ──────────────────────────────────────────── */
.contact { padding: 8px 0 80px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; max-width: 980px; margin: 0 auto; align-items: start; }
.contact__card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; }
.contact__block { margin-bottom: 22px; }
.contact__block:last-child { margin-bottom: 0; }
.contact__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-fg); margin: 0 0 6px; }
.contact__line { font-size: 15px; line-height: 1.7; margin: 0; }
.contact__line a { color: var(--primary); }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form__input, .form__textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--background); font: inherit; font-size: 14px; color: var(--foreground); box-sizing: border-box;
}
.form__textarea { resize: vertical; min-height: 150px; }
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232, 112, 42, .15); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Hero: single-column (userlens-style) with overlapping cards ── */
.hero__inner--stack {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 52px;
}
.hero__inner--stack .hero__copy { max-width: 1000px; }
.hero__inner--stack .hero__sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero__inner--stack .hero__ctas { justify-content: center; }
.hero__inner--stack .hero__visual { width: 100%; }

.hero__stage {
  position: relative; width: 100%; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.hero__stage .mock { margin: 0; flex: 1 1 auto; min-width: 0; transform: none; }
.hero__overlay {
  position: static;
  flex: 0 0 300px;
  width: 300px;
  z-index: 3;
  transform: none;
}
@media (max-width: 960px) {
  .hero__stage { flex-direction: column; }
  .hero__overlay { flex-basis: auto; width: 100%; max-width: 360px; }
}

/* ── Dreamer overlay card (dark, animated idle → scanning) ── */
.dreamer {
  width: 100%;
  background: radial-gradient(120% 90% at 0% 0%, #3b2616 0%, #251811 46%, #160f08 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
  color: #f3e9df;
  box-shadow: 0 36px 70px -22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.25);
  font-size: 13px;
}
.dreamer__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dreamer__orb {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #ffc093, #e8702a 56%, #ab440d);
  box-shadow: 0 0 0 5px rgba(232, 112, 42, 0.18), 0 0 22px rgba(232, 112, 42, 0.45);
  animation: dreamOrb 2.6s ease-in-out infinite;
}
.dreamer__name { font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: 0.01em; }
.dreamer__status {
  margin-top: 7px; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #84d8a6;
}
.dreamer__dot { width: 7px; height: 7px; border-radius: 50%; background: #38d27c; box-shadow: 0 0 8px #38d27c; }
.dreamer__desc { color: #bda993; line-height: 1.5; margin: 0 0 16px; }
.dreamer__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dreamer__stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; padding: 12px 14px;
}
.dreamer__stat-val {
  position: relative; min-height: 21px;
  font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: #f6ede3;
}
.dreamer__stat-val .d-live { position: absolute; inset: 0; opacity: 0; }
.dreamer__stat-val .d-idle { animation: dIdle 9s ease-in-out infinite; }
.dreamer__stat-val .d-live { animation: dLive 9s ease-in-out infinite; }
.dreamer__stat-lbl {
  margin-top: 7px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.07em; text-transform: uppercase; color: #8d7c6c;
}
.dreamer__btn {
  margin-top: 14px; text-align: center; font-weight: 700; color: #fff;
  padding: 13px; border-radius: 12px;
  background: linear-gradient(180deg, #ef7e34 0%, #d4621f 100%);
  box-shadow: 0 10px 20px -6px rgba(232, 112, 42, 0.6);
  animation: dreamPress 9s ease-in-out infinite;
}
.dreamer__log {
  overflow: hidden; max-height: 0; margin-top: 0;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: #c8bbac;
  animation: dreamLog 9s ease-in-out infinite;
}
.dreamer__log p { margin: 6px 0 0; }
.dreamer__log p:first-child { margin-top: 0; }
.dreamer__log--warn { color: #e8b24a; }
.dreamer__log--up { color: #f2a25a; }
.dreamer__log--ok { color: #84d8a6; }

@keyframes dreamOrb {
  0%, 100% { box-shadow: 0 0 0 5px rgba(232, 112, 42, 0.20), 0 0 18px rgba(232, 112, 42, 0.40); }
  50% { box-shadow: 0 0 0 8px rgba(232, 112, 42, 0.10), 0 0 26px rgba(232, 112, 42, 0.55); }
}
@keyframes dIdle { 0%, 18% { opacity: 1; } 26%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dLive { 0%, 20% { opacity: 0; } 28%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dreamPress {
  0%, 17% { transform: none; filter: brightness(1); }
  20% { transform: scale(0.97); filter: brightness(1.18); }
  24%, 100% { transform: none; filter: brightness(1); }
}
@keyframes dreamLog {
  0%, 20% { max-height: 0; opacity: 0; margin-top: 0; }
  24% { opacity: 1; }
  68% { max-height: 250px; opacity: 1; margin-top: 14px; }
  90% { max-height: 250px; opacity: 1; margin-top: 14px; }
  100% { max-height: 0; opacity: 0; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dreamer__orb, .dreamer__btn, .dreamer__log,
  .dreamer__stat-val .d-idle, .dreamer__stat-val .d-live { animation: none !important; }
  .dreamer__log { max-height: none; opacity: 1; margin-top: 14px; }
  .dreamer__stat-val .d-idle { display: none; }
  .dreamer__stat-val .d-live { position: static; opacity: 1; }
}

@media (max-width: 720px) {
  .hero__overlay {
    position: static; width: 100%; margin-top: 22px;
    right: auto; bottom: auto; transform: none;
  }
  .dreamer { max-width: 360px; margin: 0 auto; }
}

/* ── Generic orange highlight (for section titles, etc.) ───── */
.hl {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* hero sub: keep to two clean lines */
.hero__inner--stack .hero__sub { max-width: 760px; }

/* ── Agents section: each agent in a breathing rectangular card ── */
#agents .agentrows { gap: 28px; }
#agents .agentrow {
  padding: 34px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  animation: agentBreathe 6s ease-in-out infinite;
}
#agents .agentrow:nth-of-type(2) { animation-delay: -2s; }
#agents .agentrow:nth-of-type(3) { animation-delay: -4s; }
@keyframes agentBreathe {
  0%, 100% { background-color: var(--card); }
  50% { background-color: var(--secondary); }
}
@media (prefers-reduced-motion: reduce) {
  #agents .agentrow { animation: none; background-color: var(--card); }
}
@media (max-width: 720px) {
  #agents .agentrow { padding: 24px; }
}

/* ── Alternating light/darker shades: memory tabs, integrations, how-it-works ── */
.memory .featurebar { background: var(--background); }
.memory .featurebar__tab:nth-child(odd):not(.is-active) { background: var(--card); }
.memory .featurebar__tab:nth-child(even):not(.is-active) { background: var(--secondary); }

.integrations .intcat { background: var(--card); }

.how .step:nth-child(even) { background: var(--secondary); }

/* ── Integrations title on one line ───────────────────────── */
.integrations .section__head { max-width: none; }
.integrations .section__title { white-space: nowrap; }
@media (max-width: 720px) {
  .integrations .section__title { white-space: normal; }
}

/* ============================================================
   REDESIGN ADDITIONS — dark accents, menu dots, agent carousel + visuals
   ============================================================ */

/* ── Neutral ink tokens (black / grey) ─────────────────────── */
:root {
  --ink:        #161513;
  --ink-2:      #201f1c;
  --ink-fg:     #d9d3c9;
  --ink-fg-dim: #8d877d;
}

/* ── Submenu: glossy colored sphere per agent ──────────────── */
.menu__item-icon--cc,
.menu__item-icon--am,
.menu__item-icon--dreamer {
  width: 22px; height: 22px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--sphere);
  box-shadow: 0 0 0 5px var(--sphere-ring), 0 2px 5px rgba(0,0,0,.18);
  transition: box-shadow .18s ease, transform .18s ease;
}
.menu__item:hover .menu__item-icon--cc,
.menu__item:hover .menu__item-icon--am,
.menu__item:hover .menu__item-icon--dreamer {
  transform: scale(1.08);
  background: var(--sphere);
}
.menu__item-icon--cc {
  --sphere: radial-gradient(circle at 34% 28%, #f4a874, #df681d 56%, #a8470f);
  --sphere-ring: rgba(223,104,29,.16);
}
.menu__item-icon--am {
  --sphere: radial-gradient(circle at 34% 28%, #82bf9c, #3f8c63 56%, #2a6044);
  --sphere-ring: rgba(63,140,99,.16);
}
.menu__item-icon--dreamer {
  --sphere: radial-gradient(circle at 34% 28%, #a394f2, #6c4fd6 56%, #4d34af);
  --sphere-ring: rgba(108,79,214,.18);
}

/* ── Dark footer ───────────────────────────────────────────── */
.foot {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--ink-fg);
}
.foot .wordmark { color: #fff; }
.foot__tag { color: var(--ink-fg-dim); }
.foot__col h4 { color: var(--ink-fg-dim); }
.foot__col a { color: var(--ink-fg); }
.foot__col a:hover { color: var(--primary-2); }
.foot__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--ink-fg-dim);
}

/* ============================================================
   AGENT DETAIL — bullet-card carousel
   ============================================================ */
.cardslider { position: relative; align-self: stretch; }
.cardslider__viewport { overflow: hidden; border-radius: 18px; }
.cardslider__track {
  display: flex;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}
.cardslider__track.is-grab { cursor: grabbing; }
.cardslider__track.is-drag { transition: none; }
.bcard {
  flex: 0 0 100%;
  box-sizing: border-box;
  min-height: 220px;
  padding: 34px 34px 38px;
  background:
    radial-gradient(120% 130% at 0% 0%, var(--ac-soft) 0%, transparent 46%),
    var(--card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--ac);
  border-radius: 18px;
  display: flex; flex-direction: column; justify-content: center;
  user-select: none;
}
.bcard__num {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--ac);
  margin-bottom: 14px;
}
.bcard__title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; }
.bcard__body { font-size: 15.5px; line-height: 1.6; color: var(--muted-fg); margin: 0; }

.cardslider__ctrls {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px;
}
.cardslider__arrow {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.cardslider__arrow:hover { border-color: var(--ac); color: var(--ac); transform: scale(1.06); }
.cardslider__dots { display: flex; gap: 8px; flex: 1; }
.cardslider__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0;
  background: var(--border);
  transition: background .2s, transform .2s, width .25s;
}
.cardslider__dot.is-active { background: var(--ac); width: 24px; border-radius: 5px; }

/* ============================================================
   AGENT DETAIL — rotating animated visual gallery
   ============================================================ */
.vgallery { align-self: stretch; }
.vgallery__stage {
  position: relative;
  min-height: 340px;
  display: grid;
}
.vslide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.985);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.vslide.is-active {
  opacity: 1; visibility: visible;
  transform: none;
}
.vslide > * { width: 100%; }
.vgallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.vgallery__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0; background: var(--border);
  transition: background .2s, width .25s;
}
.vgallery__dot.is-active { background: var(--ac); width: 24px; border-radius: 5px; }

/* shared visual card shell */
.vconv, .vtriage, .vgauge, .vtrend, .vradar, .vscan {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* typing dots (CC visual 1) */
.typing { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--ac, var(--primary)); animation: typedot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typedot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* CC visual 2 — channels converging */
.vconv__head { font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.vconv__flow {
  position: relative;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0;
}
.vconv__chans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vconv__chan {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 9px 12px;
  animation: convChan 3s ease-in-out infinite; animation-delay: calc(var(--i) * .35s);
}
.vconv__ic { font-size: 14px; }
.vconv__wires { position: relative; width: 64px; height: 110px; }
.vconv__pulse {
  position: absolute; left: 0; top: calc(18px + var(--i) * 41px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--ac);
  box-shadow: 0 0 10px var(--ac);
  animation: convPulse 2.4s linear infinite; animation-delay: calc(var(--i) * .5s);
}
.vconv__node {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--ac) 85%, white), var(--ac));
  color: #fff; font-weight: 800; font-size: 15px; line-height: 1.1; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--ac) 60%, transparent);
  animation: convNode 2.4s ease-in-out infinite;
}
.vconv__node small { font-weight: 600; font-size: 10px; opacity: .85; }
.vconv__foot { margin-top: 16px; font-size: 12.5px; color: var(--muted-fg); }
@keyframes convChan { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes convPulse { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(56px); opacity: 0; } }
@keyframes convNode { 0%,100% { box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--ac) 45%, transparent); } 50% { box-shadow: 0 8px 30px -2px color-mix(in srgb, var(--ac) 75%, transparent); } }

/* CC visual 3 — triage / classify */
.vtriage__head { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.vtriage__msg {
  background: var(--background); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 13px 15px; font-size: 13.5px; line-height: 1.5;
  margin-bottom: 16px;
}
.vtriage__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vtag {
  font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac);
  opacity: 0; transform: translateY(6px);
  animation: tagIn 4s ease-in-out infinite; animation-delay: calc(var(--i) * .4s);
}
.vtriage__bars { display: flex; flex-direction: column; gap: 12px; }
.vbar { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-fg); }
.vbar__rail { height: 8px; border-radius: 99px; background: var(--secondary); overflow: hidden; }
.vbar__rail b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 70%, white), var(--ac)); animation: barFill 4s ease-in-out infinite; }
@keyframes tagIn { 0%,8% { opacity: 0; transform: translateY(6px); } 22%,82% { opacity: 1; transform: none; } 96%,100% { opacity: 0; transform: translateY(6px); } }
@keyframes barFill { 0%,10% { width: 0; } 50%,82% { width: var(--w); } 100% { width: 0; } }

/* AM visual 2 — health gauge */
.vgauge__head { font-weight: 700; font-size: 14px; margin-bottom: 8px; text-align: center; }
.vgauge__ring { position: relative; width: 168px; margin: 6px auto 12px; }
.vgauge__ring svg { width: 168px; height: 168px; transform: rotate(-90deg); }
.vgauge__track { fill: none; stroke: var(--secondary); stroke-width: 11; }
.vgauge__arc {
  fill: none; stroke: var(--ac); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  animation: gaugeFill 4.5s ease-in-out infinite;
}
.vgauge__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vgauge__num b { font-size: 34px; font-weight: 800; color: var(--foreground); line-height: 1; }
.vgauge__num small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-top: 4px; }
.vgauge__legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-fg); }
.vgauge__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot--risk { background: var(--danger); }
@keyframes gaugeFill { 0% { stroke-dashoffset: 327; } 45%,85% { stroke-dashoffset: 137; } 100% { stroke-dashoffset: 327; } }

/* AM visual 3 — sentiment trend */
.vtrend__head { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.vtrend__chart { width: 100%; height: 150px; }
.vtrend__line {
  fill: none; stroke: var(--ac); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trendDraw 4.5s ease-in-out infinite;
}
.vtrend__flag { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--danger); }
@keyframes trendDraw { 0% { stroke-dashoffset: 1; } 55%,85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

/* Dreamer visual 1 — radar scan */
.vradar { text-align: center; }
.vradar__head { font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.vradar__scope {
  position: relative; width: 200px; height: 200px; margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 70%);
}
.vradar__ring, .vradar__ring--2 {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
}
.vradar__ring--2 { inset: 32px; opacity: .7; }
.vradar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--ac) 45%, transparent) 60deg, transparent 70deg);
  animation: radarSweep 3s linear infinite;
}
.vradar__blip {
  position: absolute; left: var(--x); top: var(--y);
  width: 9px; height: 9px; border-radius: 50%; background: var(--ac);
  box-shadow: 0 0 12px var(--ac); transform: translate(-50%,-50%) scale(0);
  animation: radarBlip 3s ease-in-out infinite; animation-delay: var(--d);
}
.vradar__foot { margin-top: 16px; font-size: 12.5px; color: var(--muted-fg); font-family: var(--font-mono); }
@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes radarBlip { 0%,10% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 18% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; } 40%,100% { transform: translate(-50%,-50%) scale(1); opacity: .85; } }

/* Dreamer visual 3 — scan progress + signals */
.vscan__head { font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.vscan__meter { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.vscan__meter b { font-family: var(--font-mono); color: var(--ac); }
.vscan__rail { height: 10px; border-radius: 99px; background: var(--secondary); overflow: hidden; margin-bottom: 18px; }
.vscan__rail i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 65%, white), var(--ac)); animation: scanFill 5s ease-in-out infinite; }
.vscan__signals { display: flex; flex-direction: column; gap: 9px; }
.vsig {
  font-size: 12.5px; font-weight: 600; padding: 9px 12px; border-radius: 10px;
  opacity: 0; transform: translateX(-8px);
  animation: sigIn 5s ease-in-out infinite; animation-delay: calc(2s + var(--i) * .5s);
}
.vsig--risk { background: rgba(220,56,56,.10); color: var(--danger); }
.vsig--up { background: rgba(63,140,99,.12); color: #2a6044; }
.vsig--dim { background: var(--secondary); color: var(--muted-fg); }
@keyframes scanFill { 0% { width: 0; } 40%,90% { width: 100%; } 100% { width: 0; } }
@keyframes sigIn { 0%,30% { opacity: 0; transform: translateX(-8px); } 45%,92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-8px); } }

/* stagger-rise helper for reused visuals (vaccts rows, vdigest list) */
.vslide .vaccts__row, .vslide .vdigest__list li {
  animation: riseIn 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .35s);
}
@keyframes riseIn { 0%,8% { opacity: 0; transform: translateY(8px); } 24%,86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1024px) {
  .vgallery__stage { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .cardslider__track { transition: none; }
  .typing i, .vconv__chan, .vconv__pulse, .vconv__node, .vtag, .vbar__rail b,
  .vgauge__arc, .vtrend__line, .vradar__sweep, .vradar__blip, .vscan__rail i, .vsig,
  .vslide .vaccts__row, .vslide .vdigest__list li { animation: none !important; }
  .vtag, .vsig, .vslide .vaccts__row, .vslide .vdigest__list li { opacity: 1 !important; transform: none !important; }
  .vbar__rail b { width: var(--w); }
  .vgauge__arc { stroke-dashoffset: 137; }
  .vtrend__line { stroke-dashoffset: 0; }
  .vscan__rail i { width: 100%; }
}

/* ============================================================
   HOMEPAGE REDESIGN v2 — companies dashboard, KPI cards,
   memory carousel, integrations marquee, dreamer flag visual
   ============================================================ */

/* ── extra palette shades ──────────────────────────────────── */
:root {
  --c-emerald: #2f9e6e; --c-emerald-soft: #e7f5ee; --c-emerald-deep: #1d6e4b;
  --c-indigo:  #5b63e8; --c-indigo-soft: #ecedfd;  --c-indigo-deep: #383fb0;
  --c-rose:    #d6537f; --c-rose-soft: #fbe8f0;     --c-rose-deep: #a83760;
  --c-amber:   #e8702a; --c-amber-soft: #fff0e6;    --c-amber-deep: #a8470f;
}

/* ── hero mock: companies view ─────────────────────────────── */
.mock__count--red { background: rgba(214, 48, 48, 0.14); color: var(--danger); }
.mock__layout--full { grid-template-columns: 1fr !important; }
.mock__layout--full .mock__main { gap: 10px; }

/* KPI cards (screenshot 2) */
.mkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mkpi {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--c, var(--primary));
  border-radius: 10px;
  padding: 9px 10px 10px;
  overflow: hidden;
}
.mkpi__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mkpi__label { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-fg); }
.mkpi__ic { width: 20px; height: 20px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.mkpi__ic svg { width: 12px; height: 12px; }
.mkpi__val { font-size: 24px; font-weight: 800; line-height: 1.05; margin: 4px 0 6px; letter-spacing: -0.02em; position: relative; }
.mkpi__val small { font-size: 12px; font-weight: 700; }
.mkpi__spark { position: absolute; right: 0; bottom: 3px; width: 46px; height: 18px; }
.mkpi__spark polyline { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mkpi__foot { font-size: 8.5px; color: var(--muted-fg); line-height: 1.3; }
.mkpi__pill { display: inline-block; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 1px 5px; border-radius: 999px; margin-right: 3px; }
.mkpi--conv   { --c: #e8702a; }
.mkpi--risk   { --c: #d63030; }
.mkpi--upsell { --c: #2f9e6e; }
.mkpi--ai     { --c: #5b63e8; }

/* companies filter bar */
.cmp__filter { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.cmp__search {
  flex: 1; display: inline-flex; align-items: center; gap: 7px;
  background: var(--background); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 7px 12px; color: var(--muted-fg); font-size: 10.5px;
}
.cmp__search svg { width: 12px; height: 12px; }
.cmp__filtercount { font-size: 10px; color: var(--muted-fg); white-space: nowrap; }

/* companies table */
.cmp {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 12px; overflow: hidden; font-size: 10px;
}
.cmp__row {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) 50px 44px 74px 28px 74px 50px 46px;
  align-items: center; gap: 6px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--border-soft);
}
.cmp__row:last-child { border-bottom: none; }
.cmp__row:not(.cmp__row--head):hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.cmp__row--head {
  background: var(--secondary);
  font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-fg);
}
.cmp__c { text-align: center; }
.cmp__r { text-align: right; }
.cmp__co { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmp__av {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--secondary); color: var(--foreground);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800;
}
.cmp__coi { display: flex; flex-direction: column; min-width: 0; }
.cmp__coi b { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp__coi i { font-size: 8.5px; font-style: normal; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp__plan {
  font-size: 8.5px; font-weight: 700; text-align: center;
  padding: 2px 0; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted-fg);
}
.cmp__plan--growth { color: var(--c-emerald-deep); border-color: color-mix(in srgb, var(--c-emerald) 40%, transparent); background: var(--c-emerald-soft); }
.cmp__mrr { font-weight: 700; font-size: 10.5px; }
.cmp__health { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cmp__hbar { width: 38px; height: 5px; border-radius: 99px; background: var(--secondary); overflow: hidden; }
.cmp__hbar b { display: block; height: 100%; width: var(--w); border-radius: 99px; }
.cmp__hbar--red b   { background: var(--danger); }
.cmp__hbar--amber b { background: #d6a32a; }
.cmp__hbar--green b { background: var(--c-emerald); }
.cmp__csat { font-weight: 700; font-size: 9.5px; white-space: nowrap; }
.cmp__csat--down { color: var(--danger); }
.cmp__csat--up   { color: var(--c-emerald-deep); }
.cmp__csat--flat { color: var(--muted-fg); font-weight: 600; }
.cmp__sig { display: inline-flex; align-items: center; }
.cmp__sig--clean { font-size: 9px; color: var(--muted-fg); font-style: italic; }
.spark { width: 30px; height: 13px; }
.spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark--down polyline  { stroke: var(--danger); }
.spark--up polyline    { stroke: var(--c-emerald); }
.spark--amber polyline { stroke: #c79324; }
.spark--blue polyline  { stroke: var(--c-indigo); }
.cmp__rep {
  font-size: 8.5px; font-weight: 700; color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px; padding: 2px 7px;
}

/* ── vconv channel dot (replaces emoji) ────────────────────── */
.vconv__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--ac, var(--primary));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac, var(--primary)) 18%, transparent);
}

/* ============================================================
   MEMORY LAYER — auto-advancing color cards
   ============================================================ */
.memslider { max-width: 940px; margin: 0 auto; }
.memcard {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  min-height: 320px;
  padding: 40px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border-soft));
  background:
    radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--c-soft) 0%, var(--card) 60%);
  user-select: none;
}
.memcard--amber   { --c: var(--c-amber);   --c-soft: var(--c-amber-soft);   --c-deep: var(--c-amber-deep); }
.memcard--emerald { --c: var(--c-emerald); --c-soft: var(--c-emerald-soft); --c-deep: var(--c-emerald-deep); }
.memcard--indigo  { --c: var(--c-indigo);  --c-soft: var(--c-indigo-soft);  --c-deep: var(--c-indigo-deep); }
.memcard--rose    { --c: var(--c-rose);    --c-soft: var(--c-rose-soft);    --c-deep: var(--c-rose-deep); }
.memcard__ic {
  width: 52px; height: 52px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, white), var(--c));
  color: #fff; margin-bottom: 16px;
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--c) 60%, transparent);
}
.memcard__ic svg { width: 26px; height: 26px; }
.memcard__step { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--c-deep); margin-bottom: 8px; }
.memcard__title { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.memcard__body { font-size: 15px; line-height: 1.6; color: var(--muted-fg); margin: 0; }

/* memory mini-visuals */
.mart {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--c) 18%, var(--border-soft));
  border-radius: 16px; padding: 16px;
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--c) 50%, transparent);
}
.mart--rows { display: flex; flex-direction: column; gap: 8px; }
.mart__row {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  background: var(--background); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 10px 12px;
}
.mart__row--ghost { opacity: 0.5; }
.mart__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.mart__tag { margin-left: auto; font-size: 9.5px; font-weight: 700; color: var(--c-deep); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 2px 7px; border-radius: 999px; }
.mart__search { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-fg); background: var(--background); border: 1px solid var(--border-soft); border-radius: 999px; padding: 8px 12px; margin-bottom: 12px; }
.mart__search svg { width: 13px; height: 13px; }
.mart__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mart__tile { display: flex; flex-direction: column; gap: 3px; background: var(--background); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; }
.mart__tile b { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--c-deep); }
.mart__tile span { font-size: 11.5px; font-weight: 600; }
.mart--chart { display: flex; flex-direction: column; gap: 14px; }
.mart__metric { display: flex; align-items: baseline; gap: 8px; }
.mart__metric b { font-size: 32px; font-weight: 800; color: var(--c-deep); letter-spacing: -0.02em; }
.mart__metric span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-fg); }
.mart__bars { display: flex; align-items: flex-end; gap: 7px; height: 90px; }
.mart__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, color-mix(in srgb, var(--c) 40%, white), var(--c)); }
.mart--toggles { display: flex; flex-direction: column; gap: 10px; }
.mart__tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; }
.mart__sw { width: 34px; height: 19px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: background .2s; }
.mart__sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.mart__sw.is-on { background: var(--c); }
.mart__sw.is-on::after { left: 17px; }

/* ============================================================
   INTEGRATIONS — marquee + prettier categories
   ============================================================ */
.intmarquee {
  overflow: hidden;
  padding: 8px 0 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.intmarquee__track {
  display: flex; gap: 14px; width: max-content;
  animation: intscroll 34s linear infinite;
}
.intmarquee:hover .intmarquee__track { animation-play-state: paused; }
.intchip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 8px 16px 8px 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.intchip__mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800;
}
.intchip__mark svg { width: 16px; height: 16px; }
.intchip__mark--mail { background: linear-gradient(150deg, #6b73ef, #4a52d6); }
.intchip__mark--light { background: #fff; border: 1px solid var(--border-soft); }
@keyframes intscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* prettier category cards */
.intcat {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.intcat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border); }
.intcat__label {
  margin: 0; padding: 12px 18px;
  background: linear-gradient(180deg, var(--secondary), transparent);
  border-bottom: 1px solid var(--border-soft);
  color: var(--foreground);
}
.intcat__item {
  padding: 11px 18px;
  transition: background .15s ease;
}
.intcat__item:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.intcat__mark { border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.intcat__mark--mail { background: linear-gradient(150deg, #6b73ef, #4a52d6); color: #fff; box-shadow: 0 2px 8px rgba(75,82,214,.35); }
.intcat__mark--mail svg { width: 18px; height: 18px; }
.intcat__mark--drive { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); }

/* ============================================================
   DREAMER (platform) — flagged-account 2-slide gallery
   ============================================================ */
.vgallery--dreamer .vgallery__stage { min-height: 300px; }
.dflag {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.dflag__top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.dflag__av {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--secondary); color: var(--foreground);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.dflag__name { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dflag__badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--danger); background: rgba(214,48,48,.10);
  border: 1px solid rgba(214,48,48,.25);
  padding: 2px 8px; border-radius: 999px;
}
.dflag__meta { margin-top: 5px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-fg); display: flex; align-items: center; gap: 6px; }
.dflag__pin { width: 7px; height: 7px; border-radius: 50%; background: #6c4fd6; box-shadow: 0 0 7px #6c4fd6; }
.dflag__metric { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dflag__pct { font-size: 12px; font-weight: 800; }
.dflag__hbar { width: 70px; height: 6px; border-radius: 99px; background: var(--secondary); overflow: hidden; }
.dflag__hbar b { display: block; height: 100%; width: var(--w); background: var(--danger); border-radius: 99px; animation: dflagBar 4.5s ease-in-out infinite; }
.dflag__mrr { font-size: 10px; color: var(--muted-fg); font-family: var(--font-mono); }
.dflag__sum { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--foreground); }
.dflag__sum b { font-weight: 800; }
@keyframes dflagBar { 0% { width: 0; } 40%,100% { width: var(--w); } }

.dflag--detail { display: grid; grid-template-columns: 1fr; gap: 18px; }
.dflag__label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 10px; }
.dflag__timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dflag__timeline li {
  display: block; white-space: nowrap;
  font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateX(-8px);
  animation: dflagRow 5s ease-in-out infinite; animation-delay: calc(var(--i) * .35s);
}
.dflag__timeline i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--muted-fg); display: inline-block; width: 40px; margin-right: 8px; }
.dflag__timeline b { font-weight: 800; }
.dflag__play {
  background: var(--secondary);
  border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 16px;
}
.dflag__play p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--foreground); }
.dflag__btns { display: flex; gap: 9px; }
.dflag__btn {
  font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--foreground); background: var(--card);
}
.dflag__btn--dark { background: var(--ink, #161513); color: #fff; border-color: var(--ink, #161513); }
@keyframes dflagRow { 0%,6% { opacity: 0; transform: translateX(-8px); } 22%,90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-8px); } }

@media (max-width: 1024px) {
  .memcard { grid-template-columns: 1fr; gap: 24px; padding: 32px; text-align: left; }
  .memcard__art { max-width: 420px; }
}
@media (max-width: 720px) {
  .mkpis { grid-template-columns: repeat(2, 1fr); }
  .intchip { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .intmarquee__track { animation: none; }
  .mart__sw, .dflag__hbar b, .dflag__timeline li { animation: none !important; }
  .dflag__timeline li { opacity: 1 !important; transform: none !important; }
  .dflag__hbar b { width: var(--w); }
}

/* ── Dreamer hero card sizing (side-by-side with dashboard) ── */
.hero__overlay .dreamer { font-size: 12.5px; padding: 16px; border-radius: 18px; text-align: left; }
.hero__overlay .dreamer__head { gap: 11px; margin-bottom: 11px; }
.hero__overlay .dreamer__orb { width: 40px; height: 40px; }
.hero__overlay .dreamer__name { font-size: 18px; }
.hero__overlay .dreamer__status { margin-top: 5px; font-size: 10px; }
.hero__overlay .dreamer__desc { margin: 0 0 12px; font-size: 12px; }
.hero__overlay .dreamer__stats { gap: 8px; }
.hero__overlay .dreamer__stat { padding: 9px 11px; border-radius: 10px; }
.hero__overlay .dreamer__stat-val { font-size: 15px; min-height: 18px; }
.hero__overlay .dreamer__stat-lbl { font-size: 9px; margin-top: 5px; }
.hero__overlay .dreamer__btn { margin-top: 11px; padding: 11px; border-radius: 10px; font-size: 12.5px; }
.hero__overlay .dreamer__log { font-size: 10.5px; }
@keyframes dreamLog {
  0%, 18% { max-height: 0; opacity: 0; margin-top: 0; }
  23% { opacity: 1; }
  64% { max-height: 280px; opacity: 1; margin-top: 12px; }
  92% { max-height: 280px; opacity: 1; margin-top: 12px; }
  100% { max-height: 0; opacity: 0; margin-top: 0; }
}

/* ============================================================
   HOMEPAGE v3 — platform grey header, settings visual,
   how/cta effects, pricing redesign, agents page
   ============================================================ */

:root { --grey-soft: hsl(36 7% 92%); --grey-line: hsl(36 8% 86%); }

/* ── Platform section header on a light grey panel ─────────── */
#agents .section__head {
  background: linear-gradient(180deg, var(--grey-soft) 0%, color-mix(in srgb, var(--grey-soft) 55%, var(--background)) 100%);
  border: 1px solid var(--grey-line);
  border-radius: 24px;
  padding: 44px 40px;
  max-width: 880px;
}
@media (max-width: 720px) { #agents .section__head { padding: 32px 22px; } }

/* ── Memory: Settings visual ───────────────────────────────── */
.mart--settings { display: flex; flex-direction: column; gap: 11px; }
.mset__block {
  background: var(--background); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 12px 14px;
}
.mset__line { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; }
.mset__line b { color: var(--c-amber-deep); font-family: var(--font-mono); }
.mset__slider { margin-top: 9px; height: 7px; border-radius: 99px; background: var(--secondary); position: relative; }
.mset__slider i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--primary-2), var(--primary)); }
.mset__slider::after { content: ''; position: absolute; top: 50%; left: var(--w, 80%); width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mset__slider i { --w: 80%; }
.mset__scan {
  display: flex; align-items: center; gap: 10px;
  background: var(--background); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 9px 12px;
}
.mset__ic { width: 28px; height: 28px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.mset__ic svg { width: 15px; height: 15px; }
.mset__ic--scan { background: rgba(108,79,214,.12); color: #6c4fd6; }
.mset__ic--pulse { background: rgba(214,48,48,.10); color: var(--danger); }
.mset__txt { flex: 1; min-width: 0; }
.mset__txt b { display: block; font-size: 12.5px; font-weight: 700; }
.mset__txt i { font-style: normal; font-size: 10px; color: var(--muted-fg); font-family: var(--font-mono); }
.mset__radio { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 2px 2px; }
.mset__radio-sub { color: var(--muted-fg); font-weight: 500; font-size: 11px; margin-left: auto; }
.mset__dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--c, var(--c-amber)); flex: none; position: relative; }
.mset__dot.is-on::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--c, var(--c-amber)); }

/* ── HOW IT WORKS — catchy ─────────────────────────────────── */
.how .steps { position: relative; }
.how .steps::before {
  content: ''; position: absolute; top: 56px; left: 18%; right: 18%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--border) 0 7px, transparent 7px 15px);
  background-size: 30px 100%;
  animation: howDash 1.1s linear infinite;
}
@keyframes howDash { to { background-position: 30px 0; } }
.how .step {
  position: relative; z-index: 1; overflow: hidden;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.how .step::after {
  content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.how .step:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 32%, var(--border-soft)); }
.how .step:hover::after { transform: scaleX(1); }
.how .step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--accent); color: var(--primary);
  font-size: 15px; font-weight: 800;
  transition: transform .3s ease, background .3s ease;
}
.how .step:hover .step__n { transform: scale(1.08) rotate(-4deg); background: var(--primary); color: #fff; }
@media (max-width: 1024px) { .how .steps::before { display: none; } }

/* ── CTA — catchy animated panel ───────────────────────────── */
.cta__inner { position: relative; overflow: hidden; isolation: isolate; }
.cta__inner::before {
  content: ''; position: absolute; inset: -45%; z-index: -1; filter: blur(8px);
  background:
    radial-gradient(closest-side, rgba(232,112,42,.22), transparent) 16% 28% / 44% 44% no-repeat,
    radial-gradient(closest-side, rgba(240,144,80,.18), transparent) 84% 74% / 48% 48% no-repeat,
    radial-gradient(closest-side, rgba(95,99,232,.12), transparent) 64% 14% / 40% 40% no-repeat;
  animation: ctaFloat 16s ease-in-out infinite alternate;
}
@keyframes ctaFloat {
  0% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(2.5%,-3%) rotate(3deg); }
  100% { transform: translate(-2.5%,2.5%) rotate(-3deg); }
}
.cta__inner > * { position: relative; }
.cta .btn--primary { position: relative; overflow: hidden; }
.cta .btn--primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
}
.cta .btn--primary:hover::after { animation: ctaShine .85s ease; }
@keyframes ctaShine { to { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .cta__inner::before, .how .steps::before { animation: none; }
}

/* ── PRICING — redesigned plans + included ─────────────────── */
.pricing .plans--two { max-width: 880px; gap: 28px; align-items: stretch; }
.pricing .plan {
  position: relative;
  padding: 38px 30px 34px;
  margin-top: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pricing .plan::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--pc, var(--primary)), color-mix(in srgb, var(--pc, var(--primary)) 40%, white));
}
.pricing .plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing .plan--base { --pc: #5b63e8; }
.pricing .plan--featured { --pc: var(--primary); }
.plan__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.plan__icon {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--pc) 80%, white), var(--pc));
  color: #fff;
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--pc) 55%, transparent);
}
.plan__icon svg { width: 24px; height: 24px; }
.plan__tag {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--pc);
}
.pricing .plan__name { font-size: 22px; font-weight: 800; }
.pricing .plan__price { margin: 4px 0 18px; }
.pricing .plan__price span { color: var(--foreground); }
.plan__feats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__feats li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.45; }
.plan__feats li::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--pc) 14%, transparent);
}
.plan__feats li::after {
  content: ''; position: absolute; left: 6.5px; top: 6px;
  width: 6px; height: 9px; border: solid var(--pc); border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.pricing .plan--featured { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: 0 18px 44px -16px rgba(232,112,42,.3); }

.included {
  position: relative; overflow: hidden;
  max-width: 880px; padding: 32px 36px;
  background: linear-gradient(160deg, var(--card) 0%, color-mix(in srgb, var(--accent) 40%, var(--card)) 100%);
  border: 1px solid var(--border-soft);
}
.included__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.included__badge {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
}
.included__badge svg { width: 19px; height: 19px; }
.included .included__title { margin: 0; font-size: 16px; color: var(--foreground); letter-spacing: 0; text-transform: none; }
.included__list li { padding: 10px 0 10px 34px; font-weight: 600; }
.included__list li::before {
  content: ''; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 16%, transparent);
}
.included__list li::after {
  content: ''; position: absolute; left: 7px; top: 50%; transform: translateY(-60%) rotate(40deg);
  width: 6px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0;
}
.included__list { position: relative; }

/* ── AGENTS page = platform-style breathing cards ──────────── */
#agents.agents-intro .agentrow__visual { display: block; }

/* ============================================================
   v4 — greys, agents page, how-it-works ring, badge fix
   ============================================================ */

/* Platform header: darker grey */
#agents .section__head {
  background: linear-gradient(180deg, hsl(36 6% 86%) 0%, hsl(36 6% 90%) 100%);
  border-color: hsl(36 7% 80%);
}

/* Agents page intro header: medium grey panel */
.subhero--panel::before { display: none; }
.subhero--panel .subhero__inner {
  max-width: 940px;
  background: linear-gradient(180deg, hsl(36 6% 90%) 0%, hsl(36 7% 93%) 100%);
  border: 1px solid hsl(36 7% 84%);
  border-radius: 24px;
  padding: 44px 48px;
}
.subhero--panel h1 { margin-top: 6px; }
.subhero--panel p { max-width: 800px; margin: 0 auto; }
@media (max-width: 720px) { .subhero--panel .subhero__inner { padding: 30px 22px; } }

/* Agents page: keep AM & Dreamer titles on one line */
.agents-page .agentrow__title { font-size: clamp(20px, 2.1vw, 25px); }
@media (min-width: 721px) { .agents-page .agentrow__title { white-space: nowrap; } }

/* Pricing badge above the card */
.plan__badge { z-index: 4; }

/* ── HOW IT WORKS — moving, shining ring around the number ──── */
.how .step__n {
  position: relative; z-index: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent; color: var(--primary);
  overflow: visible;
}
.how .step__n::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; z-index: -2;
  background: conic-gradient(from 0deg, var(--primary), var(--primary-2) 25%, transparent 52%, transparent 78%, var(--primary));
  animation: stepRing 3.4s linear infinite;
  filter: drop-shadow(0 0 7px rgba(232,112,42,.55));
}
.how .step__n::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%; z-index: -1;
  background: var(--accent);
}
.how .step:hover .step__n { transform: scale(1.08); background: transparent; color: var(--primary); }
.how .step:hover .step__n::before { animation-duration: 1.4s; }
@keyframes stepRing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .how .step__n::before { animation: none; } }

/* ============================================================
   v4 — Privacy / Legal page, more beautiful & catchy
   ============================================================ */
.legal { padding: 40px 0 90px; }
.legal__head {
  position: relative; overflow: hidden;
  max-width: 880px; margin: 0 auto 52px; text-align: center;
  padding: 52px 44px;
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(232,112,42,.16), transparent 60%),
    linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.legal__head::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.legal__head .eyebrow { margin-bottom: 6px; }
.legal__head h1 {
  background: linear-gradient(120deg, var(--foreground) 30%, var(--primary) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal__meta {
  display: inline-block; margin-top: 6px;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 13px;
}

.legal__body { font-size: 15.5px; }
.legal__body h2 {
  position: relative; border-top: none; padding: 0 0 0 18px;
  margin: 52px 0 16px; font-size: 23px;
  scroll-margin-top: 90px;
}
.legal__body h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.legal__body h3 { display: flex; align-items: center; gap: 8px; }
.legal__body h3::before {
  content: ''; width: 7px; height: 7px; border-radius: 2px; flex: none;
  background: var(--primary); transform: rotate(45deg);
}
.legal__body ul { list-style: none; padding-left: 4px; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 70%, var(--border));
}
.legal__box {
  background: linear-gradient(180deg, var(--accent) 0%, var(--card) 90%);
  border: 1px solid var(--border-soft); border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-sm);
}
.legal table {
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.legal th, .legal td { border: none; border-bottom: 1px solid var(--border-soft); }
.legal th { background: linear-gradient(180deg, var(--secondary), var(--card)); letter-spacing: .01em; }
.legal tr:last-child td { border-bottom: none; }
.legal tr:nth-child(2n) td { background: color-mix(in srgb, var(--secondary) 45%, transparent); }
.legal__foot {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 22px 24px; border-top: 1px solid var(--border-soft);
}

/* ============================================================
   v5 — black header panels, how-it-works oval, contact form
   ============================================================ */

/* ── Black header panels (Platform, Memory, Agents intro) ──── */
#agents .section__head,
.memory .section__head,
.subhero--panel .subhero__inner {
  background: linear-gradient(160deg, #211f1b 0%, #121110 100%);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--ink-fg);
  box-shadow: 0 30px 64px -32px rgba(0,0,0,.6);
}
.memory .section__head {
  max-width: 880px; padding: 44px 40px; border-radius: 24px;
}
#agents .section__head .section__title,
.memory .section__head .section__title,
.subhero--panel .subhero__inner h1 { color: #fff; }
#agents .section__head .section__sub,
.memory .section__head .section__sub,
.subhero--panel .subhero__inner p { color: rgba(255,255,255,.66); }
.subhero--panel .subhero__inner .brand,
.memory .section__head .brand { color: var(--primary-2); }
@media (max-width: 720px) { .memory .section__head { padding: 30px 22px; } }

/* ── Homepage Platform: Dreamer title on one line ──────────── */
#agents:not(.agents-page) .agentrow:last-child .agentrow__title {
  font-size: clamp(22px, 2.5vw, 28px);
}
@media (min-width: 721px) {
  #agents:not(.agents-page) .agentrow:last-child .agentrow__title { white-space: nowrap; }
}

/* ── Dreamer "Suggested play" appears & disappears like above ─ */
.dflag__play {
  opacity: 0; transform: translateX(-8px);
  animation: dflagRow 5s ease-in-out infinite; animation-delay: 1.55s;
}

/* ── HOW IT WORKS — beautiful shining oval ─────────────────── */
.how { overflow: hidden; }
.how .container {
  position: relative; overflow: hidden;
  padding: 68px 64px 60px;
  border-radius: 96px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(232,112,42,.14), transparent 60%),
    linear-gradient(165deg, var(--card) 0%, color-mix(in srgb, var(--accent) 55%, var(--card)) 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border-soft));
  animation: ovalGlow 4.8s ease-in-out infinite;
}
.how .container > * { position: relative; z-index: 2; }
.how .container::before {
  content: ''; position: absolute; top: -40%; left: -65%; width: 48%; height: 180%;
  z-index: 5; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: rotate(9deg);
  animation: ovalSweep 6.5s ease-in-out infinite;
}
@keyframes ovalGlow {
  0%,100% { box-shadow: 0 26px 60px -30px rgba(232,112,42,.32), inset 0 0 0 1px rgba(255,255,255,.4); }
  50% { box-shadow: 0 34px 90px -26px rgba(232,112,42,.55), 0 0 46px -6px rgba(240,144,80,.3), inset 0 0 0 1px rgba(255,255,255,.55); }
}
@keyframes ovalSweep { 0% { left: -65%; } 58%, 100% { left: 125%; } }
@media (max-width: 720px) {
  .how .container { border-radius: 44px; padding: 44px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .how .container { animation: none; }
  .how .container::before { display: none; }
  .dflag__play { opacity: 1; transform: none; animation: none; }
}

/* ── CONTACT — split name fields + required stars ──────────── */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--danger); margin-left: 2px; font-weight: 700; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ============================================================
   v6 — team photos, contact phone dropdown + how-did-you-hear
   ============================================================ */

/* photo overlays (graceful fallback to initials underneath) */
.member__avatar { position: relative; overflow: hidden; }
.member__photo--abs {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; border: none; border-radius: 0; box-shadow: none;
}
.resume__avatar { position: relative; overflow: hidden; }
.resume__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Contact: phone field with country-code dropdown ───────── */
.phone { display: flex; gap: 10px; align-items: stretch; }
.phone__cc { position: relative; flex: none; }
.phone__cc-btn {
  height: 100%; display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--background); font: inherit; font-size: 14px; color: var(--foreground);
  cursor: pointer; white-space: nowrap; transition: border-color .15s ease;
}
.phone__cc-btn:hover { border-color: var(--primary); }
.phone__flag { font-size: 17px; line-height: 1; }
.phone__dial { font-weight: 600; }
.phone__caret { width: 12px; height: 12px; color: var(--muted-fg); transition: transform .2s ease; }
.phone__cc.is-open .phone__caret { transform: rotate(180deg); }
.phone__num { flex: 1; min-width: 0; }
.phone__list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  width: 248px; max-height: 260px; overflow-y: auto;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 12px; box-shadow: 0 18px 44px -16px rgba(0,0,0,.25);
}
.phone__list[hidden] { display: none; }
.phone__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
}
.phone__list li:hover, .phone__list li.is-active { background: var(--accent); }
.phone__list .phone__opt-dial { margin-left: auto; color: var(--muted-fg); font-variant-numeric: tabular-nums; }

/* select + error */
select.form__input { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px;
}
.form__error {
  display: none; margin: 0 0 14px; padding: 10px 14px;
  background: rgba(214,48,48,.08); border: 1px solid rgba(214,48,48,.3);
  border-radius: 10px; color: var(--danger); font-size: 13.5px; font-weight: 600;
}
.form__error.is-shown { display: block; }
.form__input.is-invalid, .phone.is-invalid .phone__num, .phone.is-invalid .phone__cc-btn { border-color: var(--danger); }

/* ============================================================
   v7 — resources card logos + integrations page
   ============================================================ */

/* Resources cards: gradient SVG logos + hover accent */
.rcard { position: relative; overflow: hidden; }
.rcard__logo {
  width: 50px; height: 50px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--rc) 82%, white), var(--rc));
  color: #fff; margin-bottom: 18px;
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--rc) 60%, transparent);
}
.rcard__logo svg { width: 25px; height: 25px; }
.rcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--rc); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.rcard:hover::after { transform: scaleX(1); }
.rcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.rcard--doc  { --rc: #5b63e8; }
.rcard--blog { --rc: #e8702a; }
.rcard--help { --rc: #2f9e6e; }
.rcard--case { --rc: #d6537f; }
.rcard--api  { --rc: #2684ff; }

/* Integrations page */
.intpage { padding: 44px 0 90px; }
.intpage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.intcard {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.intcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }
.intcard__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.intcard__logo {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
}
.intcard__logo svg { width: 24px; height: 24px; }
.intcard__logo--mail { background: linear-gradient(150deg, #6b73ef, #4a52d6); }
.intcard__logo--light { background: #fff; border: 1px solid var(--border-soft); box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 5px; }
.intcard__logo--light svg { width: 100%; height: 100%; }
.intcard__id h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.intcard__cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.intcard__desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-fg); }
.intpage__note { text-align: center; margin: 44px 0 0; color: var(--muted-fg); font-size: 14.5px; }
.intpage__note a { color: var(--primary); font-weight: 700; }
@media (max-width: 1024px) { .intpage__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .intpage__grid { grid-template-columns: 1fr; } }

/* ============================================================
   v8 — mid-page CTA button rows
   ============================================================ */
.midcta { padding: 10px 0 6px; }
.midcta__row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.detail__hero .detail__cta { margin-top: 24px; }

/* ============================================================
   v9 — bigger team photos, hero mid-CTA effects
   ============================================================ */

/* Bigger team photos on About page */
.team .member__avatar,
.team .member__photo { width: 136px; height: 136px; font-size: 40px; }
.team .member__avatar { margin-bottom: 22px; }

/* Homepage mid-CTA — more visible with glow + pulse */
.midcta--hero { padding: 26px 0 30px; }
.midcta--hero .midcta__row { position: relative; }
.midcta--hero .midcta__row::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: min(460px, 86%); height: 150px; transform: translate(-50%, -50%);
  z-index: -1; border-radius: 999px; filter: blur(14px);
  background: radial-gradient(closest-side, rgba(232,112,42,.22), rgba(240,144,80,.10) 60%, transparent 78%);
  animation: ctaHalo 3.2s ease-in-out infinite;
}
.midcta--hero .btn--primary { animation: ctaBtnPulse 2.6s ease-in-out infinite; }
.midcta--hero .btn--ghost { border-color: var(--primary); color: var(--primary); }
.midcta--hero .btn--ghost:hover { background: var(--accent); }
@keyframes ctaHalo {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes ctaBtnPulse {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(232,112,42,.5); transform: translateY(0); }
  50% { box-shadow: 0 16px 36px -6px rgba(232,112,42,.7), 0 0 0 6px rgba(232,112,42,.10); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .midcta--hero .midcta__row::before, .midcta--hero .btn--primary { animation: none; }
}

/* ============================================================
   v10 — Dreamer scan button, About square photo header
   ============================================================ */

/* Dreamer button: Run scan now ⇄ Scanning… synced with the log */
.hero__overlay .dreamer__btn { position: relative; animation: dreamBtn 9s ease-in-out infinite; }
.hero__overlay .dreamer__btn-run { animation: dreamLabelRun 9s ease-in-out infinite; }
.hero__overlay .dreamer__btn-scan {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: dreamLabelScan 9s ease-in-out infinite;
}
@keyframes dreamLabelRun  { 0%, 15% { opacity: 1; } 19%, 62% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes dreamLabelScan { 0%, 15% { opacity: 0; } 19%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes dreamBtn {
  0%, 16% { transform: none; filter: none; }
  19% { transform: scale(0.97); filter: brightness(1.12); }
  24% { transform: none; filter: saturate(0.4) brightness(0.76); }
  60% { transform: none; filter: saturate(0.4) brightness(0.76); }
  66%, 100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__overlay .dreamer__btn, .hero__overlay .dreamer__btn-run, .hero__overlay .dreamer__btn-scan { animation: none !important; }
  .hero__overlay .dreamer__btn-scan { display: none; }
}

/* About: big square photo header above each card */
.member--photo { padding: 0; overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.member--photo .member__hero {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--avatar-from, var(--primary-2)) 0%, var(--avatar-to, var(--primary)) 100%);
}
.member--photo .member__hero::before {
  content: attr(data-initials); color: #fff; font-weight: 800; font-size: 76px; letter-spacing: 0.02em;
}
.member--photo .member__photo--abs {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  margin: 0; border: none; border-radius: 0; box-shadow: none;
}
.member--photo .member__info { padding: 24px 26px 28px; display: flex; flex-direction: column; }

/* ============================================================
   v11 — "Coming soon" video placeholder (See it in action)
   ============================================================ */
.videosoon { padding: 48px 0 8px; }
.videosoon__frame {
  position: relative; overflow: hidden;
  width: 100%; max-width: 1000px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(120% 130% at 50% -10%, #322c25 0%, #1a1714 45%, #110f0d 100%);
  box-shadow: 0 40px 90px -34px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
/* faint grid texture */
.videosoon__frame::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
}
/* moving sheen */
.videosoon__frame::after {
  content: ''; position: absolute; top: -40%; left: -60%; width: 45%; height: 180%;
  pointer-events: none; transform: rotate(10deg);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent);
  animation: vsSheen 7s ease-in-out infinite;
}
.videosoon__glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232,112,42,.32), transparent 72%);
  filter: blur(8px); animation: vsGlow 3.2s ease-in-out infinite;
}
.videosoon__play {
  position: relative; z-index: 2;
  width: 86px; height: 86px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 12px 30px -8px rgba(232,112,42,.7);
  animation: vsRipple 2.6s ease-out infinite;
}
.videosoon__play svg { width: 34px; height: 34px; margin-left: 5px; }
.videosoon__label {
  position: relative; z-index: 2;
  font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary-2);
  animation: vsBlink 2.4s ease-in-out infinite;
}
.videosoon__sub {
  position: relative; z-index: 2;
  font-size: 14px; color: rgba(255,255,255,.55); margin-top: -8px;
}
@keyframes vsBlink {
  0%, 100% { opacity: .15; transform: scale(.97); text-shadow: none; }
  50% { opacity: 1; transform: scale(1); text-shadow: 0 0 26px rgba(232,112,42,.7), 0 0 6px rgba(232,112,42,.5); }
}
@keyframes vsGlow { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes vsRipple {
  0% { box-shadow: 0 12px 30px -8px rgba(232,112,42,.7), 0 0 0 0 rgba(232,112,42,.45); }
  70% { box-shadow: 0 12px 30px -8px rgba(232,112,42,.7), 0 0 0 26px rgba(232,112,42,0); }
  100% { box-shadow: 0 12px 30px -8px rgba(232,112,42,.7), 0 0 0 0 rgba(232,112,42,0); }
}
@keyframes vsSheen { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@media (max-width: 720px) { .videosoon__frame { border-radius: 18px; gap: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .videosoon__frame::after, .videosoon__glow, .videosoon__play, .videosoon__label { animation: none; }
  .videosoon__label { opacity: 1; text-shadow: 0 0 20px rgba(232,112,42,.6); }
}

/* ============================================================
   v12 — hero mock without sidebar (full-width content)
   To restore the sidebar: uncomment the <aside> in index.html
   and remove the "mock__body--solo" class.
   ============================================================ */
.mock__body--solo { grid-template-columns: 1fr; }
