/* ==========================================================================
   Damper website — design system v3
   One idea runs through every page: the product loop.
   Each loop stage owns a color (collect, prioritize, build, ship, operate),
   and every feature, card and menu item wears the color of its stage, so a
   visitor can always tell where a piece fits in the whole.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #fbfaf8;
  --bg-2: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --ink: #16171a;
  --ink-2: #4b4f58;
  --ink-3: #7b808a;
  --line: #e7e4de;
  --line-2: #d8d4cc;

  --accent: #4f46e5;
  --accent-ink: #3730a3;
  --accent-soft: #eef0ff;
  --on-accent: #ffffff;

  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --danger-soft: #fdecec;

  /* Loop stages */
  --collect: #0284c7;
  --collect-soft: #e6f4fb;
  --prioritize: #d97706;
  --prioritize-soft: #fdf3e3;
  --build: #7c3aed;
  --build-soft: #f2ecfe;
  --ship: #16a34a;
  --ship-soft: #e8f6ed;
  --operate: #475569;
  --operate-soft: #eef1f5;

  --shadow-sm: 0 1px 2px rgb(22 23 26 / 0.06);
  --shadow: 0 1px 2px rgb(22 23 26 / 0.05), 0 10px 30px -12px rgb(22 23 26 / 0.16);
  --shadow-lg: 0 1px 2px rgb(22 23 26 / 0.05), 0 30px 70px -28px rgb(22 23 26 / 0.3);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --font: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --w: 74rem;
  --w-text: 42rem;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --bg-2: #15171b;
    --surface: #17191e;
    --surface-2: #1d2026;
    --ink: #eceef2;
    --ink-2: #aab0bb;
    --ink-3: #7d838f;
    --line: #262a31;
    --line-2: #333842;

    --accent: #8b87ff;
    --accent-ink: #b7b4ff;
    --accent-soft: #1f1d3d;
    --on-accent: #0e0f12;

    --collect: #38bdf8;
    --collect-soft: #0f2633;
    --prioritize: #fbbf24;
    --prioritize-soft: #2d230f;
    --build: #a78bfa;
    --build-soft: #231c3a;
    --ship: #4ade80;
    --ship-soft: #11291a;
    --operate: #a3b1c4;
    --operate-soft: #1d232c;
    --danger: #f87171;
    --danger-soft: #3a1a1c;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 1px 2px rgb(0 0 0 / 0.4), 0 30px 70px -28px rgb(0 0 0 / 0.75);
  }
}

/* Stage scoping: any element with .s-<stage> exposes --s / --s-soft */
.s-collect { --s: var(--collect); --s-soft: var(--collect-soft); }
.s-prioritize { --s: var(--prioritize); --s-soft: var(--prioritize-soft); }
.s-build { --s: var(--build); --s-soft: var(--build-soft); }
.s-ship { --s: var(--ship); --s-soft: var(--ship-soft); }
.s-operate { --s: var(--operate); --s-soft: var(--operate-soft); }

/* ---------- 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);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; text-wrap: balance; }
code, kbd, .mono { font-family: var(--mono); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font-weight: 500;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--s, var(--accent));
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 2px;
  background: currentColor;
}
.h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.h2, .prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.032em; line-height: 1.08; }
.h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.075rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 44rem; }
.muted { color: var(--ink-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--s, var(--accent));
}
.link-arrow svg { transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

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

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 200deg, var(--collect), var(--prioritize), var(--build), var(--ship), var(--collect));
  color: #fff;
}
.logo-mark svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25)); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a, .nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); font-weight: 450;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav > a:hover, .nav-drop-trigger:hover, .nav-drop.open .nav-drop-trigger { color: var(--ink); background: var(--bg-2); }
.nav-drop { position: relative; }
.nav-drop .chev { transition: transform 0.2s ease; }
.nav-drop.open .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: -12px;
  width: min(880px, calc(100vw - 48px));
  padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-drop.open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .nav-drop:hover .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .chev { transform: rotate(180deg); }
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mega-col { padding: 8px; border-radius: var(--r); }
.mega-col h5 {
  display: flex; align-items: center; gap: 7px; margin: 2px 6px 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--s);
}
.mega-col h5 i { width: 7px; height: 7px; border-radius: 2px; background: var(--s); }
.mega-col a { display: block; padding: 8px 8px; border-radius: 9px; transition: background 0.15s ease; }
.mega-col a:hover { background: var(--s-soft); }
.mega-col a strong { display: block; font-size: 14px; font-weight: 550; color: var(--ink); }
.mega-col a span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); margin-top: 2px; }
.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding: 12px 14px 4px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.mega-foot a { color: var(--accent); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.login { font-size: 14.5px; color: var(--ink-2); padding: 0 8px; }
.login:hover { color: var(--ink); }
.lang-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-2); }
.br-lang-btn {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  padding: 3px 8px; border-radius: 999px; color: var(--ink-3);
}
.br-lang-btn:hover { color: var(--ink); }
.br-lang-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav, .header-actions > .lang-toggle, .login { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.open {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    overflow-y: auto; padding: 16px 24px 40px;
    background: var(--bg);
  }
  .mobile-nav h5 {
    display: flex; align-items: center; gap: 8px; margin: 18px 0 6px;
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s, var(--ink-3));
  }
  .mobile-nav h5 i { width: 7px; height: 7px; border-radius: 2px; background: var(--s); }
  .mobile-nav a:not(.btn):not(.br-lang-btn) { display: block; padding: 10px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mobile-nav .mobile-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .header-actions > .btn { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section-flush { padding-top: 24px; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section-flush { padding-top: 16px; }
  .section-head { margin-bottom: 40px; }
}

/* ---------- Home hero ---------- */

