/* ==========================================================================
   LINEAR-GRADE SAAS — COMPONENT LIBRARY  (requires tokens.css first)
   Class names are the skill's own. Values are measured; comments cite them.
   ========================================================================== */

/* ---------- Reset / base ------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html,body,div,span,h1,h2,h3,h4,h5,h6,p,a,ul,ol,li,figure,blockquote,section,header,footer,nav,main,article {
  margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline;
}
html {
  font-size: 100%; font-weight: var(--fw-normal);
  scroll-padding-top: calc(var(--header-h) + 36px);
}
html, body {
  background: var(--bg); color: var(--fg); min-height: 100vh;
  font-family: var(--font-sans);
  font-feature-settings: var(--font-settings);
  font-variation-settings: "opsz" auto;
  -webkit-tap-highlight-color: transparent;
}
body {
  line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; -webkit-text-size-adjust: none;
}
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
img,svg,video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--selection-bg); color: #fff; }
:focus-visible { outline: var(--focus-w) solid var(--focus-color); outline-offset: var(--focus-offset); }
.mono { font-family: var(--font-mono); font-feature-settings: var(--font-mono-settings); }
.tabular { font-variant-numeric: lining-nums tabular-nums slashed-zero; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Typography roles ---------------------------------------------
   Each role = the exact responsive ladder used on the source site.       */
.t-title-1 { font-size: var(--title-1-size); line-height: var(--title-1-lh); letter-spacing: var(--title-1-ls); }
.t-title-2 { font-size: var(--title-2-size); line-height: var(--title-2-lh); letter-spacing: var(--title-2-ls); }
.t-title-3 { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); }
.t-title-4 { font-size: var(--title-4-size); line-height: var(--title-4-lh); letter-spacing: var(--title-4-ls); }
.t-title-5 { font-size: var(--title-5-size); line-height: var(--title-5-lh); letter-spacing: var(--title-5-ls); }
.t-title-6 { font-size: var(--title-6-size); line-height: var(--title-6-lh); letter-spacing: var(--title-6-ls); }
.t-title-7 { font-size: var(--title-7-size); line-height: var(--title-7-lh); letter-spacing: var(--title-7-ls); }
.t-title-8 { font-size: var(--title-8-size); line-height: var(--title-8-lh); letter-spacing: var(--title-8-ls); }
.t-title-9 { font-size: var(--title-9-size); line-height: var(--title-9-lh); letter-spacing: var(--title-9-ls); }
.t-large   { font-size: var(--text-large-size);   line-height: var(--text-large-lh);   letter-spacing: var(--text-large-ls); }
.t-regular { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); }
.t-small   { font-size: var(--text-small-size);   line-height: var(--text-small-lh);   letter-spacing: var(--text-small-ls); }
.t-mini    { font-size: var(--text-mini-size);    line-height: var(--text-mini-lh);    letter-spacing: var(--text-mini-ls); }
.t-micro   { font-size: var(--text-micro-size);   line-height: var(--text-micro-lh);   letter-spacing: var(--text-micro-ls); }
.t-tiny    { font-size: var(--text-tiny-size);    line-height: var(--text-tiny-lh);    letter-spacing: var(--text-tiny-ls); }
.c-fg{color:var(--fg)} .c-fg-2{color:var(--fg-2)} .c-fg-3{color:var(--fg-3)} .c-fg-4{color:var(--fg-4)}
.w-normal{font-weight:var(--fw-normal)} .w-medium{font-weight:var(--fw-medium)} .w-semibold{font-weight:var(--fw-semibold)}

/* Hero H1 — 64/64 → 56 @1024 → 40 @640 (homepage forces 38px @640) */
.h-hero { font-size: var(--title-8-size); line-height: 1; letter-spacing: var(--title-8-ls); font-weight: var(--fw-medium); color: var(--fg); text-wrap: balance; }
@media (max-width:1024px){ .h-hero { font-size: var(--title-7-size); line-height: var(--title-7-lh); letter-spacing: var(--title-7-ls); } }
@media (max-width:640px) { .h-hero { font-size: 38px; line-height: 1.1; letter-spacing: var(--title-5-ls); max-width: 360px; } }

/* Feature-page hero H1 — 72 → 56 @1024 → 40 @768 */
.h-hero-xl { font-size: var(--title-9-size); line-height: var(--title-9-lh); letter-spacing: var(--title-9-ls); font-weight: var(--fw-medium); text-wrap: balance; }
@media (max-width:1024px){ .h-hero-xl { font-size: var(--title-7-size); line-height: var(--title-7-lh); letter-spacing: var(--title-7-ls); } }
@media (max-width:768px) { .h-hero-xl { font-size: var(--title-5-size); line-height: var(--title-5-lh); letter-spacing: var(--title-5-ls); } }

/* Section H2 — 48 → 40 @1024 → 24 @640 */
.h-section { font-size: var(--title-6-size); line-height: var(--title-6-lh); letter-spacing: var(--title-6-ls); font-weight: var(--fw-medium); color: var(--fg); text-wrap: balance; }
@media (max-width:1024px){ .h-section { font-size: var(--title-5-size); line-height: var(--title-5-lh); letter-spacing: var(--title-5-ls); } }
@media (max-width:640px) { .h-section { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); } }

