/* ==========================================================================
   Treadum — styles.css
   Base · layout · components · utilities. Tokens only, no raw hex.
   House rules: one flat background under every section; no rules, seams or
   tone steps between sections; no gradients, shadows, glows or blur. Depth
   comes from hairline borders and one opaque tonal step on components.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { background: var(--bg-900); }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
  min-height: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}
.site-header, main, .site-footer, .mobile-nav { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-family: var(--font-display);
  text-wrap: balance;
  font-weight: 600;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: var(--track-display); }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: var(--track-h2); max-width: var(--measure-head); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.012em; font-weight: 500; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.008em; font-weight: 500; }
p  { max-width: var(--measure-body); text-wrap: pretty; }
strong { color: var(--text-primary); font-weight: 600; }

::selection { background: var(--accent-soft); color: var(--text-primary); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--accent); color: var(--text-on-accent); font-weight: 600;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: var(--text-on-accent); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%; max-width: calc(var(--container-xl) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-2xl) + 2 * var(--gutter)); }
.container--prose { max-width: calc(var(--container-md) + 2 * var(--gutter)); }

/* Single continuous canvas: never alternate fills, never add rules between sections */
.section { padding-block: var(--section-y); background: transparent; border: 0; position: relative; }
/* Two stacked sections share one gap rather than doubling it. */
.section + .section:not(.section--hero):not(.section--cta) { padding-top: 0; }
.section--hero { padding-block: clamp(56px, 8vw, 120px) var(--section-y); }
.section--cta { padding-block: var(--section-y) var(--section-y-lg); }
.section + .section--cta { padding-top: 0; }
.section--tight { padding-block: 0 var(--section-y); }
.section > .container { position: relative; z-index: 1; }

.grid { display: grid; gap: var(--grid-gap); }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* a lone last card in a 2-up grid spans the row instead of orphaning */
  .cols-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.stack > * + * { margin-top: var(--stack); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.mx-auto { margin-inline: auto; }

/* Spacing utilities (replace the old inline style hacks) */
.mt-2 { margin-top: var(--space-2); }   .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }   .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }   .mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); } .mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); } .mb-4 { margin-bottom: var(--space-4); }
/* The first thing in a block never carries a top margin */
:is(.card, .cta-band, .split > div, .section-head, .hero-inner, .tab-panel) > :first-child { margin-top: 0; }

/* ---------- Type helpers ---------- */
.lead { font-size: var(--fs-lead); color: var(--text-secondary); max-width: var(--measure-lead); line-height: 1.55; letter-spacing: -0.006em; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); line-height: 1.6; }
/* Emphasis is a solid accent, never clipped gradient text. */
.grad-text { color: var(--accent); }
.split-title { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem); font-weight: 600; letter-spacing: var(--track-h2); line-height: 1.1; max-width: 20ch; }

.section-head { max-width: 72ch; }
.section-head h2 + p { margin-top: var(--space-5); }
.section-head.center { margin-inline: auto; }
.section-head.center h2, .section-head.center .lead { margin-inline: auto; }
/* Headline and lead share a row on wide screens: a calmer, editorial head */
@media (min-width: 1024px) {
  .section-head:not(.center):has(> h2 + .lead) {
    max-width: none; display: grid; align-items: end;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-16);
  }
  .section-head:not(.center):has(> h2 + .lead) h2 { max-width: 20ch; }
  .section-head:not(.center):has(> h2 + .lead) .lead { margin-top: 0; font-size: var(--fs-body-lg); color: var(--text-muted); max-width: 46ch; padding-bottom: 6px; }
}

.logo-caption {
  max-width: none; text-align: center; margin-bottom: var(--space-6);
  font-size: var(--fs-small); color: var(--text-muted);
}
.card-metric {
  margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent); font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.005em; white-space: nowrap;
  padding: 0 var(--space-6); height: 46px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: var(--surface-1); color: var(--text-primary); border-color: var(--border-default); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--text-secondary); padding-inline: var(--space-3); }
