/* ==========================================================================
   Anodela — Base, layout, components, utilities
   Pure CSS, mobile-first, no frameworks. Every section sits on the one
   canvas; sections are told apart by spacing alone. Components carry their
   own edges: a hairline and, at most, one opaque tonal step.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: clip;
}
::selection { background: var(--accent-soft); color: var(--text-primary); }
:target, [id] { scroll-margin-top: calc(var(--header-h) + var(--space-8)); }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: var(--track-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--track-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: var(--track-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15em; }
a { color: var(--accent-link); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
strong, b { color: var(--text-primary); font-weight: 600; }
code, pre { font-family: var(--font-mono); }
small { font-size: var(--fs-small); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--text-on-accent);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--container-xl);
  margin-inline: auto; padding-inline: var(--gutter);
}
/* Containers include their gutter, so the widths add it back. */
.container--narrow { max-width: calc(var(--container-md) + 2 * var(--gutter)); }
.container--lg { max-width: var(--container-xl); }
.container--wide { max-width: var(--container-xl); }

.section { padding-block: var(--section-y); border: 0; position: relative; background: var(--bg-canvas); }
.section--hero { padding-block: clamp(48px, 6.4vw, 104px) var(--section-y); }
.section--cta { padding-block: var(--section-y) var(--section-y-lg); }
.section--muted, .section--white { background: var(--bg-canvas); }
.section--tight { padding-block: clamp(40px, 4.4vw, 64px); }
/* Stacked sections share one gap: pure spacing, never a rule. */
.section + .section:not(.section--hero) { padding-top: 0; }

.grid { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
.stack > * + * { margin-top: var(--stack); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
@media (min-width: 601px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cols-2 { gap: clamp(32px, 5vw, 72px); align-items: start; }

/* ---------- Typography helpers ---------- */
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-secondary); max-width: 58ch; letter-spacing: -0.005em; }
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: var(--track-display); font-weight: 500; }
.grad-text { color: var(--accent); }        /* solid accent, never clipped */
.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }
.mono, .panel-label, .logo-caption {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted);
}
.panel-label { display: block; }
.logo-caption { display: block; text-align: left; margin: 0 0 var(--space-6); max-width: none; }

/* Section head: headline left, supporting copy right on wide screens. */
.section-head { max-width: none; margin-bottom: clamp(40px, 4.6vw, 72px); text-align: left; }
.section-head h2 { max-width: 20ch; margin-bottom: 0; }
.section-head > p, .section-head .lead { margin: var(--space-5) 0 0; max-width: 56ch; color: var(--text-secondary); }
@media (min-width: 960px) {
  .section-head:has(> p) {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 96px); align-items: end;
  }
  .section-head:has(> p) > p, .section-head:has(> p) .lead { margin: 0; font-size: var(--fs-body-lg); }
  .section-head:has(> p) h2 { max-width: 18ch; }
}
.section-head.center { margin-inline: 0; text-align: left; }
.section-head.center h2, .section-head.center p { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: inherit; font-weight: 600; font-size: 0.9688rem; line-height: 1; letter-spacing: -0.005em;
  padding: 0 var(--space-5); min-height: 46px;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-muted); }
.btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: var(--fs-small); border-radius: var(--radius-sm); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-primary); padding: 0;
  min-height: 46px; font-weight: 600; font-size: 0.9688rem;
}
.btn-text::after {
  content: "\2192"; display: inline-block; color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-text:hover { text-decoration: none; color: var(--accent-link); }
.btn-text:hover::after { transform: translateX(3px); }
.post-card .btn-text, .more-link .btn-text { min-height: 32px; color: var(--accent-link); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; }
.center .btn-group { justify-content: center; }
.more-link { margin: var(--space-8) 0 0; max-width: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: clamp(24px, 2.4vw, 32px);
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
  min-width: 0;
}
.card:hover { border-color: var(--border-default); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--text-secondary); max-width: none; font-size: var(--fs-small); line-height: 1.6; }
.card--pad-lg { padding: clamp(24px, 3.4vw, 44px); }
.card--muted { background: var(--surface-muted); border-color: var(--border-subtle); }
.cols-3 .card h3, .cols-4 .card h3, .bento .card h3, .post-card h3 {
  font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.012em; font-weight: 500;
}