/* Statement H2 (two-tone paragraph headline) — 48 → 40 @1280 → 32 @768 → 24 @640 */
.h-statement { font-size: var(--title-6-size); line-height: var(--title-6-lh); letter-spacing: var(--title-6-ls); font-weight: var(--fw-medium); color: var(--fg-3); }
.h-statement strong, .h-statement b { color: var(--fg); font-weight: inherit; }
@media (max-width:1280px){ .h-statement { font-size: var(--title-5-size); line-height: var(--title-5-lh); letter-spacing: var(--title-5-ls); } }
@media (max-width:768px) { .h-statement { font-size: var(--title-4-size); line-height: var(--title-4-lh); letter-spacing: var(--title-4-ls); } }
@media (max-width:640px) { .h-statement { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); } }

/* Index-page H1 (Pricing, Customers, Changelog, Contact) — fixed 48/48 */
.h-index { font-size: var(--title-6-size); line-height: var(--title-6-lh); letter-spacing: var(--title-6-ls); font-weight: var(--fw-medium); }

/* Pre-footer H2 — 72/72 → 38px @640, centered */
.h-prefooter { font-size: var(--title-9-size); line-height: var(--title-9-lh); letter-spacing: var(--title-9-ls); font-weight: var(--fw-medium); text-align: center; text-wrap: balance; max-width: 722px; }
@media (max-width:1280px){ .h-prefooter { font-size: var(--title-5-size); line-height: var(--title-5-lh); letter-spacing: var(--title-5-ls); } }
@media (max-width:640px) { .h-prefooter { font-size: 38px; line-height: 1.1; } }

/* Feature description (right column of a feature header) — 24/1.33 w400 fg-2 → 20 @1024 → 15 @640 */
.feature-desc { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); color: var(--fg-2); max-width: 38ch; }
@media (max-width:1024px){ .feature-desc { font-size: var(--title-2-size); line-height: var(--title-2-lh); } }
@media (max-width:640px) { .feature-desc { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); color: var(--fg-3); } }

/* Hero subtitle / lede — 15/24 fg-3 */
.lede { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); color: var(--fg-3); }
.eyebrow { font-size: var(--text-mini-size); line-height: var(--text-mini-lh); letter-spacing: var(--text-mini-ls); color: var(--fg-3); font-weight: var(--fw-medium); }
.fig-label { font-family: var(--font-mono); font-feature-settings: var(--font-mono-settings); font-size: 12px; line-height: 1.4; color: var(--fg-3); opacity: .5; text-transform: uppercase; }

/* ---------- Layout shells ------------------------------------------------ */
/* .shell = full-bleed wrapper (max 1436, outer gutter). .inset = inner 32px. */
.shell { width: 100%; max-width: var(--shell-max); margin-inline: auto; padding-inline: var(--outer); }
.inset { padding-inline: var(--inset); }
.page  { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-pad-inline); }
.prose-wrap { max-width: var(--prose-max); margin-inline: auto; }
.grid-12 { display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0,1fr)); gap: var(--grid-gap); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width:1024px){ .split { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.rule-top { border-top: 1px solid var(--border-subtle); }

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header); isolation: isolate;
  backdrop-filter: blur(var(--header-blur)); -webkit-backdrop-filter: blur(var(--header-blur));
  background: linear-gradient(180deg, var(--header-bg) 0%, color-mix(in oklab, var(--header-bg) 100%, transparent 5%) 100%);
  border-bottom: 1px solid var(--header-border);
}
.site-header[data-transparent]:not([data-scrolled]) { --header-bg: transparent; --header-border: transparent; }
.site-header__inner {
  height: var(--header-h); max-width: var(--shell-max); margin-inline: auto; display: flex; align-items: center;
  padding-inline: calc(var(--inset) + var(--outer) - 1px);   /* logo lands at x=78 on 1440 */
}
.site-header__logo { flex: 1; display: flex; }
.site-header__logo a { display: flex; align-items: center; gap: 8px; height: 32px; margin-left: -8px; padding: 0 8px; border-radius: 6px; color: var(--fg); font-weight: var(--fw-semibold); font-size: 18px; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; }
.nav-link {
  height: 32px; padding: 0 12px; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-mini-size); color: var(--fg-3); border-radius: var(--r-pill);
  transition: color var(--t-quick) var(--ease-out-quad), background var(--t-quick) var(--ease-out-quad);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
