/* ============================================================
   AI Leap, Design System
   Source of truth: DESIGN.md · .impeccable/design.json
   North Star: "The Engineering Ledger"
   Extracted from homepage-redesign.html, link this file on
   every page instead of re-declaring these rules inline.
   ============================================================ */

:root {
  /* Frontier Violet (from the logo mark) */
  --violet-700: oklch(48% 0.20 278);
  --violet-600: oklch(55% 0.22 278);
  --violet-500: oklch(62% 0.20 278);
  --violet-400: oklch(72% 0.16 278);
  --violet-200: oklch(88% 0.075 280);
  --violet-100: oklch(94.5% 0.04 280);
  --violet-50:  oklch(97% 0.022 281);

  /* neutrals, genuinely tinted toward brand hue so the page reads as
     considered violet-warm paper, not stark white. Hue warmed 278→281. */
  --bg:         oklch(97.6% 0.012 282);
  --surface:    oklch(99.3% 0.005 282);
  --surface-2:  oklch(95.2% 0.019 282);
  --surface-3:  oklch(92.6% 0.032 281);
  --ink:        oklch(23% 0.026 278);
  --ink-2:      oklch(40% 0.024 278);
  --ink-3:      oklch(44% 0.024 278);
  --border:     oklch(90% 0.016 281);
  --border-2:   oklch(83.5% 0.026 281);

  /* Ledger Night, the one reserved dark band (proof sections, footer) */
  --night:      oklch(22% 0.045 280);
  --night-2:    oklch(27% 0.055 280);
  --night-ink:  oklch(96% 0.008 278);
  --night-ink2: oklch(74% 0.024 280);
  --night-line: oklch(38% 0.05 280);

  --shadow-sm: 0 1px 2px oklch(35% 0.10 278 / .08), 0 1px 1px oklch(35% 0.10 278 / .05);
  --shadow-md: 0 16px 34px -14px oklch(42% 0.14 278 / .24), 0 5px 14px -6px oklch(42% 0.12 278 / .15);
  --shadow-lg: 0 46px 92px -34px oklch(45% 0.18 278 / .38);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --step-fluid-display: clamp(2.65rem, 1.6rem + 4.6vw, 5.1rem);
  --step-fluid-h2:      clamp(1.95rem, 1.4rem + 2.4vw, 3.15rem);
  --step-fluid-h3:      clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
h1, h2, h3, h4 { margin: 0; font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   FOCUS, one branded ring everywhere. Never remove without replacement.
   ============================================================ */
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--violet-600); outline-offset: 3px; border-radius: 4px;
}
/* On dark or saturated surfaces, swap to the violet-on-dark token */
.proof a:focus-visible, .foot a:focus-visible,
.btn--onnight:focus-visible, .btn--ghost-night:focus-visible,
.cta a:focus-visible { outline-color: var(--violet-400); }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 8vw, 8rem); }

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-600);
}
.kicker--muted { color: var(--ink-3); }
/* On the dark ledger band, kickers switch to the violet-on-dark token */
.proof .kicker { color: var(--violet-400); }

.eyebrow-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.eyebrow-row .rule { flex: 0 0 2.4rem; height: 1px; background: var(--violet-400); }

.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: inherit; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 0.85rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease-out-expo), background-color .25s, box-shadow .35s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.975); transition-duration: .09s; }
.btn .arw { transition: transform .35s var(--ease-out-expo); }
.btn:hover .arw { transform: translate(3px, -3px); }