/* Card grids read as one instrument panel: cells joined by hairlines inside
   a single frame. Last-row stragglers widen so the frame never has holes. */
.grid.cols-3:has(> .card), .grid.cols-4:has(> .card) {
  gap: 1px; background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden;
}
.grid.cols-3 > .card, .grid.cols-4 > .card {
  border: 0; border-radius: 0; padding: clamp(24px, 2.6vw, 36px);
}
.grid.cols-3 > .card:hover, .grid.cols-4 > .card:hover { background: var(--surface); }
@media (min-width: 601px) and (max-width: 900px) {
  .cols-3 > :last-child:nth-child(odd), .cols-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .cols-3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .cols-3 > :last-child:nth-child(3n+2) { grid-column: span 2; }
  .cols-4 > :last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .cols-4 > :last-child:nth-child(4n+2) { grid-column: span 3; }
  .cols-4 > :last-child:nth-child(4n+3) { grid-column: span 2; }
}

.icon-badge {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6);
}
.icon-badge svg { width: 20px; height: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; line-height: 1;
  padding: 6px 10px; border-radius: var(--radius-xs);
  background: var(--accent-soft); color: var(--accent-link); white-space: nowrap;
}
.pill--muted { background: var(--surface-muted); color: var(--text-muted); }
.pill--success { background: var(--success-soft); color: var(--success); }
.pill--ghost { display: none; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-canvas);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border-subtle); }
.nav {
  display: flex; align-items: center; gap: var(--space-8);
  height: var(--header-h); max-width: var(--container-xl);
  margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  color: var(--text-primary); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.03em; text-decoration: none; line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand-mark .bm-bg { fill: var(--accent); }
.brand-mark .bm-fg { stroke: #fff; }
.nav-list {
  display: none; list-style: none; margin: 0; padding: 0;
  gap: var(--space-1); align-items: center; flex: 1;
}
.nav-list > li.has-menu { position: static; }
.nav-actions { display: none; align-items: center; gap: var(--space-2); margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px;
  font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary);
  padding: 0 var(--space-3); border-radius: var(--radius-sm);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-muted); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-link[aria-expanded="true"] { color: var(--text-primary); background: var(--surface-muted); }
.nav-link .chev { width: 10px; height: 10px; color: var(--text-faint); transition: transform var(--dur-fast) var(--ease-out); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.megamenu {
  position: absolute; left: 50%; top: calc(var(--header-h) - 6px);
  transform: translateX(-50%) translateY(-6px);
  width: min(960px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: var(--space-3);
  display: none; opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.megamenu[data-open="true"] { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
.megamenu-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.megamenu-grid > div { padding: var(--space-4) var(--space-3) var(--space-3); }
.megamenu h4 {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--track-label); color: var(--text-muted); margin: 0 0 var(--space-2) var(--space-3);
}
.megamenu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.megamenu a {
  display: block; color: var(--text-primary); font-weight: 600; font-size: var(--fs-small);
  padding: var(--space-3); border-radius: var(--radius-md); line-height: 1.35;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.megamenu a span { display: block; color: var(--text-muted); font-weight: 400; font-size: var(--fs-micro); margin-top: 3px; }
.megamenu a:hover { text-decoration: none; background: var(--surface-muted); }

.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer;
  color: var(--text-primary); border-radius: var(--radius-md);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] { background: var(--surface-muted); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; background: var(--bg-canvas); z-index: 99;
  overflow-y: auto; padding: var(--space-4) var(--gutter) var(--space-16);
  border-top: 1px solid var(--border-subtle);
  display: none;
}
.mobile-menu[data-open="true"] { display: block; }
body.nav-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li { border-bottom: 1px solid var(--border-subtle); }
.mobile-menu a, .mobile-menu .acc-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: var(--space-4) 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  letter-spacing: -0.015em; color: var(--text-primary);
  background: none; border: 0; text-align: left; cursor: pointer; min-height: 44px;
}
.mobile-menu .acc-trigger .chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform var(--dur-fast) var(--ease-out); }
.mobile-menu .acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-menu .acc-panel { display: none; padding: 0 0 var(--space-3); }
.mobile-menu .acc-panel[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
.mobile-menu .acc-panel a { font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary); padding: var(--space-2) 0; }
.mobile-menu a.btn-primary { background: var(--accent); color: var(--text-on-accent); font-weight: 600; letter-spacing: 0; }
.mobile-menu a.btn { width: 100%; display: flex; min-height: 50px; border-radius: var(--radius-md); margin-top: var(--space-6); font-family: var(--font-sans); font-size: 1rem; justify-content: center; padding: 0 var(--space-5); }
@media (min-width: 1080px) {
  .nav-list, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: var(--space-8); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.02em; color: var(--text-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb + main .section--hero { padding-top: clamp(32px, 4.4vw, 72px); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero h1 { max-width: 17ch; }
.hero-copy { max-width: 920px; }
.hero-copy h1 { font-size: var(--fs-h1); }
.hero .lead { margin-top: var(--space-6); max-width: 54ch; }
.hero .btn-group { margin-top: var(--space-10); }
.hero-visual-wrap { margin-top: clamp(48px, 6vw, 88px); }
.hero-split { display: grid; gap: clamp(48px, 5vw, 72px); align-items: center; }
.hero-split h1 { font-size: var(--fs-display); line-height: 0.96; letter-spacing: var(--track-display); max-width: 11ch; }
.hero-split .lead { max-width: 44ch; }
@media (min-width: 1000px) { .hero-split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }
.hero__visual { will-change: transform; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin: var(--space-10) 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--text-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }

/* ---------- Product frame (console preview) ---------- */
.app-frame {
  background: var(--surface); border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-default); position: relative; min-width: 0;
}
.app-frame__bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0 var(--space-4); height: 40px; background: var(--surface-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.app-frame__dots { display: flex; gap: 6px; }
.app-frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.app-frame__title {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.02em; color: var(--text-muted);
  margin-left: var(--space-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-frame__body { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .app-frame__body { grid-template-columns: 164px minmax(0, 1fr); } }
.app-side { padding: var(--space-4) var(--space-3); display: none; border-right: 1px solid var(--border-subtle); }
@media (min-width: 700px) { .app-side { display: block; } }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-side li {
  font-size: var(--fs-micro); color: var(--text-muted); padding: 7px var(--space-3);
  border-radius: var(--radius-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-side li[data-active] { background: var(--accent-soft); color: var(--accent-link); font-weight: 600; }
.app-main { padding: var(--space-5); display: grid; gap: var(--space-4); min-width: 0; }
.app-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden;
}
.app-metric { background: var(--surface); padding: var(--space-3) var(--space-4); min-width: 0; }
.app-metric b {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem); color: var(--text-primary);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; line-height: 1.1;
}
.app-metric span {
  display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.03em;
  text-transform: uppercase; line-height: 1.3; color: var(--text-muted);
}
.app-chart { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4) var(--space-2); }
.app-chart__head { display: flex; justify-content: space-between; gap: var(--space-3); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
.app-chart svg { width: 100%; height: auto; margin-top: var(--space-2); }
.fpy .fpy-grid { stroke: var(--border-subtle); fill: none; }
.fpy .fpy-mark { stroke: var(--border-strong); stroke-dasharray: 3 3; fill: none; }
.fpy .fpy-t { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; fill: var(--text-muted); }
.fpy .fpy-area { fill: var(--accent-soft); }
.fpy .fpy-base { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 2 3; }
.fpy .fpy-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fpy .fpy-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.app-rows { display: grid; min-width: 0; border-top: 1px solid var(--border-subtle); }
.app-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 8px; gap: var(--space-3);
  align-items: center; font-size: var(--fs-micro); color: var(--text-secondary);
  padding: 10px 0; border-bottom: 1px solid var(--border-subtle); line-height: 1.4;
}
.app-row > span:nth-child(2) {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.02em; color: var(--text-muted); white-space: nowrap;
}
.app-row b { color: var(--text-primary); font-weight: 600; }
.dot, .dot--warn, .dot--info { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--success); flex: 0 0 8px; }
.dot--warn { background: var(--warning); }
.dot--info { background: var(--accent); }

/* ---------- Logos ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 601px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-wall span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: clamp(56px, 6vw, 76px);
  padding: var(--space-3); background: var(--bg-canvas);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--text-muted);
  transition: color var(--dur-base) var(--ease-out);
}
.logo-wall span:hover { color: var(--text-primary); }

/* ---------- Stats ---------- */
.stat-band { display: grid; gap: var(--space-10) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 901px) { .stat-band { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border-top: 1px solid var(--border-strong); padding-top: var(--space-5); min-width: 0; }
.stat b {
  display: block; font-family: var(--font-display); font-size: clamp(2.125rem, 1.5rem + 2.2vw, 3.5rem); font-weight: 500;
  color: var(--text-primary); letter-spacing: -0.045em; line-height: 1.02;
  font-variant-numeric: tabular-nums; text-wrap: balance;
}
.stat span {
  display: block; margin-top: var(--space-4); color: var(--text-muted);
  font-size: var(--fs-small); line-height: 1.5; max-width: 28ch;
}
.stat:first-child { border-top-color: var(--accent); }
.stat:first-child b, .stat--accent b { color: var(--accent); }

/* ---------- Feature story (split rows) ---------- */
.story { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 901px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story--flip .story__media-wrap { order: -1; }
}
.story + .story { margin-top: clamp(64px, 8vw, 120px); }
.story h3 { font-size: var(--fs-h3); max-width: 22ch; }
.story__media {
  background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6) var(--space-3); display: grid; gap: var(--space-4); min-width: 0;
}
.story__media .panel-label { display: flex; align-items: center; gap: var(--space-2); }
.story__media .panel-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.story__media .app-rows { border-top: 1px solid var(--border-subtle); }
.story__media .app-row { font-size: var(--fs-small); padding: 14px 0; }
.story__media .app-row:last-child { border-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--text-secondary); font-size: var(--fs-small); line-height: 1.55; }
.checklist li::before {
  content: ""; flex: 0 0 16px; height: 16px; margin-top: 3px; border-radius: 4px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230071e3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
  .bento > :first-child { grid-column: auto; }
  .bento .span-2 { grid-column: span 2; }
  .bento .row-2 { grid-row: span 2; }
}
.bento .card { display: grid; align-content: start; gap: var(--space-3); }
.bento .card h3 { margin: 0; }
.bento .span-2 h3 { font-size: var(--fs-h3); }
.bento .card .checklist { margin-top: var(--space-2); }
.bento .span-2 { background: var(--surface); }

/* ---------- Workflow / steps ---------- */
.flow {
  list-style: none; padding: 0; margin: 0; display: grid; counter-reset: step;
  gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 601px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 1099px) { .flow > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .flow > :last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .flow > :last-child:nth-child(4n+2) { grid-column: span 3; }
  .flow > :last-child:nth-child(4n+3) { grid-column: span 2; }
}
.flow > li { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); position: relative; min-width: 0; }
.flow > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: var(--space-8);
}
.flow h3 { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.flow p { font-size: var(--fs-small); line-height: 1.6; color: var(--text-secondary); max-width: none; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); overflow: hidden;
}
@media (min-width: 601px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.timeline > li { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); min-width: 0; }
.timeline h3 { font-size: var(--fs-h4); margin-top: var(--space-6); }
.timeline .pill { background: none; padding: 0; color: var(--accent); font-size: var(--fs-label); }
.timeline ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); font-size: var(--fs-small); line-height: 1.55; color: var(--text-secondary); }
.timeline ul li { position: relative; padding: 0 0 0 var(--space-5); background: none; border: 0; }
.timeline ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--border-strong);
}