@media (any-hover:hover){ .nav-link:hover { background: var(--nav-hover-bg); } }
.nav-divider { width: 1px; height: 16px; background: var(--border); margin-inline: 8px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
@media (max-width:768px){
  .site-nav, .site-header__actions .nav-link, .nav-divider { display: none; }
  .menu-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -12px; color: var(--fg); }
}
.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + 1px) 0 0; z-index: var(--z-dialog); display: none; flex-direction: column;
  padding: 32px 24px; overflow-y: auto; background: var(--header-bg);
  backdrop-filter: blur(var(--header-blur)); -webkit-backdrop-filter: blur(var(--header-blur));
}
.mobile-menu[data-open] { display: flex; animation: fade-in .18s both; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.mobile-menu a { font-size: var(--title-2-size); font-weight: var(--fw-medium); color: var(--fg); }

/* ---------- Buttons -------------------------------------------------------
   Sizes:  mini 24 | small 32 | medium 40 | default 40 | large 44
   Variants: primary(brand) secondary invert ghost tertiary glass inline   */
.btn {
  --h: 40px; --px: 16px; --fs: var(--text-regular-size); --gap: 6px; --icon: 18px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; white-space: nowrap;
  height: var(--h); line-height: var(--h); padding: 0 var(--px); gap: var(--gap);
  font-size: var(--fs); font-weight: var(--fw-medium); border-radius: var(--r-pill); user-select: none;
  transition: .16s var(--ease-out-quad); transition-property: border, background-color, color, box-shadow, opacity, filter, transform;
}
.btn svg { width: var(--icon); height: var(--icon); fill: currentColor; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(.97); }
.btn--mini   { --h: 24px; --px: 10px; --fs: var(--text-micro-size); --gap: 4px; --icon: 12px; }
.btn--small  { --h: 32px; --px: 12px; --fs: var(--text-mini-size);  --gap: 8px; --icon: 16px; }
.btn--medium { --h: 40px; --px: 14px; --fs: var(--text-mini-size);  --gap: 8px; --icon: 16px; }
.btn--large  { --h: 44px; --px: 20px; --fs: 16px;                   --gap: 6px; --icon: 18px; }
.btn--square { border-radius: var(--r-4); }

.btn--invert { background: var(--invert-bg); border: 1px solid var(--invert-bg); color: var(--invert-fg); box-shadow: var(--shadow-stack); }
.btn--invert:not(:disabled):hover { background: var(--invert-bg-hover); border-color: var(--invert-bg-hover); }
.btn--primary { background: var(--brand); color: var(--brand-text); }
.btn--primary:not(:disabled):hover { filter: brightness(115%); }
.btn--primary:not(:disabled):active { filter: brightness(98%); }
.btn--secondary { background: var(--bg-translucent); color: var(--fg); box-shadow: var(--shadow-secondary-btn); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.btn--secondary:not(:disabled):hover { background: var(--bg-level-3); }
.btn--tertiary { background: var(--bg); border: 1px solid var(--bg-secondary); color: var(--fg-3); }
.btn--tertiary:not(:disabled):hover { color: var(--fg); background: var(--bg-tertiary); border-color: var(--bg-tertiary); }
.btn--ghost { color: var(--fg-3); }
.btn--ghost:not(:disabled):hover { color: var(--fg); background: var(--bg-quaternary); }
.btn--glass { color: var(--fg); }
.btn--glass:not(:disabled):hover { background: #ffffff29; backdrop-filter: blur(8px); }
.btn--inline { color: var(--link); padding-inline: 8px; margin-left: -8px; }
.btn--inline:not(:disabled):hover { color: var(--fg); }
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Text link with trailing arrow ("Learn more →", "Customer stories →") */
.link-arrow { display: inline-flex; align-items: baseline; gap: 6px; font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); color: var(--fg-3); transition: color var(--t-highlight-out) var(--ease-out-cubic); }
.link-arrow::after { content: "→"; color: var(--fg-4); transition: transform .1s var(--ease-out-quad), color .1s; }
.link-arrow:hover { color: var(--fg); transition-duration: 0s; }
.link-arrow:hover::after { color: var(--fg-2); transform: translateX(2px); }
.link-underline { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--fg-4); text-decoration-thickness: clamp(1px,.0625em,3px); text-underline-offset: clamp(2px,.175em,4px); }

/* ---------- Badges / chips / kbd ----------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 11px 0 7px; border: 1px solid #2e2e32; border-radius: 16px; font-size: var(--text-micro-size); line-height: 14px; color: var(--fg-2); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--fg-3)); margin-right: 2px; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; height: 25px; padding: 0 8px; border: 1px solid var(--border-2); border-radius: var(--r-pill); background: var(--bg); font-size: var(--text-small-size); font-weight: var(--fw-medium); }
.pill-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--accent)); }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; background: var(--bg-tertiary); color: var(--fg-3); font-size: .8em; font-weight: var(--fw-medium); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; position: relative; top: -1px; }
.status-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; opacity: .25; background: radial-gradient(circle closest-side, #0000 20%, currentColor 100%); }

/* ---------- Surfaces ------------------------------------------------------ */
.card { background: var(--bg-panel); border: var(--hairline) solid var(--border-subtle); border-radius: var(--r-8); position: relative; isolation: isolate; }
.card--hover::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #ffffff0f; opacity: 0; transition: opacity .2s var(--ease-out-quart); }
.card--hover:hover::before { opacity: .5; transition-duration: .1s; }
.card--hover:active::before { opacity: 1; }
.panel-12 { background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: var(--r-12); box-shadow: 0 2px 32px #00000040; }
.ui-card { background: var(--bg-panel); background-image: linear-gradient(#ffffff05,#ffffff05); border: 1px solid var(--border-strong); border-radius: 9px; padding: 8px 10px 12px 12px; }
/* Edge glow: a soft radial light on one corner of a card/frame */
.edge-glow { position: relative; isolation: isolate; }
.edge-glow::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 50% 50% at var(--gx,0) var(--gy,0), #ffffff0d 0%, #ffffff05 40%, transparent 70%); }

/* ---------- Marketing hero ------------------------------------------------ */
.hero { padding-top: var(--hero-top); }
@media (max-width:1024px){ .hero { padding-top: 160px; } }
@media (max-width:640px) { .hero { padding-top: 128px; } }
.hero__title { margin-left: -2px; }                 /* optical alignment of large type */
.hero__meta { margin-top: 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.hero__meta .lede { max-width: 560px; text-wrap: pretty; }
.hero__news { display: inline-flex; gap: 12px; font-size: var(--text-regular-size); color: var(--fg-3); transition: filter .16s var(--ease-out-quad); }
.hero__news b { color: var(--fg-2); font-weight: var(--fw-medium); }
.hero__news:hover { filter: brightness(1.3); }
@media (max-width:1024px){ .hero__meta { flex-direction: column; gap: 20px; } }
.hero__visual { margin-top: 72px; }

/* Index-page hero (Pricing, Customers, Changelog, Contact): H1 80px below header */
.index-hero { padding-top: var(--index-top); padding-bottom: 59px; }  /* source trims H1 to cap height; 59 here = 72 visual */
@media (max-width:640px){ .index-hero { padding-top: 48px; padding-bottom: 48px; } }

/* ---------- Product frame (the screenshot "window") ----------------------- */
.frame-wrap { --buffer: 60px; padding-inline: var(--buffer); position: relative; margin-inline: calc(-1 * var(--outer)); }  /* frame edge = viewport + 60px on 1440 */
@media (max-width:1280px){ .frame-wrap { --buffer: 32px; } }
@media (max-width:1024px){ .frame-wrap { --buffer: 28px; } }
/* ≤640: like the source, render the full desktop UI at 50% inside a fixed-height window */
@media (max-width:640px) {
  .frame-wrap { --buffer: 0px; margin-inline: 0; height: var(--frame-mobile-h, 360px); overflow: hidden; border-radius: var(--r-12); }
  .frame-wrap > .frame { width: 200%; transform: scale(.5); transform-origin: 0 0; }
}
.frame { position: relative; border-radius: var(--r-12); padding: 8px; background: #090a0b; overflow: hidden; }
.frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--frame-bg); border: 1px solid var(--border-strong); }
.frame > * { position: relative; }   /* keep content above the ::before surface */
.frame__view { position: relative; border-radius: var(--r-8); background: #ffffff03; border: 1px solid var(--border-subtle); box-shadow: 0 0 0 2px #0003; overflow: hidden; }
.frame__view img { width: 100%; height: auto; }
.frame-fade { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.hero-backdrop { position: absolute; inset: 0 12px; border-radius: 6px; z-index: -1; overflow: hidden;
  background: radial-gradient(52.53% 57.5% at 50% 100%, #08090a00 0%, #08090a80 100%), linear-gradient(180deg, var(--bg) 10%, var(--fg-2) 100%); opacity: .14; }

/* ---------- Logo wall ----------------------------------------------------- */
.logo-wall { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding-inline: var(--inset); color: #fff; }
.logo-wall > * { height: 28px; width: auto; opacity: .9; transition: opacity .2s var(--ease-out-quad); }
.logo-wall:hover > * { opacity: .55; } .logo-wall > *:hover { opacity: 1; }
.logo-wall__caption { margin-top: 24px; padding-inline: var(--inset); }
@media (max-width:768px){ .logo-wall { flex-wrap: wrap; justify-content: flex-start; gap: 28px 40px; } .logo-wall > * { height: 22px; } }

/* ---------- Benefits row (3 columns with hairline rules) ------------------ */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); padding-inline: var(--inset); margin-top: 136px; }
.benefit { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 468px; padding-inline: var(--inset); border-right: 1px solid var(--border-strong); }
.benefit:first-child { padding-left: 0; } .benefit:last-child { padding-right: 0; border-right: none; }
.benefit .fig-label { position: absolute; top: 0; left: var(--inset); } .benefit:first-child .fig-label { left: 0; }
.benefit__art { flex: 1; display: grid; place-items: center; min-height: 0; overflow: hidden; color: var(--fg-4); }
.benefit h3 { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); font-weight: var(--fw-medium); color: var(--fg); margin-bottom: 8px; }
.benefit p { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); color: var(--fg-3); max-width: 368px; text-wrap: balance; }
@media (max-width:1280px){ .benefit { height: 360px; } }
@media (max-width:1024px){ .benefits { grid-template-columns: 1fr; padding-inline: 0; margin-top: 64px; } .benefit, .benefit:first-child, .benefit:last-child { height: auto; min-height: 280px; padding: 40px var(--inset) 40px; border-right: none; border-bottom: 1px solid var(--border-strong); } .benefit .fig-label, .benefit:first-child .fig-label { left: var(--inset); top: 40px; } .benefit__art { padding-block: 32px; } }

/* ---------- Feature section ---------------------------------------------- */
.feature { padding-block: var(--section-y); }
@media (max-width:768px){ .feature { padding-block: 48px 96px; } }
@media (max-width:640px){ .feature { padding-block: 0 64px; } }
.feature__head { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding-bottom: var(--section-head-gap); }
.feature__title { padding-right: 32px; max-width: 542px; }
.feature__body { padding-inline: var(--inset); }
.feature__action { margin-top: 48px; }
@media (max-width:1024px){ .feature__head { grid-template-columns: 1fr; padding-bottom: 64px; } .feature__body { margin-top: 32px; padding-inline: 0; } .feature__action { margin-top: 40px; } }
@media (max-width:640px){ .feature__head { padding-top: 40px; padding-bottom: 48px; } .feature__body { margin-top: 24px; } .feature__action { margin-top: 24px; } }
.feature__visual { position: relative; }
.feature__foot { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; padding-inline: var(--inset); }
.feature__foot-label { padding-top: 36px; color: var(--fg-4); font-size: var(--text-regular-size); line-height: 28px; }
.feature__foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-top: 36px; padding-left: var(--inset); }
.feature__foot-links a { display: inline-flex; align-items: center; gap: 4px; height: 28px; font-size: var(--text-regular-size); color: var(--fg-3); transition: color .1s; }
.feature__foot-links a::after { content: "+"; font-size: 18px; color: var(--fg-4); }
.feature__foot-links a:hover { color: var(--fg); }
@media (max-width:1024px){ .feature__foot { grid-template-columns: 1fr; } .feature__foot-links { padding-left: 0; padding-top: 12px; } }

/* Mini-feature grid (2–3 small captions under a visual) */
.mini-features { display: grid; grid-template-columns: repeat(var(--n,2), minmax(0,1fr)); gap: 32px; padding-inline: var(--inset); margin-top: 32px; }
.mini-features h3 { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); font-weight: var(--fw-medium); color: var(--fg); }
.mini-features p { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); color: var(--fg-3); max-width: 420px; }
@media (max-width:768px){ .mini-features { grid-template-columns: 1fr; } }

/* ---------- Timeline (homepage changelog strip) --------------------------- */
.timeline { --dot: 32px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px; padding-inline: var(--inset); }
.timeline::before { content: ""; position: absolute; top: calc(var(--dot) / 2); left: var(--inset); right: var(--inset); height: 1px; background: var(--border-strong); }
.timeline__dot { position: relative; width: var(--dot); height: var(--dot); margin-bottom: 48px; background: var(--bg); transform: translateX(-12px); }
.timeline__dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--fg-4); opacity: .2; transform: translate(-50%,-50%); }
.timeline__dot::after  { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4); transform: translate(-50%,-50%); }
.timeline__item:first-child .timeline__dot::before { background: var(--accent); opacity: .12; }
.timeline__item:first-child .timeline__dot::after { background: var(--accent); }
.timeline__item a { display: block; border-radius: 4px; transition: filter .1s; } .timeline__item a:hover { filter: brightness(1.25); }
.timeline__item h3 { font-size: var(--text-regular-size); line-height: 24px; letter-spacing: var(--text-regular-ls); font-weight: var(--fw-medium); color: var(--fg-2); }
.timeline__item p { font-size: var(--text-regular-size); line-height: 24px; letter-spacing: var(--text-regular-ls); color: var(--fg-3); margin-top: 8px; }
.timeline__item time { display: block; margin-top: 20px; font-size: var(--text-micro-size); line-height: 1.4; color: var(--fg-4); text-transform: uppercase; }
@media (max-width:1280px){ .timeline { grid-template-columns: repeat(3,1fr); } .timeline__item:nth-child(4){display:none} }
@media (max-width:1024px){ .timeline { grid-template-columns: repeat(2,1fr); } .timeline__item:nth-child(3){display:none} }