.btn--primary { background: var(--violet-600); color: oklch(99% 0.01 278); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--violet-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* on-dark variants: use only inside .proof / .foot / .cta (ledger-night or drenched-violet surfaces) */
.btn--onnight { background: oklch(99% 0.01 278); color: var(--night); }
.btn--onnight:hover { background: var(--violet-400); transform: translateY(-2px); }
.btn--ghost-night { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.btn--ghost-night:hover { border-color: var(--night-ink); transform: translateY(-2px); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--violet-600); font-size: 0.98rem;
  border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .25s, gap .3s var(--ease-out-expo);
}
.textlink:hover { border-color: var(--violet-500); gap: 0.65rem; }

/* ============================================================
   ROW-LIST, the system's default answer to "how do we show a
   list of things," used ahead of card grids. Two variants:
   light-surface (.row) and ledger-night (.ledger-row).
   ============================================================ */
.row-list { display: flex; flex-direction: column; }
.row {
  position: relative;
  display: grid; grid-template-columns: 4.5rem minmax(0,1fr) minmax(0, 0.9fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: start;
  padding-block: 2.1rem; border-top: 1px solid var(--border);
  transition: background-color .3s;
}
.row:last-child { border-bottom: 1px solid var(--border); }
.row:hover { background: var(--surface-2); }
.row__no { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--violet-600); font-weight: 600; padding-top: 0.35rem; }
.row__name { display: flex; flex-direction: column; gap: 0.5rem; }
.row__name h3 { font-size: var(--step-fluid-h3); }
.row__meta { display: flex; gap: 0.9rem; flex-wrap: wrap; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.row__desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.row__go { padding-top: 0.35rem; }
.row__go a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--ink); transition: transform .35s var(--ease-out-expo), background-color .25s, color .25s, border-color .25s; }
.row__go a::after { content: ""; position: absolute; inset: 0; } /* stretched-link: whole row is one focus/click target */
.row:hover .row__go a { background: var(--violet-600); color: oklch(99% 0.01 278); border-color: var(--violet-600); transform: translate(2px,-2px); }

.ledger-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.3fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding-block: 1.6rem; border-top: 1px solid var(--night-line);
}
.ledger-row:last-child { border-bottom: 1px solid var(--night-line); }
.ledger-row__client { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.ledger-row__client span { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-ink2); font-weight: 400; margin-top: 0.25rem; }
.ledger-row__metric { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--violet-400); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; min-width: 5ch; }
.ledger-row__ctx { color: var(--night-ink2); font-size: 0.96rem; line-height: 1.6; letter-spacing: 0.01em; }

/* ============================================================
   CARD, used sparingly (why-items). Not the default list
   affordance; see ROW-LIST above for enumerable content.
   ============================================================ */
.card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.5rem 1.5rem;
  background: linear-gradient(158deg, var(--surface), var(--violet-50));
  border: 1px solid var(--violet-200); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out-expo), box-shadow .4s, border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--violet-400); }
.card__ic { width: 46px; height: 46px; border-radius: 11px; background: var(--violet-100); color: var(--violet-600); display: grid; place-items: center; flex: none; }
.card__ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* ============================================================
   ARTICLE TILE (editorial list)
   ============================================================ */
.tilelist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.tile {
  background: var(--surface); padding: 1.8rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.8rem; min-height: 15rem;
  transition: background-color .3s;
}
.tile:hover { background: var(--surface-2); }
.tile__cat { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-600); }
.tile h3 { font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.015em; }
.tile p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.tile__more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap .3s var(--ease-out-expo), color .2s; }
.tile:hover .tile__more { color: var(--violet-600); gap: 0.6rem; }

/* ============================================================
   ACCORDION (FAQ, or any progressive-disclosure list)
   ============================================================ */
.accordion-list { border-top: 1px solid var(--border); }
.accordion { border-bottom: 1px solid var(--border); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.4rem 0; display: flex; align-items: center; gap: 1rem;
  font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion__ico { margin-left: auto; flex: none; width: 26px; height: 26px; position: relative; transition: transform .4s var(--ease-out-expo); }
.accordion__ico::before, .accordion__ico::after { content:""; position: absolute; background: var(--violet-600); border-radius: 2px; }
.accordion__ico::before { top: 12px; left: 4px; width: 18px; height: 2px; }
.accordion__ico::after { top: 3px; left: 12px; width: 2px; height: 20px; transition: transform .4s var(--ease-out-expo); }
.accordion[open] .accordion__ico::after { transform: scaleY(0); }
/* grid-template-rows 0fr->1fr: no per-frame layout read/write, unlike animating height */
.accordion__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .42s var(--ease-out-expo); }
.accordion__body > * { overflow: hidden; min-height: 0; }
.accordion__body p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; padding-bottom: 1.5rem; max-width: 66ch; }