.btn-quiet:hover { color: var(--text-primary); }
.btn-sm { padding: 0 var(--space-4); height: 36px; font-size: var(--fs-small); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.center .btn-row, .cta-band .btn-row { justify-content: center; }
@media (max-width: 480px) {
  .hero .btn-row, .cta-band .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 500; font-size: var(--fs-small); color: var(--accent);
}
.link-arrow span { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover span, a:hover .link-arrow span { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--mat-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: var(--text-secondary);
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card--link:hover, a.card:hover {
  background: var(--mat-card-hover);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}
.card--pad-sm { padding: var(--space-6); }
.cols-4 > .card { padding: var(--space-6); }
.cols-4 > .card h3 { font-size: var(--fs-h4); }
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.bento .card h3 { font-size: var(--fs-h3); }
.card p { color: var(--text-secondary); max-width: 52ch; font-size: 0.9688rem; }
.card .link-arrow { margin-top: auto; padding-top: var(--space-6); }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-width: 36px; height: 28px; padding: 0 var(--space-2); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--accent);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
}
.icon-chip svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em;
  padding: 3px var(--space-3); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border-default);
}
.pill--accent { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-line); }

/* ---------- Navbar + mega-menu ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
/* The header is the page surface: solid, unblurred, and it draws no rule. */
.nav { background: var(--bg-900); }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  transform: scaleX(var(--progress, 0)); transform-origin: 0 50%;
  background: var(--accent); pointer-events: none;
}
.nav-inner { display: flex; align-items: center; gap: var(--space-8); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; flex: none; }
.brand:hover { color: var(--text-primary); }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 1.1875rem; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 var(--space-3); height: 36px; border-radius: var(--radius-pill);
  font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary);
  background: none; border: 0; cursor: pointer;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--text-primary); background: var(--surface-1); }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px;
  background: var(--accent); border-radius: 50%;
}
.nav-caret { width: 10px; height: 10px; color: var(--text-muted); transition: transform var(--dur-base) var(--ease-out); }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }

