/*
 * OKR.ai website. Layout concept: the page *is* the product's dot-grid canvas.
 * Monochrome ink on a near-white ground, with the app's three accents used
 * sparingly: tangerine (AI, focus, motion), lemongrass (on track, approved),
 * oil red (risk, the logo's outer aura). One inverted ink band carries the
 * self-hosting story.
 */
:root {
  /* Color: same family as the app (src/app/globals.css), ground nudged warm. */
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f4f3f1;
  --surface-3: #ebe9e6;
  --line: #e6e4e0;
  --line-strong: #d3d0cb;
  --ink: #0a0a0a;
  --muted: #64615c;
  --faint: #9e9a94;
  --dot: #d5d2cc;
  --low: #8f8b85;
  --invert: #ffffff;
  --tangerine: #ff7a1a;
  --tangerine-ink: #c2540a;
  --oilred: #b8321f;
  --lemongrass: #7fa82a;
  --lemongrass-ink: #4f6e12;
  --band: #0a0a0a;
  --band-fg: #f2f1ee;
  --band-muted: #9b9891;
  --band-line: #2a2926;
  --band-surface: #141413;
  --band-low: #77746e;
  --logo-filter: none;
  --shadow: 0 1px 2px rgb(20 16 10 / 0.05), 0 6px 20px rgb(20 16 10 / 0.06);
  --shadow-lg: 0 2px 6px rgb(20 16 10 / 0.05), 0 24px 60px -12px rgb(20 16 10 / 0.18);

  /* Type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
  --step-3: clamp(2.1rem, 1.3rem + 3.1vw, 3.7rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);

  /* Layout */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.6, 0.5, 1);
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #131313;
    --surface-2: #1a1a19;
    --surface-3: #242423;
    --line: #262625;
    --line-strong: #363634;
    --ink: #ededeb;
    --muted: #a09d97;
    --faint: #6a6763;
    --dot: #262624;
  --low: #6f6c67;
    --low: #6f6c67;
    --invert: #0a0a0a;
    --tangerine: #ff8a33;
    --tangerine-ink: #ff9b4f;
    --oilred: #e0533c;
    --lemongrass: #9cc53a;
    --lemongrass-ink: #b3d860;
    --band: #f2f1ee;
    --band-fg: #0a0a0a;
    --band-muted: #5e5b56;
    --band-line: #d6d3cd;
    --band-surface: #ffffff;
  --band-low: #8f8b85;
    --band-low: #8f8b85;
    --logo-filter: invert(1) hue-rotate(180deg) brightness(1.1);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 20px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 60px -12px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1a1a19;
  --surface-3: #242423;
  --line: #262625;
  --line-strong: #363634;
  --ink: #ededeb;
  --muted: #a09d97;
  --faint: #6a6763;
  --dot: #262624;
  --low: #6f6c67;
  --invert: #0a0a0a;
  --tangerine: #ff8a33;
  --tangerine-ink: #ff9b4f;
  --oilred: #e0533c;
  --lemongrass: #9cc53a;
  --lemongrass-ink: #b3d860;
  --band: #f2f1ee;
  --band-fg: #0a0a0a;
  --band-muted: #5e5b56;
  --band-line: #d6d3cd;
  --band-surface: #ffffff;
  --band-low: #8f8b85;
  --logo-filter: invert(1) hue-rotate(180deg) brightness(1.1);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 20px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 60px -12px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* Screenshots ship in both themes; show the one that matches. */
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--tangerine) 32%, transparent); }
:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code, kbd, pre, .mono { font-family: var(--font-mono); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--invert);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* The app's dot grid, faded at the edges. */
.dots {
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s var(--ease), background-color 0.15s, border-color 0.15s, box-shadow 0.2s, color 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--ink); color: var(--invert); }
.btn-primary:hover { box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--ink) 50%, transparent); }
.btn-accent { background: var(--tangerine); color: #0a0a0a; }
.btn-accent:hover { box-shadow: 0 8px 24px -8px var(--tangerine); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-sm { height: 36px; padding-inline: 14px; font-size: 0.875rem; border-radius: 9px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ripple {
  position: absolute;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  animation: ripple 560ms ease-out;
}
@keyframes ripple { from { transform: scale(0); opacity: 0.22; } to { transform: scale(1); opacity: 0; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }

/* Copyable command chip */
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 0.875rem/1 var(--font-mono);
  color: var(--ink);
  max-width: 100%;
}
.cmd .prompt { color: var(--tangerine); user-select: none; }
.cmd code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s, color 0.15s;
}
.copy-btn:hover { background: var(--surface-2); color: var(--ink); }
.copy-btn .ic-done { display: none; color: var(--lemongrass); }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-done { display: block; animation: pop 0.36s var(--spring); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.main-nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--tangerine);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-cta { margin-left: 8px; height: 38px; font-size: 0.875rem; }
.menu-btn, .nav-mobile-only { display: none; }
.theme-btn svg { display: none; }
.theme-btn[data-mode="system"] .ic-system,
.theme-btn[data-mode="light"] .ic-light,
.theme-btn[data-mode="dark"] .ic-dark { display: block; animation: spin-in 0.4s var(--ease); }
.theme-btn:not([data-mode]) .ic-system { display: block; }
@keyframes spin-in { from { transform: rotate(-90deg) scale(0.6); opacity: 0; } }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .header-cta, .gh-link { display: none; }
  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s var(--ease), opacity 0.18s, visibility 0s 0.22s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; transition: transform 0.22s var(--ease), opacity 0.18s; }
  .main-nav a { padding: 12px; font-size: 1.0625rem; }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .nav-mobile-only { display: inline-flex; margin-top: 8px; }
  .main-nav a.btn { color: var(--invert); }
  .menu-btn path { transition: transform 0.25s var(--ease); transform-origin: center; transform-box: fill-box; }
  .menu-btn[aria-expanded="true"] .m1 { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .m2 { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------------------------------------------------------------- Logo motion (from the app) */

.okr-aura { transform-box: view-box; transform-origin: 8px 15px; }
.okr-aura path { stroke-dasharray: 1; }
.okr-logo-intro .okr-aura-1 { animation: draw-in 700ms var(--ease) both; }
.okr-logo-intro .okr-aura-2 { animation: draw-in 700ms 140ms var(--ease) both; }
.okr-logo-intro .okr-k-leg { animation: k-snap 520ms 260ms var(--spring) both; }
.okr-logo-intro .okr-dot { animation: dot-drop 420ms 380ms var(--spring) both; }
.okr-logo-intro .okr-ai { animation: rise-in 420ms 440ms ease-out both; }
.okr-logo:hover .okr-aura, .brand:hover .okr-aura { animation: aura-pulse 700ms ease-out; }
.site-footer .okr-aura path { stroke-dasharray: none; }
@keyframes draw-in { from { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; } }
@keyframes k-snap { from { transform: translate(-2.4px, -1.2px); opacity: 0; } }
@keyframes dot-drop { from { transform: translateY(-5px); opacity: 0; } }
@keyframes rise-in { from { transform: translateY(2.5px); opacity: 0; } }
@keyframes aura-pulse { 40% { transform: scale(1.14); opacity: 0.55; } }

/* ---------------------------------------------------------------- Reveal on scroll
   Content is visible by default. site.js adds .reveal-in just before an element
   scrolls into view, which plays a short rise. Without JS nothing is hidden. */
.reveal-in { animation: reveal 0.7s var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }

/* ---------------------------------------------------------------- Section scaffolding */
.section { padding-block: clamp(96px, 13vw, 176px); }
.section-tight { padding-top: 0; }
.section-head { display: grid; gap: 20px; max-width: 860px; margin-bottom: clamp(48px, 6.5vw, 96px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tangerine); }
.h2 { font-size: var(--step-3); font-weight: 760; letter-spacing: -0.038em; line-height: 1.02; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 56ch; line-height: 1.65; }
.lede strong { color: var(--ink); font-weight: 600; }

/* Two-tone titles: the point in ink, the rest lowlit. */
.ll { color: var(--low); font-weight: 560; }
.band .ll { color: var(--band-low); }
.mark {
  background: linear-gradient(var(--tangerine), var(--tangerine)) no-repeat 0 96% / 100% 0.09em;
  padding-bottom: 0.04em;
}
.reveal-in .mark, .page-hero .mark { animation: mark-in 0.9s 0.35s var(--ease) both; }
@keyframes mark-in { from { background-size: 0 0.09em; } }
.reveal-in .ll { animation: ll-in 1.1s 0.12s var(--ease) both; }
@keyframes ll-in { from { opacity: 0; filter: blur(6px); } }

/* ---------------------------------------------------------------- Hero */

.hero { position: relative; padding-top: clamp(56px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-copy { display: grid; gap: 30px; max-width: 980px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  height: 32px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.pill:hover { border-color: var(--line-strong); }
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lemongrass) 16%, transparent);
  color: var(--lemongrass-ink);
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--lemongrass); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lemongrass); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }

.hero h1 {
  font-size: var(--step-4);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-variation-settings: "opsz" 96;
}
.hero h1 .line { display: block; animation: line-up 0.9s var(--ease) both; }
.hero h1 .line + .line { animation-delay: 0.12s; }
.hero h1 .ll { font-weight: 600; }
.hero h1 .accent { position: relative; white-space: nowrap; color: var(--ink); font-weight: 760; }
.hero .pill { animation: line-up 0.8s var(--ease) both; }
.hero .lede { animation: line-up 0.9s 0.24s var(--ease) both; }
.hero .hero-ctas { animation: line-up 0.9s 0.34s var(--ease) both; }
@keyframes line-up { from { opacity: 0; transform: translateY(0.6em); filter: blur(8px); } }
.hero h1 .accent svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
}
.hero h1 .accent path { stroke-dasharray: 1; animation: draw-in 1s 0.75s var(--ease) both; }
.hero .lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--lemongrass); }