/* ============================================================
   REVEAL, scroll-triggered entrance. JS toggles .in; the
   prefers-reduced-motion block below is the required fallback.
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   SITE CHROME, shared nav + footer, duplicated as HTML per page
   but styled once here. Link this file on every page.
   ============================================================ */

/* --- NAV --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: oklch(97.6% 0.012 282 / 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.brand__logo { height: 42px; width: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark--img { width: auto; height: 32px; }
.brand__leap { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
/* min-height 24px meets WCAG 2.2 SC 2.5.8 without changing the visual rhythm */
.nav__links > a, .nav__top { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); transition: color .2s; display: inline-flex; align-items: center; min-height: 24px; gap: 0.28rem; cursor: pointer; }
.nav__links > a:hover, .nav__top:hover { color: var(--ink); }
.nav__item { position: relative; }
.nav__item .caret { width: 10px; height: 10px; transition: transform .25s var(--ease-out-expo); opacity: 0.7; }
.nav__item:hover .caret, .nav__item:focus-within .caret { transform: rotate(180deg); }
/* hover bridge so the dropdown doesn't drop on the gap */
.nav__item::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav__drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 232px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  box-shadow: var(--shadow-md); padding: 0.5rem; display: grid; gap: 2px; z-index: 70;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .28s var(--ease-out-expo), visibility .2s;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__drop a { display: block; padding: 0.55rem 0.75rem; border-radius: 9px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav__drop a:hover { background: var(--violet-50); color: var(--violet-700); }
.nav__drop a b { display: block; font-weight: 600; color: var(--ink); }
.nav__drop a:hover b { color: var(--violet-700); }
.nav__drop a span { font-size: 0.78rem; color: var(--ink-3); }
/* mobile menu section headers + sub-links */
.mm-head { display: block; margin-top: 0.9rem; padding: 0.3rem 0; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.mm-head:first-child { margin-top: 0; }
.nav__right { display: flex; align-items: center; gap: 1.1rem; }
.nav__phone { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--ink-2); font-weight: 500; }
.nav__right .btn--primary { padding: 0.5rem 1.05rem; font-size: 0.9rem; border-radius: 9px; }
.nav__right .btn--primary .arw { width: 13px; height: 13px; }
.nav__toggle { display: none; }
.mobilemenu { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px;
    background: transparent; border: 1px solid var(--border-2); cursor: pointer;
  }
  .nav__toggle span { width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav__toggle span::before, .nav__toggle span::after { content:""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
  .mobilemenu.open { display: block; border-top: 1px solid var(--border); background: var(--surface); }
  .mobilemenu ul { padding: 1rem var(--gutter) 1.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
  .mobilemenu a { padding: 0.7rem 0; font-weight: 600; border-bottom: 1px solid var(--border); }
  .mobilemenu .btn { margin-top: 0.8rem; width: 100%; justify-content: center; }
}

/* --- SECTION HEADER helper (interior pages) --- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head h2 { font-size: var(--step-fluid-h2); }
.section-head .lead { margin-top: 1.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow-row { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* feature grid, 2-up card grid used across service / use-case / about pages */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .feature-grid--3, .feature-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid, .feature-grid--3, .feature-grid--4 { grid-template-columns: 1fr; } }

/* --- PAGE HERO / breadcrumb (interior pages) --- */
.page-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3.25rem);
  background:
    radial-gradient(52% 60% at 88% -10%, oklch(70% 0.17 296 / .16), transparent 62%),
    radial-gradient(46% 52% at 4% 0%, oklch(80% 0.12 272 / .22), transparent 58%),
    linear-gradient(180deg, oklch(95.6% 0.028 283), var(--bg) 78%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 1.1rem; }
.crumbs a { color: var(--ink-3); transition: color .2s; }
.crumbs a:hover { color: var(--violet-600); }
.crumbs span[aria-current] { color: var(--violet-600); }
.crumbs .sep { opacity: 0.5; }
.page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: -0.03em; max-width: 20ch; }
.page-hero h1 .accent, .section-head h1 .accent, h1 .accent, h2 .accent { color: var(--violet-600); }
.page-hero .lead { margin-top: 1.2rem; }
/* split hero: copy + related SVG figure */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero__grid h1 { max-width: 16ch; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__grid .hero-figure { max-width: 460px; } }