.mega {
  position: absolute; top: calc(100% + 14px); left: -24px; transform: translateY(-6px);
  width: min(840px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface-1);
  border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6);
  display: grid; gap: var(--space-2) var(--space-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility var(--dur-base);
}
/* hover bridge so the pointer can travel from trigger to panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mega-col h4 { font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .04em; color: var(--text-muted); padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--space-2); }
.mega-link { display: block; padding: var(--space-3); border-radius: var(--radius-md); color: var(--text-primary); font-weight: 500; font-size: var(--fs-small); line-height: 1.35; transition: background-color var(--dur-fast) var(--ease-out); }
.mega-link:hover { background: var(--surface-2); color: var(--text-primary); }
.mega-link span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.45; margin-top: 3px; }
.mega-link:hover span { color: var(--text-secondary); }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; background: var(--bg-900);
  padding: 0 0 var(--space-16); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; height: 68px; margin-bottom: var(--space-4); }
.m-group { border-bottom: 1px solid var(--border-subtle); }
.m-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: var(--space-5) 0; cursor: pointer;
  color: var(--text-primary); font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.01em;
}
.m-trigger:hover { color: var(--text-primary); }
.m-trigger .chev { color: var(--text-muted); transition: transform var(--dur-base) var(--ease-out); }
.m-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--accent); }
.m-panel { display: none; padding: 0 0 var(--space-5); grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
.m-panel.is-open { display: grid; }
.m-panel a { display: block; padding: var(--space-2) 0; color: var(--text-secondary); font-size: var(--fs-body); }
.m-panel a:hover { color: var(--text-primary); }
.mobile-nav .btn-row { margin-top: var(--space-8); flex-direction: column; align-items: stretch; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--surface-1); border: 1px solid var(--border-default); cursor: pointer; color: var(--text-primary);
}
.icon-btn:hover { border-color: var(--border-strong); }
/* Declared after .icon-btn so the hamburger stays hidden on desktop */
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-list, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: var(--space-4); }
}
@media (max-width: 400px) { .nav-actions .btn-primary { display: none; } }
@media (min-width: 1081px) { .mobile-nav { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-top: var(--space-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-faint); }
.breadcrumb [aria-current="page"] { color: var(--text-secondary); }
.breadcrumb + main .section--hero { padding-top: clamp(40px, 6vw, 88px); }

/* ---------- Hero ---------- */
.hero-inner { max-width: 1000px; }
.hero-inner > * { min-width: 0; }
.hero-inner.center { margin-inline: auto; }
.hero h1 {
  font-size: var(--fs-display); font-weight: 600; line-height: 1;
  letter-spacing: var(--track-display); max-width: 17ch;
}
.hero-inner.center h1 { margin-inline: auto; }
.hero .lead { margin-top: var(--space-6); max-width: 56ch; }
.hero-inner.center .lead { max-width: 52ch; }
.hero .btn-row { margin-top: var(--space-10); }
.hero-meta {
  margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  font-size: var(--fs-small); color: var(--text-muted); max-width: none;
}
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); flex: none; }
.center .hero-meta { justify-content: center; }
.hero-split { display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero-split > * { min-width: 0; }
/* In the split layout the headline shares the row — step it down from display size */
.hero-split h1 { font-size: var(--fs-h1); max-width: 16ch; }
.hero-visual { margin-top: clamp(48px, 7vw, 88px); }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
}
@media (max-width: 560px) {
  .hero-inner.center { text-align: left; }
  .hero-inner.center h1, .hero-inner.center .lead { margin-inline: 0; }
  .hero-inner.center .btn-row, .center .hero-meta { justify-content: flex-start; }
  .hero-meta { flex-direction: column; }
}

/* ---------- Dashboard / plant-console preview ---------- */
.console {
  container-type: inline-size;
  border-radius: var(--radius-xl); border: 1px solid var(--border-default);
  background: var(--surface-1); overflow: hidden; position: relative;
}
.console-bar { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-5); height: 44px; border-bottom: 1px solid var(--border-subtle); min-width: 0; }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); display: block; }
.console-title { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Live indicator */
.console-live { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--success); }
.console-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: live-blink 2.4s var(--ease-in-out) infinite; }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.console-body { display: grid; grid-template-columns: 156px minmax(0, 1fr); min-height: 320px; }
.console-side { border-right: 1px solid var(--border-subtle); padding: var(--space-4); display: flex; flex-direction: column; gap: 2px; background: var(--mat-card); }
.console-side span { font-size: 0.8125rem; color: var(--text-muted); padding: 6px var(--space-3); border-radius: var(--radius-sm); white-space: nowrap; }
.console-side span.is-active { background: var(--surface-2); color: var(--text-primary); font-weight: 500; box-shadow: none; outline: 1px solid var(--border-default); outline-offset: -1px; }
.console-main { padding: var(--space-5); display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.console-row { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-tile { background: var(--mat-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-4); min-width: 0; }
.metric-tile b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; font-weight: 500; white-space: nowrap; margin-top: 4px; line-height: 1.15; }
.metric-tile em { font-style: normal; font-size: 0.6875rem; color: var(--text-muted); letter-spacing: .02em; line-height: 1.35; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: var(--space-3); position: relative; }
/* Upper control limit — a dashed hairline, drawn as a border (no gradient) */
.spark::before { content: ""; position: absolute; left: 0; right: 0; top: 18%; border-top: 1px dashed var(--border-strong); }
.spark i {
  display: block; flex: 1; background: var(--surface-3); border-radius: 2px 2px 0 0;
  transform-origin: 50% 100%;
  animation: bar-rise 640ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes bar-rise { from { transform: scaleY(.06); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.spark i.hot { background: var(--accent); }
.spark i.cool { background: var(--accent-2-dim); }
.console-log { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); display: grid; gap: 6px; line-height: 1.55; }
.console-log > div { padding-left: 74px; text-indent: -74px; }
.console-log b { color: var(--accent-2); font-weight: 500; display: inline-block; width: 74px; text-indent: 0; }

/* The console adapts to the width it is given, not the viewport */
@container (max-width: 640px) {
  .console-body { grid-template-columns: minmax(0, 1fr); }
  .console-side { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--border-subtle); padding: var(--space-2) var(--space-3); }
  .console-side::-webkit-scrollbar { display: none; }
  .console-side span { flex: 0 0 auto; }
  .console-main { padding: var(--space-4); }
}
@container (max-width: 420px) {
  .console-row { gap: var(--space-2); }
  .metric-tile { padding: var(--space-3); }
  .metric-tile b { font-size: 1.125rem; }
  .metric-tile em { white-space: normal; min-height: 2.7em; }
  .console-log > div { padding-left: 0; text-indent: 0; }
  .console-log b { width: auto; margin-right: 6px; }
}

/* ---------- Logos / marquee ---------- */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-6); align-items: center; }
@media (max-width: 900px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
.logo-item {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: .06em; white-space: nowrap;
  color: var(--text-faint-aa); padding: var(--space-3) var(--space-2);
  transition: color var(--dur-base) var(--ease-out);
}
.logo-item:hover { color: var(--text-primary); }
.marquee {
  overflow: hidden; border-block: 1px solid var(--border-subtle); padding-block: var(--space-4);
}
.marquee-track { display: flex; gap: var(--space-16); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-8))); } }

