/* RabbitRMM site. Tokens first; components style through tokens only. */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #f4f7f4;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --ink: #0f1f18;
  --ink-2: #44554d;
  --ink-3: #6b7a73;
  --line: #dbe4dd;
  --line-strong: #c4d1c7;
  --green: #268f3b;
  --green-ink: #1d7a31;
  --green-soft: #e3f3e6;
  --blue: #0071bb;
  --blue-soft: #e2f0fa;
  --gold: #ffb30a;
  --gold-soft: #fff4d6;
  --red: #d64040;
  --red-soft: #fde7e7;
  --night: #08151d;
  --night-2: #0e2230;
  --night-line: rgba(160, 205, 230, 0.12);
  --night-ink: #e8f1ee;
  --night-ink-2: #9fb6b0;
  --shadow-1: 0 1px 2px rgba(15, 31, 24, 0.06), 0 1px 1px rgba(15, 31, 24, 0.04);
  --shadow-2: 0 10px 30px -12px rgba(15, 31, 24, 0.22), 0 2px 6px rgba(15, 31, 24, 0.06);
  --shadow-3: 0 40px 80px -30px rgba(4, 18, 26, 0.55), 0 12px 30px -12px rgba(4, 18, 26, 0.35);
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1316;
    --surface: #101c20;
    --surface-2: #142328;
    --ink: #e7efeb;
    --ink-2: #a9bab3;
    --ink-3: #82958d;
    --line: #20323a;
    --line-strong: #2c434c;
    --green: #3fb35a;
    --green-ink: #5cc874;
    --green-soft: #12301c;
    --blue: #43a3e6;
    --blue-soft: #0f2a3d;
    --gold-soft: #33280d;
    --red-soft: #3a1717;
    --night: #050d11;
    --night-2: #0b1a22;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --shadow-3: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0a1316;
  --surface: #101c20;
  --surface-2: #142328;
  --ink: #e7efeb;
  --ink-2: #a9bab3;
  --ink-3: #82958d;
  --line: #20323a;
  --line-strong: #2c434c;
  --green: #3fb35a;
  --green-ink: #5cc874;
  --green-soft: #12301c;
  --blue: #43a3e6;
  --blue-soft: #0f2a3d;
  --gold-soft: #33280d;
  --red-soft: #3a1717;
  --night: #050d11;
  --night-2: #0b1a22;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 750; line-height: 1.03; letter-spacing: -0.024em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 720; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 1.32rem; font-weight: 680; line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; font-weight: 680; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