/* ---------- Testimonials -------------------------------------------------- */
.quotes { display: flex; gap: 8px; padding: 12px 12px 0; position: relative; }
.quotes::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-bottom: none; border-radius: 12px 12px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.quote-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; height: 480px; padding: 24px 32px; border-radius: var(--r-8); background: var(--q-bg, var(--fg)); color: var(--q-fg, var(--bg)); transition: filter .16s var(--ease-out-quad); }
.quote-card:hover { filter: brightness(1.03); }
.quote-card--primary { flex: 1; } .quote-card--secondary { flex-shrink: 0; width: 432px; }
.quote-card blockquote { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); font-weight: var(--fw-normal); max-width: 28ch; text-indent: -.4em; text-wrap: pretty; }
.quote-card blockquote::before { content: "“"; } .quote-card blockquote::after { content: "”"; }
.quote-card footer { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.quote-card .author { border-left: 1px solid color-mix(in srgb, currentColor 10%, transparent); padding-left: 16px; font-size: var(--text-small-size); line-height: var(--text-small-lh); }
.quote-card .author b { display: block; font-weight: var(--fw-medium); }
.quote-card .author span { opacity: .7; }
@media (max-width:1024px){ .quotes { flex-direction: column; } .quote-card--primary { flex: none; } .quote-card--secondary { width: auto; } }
@media (max-width:640px){ .quote-card { height: 360px; padding: 20px 28px 28px; } .quote-card blockquote { font-size: var(--title-2-size); line-height: var(--title-2-lh); } }

/* ---------- Pre-footer CTA ----------------------------------------------- */
.prefooter { display: flex; flex-direction: column; align-items: center; gap: 40px; margin-block: var(--prefooter-y); }
@media (max-width:768px){ .prefooter { margin-block: 128px; } }
@media (max-width:640px){ .prefooter { margin-block: 96px; } }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--border); }
.site-footer__inner { max-width: var(--shell-max); margin-inline: auto; padding: var(--footer-pad) var(--outer); display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); place-items: start; }
.site-footer__logo { margin-left: var(--inset); color: var(--fg); }
.site-footer__col { width: 100%; padding-inline: var(--inset); font-size: var(--text-mini-size); line-height: var(--text-mini-lh); letter-spacing: var(--text-mini-ls); }
.site-footer__col h3 { font-weight: var(--fw-medium); color: var(--fg); margin-bottom: 24px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 2px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 28px; color: var(--fg-3); white-space: nowrap; transition: color .1s; }
.site-footer__col a:hover { color: var(--fg); }
.site-footer__legal { grid-column: 2 / -1; margin-top: 80px; display: flex; gap: 20px; padding-inline: var(--inset); }
.site-footer__legal a { font-size: var(--text-mini-size); color: var(--fg-4); } .site-footer__legal a:hover { color: var(--fg-3); }
@media (max-width:1024px){ .site-footer__inner { grid-template-columns: repeat(4, minmax(0,1fr)); row-gap: 48px; } .site-footer__logo { grid-row: 1 / 3; } }
@media (max-width:768px){ .site-footer__inner { column-gap: 16px; } .site-footer__logo { grid-area: 1 / 1 / 1 / -1; } .site-footer__col h3 { margin-bottom: 16px; } .site-footer__legal { grid-column: 1 / -1; margin-top: 24px; } }
@media (max-width:640px){ .site-footer__inner { grid-template-columns: repeat(2, minmax(0,1fr)); padding-bottom: 24px; } }

