/* Game Pulse landing v4 - shell styles.
   clad world: paper and ink, stone rules, hairline frame, grain, pill buttons with text roll.
   One accent: --accent (Game Pulse blue). Tokens live in tokens.css; shell-only variables below. */

:root {
  --stone-400: #A8A29E;
  --stone-700: #44403C;
  --accent-text: #0660D0;
  --gp-row: #EEF4FC;
  --error: #B42318;
  --error-soft: rgba(180, 35, 24, 0.12);
  --placeholder: #737373;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 10, 10, 0.12), 0 4px 6px -4px rgba(10, 10, 10, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(10, 10, 10, 0.14), 0 8px 10px -6px rgba(10, 10, 10, 0.1);
  --shadow-card: 0 24px 60px -36px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 30px 70px -30px rgba(10, 10, 10, 0.38);

  --header-offset: 80px;
  --section-pad: 96px;
  --section-pad-end: 112px;

  /* Gray noise centred on 50% (sRGB), blended with overlay: texture without shifting the paper's mean luminance. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  color: var(--ink);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.lang-pending body { opacity: 0; animation: gp-unhide 0s linear 1.2s forwards; }
@keyframes gp-unhide { to { opacity: 1; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, textarea { font: inherit; caret-color: var(--accent); }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 9999px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: #B3AEA7; }
::-webkit-scrollbar-corner { background: var(--paper-2); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--scrollbar-thumb) var(--paper-2); }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--on-ink, #fff); font-size: 14px;
  transition: top 0.2s var(--ease-out-quart);
}
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 16px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--meta);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.h1 em, .h2 em, .statement em, .footer-h2 em {
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.h2 em, .h1 em { display: block; }

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 32px;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.625;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.sub {
  font-size: var(--fs-sub);
  line-height: 1.4;
  text-wrap: pretty;
}

.statement {
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  line-height: 1.375;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.demo-cap {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--meta);
  text-align: center;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--rule-strong);
  color: var(--ink);
  transition: text-decoration-color 0.3s;
}
.link:hover { text-decoration-color: currentColor; }

.nw { white-space: nowrap; }
@media (max-width: 480px) { #ut-title { font-size: clamp(26px, 7.2vw, 36px); } }
@media (max-width: 340px) { #ut-title .nw { white-space: normal; overflow-wrap: anywhere; } }
.dash { display: inline-block; width: 12px; height: 1px; background: currentColor; opacity: 0.7; flex: none; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.framed { border-inline: 1px solid var(--rule); }

.section { position: relative; border-top: 1px solid var(--rule); }
.section > .wrap { padding-block: var(--section-pad) var(--section-pad-end); }

.section-head { max-width: 768px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.left { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 24px; }
.section-head .h2 + .lead,
.section-head .h2 + .sub,
.section-head .h2 + ul { margin-top: 28px; }

.band-2 { background: var(--paper-2); }

.grain { position: relative; isolation: isolate; background-color: var(--paper); }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 260px 260px;
  mix-blend-mode: overlay;
  opacity: var(--grain-opacity, 1);
}

.site-main {
  position: relative;
  z-index: 1;
  display: block;
  background: var(--paper);
  overflow-x: clip;
}

section[id], article[id], [data-anchor] { scroll-margin-top: var(--header-offset); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-text);
  font-size: var(--fs-button);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s, transform 0.3s var(--ease-out-quart);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--pill, var(--ink-soft)); color: var(--on-ink, #fff); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--ink-hover, #000); box-shadow: var(--shadow-xl); }

.btn-outline { background: var(--surface, #fff); color: var(--ink); border-color: var(--outline); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink-soft); }

.btn-compact { height: 42px; padding: 0 22px; }
.btn-block { width: 100%; }

.roll-clip { display: block; overflow: hidden; height: 1.5em; }
[data-roll] {
  position: relative;
  display: block;
  transition: transform 0.3s var(--ease-roll);
}
[data-roll]::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  text-align: center;
}
.btn:hover [data-roll] { transform: translateY(-100%); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, box-shadow 0.5s, border-color 0.5s, -webkit-backdrop-filter 0.5s, backdrop-filter 0.5s;
  animation: header-in 0.6s var(--ease-out-quart) both;
}
@keyframes header-in { from { transform: translateY(-100px); } to { transform: none; } }

.site-header.is-scrolled {
  background: var(--header-glass, rgba(251, 251, 249, 0.8));
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom-color: var(--header-rule, rgba(229, 229, 229, 0.5));
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 48px;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out-quart);
}
.is-scrolled .header-inner, .menu-open .header-inner { transform: none; }

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  justify-self: start;
  border-radius: 6px;
}
.logo-word {
  font: 700 20px/1 var(--font-display);
  letter-spacing: -0.035em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.logo-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-ink, #fff);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.3s var(--ease-out-quart);
}
.logo-mark svg { width: 22px; height: 22px; }
.is-scrolled .logo-word { opacity: 0; }
.is-scrolled .logo-mark { opacity: 1; transform: none; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}
.nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font: 400 14px/20px var(--font-text);
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-pill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 36px;
  margin-top: -18px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s var(--ease-out-quart), opacity 0.25s;
}
.nav-pill i {
  position: absolute;
  top: 0;
  left: 0;
  height: 36px;
  background: var(--nav-pill, #EFEFED); /* ink 5% over paper, opaque so the segments never show seams */
  transition: transform 0.38s var(--ease-out-quart);
}
.nav-pill .np-l { width: 18px; border-radius: 18px 0 0 18px; }
.nav-pill .np-m { left: 17px; width: 1px; transform-origin: 0 50%; }
.nav-pill .np-r { width: 18px; border-radius: 0 18px 18px 0; }
.nav-pill.is-jump { transition: opacity 0.25s; }
.nav-pill.is-jump i { transition: none; }
.nav.has-pill .nav-pill { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--pill-track, rgba(242, 242, 240, 0.7));
}
.lang-switch button {
  height: 26px;
  min-width: 34px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font: 600 11.5px/1 var(--font-text);
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--surface-2, #fff);
  color: var(--accent-text);
  box-shadow: var(--thumb-shadow, 0 1px 2px rgba(10, 10, 10, 0.08), 0 1px 6px -2px rgba(10, 10, 10, 0.1));
}