kbd { background: var(--surface); border: 1px solid var(--line-strong); border-bottom-width: 2px; padding: 0 6px; border-radius: 6px; font-size: 0.82em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */

.btn {
  --b-bg: var(--ink);
  --b-fg: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 0.98rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { --b-bg: var(--green); --b-fg: #fff; }
.btn-primary:hover { --b-bg: var(--green-ink); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --b-bg: var(--surface); }
.btn-light { --b-bg: #fff; --b-fg: #0f1f18; }
.btn-outline-light { --b-bg: transparent; --b-fg: var(--night-ink); border-color: rgba(232, 241, 238, 0.28); }
.btn-outline-light:hover { --b-bg: rgba(255, 255, 255, 0.06); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: var(--blue); }
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.on-night { background: color-mix(in srgb, var(--night) 70%, transparent); }
.site-header.on-night:not(.is-scrolled) .brand,
.site-header.on-night:not(.is-scrolled) .nav-link,
.site-header.on-night:not(.is-scrolled) .icon-btn { color: var(--night-ink); }
.site-header.on-night.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 780 1.28rem/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 34px; height: 27px; }
.brand span b { color: var(--green); font-weight: 780; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.96rem; padding: 8px 12px; border-radius: 999px; }
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--green) 14%, transparent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav[data-open="true"] {
    display: grid; gap: 4px;
    padding: 12px var(--gutter) 22px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-nav a { padding: 12px 6px; font-size: 1.08rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-nav .actions { margin-top: 14px; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  margin-top: -68px;
  padding: calc(68px + clamp(56px, 9vw, 110px)) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* the subnet grid: dotted lattice, fading out toward the bottom */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(170, 215, 235, 0.18) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 1100px; height: 700px; left: 50%; top: 52%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(38, 143, 59, 0.42), transparent 70%), radial-gradient(closest-side, rgba(0, 113, 187, 0.45), transparent 70%);
  background-position: -180px 40px, 220px 0;
  background-repeat: no-repeat;
  filter: blur(40px);
  opacity: 0.85;
}
.hero h1, .hero h2 { color: #fff; }
.hero .lede { color: var(--night-ink-2); }
.hero-copy { max-width: 860px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5fd07a, #49b3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: #7fdc94; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 22px; color: var(--night-ink-2); font-size: 0.95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: #6fd487; }
.hero-stage { position: relative; margin-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 90px); }

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lede { margin-top: 18px; }
.page-hero.on-night { background: var(--night); color: var(--night-ink); margin-top: -68px; padding-top: calc(68px + clamp(56px, 8vw, 100px)); position: relative; overflow: hidden; isolation: isolate; }
.page-hero.on-night::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(170, 215, 235, 0.16) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 95%);
  mask-image: linear-gradient(180deg, #000, transparent 95%);
}
.page-hero.on-night h1 { color: #fff; }
.page-hero.on-night .lede { color: var(--night-ink-2); }
.page-hero.on-night .eyebrow { color: #7fdc94; }

/* ---------------------------------------------------------------- browser frame */

.frame {
  position: relative;
  border-radius: 14px;
  background: #0f1c24;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #13222b; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3c45; }
.frame-bar i:nth-child(1) { background: #ef6b5e; }
.frame-bar i:nth-child(2) { background: #f4be4f; }
.frame-bar i:nth-child(3) { background: #61c454; }
.frame-url { margin-left: 14px; flex: 1; max-width: 420px; height: 24px; border-radius: 7px; background: #0b161d; color: #8aa3ad; font: 500 0.78rem/24px var(--mono); padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-url b { color: #d6e4e0; font-weight: 500; }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #fff; }
.frame.light { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); }
.frame.light .frame-bar { background: var(--surface-2); border-bottom-color: var(--line); }
.frame.light .frame-url { background: var(--surface); color: var(--ink-3); border: 1px solid var(--line); }
.frame.light .frame-url b { color: var(--ink-2); }
.frame-caption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-3); }

.video-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.video-controls button {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 21, 29, 0.66); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.video-controls svg { width: 18px; height: 18px; }
.video-controls .is-paused .pause, .video-controls :not(.is-paused) > .play { display: none; }

/* floating status cards over the hero video */
.float-card {
  position: absolute; z-index: 2;
  background: rgba(255, 255, 255, 0.97); color: #0f1f18;
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
  border: 1px solid rgba(15, 31, 24, 0.08);
}
:root[data-theme="dark"] .float-card { background: rgba(16, 28, 32, 0.96); color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .float-card { background: rgba(16, 28, 32, 0.96); color: var(--ink); border-color: var(--line); } }
.float-card h4 { font-size: 0.95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.float-card .muted { color: var(--ink-3); font-size: 0.82rem; }
.float-rings { left: -28px; bottom: 120px; width: 330px; }
.float-ticket { right: -26px; top: 22%; width: 290px; }
@media (max-width: 1240px) { .float-rings { left: 14px; } .float-ticket { right: 14px; } }
@media (max-width: 860px) { .float-card { display: none; } }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font: 650 0.72rem/1 var(--body); letter-spacing: 0.01em; white-space: nowrap; }
.pill-green { background: var(--green-soft); color: var(--green-ink); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-gold { background: var(--gold-soft); color: #8a5a00; }
:root[data-theme="dark"] .pill-gold { color: #ffcc57; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-gold { color: #ffcc57; } }
.pill-red { background: var(--red-soft); color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------------------------------------------------------------- ring rollout (signature) */

.rings { display: grid; gap: 10px; }
.ring-row { display: grid; grid-template-columns: 62px 1fr 64px; align-items: center; gap: 10px; }
.ring-name { font: 650 0.8rem/1 var(--body); }
.ring-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.ring-dots i { width: 9px; height: 9px; border-radius: 3px; background: color-mix(in srgb, var(--ink-3) 25%, transparent); transition: background 0.3s ease, transform 0.3s ease; }
.ring-dots i.on { background: var(--green); }
.ring-dots i.soak { background: var(--gold); }
.ring-state { text-align: right; }
.gate { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 0.8rem; color: var(--ink-2); }
.gate svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-night { background: var(--night); color: var(--night-ink); }
.section-night h2, .section-night h3 { color: #fff; }
.section-night .lede, .section-night p { color: var(--night-ink-2); }
.section-night .eyebrow { color: #7fdc94; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* integration marquee */
.marquee { --gap: 14px; display: flex; overflow: hidden; gap: var(--gap); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap); flex: none; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font: 650 1rem/1 var(--display); letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap;
}
.wordmark .mono-badge { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 750 0.72rem/1 var(--display); color: #fff; }
.trust-label { text-align: center; color: var(--ink-3); font-size: 0.92rem; margin-bottom: 18px; }

/* pillars */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 12px; align-content: start;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card p { color: var(--ink-2); font-size: 0.98rem; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.blue { background: var(--blue-soft); color: var(--blue); }
.icon-tile.gold { background: var(--gold-soft); color: #9a6400; }
:root[data-theme="dark"] .icon-tile.gold { color: #ffcc57; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-tile.gold { color: #ffcc57; } }
.icon-tile.red { background: var(--red-soft); color: var(--red); }
.card ul, .check-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.96rem; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.38em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23268f3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* feature split: copy one side, big screen the other, alternating */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip .split-copy { order: 2; }
.split-copy { display: grid; gap: 18px; align-content: center; }
.split-copy > .btn, .split-copy > .link-arrow, .stack > .btn, .stack > .link-arrow { justify-self: start; }
.split-copy .check-list { margin-top: 6px; }
.split-media { position: relative; }
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-copy { order: 0; }
}
.bleed-right { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2)); }
@media (max-width: 900px) { .bleed-right { margin-right: 0; } }

.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--surface); overflow: hidden; }
.shot img, .shot video { width: 100%; }
.shot-crop { aspect-ratio: 16 / 10; }
.shot-crop img, .shot-crop video { height: 100%; object-fit: cover; object-position: top left; }
.shot-crop.right img { object-position: top right; }
.shot-crop.center img { object-position: top center; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 26px 6px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat b { font: 760 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 0.95rem; }
.section-night .stats { border-top-color: var(--night-line); }
.section-night .stat + .stat { border-left-color: var(--night-line); }
.section-night .stat b { color: #fff; }
.section-night .stat span { color: var(--night-ink-2); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* tabs (feature tour) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-2); font: 600 0.94rem/1 var(--body); cursor: pointer;
}
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.tab-panel .split-copy { padding-top: 8px; }
@media (max-width: 900px) { .tab-panel { grid-template-columns: minmax(0, 1fr); } }

/* quotes / callouts */
.callout { border-radius: var(--radius); padding: 20px 22px; background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); display: grid; gap: 6px; }
.callout.tip { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 28%, transparent); }
.callout.warn { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.callout strong { font-family: var(--display); }
.callout p { color: var(--ink-2); font-size: 0.97rem; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; background: var(--night); color: var(--night-ink); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 90% 120%, rgba(38, 143, 59, 0.45), transparent 70%), radial-gradient(500px 280px at 10% -20%, rgba(0, 113, 187, 0.5), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--night-ink-2); margin-top: 12px; }
.cta-band .actions { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------------------------------------------------------------- integrations page */

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.int-group { margin-top: 44px; }
.int-group h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.int-group h3 span { font: 500 0.85rem/1 var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.int-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.int-card header { display: flex; align-items: center; gap: 12px; }
.int-card .mono-badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 750 0.9rem/1 var(--display); color: #fff; flex: none; }
.int-card h4 { font-size: 1.04rem; }
.int-card p { color: var(--ink-2); font-size: 0.94rem; }
.int-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.badge-c1 { background: #0d6efd; } .badge-c2 { background: #e8590c; } .badge-c3 { background: #2f9e44; } .badge-c4 { background: #7048e8; }
.badge-c5 { background: #0c8599; } .badge-c6 { background: #c2255c; } .badge-c7 { background: #364fc7; } .badge-c8 { background: #5c940d; }
.badge-c9 { background: #d9480f; } .badge-c10 { background: #1971c2; } .badge-c11 { background: #495057; } .badge-c12 { background: #9c36b5; }

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 18px; align-content: start; position: relative; }
.price.featured { border: 2px solid var(--green); box-shadow: var(--shadow-2); }
.price .flag { position: absolute; top: -13px; left: 28px; }
.price h3 { font-size: 1.4rem; }
.price .amount { display: flex; align-items: baseline; gap: 8px; }
.price .amount b { font: 760 3rem/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .amount span { color: var(--ink-3); font-size: 0.92rem; line-height: 1.3; }
.price > p { color: var(--ink-2); font-size: 0.97rem; }
.price .btn { justify-content: center; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); gap: 4px; }
.billing-toggle button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 600 0.92rem/1 var(--body); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 1rem; position: sticky; top: 0; background: var(--surface); }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare td { text-align: center; width: 16%; }
.compare tr.group th { font: 650 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); background: var(--surface-2); padding-top: 16px; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--ink-3); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 650 1.05rem/1.4 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--body); color: var(--ink-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.field .hint { color: var(--ink-3); font-size: 0.86rem; }

/* ---------------------------------------------------------------- docs */

.docs-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 44px; padding: 40px 0 90px; align-items: start; }
@media (max-width: 1180px) { .docs-shell { grid-template-columns: 240px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) { .docs-shell { grid-template-columns: minmax(0, 1fr); padding-top: 20px; } .path { white-space: normal; } }
.docs-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
@media (max-width: 860px) { .docs-side { position: static; max-height: none; } }
.docs-side details { margin-bottom: 6px; }
.docs-side summary { display: none; }
@media (max-width: 860px) {
  .docs-side details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 6px 14px; }
  .docs-side summary { display: block; cursor: pointer; font-weight: 650; padding: 8px 0; }
}
.docs-side h5 { margin: 20px 0 8px; font: 650 0.74rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.docs-side h5:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.docs-side a:hover { color: var(--ink); background: var(--surface-2); }
.docs-side a[aria-current="page"], .docs-side a.is-active { color: var(--green-ink); background: var(--green-soft); font-weight: 600; }
.docs-toc { position: sticky; top: 92px; font-size: 0.88rem; }
.docs-toc h6 { margin: 0 0 10px; font: 650 0.74rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.docs-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--ink-3); text-decoration: none; }
.docs-toc a.lvl-3 { padding-left: 24px; }
.docs-toc a.is-active { color: var(--ink); border-left-color: var(--green); }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.85rem; margin-top: 56px; padding-top: 8px; }
.prose h3 { font-size: 1.25rem; margin-top: 34px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose .lede { margin-top: 14px; }
.prose figure { margin: 26px 0; }
.prose figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--display); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.anchor { color: var(--ink-3); text-decoration: none; margin-left: 8px; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.path { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: var(--ink); white-space: nowrap; }

.steps { counter-reset: step; display: grid; gap: 0; padding: 0; list-style: none; margin-top: 26px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 34px 58px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 750 1rem/1 var(--display);
}
.steps > li::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.steps p + p, .steps p + ul, .steps ul + p { margin-top: 10px; }

.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .doc-cards { grid-template-columns: 1fr; } }
.doc-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-nav a { display: grid; gap: 4px; text-decoration: none; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; min-width: 220px; background: var(--surface); }
.doc-nav a span { font-size: 0.82rem; color: var(--ink-3); }
.doc-nav a b { color: var(--ink); font-family: var(--display); }
.doc-nav a:last-child { text-align: right; }

/* clip figure with play-on-view */
.clip { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: var(--surface-2); }
.clip video, .clip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.clip .badge { position: absolute; left: 12px; top: 12px; }
.gif-link { font-size: 0.85rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--ink-2); font-size: 0.95rem; margin-top: 14px; max-width: 34ch; }
.site-footer h5 { margin: 0 0 14px; font: 650 0.76rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--ink); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--ink-3); font-size: 0.88rem; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* ---------------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* ---------------------------------------------------------------- misc layout helpers */

.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kicker-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kicker-list span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.88rem; color: var(--ink-2); background: var(--surface); }
.section-night .kicker-list span { border-color: var(--night-line); background: rgba(255, 255, 255, 0.03); color: var(--night-ink-2); }
.feature-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.feature-index a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.feature-index a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.feature-index svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.center .actions { justify-content: center; }
.center.stack { justify-items: center; }

.section-night .check-list, .section-night .card p, .section-night .muted { color: var(--night-ink-2); }
.section-night .check-list b, .section-night .card h3 { color: #fff; }
.section-night .card { background: rgba(255, 255, 255, 0.03); border-color: var(--night-line); }
.section-night .check-list li::before { background-color: rgba(95, 208, 122, 0.16); }
.steps { max-width: 820px; }
.compare thead th + th { text-align: center; }
.frame-url { min-width: 0; }
@media (max-width: 640px) {
  .doc-nav { flex-direction: column; }
  .doc-nav a { min-width: 0; }
  .doc-nav a:last-child { text-align: left; }
}
.hero h1 { margin-top: 18px; } .hero .lede { margin-top: 22px; }