/* ---------- Pricing: plans ----------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); }
.plan { display: flex; flex-direction: column; min-height: 534px; padding-inline: var(--inset); }
.plan + .plan { border-left: 1px solid var(--border-subtle); }
.plan h3 { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); font-weight: var(--fw-semibold); color: var(--fg); }
.plan__price { display: flex; align-items: baseline; gap: 4px; height: 24px; margin-top: 4px; font-size: var(--text-regular-size); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--fg-3); }
.plan__billing { display: flex; align-items: center; gap: 8px; height: 60px; margin-top: 16px; border-block: 1px solid var(--border-subtle); font-size: var(--text-mini-size); color: var(--fg-3); }
.plan__features { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; font-size: var(--text-mini-size); line-height: var(--text-mini-lh); color: var(--fg-2); }
.plan__features li { display: flex; align-items: center; gap: 8px; }
.plan__features li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%2308090a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan__cta { display: flex; gap: 8px; margin-top: auto; padding-top: 40px; } .plan__cta > * { flex: 1; }
@media (max-width:1024px){ .plans { grid-template-columns: repeat(2,1fr); row-gap: 64px; } .plan { min-height: 0; } .plan + .plan { border-left: none; } }
@media (max-width:768px){ .plans { grid-template-columns: 1fr; } }

/* Toggle switch (billing) */
.switch { position: relative; width: 28px; height: 16px; border-radius: 9999px; background: var(--bg-quaternary); transition: background .16s var(--ease-out-quad); flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .16s var(--ease-out-quad); }
.switch[aria-checked="true"] { background: var(--brand); } .switch[aria-checked="true"]::after { transform: translateX(12px); }