.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 720px; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 40%, color-mix(in srgb, var(--collect) 14%, transparent), transparent 70%),
    radial-gradient(35% 45% at 55% 20%, color-mix(in srgb, var(--build) 14%, transparent), transparent 70%),
    radial-gradient(35% 45% at 88% 50%, color-mix(in srgb, var(--ship) 12%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 .grad {
  background: linear-gradient(95deg, var(--collect), var(--build) 55%, var(--ship));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 24px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

.pill-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill-badge b {
  font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 999px; background: var(--build-soft); color: var(--build);
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* The story of one request — hero visual */
.journey { position: relative; display: grid; gap: 12px; }
.journey::before {
  content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(var(--collect), var(--prioritize), var(--build), var(--ship));
  border-radius: 2px; opacity: 0.55;
}
.j-step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0; align-items: start;
}
.j-dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--s-soft); color: var(--s); border: 1px solid color-mix(in srgb, var(--s) 25%, transparent);
}
.j-card {
  margin-left: 14px; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.j-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s); }
.j-label span:last-child { color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.j-title { margin-top: 6px; font-size: 15px; font-weight: 550; }
.j-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.j-step:nth-child(odd) .j-card { transform: translateX(0); }
@media (prefers-reduced-motion: no-preference) {
  .j-step { animation: j-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .j-step:nth-child(2) { animation-delay: 0.12s; }
  .j-step:nth-child(3) { animation-delay: 0.24s; }
  .j-step:nth-child(4) { animation-delay: 0.36s; }
  @keyframes j-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Chips / tags ---------- */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag-s { background: var(--s-soft); color: var(--s); border-color: color-mix(in srgb, var(--s) 22%, transparent); }
.tag-ok { background: var(--ship-soft); color: var(--ship); border-color: transparent; }
.tag-warn { background: var(--prioritize-soft); color: var(--prioritize); border-color: transparent; }
.tag-bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink-2);
}
.chip.strike { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); }

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

.strip { padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; justify-content: center; }
.strip-label { font-size: 13.5px; color: var(--ink-3); }
.strip-item { font-weight: 550; color: var(--ink-2); font-size: 15px; letter-spacing: -0.01em; }

/* ---------- Loop map (product map, reused everywhere) ---------- */

.loopmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lm-col {
  position: relative; display: flex; flex-direction: column;
  padding: 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.lm-col::before {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--s);
}
.lm-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.lm-col h3 { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 1.2rem; color: var(--ink); }
.lm-col h3 i { width: 9px; height: 9px; border-radius: 3px; background: var(--s); }
.lm-col > p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lm-links { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.lm-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin: 0 -10px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background 0.15s ease;
}
.lm-links a svg { color: var(--ink-3); transition: transform 0.2s ease, color 0.2s ease; }
.lm-links a:hover { background: var(--s-soft); }
.lm-links a:hover svg { color: var(--s); transform: translateX(2px); }
.lm-arrow { display: none; }
@media (max-width: 1000px) {
  .loopmap { grid-template-columns: repeat(2, 1fr); }
  .loopmap .lm-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .loopmap { grid-template-columns: 1fr; }
}