/* ---------- Testimonials ---------- */
.quote-card { display: grid; gap: var(--space-8); align-content: space-between; }
.quote-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.42; color: var(--text-primary); font-weight: 400; letter-spacing: -0.012em;
}
.quote-author { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.avatar {
  width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-muted);
  color: var(--text-primary); display: grid; place-items: center; font-family: var(--font-mono);
  font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.04em; flex: 0 0 36px;
}
.quote-author cite { font-style: normal; font-size: var(--fs-small); color: var(--text-primary); font-weight: 600; display: block; line-height: 1.35; }
.quote-author cite span { display: block; color: var(--text-muted); font-weight: 400; font-size: var(--fs-micro); margin-top: 2px; }

/* ---------- Pricing ---------- */
.toggle-wrap { display: flex; justify-content: flex-start; margin-bottom: var(--space-8); }
.pricing-grid { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 901px) { .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier {
  display: grid; gap: var(--space-6); height: 100%;
  grid-template-rows: auto auto 1fr auto; align-content: start;
  padding: clamp(24px, 2.6vw, 36px);
}
.tier:hover { border-color: var(--border-default); }
.tier__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 28px; }
.tier__head h3 { margin: 0; font-size: var(--fs-h4); font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-primary); order: -1; }
.tier__price { padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.tier__cta { align-self: end; }
.tier__cta .btn { width: 100%; }
.tier--featured { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: -2px; }
.tier--featured:hover { border-color: var(--accent); }
.tier .amount {
  font-family: var(--font-display); font-size: clamp(2.5rem, 1.9rem + 2vw, 3.5rem); font-weight: 500; color: var(--text-primary);
  letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; display: block;
}
.tier .period { font-size: var(--fs-small); color: var(--text-muted); display: block; margin-top: var(--space-3); line-height: 1.45; }
.tier .checklist { margin-top: 0; align-content: start; }
.plan-note { margin: var(--space-6) 0 0; }
.toggle {
  display: inline-flex; gap: 2px; background: var(--surface-muted); padding: 3px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.toggle button {
  border: 1px solid transparent; background: none; font-family: inherit; font-size: var(--fs-small); font-weight: 500;
  color: var(--text-muted); padding: 0 var(--space-4); border-radius: var(--radius-sm);
  cursor: pointer; min-height: 36px; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.toggle button:hover { color: var(--text-primary); }
.toggle button[aria-checked="true"] { background: var(--surface); color: var(--text-primary); border-color: var(--border-default); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border-subtle); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--fs-small); line-height: 1.5; }
th, td { text-align: left; padding: var(--space-4) var(--space-6); vertical-align: top; }
thead th {
  font-family: var(--font-mono); color: var(--text-muted); font-weight: 500; font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: var(--track-label); background: var(--surface-muted);
  border-bottom: 1px solid var(--border-subtle); padding-block: var(--space-3);
}
tbody tr + tr > * { border-top: 1px solid var(--border-subtle); }
tbody th { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
tbody td { color: var(--text-secondary); }
tbody tr:hover > * { background: var(--bg-canvas); }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: none; border-top: 1px solid var(--border-default); }
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-item + .faq-item { border-top: 0; }
.faq-h, .faq-item > h3 { margin: 0; font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  width: 100%; background: none; border: 0; font-family: var(--font-display); cursor: pointer;
  padding: var(--space-6) 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); font-weight: 500;
  letter-spacing: -0.012em; line-height: 1.35; color: var(--text-primary); text-align: left;
}
.faq-q:hover { color: var(--accent-link); }
.faq-q .chev {
  width: 28px; height: 28px; flex: 0 0 28px; padding: 7px; border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-out); color: var(--text-muted);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 var(--space-12) var(--space-6) 0; color: var(--text-secondary); }