/* --- HERO FIGURE, the per-page related SVG panel --- */
.hero-figure {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--violet-50));
  border: 1px solid var(--violet-200); box-shadow: var(--shadow-md);
  padding: clamp(1.1rem, 3vw, 1.7rem);
}
.hero-figure::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 75% at 88% -10%, oklch(72% 0.16 278 / .14), transparent 55%); }
.hero-figure svg { position: relative; width: 100%; height: auto; display: block; }
.hero-figure__tag { position: relative; display: block; margin-bottom: 0.9rem; font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
/* shared schematic vocabulary for every page's figure */
.fig-node rect, .fig-node circle, .fig-node ellipse { fill: var(--violet-50); stroke: var(--violet-400); stroke-width: 1.25; transition: fill .5s var(--ease-out-expo), stroke .5s; }
.fig-node--solid rect, .fig-node--solid circle, .fig-node--solid ellipse { fill: var(--night); stroke: var(--violet-500); }
.fig-label { fill: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-weight: 600; font-size: 12px; text-anchor: middle; }
.fig-label--on { fill: var(--night-ink); }
.fig-sub { fill: var(--ink-3); font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: 0.03em; text-anchor: middle; }
.fig-edge { fill: none; stroke: var(--violet-400); stroke-width: 1.4; stroke-linecap: round; }
.fig-edge--soft { stroke: var(--border-2); }
.fig-edge--dashed { stroke: var(--violet-400); stroke-dasharray: 4 4; opacity: 0.75; }
.fig-dot { fill: var(--violet-500); }
.fig-col { fill: var(--ink-3); font-family: "JetBrains Mono", monospace; font-size: 8.5px; letter-spacing: 0.12em; text-anchor: middle; }
.fig-cluster { fill: var(--violet-500); opacity: 0.04; }
.fig-note { fill: var(--ink-3); font-family: "JetBrains Mono", monospace; font-size: 8px; }
.fig-note--on { fill: var(--violet-600); }
.fig-packet { fill: var(--violet-500); opacity: 0; }
/* animated variant, site.js sets data-anim only when motion is allowed;
   base (no attribute) is the settled, fully-drawn state (reduced-motion). */
.hero-figure[data-anim] .fig-node { opacity: 0.4; transition: opacity .55s var(--ease-out-expo); }
.hero-figure[data-anim] .fig-node.on { opacity: 1; }
.hero-figure[data-anim] .fig-node--solid rect, .hero-figure[data-anim] .fig-node--solid circle, .hero-figure[data-anim] .fig-node--solid ellipse { fill: var(--surface-2); stroke: var(--border-2); }
.hero-figure[data-anim] .fig-node--solid.on rect, .hero-figure[data-anim] .fig-node--solid.on circle, .hero-figure[data-anim] .fig-node--solid.on ellipse { fill: var(--night); stroke: var(--violet-500); }
.hero-figure[data-anim] .fig-edge { stroke-dasharray: 1; stroke-dashoffset: 1; stroke: var(--border-2); transition: stroke-dashoffset .6s var(--ease-out-expo), stroke .6s; }
.hero-figure[data-anim] .fig-edge.on { stroke-dashoffset: 0; stroke: var(--violet-400); }
.hero-figure[data-anim] .fig-edge--dashed { opacity: 0.75; }
.hero-figure[data-anim] .fig-packet { opacity: 1; animation: flow 2.6s var(--ease-out-quart) infinite; }
@keyframes flow { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* --- FORMS --- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 0.8rem 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 0.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px oklch(62% 0.20 278 / .16);
}
.form__note { font-size: 0.82rem; color: var(--ink-3); }
.form__status { font-size: 0.92rem; padding: 0.7rem 0.9rem; border-radius: 9px; display: none; }
.form__status.is-ok { display: block; background: var(--violet-50); color: var(--violet-700); border: 1px solid var(--violet-200); }
.form__status.is-err { display: block; background: oklch(94% 0.05 25); color: oklch(45% 0.16 25); border: 1px solid oklch(85% 0.09 25); }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

/* --- FOOTER --- */
.foot { background: var(--night); color: var(--night-ink); padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; border-bottom: 1px solid var(--night-line); }
.foot__brand .brand__leap { color: var(--night-ink); }
.foot__brand p { color: var(--night-ink2); font-size: 0.92rem; margin-top: 1.1rem; max-width: 34ch; line-height: 1.62; letter-spacing: 0.01em; }
.foot__contact { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; font-family: "JetBrains Mono", monospace; font-size: 0.82rem; color: var(--night-ink2); }
.foot__contact a:hover { color: var(--violet-400); }
.foot__col h3, .foot__col h4 { font-size: 0.78rem; font-family: "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-ink2); font-weight: 500; margin-bottom: 1rem; }
.foot__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.foot__col a { display: inline-flex; align-items: center; min-height: 24px; font-size: 0.92rem; color: var(--night-ink); opacity: 0.82; transition: opacity .2s, color .2s; }
.foot__col a:hover { opacity: 1; color: var(--violet-400); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: 0.82rem; color: var(--night-ink2); }
.foot__bottom .badges { display: flex; gap: 1.2rem; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: 0.05em; }
.foot__bottom .badges span { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--violet-400); }
.foot__bottom .badges span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-400); flex: none; }