/* Theme toggle: sibling of the language pill; the face rises like a pressed language button in dark */
.theme-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--pill-track, rgba(242, 242, 240, 0.7));
  color: var(--muted);
  transition: color 0.25s;
}
.theme-face {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.theme-face svg { grid-area: 1 / 1; width: 15px; height: 15px; transition: opacity 0.25s, transform 0.4s var(--ease-out-quart); }
.theme-face .ti-sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }
.theme-btn:hover, .mm-theme:hover .theme-btn { color: var(--ink); }
:root[data-theme="dark"] .theme-face {
  background: var(--surface-2);
  color: var(--accent-text);
  box-shadow: var(--thumb-shadow);
}
:root[data-theme="dark"] .theme-face .ti-moon { opacity: 0; transform: rotate(60deg) scale(0.6); }
:root[data-theme="dark"] .theme-face .ti-sun { opacity: 1; transform: none; }
.mm-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
  font: 400 17px/1.2 var(--font-text);
  color: var(--ink);
  text-align: left;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out-quart), top 0.3s var(--ease-out-quart);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out-quart);
}
.mm-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.3s;
}
.menu-open .mobile-menu { grid-template-rows: 1fr; }
.menu-open .mm-inner { visibility: visible; transition: visibility 0s; }
.mm-body { padding: 20px var(--gutter) 28px; }
.mm-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font: 400 21px/1.2 var(--font-text);
  color: var(--ink);
}
.mm-links a[aria-current="page"] { color: var(--accent-text); }
.mm-foot { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--rule); }

@media (max-width: 1279px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 1023px) {
  .nav, .header-actions > .btn, .header-actions > .theme-btn { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: grid; }
  .site-header.menu-open {
    background: var(--paper);
    border-bottom-color: var(--rule);
    box-shadow: 0 24px 40px -24px rgba(10, 10, 10, 0.18);
  }
  .header-actions { gap: 8px; }
}

/* ---------- Widget slots ---------- */

[data-gp-widget] { display: block; }
.widget-slot { margin: 0; }

gp-hero { display: block; }
gp-hero:not(:defined) { min-height: 100vh; min-height: 100svh; }
/* Grain lives on the poster, never over the WebGL canvas: some GPUs and webviews composite
   the canvas separately and drop the overlay blend, which turns the hero into raw gray noise. */
gp-hero .gph-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 260px 260px;
  mix-blend-mode: overlay;
  opacity: var(--grain-opacity, 1);
}

gp-processes:not(:defined),
gp-see:not(:defined),
gp-understand:not(:defined),
gp-answer:not(:defined),
gp-cases:not(:defined),
gp-integrations:not(:defined),
gp-remember:not(:defined),
gp-toolkit:not(:defined) {
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.025);
}
gp-processes:not(:defined) { min-height: 520px; }
gp-see:not(:defined)[variant="compact"],
gp-understand:not(:defined)[variant="compact"],
gp-answer:not(:defined)[variant="compact"] { min-height: 260px; }
gp-see:not(:defined)[variant="full"],
gp-understand:not(:defined)[variant="full"],
gp-answer:not(:defined)[variant="full"],
gp-remember:not(:defined) { min-height: 440px; }
gp-cases:not(:defined) { min-height: 600px; }
gp-integrations:not(:defined) { min-height: 420px; }
gp-toolkit:not(:defined) { min-height: 620px; }
gp-toolkit:not(:defined) > * { display: none; }

@media (max-width: 767px) {
  gp-processes:not(:defined) { min-height: 640px; }
  gp-integrations:not(:defined) { min-height: 600px; }
}

/* ---------- Logos and numbers ---------- */