/* The canvas frame */
.stage { position: relative; margin-top: clamp(56px, 7vw, 96px); perspective: 1800px; animation: stage-in 1.1s 0.45s var(--ease) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(48px); } }
.stage .frame { transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); transform-origin: 50% 0; will-change: transform; }
.frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 100%;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.frame-ws { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.frame-ws .sep { width: 1px; height: 14px; background: var(--line); }
.frame-url {
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font: 500 0.75rem/1 var(--font-mono);
  color: var(--muted);
}
.frame-url svg { color: var(--lemongrass); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface-2); font-size: 0.75rem; }
.seg span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; color: var(--muted); }
.seg span.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.canvas-wrap { position: relative; background: var(--bg); }
.canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.hero-canvas { position: relative; display: block; width: 100%; height: auto; font-family: var(--font-body); }
@media (max-width: 720px) {
  .frame-ws .ws-name, .frame-ws .sep, .seg { display: none; }
  .frame-url { margin-inline: auto 0; }
}

/* Floating callouts around the frame (desktop only) */
.callout {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.callout strong { display: block; font-weight: 600; color: var(--ink); }
.callout span { color: var(--muted); }
.callout .ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.callout-a { left: -40px; top: 14%; animation-delay: -1s; }
.callout-b { right: 5%; bottom: -26px; animation-delay: -3s; }
.callout-a .ic { background: color-mix(in srgb, var(--tangerine) 14%, transparent); color: var(--tangerine-ink); }
.callout-b .ic { background: color-mix(in srgb, var(--lemongrass) 16%, transparent); color: var(--lemongrass-ink); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 1240px) { .callout { display: none; } }

/* Hero canvas SVG parts */
.hc-card { fill: var(--surface); stroke: var(--line); }
.hc-card-self { stroke: var(--ink); }
.hc-av { fill: var(--ink); }
.hc-av-t { fill: var(--invert); font-size: 10px; font-weight: 600; font-family: var(--font-mono); }
.hc-nm { fill: var(--ink); font-size: 13.5px; font-weight: 600; }
.hc-rl { fill: var(--muted); font-size: 11.5px; }
.hc-rel { fill: var(--faint); font-size: 8.5px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.hc-meta { fill: var(--faint); font-size: 9.5px; font-family: var(--font-mono); }
.hc-track { fill: var(--surface-3); }
.hc-fill { fill: var(--ink); }
.hc-you { fill: var(--tangerine); stroke: var(--surface); stroke-width: 2; }
.hc-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.hc-edge-dash { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 4; }
.hc-flow { fill: none; stroke: var(--tangerine); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0.12 1.2; stroke-dashoffset: 0.12; opacity: 0; filter: drop-shadow(0 0 3px var(--tangerine)); }
.hc-add circle { fill: var(--surface); stroke: var(--line); }
.hc-add path { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.hc-ai-card { fill: var(--surface); stroke: var(--tangerine); stroke-width: 1.2; }
.hc-ai-glow { fill: var(--tangerine); opacity: 0.08; }
.hc-ai-h { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.hc-ai-sub { fill: var(--faint); font-size: 9.5px; font-family: var(--font-mono); }
.hc-ai-obj { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.hc-ai-kr { fill: var(--muted); font-size: 10.5px; }
.hc-ai-pct { fill: var(--muted); font-size: 9.5px; font-family: var(--font-mono); }
.hc-ai-line { stroke: var(--line); }
.hc-ai-sum { fill: var(--tangerine-ink); font-size: 9.5px; font-family: var(--font-mono); }
.hc-tangerine { fill: var(--tangerine); }
.hc-btn rect { fill: var(--ink); }
.hc-btn text { fill: var(--invert); font-size: 10.5px; font-weight: 600; }
.hc-btn-ok rect { fill: var(--lemongrass); }
.hc-btn-ok text { fill: #0a0a0a; font-size: 10.5px; font-weight: 600; }
.hc-chip rect { fill: color-mix(in srgb, var(--lemongrass) 18%, var(--surface)); stroke: color-mix(in srgb, var(--lemongrass) 50%, transparent); }
.hc-chip text { fill: var(--lemongrass-ink); font-size: 9.5px; font-weight: 600; font-family: var(--font-mono); }
.hc-chip-t rect { fill: color-mix(in srgb, var(--tangerine) 16%, var(--surface)); stroke: color-mix(in srgb, var(--tangerine) 45%, transparent); }
.hc-chip-t text { fill: var(--tangerine-ink); font-size: 9.5px; font-weight: 600; font-family: var(--font-mono); }
.hc-cursor path { fill: var(--ink); stroke: var(--surface); stroke-width: 1.4; stroke-linejoin: round; }
.hc-click { fill: none; stroke: var(--tangerine); stroke-width: 2; opacity: 0; }
.hc-rail rect.bg { fill: var(--surface); stroke: var(--line); }
.hc-rail path, .hc-rail circle.i { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hc-rail .ok { fill: var(--lemongrass); stroke: var(--surface); stroke-width: 1.5; }

/* Load-in: nodes pop, edges draw */
.hc-pop { transform-box: fill-box; transform-origin: center; animation: hc-pop 0.55s var(--spring) both; animation-delay: var(--d, 0s); }
@keyframes hc-pop { from { opacity: 0; transform: translateY(8px) scale(0.94); } }
.hc-draw { stroke-dasharray: 1; animation: draw-in 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
.hc-grow { transform-box: fill-box; transform-origin: left; animation: grow 0.9s var(--ease) both; animation-delay: var(--d, 0.6s); }
@keyframes grow { from { transform: scaleX(0); } }

/* The 12-second story: click Priya → AI drafts → accept → push → approved */
.hc-loop .hc-cursor { animation: hc-cursor 12s var(--ease) infinite; }
.hc-loop .hc-click-1 { animation: hc-click 12s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.hc-loop .hc-click-2 { animation: hc-click-2 12s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.hc-loop .hc-ai { animation: hc-ai 12s var(--ease) infinite; transform-box: fill-box; transform-origin: left center; }
.hc-loop .hc-ai-row { animation: hc-row 12s var(--ease) infinite; animation-delay: var(--d, 0s); }
.hc-loop .hc-accept { animation: hc-accept 12s steps(1) infinite; }
.hc-loop .hc-accepted { animation: hc-accepted 12s steps(1) infinite; }
.hc-loop .hc-sum { animation: hc-sum 12s var(--ease) infinite; }
.hc-loop .hc-push { animation: hc-push 12s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hc-loop .hc-approved { animation: hc-approved 12s var(--spring) infinite; transform-box: fill-box; transform-origin: center; }
.hc-loop .hc-pushed { animation: hc-pushed 12s var(--spring) infinite; transform-box: fill-box; transform-origin: center; animation-delay: var(--d, 0s); }
.hc-loop .hc-link { animation: hc-link 12s var(--ease) infinite; }

@keyframes hc-cursor {
  0% { transform: translate(760px, 500px); opacity: 0; }
  4% { opacity: 1; }
  12% { transform: translate(296px, 222px); }
  30% { transform: translate(296px, 222px); }
  36% { transform: translate(588px, 302px); }
  64% { transform: translate(588px, 302px); opacity: 1; }
  72% { transform: translate(700px, 470px); opacity: 0; }
  100% { transform: translate(760px, 500px); opacity: 0; }
}
@keyframes hc-click { 0%, 12.4% { opacity: 0; transform: scale(0.3); } 13% { opacity: 1; } 18%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hc-click-2 { 0%, 36.4% { opacity: 0; transform: scale(0.3); } 37% { opacity: 1; } 42%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hc-ai { 0%, 14% { opacity: 0; transform: translateX(-10px) scale(0.96); } 18%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(-6px) scale(0.98); } }
@keyframes hc-link { 0%, 14% { opacity: 0; } 18%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes hc-row { 0%, 19% { opacity: 0; transform: translateY(4px); } 23%, 100% { opacity: 1; transform: none; } }
@keyframes hc-sum { 0%, 28% { opacity: 0; } 31%, 100% { opacity: 1; } }
@keyframes hc-accept { 0% { opacity: 1; } 37% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hc-accepted { 0% { opacity: 0; } 37% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hc-approved { 0%, 43% { opacity: 0; transform: scale(0.4); } 47%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(0.9); } }
@keyframes hc-push { 0%, 50% { opacity: 0; stroke-dashoffset: 0.12; } 51% { opacity: 1; } 62% { opacity: 1; stroke-dashoffset: -1; } 63%, 100% { opacity: 0; stroke-dashoffset: -1; } }
@keyframes hc-pushed { 0%, 61% { opacity: 0; transform: scale(0.4); } 65%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(0.9); } }
.hc-flow-once { animation: hc-flow-once 1.1s ease-in-out both; animation-delay: var(--d, 0.9s); }
@keyframes hc-flow-once { 0% { opacity: 0; stroke-dashoffset: 0.12; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }

/* ---------------------------------------------------------------- Logo marquee */
.marquee-section { padding-block: 0 8px; }
.marquee-label { text-align: center; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 40px; padding-right: 40px; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* On the canvas: logo + name, no pill. */
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s, color 0.3s;
}
.logo-chip:hover { filter: none; opacity: 1; color: var(--ink); }
.logo-chip img { width: 20px; height: 20px; object-fit: contain; }
img.inv { filter: var(--logo-filter); }
.badge-letter {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #fff;
  font: 700 0.6875rem/1 var(--font-body);
  flex-shrink: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- OKR cycle */
.cycle { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; }
.cycle-line { position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); overflow: hidden; }
.cycle-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--tangerine), transparent);
  animation: run 4s linear infinite;
}
@keyframes run { to { left: 100%; } }
.cycle-step { position: relative; display: grid; gap: 12px; align-content: start; }
.cycle-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font: 600 0.875rem/1 var(--font-mono);
  color: var(--ink);
  margin-bottom: 8px;
  /* lights up as the pulse on the line passes underneath */
  animation: step-glow 4s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.667s + 0.43s);
  transition: transform 0.3s var(--spring);
}
@keyframes step-glow {
  0%, 20%, 100% { border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
  6% { border-color: var(--tangerine); color: var(--tangerine-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tangerine) 14%, transparent); }
}
.cycle-step:hover .cycle-num { transform: translateY(-4px) rotate(-4deg); }
.cycle-step h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.cycle-step p { font-size: 0.9375rem; color: var(--muted); max-width: 26ch; }
@media (max-width: 960px) {
  .cycle { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cycle-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .cycle-line::after { left: 0; top: -20%; width: 100%; height: 20%; background: linear-gradient(180deg, transparent, var(--tangerine), transparent); animation-name: run-v; }
  .cycle-step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; row-gap: 4px; padding-bottom: 36px; }
  .cycle-step > :not(.cycle-num) { grid-column: 2; }
  .cycle-num { grid-row: 1 / span 2; margin: 0; }
  .cycle-step h3 { margin-top: 6px; }
}
@keyframes run-v { to { top: 100%; } }

/* ---------------------------------------------------------------- Tour (tabs + real screenshots) */
.tour { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.tour-tabs { display: grid; gap: 2px; }
.tour-tab {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 0 14px 24px;
  border: 0;
  background: transparent;
  color: var(--low);
  font: inherit;
  cursor: pointer;
  transition: color 0.25s;
}
.tour-tab::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line); }
.tour-tab:hover { color: var(--muted); }
.tour-tab[aria-selected="true"] { color: var(--ink); }
.tour-tab strong { font: 650 1.125rem/1.25 var(--font-display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.tour-tab[aria-selected="true"] strong svg { color: var(--tangerine); }
.tour-tab span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; display: none; }
.tour-tab[aria-selected="true"] span { display: block; animation: reveal 0.45s var(--ease); }
.tour-progress { position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--tangerine); transform-origin: top; transform: scaleY(0); }
.tour-tab[aria-selected="true"] .tour-progress { transform: scaleY(1); }
.tour-tab[aria-selected="true"] .tour-progress.run { animation: tour-progress var(--tour-ms, 7000ms) linear both; }
@keyframes tour-progress { from { transform: scaleY(0); } }
.tour-view { position: relative; }
.tour-panel[hidden] { display: none; }
.tour-panel { animation: tour-in 0.6s var(--ease); }
@keyframes tour-in { from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); } }
.shot-frame { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 100%; }
.shot-frame img { width: 100%; aspect-ratio: 1200 / 760; object-fit: cover; }
.shot-caption { margin-top: 14px; font: 500 0.75rem/1.5 var(--font-mono); color: var(--faint); }
.tour-mobile-desc { display: none; margin-bottom: 16px; color: var(--muted); }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-tabs { display: flex; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { flex: 0 0 auto; padding: 8px 0 12px; }
  .tour-tab::before, .tour-progress { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
  .tour-progress { transform-origin: left; transform: scaleX(0); }
  .tour-tab[aria-selected="true"] .tour-progress { transform: scaleX(1); }
  .tour-tab[aria-selected="true"] .tour-progress.run { animation-name: tour-progress-x; }
  .tour-tab strong { font-size: 0.9375rem; white-space: nowrap; }
  .tour-tab strong svg { display: none; }
  .tour-tab[aria-selected="true"] span { display: none; }
  .tour-mobile-desc { display: block; }
}
@keyframes tour-progress-x { from { transform: scaleX(0); } }

/* ---------------------------------------------------------------- Self-hosted band (inverted) */

.band {
  background: var(--band);
  color: var(--band-fg);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--band-line) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  pointer-events: none;
}
.band > .wrap { position: relative; }
.band .eyebrow { color: var(--band-muted); }
.band .lede { color: var(--band-muted); }
.band .lede strong { color: var(--band-fg); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.band-title { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem); font-weight: 760; letter-spacing: -0.042em; line-height: 1; }
.band-title .ll { display: block; }
.band-grid .section-head { gap: 24px; }
@media (max-width: 960px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

.boundary { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.bd-zone { fill: color-mix(in srgb, var(--lemongrass) 7%, transparent); stroke: var(--lemongrass); stroke-width: 1.4; stroke-dasharray: 6 6; animation: dash 24s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -240; } }
.bd-zone-label { fill: var(--lemongrass); font: 600 10px var(--font-mono); letter-spacing: 0.08em; }
.bd-box { fill: var(--band-surface); stroke: var(--band-line); }
.bd-box-hero { stroke: var(--band-fg); stroke-width: 1.4; }
.bd-t { fill: var(--band-fg); font-size: 13px; font-weight: 600; }
.bd-s { fill: var(--band-muted); font: 9.5px var(--font-mono); }
.bd-line { fill: none; stroke: var(--band-muted); stroke-width: 1.4; }
.bd-line-out { fill: none; stroke: var(--band-muted); stroke-width: 1.4; stroke-dasharray: 4 5; }
.bd-packet { fill: var(--tangerine); }
.bd-packet-g { fill: var(--lemongrass); }
.bd-ghost { fill: none; stroke: var(--band-line); stroke-dasharray: 3 4; }
.bd-ghost-t { fill: var(--band-muted); font-size: 12px; font-weight: 600; }
.bd-x { stroke: var(--oilred); stroke-width: 2; stroke-linecap: round; }

.compare {
  margin-top: clamp(72px, 9vw, 128px);
  overflow-x: auto;
}
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--band-line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 0.75rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-muted); }
.compare thead th.us { color: var(--lemongrass); }
.compare td:first-child { color: var(--band-fg); width: 30%; font-weight: 500; }
.compare td.them { color: var(--band-muted); }
.compare td.us { color: var(--band-fg); font-weight: 500; }
.compare td.us::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: var(--lemongrass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 64px; margin-top: clamp(72px, 9vw, 128px); }
.sec-item { display: grid; gap: 10px; align-content: start; }
.sec-item svg { color: var(--tangerine); margin-bottom: 4px; transition: transform 0.35s var(--spring); }
.sec-item:hover svg { transform: scale(1.15) rotate(-6deg); }
.sec-item h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
.sec-item p { color: var(--band-muted); font-size: 0.9375rem; max-width: 34ch; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.band-note { margin-top: clamp(56px, 7vw, 96px); max-width: 80ch; font-size: 0.875rem; color: var(--band-muted); }

/* ---------------------------------------------------------------- Integrations map */
.constellation { position: relative; aspect-ratio: 1000 / 480; max-width: 100%; margin: 0 auto 72px; }
.constellation::before {
  content: "";
  position: absolute;
  inset: -40px -16px;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cn-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cn-orbit { fill: none; stroke: var(--line); stroke-dasharray: 2 7; animation: orbit 60s linear infinite; }
.cn-orbit + .cn-orbit { animation-direction: reverse; }
@keyframes orbit { to { stroke-dashoffset: -360; } }
.cn-line { fill: none; stroke: var(--line-strong); stroke-width: 1; transition: stroke 0.25s, stroke-width 0.25s; }
.cn-line.on { stroke: var(--tangerine); stroke-width: 1.8; }
.cn-pulse {
  fill: none;
  stroke: var(--tangerine);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 0.07 1.2;
  stroke-dashoffset: 0.07;
  opacity: 0;
  filter: drop-shadow(0 0 3px var(--tangerine));
  animation: cn-pulse 3.2s ease-in infinite;
  animation-delay: var(--d, 0s);
}
@keyframes cn-pulse { 0% { stroke-dashoffset: 0.07; opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 80%, 100% { stroke-dashoffset: -1; opacity: 0; } }
.cn-hub {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 24px 12px;
  border-radius: 18px;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.cn-hub-sub { font: 500 0.625rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.cn-hub-ring { position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--tangerine); opacity: 0; animation: hub-ring 1.6s ease-out infinite; pointer-events: none; }
@keyframes hub-ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.3, 1.7); } }
.cn-chip {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: transform 0.35s var(--spring), border-color 0.2s, box-shadow 0.25s;
  animation: chip-float 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.55s);
}
.cn-chip img { width: 18px; height: 18px; }
.cn-chip:hover, .cn-chip.on { border-color: var(--tangerine); transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tangerine) 14%, transparent), var(--shadow); }
@keyframes chip-float { 50% { translate: 0 -6px; } }
.cn-more { position: absolute; left: 0; right: 0; bottom: -56px; text-align: center; font-size: 0.875rem; color: var(--faint); }
@media (max-width: 760px) {
  .constellation { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 0; }
  .cn-lines, .cn-hub { display: none; }
  .cn-chip { position: static; transform: none; animation: none; }
  .cn-chip:hover, .cn-chip.on { transform: scale(1.05); }
  .cn-more { position: static; flex-basis: 100%; margin-top: 10px; }
}

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 64px; margin-top: clamp(96px, 11vw, 152px); }
.trio > div { display: grid; gap: 12px; align-content: start; }
.trio h3 { font-size: 1.3125rem; letter-spacing: -0.02em; }
.trio p { color: var(--muted); font-size: 0.9375rem; max-width: 36ch; }
.trio .mono-list { font: 500 0.8125rem/1.6 var(--font-mono); color: var(--faint); }
.logo-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.logo-row img { width: 22px; height: 22px; transition: transform 0.3s var(--spring); }
.logo-row img:hover { transform: translateY(-4px) scale(1.15); }
@media (max-width: 860px) { .trio { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* ---------------------------------------------------------------- Feature list */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 64px); }
.feature { display: grid; gap: 10px; align-content: start; }
.feature h3 { font-size: 1.25rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.feature h3 svg { color: var(--tangerine); flex-shrink: 0; transition: transform 0.35s var(--spring); }
.feature:hover h3 svg { transform: rotate(-10deg) scale(1.12); }
.feature p { color: var(--muted); font-size: 0.9375rem; max-width: 32ch; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------------------------------------------------------------- Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pricing-lead { display: grid; gap: 20px; justify-items: start; }
.zero { margin: 0; font: 800 clamp(7rem, 4rem + 14vw, 15rem)/0.82 var(--font-display); letter-spacing: -0.07em; font-variation-settings: "opsz" 96; position: relative; display: inline-block; }
.zero sup { font-size: 0.32em; vertical-align: 1.6em; letter-spacing: 0; margin-right: 0.04em; color: var(--low); }
.zero-caption { font: 650 var(--step-2)/1.25 var(--font-display); letter-spacing: -0.02em; max-width: 22ch; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; }
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.plan:last-child { border-bottom: 1px solid var(--line); }
.plan:hover { padding-left: 12px; }
.plan h3 { font-size: 1.375rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.plan-main h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lemongrass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lemongrass) 22%, transparent); }
.plan .price { font: 700 1.375rem/1.2 var(--font-display); text-align: right; white-space: nowrap; margin: 0; }
.plan .price small { font: 500 0.75rem/1 var(--font-mono); color: var(--muted); margin-left: 4px; }
.plan p:not(.price) { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

/* The comparison table becomes a stacked list on phones. */
@media (max-width: 640px) {
  .compare { overflow: visible; }
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--band-line); }
  .compare td { display: block; width: auto !important; padding: 0; border: 0; }
  .compare td:first-child { font-weight: 600; }
  .compare td[data-label] { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; }
  .compare td[data-label]::after { content: attr(data-label); grid-row: 1; grid-column: 1; font: 500 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-muted); }
  .compare td.us::before { display: none; }
  .terminal pre { white-space: pre-wrap; word-break: break-word; }
}