/* ---------- Stats / trust ---------- */
/* Any grid of .stat blocks becomes a ruled stat row */
.grid:has(> .stat) {
  gap: 0; border-block: 1px solid var(--border-subtle);
}
.stat { padding: var(--space-8) var(--space-6); position: relative; }
.grid:has(> .stat) > .stat + .stat { border-left: 1px solid var(--border-subtle); }
.grid:has(> .stat) > .stat:first-child { padding-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); font-weight: 500; color: var(--text-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { display: block; margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-muted); max-width: 30ch; }
.stat em { font-style: normal; color: var(--accent); }
@media (max-width: 1000px) {
  .grid:has(> .stat) > .stat { padding-left: var(--space-6); border-left: 0; }
  .grid:has(> .stat) > .stat:nth-child(odd) { padding-left: 0; }
  .grid:has(> .stat) > .stat:nth-child(even) { border-left: 1px solid var(--border-subtle); }
  .grid:has(> .stat) > .stat:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
}
@media (max-width: 640px) {
  .grid:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: var(--space-6) var(--space-4); }
  .stat b { font-size: 2rem; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--grid-gap); grid-auto-rows: minmax(200px, auto); }
.bento > * { grid-column: span 2; min-width: 0; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .card .spark { margin-top: auto; padding-top: var(--space-6); height: 96px; }
.bento .card .spark::before { top: 40%; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 1; } }

/* ---------- Agent workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mat-card); overflow: hidden; }
.flow-node { position: relative; padding: var(--space-8) var(--space-6); transition: background-color var(--dur-base) var(--ease-out); }
.flow-node + .flow-node { border-left: 1px solid var(--border-subtle); }
.flow-node:hover { background: var(--mat-card-hover); }
/* Step connector: a chevron sitting on the divider */
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: -5px; top: 40px; width: 8px; height: 8px;
  border-top: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong);
  background: var(--mat-card); transform: rotate(45deg);
}
.flow-node b { display: block; font-family: var(--font-display); font-weight: 500; color: var(--text-primary); font-size: 1.1875rem; margin-bottom: var(--space-3); letter-spacing: -0.005em; }
.flow-node span { display: block; font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.6; }
.flow-node .flow-step { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--accent); margin-bottom: var(--space-5); letter-spacing: .04em; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-node + .flow-node { border-left: 0; }
  .flow-node + .flow-node::before { display: none; }
  .flow-node:nth-child(even) { border-left: 1px solid var(--border-subtle); }
  .flow-node:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .flow-node:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-node:nth-child(even) { border-left: 0; }
  .flow-node + .flow-node { border-top: 1px solid var(--border-subtle); }
  .flow-node { padding: var(--space-6); }
}