.logos { background: var(--paper-2); }
.logos > .wrap { padding-block: 64px; }
.logos .eyebrow { text-align: center; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 72px;
  margin-top: 40px;
  min-height: 56px;
}
.wm {
  color: var(--wordmark, #3A3834);
  opacity: 0.7;
  white-space: nowrap;
  user-select: none;
  transition: opacity 0.3s;
}
.wm:hover { opacity: 1; }
.wm-aigrind { font: 700 25px/1 var(--font-display); letter-spacing: -0.05em; }
.wm-brick { font: 600 14px/1 var(--font-text); letter-spacing: 0.24em; text-transform: uppercase; }
.wm-brick b { font-weight: 600; letter-spacing: 0.24em; }
.wm-innova { font: italic 600 26px/1 var(--font-display); letter-spacing: -0.04em; }
.wm-hc { font: 400 23px/1 var(--font-display); letter-spacing: -0.03em; }
.wm-hc b { font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--rule-strong);
}
.stat { padding: 28px 28px 0; border-left: 1px solid var(--rule-strong); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-v {
  display: block;
  font: 400 44px/1 var(--font-display);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-l {
  display: block;
  margin-top: 12px;
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--foot-link);
}

/* ---------- Problem + steps ---------- */

.slot-processes { max-width: 1040px; margin: 0 auto; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 104px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, var(--tile) 0%, rgba(245, 245, 244, 0) 42%);
}
.step-body {
  position: relative;
  padding: 32px 32px 28px;
  transition: transform 0.5s var(--ease-out-expo);
}
.step-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step-card .h3 { margin-bottom: 12px; }
.step-link { color: inherit; border-radius: 4px; }
.step-text { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.step-stage {
  position: relative;
  margin-top: auto;
  padding: 20px 16px 16px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.step-stage > [data-gp-widget] { transition: transform 0.7s var(--ease-out-expo); transform-origin: 50% 100%; }
.step-stage .demo-cap { margin-top: 12px; }

@media (hover: hover) {
  .step-card:hover .step-body { transform: translateY(-6px); }
  .step-card:hover .step-stage > [data-gp-widget] { transform: scale(1.02); }
}

.steps-threads {
  position: absolute;
  left: -3%;
  top: 6%;
  width: 106%;
  height: 78%;
  z-index: 3;
  pointer-events: none;
  display: none;
  overflow: visible;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-size: 60% 100%;
  mask-size: 60% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: -150% 0;
  mask-position: -150% 0;
}
.steps-threads path {
  fill: none;
  stroke: var(--thread-ink, #26251F);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.steps-threads path.is-accent { stroke: var(--accent); }
.steps-threads g { filter: drop-shadow(0 0 2px rgba(10, 10, 10, 0.22)); }

@media (min-width: 768px) {
  .steps.is-armed .steps-threads { display: block; }
}
.steps.is-armed .step-card {
  clip-path: inset(0 100% 0 0 round 24px);
  filter: blur(8px);
}
.steps.is-in .step-card {
  clip-path: inset(0 0 0 0 round 24px);
  filter: blur(0);
  transition: clip-path 1s var(--ease-out-expo), filter 1s var(--ease-out-expo);
}
.steps.is-in .step-card:nth-child(2) { transition-delay: 0.2s; }
.steps.is-in .step-card:nth-child(3) { transition-delay: 0.4s; }
.steps.is-in .step-card:nth-child(4) { transition-delay: 0.6s; }
.steps.is-in .steps-threads { animation: threads-sweep 1.9s 0.2s linear forwards; }
.steps.is-in .steps-threads path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out-quart); }
.steps.is-in .steps-threads path:nth-child(2n) { transition-duration: 1.8s; }
.steps.is-in .steps-threads path:nth-child(3n) { transition-duration: 1.4s; }
.steps.is-done .step-card { clip-path: none; filter: none; transition: none; }
.steps.is-done .steps-threads { display: none; }
@keyframes threads-sweep {
  from { -webkit-mask-position: -150% 0; mask-position: -150% 0; }
  to { -webkit-mask-position: 250% 0; mask-position: 250% 0; }
}

/* ---------- Mesh plate and speckle (generated in site.js from seed 4340bcea) ---------- */

.mesh {
  position: absolute;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out-quart);
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 38%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 38%, transparent 100%);
}
.plate-ready .mesh { opacity: var(--mesh-opacity, 0.7); }
.mesh-inner { position: absolute; inset: 0; will-change: transform; }
.mesh-layer {
  position: absolute;
  inset: 0;
  background-image: var(--thread-plate, none);
  background-repeat: no-repeat;
  background-size: var(--mesh-size, cover);
  background-position: var(--mesh-pos, 50% 50%);
}
.mesh-drift { animation: mesh-drift 18s ease-in-out infinite alternate; }
.mesh-shimmer { opacity: 0; transform: scale(1.07) translate3d(1%, -1%, 0); animation: mesh-shimmer 7s ease-in-out infinite; }
.mesh-sweep {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  width: 45%;
  animation: mesh-sweep 11s linear infinite;
}
.mesh--nosweep .mesh-sweep { display: none; }
.mesh.is-paused .mesh-layer { animation-play-state: paused; }
@keyframes mesh-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, 0.8%, 0); }
}
@keyframes mesh-shimmer { 0%, 100% { opacity: 0; } 50% { opacity: 0.5; } }
@keyframes mesh-sweep { from { transform: translate3d(-120%, 0, 0); } to { transform: translate3d(330%, 0, 0); } }

.speckle {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  pointer-events: none;
  background-image: var(--speckle, none);
  background-size: 100% 100%;
  opacity: 0;
  transition: opacity 1.4s;
}
.plate-ready .speckle { opacity: 1; }
.speckle-bl { left: -210px; bottom: -230px; }
.speckle-br { right: -190px; bottom: -210px; width: 440px; height: 440px; transform: scaleX(-1); }