/* ---------- Pricing: comparison table ------------------------------------ */
.compare { border-radius: var(--r-12); background: var(--bg); }
.compare__sticky { position: sticky; top: var(--header-h); z-index: 3; background: var(--header-bg); backdrop-filter: blur(var(--header-blur)); border-bottom: 1px solid var(--line-2); }
.compare__row { --h: 44px; position: relative; display: grid; grid-template-columns: 2fr repeat(4, 1fr); min-height: var(--h); }
.compare__row:not(.compare__row--head)::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: var(--bg-level-2); opacity: 0; transition: opacity .15s var(--ease-out-cubic); z-index: -1; }
@media (any-hover:hover){ .compare__row:not(.compare__row--head):hover::before { opacity: 1; transition-duration: 0s; } }
.compare__row--head > * { padding: 12px var(--inset); font-size: var(--title-2-size); font-weight: var(--fw-medium); color: var(--fg); }
.compare__group { padding: 42px var(--inset) 18px; font-size: var(--title-2-size); line-height: var(--title-2-lh); font-weight: var(--fw-medium); color: var(--fg); }
.compare__label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--inset); font-size: var(--text-mini-size); color: var(--fg-3); }
.compare__cell { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 var(--inset); border-left: 1px solid var(--line-2); font-size: var(--text-mini-size); color: var(--fg-2); }
.compare__cell[data-no] { color: var(--fg-4); }
@media (max-width:1024px){ .compare__row { grid-template-columns: 1fr 1fr; } .compare__row > :nth-child(n+3) { display: none; } .compare__cell { border-left: none; } }