/* ---------------------------------------------------------------- Final CTA + terminal */

.cta-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: -80px 0;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 75% 50%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 70% at 75% 50%, #000, transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 { margin-bottom: 20px; }
.cta-block .lede { max-width: 40ch; }
.cta-block .hero-ctas { margin-top: 32px; }
@media (max-width: 900px) { .cta-block { grid-template-columns: minmax(0, 1fr); } }

.terminal {
  border-radius: 14px;
  background: #0d0d0c;
  color: #e9e7e3;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font: 0.8125rem/1.7 var(--font-mono);
  border: 1px solid #262624;
  min-width: 0;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #262624; color: #8d8a84; font-size: 0.75rem; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2a; }
.terminal-bar span { margin-left: auto; }
.terminal pre { margin: 0; padding: 20px 20px 24px; overflow-x: auto; min-height: 150px; white-space: pre; }
.terminal .t-p { color: #ff8a33; }
.terminal .t-ok { color: #9cc53a; }
.terminal .t-dim { color: #8d8a84; }
.terminal .t-link { color: #ededeb; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
.caret { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.2em; background: #ff8a33; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 72px 36px; margin-top: 40px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 0.9375rem; max-width: 36ch; }
.license-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.license-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-title { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--faint); }
.footer-bottom p:first-child { max-width: 72ch; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lemongrass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lemongrass) 22%, transparent); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

/* ---------------------------------------------------------------- Inner pages: page header */

.page-hero { position: relative; padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 72px); overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 760; letter-spacing: -0.042em; max-width: 17ch; animation: line-up 0.9s var(--ease) both; }
.page-hero .lede { animation: line-up 0.9s 0.15s var(--ease) both; }

/* ---------------------------------------------------------------- Get started */
.gs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.gs-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; }
.side-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.side-links a { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding-left 0.3s var(--ease); }
.side-links a:hover { padding-left: 8px; }
.side-links strong { font: 650 1rem/1.3 var(--font-display); }
.side-links strong::after { content: " →"; color: var(--faint); transition: color 0.2s; }
.side-links a:hover strong::after { color: var(--tangerine); }
.side-links span { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 960px) { .gs-grid { grid-template-columns: minmax(0, 1fr); } .gs-aside { position: static; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps > li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 24px; padding-bottom: 64px; counter-increment: step; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font: 600 0.875rem/1 var(--font-mono);
  color: var(--tangerine-ink);
  padding-top: 14px;
  grid-row: 1 / span 10;
}
.steps > li::after { content: ""; position: absolute; left: 9px; top: 40px; bottom: 16px; width: 1px; background: linear-gradient(var(--line), transparent); }
.steps > li:last-child::after { display: none; }
.steps > li > * { grid-column: 2; min-width: 0; }
.steps > li > h2 { font-size: 1.625rem; letter-spacing: -0.025em; margin: 6px 0 0; }
.steps > li > * + * { margin-top: 16px; }
.steps > li > ul { margin-bottom: 0; }

.tabs { display: grid; gap: 0; margin: 14px 0; }
.tab-list { display: inline-flex; gap: 20px; justify-self: start; max-width: 100%; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab-list button {
  position: relative;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--low);
  font: 500 0.9375rem/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.tab-list button:hover { color: var(--muted); }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-list button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--tangerine); animation: grow 0.35s var(--ease); transform-origin: left; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: reveal 0.35s var(--ease); }
.tab-panel > * + * { margin-top: 12px; }

/* ---------------------------------------------------------------- Prose (docs, get started, blog) */
.prose { font-size: 1.0125rem; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 760; letter-spacing: -0.038em; }
.prose h2 { font-size: 1.625rem; letter-spacing: -0.025em; margin-top: 2.6em; position: relative; }
.prose h3 { font-size: 1.2rem; letter-spacing: -0.015em; margin-top: 2em; position: relative; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose .anchor { position: absolute; left: -0.9em; width: 0.9em; color: var(--faint); text-decoration: none; opacity: 0; transition: opacity 0.15s; font-weight: 500; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 84%, var(--muted)); }
.prose a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--tangerine) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color 0.15s; }
.prose a:hover { color: var(--tangerine-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose :not(pre) > code { font-size: 0.86em; padding: 0.12em 0.38em; border-radius: 5px; background: var(--surface-2); word-break: break-word; }
.prose .lead { font-size: var(--step-1); color: var(--muted); line-height: 1.6; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }

/* Code: a quiet tinted block, no frame. */
.code { position: relative; border-radius: 12px; background: var(--surface-2); overflow: hidden; min-width: 0; }
.code-head { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; gap: 6px; font: 500 0.6875rem/1 var(--font-mono); color: var(--faint); letter-spacing: 0.04em; }
.code pre { margin: 0; padding: 16px 18px; padding-right: 120px; overflow-x: auto; font-size: 0.8125rem; line-height: 1.75; }
.code pre .c { color: var(--faint); }
.code pre .p { color: var(--tangerine-ink); user-select: none; }
.code .copy-btn { width: 28px; height: 28px; }

/* Tables: rows and hairlines only. */
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.prose th, .prose td { text-align: left; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }

/* Notes: an icon and a sentence, no box. */
.note { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; padding-block: 4px; }
.note svg { color: var(--tangerine); margin-top: 4px; }
.note-ok svg { color: var(--lemongrass); }
.note p { color: var(--muted); }

/* "Where next" links: a list with hairlines. */
.card-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.card-link { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding-left 0.3s var(--ease); }
.prose .card-link { text-decoration: none; }
.card-link:hover { padding-left: 8px; }
.card-link strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 650 1.0625rem/1.3 var(--font-display); color: var(--ink); }
.card-link strong::after { content: "→"; font-family: var(--font-body); color: var(--faint); transition: transform 0.25s var(--ease), color 0.2s; }
.card-link:hover strong::after { transform: translateX(4px); color: var(--tangerine); }
.card-link span { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* ---------------------------------------------------------------- Docs shell */
.docs-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 190px;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  padding-block: 64px 64px;
}
.docs-nav, .docs-toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; scrollbar-width: thin; font-size: 0.9rem; }
.docs-group + .docs-group { margin-top: 28px; }
.docs-group-title { font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.docs-nav ul, .docs-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { position: relative; display: block; padding: 5px 0 5px 14px; color: var(--muted); text-decoration: none; transition: color 0.15s, transform 0.25s var(--ease); }
.docs-nav a:hover { color: var(--ink); transform: translateX(2px); }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.docs-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--tangerine); animation: pop 0.4s var(--spring); }
.docs-toc ul { border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--low); text-decoration: none; font-size: 0.85rem; transition: color 0.15s, border-color 0.15s; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { color: var(--ink); border-left-color: var(--tangerine); }
.docs-article { max-width: 720px; }
.docs-article > h1:first-child { margin-top: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.2em !important; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 4px; text-decoration: none; font: 650 1.0625rem/1.3 var(--font-display); color: var(--ink); transition: color 0.2s, transform 0.3s var(--ease); }
.pager a:hover { color: var(--tangerine-ink); }
.pager-prev:hover { transform: translateX(-4px); }
.pager-next:hover { transform: translateX(4px); }
.pager span { font: 500 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.pager-next { text-align: right; }
.docs-menu-btn { display: none; }
@media (max-width: 1120px) {
  .docs-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 820px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); padding-top: 20px; gap: 20px; }
  .docs-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: 500 0.9375rem/1 var(--font-body);
    cursor: pointer;
  }
  .docs-menu-current { margin-left: auto; color: var(--muted); font-size: 0.875rem; }
  .docs-nav { position: static; max-height: none; display: none; padding: 8px 0 16px; }
  .docs-nav.open { display: block; animation: reveal 0.3s var(--ease); }
  .prose .anchor { display: none; }
}