/* ---------- Cases (pinned, curtain) ---------- */

.pin-scope { position: relative; }
.cases {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.cases-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1072px;
  padding-block: 112px 88px;
}
.cases-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.cases-head .eyebrow { flex: 0 0 100%; margin-bottom: 4px; }
.cases-head .h2 { font-size: clamp(32px, 3.2vw, 46px); }
.pin-runway { display: none; }
.curtain { position: relative; z-index: 2; background: var(--paper); }

@media (min-width: 1024px) {
  .cases { position: sticky; top: 0; z-index: 0; }
  .cases-inner { padding-block: 88px 32px; }
  .pin-runway { display: block; height: 70vh; }
}

/* ---------- Final say ---------- */

.final-say { overflow: hidden; border-top: 1px solid var(--rule); }
.final-say > .wrap { padding-block: 176px; }
.fs-col { max-width: 1000px; margin: 0 auto; text-align: center; }
.fs-col .eyebrow { margin-bottom: 40px; }
.fs-col .statement + .statement { margin-top: 8px; }
.fs-closer { margin-top: 32px; }
.fs-cta { margin-top: 48px; }

[data-reveal="lines"].is-armed [data-line] { opacity: 0; transform: translateY(14px); filter: blur(6px); }
[data-reveal="lines"].is-in [data-line] {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart), filter 0.7s var(--ease-out-quart);
  transition-delay: var(--d, 0s);
}
[data-reveal="lines"].is-done [data-line] { filter: none; transition: none; }

/* Generic fade-up */
[data-reveal="up"].is-armed { opacity: 0; transform: translateY(var(--rise, 30px)); }
[data-reveal="up"].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
  transition-delay: var(--d, 0s);
}
[data-reveal="head"].is-armed > * { opacity: 0; transform: translateY(20px); }
[data-reveal="head"].is-armed > .lead { transform: translateY(10px); }
[data-reveal="head"].is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}
[data-reveal="head"].is-in > :nth-child(2) { transition-delay: 0.06s; }
[data-reveal="head"].is-in > :nth-child(3) { transition-delay: 0.14s; }

/* ---------- Integrations ---------- */

.int-more {
  margin-top: 28px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--foot-link);
}

/* ---------- Compare ---------- */

.compare-points { display: grid; gap: 10px; }
.compare-points li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}
.compare-points .dash { transform: translateY(-0.3em); }

.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-card);
  overscroll-behavior-x: contain;
}
.table-scroll::-webkit-scrollbar { height: 10px; }
.table-scroll::-webkit-scrollbar-track { background: var(--surface, #fff); border-radius: 0 0 16px 16px; }
.table-scroll::-webkit-scrollbar-thumb { border-color: var(--surface, #fff); }

.cmp {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.cmp th, .cmp td {
  padding: 20px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.cmp thead th {
  padding-block: 18px;
  font: 600 13.5px/1.35 var(--font-text);
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--rule-strong);
}
.cmp tbody th {
  width: 190px;
  font: 400 17px/1.3 var(--font-display);
  letter-spacing: -0.015em;
}
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface, #fff);
  box-shadow: inset -1px 0 0 var(--rule);
}
.cmp thead th:first-child { background: var(--paper); }
.c-st { display: flex; align-items: center; gap: 8px; font: 600 14px/20px var(--font-text); white-space: nowrap; }
.c-dt { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--foot-link); }
.c-st svg { width: 18px; height: 18px; flex: none; }
.st-yes svg { color: var(--ink); }
.st-partial svg { color: var(--meta); }
.st-no svg, .st-na svg { color: var(--stone-400); }
.st-no, .st-na { color: var(--foot-link); }

.cmp .is-gp > * {
  background: var(--gp-row);
  border-top: 1px solid rgba(7, 111, 237, 0.4);
  border-bottom: 1px solid rgba(7, 111, 237, 0.4);
}
.cmp .is-gp > th:first-child { background: var(--gp-row); box-shadow: inset -1px 0 0 rgba(7, 111, 237, 0.25); }
.cmp .is-gp th { font-weight: 600; }
.cmp .is-gp .c-st svg { color: var(--accent); }
.gp-name { display: inline-flex; align-items: center; gap: 10px; }
.gp-name svg { width: 22px; height: 22px; flex: none; }

/* ---------- Pricing ---------- */

.billing { display: flex; justify-content: center; margin: -24px 0 48px; }
.toggle {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--paper-2);
}
.toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font: 600 14px/1 var(--font-text);
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.toggle button[aria-checked="true"] { color: var(--ink); }
.toggle-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: var(--surface-2, #fff);
  box-shadow: var(--thumb-shadow, 0 1px 2px rgba(10, 10, 10, 0.08), 0 4px 12px -4px rgba(10, 10, 10, 0.12));
  transition: transform 0.45s var(--ease-out-expo);
}
.toggle[data-period="year"] .toggle-thumb { transform: translateX(100%); }
.save { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.plan--pop { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font: 400 40px/1 var(--font-display); letter-spacing: -0.03em; }
.plan-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 600 11px/1 var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-for { margin-top: 12px; min-height: 2.9em; font-size: 15.5px; line-height: 1.45; color: var(--foot-link); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.price-num {
  font: 400 50px/1 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-cur { font: 400 30px/1 var(--font-display); letter-spacing: -0.02em; }
.price-note { margin-top: 10px; font-size: 13.5px; color: var(--meta); }
.plan-lims { margin: 28px 0 32px; border-top: 1px solid var(--rule); }
.plan-lims li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.plan-lims .v { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; width: 100%; }

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 32px;
  font-size: 15.5px;
  color: var(--foot-link);
}

.tip { position: relative; display: inline-flex; }
.tip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 15.5px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--stone-400);
}
.tip-btn svg { width: 17px; height: 17px; color: var(--meta); flex: none; }
.tip-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(420px, calc(100vw - 48px));
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-2, #fff);
  box-shadow: var(--popover-shadow, 0 18px 50px -18px rgba(0, 0, 0, 0.28));
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.985);
  transform-origin: 20% 100%;
  transition: opacity 0.18s, transform 0.22s var(--ease-out-quart), visibility 0s 0.22s;
}
.tip.is-open .tip-pop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.22s var(--ease-out-quart), visibility 0s; }