/* ---------- List rows (customers index, archives, job listings) ---------- */
.list-row { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 56px; }
.list-row::before { content: ""; position: absolute; inset: -1px calc(-1 * var(--page-pad-inline)); z-index: -1; border-radius: 12px; background: var(--bg-translucent); opacity: 0; }
.list-row:hover::before { opacity: 1; }
.list-row + .list-row { border-top: 1px solid var(--border-subtle); }
.list-row:hover, .list-row:hover + .list-row { border-color: transparent; }
.list-row__meta { color: var(--fg-4); font-size: var(--text-mini-size); white-space: nowrap; transition: color .1s; }
.list-row:hover .list-row__meta { color: var(--fg); }

/* Segmented tabs (filters) */
.tabs { display: inline-flex; gap: 4px; height: 40px; }
.tab { height: 100%; padding-inline: 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-pill); color: var(--fg-3); font-size: var(--text-mini-size); transition: var(--t-quick); }
.tab:hover { border-color: var(--border); } .tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Story / article cards (customers, blog/"now") ----------------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 64px; row-gap: 64px; }
.cards-3--ruled > * { position: relative; }
.cards-3--ruled > *:not(:nth-child(3n+1))::before { content: ""; position: absolute; top: 0; bottom: 0; left: -32px; width: 1px; background: var(--border-subtle); }
@media (max-width:1024px){ .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .cards-4, .cards-3 { grid-template-columns: 1fr; } }
.story { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.story__thumb { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--thumb, var(--brand)); filter: brightness(.95); transition: filter .2s var(--ease-out-cubic); display: grid; place-items: center; }
.story__thumb::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--border-subtle); border-radius: inherit; }
.story:hover .story__thumb { filter: brightness(1); }
.story h3 { font-size: var(--title-2-size); line-height: var(--title-2-lh); letter-spacing: var(--title-2-ls); font-weight: var(--fw-medium); color: var(--fg); max-width: 360px; }
.story--compact h3 { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); }
.story p { font-size: var(--text-regular-size); line-height: var(--text-regular-lh); color: var(--fg-3); margin-top: 4px; }
.story__more { margin-top: auto; padding-top: 24px; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--fg-3); transition: color .15s; }
.story__more::after { content: " →"; color: var(--fg-4); }
.story:hover .story__more { color: var(--fg); transition-duration: 0s; }

/* ---------- Contact cards ------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-inline: 8px; }
.contact-card { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 232px; padding: 24px; }
@media (max-width:1024px){ .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Forms (measured on the sales form) ---------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--fg-3); }
.input, .textarea, .select {
  width: 100%; height: 40px; padding: 0 10px; border-radius: var(--r-8);
  background: #ffffff0d; border: 1px solid #ffffff0d; color: #fff;
  font: inherit; font-size: var(--text-small-size); line-height: 21px;
  transition: border-color .15s var(--ease-out-quad), background .15s var(--ease-out-quad);
}
.textarea { height: auto; min-height: 106px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--fg-4); }
.input:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
[data-theme="light"] .input, [data-theme="light"] .textarea { background: var(--bg); border-color: var(--border-strong); color: var(--fg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; max-width: 591px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Accordion / FAQ ---------------------------------------------- */
.faq-item { position: relative; } .faq-item + .faq-item { border-top: 1px solid var(--border-subtle); }
.faq-item summary { list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 16px 0; cursor: pointer; font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); font-weight: var(--fw-medium); color: var(--fg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "›"; margin-left: auto; color: var(--fg-4); transition: transform .12s; font-size: 18px; line-height: 24px; }
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-item .faq-body { padding-bottom: 16px; color: var(--fg-2); font-size: var(--text-regular-size); line-height: var(--text-regular-lh); max-width: var(--prose-max); }

/* ---------- Changelog entry (page) ---------------------------------------
   Date rail on the left (x=80, vertical 1px rail + dot), 624px content column
   starting at x=408 on 1440. Entry h2 32/36 w590, body 17/27.2 fg-2.       */
.log { position: relative; padding-inline: var(--inset); }
.log::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--inset) + 10px); width: 1px; background: var(--border-subtle); }
.log-entry { display: grid; grid-template-columns: 328px minmax(0, 624px); padding-bottom: 128px; }
.log-entry__date { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; display: flex; align-items: center; gap: 14px; padding-top: 8px; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--fg); }
.log-entry__date::before { content: ""; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--fg-4); box-shadow: 0 0 0 4px var(--bg); }
.log-entry:first-child .log-entry__date::before { background: var(--orange); }
.log-entry h2 { font-size: var(--title-4-size); line-height: 36px; letter-spacing: var(--title-4-ls); font-weight: var(--fw-semibold); color: var(--fg); margin-bottom: 48px; }
@media (max-width:1024px){ .log-entry { grid-template-columns: 200px minmax(0,1fr); } }
@media (max-width:768px){ .log::before { display: none; } .log-entry { grid-template-columns: 1fr; gap: 16px; padding-bottom: 80px; } .log-entry__date { position: static; } .log-entry h2 { font-size: var(--title-3-size); line-height: var(--title-3-lh); margin-bottom: 24px; } }