/* ---------------------------------------------------------------- Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 40px; }
.post { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; }
.post-art { aspect-ratio: 16 / 10; max-width: 100%; position: relative; overflow: hidden; border-radius: 16px; background: var(--surface-2); transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.post:hover .post-art { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-art svg { width: 100%; height: 100%; display: block; transition: transform 0.8s var(--ease); }
.post:hover .post-art svg { transform: scale(1.04); }
.post-body { display: grid; gap: 10px; align-content: start; }
.post-body h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.15; }
.post-body p { color: var(--muted); font-size: 0.9375rem; }
.post-foot { display: flex; align-items: center; gap: 10px; font: 500 0.75rem/1 var(--font-mono); color: var(--faint); }
.post-feature { grid-column: span 3; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.post-feature .post-art { aspect-ratio: 16 / 10; }
.post-feature-text { display: grid; gap: 20px; }
.post-feature h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); }
.post-feature .post-body p { font-size: 1.0625rem; max-width: 42ch; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-feature { grid-column: span 2; } }
@media (max-width: 640px) {
  .posts { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .post-feature { grid-column: span 1; grid-template-columns: minmax(0, 1fr); }
}
.soon { color: var(--tangerine-ink); }
.blog-foot { margin-top: clamp(72px, 9vw, 120px); max-width: 60ch; color: var(--muted); }

/* ---------------------------------------------------------------- 404 */
.nf { text-align: left; padding-block: clamp(64px, 12vw, 140px); display: grid; gap: 18px; }
.nf .zero { font-size: clamp(6rem, 3rem + 12vw, 12rem); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hc-loop .hc-cursor, .hc-loop .hc-click-1, .hc-loop .hc-click-2, .hc-flow, .hc-push, .bd-packet, .bd-packet-g, .hc-accept { display: none; }
  .hc-loop .hc-ai, .hc-loop .hc-link, .hc-loop .hc-ai-row, .hc-loop .hc-sum, .hc-loop .hc-accepted, .hc-loop .hc-approved, .hc-loop .hc-pushed { animation: none !important; opacity: 1; transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
}

.text-link { color: var(--ink); text-decoration-color: var(--tangerine); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.where { font: 500 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 640px) {
  .code pre { padding: 40px 16px 16px; }
  .steps > li { grid-template-columns: 28px minmax(0, 1fr); gap: 0 14px; padding-bottom: 52px; }
  .steps > li::after { left: 8px; }
}

/* ---------------------------------------------------------------- Blog post */
.post { position: relative; }
.post-link { color: inherit; text-decoration: none; }
.post-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.post-link:focus-visible { outline: none; }
.post-link:focus-visible::after { outline: 2px solid var(--tangerine); outline-offset: 6px; }
.post:hover h3 .post-link { color: var(--tangerine-ink); }
.post-art svg[viewBox] { min-height: 100%; }

.post-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) 200px;
  justify-content: center;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 64px) 32px;
}
.post-article { min-width: 0; }
.post-shell .docs-toc { margin-top: 260px; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 500 0.75rem/1.4 var(--font-mono); color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post-head { display: grid; gap: 18px; }
.post-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 760; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; animation: line-up 0.9s var(--ease) both; }
.post-dek { font-size: var(--step-1); color: var(--muted); line-height: 1.6; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px; font: 500 0.8125rem/1.5 var(--font-mono); color: var(--faint); }
.post-cover { margin: 36px 0 8px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.post-cover svg { width: 100%; height: 100%; display: block; }
.post-prose { margin-top: 40px; }
.post-prose > p:first-child { font-size: 1.125rem; }
.post-tags { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li { font: 500 0.75rem/1 var(--font-mono); color: var(--muted); padding: 7px 10px; border-radius: 999px; background: var(--surface-2); }
.post-cta { margin-top: 40px; padding: 28px; border-radius: 18px; background: var(--band); color: var(--band-fg); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.post-cta p { color: var(--band-muted); font-size: 0.9375rem; max-width: 46ch; }
.post-cta .post-cta-title { color: var(--band-fg); font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; margin-bottom: 6px; }
.post-cta-actions { display: grid; gap: 10px; justify-items: start; }
.post-cta .btn-primary { background: var(--band-fg); color: var(--band); }
.post-cta .cmd { background: var(--band-surface); border-color: var(--band-line); color: var(--band-fg); }
.related { padding-block: clamp(56px, 8vw, 112px) clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.related-title { font-size: var(--step-2); letter-spacing: -0.025em; margin-bottom: 40px; }
@media (max-width: 1120px) {
  .post-shell { grid-template-columns: minmax(0, 720px); }
  .post-shell .docs-toc { display: none; }
}
@media (max-width: 640px) {
  .post-cta { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .post-cover { margin-top: 28px; border-radius: 14px; }
}

/* Key takeaways: the short answer, up top. */
.takeaways { border-left: 3px solid var(--tangerine); padding: 2px 0 2px 22px; }
.takeaways-title { font: 500 0.6875rem/1.4 var(--font-mono) !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint) !important; }
.takeaways ul { margin-top: 10px; }

/* Figures: diagrams and screenshots with a caption. */
.fig { margin-block: 2.2em !important; margin-inline: 0; }
.fig-frame { border-radius: 16px; background: var(--surface-2); overflow: hidden; }
.fig-frame svg { display: block; width: 100%; height: auto; }
.fig-shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.fig figcaption { margin-top: 12px; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.fig figcaption strong { color: var(--ink); }
.fig svg text { font-family: var(--font-body); }
.fig svg .mono { font-family: var(--font-mono); }

/* Before / after pairs. */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba > div { padding: 18px 20px; border-radius: 14px; background: var(--surface-2); }
.ba p { margin: 0; font-size: 0.9375rem; }
.ba p + p { margin-top: 8px; }
.ba .ba-label { font: 500 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ba .ba-bad .ba-label { color: var(--oilred); }
.ba .ba-good .ba-label { color: var(--lemongrass-ink); }
@media (max-width: 560px) { .ba { grid-template-columns: minmax(0, 1fr); } }

/* FAQ. */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 650 1.0625rem/1.4 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--faint); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--tangerine); }
.faq details > p { margin-top: 10px; }

/* Animated diagrams: loop like a GIF while on screen, rest on the final frame
   when motion is reduced. Classes go on SVG elements inside .fig. */
.a-grow, .a-rise, .a-fade, .a-draw, .a-move, .a-pop {
  animation-duration: var(--t, 6s);
  animation-delay: var(--d, 0s);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
  transform-box: fill-box;
}
.a-grow { transform-origin: 0 50%; animation-name: a-grow; }
.a-rise { transform-origin: 50% 100%; animation-name: a-rise; }
.a-fade { animation-name: a-fade; }
.a-pop { transform-origin: 50% 50%; animation-name: a-pop; }
.a-draw { stroke-dasharray: 1; animation-name: a-draw; }
.a-move { animation-name: a-move; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
.js .fig:not(.in-view) :is(.a-grow, .a-rise, .a-fade, .a-draw, .a-move, .a-pop) { animation-play-state: paused; }
@keyframes a-grow { 0%, 8% { transform: scaleX(0); } 34%, 100% { transform: scaleX(1); } }
@keyframes a-rise { 0%, 8% { transform: scaleY(0); } 34%, 100% { transform: scaleY(1); } }
@keyframes a-fade { 0%, 8% { opacity: 0; transform: translateY(6px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes a-pop { 0%, 8% { opacity: 0; transform: scale(0.6); } 22% { opacity: 1; transform: scale(1.08); } 30%, 100% { opacity: 1; transform: scale(1); } }
@keyframes a-draw { 0%, 8% { stroke-dashoffset: 1; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes a-move { 0% { opacity: 0; transform: translate(0, 0); } 12%, 82% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)); } }
@media (prefers-reduced-motion: reduce) {
  .a-move { display: none; }
}

/* ------------------------------------------------------------ OKR.ai Cloud: preview offers and request form */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 12px; }
.offer { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.offer h3 { font-size: 1.125rem; letter-spacing: -0.015em; margin: 0; }
.offer p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.request-form { display: grid; gap: 16px; margin-top: 20px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px); }
.request-form label { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.request-form input:not([type="checkbox"]), .request-form select, .request-form textarea {
  font: 400 0.9375rem/1.4 var(--font-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.request-form textarea { resize: vertical; min-height: 84px; }
.request-form :is(input, select, textarea):focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tangerine) 28%, transparent); }
.request-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.request-form legend { font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.request-form .rf-check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.9375rem; }
.request-form .rf-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.rf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rf-status { margin: 0; font-size: 0.875rem; color: var(--muted); }
.rf-status.ok { color: var(--lemongrass-ink); font-weight: 600; }
.rf-status.err { color: var(--oilred); }
.rf-fine { margin: 0; font-size: 0.8125rem; color: var(--faint); }
.request-form.sent :is(.rf-row, fieldset, label, .rf-fine, button) { display: none; }
@media (max-width: 640px) { .rf-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  /* Keep diagram labels legible on phones: scroll the figure sideways instead of shrinking it. */
  .fig-frame { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .fig-frame svg { width: 600px; max-width: none; }
}

/* ---------------------------------------------------------------- Feedback button and dialog */
.fb-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.25s var(--spring), color 0.2s, border-color 0.2s;
}
.fb-fab:hover { transform: translateY(-2px) rotate(-8deg); color: var(--tangerine-ink); border-color: var(--line-strong); }
.fb-fab:active { transform: scale(0.94); }
.fb-fab:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 3px; }
html:not(.js) .fb-fab { display: none; }

.fb-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.fb-dialog::backdrop { background: rgb(10 10 10 / 0.42); }
.fb-dialog[open] { animation: pop 0.3s var(--spring); }
/* Without JavaScript, the #feedback anchor opens it. */
html:not(.js) .fb-dialog:target { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 70; }
.fb-form { display: grid; gap: 16px; padding: 22px; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.fb-close { width: 32px; height: 32px; }
.fb-kinds { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 11px; background: var(--surface-2); }
.fb-kinds label { position: relative; display: grid; place-items: center; height: 34px; border-radius: 8px; font-size: 0.875rem; font-weight: 550; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.fb-kinds label:has(input:focus-visible) { outline: 2px solid var(--tangerine); outline-offset: 1px; }
.fb-field { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; }
.fb-opt { font-weight: 400; color: var(--faint); margin-left: 4px; }
.fb-field textarea, .fb-field input {
  width: 100%;
  box-sizing: border-box;
  font: 400 0.9375rem/1.5 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.fb-field textarea { resize: vertical; min-height: 110px; }
.fb-field :is(textarea, input):focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tangerine) 26%, transparent); }
.fb-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fb-note { font-size: 0.75rem; color: var(--faint); line-height: 1.4; }
.fb-status { font-size: 0.875rem; min-height: 0; margin: -4px 0 0; }
.fb-status:empty { display: none; }
.fb-status.ok { color: var(--lemongrass-ink); }
.fb-status.err { color: var(--oilred); }
.fb-hp, .fb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media print { .fb-fab { display: none; } }