/* ---------- Loop diagram (home) ---------- */
.loop-diagram { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mat-card); padding: clamp(20px, 3vw, 40px); }
.loop-diagram svg { width: 100%; height: auto; }
.loop-diagram .ld-tall { display: none; }
@media (max-width: 900px) { .loop-diagram .ld-wide { display: none; } .loop-diagram .ld-tall { display: block; max-width: 360px; margin-inline: auto; } }
.ld-station rect { fill: var(--surface-2); stroke: var(--border-strong); }
.ld-label { fill: var(--text-primary); font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.ld-sub { fill: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; }
.ld-line { stroke: var(--border-strong); stroke-width: 1.25; fill: none; }
.ld-flow { stroke: var(--accent); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; animation: ld-dash 1.6s linear infinite; }
.ld-core rect { fill: var(--surface-1); stroke: var(--accent-line); }
.ld-core-label { fill: var(--accent-hover); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.ld-dot { fill: var(--accent); }
.ld-dot--teal { fill: var(--accent-2); }
@keyframes ld-dash { to { stroke-dashoffset: -20; } }

/* ---------- Spec list (agents on home) ---------- */
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-subtle); }
.spec-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-8) var(--space-8) var(--space-8) 0; border-bottom: 1px solid var(--border-subtle); }
.spec-row:nth-child(even) { padding-left: var(--space-8); padding-right: 0; border-left: 1px solid var(--border-subtle); }
.spec-row .spec-no { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent); padding-top: 4px; }
.spec-row h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.spec-row p { font-size: 0.9688rem; max-width: 52ch; }
.spec-row .spec-metric { margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); }
.spec-row .spec-metric b { color: var(--accent-2); font-weight: 500; }
.spec-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); }
@media (max-width: 800px) {
  .spec-list { grid-template-columns: minmax(0, 1fr); }
  .spec-row, .spec-row:nth-child(even) { padding: var(--space-6) 0; border-left: 0; }
  .spec-row { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---------- Split / alternating rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split > * { min-width: 0; }
.split--reverse .split-media { order: -1; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split--reverse .split-media { order: 0; } }
.split + .split { margin-top: clamp(64px, 8vw, 120px); }
.split h3 + p, .split .split-title + p { margin-top: var(--space-5); }
.check-list { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.55; }
.check-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23FF8154' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin-bottom: var(--space-10); background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); max-width: 100%; }
.tab {
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
  padding: 0 var(--space-5); height: 38px; border-radius: var(--radius-pill); cursor: pointer;
  font-size: var(--fs-small); font-weight: 500; white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text-primary); border-color: var(--border-default); }
.tab-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-lg); }
  .tabs::-webkit-scrollbar { display: none; }
}