/* Highlight the current feature in any loop map (set data-feature on <body>) */
[data-feature="widget"] .lm-links a[data-f="widget"],
[data-feature="inbox"] .lm-links a[data-f="inbox"],
[data-feature="weighted-voting"] .lm-links a[data-f="weighted-voting"],
[data-feature="ai-execution"] .lm-links a[data-f="ai-execution"],
[data-feature="context-graph"] .lm-links a[data-f="context-graph"],
[data-feature="review"] .lm-links a[data-f="review"],
[data-feature="changelog"] .lm-links a[data-f="changelog"],
[data-feature="pages"] .lm-links a[data-f="pages"],
[data-feature="status"] .lm-links a[data-f="status"],
[data-feature="logs"] .lm-links a[data-f="logs"],
[data-feature="projects"] .lm-links a[data-f="projects"] {
  background: var(--s-soft); color: var(--s); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s) 30%, transparent);
}

/* ---------- Loop bar (stage indicator on feature pages) ---------- */

.loopbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 28px; padding: 6px; width: fit-content; max-width: 100%;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.loopbar a {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  transition: color 0.15s ease, background 0.15s ease;
}
.loopbar a i { width: 7px; height: 7px; border-radius: 2px; background: var(--s); opacity: 0.55; }
.loopbar a:hover { color: var(--ink); }
.loopbar .lb-sep { color: var(--line-2); font-size: 12px; }
[data-stage="collect"] .loopbar a.s-collect,
[data-stage="prioritize"] .loopbar a.s-prioritize,
[data-stage="build"] .loopbar a.s-build,
[data-stage="ship"] .loopbar a.s-ship,
[data-stage="operate"] .loopbar a.s-operate {
  background: var(--s-soft); color: var(--s);
}
[data-stage="collect"] .loopbar a.s-collect i,
[data-stage="prioritize"] .loopbar a.s-prioritize i,
[data-stage="build"] .loopbar a.s-build i,
[data-stage="ship"] .loopbar a.s-ship i,
[data-stage="operate"] .loopbar a.s-operate i { opacity: 1; }
@media (max-width: 640px) { .loopbar .lb-sep { display: none; } .loopbar { border-radius: var(--r); } }

/* ---------- Pillars (home deep-dives) ---------- */