/* --- CLOSING CTA BAND (reusable across pages) --- */
.cta { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.cta__card {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(142deg, var(--violet-700), var(--violet-600) 52%, oklch(52% 0.22 292));
  color: oklch(99% 0.01 278); padding: clamp(2.5rem, 6vw, 5rem); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 2rem; align-items: center;
}
.cta__card::before { content:""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 120% at 100% 0%, oklch(75% 0.16 288 / .55), transparent 55%),
    radial-gradient(70% 100% at 0% 120%, oklch(58% 0.20 268 / .45), transparent 58%); }
.cta__card > * { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); letter-spacing: -0.03em; }
.cta p { margin-top: 1rem; color: oklch(97% 0.02 278); font-size: 1.1rem; line-height: 1.6; letter-spacing: 0.01em; max-width: 40ch; }
.cta__actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: start; }
.cta__actions .btn { width: 100%; justify-content: center; }
.cta__note { font-family: "JetBrains Mono", monospace; font-size: 0.76rem; letter-spacing: 0.05em; color: oklch(96% 0.02 278); text-align: center; width: 100%; }

@media (max-width: 980px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .cta__card { grid-template-columns: 1fr; }
  .cta__actions .btn { width: auto; }
}
@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLE, 2-col prose body + sticky sidebar (TOC / related / tags)
   ============================================================ */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article-grid > * { min-width: 0; } /* let wide tables/code scroll inside their overflow wrappers instead of blowing out the grid track */