/* ---------- Code & terminal ---------- */
.code-window, .terminal { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--mat-sunken); overflow: hidden; position: relative; min-width: 0; }
.code-head { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-4); height: 44px; border-bottom: 1px solid var(--border-subtle); background: var(--mat-card); }
.code-file { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy-btn { margin-left: auto; flex: none; background: transparent; border: 1px solid var(--border-default); color: var(--text-muted); border-radius: var(--radius-sm); padding: 0 var(--space-3); height: 28px; font-size: var(--fs-micro); cursor: pointer; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.copy-btn.is-copied { color: var(--success); border-color: var(--success-line); }
pre { margin: 0; padding: var(--space-5) var(--space-6); overflow-x: auto; }
pre, code { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.75; font-variant-ligatures: none; }
pre code { color: var(--text-secondary); }
.t-key { color: var(--accent-hover); }
.t-str { color: var(--accent-2); }
.t-com { color: var(--text-muted); }
.t-num { color: var(--warning); }
.t-fn  { color: var(--text-primary); }

.terminal-body { padding: var(--space-5) var(--space-6); font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.8; display: grid; gap: 1px; font-variant-ligatures: none; overflow-x: auto; }
.terminal-body > div { white-space: pre; }
.terminal-body .p { color: var(--accent); }
.terminal-body .out { color: var(--text-muted); }
.terminal-body .ok { color: var(--success); }

/* ---------- Testimonials ---------- */
.quote { gap: var(--space-8); height: 100%; }
.quote blockquote { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-primary); line-height: 1.45; letter-spacing: -0.005em; font-weight: 400; }
.quote blockquote p { max-width: none; font-size: inherit; color: inherit; }
.quote figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-default);
  color: var(--text-primary); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; flex: none;
}
.quote cite { font-style: normal; font-size: var(--fs-small); color: var(--text-primary); font-weight: 500; display: block; }
.quote figcaption > span > span { display: block; font-size: var(--fs-micro); color: var(--text-muted); line-height: 1.5; }

/* ---------- Pricing ---------- */
.toggle-row { display: flex; justify-content: center; }
.price-toggle { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 3px; }
.price-toggle button { background: transparent; border: 1px solid transparent; border-radius: var(--radius-pill); padding: 0 var(--space-5); height: 38px; color: var(--text-muted); font-size: var(--fs-small); font-weight: 500; cursor: pointer; transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.price-toggle button:hover { color: var(--text-primary); }
.price-toggle button[aria-checked="true"] { background: var(--surface-3); color: var(--text-primary); border-color: var(--border-default); }
.tier { padding: var(--space-8); }
.tier h3 { font-size: var(--fs-h3); margin-bottom: 0; }
.tier > .pill { position: absolute; top: var(--space-8); right: var(--space-8); margin: 0; }
.tier.is-featured { background: var(--surface-1); border-color: var(--accent-line); }
.tier .amount { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); font-weight: 500; color: var(--text-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.tier .period { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-2); min-height: 3.2em; }
.tier ul { display: grid; gap: var(--space-3); margin: var(--space-6) 0 var(--space-8); }
.tier li { display: flex; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.55; }
.tier li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.tier .btn { margin-top: auto; width: 100%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--mat-card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: var(--space-4) var(--space-5); font-size: var(--fs-small); border-bottom: 1px solid var(--border-subtle); vertical-align: top; line-height: 1.5; }
th { color: var(--text-primary); font-weight: 500; }
thead th { background: var(--surface-1); font-size: var(--fs-micro); letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; }
td { color: var(--text-secondary); }
tbody th[scope="row"] { color: var(--text-primary); font-weight: 500; }
tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
tbody tr:hover { background: var(--mat-card-hover); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ---------- FAQ / accordion ---------- */
.faq { display: grid; border-top: 1px solid var(--border-subtle); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); background: none; border: 0; cursor: pointer; padding: var(--space-6) 0; text-align: left; color: var(--text-primary); font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.005em; line-height: 1.35; transition: color var(--dur-fast) var(--ease-out); }
.faq-q:hover { color: var(--accent-hover); }
.faq-q .chev { transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); color: var(--text-muted); flex: none; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: var(--space-6); color: var(--text-secondary); max-width: 68ch; }