.pillar { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.pillar + .pillar { margin-top: 128px; }
.pillar.flip .pillar-copy { order: 2; }
.pillar-copy .h2 { margin-top: 14px; }
.pillar-copy > p { margin-top: 18px; color: var(--ink-2); font-size: 17px; }
.pillar-copy .link-arrow { margin-top: 28px; }
@media (max-width: 1000px) {
  .pillar { grid-template-columns: 1fr; gap: 40px; }
  .pillar.flip .pillar-copy { order: 0; }
  .pillar + .pillar { margin-top: 96px; }
}

.points { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.points li::before {
  content: ''; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px;
  background: var(--s-soft, var(--accent-soft)) 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='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.points li b, .points li strong { color: var(--ink); font-weight: 600; }
@supports (mask: url('')) {
  .points li { position: relative; }
  .points li::before {
    background: var(--s-soft, var(--accent-soft));
  }
  .points li::after {
    content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px;
    background: var(--s, var(--accent));
    -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='M20 6L9 17l-5-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='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Featured (dark) band — used for the most important pillar */
.feature-band {
  position: relative; overflow: hidden;
  padding: 72px; border-radius: var(--r-xl);
  background: #121118; color: #eceef2;
  --ink: #eceef2; --ink-2: #b2b6c2; --ink-3: #868b98;
  --line: #2a2933; --line-2: #3a3945; --surface: #1b1a23; --surface-2: #22212c; --bg-2: #22212c;
  --build: #b69cff; --build-soft: #2a2143;
  --ship: #4ade80; --ship-soft: #13301e;
  --prioritize: #fbbf24; --prioritize-soft: #33280f;
  --collect: #38bdf8; --collect-soft: #0f2a38;
  --accent: #a5a1ff;
}
.feature-band::before {
  content: ''; position: absolute; right: -10%; top: -30%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgb(139 92 246 / 0.28), transparent);
  pointer-events: none;
}
.feature-band > * { position: relative; }
.feature-band .btn-primary { background: #fff; color: #121118; }
@media (max-width: 720px) { .feature-band { padding: 40px 24px; border-radius: var(--r-lg); } }

/* ---------- Window mock (product UI frame) ---------- */

.win {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.win-bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-url {
  flex: 1; max-width: 280px; margin: 0 auto; padding: 3px 12px; border-radius: 999px; text-align: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); background: var(--bg-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win-body { padding: 18px; }
.win-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.win-foot b { color: var(--s, var(--accent)); font-weight: 600; }

/* Rows inside mocks */
.rows { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
}
.row.hi { border-color: color-mix(in srgb, var(--s, var(--accent)) 45%, var(--line)); background: color-mix(in srgb, var(--s-soft, var(--accent-soft)) 60%, var(--surface)); }
.row-title { font-size: 14.5px; font-weight: 550; line-height: 1.3; }
.row-meta { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.row-num { font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.row-num small { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.dot.ok { background: var(--ship); }
.dot.warn { background: var(--prioritize); }
.dot.bad { background: var(--danger); }
.dot.prog { background: var(--build); }
.dot.plan { background: var(--collect); }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.ico {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--s-soft, var(--accent-soft)); color: var(--s, var(--accent));
}

/* Terminal mock */
.term {
  border-radius: var(--r-lg); overflow: hidden; background: #0c0c11; color: #d5d7de;
  border: 1px solid #262631; box-shadow: var(--shadow-lg);
  font-family: var(--mono); font-size: 13px; line-height: 1.75;
}
.term .win-bar { background: #15151c; border-color: #262631; }
.term .win-dots i { background: #34343f; }
.term .win-url { background: #1d1d26; color: #8a8c99; }
.term-body { padding: 18px 20px; overflow-x: auto; }
.term-body div { white-space: nowrap; }
.t-ok { color: #4ade80; }
.t-run { color: #b69cff; }
.t-dim { color: #7c7f8c; }
.t-key { color: #93c5fd; }
.t-str { color: #fcd34d; }
.t-warn { color: #fbbf24; }

/* Code block (docs + marketing) */
.code-block {
  position: relative; margin: 20px 0; border-radius: var(--r); overflow: hidden;
  background: #0c0c11; border: 1px solid #262631;
}
.code-block pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d5d7de;
}
.code-key { color: #93c5fd; }
.code-string { color: #fcd34d; }
.code-comment { color: #6f7280; font-style: italic; }

/* ---------- Grids of cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover { border-color: color-mix(in srgb, var(--s, var(--accent)) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 16px; font-size: 1.1rem; letter-spacing: -0.015em; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.card .card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .card-tools { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.card .card-stage { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s); }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--s, var(--ink-3)); }

/* ---------- "Replaces" row ---------- */

.replaces {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 36px 40px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
}
.replaces h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.replaces p { margin-top: 8px; color: var(--ink-2); }
.replaces .chip-row { justify-content: flex-end; max-width: 520px; }
@media (max-width: 900px) { .replaces { grid-template-columns: 1fr; padding: 28px; } .replaces .chip-row { justify-content: flex-start; } }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.step-n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; background: var(--s-soft); color: var(--s);
}
.step h3 { margin-top: 16px; font-size: 1.1rem; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.step .code-block { margin: 16px 0 0; }
.step .code-block pre { font-size: 12px; padding: 14px 16px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr; } }

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

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan-tag {
  position: absolute; top: -11px; left: 24px; padding: 2px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500;
}
.plan-name { font-weight: 600; font-size: 17px; }
.plan-desc { margin-top: 4px; font-size: 14px; color: var(--ink-3); min-height: 2.8em; }
.plan-price { margin-top: 18px; font-size: 38px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.plan-price .per { font-size: 15px; font-weight: 450; color: var(--ink-3); letter-spacing: 0; }
.plan-billing { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.plan-weight { margin-top: 16px; padding: 8px 12px; border-radius: 9px; background: var(--bg-2); font-size: 13.5px; color: var(--ink-2); }
.plan-weight b { color: var(--ink); }
.plan-features { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; font-size: 14.5px; color: var(--ink-2); }
.plan-features li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.plan-features svg { margin-top: 3px; color: var(--ship); }
.price-card .btn { margin-top: auto; }
.compare-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); text-align: center; }
.pricing-more { margin-top: 32px; text-align: center; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink-2); }
.table code { font-size: 12.5px; }

/* ---------- FAQ ---------- */

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 550; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--ink-3); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-body { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 80px 32px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.cta-band::before {
  content: ''; position: absolute; inset: auto 0 -1px; height: 4px;
  background: linear-gradient(90deg, var(--collect), var(--prioritize), var(--build), var(--ship), var(--operate));
}
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.035em; }
.cta-band p { margin: 16px auto 0; max-width: 36rem; color: var(--ink-2); font-size: 17px; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band.section-tight { padding: 56px 28px; margin-top: 64px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 64px 0 56px; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); letter-spacing: -0.038em; line-height: 1.05; max-width: 52rem; }
.page-hero .lead { margin-top: 20px; }
.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center .lead { margin-inline: auto; }
.page-hero-center .hero-ctas { justify-content: center; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--line-2); }
.breadcrumb + h1 { margin-top: 24px; }
.updated { color: var(--ink-3); font-size: 14px; }

/* ---------- Feature page hero ---------- */

.fhero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.fhero::before {
  content: ''; position: absolute; right: -8%; top: -40%; width: 60%; height: 140%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--s) 13%, transparent), transparent);
}
.fhero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; margin-top: 40px; }
.fhero h1 { margin-top: 16px; font-size: clamp(2.3rem, 4.8vw, 3.9rem); letter-spacing: -0.04em; line-height: 1.03; }
.fhero .lead { margin-top: 22px; }
@media (max-width: 1000px) { .fhero-grid { grid-template-columns: 1fr; gap: 40px; } }

.stage-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.stage-tag .ico { width: 36px; height: 36px; border-radius: 11px; }
.stage-tag b { color: var(--s); font-weight: 600; }

/* "In short" glance card */
.glance {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.glance-label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.glance-what { margin-top: 10px; font-size: 17px; font-weight: 550; line-height: 1.45; letter-spacing: -0.01em; }
.glance ul { list-style: none; display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.glance li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.glance li span:first-child {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--s-soft); color: var(--s);
}

/* Feature page split sections */
.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.flip > :first-child { order: 2; }
.split-copy .h2 { margin-top: 14px; font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.split-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; }
.split-copy .link-arrow { margin-top: 24px; }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .split + .split { margin-top: 88px; }
}

/* Numbered flow (agent loop etc.) */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: flow; }
.flow li {
  counter-increment: flow; position: relative;
  padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--s, var(--accent));
}
.flow li strong { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.flow li p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.flow code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--s-soft, var(--bg-2)); color: var(--s, var(--ink)); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 24px 0; padding: 18px 20px; border-radius: var(--r);
  background: var(--s-soft, var(--accent-soft)); color: var(--ink-2); font-size: 15px;
  border: 1px solid color-mix(in srgb, var(--s, var(--accent)) 22%, transparent);
}
.callout strong { color: var(--ink); }

/* Connect (prev / next in the loop) */
.connect { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.connect a {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.connect a:hover { border-color: color-mix(in srgb, var(--s) 45%, var(--line)); box-shadow: var(--shadow); }
.connect small { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s); }
.connect strong { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.connect span { font-size: 14.5px; color: var(--ink-2); }
.connect a.next { text-align: right; }
@media (max-width: 640px) { .connect { grid-template-columns: 1fr; } .connect a.next { text-align: left; } }

/* Property cloud (pages) */
.prop-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.prop { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.prop-native { background: var(--s-soft); color: var(--s); border-color: color-mix(in srgb, var(--s) 25%, transparent); font-weight: 550; }

/* Tabs look-alike */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg-2); }
.seg span { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink-3); }
.seg span.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Uptime bars */
.bars { display: grid; grid-template-columns: repeat(45, 1fr); gap: 2px; height: 32px; }
.bars i { border-radius: 2px; background: var(--ship); opacity: 0.85; }
.bars i.w { background: var(--prioritize); }
.bars i.b { background: var(--danger); }

/* Before/after screenshot mock */
.shot { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.shot-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.shot-body { padding: 12px; display: grid; gap: 7px; }
.shot-body i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); }
.shot-body i.s { background: var(--s); opacity: 0.8; width: 45%; }
.shot-body i.w70 { width: 70%; } .shot-body i.w50 { width: 50%; } .shot-body i.w85 { width: 85%; }

/* ---------- Docs & prose ---------- */

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-sidebar {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
}
.sidebar-label { margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.docs-sidebar a { padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); border-left: 2px solid transparent; }
.docs-sidebar a:hover { color: var(--ink); background: var(--bg-2); }
.docs-sidebar .blog-toc-h3 { padding-left: 22px; font-size: 13.5px; }
.docs-toc { display: none; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { display: none; }
  .docs-toc { display: block; margin: 8px 0 24px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
  .docs-toc h2 { font-size: 14px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; }
  .docs-toc nav { display: grid; gap: 6px; margin-top: 10px; }
  .docs-toc a { color: var(--ink-2); font-size: 14.5px; }
  .docs-toc .blog-toc-h3 { padding-left: 14px; }
}

.prose { max-width: 46rem; color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h2 { margin-top: 2.4em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; font-size: 1.2rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin-top: 1.6em; font-size: 1.02rem; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-3); }
.prose code:not(pre code) { font-size: 0.86em; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.prose pre { margin: 1.4em 0; padding: 18px 20px; border-radius: var(--r); background: #0c0c11; color: #d5d7de; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.prose img { border-radius: var(--r); border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .table-wrap, .prose .code-block { margin: 1.4em 0; }
.post-title { margin-top: 14px !important; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; }
.blog-meta { color: var(--ink-3); font-size: 14px; }
.blog-article { margin-top: 40px; }

.step-list { list-style: none; padding: 0 !important; counter-reset: sl; display: grid; gap: 10px; }
.step-list li {
  counter-increment: sl; display: grid; grid-template-columns: 32px 1fr; gap: 14px; margin: 0 !important;
  padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.step-list li::before {
  content: counter(sl); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent);
}
.step-list strong { display: block; color: var(--ink); }
.step-list p { margin-top: 4px; font-size: 15px; }

.tool-group { margin-top: 2.4em; }
.tool-group h3 { margin-top: 0; }
.tool-list { display: grid; gap: 8px; margin-top: 14px; }
.tool-card {
  display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 16px;
  padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.tool-name { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); word-break: break-word; }
.tool-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mono-chip { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 640px) { .tool-card { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Blog ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card h2 { font-size: 1.2rem; letter-spacing: -0.018em; line-height: 1.3; }
.blog-card p { color: var(--ink-2); font-size: 15px; }
.blog-card-meta { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

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

.footer { margin-top: 0; padding: 72px 0 36px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 20rem; font-size: 14.5px; color: var(--ink-2); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3);
}
.footer-col a { font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-col a i { display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--s); margin-right: 8px; vertical-align: 2px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (progressive) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
  }
}

/* ---------- Utilities ---------- */

.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.center { text-align: center; }
.stack-8 { display: grid; gap: 8px; }
.stack-12 { display: grid; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.ink-3 { color: var(--ink-3); }
.s-color { color: var(--s); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Features index */
.stage-block + .stage-block { margin-top: 112px; }

/* Grid children must be allowed to shrink below their content (code blocks). */
.split > *, .pillar > *, .hero-grid > *, .fhero-grid > *, .docs-layout > *,
.steps > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .pricing-grid > *, .loopmap > *, .blog-grid > * { min-width: 0; }
.feature-band { border: 1px solid #2a2933; }

/* Product map: align number, title, blurb and links across columns */
@supports (grid-template-rows: subgrid) {
  .loopmap { grid-template-rows: auto auto auto 1fr; }
  .lm-col { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .lm-links { align-content: start; }
  @media (max-width: 1000px) {
    .loopmap { grid-template-rows: none; }
    .lm-col { display: flex; grid-row: auto; }
  }
}

/* Features index: heading beside its cards */
.stage-block { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.stage-block .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.stage-block .h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.stage-block .grid-3 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) {
  .stage-block { grid-template-columns: 1fr; gap: 32px; }
  .stage-block .section-head { position: static; }
}
@media (max-width: 640px) { .stage-block .grid-3 { grid-template-columns: 1fr; } }

/* Short code in narrow cards wraps instead of hiding behind a scrollbar */
.step .code-block pre { font-size: 11px; }

/* Vertical numbered flow next to a visual */
.flow.compact { grid-template-columns: 1fr; gap: 8px; }
.flow.compact li { padding: 14px 18px; }
.flow.compact li strong { margin-top: 4px; font-size: 15px; }

/* Docs refinements */
.prose .code-block pre { margin: 0; border-radius: 0; background: none; }
.prose .breadcrumb a { color: inherit; text-decoration: none; }
.prose .breadcrumb a:hover { color: var(--ink); }
.tool-group > * + * { margin-top: 14px; }
.tool-group > h4 { margin-top: 2em; }
.tool-group > p + p, .tool-group > p + ol, .tool-group > ol + p { margin-top: 1em; }
.seg span { white-space: nowrap; }
.between { flex-wrap: wrap; }