/* Index filters (text tabs under an index H1) + search pill */
.index-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }  /* H1 → bar 18px; bar → rule 12px; rule → first entry 125px */
.text-tabs { display: flex; flex-wrap: wrap; gap: 16px; }
.text-tabs a { font-size: var(--text-regular-size); line-height: 24px; letter-spacing: var(--text-regular-ls); color: var(--fg-3); transition: color .1s; }
.text-tabs a:hover, .text-tabs a[aria-current] { color: var(--fg); }
.search-pill { display: flex; align-items: center; gap: 10px; width: 280px; height: 40px; padding-left: 16px; border-radius: 100px; background: var(--bg-level-2); border: 1px solid var(--border-subtle); color: var(--fg-3); font-size: var(--text-small-size); }
@media (max-width:768px){ .search-pill { display: none; } }

/* Stat row (big numbers with hairline column rules) */
.stats { display: grid; grid-template-columns: 1fr repeat(3, minmax(0, 1fr)); gap: 0; }
.stat { padding-inline: 32px; border-left: 1px solid var(--border-subtle); }
.stat__num { font-size: var(--title-6-size); line-height: 1; letter-spacing: var(--title-6-ls); font-weight: var(--fw-medium); color: var(--fg); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--fg-3); }
@media (max-width:768px){ .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; } .stats > :first-child { grid-column: 1 / -1; } }

/* ---------- Prose (articles, changelog bodies, legal) --------------------- */
.prose { --block: 20px; color: var(--fg-2); font-size: var(--text-regular-size); line-height: var(--text-regular-lh); letter-spacing: var(--text-regular-ls); }
.prose--large { font-size: var(--text-large-size); line-height: var(--text-large-lh); letter-spacing: 0; }
.prose > * + * { margin-top: var(--block); }
.prose h1 { font-size: var(--title-5-size); line-height: var(--title-5-lh); letter-spacing: var(--title-5-ls); color: var(--fg); font-weight: var(--fw-semibold); }
.prose h2 { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); color: var(--fg); font-weight: var(--fw-semibold); margin-top: 56px; }
.prose h3 { font-size: 20px; line-height: 1.6; color: var(--fg); font-weight: var(--fw-semibold); margin-top: 56px; }
.prose h4 { font-size: var(--title-1-size); line-height: var(--title-1-lh); letter-spacing: var(--title-1-ls); color: var(--fg); font-weight: var(--fw-semibold); margin-top: 28px; }
.prose h2 + p { margin-top: 12px; } .prose h3 + p { margin-top: 6px; } .prose h4 + p { margin-top: 10px; } .prose h2 + h3 { margin-top: 24px; }
.prose strong, .prose b { color: var(--fg); font-weight: var(--fw-semibold); }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--fg-4); text-underline-offset: clamp(2px,.175em,4px); }
.prose ul, .prose ol { padding-left: 24px; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; } .prose li::marker { color: var(--fg-4); }
.prose blockquote { font-size: var(--title-3-size); line-height: var(--title-3-lh); letter-spacing: var(--title-3-ls); color: var(--fg); font-weight: var(--fw-semibold); text-indent: -.5em; }
.prose figure { margin-block: 20px; } .prose figure img { border-radius: 8px; }
.prose figcaption { margin-top: 12px; font-size: var(--text-micro-size); line-height: var(--text-micro-lh); color: var(--fg-3); text-wrap: balance; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--bg-tertiary); border: 1px solid var(--border-subtle); }
@media (max-width:768px){ .prose h1 { font-size: var(--title-4-size); line-height: var(--title-4-lh); } .prose h2 { font-size: var(--title-2-size); line-height: var(--title-2-lh); } .prose h3 { font-size: var(--title-1-size); line-height: var(--title-1-lh); } }

/* ---------- Motion -------------------------------------------------------- */
/* Hero line reveal: blur(10px) + 20% rise → sharp. ~700ms ease-out, 40ms stagger. */
.reveal-line { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(20%);
  animation: reveal-line .7s var(--ease-out-quart) forwards; animation-delay: calc(var(--i, 0) * 40ms + 500ms); }
@keyframes reveal-line { to { opacity: 1; filter: blur(0); transform: none; } }
/* Scroll reveal for blocks (applied by IntersectionObserver in motion.js) */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart), filter .8s var(--ease-out-quart); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal, .reveal-line { opacity: 1; transform: none; filter: none; }
}

/* ---------- Scrollbar ----------------------------------------------------- */
* { scrollbar-color: var(--scrollbar) transparent; scrollbar-width: thin; }
