/* The homepage, the integrations pages and the MCP page (/mcp). Colours,
   type, radii and shadows are the Centillion design system's light theme; the
   product mock-ups on the homepage live in demos.css and the MCP page's own
   parts in mcp.css. Other pages keep home.css / style.css. */

@font-face {
  font-family: 'Inter Variable';
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Arial resized to Inter's metrics, so the swap to Inter doesn't reflow. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-subtle: #f6f6f6;
  --bg-sunken: #f8f8f8;
  --bg-hover: #f2f2f2;
  --bg-muted: #e7e7e7;
  --ink: #0a0a0a;
  --ink-2: #353535;
  --ink-3: #626262;
  --ink-4: #a1a1a1;
  --ink-5: #c7c7c7;
  --on-ink: #ffffff;
  --line: #ededed;
  --line-strong: #e2e2e2;

  --green: #468e2c;
  --green-text: #3d7c27;
  --green-tint: #f2f7f0;
  --amber: #db8831;
  --amber-text: #9f5f1c;
  --amber-tint: #fbf4ec;
  --red: #d2483d;
  --red-text: #b3362b;
  --red-tint: #fcf0ef;
  --blue: #2f5bd7;
  --blue-tint: #eff3fb;
  --teal-text: #377873;
  --teal-tint: #e8f3f2;
  --purple-text: #8c41ee;
  --purple-tint: #f6f4fd;

  --glow-lavender: #ebeaf7;
  --glow-pink: #f2e4e2;
  --glow-peach: #f5e6dd;
  --glow-sky: #e6ecf4;
  --glow-mint: #e9f4ef;
  /* The agent's icon: a still of the orb (orb.js), its three glass drops in
     the logo's arrangement. */
  --orb: url('/assets/orb-mark.webp') center / contain no-repeat;

  --shadow-control: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.04), 0 4px 12px rgba(10, 10, 10, 0.04);
  --shadow-hero: 0 1px 2px rgba(10, 10, 10, 0.04), 0 24px 48px -16px rgba(10, 10, 10, 0.12);

  --radius-pill: 9999px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entering, exiting, press feedback */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* moving on screen */
  --motion: 150ms ease;                            /* hover and colour changes */

  --font-sans: 'Inter Variable', 'Inter Fallback', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --page-max: 1280px;
  --gutter: 20px;
  --section-y: clamp(72px, 10vw, 120px);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  transition: top var(--motion);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--motion), background-color var(--motion), transform 160ms var(--ease-out);
}
.btn-sm { height: 36px; padding: 0 16px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
/* Press feedback: pill buttons give a little under the finger. */
.btn:active, .chip:active, .segmented button:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { filter: brightness(0.86); }
.btn-line {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-control);
}
.btn-line:hover { background: var(--bg-subtle); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--ink); }
.btn svg { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--ink-5);
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); text-decoration-color: var(--ink-3); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wordmark .mark { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
  transition: background-color var(--motion), color var(--motion);
}
.site-nav > a:hover { background: var(--bg-subtle); color: var(--ink); }
.site-nav > a[aria-current="page"] { background: var(--bg-subtle); color: var(--ink); }
.site-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* The Product and Industries menus: a trigger that sits with the nav links
   and a panel under the header (site.js, initNavMenu). The panel is a framed
   card of columns with a "New" row underneath. Its containing block is the
   sticky header, and site.js sets its left edge under the trigger. */
.nav-menu-trigger {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion);
}
.nav-menu-trigger:hover,
.nav-menu-trigger[aria-expanded="true"],
.nav-menu-trigger.is-current { background: var(--bg-subtle); color: var(--ink); }
.nav-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: var(--nav-panel-left, 50%);
  width: min(820px, calc(100vw - 2 * var(--gutter)));
  padding: 6px;
  border-radius: 18px;
  background: var(--bg-subtle);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero);
  transform-origin: var(--nav-panel-origin, 50%) 0;
  animation: nav-panel-in 180ms var(--ease-out);
}
.nav-panel[hidden] { display: none; }
/* Keeps the pointer inside the menu while it crosses the gap from the
   trigger to the panel. */
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.985); }
}
/* Moving from one open menu to the other swaps the panel at once. */
.nav-panel.is-instant { animation: none; }
/* Product: three grouped columns and a narrower one of plain links. */
.nav-panel-product { width: min(1000px, calc(100vw - 2 * var(--gutter))); }
.nav-panel-grid.nav-panel-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.72fr); }
.nav-group { padding: 6px 14px 2px; font-size: 12px; line-height: 16px; color: var(--ink-4); }
.nav-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  vertical-align: 1px;
}
.nav-panel-links { background: var(--bg-sunken); border-radius: 0 13px 13px 0; }
.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
  transition: background-color var(--motion), color var(--motion);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--bg); color: var(--ink); }
.nav-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 13px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-panel-col { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-panel-col + .nav-panel-col { box-shadow: -1px 0 0 var(--line); }
.nav-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background-color var(--motion);
}
.nav-item:hover, .nav-item:focus-visible { background: var(--bg-subtle); }
.nav-item-title { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.nav-item-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.nav-item[aria-current="page"] .nav-item-title::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--green);
}
.nav-panel-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 10px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
}
.nav-panel-new { font-weight: 500; color: var(--ink); }
.nav-panel-more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; transition: color var(--motion); }
.nav-panel-foot:hover .nav-panel-more { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .nav-panel { animation: none; }
}

/* Tighter links on narrow desktops. */
@media (max-width: 1099px) {
  .site-nav > a, .nav-menu-trigger { padding: 0 8px; }
}
@media (max-width: 899px) {
  .site-nav { display: none; }
}
@media (max-width: 419px) {
  .signin { display: none; }
}