.faq-a[data-open="true"] { display: block; }
/* A question list sits beside its headline on wide screens. */
@media (min-width: 960px) {
  .container:has(> .section-head + .faq) {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); column-gap: clamp(40px, 6vw, 96px); align-items: start;
  }
  .container:has(> .section-head + .faq) > .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + var(--space-8)); }
  .container:has(> .section-head + .faq) > .section-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
}

/* ---------- Code & terminal ---------- */
.code-card { padding: 0; overflow: hidden; background: var(--surface-ink); border-color: var(--surface-ink); max-width: 100%; }
.code-card:hover { border-color: var(--surface-ink); }
.code-card__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-5); border-bottom: 1px solid #242b37;
  font-size: 0.6875rem; letter-spacing: 0.03em; color: var(--text-on-ink-muted); font-family: var(--font-mono);
}
.code-card pre { margin: 0; padding: var(--space-6); overflow-x: auto; font-size: 0.875rem; line-height: 1.7; color: var(--text-on-ink); }
.code-card code { white-space: pre; }
.tok-key { color: #c4a7ff; }
.tok-str { color: #7ee2a8; }
.tok-com { color: #8791a3; }
.tok-fn { color: #7cc0ff; }
.copy-btn {
  background: none; border: 1px solid #2d3542; border-radius: var(--radius-xs); font-family: inherit; font-size: 0.6875rem;
  color: var(--text-on-ink); cursor: pointer; padding: 4px 10px; letter-spacing: 0.03em;
}
.copy-btn:hover { border-color: #4a5566; }
.terminal .prompt { color: #7cc0ff; }

/* ---------- Tabs ---------- */
.tablist {
  display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: var(--space-8); padding: 3px;
  background: var(--surface-muted); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); max-width: 100%;
}
.tablist button {
  background: none; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--text-muted);
  padding: 0 var(--space-4); min-height: 36px;
}
.tablist button:hover { color: var(--text-primary); }
.tablist button[aria-selected="true"] { background: var(--surface); color: var(--text-primary); border-color: var(--border-default); }
.tabpanel[hidden] { display: none; }

/* ---------- CTA panel ---------- */
.cta-panel {
  display: grid; gap: var(--space-8); align-items: end;
  background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-2xl);
  padding: clamp(32px, 5vw, 72px); text-align: left;
}
.cta-panel h2 { font-size: var(--fs-h2); max-width: 16ch; margin: 0; }
.cta-panel .lead { margin: var(--space-5) 0 0; max-width: 46ch; }
.cta-panel .btn-group { margin: 0; justify-content: flex-start; }
@media (min-width: 900px) {
  .cta-panel { grid-template-columns: minmax(0, 1.4fr) auto; column-gap: var(--space-16); }
}

/* ---------- Statement ---------- */
.statement-block { display: grid; gap: var(--space-8); align-items: end; text-align: left; }
.statement-block .display { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.5rem); max-width: 16ch; margin: 0; }
.statement-block .lead { margin: 0; }
@media (min-width: 960px) { .statement-block { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--space-16); } }

/* ---------- Home: line diagram ---------- */
.line-diagram {
  background: var(--surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 40px); margin: 0 0 var(--grid-gap);
}
.line-diagram svg { width: 100%; }
.line-diagram .ld-v { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 759px) { .line-diagram .ld-h { display: none; } .line-diagram .ld-v { display: block; } }
.line-diagram .ld-core-s { font-size: 9.5px; fill: var(--text-on-ink-muted); }
.line-diagram .ld-box { fill: var(--surface); stroke: var(--border-strong); }
.line-diagram .ld-box--on { fill: var(--accent-soft); stroke: var(--accent); }
.line-diagram .ld-t { font-family: var(--font-sans); font-size: 14px; font-weight: 600; fill: var(--text-primary); }
.line-diagram .ld-m { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--text-muted); text-transform: uppercase; }
.line-diagram .ld-a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; fill: var(--accent-link); }
.line-diagram .ld-line { stroke: var(--border-strong); fill: none; }
.line-diagram .ld-loop { stroke: var(--accent); fill: none; stroke-dasharray: 4 5; }
.line-diagram .ld-flow { stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-dasharray: 2 12; animation: ld-march 1.6s linear infinite; }
.line-diagram .ld-node { fill: var(--accent); }
.line-diagram .ld-core { fill: var(--surface-ink); }
.line-diagram .ld-core-t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; fill: #fff; }
@keyframes ld-march { to { stroke-dashoffset: -28; } }