@media (max-width: 940px) { .article-grid { grid-template-columns: 1fr; } .article__aside { display: none; } }
.article__body { max-width: 72ch; }
.article__body > * + * { margin-top: 1.15rem; }
.article__body h2 { font-size: var(--step-fluid-h3); margin-top: 2.4rem; letter-spacing: -0.02em; }
.article__body h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.article__body p, .article__body li { color: var(--ink-2); line-height: 1.7; }
.article__body ul, .article__body ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.article__body li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body a { color: var(--violet-600); border-bottom: 1px solid transparent; }
.article__body a:hover { border-color: var(--violet-500); }
.article__body img { border-radius: 14px; border: 1px solid var(--border); margin-block: 1.6rem; width: 100%; }
.article__body strong { color: var(--ink); font-weight: 700; }
.article__body blockquote { border-left: none; margin: 1.6rem 0; padding: 1.2rem 1.4rem; background: var(--violet-50); border-radius: 12px; color: var(--ink); font-size: 1.1rem; }
.meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-block: 1.3rem; font-family: "JetBrains Mono", monospace; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-3); }
.meta-bar .cat { color: var(--violet-600); }
.article__aside { align-self: stretch; }
.aside-card { position: sticky; top: 96px; display: grid; gap: 1.4rem; }
.toc, .aside-widget { border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; background: var(--surface); }
.toc h3, .toc h4, .aside-widget h3, .aside-widget h4 { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.85rem; }
.toc ul { display: grid; gap: 0.55rem; }
.toc a { font-size: 0.92rem; color: var(--ink-2); }
.toc a:hover { color: var(--violet-600); }
.aside-widget ul { display: grid; gap: 0.7rem; }
.aside-widget a { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.aside-widget a:hover { color: var(--violet-600); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; padding: 0.3rem 0.65rem; border-radius: 7px; background: var(--violet-50); color: var(--violet-700); border: 1px solid var(--violet-200); }
.stat-strip { display: flex; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2.6rem); margin-block: 1.8rem; padding: 1.4rem 0; border-block: 1px solid var(--border); }
.stat-strip .stat b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-strip .stat span { font-family: "JetBrains Mono", monospace; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* --- ANSWER CARD, article hero motif: title-as-question + typed answer.
   Relevant to the article, animated, and NOT a workflow diagram. --- */
.answer-card { display: grid; gap: 0.9rem; align-content: start; }
.ac__row { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.ac__tag { font-family: "JetBrains Mono", monospace; font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.22rem 0.45rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-3); margin-top: 0.2rem; white-space: nowrap; }
.ac__tag--v { background: var(--violet-600); color: oklch(99% 0.01 278); }
.ac__q p { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.32; }
.ac__a p { font-size: 0.96rem; color: var(--ink-2); line-height: 1.6; min-height: 4.8em; }
.ac__type.ac-typing::after { content: "▋"; color: var(--violet-500); margin-left: 1px; animation: ac-blink 1s step-end infinite; }
@keyframes ac-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.ac__foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; padding-top: 0.85rem; border-top: 1px solid var(--border); font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--ink-3); }
.ac__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-500); flex: none; }

/* ============================================================
   ARTICLE CONTENT COMPONENTS, used inside .article__body to make
   long posts scannable. Shared across all article pages.
   ============================================================ */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--violet-500), var(--violet-700)); z-index: 80; transition: width .12s linear; }
.toc a.active { color: var(--violet-700); font-weight: 700; }

/* case / example card */
.case { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: clamp(1.2rem, 3vw, 1.7rem); margin-block: 1.1rem; box-shadow: var(--shadow-sm); }
.case__head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.case__ic { font-size: 1.7rem; line-height: 1; }
.case__ind { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.case__co { color: var(--ink-3); font-family: "JetBrains Mono", monospace; font-size: 0.72rem; margin-top: 0.25rem; }
.case__nums { margin-left: auto; display: flex; gap: 1.3rem; }
.case__num b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--violet-600); line-height: 1; font-variant-numeric: tabular-nums; }
.case__num span { font-family: "JetBrains Mono", monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.1rem; }
.case__lbl { font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; }
.case__grid ul { margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.case__grid li { list-style: none; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; padding-left: 1.1rem; position: relative; }
.case__grid li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-400); }
.case__savings li { display: flex; justify-content: space-between; gap: 0.8rem; padding-left: 0; }
.case__savings li::before { display: none; }
.case__savings b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.case__foot { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.chip { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; padding: 0.32rem 0.7rem; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.chip--v { background: var(--violet-50); color: var(--violet-700); border: 1px solid var(--violet-200); }
@media (max-width: 620px) { .case__grid { grid-template-columns: 1fr; } .case__nums { width: 100%; margin-left: 0; } }

/* phased timeline (steps / phases) */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.4rem; }
.phases--2 { grid-template-columns: repeat(2, 1fr); }
.phases--4 { grid-template-columns: repeat(4, 1fr); }
.phase { border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; background: linear-gradient(180deg, var(--surface), var(--violet-50)); }
.phase__no { font-family: "JetBrains Mono", monospace; font-weight: 600; color: var(--violet-600); font-size: 0.85rem; }
.phase__when { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.2rem; }
.phase h3 { margin: 0.6rem 0 0.7rem; font-size: 1.05rem; }
.phase ul { margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.phase li { list-style: none; font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; padding-left: 1rem; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 4px; height: 4px; border-radius: 50%; background: var(--violet-400); }
@media (max-width: 760px) { .phases, .phases--2, .phases--4 { grid-template-columns: 1fr; } }

/* do / avoid callouts */
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.4rem; }
.callout { border-radius: 14px; padding: 1.4rem; border: 1px solid var(--border); }
.callout h3 { margin: 0 0 0.9rem; font-size: 1.05rem; }
.callout ul { margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.callout li { list-style: none; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; padding-left: 1.5rem; position: relative; }
.callout__sub { font-family: "JetBrains Mono", monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 1rem 0 0.5rem; }
.callout__sub:first-of-type { margin-top: 0; }
.callout--do { background: var(--violet-50); border-color: var(--violet-200); }
.callout--do li::before { content: "\2713"; position: absolute; left: 0; color: var(--violet-600); font-weight: 700; }
.callout--avoid { background: oklch(97% 0.02 25); border-color: oklch(88% 0.06 25); }
.callout--avoid li::before { content: "\2715"; position: absolute; left: 0; color: oklch(55% 0.19 25); font-weight: 700; }
@media (max-width: 760px) { .callouts { grid-template-columns: 1fr; } }

/* metric / info cards grid */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.4rem; }
.metrics-grid--3 { grid-template-columns: repeat(3, 1fr); }
.metric-card { border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; background: var(--surface); }
.metric-card h3 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.metric-card ul { margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.metric-card li { list-style: none; font-size: 0.9rem; color: var(--ink-2); padding-left: 1.1rem; position: relative; }
.metric-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-400); }
@media (max-width: 760px) { .metrics-grid, .metrics-grid--3 { grid-template-columns: 1fr; } }