/* ---------------------------------------------------------------- shared type */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
}
.orb {
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--orb);
}
.section-title {
  margin-top: 12px;
  max-width: 820px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.section-lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-3);
}
.muted {
  background: linear-gradient(90deg, var(--ink-3), var(--ink-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: var(--section-y) 0; }
.section + .section,
.section-rule { border-top: 1px solid var(--line); }
.section-sunk { background: var(--bg-subtle); border-top: 0 !important; }

/* The design system's hero glow: five soft fields, strongest top right. */
.glow {
  position: absolute;
  top: -160px;
  right: -10%;
  width: 78%;
  height: 860px;
  pointer-events: none;
  filter: blur(28px);
  background:
    radial-gradient(38% 42% at 74% 20%, var(--glow-lavender) 0%, rgba(235, 234, 247, 0) 72%),
    radial-gradient(34% 40% at 94% 38%, var(--glow-pink) 0%, rgba(242, 228, 226, 0) 72%),
    radial-gradient(32% 36% at 56% 6%, var(--glow-sky) 0%, rgba(230, 236, 244, 0) 72%),
    radial-gradient(30% 38% at 70% 56%, var(--glow-peach) 0%, rgba(245, 230, 221, 0) 72%),
    radial-gradient(26% 30% at 99% 4%, var(--glow-mint) 0%, rgba(233, 244, 239, 0) 72%);
}

/* ---------------------------------------------------------------- homepage */

.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 88px); }
.hero .wrap { position: relative; }
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px 0 5px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-control);
  font-size: 13px;
  color: var(--ink-2);
  transition: background-color var(--motion), transform 160ms var(--ease-out);
}
.announce:hover { background: var(--bg-subtle); }
.announce:active { transform: scale(0.97); }
.announce-badge {
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 500;
}
.hero-title {
  margin-top: 28px;
  max-width: 980px;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.hero-lede {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
}
.hero .btn-row { margin-top: 36px; }
/* Hero entrance, once per visit: the title leads and travels furthest, the
   copy and buttons follow with less, the pill and the meta line only fade,
   and the console rises last. Nothing waits on it to be clickable. */
@keyframes rise-in { from { opacity: 0; transform: translateY(var(--rise, 0px)); } }
.hero .announce, .hero-title, .hero-lede, .hero .btn-row, .hero-meta, .hero-shot {
  animation: rise-in var(--dur, 560ms) var(--ease-out) both;
}
/* backwards, not both: rise-in moves transform, and a held fill would swallow the pill's press. */
.hero .announce { --dur: 420ms; animation-fill-mode: backwards; }
.hero-title { --rise: 16px; --dur: 640ms; animation-delay: 60ms; }
.hero-lede { --rise: 10px; animation-delay: 170ms; }
.hero .btn-row { --rise: 8px; --dur: 520ms; animation-delay: 260ms; }
.hero-meta { --dur: 420ms; animation-delay: 340ms; }
.hero-shot { --rise: 24px; --dur: 760ms; animation-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .hero .announce, .hero-title, .hero-lede, .hero .btn-row, .hero-meta, .hero-shot { --rise: 0px; animation-duration: 300ms; animation-delay: 0ms; }
}
/* The orb beside the headline (hero-orb.js), and the sample call's play
   button. The canvas overhangs its box so the glass's shadow and caustics
   have room. */
.hero-orb {
  position: absolute;
  top: -20px;
  right: var(--gutter);
  display: block;
  width: clamp(300px, 32vw, 440px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-orb canvas { position: absolute; inset: -14%; width: 128%; height: 128%; display: none; }
.hero-orb.has-orb canvas { display: block; }
.hero-orb .orb-fallback { position: absolute; inset: 13%; width: 74%; height: 74%; }
.hero-orb.has-orb .orb-fallback { display: none; }
/* Complete: a check drawn inside the single drop when the sample call ends. */
.hero-orb-mark { position: absolute; left: 34%; top: 34%; width: 32%; height: 32%; overflow: visible; opacity: 0; filter: drop-shadow(0 3px 6px rgba(47, 154, 87, 0.35)); transition: opacity 200ms ease; pointer-events: none; }
.hero-orb-mark path { stroke-dasharray: 44; stroke-dashoffset: 44; transition: stroke-dashoffset 450ms var(--ease-out) 150ms; }
.hero-orb.is-complete .hero-orb-mark { opacity: 1; }
.hero-orb.is-complete .hero-orb-mark path { stroke-dashoffset: 0; }
.hero-orb:not(.has-orb) .hero-orb-mark { display: none; }
/* Play, at the centre where the drops meet: it starts the sample call (the
   whole orb is the click target). A frosted grey circle, the same as the
   sound button on the agent showcase's orb. It steps aside while the call
   plays and when it ends, so the drops can be seen; while the call plays,
   pointing at the orb or focusing it brings it back as pause. */
.hero-orb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(44px, 13%, 56px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.3);
  color: #fff;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 200ms ease, transform 300ms var(--ease-out), background-color var(--motion);
  pointer-events: none;
}
.hero-orb-play svg { width: 40%; height: 40%; }
.hero-orb-pause-icon,
.hero-orb.is-playing .hero-orb-play-icon { display: none; }
.hero-orb.is-playing .hero-orb-pause-icon { display: block; }
.hero-orb:hover .hero-orb-play { background: rgba(10, 10, 10, 0.45); transform: translate(-50%, -50%) scale(1.06); }
.hero-orb.is-playing .hero-orb-play,
.hero-orb.is-complete .hero-orb-play { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
.hero-orb.is-playing:focus-visible .hero-orb-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) {
  .hero-orb.is-playing:hover .hero-orb-play { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb-mark path { transition: none; }
  .hero-orb-play { transition: opacity 200ms ease; }
}
@media (max-width: 959px) {
  .hero-orb { top: 8px; width: 240px; }
  .hero-lede { max-width: min(560px, calc(100% - 270px)); }
}
/* Phones: below the buttons, centred, just above the console. */
@media (max-width: 639px) {
  .hero-orb { position: relative; top: auto; right: auto; width: 188px; margin: 36px auto -28px; }
  .hero-lede { max-width: none; }
}
.hero-meta { margin-top: 20px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.hero-shot {
  position: relative;
  margin-top: 64px;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.hero-shot:has(.is-compact) { -webkit-mask-image: none; mask-image: none; }

/* "Start with your agent": three assistants' marks stacked like avatars,
   and a popover under the button once the prompt is copied (site.js). While
   it is open the row sits above the console and the orb, so the popover can
   overlap them; the rest of the time the orb stays clickable. */
.hero .btn-row:has(.agent-start-pop:not([hidden])) { position: relative; z-index: 2; }
.agent-start { position: relative; }
html:not(.js) .agent-start { display: none; }
.agent-start-btn { --btn-bg: var(--bg); gap: 10px; padding-left: 14px; }
.agent-start-btn:hover { --btn-bg: var(--bg-subtle); }
.assistant-marks { display: inline-flex; align-items: center; }
.assistant-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--btn-bg, var(--bg)), inset 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--motion);
}
.assistant-mark + .assistant-mark { margin-left: -6px; }
.assistant-mark img { width: 13px; height: 13px; }
.agent-start-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 10;
  width: 340px;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 14px 16px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero);
  transform-origin: 32px top;
  animation: pop-in 180ms var(--ease-out) both;
}
.agent-start-pop[hidden] { display: none; }
.agent-start-pop.is-blocked .agent-start-ok { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.agent-start-pop-head { display: flex; align-items: center; gap: 8px; }
.agent-start-pop-title { flex: 1; font-size: 15px; line-height: 22px; font-weight: 500; }
.agent-start-close {
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion);
}
.agent-start-close:hover { background: var(--bg-subtle); color: var(--ink); }
.agent-start-pop-text { margin-top: 6px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.agent-start-prompt {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--ink);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.agent-start-more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
}
.agent-start-more svg { transition: transform var(--motion); }
.agent-start-more:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .agent-start-pop { animation: fade-in 150ms ease both; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
}
.facts > div { padding: 24px 24px 0 0; }
.fact-n {
  font-size: 40px;
  line-height: 46px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.fact-l { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.facts-section { padding: 24px 0 var(--section-y); }

/* Platform: four tabs, each with its features beside a product shot. */
.pf { margin-top: 56px; }
.pf-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pf-tab {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.pf-track {
  display: block;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.pf-fill {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.pf-tab[aria-selected="true"] .pf-fill { transform: none; }
.pf.is-cycling .pf-tab[aria-selected="true"] .pf-fill { animation: pf-fill var(--pf-dur, 7s) linear both; }
/* Scaled, not resized: the line runs for seven seconds, so it stays off layout. */
@keyframes pf-fill { from { transform: scaleX(0); } to { transform: none; } }
.pf-tab-label {
  display: block;
  margin-top: 16px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  transition: color var(--motion);
}
.pf-tab[aria-selected="true"] .pf-tab-label,
.pf-tab:hover .pf-tab-label { color: var(--ink); }
.pf-tab-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.pf-panels { margin-top: 28px; display: grid; gap: 64px; }
.js .pf-panel { grid-area: 1 / 1; }
.pf-panel {
  display: grid;
  grid-template-columns: 352px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.pf-panel[hidden] { display: none; }
.js .pf-panel[hidden] { display: grid; visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none; }
.js .pf-panel { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s; }
.pf-feats { list-style: none; padding-top: 8px; display: flex; flex-direction: column; gap: 28px; }
.pf-feats li { display: flex; gap: 14px; }
.pf-feats svg { flex: none; margin-top: 1px; color: var(--ink-2); }
.pf-feats h3 { font-size: 16px; line-height: 22px; font-weight: 500; }
.pf-feats p { margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--ink-3); }

@media (max-width: 1079px) {
  .pf-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pf-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; padding-top: 0; }
}
@media (max-width: 639px) {
  .pf-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}

/* Use cases with the 3D icons. */
.cases {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.case {
  padding: 24px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.case img {
  width: 112px;
  height: 112px;
  margin: -8px 0 12px -8px;
  mix-blend-mode: multiply;
}
.case h3 { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.cases.can-reveal:not(.is-in) .case { opacity: 0; }
/* The cards arrive once, as a wave: gaps shrink down the grid (site.js). */
@keyframes case-in { from { opacity: 0; transform: translateY(14px); } }
.cases.is-in .case { animation: case-in 520ms var(--ease-out) both; }
.cases.is-in .case:nth-child(2) { animation-delay: 70ms; }
.cases.is-in .case:nth-child(3) { animation-delay: 125ms; }
.cases.is-in .case:nth-child(4) { animation-delay: 170ms; }
.cases.is-in .case:nth-child(5) { animation-delay: 205ms; }
.cases.is-in .case:nth-child(6) { animation-delay: 230ms; }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cases.is-in .case { animation: fade-in 300ms ease both; animation-delay: 0ms !important; }
}
.case p { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-3); }

/* Each use case names the result its swarm is measured on, pinned to the
   card's foot so the six lines align across a row. */
.case { display: flex; flex-direction: column; }
.case .case-goal {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}
.case .case-goal svg { flex: none; color: var(--ink-3); }
.case > p:not(.case-goal) { margin-bottom: 20px; }

/* The swarm: a goal card, the five agents hung under it, and the dashed loop
   that carries the Coach's fixes back to the Architect. The connector lines
   run between column centres: five columns and four 16px gaps. */
.swarm { margin-top: 56px; }
.swarm-goal {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 22px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero);
}
.swarm-goal-head { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.swarm-goal-head .pill { margin-left: auto; }
.swarm-goal-title { margin-top: 10px; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.015em; }
.swarm-goal-rules { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.swarm-goal-progress {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-3);
}
.swarm-goal-progress b { font-weight: 500; color: var(--ink); }
.swarm-goal::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 32px;
  background: var(--ink-5);
}
.swarm-roles {
  --col-half: calc((100% - 64px) / 10);
  position: relative;
  list-style: none;
  padding-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.swarm-roles::before {
  content: '';
  position: absolute;
  top: 32px;
  left: var(--col-half);
  right: var(--col-half);
  height: 1px;
  background: var(--ink-5);
}
.role {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.role::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -32px;
  width: 1px;
  height: 32px;
  background: var(--ink-5);
}
.role-ic {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-control);
  color: var(--ink-2);
}
.role h3 { margin-top: 16px; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.role p { margin-top: 6px; margin-bottom: 18px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.role .role-now {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-2);
}
.role-now .dot { background: var(--ink-4); }
.role-now.is-live .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.role-now.is-waiting .dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.swarm-loop {
  position: relative;
  height: 36px;
  margin: 0 calc((100% - 64px) / 10) 12px;
  border: 1px dashed var(--ink-5);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
/* Arrowhead at the Architect's end: the loop runs right to left. */
.swarm-loop::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid var(--ink-4);
}
.swarm-loop span {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  padding: 0 14px;
  background: var(--bg);
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 1079px) {
  /* Three across, then the Judge and the Coach share the second row. */
  .swarm-roles { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 24px; }
  .role { grid-column: span 2; }
  .role:nth-child(n+4) { grid-column: span 3; }
  .swarm-goal::after, .swarm-roles::before, .role::before, .swarm-loop::before { display: none; }
  .swarm-loop { height: auto; margin: 20px 0 0; border: 0; }
  .swarm-loop span { position: static; display: block; transform: none; padding: 0; white-space: normal; text-align: center; }
}
@media (max-width: 719px) {
  .swarm-roles { grid-template-columns: minmax(0, 1fr); }
  .role, .role:nth-child(n+4) { grid-column: auto; }
}
/* The connectors draw once, on desktop, when the diagram comes into view
   (site.js adds can-draw, then is-drawn): the stub, the bar, the five drops,
   then the loop sweeps from the Coach back to the Architect. */
@media (min-width: 1080px) {
  .swarm.can-draw:not(.is-drawn) .swarm-goal::after,
  .swarm.can-draw:not(.is-drawn) .role::before { transform: scaleY(0); }
  .swarm.can-draw:not(.is-drawn) .swarm-roles::before { transform: scaleX(0); }
  .swarm.can-draw:not(.is-drawn) .swarm-loop { clip-path: inset(-12px -12px -12px 100%); }
  .swarm.can-draw:not(.is-drawn) .swarm-loop span,
  .swarm.can-draw:not(.is-drawn) .swarm-loop::before { opacity: 0; }

  .swarm-goal::after, .role::before { transform-origin: top; }
  .swarm-roles::before { transform-origin: center; }
  .swarm.is-drawn .swarm-goal::after { animation: swarm-drop 200ms var(--ease-out) backwards; }
  .swarm.is-drawn .swarm-roles::before { animation: swarm-span 320ms var(--ease-in-out) 160ms backwards; }
  .swarm.is-drawn .role::before { animation: swarm-drop 160ms var(--ease-out) 420ms backwards; }
  .swarm.is-drawn .swarm-loop { animation: swarm-loop 600ms var(--ease-in-out) 600ms backwards; }
  .swarm.is-drawn .swarm-loop span { animation: fade-in 200ms var(--ease-out) 950ms backwards; }
  .swarm.is-drawn .swarm-loop::before { animation: fade-in 150ms var(--ease-out) 1200ms backwards; }
}
@keyframes swarm-drop { from { transform: scaleY(0); } }
@keyframes swarm-span { from { transform: scaleX(0); } }
@keyframes swarm-loop { from { clip-path: inset(-12px -12px -12px 100%); } }
@media (min-width: 1080px) and (prefers-reduced-motion: reduce) {
  .swarm.can-draw:not(.is-drawn) .swarm-goal::after,
  .swarm.can-draw:not(.is-drawn) .role::before,
  .swarm.can-draw:not(.is-drawn) .swarm-roles::before { transform: none; opacity: 0; }
  .swarm.can-draw:not(.is-drawn) .swarm-loop { clip-path: none; opacity: 0; }
  .swarm.is-drawn .swarm-goal::after,
  .swarm.is-drawn .swarm-roles::before,
  .swarm.is-drawn .role::before,
  .swarm.is-drawn .swarm-loop,
  .swarm.is-drawn .swarm-loop span,
  .swarm.is-drawn .swarm-loop::before { animation: fade-in 200ms ease backwards; animation-delay: 0ms; }
}

/* Before and after launch: two tiles, each with a card that bleeds off the
   bottom edge, like the platform tiles. */
.setup {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.setup-tile {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 0;
  border-radius: var(--radius-xl);
  background: var(--bg-subtle);
  overflow: hidden;
}
.setup-tile h3 { font-size: 19px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; }
.setup-tile > p { margin-top: 8px; max-width: 500px; font-size: 16px; line-height: 25px; color: var(--ink-3); }
.setup-card {
  flex: 1;
  margin-top: 32px;
  padding: 20px 20px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero);
  font-size: 14px;
  line-height: 20px;
}
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.lb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 84px 48px;
  gap: 12px;
  align-items: center;
  padding: 11px 10px;
  border-top: 1px solid var(--line);
  font-feature-settings: 'tnum';
}
.lb-row > span:not(:first-child) { text-align: right; }
.lb-row.lb-cols { padding-top: 0; padding-bottom: 8px; border-top: 0; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.lb-setup b { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.lb-setup b svg { flex: none; }
.lb-setup .small { display: block; margin-top: 2px; }
.lb-row.is-picked { border-top-color: transparent; border-radius: var(--radius-sm); background: var(--green-tint); }
.lb-row.is-picked + .lb-row { border-top-color: transparent; }
.lb-foot { margin-top: 14px; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.lb-foot svg { flex: none; margin-top: 1px; }
.fix-head { display: flex; align-items: center; gap: 8px; }
.fix-head .pill-amber { margin-left: auto; }
.fix-title { margin-top: 16px; font-size: 16px; line-height: 22px; font-weight: 500; }
.fix-sub { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.fix-diff { margin-top: 14px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); }
.fix-diff p { margin-top: 8px; padding: 7px 10px; border-radius: 6px; font-size: 13px; line-height: 19px; }
.fix-diff .fix-del { background: var(--red-tint); color: var(--red-text); text-decoration: line-through; text-decoration-color: rgba(179, 54, 43, 0.45); }
.fix-diff .fix-add { background: var(--green-tint); color: var(--green-text); }
.fix-test { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.fix-test svg { flex: none; }
.fix-test .tnum { margin-left: auto; font-weight: 500; color: var(--green-text); }
.fix-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fix-actions .quiet { padding: 0 8px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 959px) {
  .setup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .setup-tile { padding: 24px 20px 0; }
  .setup-card { padding: 16px 14px 20px; }
  .lb-row { grid-template-columns: minmax(0, 1fr) 48px 72px; gap: 8px; padding: 10px 8px; }
  .lb-reply { display: none; }
  .fix-test { flex-wrap: wrap; }
}

/* Voice simulation: what you write for a voice test (left) and the graded
   call it produces (right), in one window. */
#simulation .eyebrow .pill { margin-left: 2px; }
.sim {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero);
  font-size: 14px;
  line-height: 20px;
}
.sim-write { display: flex; flex-direction: column; padding: 22px 24px 24px; border-right: 1px solid var(--line); background: var(--bg-sunken); }
.sim-run { display: flex; flex-direction: column; padding: 22px 24px 22px; }
.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sim-head .pill svg { flex: none; }
.sim-dim { font-weight: 400; color: var(--ink-3); }
.sim-label { margin-top: 20px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sim-field {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
}
.sim-criteria { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sim-criteria li { display: flex; gap: 10px; }
.sim-n {
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-subtle);
  font-size: 11px;
  line-height: 1;
  color: var(--ink-3);
  font-feature-settings: 'tnum';
}
.sim-settings { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sim-settings .chip-sm { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sim-actions { margin-top: auto; padding-top: 24px; display: flex; justify-content: flex-end; }
.sim-thread { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sim-turn { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.sim-turn .orb-20 { margin: 2px 0 0 2px; }
.sim-turn p { color: var(--ink); }
.sim-who { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sim-tag { padding: 0 6px; border-radius: var(--radius-pill); background: var(--amber-tint); color: var(--amber-text); font-size: 11px; line-height: 16px; }
.sim-time { font-size: 12px; line-height: 16px; color: var(--ink-4); font-feature-settings: 'tnum'; }
.sim-steps { margin-top: 20px; display: flex; gap: 2px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.sim-steps span { min-width: 0; padding: 4px 8px; overflow: hidden; border-radius: 6px; background: var(--bg-subtle); white-space: nowrap; text-overflow: ellipsis; }
/* The call's audio: grey bars for the agent, teal for the caller. */
.sim-wave { margin-top: 8px; height: 32px; display: flex; align-items: center; gap: 2px; }
.sim-wave i { flex: 1; height: var(--h); border-radius: 1px; background: var(--ink-5); }
.sim-wave i.c { background: #8fc1bc; }
.sim-results {
  margin-top: 18px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.sim-results .sim-label { margin-top: 14px; display: flex; justify-content: space-between; gap: 8px; }
.sim-checks { margin-top: 8px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sim-checks li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.sim-checks svg { flex: none; margin-top: 3px; }
.sim-timing { margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sim-timing div { display: flex; justify-content: space-between; gap: 12px; }
.sim-timing dt { color: var(--ink-3); }
.sim-timing dd { margin: 0; color: var(--ink); font-feature-settings: 'tnum'; text-align: right; }
#simulation .mm-points { margin-top: 48px; }
@media (max-width: 899px) {
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-write { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .sim-write, .sim-run { padding: 18px 16px 20px; }
  .sim-results { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sim-wave i:nth-child(even) { display: none; }
}

/* Outcome dialing: three generations of outbound calling, then an example
   campaign working toward its goal. */
.od-tiers {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
/* Each generation is a tab that opens its example board. */
.od-tier {
  display: block;
  padding: 20px 22px 22px;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion), box-shadow 200ms var(--ease-out);
}
.od-tier > span { display: block; }
.od-tier:hover { background: rgba(255, 255, 255, 0.6); }
.od-tier:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.od-tier .od-tier-name { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.od-tier-metric { margin-top: 8px; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-3); }
.od-tier-text { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.od-tier[aria-selected="true"] { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero); }
.od-tier[aria-selected="true"] .od-tier-name { color: var(--ink); font-weight: 500; }
.od-tier[aria-selected="true"] .od-tier-metric { color: var(--ink); }
.od-tier[aria-selected="true"] .od-tier-text { color: var(--ink-2); }
.od-panel[hidden] { display: none; }
.od-panel:not([hidden]) > .od-board { animation: pm-in 260ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .od-panel:not([hidden]) > .od-board { animation: none; } }
.od-board {
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-hero);
  font-size: 14px;
  line-height: 20px;
}
.od-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.od-bar .box-title { margin-right: 4px; }
.od-goal { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.od-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.od-score { padding: 22px 24px 20px; border-right: 1px solid var(--line); }
.od-big { display: flex; align-items: baseline; gap: 8px; }
.od-big .tnum { font-size: 52px; line-height: 56px; font-weight: 500; letter-spacing: -0.03em; }
.od-of { font-size: 15px; line-height: 20px; color: var(--ink-3); }
.od-score .meter { margin-top: 12px; }
.od-score .small { margin-top: 10px; }
.od-split { margin-top: 20px; list-style: none; border-top: 1px solid var(--line); }
.od-split li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.od-split li:last-child { border-bottom: 0; padding-bottom: 0; }
.od-split .tnum { font-weight: 500; color: var(--ink); }
.od-leads { padding: 22px 24px 12px; }
.od-leads .box-title { margin-bottom: 6px; }
.od-lead {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.od-lead:last-child { border-bottom: 0; }
.od-lead b { display: block; font-weight: 500; }
.od-lead .small { display: block; }
/* One booking plays once when the board comes into view (site.js,
   initOutcomeBoard): Ana's pill turns to Booked, then both counts roll from
   26 to 27 and the bar grows by one. The markup is the finished state;
   is-before is the armed state, is-arming applies it without transitions. */
.od-roll { --roll-h: 20px; display: inline-block; height: var(--roll-h); overflow: hidden; vertical-align: top; }
.od-big .od-roll { --roll-h: 56px; }
.od-roll > span { display: flex; flex-direction: column; transform: translateY(calc(-1 * var(--roll-h))); transition: transform 600ms var(--ease-out) 150ms; }
.od-roll > span > span { display: block; height: var(--roll-h); line-height: var(--roll-h); }
.od-board.is-before .od-roll > span { transform: none; }
.od-score .meter i { transform-origin: left; transition: transform 600ms var(--ease-out) 150ms; }
.od-board.is-before .od-score .meter i { transform: scaleX(0.963); }
.od-status { display: inline-grid; justify-items: end; }
.od-status > .pill { grid-area: 1 / 1; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.od-status-a { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); opacity: 0; transform: translateY(-6px); }
.od-status-a .dot { background: var(--green); }
.od-board.is-before .od-status-a { opacity: 1; transform: none; }
.od-board.is-before .od-status-b { opacity: 0; transform: translateY(6px); }
.od-board.is-arming .od-roll > span,
.od-board.is-arming .od-score .meter i,
.od-board.is-arming .od-status > .pill { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .od-roll > span, .od-score .meter i { transition: none; }
  .od-status > .pill { transform: none !important; transition: opacity 200ms ease; }
}
#outcome-dialing .mm-points { margin-top: 48px; }
@media (max-width: 899px) {
  .od-tiers { grid-template-columns: minmax(0, 1fr); }
  .od-body { grid-template-columns: minmax(0, 1fr); }
  .od-score { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 479px) {
  .od-goal { margin-left: 0; }
  .od-lead { grid-template-columns: 24px minmax(0, 1fr); }
  .od-lead > .pill, .od-lead > .od-status { grid-column: 2; justify-self: start; }
  .od-lead .od-status { justify-items: start; }
}

/* One platform: four tiles, after the agents page pattern. Pictures sit
   below the copy and bleed off the tile's right and bottom edges. */
.pgrid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ptile {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.ptile-wide { grid-column: span 2; }
.pgrid > .ptile:nth-child(n+3) { min-height: 560px; }
.ptile-copy { padding: 32px 32px 0; max-width: 640px; }
.ptile-copy h3 { font-size: 19px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; }
.ptile-copy p { margin-top: 8px; font-size: 16px; line-height: 25px; color: var(--ink-3); }
.ptile-shot { position: relative; flex: 1; min-height: 360px; margin: 48px 0 0 32px; overflow: hidden; }
.pgrid-foot {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: start;
}
.pgrid-foot > p { max-width: 640px; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; letter-spacing: -0.01em; }
.res-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.res-links a { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 17px; line-height: 24px; }
.res-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--ink-2);
  transition: background-color var(--motion);
}
.res-links a:hover .res-icon { background: var(--bg-muted); }

@media (max-width: 959px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .ptile-wide { grid-column: auto; }
  .ptile, .pgrid > .ptile:nth-child(n+3) { min-height: 0; }
  .ptile-shot { flex: none; height: 400px; margin: 32px 0 0 20px; }
  .pgrid-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .ptile-shot { height: 330px; }
  .ptile-shot > * { transform: scale(0.8); transform-origin: 0 0; }
  /* Phones: the editor's sidebar becomes a row of tabs above the screen,
     scrolled sideways within the visible width (the shot is scaled 0.8). */
  .flow-win { flex-direction: column; }
  .flow-win .flow-side { width: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-win .flow-brand, .flow-win .flow-agent, .flow-win .flow-group { display: none; }
  .flow-win .flow-tabs { flex-direction: row; max-width: calc((100vw - 2 * var(--gutter) - 20px) / 0.8); overflow-x: auto; scrollbar-width: none; }
  .flow-win .flow-tabs::-webkit-scrollbar { display: none; }
  .flow-win .flow-item { width: auto; flex: none; }
}

/* For your customers: photographs of people, with what the agent did for
   them laid over the picture. Tabs advance on their own, like the platform
   section, and share its keyframes. */
.mo { margin-top: 48px; }
.mo-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #2b2723;
  aspect-ratio: 1240 / 580;
  min-height: 520px;
}
.mo-panel { position: relative; grid-area: 1 / 1; min-height: 100%; }
.mo-panel + .mo-panel { display: none; }
.js .mo-panel + .mo-panel { display: block; }
.js .mo-panel { transition: opacity 600ms var(--ease-out), visibility 0s; }
.js .mo-panel[hidden] { display: block; visibility: hidden; opacity: 0; transition: opacity 600ms var(--ease-out), visibility 0s 600ms; }
.mo-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.mo-panel:not([hidden]) .mo-photo { animation: mo-zoom 9s var(--ease-out) both; }
@keyframes mo-zoom { from { transform: scale(1.06); } to { transform: none; } }
.mo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.12) 46%, rgba(10, 10, 10, 0.06) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 52%);
}
.mo-copy { position: absolute; left: 48px; bottom: 44px; max-width: 440px; color: #ffffff; }
.mo-copy h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.mo-copy p { margin-top: 12px; font-size: 17px; line-height: 26px; color: rgba(255, 255, 255, 0.86); }
.mo-ui {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 392px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
}
.mo-glass {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(24, 22, 20, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.mo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-hero);
  color: var(--ink);
}
.mo-head { font-size: 13px; line-height: 18px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.mo-k { display: block; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.66); }
.mo-v { display: block; font-size: 15px; line-height: 21px; }
.mo-card .mo-k { color: var(--ink-3); }
.mo-card .mo-v { font-weight: 500; }
.mo-rows { margin-top: 12px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mo-rows li { position: relative; display: flex; align-items: center; gap: 12px; }
.mo-rows li + li::before { content: ''; position: absolute; left: 15px; top: -12px; width: 1px; height: 12px; background: rgba(255, 255, 255, 0.24); }
.mo-ic {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
}
.mo-orb { width: 36px; height: 36px; flex: none; background: var(--orb); }
.mo-orb-sm { width: 22px; height: 22px; margin-top: 1px; }
.mo-chip { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: var(--radius-pill); align-self: flex-start; }
.mo-say { align-items: flex-start; }
.mo-say p { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.mo-say b { font-weight: 500; color: var(--ink); background: linear-gradient(transparent 62%, rgba(245, 174, 134, 0.38) 62%); }
.mo-pair { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-reply, .mo-done { padding: 10px 16px; border-radius: var(--radius-pill); font-size: 15px; line-height: 20px; }
.mo-done { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.mo-steps li { gap: 14px; }
.mo-steps li + li::before { left: 4px; }
.mo-dot { width: 9px; height: 9px; flex: none; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.45); }
.mo-steps .mo-k { margin-top: 1px; }
.mo-steps .is-now .mo-dot { background: #7fd36a; box-shadow: 0 0 0 4px rgba(127, 211, 106, 0.22); }
.mo-check { flex: none; }
.mo-bars { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mo-bar-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.mo-bar { display: block; margin-top: 5px; height: 4px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.mo-bar i { display: block; height: 100%; border-radius: inherit; background: rgba(255, 255, 255, 0.85); }
.mo-bars .is-new .mo-bar i { background: #f5ae86; }
.mo-issue { flex-direction: column; align-items: flex-start; gap: 4px; }
.mo-issue .mo-k { display: inline-flex; align-items: center; gap: 6px; }
.mo-flag { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--amber); }
.mo-actions { margin-top: 10px; display: flex; align-items: center; gap: 14px; }
.mo-btn { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 500; }
.mo-quiet { font-size: 13px; color: var(--ink-3); }

/* Each picture's overlay arrives piece by piece. */
.mo-panel:not([hidden]) .mo-ui > *,
.mo-panel:not([hidden]) .mo-rows li,
.mo-panel:not([hidden]) .mo-bars > div,
.mo-panel:not([hidden]) .mo-copy { animation: mo-in 600ms var(--ease-out) both; }
.mo-panel:not([hidden]) .mo-copy { animation-delay: 150ms; }
.mo-panel:not([hidden]) .mo-ui > :nth-child(1) { animation-delay: 300ms; }
.mo-panel:not([hidden]) .mo-ui > :nth-child(2) { animation-delay: 1500ms; }
.mo-panel:not([hidden]) .mo-ui > :nth-child(3) { animation-delay: 2400ms; }
.mo-panel:not([hidden]) .mo-rows li:nth-child(1), .mo-panel:not([hidden]) .mo-bars > div:nth-child(1) { animation-delay: 450ms; }
.mo-panel:not([hidden]) .mo-rows li:nth-child(2), .mo-panel:not([hidden]) .mo-bars > div:nth-child(2) { animation-delay: 700ms; }
.mo-panel:not([hidden]) .mo-rows li:nth-child(3), .mo-panel:not([hidden]) .mo-bars > div:nth-child(3) { animation-delay: 950ms; }
.mo-panel:not([hidden]) .mo-rows li:nth-child(4) { animation-delay: 1200ms; }
@keyframes mo-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mo-tabs { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 32px; }
.mo-tab { display: block; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.mo-track { display: block; height: 2px; overflow: hidden; border-radius: var(--radius-pill); background: var(--line-strong); }
.mo-fill { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.mo-tab[aria-selected="true"] .mo-fill { transform: none; }
.mo.is-cycling .mo-tab[aria-selected="true"] .mo-fill { animation: pf-fill var(--pf-dur, 7s) linear both; }
.mo-tab-label { display: block; margin-top: 16px; font-size: 19px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); transition: color var(--motion); }
.mo-tab[aria-selected="true"] .mo-tab-label, .mo-tab:hover .mo-tab-label { color: var(--ink); }
.mo-tab-desc { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink-3); }

/* Narrow screens stack each moment: the photograph, then its story and
   the agent's work below it, so nothing covers the person's face. */
@media (max-width: 959px) {
  .mo-stage { aspect-ratio: auto; min-height: 0; background: #1f1c19; }
  .mo-panel { display: flex; flex-direction: column; }
  .js .mo-panel + .mo-panel, .js .mo-panel[hidden] { display: flex; }
  .mo-photo { position: relative; inset: auto; height: 400px; flex: none; }
  .mo-panel:not([hidden]) .mo-photo { animation: none; }
  .mo-shade { bottom: auto; height: 400px; background: linear-gradient(0deg, #1f1c19 0%, rgba(31, 28, 25, 0) 38%); }
  .mo-copy { position: relative; left: auto; bottom: auto; max-width: none; margin-top: -48px; padding: 0 24px; }
  .mo-ui { position: relative; left: auto; right: auto; top: auto; width: auto; transform: none; padding: 24px 16px 20px; }
  .mo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 599px) {
  .mo-photo { height: 300px; }
  .mo-shade { height: 300px; }
  .mo-copy { margin-top: -40px; padding: 0 20px; }
  .mo-ui { gap: 8px; padding: 20px 12px 14px; }
  .mo-glass { padding: 12px 14px; }
  .mo-rows { gap: 8px; }
  .mo-rows li + li::before { top: -8px; height: 8px; left: 13px; }
  .mo-steps li + li::before { left: 4px; }
  .mo-ic { width: 28px; height: 28px; }
  .mo-v { font-size: 14px; line-height: 19px; }
  .mo-copy p { font-size: 15px; line-height: 23px; }
  .mo-tab-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mo-panel:not([hidden]) .mo-photo,
  .mo-panel:not([hidden]) .mo-ui > *,
  .mo-panel:not([hidden]) .mo-rows li,
  .mo-panel:not([hidden]) .mo-bars > div,
  .mo-panel:not([hidden]) .mo-copy { animation: none; }
  .js .mo-panel, .js .mo-panel[hidden] { transition: none; }
}

/* Mastermind section. */
.mm-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.mm-points > div { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.mm-points h3 { font-size: 16px; line-height: 22px; font-weight: 500; }
.mm-points p { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
.mm-shot { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; }

/* Integrations strip. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
.split .section-title { font-size: clamp(28px, 3vw, 36px); max-width: 440px; margin-top: 0; }
.split .btn { margin-top: 32px; }
.tool-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px 32px;
}
.tool-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 17px;
  line-height: 24px;
}
.logo-tile {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-control);
  transition: box-shadow var(--motion);
}
.logo-tile img { width: 22px; height: 22px; }
.logo-tile-lg { width: 64px; height: 64px; border-radius: var(--radius-lg); }
.logo-tile-lg img { width: 32px; height: 32px; }
.tool-list a:hover .logo-tile { box-shadow: inset 0 0 0 1px var(--ink-5), var(--shadow-control); }

/* FAQ. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  min-height: 64px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--ink-3); transition: transform 250ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 40px 22px 0; margin-top: -4px; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.faq p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Answers open with their height instead of snapping (where the browser can
   animate details content; elsewhere they open at once, as before). */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content,
  .ip-trouble::details-content {
    block-size: 0;
    overflow-y: clip;
    opacity: 0;
    transition: block-size 250ms var(--ease-out), opacity 200ms var(--ease-out), content-visibility 250ms allow-discrete;
  }
  .faq details[open]::details-content,
  .ip-trouble[open]::details-content { block-size: auto; opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .faq details::details-content,
    .ip-trouble::details-content { transition: opacity 150ms ease, content-visibility 150ms allow-discrete; }
    .faq details[open]::details-content,
    .ip-trouble[open]::details-content { transition-property: opacity, content-visibility; }
  }
}
.faq-aside p { margin-top: 16px; max-width: 360px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
.faq-aside a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Closing call to action. */
.cta { position: relative; overflow: hidden; padding: 128px 0 136px; background: var(--bg-subtle); }
.cta .glow { top: -20%; right: -10%; width: 70%; height: 140%; }
.cta .wrap { position: relative; }
.cta-title {
  max-width: 1120px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.cta .btn-row { margin-top: 36px; }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}
.footer-h { font-size: 13px; line-height: 18px; color: var(--ink-4); }
.footer-cols ul { margin-top: 12px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.footer-cols a:hover { color: var(--ink); }
.footer-base {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- integrations directory */

.page-hero { position: relative; overflow: hidden; padding: 88px 0 40px; }
.page-hero .glow { height: 620px; width: 70%; }
.page-hero .wrap { position: relative; }
.page-title {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.page-lede {
  margin-top: 20px;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
}
.int-tools { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.search {
  flex: 0 1 440px;
  min-width: 260px;
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-3);
}
.search:focus-within { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-4); }
.int-count { font-size: 14px; color: var(--ink-3); font-feature-settings: 'tnum'; }

.chips-bar {
  position: sticky;
  top: 64px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
/* Wide screens show every category; narrow ones scroll the row. */
@media (min-width: 1024px) {
  .chips { flex-wrap: wrap; overflow-x: visible; }
}
.chip {
  flex: none;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion), transform 160ms var(--ease-out);
}
.chip:hover { background: var(--bg-subtle); }
.chip-count { font-weight: 400; color: var(--ink-4); font-feature-settings: 'tnum'; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip[aria-pressed="true"] .chip-count { color: #a3a3a3; }

.int-groups { padding: 48px 0 96px; }
.int-groups .wrap { display: flex; flex-direction: column; gap: 64px; }
.int-group[hidden] { display: none; }
.int-group-head { display: flex; align-items: baseline; gap: 10px; }
.int-group-head h2 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; font-weight: 500; }
.int-group-count { font-size: 14px; color: var(--ink-4); font-feature-settings: 'tnum'; }
.int-group-desc { margin-top: 6px; max-width: 620px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
.int-grid {
  margin-top: 20px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.int-grid li { display: flex; }
.int-grid li[hidden] { display: none; }
.int-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background-color var(--motion), border-color var(--motion);
}
.int-card:hover { background: var(--bg-subtle); border-color: var(--line-strong); }
.int-card-top { display: flex; align-items: center; justify-content: space-between; }
.int-card-arrow { color: var(--ink-4); transition: color var(--motion); }
.int-card:hover .int-card-arrow { color: var(--ink); }
.int-card-name { margin-top: 20px; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.int-card-blurb { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.int-card-tags { margin-top: auto; padding-top: 16px; display: flex; gap: 6px; }
.tag {
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 12px;
  color: var(--ink-2);
}
.int-card:hover .tag { background: var(--bg); }
.int-empty { padding: 56px 0; text-align: center; color: var(--ink-3); font-size: 15px; line-height: 22px; }
.int-empty-title { font-size: 20px; line-height: 26px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.int-empty .btn { margin-top: 20px; }

.band-section { padding: 0 0 112px; }
.band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--bg-subtle);
}
.band > :not(.glow) { position: relative; }
.band-copy { flex: 1 1 420px; }
.band h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.band p { margin-top: 10px; max-width: 560px; font-size: 16px; line-height: 24px; color: var(--ink-3); }
.band-glow .glow { top: -40%; right: -10%; width: 70%; height: 180%; }

/* ---------------------------------------------------------------- integration page */

.ip-hero { position: relative; overflow: hidden; padding: 40px 0 64px; border-bottom: 1px solid var(--line); }
.ip-hero .glow { height: 640px; width: 70%; top: -200px; }
.ip-hero .wrap { position: relative; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb svg { color: var(--ink-5); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }
.ip-hero-grid { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.ip-hero-main { flex: 999 1 560px; min-width: 0; }
.ip-title {
  margin-top: 28px;
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.ip-lede { margin-top: 20px; max-width: 640px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-3); }
.ip-hero-main .btn-row { margin-top: 32px; }
.ip-meta { flex: 1 1 300px; max-width: 380px; padding: 8px 24px; border-radius: var(--radius-lg); background: var(--bg-subtle); }
.ip-meta dl { margin: 0; }
.ip-meta dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 20px;
}
.ip-meta dl > div:last-child { border-bottom: 0; }
.ip-meta dt { color: var(--ink-3); }
.ip-meta dd { margin: 0; text-align: right; }
.ip-meta a { text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 3px; }

.ip-body {
  padding-top: 64px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 64px;
}
.ip-toc { flex: 1 1 200px; max-width: 240px; position: sticky; top: 96px; }
.ip-label { font-size: 13px; line-height: 18px; color: var(--ink-4); }
.ip-toc ul { margin-top: 12px; list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.ip-toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-3);
  transition: color var(--motion), border-color var(--motion);
}
.ip-toc a:hover { color: var(--ink); }
.ip-toc a.is-current { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 899px) {
  .ip-toc { display: none; }
}
.ip-article { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.ip-section + .ip-section { margin-top: 72px; }
.ip-section h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; font-weight: 500; }
.ip-section > p { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--ink-2); }
.ip-section > h2 + p { margin-top: 20px; }
.ip-problems { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ip-problem { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-subtle); }
.ip-problem h3 { font-size: 17px; line-height: 24px; font-weight: 500; }
.ip-problem p { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
.ip-features { margin-top: 8px; }
.ip-feature { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ip-feature:last-child { border-bottom: 0; }
.ip-feature-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.ip-feature h3 { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.ip-feature ul { margin-top: 10px; padding-left: 18px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.ip-feature li + li { margin-top: 4px; }
.ip-why { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.ip-why strong { color: var(--ink); font-weight: 500; }

.segmented {
  margin-top: 24px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
}
.segmented button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion), transform 160ms var(--ease-out);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-control); }
.ip-tabpanels { margin-top: 24px; }
.ip-tabpanel + .ip-tabpanel { margin-top: 24px; }
.js .ip-tabpanel + .ip-tabpanel { margin-top: 0; }
.ip-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ip-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.ip-step-n {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.ip-step-h { font-size: 16px; line-height: 22px; font-weight: 500; }
.ip-steps p + p { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.ip-steps ul { margin-top: 8px; padding-left: 18px; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.ip-steps ul + p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.ip-tools { list-style: none; padding-left: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.ip-tools li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-subtle); }
.ip-tools li > code { color: var(--ink); font-weight: 500; }
.ip-alt { margin-top: 40px; }
.ip-alt-h { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; font-weight: 500; }
.ip-alt > p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.ip-alt > .ip-steps { margin-top: 16px; }
.ip-steps .ip-bullets { list-style: disc; }
.ip-steps .ip-bullets li { display: list-item; padding: 0; border: 0; border-radius: 0; }
.ip-steps .ip-bullets li + li { margin-top: 4px; }
.ip-article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.ip-intro { margin-top: 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 28px; color: var(--ink-2); }
.ip-intro a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 3px; }
.ip-problem ul { margin-top: 8px; padding-left: 18px; font-size: 15px; line-height: 22px; color: var(--ink-3); }
.ip-problem li + li { margin-top: 4px; }

.ip-troubles { margin-top: 20px; border-top: 1px solid var(--line); }
.ip-trouble { border-bottom: 1px solid var(--line); }
.ip-trouble summary {
  min-height: 60px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
}
.ip-trouble summary::-webkit-details-marker { display: none; }
.ip-trouble-caret { flex: none; color: var(--ink-3); transition: transform 250ms var(--ease-out); }
.ip-trouble[open] .ip-trouble-caret { transform: rotate(180deg); }
.ip-trouble-body { padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ip-trouble-body ul,
.ip-trouble-body ol { margin-top: 8px; padding-left: 20px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.ip-trouble-body li + li { margin-top: 4px; }
.ip-help {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.ip-help p { flex: 1 1 260px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.ip-resources { margin-top: 16px; list-style: none; border-top: 1px solid var(--line); }
.ip-resources li { border-bottom: 1px solid var(--line); }
.ip-resources a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 22px;
}
.ip-resources svg { color: var(--ink-3); }
.ip-resources a:hover svg { color: var(--ink); }
.ip-related { padding: 0 0 96px; }
.ip-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ip-related-head h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; font-weight: 500; }
.ip-related .int-grid { margin-top: 24px; }