/* ---------- Home: autonomy ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ladder li { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); display: grid; gap: var(--space-3); align-content: start; }
.ladder .ladder__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: var(--space-4); }
.ladder .ladder__bar i { height: 4px; border-radius: 2px; background: var(--surface-sunken); }
.ladder .ladder__bar i.on { background: var(--accent); }
.ladder h3 { font-size: var(--fs-h4); margin: 0; }
.ladder p { font-size: var(--fs-small); margin: 0; }
.ladder .mono { color: var(--accent-link); }

/* ---------- Connector matrix ---------- */
.connector-grid .card h3 { font-family: var(--font-mono); font-size: 0.75rem !important; font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-5); }
.connector-grid .checklist { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.connector-grid .checklist li {
  display: inline-flex; font-size: var(--fs-micro); font-weight: 500; color: var(--text-primary); line-height: 1.2;
  padding: 7px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface);
}
.connector-grid .checklist li::before { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-canvas); padding-block: 0 var(--space-10); }
.site-footer > .container { border-top: 0; }
.footer-grid {
  display: grid; gap: var(--space-10) var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(32px, 4vw, 56px); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl);
}
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-grid > :first-child .footer-note { margin-top: var(--space-4); max-width: 34ch; font-size: var(--fs-small); color: var(--text-muted); }
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--track-label); color: var(--text-muted); margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--text-secondary); font-size: var(--fs-small); }
.site-footer a:hover { color: var(--text-primary); }
.site-footer .brand { color: var(--text-primary); font-size: 1.25rem; }
.footer-bottom {
  margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  justify-content: space-between; align-items: center; font-size: var(--fs-micro); color: var(--text-muted);
  padding-inline: var(--space-2);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.footer-bottom a { font-size: var(--fs-micro); color: var(--text-muted); }
.footer-note { font-size: var(--fs-micro); color: var(--text-faint); max-width: 72ch; margin-top: var(--space-5); line-height: 1.55; }
.site-footer > .container > .footer-note { padding-inline: var(--space-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.form .row-2 { display: grid; gap: var(--space-5); }
@media (min-width: 601px) { .form .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--fs-micro); font-weight: 600; color: var(--text-primary); letter-spacing: 0.005em; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-height: 46px; width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6270' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center/14px no-repeat;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.form .btn { width: 100%; }
.form .footer-note { margin: 0; }

/* ---------- Post list ---------- */
.post-list { display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 701px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1001px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 701px) and (max-width: 1000px) { .post-list > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.post-card { display: flex; flex-direction: column; gap: var(--space-3); }
.post-card:hover { border-color: var(--border-strong); }
.post-card .meta {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--space-4);
}
.post-card h3 { margin: 0; }
.post-card .btn-text { margin-top: auto; padding-top: var(--space-4); align-self: flex-start; }

/* ---------- Docs ---------- */
.doc-layout { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 901px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .doc-nav { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.doc-layout > :last-child { max-width: 72ch; }
.doc-layout h2 { margin-top: 0; font-size: var(--fs-h3); }
.doc-layout h3 { margin-top: var(--space-10); font-size: var(--fs-h4); }
.doc-layout p { color: var(--text-secondary); }
.doc-list { margin: var(--space-4) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); color: var(--text-secondary); }
.doc-list li::marker { color: var(--accent); }
.doc-nav { border-left: 1px solid var(--border-default); padding-left: var(--space-5); }
.doc-nav ul { list-style: none; margin: 0 0 var(--space-8); padding: 0; display: grid; gap: var(--space-2); }
.doc-nav h4 { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--text-muted); margin-bottom: var(--space-3); }
.doc-nav a { font-size: var(--fs-small); color: var(--text-secondary); }
.doc-nav a:hover { color: var(--accent-link); text-decoration: none; }

/* ---------- Motion (reveal on scroll) ---------- */
/* Gated on html.js so the site is fully visible when JS is absent or fails. */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal-group > * { opacity: 0; transform: translateY(12px); }
.js .reveal-group.is-visible > * {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: 220ms; }
.js .reveal-group.is-visible > *:nth-child(6) { transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; transition: none; }
  .hero__visual { transform: none !important; }
  .line-diagram .ld-flow { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.statement-block + .ladder { margin-top: clamp(40px, 5vw, 72px); }

/* Brand lockup from /logo */
.brand__logo { display: block; height: 26px; width: auto; max-width: none; }