/* callout / key-takeaway strip */
.keybox { border: 1px solid var(--violet-200); background: var(--violet-50); border-radius: 14px; padding: 1.3rem 1.5rem; margin-block: 1.4rem; }
.keybox h2, .keybox h3 { margin: 0 0 0.7rem; font-size: 1rem; }
.keybox ul { margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.keybox li { list-style: none; font-size: 0.95rem; color: var(--ink); padding-left: 1.4rem; position: relative; line-height: 1.45; }
.keybox li::before { content: "\2192"; position: absolute; left: 0; color: var(--violet-600); font-weight: 700; }

/* styled data table inside articles */
.article__body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-block: 0.6rem; }
.article__body thead th { text-align: left; font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 0.7rem 0.8rem; border-bottom: 2px solid var(--border-2); }
.article__body tbody td { padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.article__body tbody tr:hover { background: var(--violet-50); }
.article__body tbody td:first-child { color: var(--ink); font-weight: 600; }

/* code blocks + inline code inside articles */
.article__body pre { background: var(--night); color: var(--night-ink); border-radius: 12px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; margin-block: 1.2rem; }
.article__body pre code { font-family: "JetBrains Mono", monospace; background: none; color: inherit; padding: 0; }
.article__body :not(pre) > code { font-family: "JetBrains Mono", monospace; font-size: 0.88em; background: var(--violet-50); color: var(--violet-700); padding: 0.1rem 0.35rem; border-radius: 5px; }

/* ============================================================
   KEY FACTS (answer-engine definition list)
   ============================================================ */
.keyfacts {
  margin: 1.6rem 0 0; padding: 1.1rem 1.3rem;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--violet-50);
  display: grid; gap: 0.7rem;
}
.keyfacts__row { display: grid; grid-template-columns: minmax(7.5rem, 9rem) 1fr; gap: 0.9rem; align-items: start; }
.keyfacts dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; padding-top: 0.15rem;
}
.keyfacts dd { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 640px) {
  .keyfacts__row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ============================================================
   FAQ layout (shared: homepage + service/use-case pages)
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__aside h2 { font-size: var(--step-fluid-h2); margin-top: 1.1rem; }
.faq__aside p { color: var(--ink-2); margin-top: 1.2rem; max-width: 34ch; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
}