.price-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.pf-h { margin-bottom: 18px; font: 600 15px/1.3 var(--font-text); color: var(--ink); }
.checklist { display: grid; gap: 11px; }
.checklist li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.checklist svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--ink); }
.addons li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.addons li:first-child { padding-top: 0; }
.addon-name { font-size: 15.5px; color: var(--ink); }
.addon-price { font: 600 15.5px/1.4 var(--font-text); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.addon-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--meta); }
.fine { margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--meta); }

/* ---------- Accordion (ROI disclosure + FAQ) ---------- */

.acc-btn {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  text-align: left;
  border-radius: 8px;
}
.acc-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--surface, #fff);
  transition: border-color 0.3s, background-color 0.3s;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out-expo);
}
.acc-icon::after { transform: rotate(90deg); }
.is-open > * > .acc-btn .acc-icon::after,
.is-open > .acc-btn .acc-icon::after { transform: rotate(0deg); }
.acc-btn:hover .acc-icon { border-color: var(--ink); }

.acc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--ease-out-expo), visibility 0s;
}
.js .acc-item:not(.is-open) > .acc-panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--ease-out-expo), visibility 0s 0.5s;
}
.acc-inner { min-height: 0; overflow: hidden; }

.roi {
  margin-top: 56px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-card);
}
.roi > h3 > .acc-btn { align-items: center; padding: 24px 28px; font: 400 22px/1.3 var(--font-display); letter-spacing: -0.02em; }
.roi-body { padding: 4px 28px 32px; }
.roi-text { max-width: 68ch; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.roi-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 32px; counter-reset: roi; }
.roi-item { position: relative; padding-top: 20px; border-top: 1px solid var(--rule); }
.roi-item:first-child { grid-column: 1 / -1; }
.roi-n { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.12em; color: var(--meta); font-variant-numeric: tabular-nums; }
.roi-item h4 { font: 400 20px/1.3 var(--font-display); letter-spacing: -0.015em; }
.roi-item p { margin-top: 10px; max-width: 68ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 14px;
}
.formula-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); margin-right: 4px; }
.formula .term {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--tile);
  border: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
}
.formula .op { font: 400 16px/1 var(--font-display); color: var(--meta); }
.roi .fine { margin-top: 24px; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.faq-grid > .h2 { position: sticky; top: 112px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list .acc-item { border-bottom: 1px solid var(--rule); }
.faq-list h3 > .acc-btn {
  padding: 24px 0;
  font: 400 20px/1.35 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.faq-list .acc-inner p {
  max-width: 64ch;
  padding: 0 56px 28px 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Footer (curtain reveal on lg+) ---------- */

.footer-spacer { display: none; }
.site-footer {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper-2);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 260px 260px;
  mix-blend-mode: overlay;
  opacity: var(--grain-opacity, 1);
}
.site-footer .mesh { --mesh-opacity: 0.55; }
.footer-inner { position: relative; z-index: 1; padding-block: 96px 56px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: end;
}
.footer-word {
  font: 600 clamp(56px, 8vw, 132px)/0.92 var(--font-display);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.footer-copy { margin-top: 18px; font-size: 12px; color: var(--meta); }
.footer-cta { text-align: right; justify-self: end; }
.footer-h2 {
  font: 400 26px/1.3 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.footer-h2 em { display: block; }
.footer-text { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--foot-link); }
.footer-cta .btn { margin-top: 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 88px;
}
.fcol h3 {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-strong);
  font: 600 14px/20px var(--font-text);
}
.fcol li + li { margin-top: 12px; }
.ulink {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--foot-link);
  transition: color 0.3s;
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-quart);
}
.ulink:hover { color: var(--ink); }
.ulink:hover::after { transform: scaleX(1); }

@media (min-width: 1024px) {
  .footer-spacer { display: block; height: var(--footer-h, 70vh); }
  .site-footer:not(.is-static) { position: fixed; left: 0; right: 0; bottom: 0; }
}

/* ---------- Features page ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-hero .mesh { --mesh-size: 140%; --mesh-pos: 50% 35%; z-index: -2; }
.page-hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 65% at 50% 58%, rgba(251, 251, 249, 0.78), rgba(251, 251, 249, 0) 72%);
}
.page-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 176px 24px 104px;
  text-align: center;
}
.page-hero .h1 { margin-top: 24px; }
.page-hero .sub { max-width: 680px; margin: 28px auto 0; text-shadow: 0 0 18px var(--paper), 0 0 2px var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .ph-e { animation: ph-fade 0.6s var(--ease-out-quart) both; }
  .ph-h { animation: ph-rise 0.7s var(--ease-out-quart) 0.05s both; }
  .ph-s { animation: ph-rise-s 0.6s var(--ease-out-quart) 0.2s both; }
}
@keyframes ph-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ph-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ph-rise-s { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.frows > .wrap { max-width: 1248px; padding-block: 104px 136px; }
.frow { display: flex; align-items: center; gap: 72px; }
.frow + .frow { margin-top: 152px; }
.frow:nth-child(even) { flex-direction: row-reverse; }
.frow-text { flex: 0 0 400px; min-width: 0; }
.frow-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: letter-spacing 0.7s var(--ease-out-expo);
}
.frow-title {
  margin: 22px 0 24px;
  font: 400 clamp(34px, 3.3vw, 48px)/1.06 var(--font-display);
  letter-spacing: -0.03em;
}
.frow-title .l1, .frow-title .l2 { display: block; transition: transform 0.7s var(--ease-out-expo); }
.frow-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--foot-link);
  text-wrap: pretty;
  transition: color 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.checks svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ink); }
.frow-demo { flex: 1 1 auto; min-width: 0; margin: 0; }
.demo-frame { position: relative; transition: transform 0.7s var(--ease-out-expo); }
.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(10, 10, 10, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out-expo);
}

@media (hover: hover) and (min-width: 1024px) {
  .frow:has(.frow-demo:hover) .demo-frame { transform: translate(4px, -4px); }
  .frow:has(.frow-demo:hover) .demo-frame::before { opacity: 1; }
  .frow:has(.frow-demo:hover) .frow-eyebrow { letter-spacing: 0.14em; }
  .frow:has(.frow-demo:hover) .l1 { transform: translateY(-2px); }
  .frow:has(.frow-demo:hover) .l2 { transform: translateX(12px); }
  .frow:has(.frow-demo:hover) .frow-desc { color: var(--ink); transform: translateY(-4px); }
}

.caps-sec { overflow: hidden; }
.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px 20px 22px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.5s, box-shadow 0.5s;
}
.cap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(150px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(10, 10, 10, 0.055), rgba(10, 10, 10, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.cap:hover::after, .cap:focus-visible::after { opacity: 1; }
.cap:hover, .cap:focus-visible {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(10, 10, 10, 0.4);
  box-shadow: var(--shadow-lift);
}
.cap:focus-visible { outline-offset: 4px; }
.cap-top { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.cap-no {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}
.cap-icon { width: 18px; height: 18px; margin-left: auto; color: var(--meta); transition: color 0.5s; flex: none; }
.cap:hover .cap-icon, .cap:focus-visible .cap-icon { color: var(--ink); }
.cap:hover .cap-no, .cap:focus-visible .cap-no { color: var(--stone-400); }
.cap-label {
  margin-top: 14px;
  font: 600 15px/1.35 var(--font-text);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}
.cap-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.cap-label-row .cap-label { margin-top: 0; }
.cap-detail { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--stone-700); text-wrap: pretty; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  font: 600 10.5px/1 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foot-link);
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.plaque {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--tile);
  font: 600 11px/1 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-700);
  white-space: nowrap;
}
.cap--wide { grid-column: 1 / -1; flex-direction: row; padding: 0; }
.cap-main { flex: 1 1 auto; min-width: 0; padding: 20px 20px 22px; }
.cap-code {
  flex: 0 0 40%;
  min-width: 0;
  border-left: 1px solid var(--rule);
  background: rgba(250, 250, 249, 0.8);
  transition: background-color 0.5s;
}
.cap--wide:hover .cap-code { background: #FAFAF9; }
.code {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font: 400 12.5px/1.8 var(--font-code);
  color: var(--ink);
  white-space: pre;
  tab-size: 2;
}
.tk-fn { color: var(--ink); font-weight: 500; }
.tk-key { color: var(--meta); }
.tk-str { color: var(--accent-text); }
.tk-p { color: var(--stone-400); }
.tk-field { color: var(--foot-link); }

@media (min-width: 1024px) and (hover: hover) {
  .cap-detail { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-out-quart) 70ms, transform 0.4s var(--ease-out-quart) 70ms; }
  .cap:hover .cap-detail, .cap:focus-visible .cap-detail, .cap:focus-within .cap-detail { opacity: 1; transform: none; }
}

.final-cta > .wrap { padding-block: 120px 152px; text-align: center; }
.final-cta .h2 { max-width: 940px; margin: 0 auto; }
.final-cta .btn { margin-top: 36px; }

/* ---------- Pilot page ---------- */

.pilot-top > .wrap { max-width: 1160px; padding-block: 144px 104px; }
.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  grid-template-areas: "intro form" "letter form";
  column-gap: 96px;
  row-gap: 56px;
  align-items: start;
}
.pilot-intro { grid-area: intro; padding-top: 28px; }
.pilot-h1 { font-size: clamp(40px, 4vw, 56px); }
.pilot-sub { margin-top: 24px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pilot-form-col { grid-area: form; position: sticky; top: 112px; }
.form-card {
  position: relative;
  padding: 36px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule-faint);
  border-radius: 16px;
  box-shadow: 0 24px 70px -35px rgba(0, 0, 0, 0.25);
}
.field label { display: block; margin-bottom: 8px; font: 600 14px/20px var(--font-text); color: var(--ink); }
.field input {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--rule-faint);
  border-radius: 6px;
  background: var(--field, #fff);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover { border-color: var(--rule-strong); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-soft); }
.field-err {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--error);
}
.field-err:empty { display: none; }
.field-err svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-ink, #fff);
  font: 600 15px/1 var(--font-text);
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-quart), opacity 0.3s;
}
.btn-submit:hover { background: #292524; box-shadow: var(--shadow-xl); transform: scale(1.01); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-submit[aria-busy="true"] .submit-label { visibility: hidden; }
.btn-submit .spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
}
.btn-submit[aria-busy="true"] .spinner { opacity: 1; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alt { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); }
.form-success { outline: none; }
.form-success[hidden] { display: none; }
.ok-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.ok-icon svg { width: 22px; height: 22px; }
.ok-text { margin-top: 18px; font: 400 22px/1.4 var(--font-display); letter-spacing: -0.015em; text-wrap: pretty; }
.form-card.is-success .form-success { animation: ok-in 0.6s var(--ease-out-quart) both; }
@keyframes ok-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.letter { grid-area: letter; max-width: 580px; padding-top: 40px; border-top: 1px solid var(--rule); }
.letter blockquote p { font-size: 18.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.letter blockquote p + p { margin-top: 16px; }
.sign { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  font: 600 17px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sign-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.sign-role { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }

.pilot-how > .wrap { padding-block: 96px 120px; }
.how-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--rule-strong);
}
.how-list li { padding: 28px 28px 0; border-left: 1px solid var(--rule); }
.how-list li:first-child { border-left: 0; padding-left: 0; }
.how-n { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--meta); font-variant-numeric: tabular-nums; }
.how-t { margin-top: 14px; font: 400 22px/1.25 var(--font-display); letter-spacing: -0.02em; }
.how-d { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.honest {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 64px;
  padding: 24px 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-panel);
  background: var(--paper-2);
}
.honest svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--accent); }
.honest p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 80ch; }
.honest strong { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid > .h2 { position: static; }
  .footer-top { grid-template-columns: 1fr; align-items: start; }
  .footer-cta { text-align: left; justify-self: start; max-width: 520px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 64px; }
  .frow, .frow:nth-child(even) { flex-direction: column; align-items: stretch; gap: 44px; }
  .frow + .frow { margin-top: 112px; }
  .frow-text { flex: none; max-width: 600px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap--wide { flex-direction: column; }
  .cap-code { flex: none; border-left: 0; border-top: 1px solid var(--rule); }
  .pilot-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "letter"; row-gap: 48px; }
  .pilot-form-col { position: static; max-width: 560px; }
  .pilot-intro { padding-top: 0; }
  .how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .how-list li { padding-bottom: 28px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-for { min-height: 0; }
}

@media (max-width: 767px) {
  :root { --section-pad: 72px; --section-pad-end: 80px; --header-offset: 72px; }
  .eyebrow { font-size: 11px; }
  .section-head { margin-bottom: 48px; }
  .section-head .eyebrow { margin-bottom: 18px; }
  .section-head .h2 + .lead, .section-head .h2 + .sub, .section-head .h2 + ul { margin-top: 20px; }
  .logos > .wrap { padding-block: 56px; }
  .logo-row { gap: 22px 36px; margin-top: 32px; }
  .wm-aigrind { font-size: 22px; }
  .wm-innova { font-size: 23px; }
  .wm-hc { font-size: 20px; }
  .wm-brick { font-size: 12.5px; }
  .stats { grid-template-columns: 1fr; margin-top: 44px; }
  .stat, .stat:first-child { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule-strong); }
  .stat-v { font-size: 38px; }
  .steps { grid-template-columns: 1fr; margin-top: 72px; gap: 20px; }
  .step-body { padding: 28px 24px 24px; }
  .cases-inner { padding-block: 88px 72px; min-height: 0; }
  .final-say > .wrap { padding-block: 128px; }
  .fs-col .eyebrow { margin-bottom: 28px; }
  .table-scroll { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tbody { display: grid; gap: 12px; }
  .cmp tbody tr { border: 1px solid var(--rule); border-radius: var(--radius-panel); background: var(--surface, #fff); box-shadow: var(--shadow-card); overflow: hidden; }
  .cmp th:first-child { position: static; width: auto; min-width: 0; box-shadow: none; }
  .cmp tbody th { padding: 18px 20px 14px; font-size: 19px; border-bottom: 1px solid var(--rule); }
  .cmp td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 12px 20px; }
  .cmp td::before { content: attr(data-label); grid-row: span 2; font-size: 13.5px; line-height: 20px; color: var(--meta); }
  .cmp td .c-dt { margin-top: 0; }
  .cmp tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
  .cmp tbody tr > td:last-child { border-bottom: 0; }
  .cmp tbody tr.is-gp { border-color: rgba(7, 111, 237, 0.4); background: var(--gp-row); }
  .cmp .is-gp > * { border-top: 0; border-bottom-color: rgba(7, 111, 237, 0.2); }
  .cmp .is-gp > th:first-child { box-shadow: none; }
  .billing { margin: -12px 0 36px; }
  .plan { padding: 28px 24px; }
  .price-foot { grid-template-columns: 1fr; gap: 40px; }
  .roi > h3 > .acc-btn { padding: 20px; font-size: 19px; }
  .roi-body { padding: 0 20px 24px; }
  .roi-items { grid-template-columns: 1fr; gap: 24px; }
  .faq-list h3 > .acc-btn { font-size: 18px; padding: 20px 0; }
  .faq-list .acc-inner p { padding-right: 0; font-size: 16px; }
  .footer-inner { padding-block: 72px 40px; }
  .footer-h2 { font-size: 23px; }
  .page-hero-inner { padding: 136px 24px 72px; }
  .frows > .wrap { padding-block: 72px 96px; }
  .frow + .frow { margin-top: 96px; }
  .caps { grid-template-columns: 1fr; }
  .final-cta > .wrap { padding-block: 96px 112px; }
  .pilot-top > .wrap { padding-block: 112px 72px; }
  .form-card { padding: 28px 22px; }
  .how-list { grid-template-columns: 1fr; }
  .how-list li, .how-list li:nth-child(3) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .honest { padding: 20px; margin-top: 48px; }
  .speckle-bl { width: 360px; height: 360px; left: -160px; bottom: -170px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
  [data-roll], .nav-pill, .nav-pill i, .header-inner, .toggle-thumb, .acc-panel, .mobile-menu, .step-body, .demo-frame,
  .frow-title .l1, .frow-title .l2, .frow-desc, .cap, .cap-detail { transition: none !important; }
  .btn:hover [data-roll] { transform: none; }
  .mesh-layer { animation: none !important; }
  .steps-threads { display: none !important; }
}

/* AA on the #F2F2F0 band: 12px meta text uses the darker stone (DESIGN.md Band Contrast) */
.logos .eyebrow,
.cases-head .eyebrow,
.footer-copy { color: var(--foot-link); }

/* ---------- Dark theme: component adjustments (tokens live in tokens.css) ---------- */

:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4A4A50; }
:root[data-theme="dark"] .site-header.menu-open { box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6); }
:root[data-theme="dark"] :is(gp-processes, gp-see, gp-understand, gp-answer, gp-cases, gp-integrations, gp-remember, gp-toolkit):not(:defined) { background: rgba(255, 255, 255, 0.025); }
:root[data-theme="dark"] .step-card::before { background: radial-gradient(circle at 100% 0%, var(--tile) 0%, rgba(34, 34, 39, 0) 42%); }
:root[data-theme="dark"] .steps-threads { mix-blend-mode: screen; }
:root[data-theme="dark"] .steps-threads g { filter: none; }
:root[data-theme="dark"] .mesh-sweep { background: linear-gradient(100deg, rgba(11, 11, 14, 0) 0%, rgba(11, 11, 14, 0.5) 50%, rgba(11, 11, 14, 0) 100%); }
:root[data-theme="dark"] .gp-name rect { fill: var(--ink); }
:root[data-theme="dark"] .gp-name polyline { stroke: var(--on-ink); }
:root[data-theme="dark"] .page-hero-wash { background: radial-gradient(ellipse 60% 65% at 50% 58%, rgba(11, 11, 14, 0.78), rgba(11, 11, 14, 0) 72%); }
:root[data-theme="dark"] .demo-frame::before { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .cap::after { background: radial-gradient(150px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 100%); }
:root[data-theme="dark"] .cap:hover, :root[data-theme="dark"] .cap:focus-visible { border-color: rgba(237, 235, 230, 0.32); }
:root[data-theme="dark"] .cap-code { background: rgba(255, 255, 255, 0.02); }
:root[data-theme="dark"] .cap--wide:hover .cap-code { background: rgba(255, 255, 255, 0.035); }
:root[data-theme="dark"] .form-card { box-shadow: 0 24px 70px -35px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .btn-submit:hover { background: var(--ink-soft); }
:root[data-theme="dark"] .btn-submit .spinner { border-color: rgba(11, 11, 14, 0.35); border-top-color: var(--on-ink); }

/* Privacy page: both languages ship in the HTML, i18n.js sets <html lang>. */
html[lang="ru"] .legal[lang="en"], html[lang="en"] .legal[lang="ru"] { display: none; }
.legal-top > .wrap { max-width: 760px; padding-block: 144px 104px; }
.legal-date { margin-top: 12px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 40px; font-size: 20px; font-weight: 600; color: var(--ink); }
.legal p, .legal li { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.legal .h1 { font-size: clamp(36px, 5vw, 56px); }
.legal ul { padding-left: 1.2em; list-style: disc; }
@media (max-width: 767px) { .legal-top > .wrap { padding-block: 112px 72px; } }