/* ---------- Timeline / steps ---------- */
.timeline { display: grid; gap: 0; position: relative; border-top: 1px solid var(--border-subtle); }
.timeline-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-8); position: relative; padding-block: var(--space-8); border-bottom: 1px solid var(--border-subtle); }
.timeline-item > div:first-child { position: relative; padding-left: var(--space-6); }
.timeline-item > div:first-child::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline-item b { color: var(--accent-hover); font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500; }
.timeline-item h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
@media (max-width: 640px) { .timeline-item { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-6); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--fs-small); color: var(--text-primary); font-weight: 500; }
.input, .textarea, select.input {
  width: 100%; background: var(--mat-sunken); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  color: var(--text-primary); font-size: var(--fs-small); min-height: 46px;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .textarea:focus, select.input:focus { border-color: var(--accent); outline: none; background: var(--surface-1); }
select.input {
  appearance: none; padding-right: var(--space-10);
  background: var(--mat-sunken) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238C93A1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; gap: var(--space-5); }
.form-grid .row-2 { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) { .form-grid .row-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px); position: relative; overflow: hidden;
}
.cta-band h2 { margin-inline: auto; max-width: 18ch; font-size: clamp(2rem, 1.4rem + 2.8vw, 3.5rem); }
.cta-band .lead { margin-top: var(--space-5); color: var(--text-secondary); max-width: 56ch; }
.cta-band .btn-row { margin-top: var(--space-10); }
.cta-note { margin-top: var(--space-6); margin-inline: auto; }

/* ---------- Footer ---------- */
/* No rule between the last section and the footer. */
.site-footer { background: var(--bg-900); padding-block: var(--space-8) var(--space-10); position: relative; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--space-10) var(--space-8); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-4); max-width: 36ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; color: var(--text-primary); margin-bottom: var(--space-4); letter-spacing: 0; }
.footer-col a { display: block; padding: 6px 0; font-size: var(--fs-small); color: var(--text-muted); }
.footer-col a:hover { color: var(--text-primary); }
.newsletter { margin-top: var(--space-8); display: flex; gap: var(--space-2); max-width: 420px; flex-wrap: wrap; }
.newsletter .input { flex: 1 1 200px; border-radius: var(--radius-pill); padding-inline: var(--space-5); min-height: 40px; height: 40px; }
.newsletter .btn { height: 40px; }
.newsletter [data-form-note] { flex-basis: 100%; }
.footer-bottom { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; font-size: var(--fs-small); color: var(--text-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-left: auto; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-primary); }
.status-dot { display: inline-flex; align-items: center; gap: var(--space-2); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
@media (max-width: 640px) { .footer-bottom nav { margin-left: 0; } }

/* ---------- Reveal motion ---------- */
/* Gated on .js so the page is fully legible if scripts fail or are blocked. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--dur-reveal) var(--ease-out) var(--d, 0ms),
    transform var(--dur-reveal) var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-duration: 820ms; }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-nav, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap { border-color: #ccc; background: #fff; }
  h1, h2, h3, h4 { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .spark i { animation: none; transform: none; opacity: 1; }
  .ld-flow { animation: none; }
}

/* ---------- Bento details (home) ---------- */
.card .bento-figure { font-family: var(--font-display); font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); font-weight: 500; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1; margin-bottom: var(--space-6); }
.card .bento-figure span { font-size: .38em; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-6); }
.chain li { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-secondary); padding: 4px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-2); }
.chain li + li::before { content: "→"; color: var(--text-faint-aa); margin: 0 10px 0 -2px; }
.chain li + li { border: 0; background: none; padding-left: 0; }
.chain li:last-child { color: var(--accent-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-6); }
.tag-row li { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-secondary); padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--surface-2); }
.card .log-line { margin-top: auto; padding-top: var(--space-6); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); max-width: none; }
.log-line b { color: var(--accent-2); font-weight: 500; margin-right: 6px; }
.log-line span { color: var(--accent-hover); }
/* Plan descriptions reserve two lines so prices line up across tiers */
.tier h3 + p { min-height: 3.2em; margin-bottom: var(--space-6); }
.tier .amount.mt-6 { margin-top: 0; }
.hero-split:has(form) { align-items: start; }
