/* Damper homepage, concept A "The agent loop": a calm editorial layout around a scripted walkthrough
   built from the real dashboard. One accent (Damper indigo); stage colours appear only inside product UI.
   Light and dark themes: page tokens (--paper, --ink…) and product-mock tokens (--m-*) mirror the
   dashboard's own light and dark palettes. Fonts are self-hosted with font-display: optional (CLS 0). */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: optional; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: optional; src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: optional; src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: optional; src: url("/fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: optional; src: url("/fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 380; font-display: optional; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 380; font-display: optional; src: url("/fonts/newsreader-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Liberation Sans"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-2: #f5f3ee;
  --card: #ffffff;
  --ink: #1b1b22;
  --ink-2: #4a4953;
  --ink-3: #6a6871;
  --line: #e8e5de;
  --line-2: #dedad1;
  --line-3: #c9c4b8;
  --accent: oklch(0.511 0.23 277);
  --accent-hover: oklch(0.457 0.215 277);
  --accent-fg: #ffffff;
  --accent-ink: oklch(0.457 0.215 277);
  --accent-soft: oklch(0.955 0.028 277);
  --accent-done: #b9b4f0;
  --btn-ink: #1b1b22;
  --btn-ink-hover: #33323c;
  --btn-ink-fg: #ffffff;
  --stage-a: #f1eee7;
  --stage-b: #ebe7de;
  --shadow-lg: rgba(40, 30, 20, .35);
  --code-bg: #18171d;
  --code-line: transparent;
  --code-ink: #dad8e3;
  --code-dim: #8b879a;
  --strike: rgba(80, 70, 200, .5);

  /* product mock (dashboard light) */
  --m-side: oklch(0.972 0.0045 85);
  --m-main: oklch(0.995 0.0015 85);
  --m-card: #ffffff;
  --m-sunk: #f6f5f2;
  --m-col: #f4f2ed;
  --m-chip: #f2f1ec;
  --m-line: #ebe8e1;
  --m-line-2: #e3e0d8;
  --m-ink: #1d1c22;
  --m-ink-2: #4b4a55;
  --m-ink-3: #5d5b64;
  --m-ph: #a5a4ad;
  --m-shadow: rgba(40, 30, 20, .28);
  --m-pop: rgba(20, 18, 30, .3);
  --m-scrim: rgba(20, 18, 30, .14);
  --m-accent: oklch(0.511 0.23 277);
  --m-accent-fg: #ffffff;
  --m-accent-ink: oklch(0.457 0.215 277);
  --m-accent-soft: oklch(0.955 0.028 277);
  --m-accent-line: oklch(0.85 0.06 277);
  --m-rev: oklch(0.5 0.2 293);
  --m-rev-bg: oklch(0.958 0.028 298);
  --m-ok: #1f7a4a;
  --m-ok-bg: #e8f6ee;
  --m-ok-line: #bfe3cc;
  --m-ok-dot: #2f9e62;
  --m-new: #2b4ea2;
  --m-new-bg: #e7efff;
  --m-high: #b03a2e;
  --m-high-bg: #fdf0ee;
  --m-high-line: #f4d3cd;
  --m-med: #8a5a00;
  --m-med-bg: #fdf6e7;
  --m-med-line: #f0dfb6;
  --m-warn-dot: #d08a12;
  --m-planned: oklch(0.48 0.15 253);
  --m-prog: oklch(0.52 0.13 65);
  --m-c: oklch(0.54 0.13 238); --m-c-s: oklch(0.955 0.025 232);
  --m-p: oklch(0.56 0.14 58); --m-p-s: oklch(0.962 0.035 78);
  --m-b: oklch(0.52 0.22 293); --m-b-s: oklch(0.955 0.03 298);
  --m-s: oklch(0.52 0.14 152); --m-s-s: oklch(0.958 0.032 155);
  --m-o: oklch(0.45 0.04 257); --m-o-s: oklch(0.952 0.008 257);
  --m-k: oklch(0.52 0.1 190); --m-k-s: oklch(0.958 0.022 190);
  --m-app-scrim: rgba(20, 18, 30, .18);

  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131317;
  --paper-2: #17171c;
  --card: #1c1c22;
  --ink: #ecebf1;
  --ink-2: #bdbbc6;
  --ink-3: #9b99a6;
  --line: #26262d;
  --line-2: #32323a;
  --line-3: #4a4a54;
  --accent: oklch(0.68 0.16 280);
  --accent-hover: oklch(0.74 0.14 280);
  --accent-fg: oklch(0.17 0.02 280);
  --accent-ink: oklch(0.78 0.12 280);
  --accent-soft: oklch(0.6 0.16 280 / 18%);
  --accent-done: oklch(0.55 0.1 280);
  --btn-ink: #ecebf1;
  --btn-ink-hover: #ffffff;
  --btn-ink-fg: #131317;
  --stage-a: #1b1b21;
  --stage-b: #17171c;
  --shadow-lg: rgba(0, 0, 0, .6);
  --code-bg: #0e0e12;
  --code-line: #2a2a32;
  --code-ink: #dad8e3;
  --code-dim: #8e8a9e;
  --strike: oklch(0.68 0.16 280 / .6);

  /* product mock (dashboard dark) */
  --m-side: oklch(0.16 0.006 270);
  --m-main: oklch(0.185 0.006 270);
  --m-card: oklch(0.212 0.007 270);
  --m-sunk: oklch(0.17 0.006 270);
  --m-col: oklch(0.2 0.007 270);
  --m-chip: oklch(0.255 0.008 270);
  --m-line: oklch(0.3 0.009 268);
  --m-line-2: oklch(0.34 0.01 268);
  --m-ink: oklch(0.955 0.004 265);
  --m-ink-2: oklch(0.86 0.006 265);
  --m-ink-3: oklch(0.74 0.01 265);
  --m-ph: oklch(0.58 0.01 265);
  --m-shadow: rgba(0, 0, 0, .55);
  --m-pop: rgba(0, 0, 0, .6);
  --m-scrim: rgba(0, 0, 0, .35);
  --m-accent: oklch(0.68 0.16 280);
  --m-accent-fg: oklch(0.17 0.02 280);
  --m-accent-ink: oklch(0.8 0.12 280);
  --m-accent-soft: oklch(0.6 0.16 280 / 20%);
  --m-accent-line: oklch(0.6 0.16 280 / 55%);
  --m-rev: oklch(0.79 0.13 295);
  --m-rev-bg: oklch(0.58 0.18 293 / 20%);
  --m-ok: oklch(0.82 0.13 152);
  --m-ok-bg: oklch(0.6 0.13 152 / 18%);
  --m-ok-line: oklch(0.6 0.13 152 / 40%);
  --m-ok-dot: oklch(0.72 0.15 152);
  --m-new: oklch(0.8 0.1 253);
  --m-new-bg: oklch(0.55 0.13 253 / 22%);
  --m-high: oklch(0.8 0.12 25);
  --m-high-bg: oklch(0.55 0.17 25 / 18%);
  --m-high-line: oklch(0.55 0.17 25 / 40%);
  --m-med: oklch(0.84 0.12 80);
  --m-med-bg: oklch(0.65 0.13 70 / 18%);
  --m-med-line: oklch(0.65 0.13 70 / 40%);
  --m-warn-dot: oklch(0.8 0.14 75);
  --m-planned: oklch(0.7 0.13 253);
  --m-prog: oklch(0.8 0.13 75);
  --m-c: oklch(0.76 0.12 232); --m-c-s: oklch(0.6 0.12 232 / 18%);
  --m-p: oklch(0.82 0.13 80); --m-p-s: oklch(0.65 0.13 70 / 18%);
  --m-b: oklch(0.76 0.14 295); --m-b-s: oklch(0.58 0.18 293 / 22%);
  --m-s: oklch(0.8 0.14 152); --m-s-s: oklch(0.6 0.13 152 / 18%);
  --m-o: oklch(0.76 0.03 257); --m-o-s: oklch(0.6 0.03 257 / 20%);
  --m-k: oklch(0.78 0.09 190); --m-k-s: oklch(0.6 0.09 190 / 18%);
  --m-app-scrim: rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--btn-ink); color: var(--btn-ink-fg); border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
/* Theme-specific images: only the visible one is laid out (and, being lazy, fetched). */
.td { display: none !important; }
:root[data-theme="dark"] .tl { display: none !important; }
:root[data-theme="dark"] .td { display: block !important; }
:root[data-theme="dark"] picture.td { display: block !important; }
.tdi { display: none !important; }
:root[data-theme="dark"] .tli { display: none !important; }
:root[data-theme="dark"] .tdi { display: inline !important; }

/* ---------- type ---------- */
.display { font: 400 clamp(44px, 6.4vw, 84px)/1.0 var(--serif); letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.display em { font-style: italic; color: var(--accent-ink); }
.display-md { font-size: clamp(38px, 4.6vw, 60px); }
.h2 { font: 400 clamp(32px, 3.6vw, 48px)/1.08 var(--serif); letter-spacing: -0.018em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.note { font-size: 14px; color: var(--ink-3); }
.kick { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); margin-bottom: 22px; }
.kick i { font: 500 12px/1 var(--mono); font-style: normal; color: var(--accent-ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 8px; background: var(--card); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); white-space: nowrap; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 1px 2px rgba(40,30,120,.25); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--btn-ink); color: var(--btn-ink-fg); }
.btn-ink:hover { background: var(--btn-ink-hover); }
.btn-quiet { color: var(--ink); border-color: var(--line-2); background: var(--card); }
.btn-quiet:hover { border-color: var(--line-3); }
.arrow { display: inline-flex; gap: 6px; font-weight: 500; color: var(--accent-ink); text-decoration: none; margin-top: 26px; }
.arrow span { transition: transform .2s var(--ease); }
.arrow:hover span { transform: translateX(3px); }

/* ---------- header / footer ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.hd-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: oklch(0.511 0.23 277); color: #fff; }
.hd-nav { display: flex; gap: 26px; font-size: 15px; color: var(--ink-2); }
.hd-nav a, .hd-login { text-decoration: none; transition: color .15s; }
.hd-nav a:hover, .hd-login:hover { color: var(--ink); }
.hd-act { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.hd-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--card); border-radius: 10px; color: var(--ink); cursor: pointer; place-items: center; }
.mnav { display: none; }

/* theme switch: Light / Dark / System */
.theme { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.theme button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color .2s, color .2s; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 4px; color: var(--ink-2); font-size: 15px; }

@media (max-width: 899px) {
  .hd-nav, .hd-login, .hd .theme { display: none; }
  .hd-act { gap: 10px; }
  .hd-menu { display: grid; }
  .mnav { display: flex; position: fixed; inset: 64px 0 0; background: var(--paper); flex-direction: column; padding: 16px var(--gut) 32px; gap: 2px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; overflow-y: auto; }
  .mnav.open { visibility: visible; opacity: 1; }
  .mnav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
  .mnav .theme { display: inline-flex; }
  .mnav .btn { margin-top: 24px; }
}
@media (min-width: 900px) { .theme-row { display: none; } }
@media (max-width: 420px) { .hd-act .btn { padding: 0 12px; } }

.ft { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 15px; color: var(--ink-2); }
.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.ft-brand p { margin-top: 16px; max-width: 30ch; color: var(--ink-3); }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col h2 { font: 500 13px/1.4 var(--sans); color: var(--ink); margin-bottom: 6px; }
.ft-col a { text-decoration: none; color: var(--ink-3); transition: color .15s; }
.ft-col a:hover { color: var(--ink); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.lang { display: flex; gap: 4px; }
.lang a, .lang span { padding: 4px 8px; border-radius: 6px; text-decoration: none; font: 500 12px/1 var(--mono); text-transform: uppercase; }
.lang [aria-current], .lang .active { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 899px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 24px; }
.hero-copy { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.hero-side .lead { max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.ctas-c { justify-content: center; }
@media (max-width: 959px) { .hero-copy { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- walkthrough ---------- */
.lp { position: relative; }
.lp-stage { container-type: inline-size; border-radius: 22px; background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); border: 1px solid var(--line); padding: clamp(10px, 1.6vw, 22px); box-shadow: 0 30px 60px -40px var(--shadow-lg); }
.lp-canvas { position: relative; aspect-ratio: 72 / 40; font-size: calc(100cqw / 72); display: grid; grid-template-columns: 26.5em 1fr; gap: 1em; overflow: hidden; font-family: var(--sans); color: var(--m-ink); line-height: 1.4; contain: layout paint; transition: opacity .28s var(--ease); }
/* Jumping to a step or restarting the loop: fade out, rebuild the state with transitions off, fade in. */
.lp-canvas.is-cut { opacity: 0; }
.lp-canvas.no-anim, .lp-canvas.no-anim * { transition: none !important; }
.pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane-cap { position: relative; height: 1.9em; flex: none; font: 500 0.72em/1.9 var(--mono); color: var(--ink-3); padding-left: .2em; }
.cap { position: absolute; left: .3em; top: 0; opacity: 0; transition: opacity .4s var(--ease); white-space: nowrap; }
.cap.is-on { opacity: 1; }
.lp-canvas .wv { position: absolute; inset: 1.9em 0 0; border-radius: .9em; overflow: hidden; background: var(--m-card); border: 1px solid var(--m-line); box-shadow: 0 .1em .3em rgba(0,0,0,.04), 0 1em 2.5em -1.4em var(--m-shadow); opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.lp-canvas .wv.is-on { opacity: 1; transform: none; }

/* the customer's app with the widget */
.wv-app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.wv-app::after { content: ""; position: absolute; inset: 0; background: var(--m-app-scrim); }
.wg { position: absolute; z-index: 2; right: 1.6em; top: 50%; margin-top: -12.2em; width: 17.5em; background: var(--m-card); color: var(--m-ink); border: 1px solid var(--m-line); border-radius: .75em; box-shadow: 0 .5em 1.9em var(--m-pop); padding: 1.1em 1.1em 1em; font-size: .86em; transform: translateX(2em); opacity: 0; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.wg.is-on { transform: none; opacity: 1; }
.wg-head b { display: block; font-size: 1.12em; font-weight: 600; }
.wg-head span { color: var(--m-ink-3); font-size: .9em; }
.wg-l { margin: .9em 0 .35em; font-size: .82em; font-weight: 500; color: var(--m-ink-2); }
.wg-l i { font-style: normal; color: var(--m-ink-3); font-weight: 400; }
.wg-types { display: grid; grid-template-columns: 1fr 1fr; gap: .35em; }
.wg-types span { border: 1px solid var(--m-line-2); border-radius: .45em; padding: .38em .5em; font-size: .82em; color: var(--m-ink-2); transition: border-color .25s, background-color .25s, color .25s; }
.wg-types span.is-sel { border-color: var(--m-accent); background: var(--m-accent-soft); color: var(--m-accent-ink); }
.wg-in { border: 1px solid var(--m-line-2); border-radius: .45em; padding: .45em .6em; font-size: .86em; min-height: 2.1em; color: var(--m-ink); white-space: nowrap; overflow: hidden; background: var(--m-card); }
.wg-in:empty::before { content: attr(data-ph); color: var(--m-ph); }
.wg-ta { min-height: 4.6em; white-space: normal; }
.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wg-btn { margin-top: 1em; background: var(--m-accent); color: var(--m-accent-fg); text-align: center; border-radius: .5em; padding: .6em; font-size: .88em; font-weight: 500; opacity: .45; transition: opacity .25s, transform .15s; }
.wg-btn.is-ready { opacity: 1; }
.is-press { transform: scale(.96); }
.wg-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4em; padding: 1.5em; color: var(--m-ink-3); font-size: .95em; opacity: 0; transition: opacity .4s; background: var(--m-card); border-radius: inherit; pointer-events: none; }
.wg-done svg { color: var(--m-accent); width: 2.4em; height: 2.4em; }
.wg-done b { color: var(--m-ink); font-size: 1.15em; }
.wg.is-done .wg-done { opacity: 1; }
.wg-tab { position: absolute; z-index: 1; right: 0; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: right bottom; background: var(--m-accent); color: var(--m-accent-fg); font-size: .7em; padding: .35em .9em; border-radius: .5em .5em 0 0; transition: opacity .3s; }
.wg.is-on ~ .wg-tab { opacity: 0; }

/* the agent's terminal: lines keep their space from the start, and the log scrolls smoothly once it fills */
.lp-canvas .wv-term { background: #16151c; border-color: #2a2833; }
:root[data-theme="dark"] .lp-canvas .wv-term { background: #0e0e12; border-color: #2c2b35; }
.tm { position: absolute; left: 0; right: 0; top: 0; padding: 1.1em 1.2em; font: 400 .74em/1.55 var(--mono); color: #d9d7e2; transition: transform .6s var(--ease); will-change: transform; }
.tm-l { margin-bottom: .75em; opacity: 0; transform: translateY(.4em); transition: opacity .35s var(--ease), transform .4s var(--ease); }
.tm-l.is-on { opacity: 1; transform: none; }
.tm-prompt { opacity: 1; transform: none; color: #fff; padding: .6em .8em; border: 1px solid #34323f; border-radius: .5em; min-height: 2.75em; }
.tm-gt { color: #9d98b4; }
.tm .dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: oklch(0.673 0.182 277); margin-right: .6em; vertical-align: .05em; }
.tm .dot-g { background: #4fbf86; }
.tm b { color: #fff; font-weight: 500; }
.tm-a { color: #b1adc2; }
.tm-x { color: #fff; margin-left: .4em; }
.tm-r { color: #a19db2; padding-left: 1.15em; }
.tm-r::before { content: "\2514  "; color: #6a677a; }
.tm-say { color: #f1eff7; font-family: var(--sans); font-size: 1.12em; line-height: 1.5; padding: .2em 0 .2em 1.15em; opacity: 1; transform: none; }
.tm-say .w { opacity: 0; transition: opacity .25s; }
.tm-say .w.is-on { opacity: 1; }

/* evidence */
.lp-canvas .wv-ev { background: var(--m-sunk); }
.ev { position: absolute; inset: 1.2em; display: flex; flex-direction: column; justify-content: center; gap: .9em; }
.ev img { width: 100%; border-radius: .5em; border: 1px solid var(--m-line); box-shadow: 0 .4em 1.2em -0.6em var(--m-shadow); }
.ev figcaption { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; font-size: .78em; }
.ev figcaption b { margin-right: .3em; font-weight: 600; }
.chip { border: 1px solid var(--m-line); background: var(--m-card); border-radius: 999px; padding: .15em .6em; color: var(--m-ink-3); }
.chip-ok { border-color: var(--m-ok-line); background: var(--m-ok-bg); color: var(--m-ok); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s var(--ease); }
.chip-ok.is-on { opacity: 1; transform: none; }

/* email */
.ml { position: absolute; inset: 0; font-size: .86em; }
.ml-row { display: grid; grid-template-columns: 6.5em 1fr; gap: .6em; padding: .9em 1.1em; border-bottom: 1px solid var(--m-line); color: var(--m-ink-3); }
.ml-from { font-weight: 600; color: var(--m-ink); }
.ml-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-new { background: var(--m-accent-soft); opacity: 0; transform: translateY(-.5em); transition: opacity .4s, transform .5s var(--ease); }
.ml-new.is-on { opacity: 1; transform: none; }
.ml-new .ml-sub { color: var(--m-ink); font-weight: 500; }
.ml-open { margin: 1.6em 1.2em; border: 1px solid var(--m-line); border-radius: .7em; padding: 1.1em 1.2em; opacity: 0; transform: translateY(.5em); transition: opacity .45s, transform .55s var(--ease); background: var(--m-sunk); }
.ml-open.is-on { opacity: 1; transform: none; }
.ml-h { font-size: 1.25em; font-weight: 600; }
.ml-i { color: var(--m-ink-3); margin: .1em 0 .9em; }
.ml-card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: .55em; padding: .9em 1em; }
.ml-st { margin-top: .6em; display: flex; gap: .5em; align-items: center; color: var(--m-ink-3); }
.ml-f { margin-top: .9em; font-size: .85em; color: var(--m-ink-3); }

/* Damper dashboard */
.dm { flex: 1; min-height: 0; display: grid; grid-template-columns: 11.5em 1fr; background: var(--m-side); border-radius: .9em; border: 1px solid var(--m-line); overflow: hidden; box-shadow: 0 1em 2.5em -1.4em var(--m-shadow); font-size: .9em; }
.dm-side { display: flex; flex-direction: column; gap: .12em; padding: .8em .6em; font-size: .86em; color: var(--m-ink-2); }
.dm-proj { display: flex; align-items: center; gap: .55em; padding: .2em .3em .8em; }
.dm-proj b, .dm-me b { display: block; color: var(--m-ink); font-weight: 600; font-size: .95em; }
.dm-proj i, .dm-me i { display: block; font-style: normal; font-size: .82em; color: var(--m-ink-3); }
.dm-n { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .45em; background: oklch(0.52 0.22 293); color: #fff; font-weight: 600; flex: none; }
.dm-sec { font-size: .82em; color: var(--m-ink-3); padding: .9em .5em .3em; }
.dm-nav { display: flex; align-items: center; gap: .6em; padding: .42em .5em; border-radius: .45em; transition: background-color .3s, color .3s, box-shadow .3s; }
.dm-nav.is-on { background: var(--m-card); color: var(--m-ink); box-shadow: 0 0 0 1px var(--m-line); }
.dm-cnt { margin-left: auto; font-size: .82em; background: var(--m-chip); border-radius: 999px; padding: 0 .5em; color: var(--m-ink-2); transition: background-color .3s, color .3s; }
.dm-cnt.is-bump { background: var(--m-accent); color: var(--m-accent-fg); }
.ic { width: 1.2em; height: 1.2em; border-radius: .3em; flex: none; background: var(--sc); box-shadow: inset 0 0 0 .3em var(--ss); opacity: .9; }
.ic-c { --sc: var(--m-c); --ss: var(--m-c-s); }
.ic-p { --sc: var(--m-p); --ss: var(--m-p-s); }
.ic-b { --sc: var(--m-b); --ss: var(--m-b-s); }
.ic-s { --sc: var(--m-s); --ss: var(--m-s-s); }
.ic-o { --sc: var(--m-o); --ss: var(--m-o-s); }
.ic-k { --sc: var(--m-k); --ss: var(--m-k-s); }
.dm-me { margin-top: auto; display: flex; gap: .55em; align-items: center; padding: .3em; }
.dm-av { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--m-ink); color: var(--m-main); font-size: .78em; font-weight: 600; flex: none; }
.dm-main { position: relative; margin: .45em .45em .45em 0; background: var(--m-main); border-radius: .7em; border: 1px solid var(--m-line); overflow: hidden; }
.dm-top { height: 2.9em; display: flex; align-items: center; gap: .5em; padding: 0 1.1em; border-bottom: 1px solid var(--m-line); font-size: .9em; color: var(--m-ink-3); }
.dm-top b { display: none; color: var(--m-ink); font-weight: 500; }
.dm-top b.is-on { display: inline; }
.dv { position: absolute; inset: 2.6em 0 0; padding: 1.1em 1.3em; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.dv.is-on { opacity: 1; visibility: visible; }

.ib-list { position: relative; height: calc(4 * var(--rh)); border: 1px solid var(--m-line); border-radius: .6em; background: var(--m-card); overflow: hidden; --rh: 3.45em; }
.ib-row { display: grid; grid-template-columns: 2em 1fr auto; gap: .8em; align-items: center; height: calc(var(--rh) / .9); padding: 0 .9em; border-bottom: 1px solid var(--m-line); font-size: .9em; }
.ib-row b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row em { font-style: normal; font-size: .86em; color: var(--m-ink-3); }
.ib-row > span:nth-child(2) { min-width: 0; }
.ib-ic { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .45em; border: 1px solid var(--m-line); color: var(--m-ink-3); font-style: normal; font-size: .9em; }
/* The new feedback slides in at the top: the older rows move down by one row (transform only) and the
   oldest slides out under the list's bottom edge. */
.ib-old { transition: transform .55s var(--ease); }
.ib-new { position: absolute; left: 0; right: 0; top: 0; z-index: 1; opacity: 0; transform: translateY(-.6em); background: var(--m-accent-soft); transition: opacity .45s .2s, transform .55s .1s var(--ease), background-color 1.2s; }
.ib-new.is-on { opacity: 1; transform: none; }
.ib-new.is-on + .ib-old { transform: translateY(var(--rh)); }
.ib-new.is-sel { box-shadow: inset 2px 0 0 var(--m-accent); }
.pill { font-size: .78em; border-radius: 999px; padding: .1em .6em; border: 1px solid var(--m-line); color: var(--m-ink-2); white-space: nowrap; }
.pill-new::before { content: "\25CF  "; font-size: .7em; color: var(--m-ink-3); }
.pill-high { color: var(--m-high); background: var(--m-high-bg); border-color: var(--m-high-line); }
.pill-med { color: var(--m-med); background: var(--m-med-bg); border-color: var(--m-med-line); }
.pill-low { color: var(--m-ink-2); background: var(--m-chip); }

.fb-bar { margin-bottom: 1em; }
.btn-sm { display: inline-flex; align-items: center; gap: .35em; border: 1px solid var(--m-line-2); background: var(--m-card); color: var(--m-ink); border-radius: .5em; padding: .45em .75em; font-size: .86em; font-weight: 500; transition: transform .15s, background-color .2s; }
.btn-sm-p { background: var(--m-accent); color: var(--m-accent-fg); border-color: transparent; }
.fb-t, .rv-t { font-size: 1.3em; font-weight: 600; letter-spacing: -.01em; margin-bottom: .55em; }
.fb-chips { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: 1em; }
.fb-chips span { font-size: .8em; background: var(--m-chip); border-radius: .4em; padding: .2em .55em; color: var(--m-ink-2); }
.fb-d { font-size: .92em; color: var(--m-ink-2); }
.dv-fb::after { content: ""; position: absolute; inset: 0; background: var(--m-scrim); opacity: 0; transition: opacity .35s; pointer-events: none; }
.dv-fb.is-dim::after { opacity: 1; }
.dlg { position: absolute; z-index: 2; left: 50%; top: 52%; width: 25em; transform: translate(-50%, -46%) scale(.97); opacity: 0; background: var(--m-card); border-radius: .8em; border: 1px solid var(--m-line); box-shadow: 0 1.5em 3em -1em var(--m-pop); padding: 1.2em 1.3em; font-size: .92em; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.dlg.is-on { opacity: 1; transform: translate(-50%, -50%); }
.dlg-t { font-size: 1.08em; }
.dlg-p { font-size: .84em; color: var(--m-ink-3); margin-top: .3em; }
.dlg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.dlg-opts span { border: 1px solid var(--m-line-2); border-radius: .45em; padding: .45em .6em; font-size: .84em; color: var(--m-ink-2); transition: border-color .25s, background-color .25s, color .25s; }
.dlg-opts span:first-child, .dlg-opts.is-planned span:last-child { border-color: var(--m-accent); background: var(--m-accent-soft); color: var(--m-accent-ink); }
.dlg-opts.is-planned span:first-child { border-color: var(--m-line-2); background: transparent; color: var(--m-ink-2); }
.dlg-foot { display: flex; justify-content: flex-end; margin-top: 1em; }

.bd { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; height: 100%; }
.bd-col { background: var(--m-col); border-radius: .7em; padding: .7em; display: flex; flex-direction: column; gap: .55em; min-width: 0; overflow: hidden; font-size: .82em; }
.bd-h { display: flex; align-items: center; gap: .45em; font-size: 1.05em; font-weight: 500; padding: .1em .2em .3em; }
.bd-dot { width: .55em; height: .55em; border-radius: 50%; }
.bd-planned { background: var(--m-planned); }
.bd-prog { background: var(--m-prog); }
.bd-rev { background: var(--m-rev); }
.card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: .6em; padding: .7em .75em; display: flex; flex-direction: column; align-items: flex-start; gap: .45em; }
.card b { font-weight: 500; line-height: 1.3; }
.card-dim { color: var(--m-ink-2); }
/* The moving task: one card per column, laid over the top of the column. The cards below make room by
   moving (transform only): leaving, the card fades first and the rest closes up; arriving, the rest
   opens up first and the card fades in. --ch is the card's measured height (set by loop.js). */
.bd-body { position: relative; }
.bd-rest { display: flex; flex-direction: column; gap: .55em; transition: transform .45s .15s var(--ease); }
.card[data-k] { position: absolute; left: 0; right: 0; top: 0; z-index: 1; opacity: 0; transform: translateY(-.3em); box-shadow: 0 0 0 2px var(--m-accent-soft), 0 .5em 1em -.6em var(--m-shadow); border-color: var(--m-accent-line); transition: opacity .2s, transform .3s var(--ease); }
.card[data-k].is-on { opacity: 1; transform: none; transition: opacity .35s .3s, transform .45s .3s var(--ease); }
.card[data-k].is-on + .bd-rest { transform: translateY(calc(var(--ch, 6em) + .55em)); transition-delay: 0s; }
.card-fb, .card-pr { font-size: .9em; color: var(--m-ink-3); }
.agent { display: flex; align-items: center; gap: .45em; width: 100%; font-size: .92em; border-radius: .45em; padding: .4em .55em; }
.agent i { width: .55em; height: .55em; border-radius: 50%; }
.agent-w { background: var(--m-med-bg); color: var(--m-med); }
.agent-w i { background: var(--m-warn-dot); animation: pulse 1.6s infinite; }
.agent-r { background: var(--m-rev-bg); color: var(--m-rev); }
.agent-r i { background: var(--m-rev); }
@keyframes pulse { 50% { opacity: .35; } }

.rv { font-size: .92em; }
.rv-k { font-size: .78em; color: var(--m-ink-3); }
.st { font-size: .8em; border-radius: .4em; padding: .2em .55em; transition: background-color .3s, color .3s; }
.fb-chips .st-rev, .st-rev { background: var(--m-rev-bg); color: var(--m-rev); }
.fb-chips .st-done, .st-done, .fb-chips .st-pub { background: var(--m-ok-bg); color: var(--m-ok); }
.st-new { background: var(--m-new-bg); color: var(--m-new); }
.st-draft { background: var(--m-chip); color: var(--m-ink-2); }
.rv-tabs, .rl-tabs { display: inline-flex; gap: .2em; background: var(--m-chip); padding: .2em; border-radius: .5em; font-size: .82em; margin-bottom: .9em; }
.rv-tabs span, .rl-tabs span { padding: .3em .6em; border-radius: .35em; color: var(--m-ink-2); }
.rv-tabs .on, .rl-tabs .on { background: var(--m-card); color: var(--m-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rv-box { display: flex; gap: .7em; border: 1px solid var(--m-line); border-radius: .6em; padding: .8em .9em; background: var(--m-card); font-size: .9em; color: var(--m-ink-3); }
.rv-box b { display: block; color: var(--m-rev); font-weight: 500; }
.rv-bot { width: 2em; height: 2em; border-radius: .45em; background: var(--m-b-s); flex: none; }
.rv-pr { margin: .8em 0; font-size: .88em; }
.rv-pr em { font-style: normal; color: var(--m-ok); margin-left: .3em; }
.rv-pr .dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--m-ok-dot); margin-right: .3em; }
.rv-sum { border: 1px solid var(--m-line); border-radius: .6em; padding: .7em .9em; background: var(--m-card); font-size: .86em; color: var(--m-ink-2); }
.rv-sum span { display: block; font-size: .85em; color: var(--m-ink-3); margin-bottom: .2em; }
.rv-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: .6em; padding: .7em 1.1em; border-top: 1px solid var(--m-line); background: var(--m-card); }
.rv-pos { margin-right: auto; font-size: .82em; color: var(--m-ink-3); }
.dv-rel .toast { bottom: 1.1em; }
.toast { position: absolute; right: 1.1em; bottom: 4em; background: var(--m-ink); color: var(--m-main); border-radius: .55em; padding: .55em .9em; font-size: .84em; opacity: 0; transform: translateY(.5em); transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: none; }

.rl-tabs { margin-bottom: 1em; }
.rl-entry { border: 1px solid var(--m-line); border-radius: .7em; background: var(--m-card); padding: 1em 1.1em; }
.rl-h { display: flex; gap: .6em; align-items: center; margin-bottom: .8em; }
.rl-h .st { flex: none; }
.rl-h b { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.rl-pub { flex: none; transition: opacity .25s, transform .15s; }
.rl-pub.is-done { opacity: 0; }
.rl-prev { margin-top: .8em; display: flex; gap: .6em; align-items: center; padding: .7em 1.1em; border: 1px solid var(--m-line); border-radius: .7em; background: var(--m-card); font-size: .86em; color: var(--m-ink-2); }
.ml-card p { margin: 0; color: var(--m-ink); }
.rl-item { display: flex; gap: .6em; align-items: flex-start; padding: .7em .8em; border-radius: .55em; background: var(--m-sunk); font-size: .9em; opacity: 0; transform: translateY(.5em); transition: opacity .4s, transform .5s var(--ease); }
.rl-item.is-on, .rl-item.rl-old { opacity: 1; transform: none; }
.rl-item.rl-old { margin-bottom: .5em; padding-top: .45em; padding-bottom: .45em; }
.rl-item .dot { width: .55em; height: .55em; border-radius: 50%; background: var(--m-ok-dot); margin-top: .45em; flex: none; }
.rl-item b { display: block; font-weight: 500; }
.rl-item em { font-style: normal; font-size: .86em; color: var(--m-ink-3); }
.rl-fb { margin-top: .8em; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-size: .84em; padding: .7em .8em; border: 1px dashed var(--m-line-2); border-radius: .55em; opacity: 0; transition: opacity .4s; }
.rl-fb.is-on { opacity: 1; }
.rl-fb > span:first-child { width: 100%; font-size: .9em; color: var(--m-ink-3); }
.rl-fb b { font-weight: 500; }
.rl-fb em { font-style: normal; color: var(--m-ink-3); }

/* scripted cursor */
.cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 1.2em; height: 1.2em; opacity: 0; transition: transform .85s cubic-bezier(.45,.05,.25,1), opacity .3s; pointer-events: none; }
.cursor svg { width: 100%; height: 100%; }
.cursor.is-on { opacity: 1; }
.cursor.is-jump { transition: opacity .3s; }

/* controls */
.lp-bar { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.lp-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s; }
.lp-play:hover { border-color: var(--line-3); }
.lp-play .i-play, .lp.is-paused .lp-play .i-pause { display: none; }
.lp.is-paused .lp-play .i-play { display: block; }
.lp-steps { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lp-steps button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: 8px 10px 12px; border-radius: 12px; cursor: pointer; transition: background-color .25s; }
.lp-steps button:hover { background: color-mix(in oklab, var(--card) 70%, transparent); }
.lp-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.lp-steps .n { font: 500 11.5px/1.4 var(--mono); color: var(--ink-3); }
.lp-steps b { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink-2); transition: color .25s; }
.lp-steps .d { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.lp-steps .bar { order: -1; display: block; height: 2px; border-radius: 2px; background: var(--line-2); margin-bottom: 10px; overflow: hidden; }
.lp-steps .bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.lp-steps .is-done .bar i { transform: scaleX(1); background: var(--accent-done); }
.lp-steps .is-cur b { color: var(--ink); }
.lp-steps .is-cur .n { color: var(--accent-ink); }
.lp-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-note { margin-top: 10px; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.lp-cur { display: none; min-height: 72px; margin-top: 4px; }
.lp-cur b { display: block; font-size: 16px; font-weight: 500; }
.lp-cur span { font-size: 14.5px; color: var(--ink-3); }

/* phones and narrow stages: one pane at a time, larger type */
@container (max-width: 700px) {
  .lp-canvas { aspect-ratio: 24 / 30; font-size: calc(100cqw / 24); grid-template-columns: 1fr; }
  .lp-canvas .pane { position: absolute; inset: 0; transition: opacity .5s var(--ease), visibility .5s; }
  .lp-canvas[data-focus="world"] .pane-damper, .lp-canvas[data-focus="damper"] .pane-world { opacity: 0; visibility: hidden; }
  .dm { grid-template-columns: 1fr; }
  .dm-side { display: none; }
  .dm-main { margin: 0; border: 0; }
  .wg { left: 1.2em; right: 1.2em; width: auto; top: 1.2em; margin-top: 0; font-size: .9em; }
  .wg-tab { display: none; }
  .bd { grid-template-columns: 1fr; gap: .5em; height: auto; }
  .bd-col { padding: .55em; }
  .card-dim { display: none; }
  .bd-body { height: var(--chmax, 6em); }
  .dlg { width: calc(100% - 1.6em); }
  .tm { font-size: .78em; }
  .tm-a { display: block; padding-left: 1.15em; }
}
@media (max-width: 899px) {
  .lp-bar { flex-direction: column; gap: 10px; }
  .lp-play { position: absolute; z-index: 5; right: 12px; top: 12px; width: 36px; height: 36px; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  .lp-steps { width: 100%; gap: 4px; }
  .lp-steps button { padding: 6px 2px; }
  .lp-steps b, .lp-steps .d { display: none; }
  .lp-steps .n { text-align: center; }
  .lp-cur { display: block; }
}

/* ---------- strip ---------- */
.with { padding: 56px 0 8px; }
.with-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 15px; color: var(--ink-3); }
.with-l { color: var(--ink-2); font-weight: 500; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 10vw, 136px) 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head .lead { margin-top: 20px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.tri { padding: 28px 32px 8px 0; }
.tri + .tri { padding-left: 32px; border-left: 1px solid var(--line); }
.tri-tool { display: inline-block; font: 500 12px/1 var(--mono); color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 6px 8px; margin-bottom: 18px; }
.tri h3 { font: 500 19px/1.3 var(--sans); letter-spacing: -0.01em; margin-bottom: 10px; }
.tri p { font-size: 15.5px; color: var(--ink-2); }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 40px 80px -50px var(--shadow-lg); }
.shot-wide { margin-top: 64px; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); font: 400 12.5px/1 var(--mono); color: var(--ink-3); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-note { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px 64px; margin-top: 40px; align-items: start; }
.split-note h3 { font: 400 28px/1.2 var(--serif); letter-spacing: -0.01em; grid-row: span 2; }
.split-note p { color: var(--ink-2); }
.split-note .arrow { margin-top: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.pair-copy p { color: var(--ink-2); margin-top: 20px; }
.pair-flip .pair-copy { order: 2; }
.pair-copy .plan-note { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.ticks { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg); }
.shot-crop { aspect-ratio: 5 / 4; position: relative; }
.shot-crop img { position: absolute; left: 0; top: 0; width: 156%; max-width: none; height: auto; transform: translate(-6%, -6.8%); }
.shot-left { aspect-ratio: 16 / 11; }
.shot-left img { width: 125%; transform: translate(-18.5%, -10%); }
.ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.op { display: block; padding: 26px 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.op:hover { border-color: var(--line-3); transform: translateY(-2px); }
.op h3 { font: 500 18px/1.3 var(--sans); margin-bottom: 8px; }
.op p { font-size: 15px; color: var(--ink-2); }
.rep { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-2); align-items: start; }
.rep h3 { font: 400 26px/1.2 var(--serif); }
.rep p { color: var(--ink-2); margin-top: 8px; }
.rep ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rep li { font-size: 14.5px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; text-decoration: line-through; text-decoration-color: var(--strike); }
.close-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.close-head .lead { margin-top: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.steps .n { font: 400 30px/1 var(--serif); color: var(--accent-ink); margin-bottom: 18px; }
.steps h3 { font: 500 18px/1.3 var(--sans); margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.steps pre { margin-top: auto; background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); border-radius: 10px; padding: 16px; font: 400 12.5px/1.6 var(--mono); overflow-x: auto; }
.steps .c { color: var(--code-dim); }

@media (max-width: 959px) {
  .trio { grid-template-columns: 1fr; }
  .tri, .tri + .tri { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .split-note, .pair, .rep { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-note h3 { grid-row: auto; }
  .pair-flip .pair-copy { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ops { grid-template-columns: minmax(0, 1fr); }
  .shot-wide { margin-top: 40px; }
  .ctas .btn { flex: 1 1 auto; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

/* reveal on scroll (opacity only, so it never shifts layout) */
.js .rv-in { opacity: 0; transition: opacity .9s var(--ease); }
.js .rv-in.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv-in { opacity: 1; }
}

/* ======================================================================
   Feature pages: hero, capture stage, availability, next in the loop.
   ====================================================================== */
.fp-hero { padding: clamp(48px, 7vw, 88px) 0 24px; }
.fp-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 14px; color: var(--ink-3); }
.fp-crumb a { text-decoration: none; color: var(--ink-2); }
.fp-crumb a:hover { color: var(--ink); }
.fp-crumb .stg { display: inline-flex; align-items: center; gap: 7px; }
.fp-crumb .stg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fp-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.fp-copy .display { font-size: clamp(40px, 5.4vw, 72px); }
.fp-copy .lead { max-width: 54ch; }
.fp-avail { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 54ch; }
.mono { font-family: var(--mono); font-size: .92em; }
.fp-avail b { font-weight: 500; color: var(--ink-2); }
@media (max-width: 959px) { .fp-copy { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* capture stage */
.st { position: relative; }
.st-stage { border-radius: 22px; background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); border: 1px solid var(--line); padding: clamp(10px, 1.6vw, 22px); box-shadow: 0 30px 60px -40px var(--shadow-lg); }
.st-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid var(--m-line); background: var(--m-main); contain: layout paint; }
.st-cam { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 10; transform-origin: 0 0; transition: transform 1.25s cubic-bezier(.45,.05,.2,1); will-change: transform; }
.st-cam.is-still, .st.no-anim .st-cam, .st.no-anim .st-cam * { transition: none !important; }
.st-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .55s var(--ease); }
.st-shot.is-on { opacity: 1; }
.st-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.st-ring { position: absolute; border-radius: 10px; box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.st-ring.is-on { opacity: 1; }
.st-cursor { position: absolute; z-index: 5; width: 1.6%; min-width: 12px; aspect-ratio: 1; opacity: 0; transform: translate(-15%, -10%); transition: left .9s cubic-bezier(.45,.05,.25,1), top .9s cubic-bezier(.45,.05,.25,1), opacity .3s; pointer-events: none; }
.st-cursor.is-jump { transition: opacity .3s; }
.st-cursor.is-on { opacity: 1; }
.st-cursor svg { width: 100%; height: 100%; display: block; }
/* overlays sit in capture coordinates and scale with the camera */
.st-pop { position: absolute; z-index: 4; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); font-size: clamp(6px, .95cqw, 13px); }
.st-pop.is-on { opacity: 1; transform: none; }
.st-view { container-type: inline-size; }
.st-note { position: absolute; z-index: 4; background: var(--m-card); color: var(--m-ink); border: 1px solid var(--m-line); border-radius: .7em; padding: .7em .9em; box-shadow: 0 .8em 2em -.8em var(--m-pop); font-size: 1.15em; line-height: 1.4; max-width: 26em; }
.st-note b { display: block; font-weight: 600; margin-bottom: .2em; }
.st-note code { font: 500 .92em var(--mono); color: var(--m-accent-ink); }
/* an HTML capture (terminal, email) laid out at the capture's 16:10 size */
.st-html { position: absolute; inset: 0; font-size: 1.45cqw; color: var(--m-ink); }
.st-term { position: absolute; inset: 0; background: #16151c; color: #d9d7e2; padding: 3% 3.4%; font: 400 1.15em/1.6 var(--mono); }
:root[data-theme="dark"] .st-term { background: #0e0e12; }
.st-term .ln { display: block; opacity: 0; transform: translateY(.4em); transition: opacity .35s, transform .4s var(--ease); margin-bottom: .7em; }
.st-term [data-el].is-on { opacity: 1; transform: none; }
.st-term .p { color: #fff; border: 1px solid #34323f; border-radius: .5em; padding: .55em .8em; opacity: 1; transform: none; min-height: 2.6em; }
.st-term .dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: oklch(0.673 0.182 277); margin-right: .6em; }
.st-term .dot-g { background: #4fbf86; }
.st-term .dot-w { background: #e0a43a; }
.st-term b { color: #fff; font-weight: 500; }
.st-term .a { color: #b1adc2; }
.st-term .r { display: block; color: #a19db2; padding-left: 1.15em; }
.st-term .r::before { content: "\2514  "; color: #6a677a; }
.st-term .w { color: #f3c56b; }
@container (max-width: 640px) { .st-term { font-size: 2.1em; } }
@media (max-width: 639px) { .st-view { aspect-ratio: 4 / 5; } }
.st .lp-bar { margin-top: 18px; }
.st .lp-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.st.is-paused .lp-play .i-play { display: block; }
.st.is-paused .lp-play .i-pause { display: none; }
.st:not(.is-paused) .lp-play .i-play { display: none; }

/* availability and next steps */
.fp-plans { width: 100%; border-collapse: collapse; font-size: 15px; }
.fp-plans th, .fp-plans td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fp-plans thead th { font-weight: 500; color: var(--ink); border-bottom-color: var(--line-2); }
.fp-plans tbody th { font-weight: 400; color: var(--ink-2); width: 34%; }
.fp-plans td { color: var(--ink-2); }
.fp-plans .y { color: var(--accent-ink); font-weight: 500; }
.fp-plans .n { color: var(--ink-3); }
.fp-tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.fp-tablewrap:focus-visible { outline-offset: 2px; }
.fp-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fp-next a { display: block; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.fp-next a:hover { border-color: var(--line-3); transform: translateY(-2px); }
.fp-next .k { display: block; font: 500 12px/1 var(--mono); color: var(--accent-ink); margin-bottom: 12px; }
.fp-next h3 { font: 500 17px/1.3 var(--sans); margin-bottom: 6px; }
.fp-next p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 899px) { .fp-next { grid-template-columns: minmax(0, 1fr); } }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-2); }
.list > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.list h3 { font: 500 17px/1.35 var(--sans); margin-bottom: 6px; }
.list p { font-size: 15px; color: var(--ink-2); }
.list code, .tri code, .pair-copy code { font: 500 .88em var(--mono); color: var(--accent-ink); }
@media (max-width: 759px) { .list { grid-template-columns: minmax(0, 1fr); } }
.codecard { background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); border-radius: 12px; padding: 18px 20px; font: 400 13px/1.65 var(--mono); overflow-x: auto; }
.codecard .c { color: var(--code-dim); }

/* product menu in the header */
.hd-drop { position: relative; }
.hd-drop > button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); transition: color .15s; }
.hd-drop > button:hover, .hd-drop.open > button { color: var(--ink); }
.hd-drop > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.hd-drop > button svg { transition: transform .2s; }
.hd-drop.open > button svg { transform: rotate(180deg); }
.hd-menu-panel { position: absolute; left: -24px; top: calc(100% + 18px); width: min(760px, calc(100vw - 48px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; padding: 22px 24px 24px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px -30px var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .2s var(--ease), visibility .18s; }
.hd-drop.open .hd-menu-panel { opacity: 1; visibility: visible; transform: none; }
.hd-menu-panel h2 { font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 6px; }
.hd-menu-panel a { display: block; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.hd-menu-panel a:hover { background: var(--paper-2); }
.hd-menu-panel a span { display: block; font-size: 13px; color: var(--ink-3); }
.mnav h2 { font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 4px; }

/* pricing */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-tight { padding-top: 24px; }
.pr-hero { text-align: center; padding-bottom: 32px; }
.pr-hero .lead { max-width: 62ch; margin: 22px auto 0; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.plan-feat { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-name { font: 500 18px/1.2 var(--sans); }
.plan-desc { margin-top: 6px; min-height: 2.9em; font-size: 14.5px; color: var(--ink-3); }
.plan-price { margin-top: 18px; font: 400 44px/1 var(--serif); letter-spacing: -0.02em; }
.plan-price span { font: 400 15px var(--sans); color: var(--ink-3); letter-spacing: 0; }
.plan-bill { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); min-height: 1.5em; }
.plan-weight { margin: 16px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.plan-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; font-size: 14.5px; color: var(--ink-2); }
.plan-list li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: start; }
.plan-list .ok, .fp-plans .ok { color: var(--accent-ink); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.pr-note { max-width: 70ch; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.pr-table .fp-plans th[scope="row"] { position: sticky; left: 0; background: var(--card); z-index: 1; }
.pr-table .fp-plans { min-width: 680px; }
.pr-table .fp-plans td { white-space: nowrap; }
.pr-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faqs { border-top: 1px solid var(--line-2); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 500 17px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 22px/1 var(--sans); color: var(--ink-3); transition: transform .2s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 1099px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .pr-faq { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
@media (max-width: 599px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan-desc { min-height: 0; } }

.st-bar { display: flex; align-items: center; gap: 6px; height: 2.1em; margin: -2px 2px 8px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.st-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.st-url { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-zoom { position: relative; aspect-ratio: 16 / 11; }
.shot-zoom img { position: absolute; left: 0; top: 0; max-width: none; height: auto; width: calc(100% / var(--zw)); transform: translate(calc(var(--zx) * -100%), calc(var(--zy) * -100%)); }
/* phones: stages with mobile captures show them full-frame (390x700, via <picture>), with no camera zoom and no ring */
.st-shot picture { display: block; width: 100%; height: 100%; }
@media (max-width: 639px) {
  .st-mobile .st-view, .st-mobile .st-cam { aspect-ratio: 39 / 70; }
  .st-mobile .st-ring { display: none; }
}
.pair > .codecard { align-self: center; }
.st-shot-html .st-html { container-type: inline-size; }
.st-term .ln.is-typing::after, .st-term [data-el].is-typing::after { content: ""; display: inline-block; width: .5em; height: 1.05em; vertical-align: -.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
@media (max-width: 639px) { .st-mobile .st-shot-html .st-term { font-size: 2.6cqw; padding: 5% 5%; } }
.mt-16 { margin-top: 16px; }
.callout { max-width: 72ch; padding: 20px 22px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--card); color: var(--ink-2); margin-bottom: 8px; }
.callout strong { color: var(--ink); font-weight: 500; }
.list-1 { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
.fp-next-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 899px) { .fp-next-2 { grid-template-columns: minmax(0, 1fr); } }
.trio .tri:first-child h3, .trio .tri h3 { margin-top: 4px; }

/* consent banner (static/analytics.js renders it only when DAMPER_CONSENT_BANNER is on) */
.consent-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 18px 20px; border-radius: 14px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px var(--shadow-lg); font-size: 14.5px; line-height: 1.55; }
.consent-banner p { margin: 0 0 12px; }
.consent-banner a { color: var(--accent-ink); text-decoration: underline; }
.consent-banner__title { font: 500 16px/1.3 var(--sans); color: var(--ink); margin: 0 0 6px !important; }
.consent-banner__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent-banner__actions button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.consent-banner__actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-banner__choices { display: grid; gap: 10px; margin: 0 0 14px; }
.consent-banner__choices[hidden] { display: none; }
.consent-banner__choice { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.consent-banner__choice input { margin-top: 3px; accent-color: var(--accent); }
.consent-banner__choice strong { display: block; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .ctas .btn { white-space: normal; height: auto; min-height: 48px; padding: 12px 18px; text-align: center; line-height: 1.25; } }

/* the opening frame (step 1's camera) before any script runs; scripts set an inline transform */
@media (min-width: 640px) { .st-cam { transform: var(--cam); } }

/* pricing comparison on phones: one card per plan instead of the wide table */
.pr-stack { display: none; }
@media (max-width: 639px) {
  .pr-table { display: none; }
  .pr-stack { display: grid; gap: 14px; }
  .pr-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 6px; }
  .pr-card h3 { font: 500 18px/1.2 var(--sans); margin-bottom: 8px; }
  .pr-card dl { margin: 0; }
  .pr-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
  .pr-card dt { color: var(--ink-2); }
  .pr-card dd { margin: 0; color: var(--ink); text-align: right; }
  .pr-card dd .ok { color: var(--accent-ink); vertical-align: -2px; }
}
/* Demo-data note right under a capture (integrations: the Slack and X shots). */
.lp-note-under { margin: 10px 0 0; }
.shot-wrap { min-width: 0; }
.shot-note { margin-top: 10px; text-align: right; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Documents: docs, MCP reference, blog, legal and 404 (the pages that used the old site.css) ---------- */
.container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-flush { padding-top: 8px; }
.section-tight { padding: 48px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-hero h1 { margin-top: 18px; max-width: 52rem; font: 400 clamp(40px, 5.4vw, 68px)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.page-hero .lead { margin-top: 20px; max-width: 44rem; }
.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; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--line-3); }
.breadcrumb + h1 { margin-top: 24px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: var(--card); }
.btn-ghost:hover { border-color: var(--line-3); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.sidebar-label { margin-bottom: 8px; font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.docs-sidebar a { padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.docs-sidebar a:hover { color: var(--ink); background: var(--paper-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: minmax(0, 1fr); gap: 24px; }
  .docs-sidebar { display: none; }
  .docs-toc { display: block; margin: 8px 0 24px; padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
  .docs-toc h2 { font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .docs-toc nav { display: grid; gap: 6px; margin-top: 10px; }
  .docs-toc a { color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
  .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.2em; font: 400 clamp(28px, 2.8vw, 36px)/1.12 var(--serif); letter-spacing: -0.015em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; font: 600 1.15rem/1.3 var(--sans); scroll-margin-top: 96px; }
.prose h4 { margin-top: 1.6em; font: 600 1rem/1.35 var(--sans); }
.prose a { color: var(--accent-ink); 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 ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-3); }
.prose code:not(pre code) { font: 500 .86em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.prose pre { margin: 1.4em 0; padding: 18px 20px; border-radius: 12px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font: 13px/1.7 var(--mono); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); }
.prose img { border-radius: 12px; 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; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose .table-wrap, .prose .code-block { margin: 1.4em 0; }
.prose .code-block pre { margin: 0; border-radius: 0; background: none; }
.prose .breadcrumb a { color: inherit; text-decoration: none; }
.prose .table { display: table; }

.code-block { position: relative; margin: 20px 0; border-radius: 12px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--code-line); }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.7 var(--mono); color: var(--code-ink); }
.code-key { color: #a5b4fc; }
.code-string { color: #fcd34d; }
.code-comment { color: #a09cae; font-style: italic; }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.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; color: var(--ink); background: var(--paper-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table code { font-size: 12.5px; }

.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 minmax(0, 1fr); gap: 14px; margin: 0 !important; padding: 16px 18px; border-radius: 12px; background: var(--card); 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: 600 12.5px/1 var(--mono); background: var(--accent-soft); color: var(--accent-ink); }
.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-group > * + * { margin-top: 14px; }
.tool-group > h4 { margin-top: 2em; }
.tool-list { display: grid; gap: 8px; margin-top: 14px; }
.tool-card { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tool-name { font: 500 13px/1.5 var(--mono); color: var(--accent-ink); 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: 12px/1.5 var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 640px) { .tool-card { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.cta-band { text-align: center; padding: clamp(48px, 6vw, 80px) 28px; border-radius: 20px; background: var(--paper-2); border: 1px solid var(--line); }
.cta-band h2 { font: 400 clamp(32px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -0.018em; color: var(--ink); }
.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 { margin-top: 64px; }

.post-title { margin-top: 14px !important; font: 400 clamp(36px, 4.6vw, 56px)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.blog-meta { color: var(--ink-3); font-size: 14px; }
.blog-article { margin-top: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.blog-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s var(--ease); }
.blog-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.blog-card h2 { font: 500 1.15rem/1.3 var(--sans); letter-spacing: -0.01em; }
.blog-card p { color: var(--ink-2); font-size: 15px; }
.blog-card-meta { margin-top: auto; padding-top: 8px; font: 12px/1.4 var(--mono); color: var(--ink-3); }

.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.legal-nav a { color: var(--ink-2); text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--ink); }
.step-list p > code:only-child { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
