/*! Sentire v3 — sentire.css · tokens + components · follows the system theme (html[data-theme="light"|"dark"]) */

/* ---------- fonts (Newsreader, Geist, Geist Mono — SIL Open Font License) ---------- */
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-opsz-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- tokens ----------
   Three layers. 1 · Primitives (this :root block): the six brand colours from the brand direction,
   plus the derived palette steps the themes need. These are the only hex values in the system.
   2 · Semantic (the two theme blocks): what a colour is for. Both blocks declare every name, so a
   nested data-theme region resolves correctly. 3 · Component: --control-*, --method-*. */
:root {
  /* brand — "Sentire · Guia estratégico da nova fase", p. 11 */
  --graphite: #2a2d33;      /* primária · cinza grafite: intelecto afiado */
  --bordo: #7a2e3a;         /* apoio 1 · bordô: tradição e sabedoria */
  --light-blue: #b5d3ea;    /* apoio 2 · azul claro: clareza e leveza */
  --matte-black: #17181b;   /* preto fosco */
  --mid-graphite: #4b5058;  /* grafite médio */
  --off-white: #f2f2f0;     /* off-white */
  /* palette — derived steps between and around the brand colours */
  --gray-950: #111215;
  --gray-900: #202227;
  --gray-800: #2f3238;
  --gray-600: #5f646c;
  --gray-500: #6c717a;
  --gray-400: #7c8088;
  --gray-300: #959aa2;
  --gray-200: #b3b6bc;
  --gray-100: #d8d8d3;
  --gray-50: #e7e7e3;
  --gray-25: #fafaf8;
  --white: #ffffff;
  --bordo-900: #2c1b20;
  --bordo-300: #e4949f;
  --bordo-100: #f1e3e5;
  --blue-900: #1c2732;
  --blue-700: #2c5677;
  --blue-100: #e1edf6;
  /* scales */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --layout-container: 1280px;
  --layout-columns: 12;
  --layout-gutter: 24px;
  --layout-nav-height: 64px;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 480ms;
  --duration-draw: 2400ms;
  --duration-blink: 1060ms;
  --ease-standard: cubic-bezier(.2,0,0,1);
  --font-display: Newsreader, Georgia, "Times New Roman", serif;
  --font-sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* component */
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --method-feel: var(--graphite);
  --method-understand: var(--mid-graphite);
  --method-solve: var(--gray-600);
  --method-evolve: var(--bordo);
  --method-on: var(--off-white);
}
:root, [data-theme="dark"] {
  --surface: var(--matte-black);
  --surface-sunken: var(--gray-950);
  --surface-raised: var(--gray-900);
  --surface-overlay: var(--graphite);
  --surface-inverse: var(--off-white);
  --line: var(--gray-800);
  --line-strong: var(--gray-500);
  --ink: var(--off-white);
  --ink-muted: var(--gray-200);
  --ink-subtle: var(--gray-300);
  --ink-inverse: var(--matte-black);
  --action: var(--off-white);
  --on-action: var(--matte-black);
  --action-hover: var(--light-blue);
  --on-action-hover: var(--matte-black);
  --emphasis: var(--light-blue);
  --accent: var(--bordo);
  --on-accent: var(--off-white);
  --accent-text: var(--bordo-300);
  --accent-soft: var(--bordo-900);
  --clarity: var(--light-blue);
  --on-clarity: var(--matte-black);
  --clarity-text: var(--light-blue);
  --clarity-soft: var(--blue-900);
  --focus-ring: var(--light-blue);
  --link: var(--emphasis);
  --status-ok: var(--clarity-text);
  --status-alert: var(--accent-text);
  --status-info: var(--clarity-text);
  --shadow-overlay: 0 12px 32px rgba(0,0,0,0.55), 0 0 0 1px var(--line);
}
[data-theme="light"] {
  --surface: var(--off-white);
  --surface-sunken: var(--gray-50);
  --surface-raised: var(--gray-25);
  --surface-overlay: var(--white);
  --surface-inverse: var(--matte-black);
  --line: var(--gray-100);
  --line-strong: var(--gray-400);
  --ink: var(--graphite);
  --ink-muted: var(--mid-graphite);
  --ink-subtle: var(--gray-600);
  --ink-inverse: var(--off-white);
  --action: var(--graphite);
  --on-action: var(--off-white);
  --action-hover: var(--bordo);
  --on-action-hover: var(--off-white);
  --emphasis: var(--bordo);
  --accent: var(--bordo);
  --on-accent: var(--off-white);
  --accent-text: var(--bordo);
  --accent-soft: var(--bordo-100);
  --clarity: var(--light-blue);
  --on-clarity: var(--matte-black);
  --clarity-text: var(--blue-700);
  --clarity-soft: var(--blue-100);
  --focus-ring: var(--blue-700);
  --link: var(--emphasis);
  --status-ok: var(--clarity-text);
  --status-alert: var(--accent-text);
  --status-info: var(--clarity-text);
  --shadow-overlay: 0 12px 32px rgba(23,24,27,0.14), 0 0 0 1px var(--line);
}

/* Sentire v3 — vanilla component styles. Colours, spacing, radii, timing and fonts come from the
   tokens above; component-specific sizes (font sizes, max-widths) are written inline. Every class
   is prefixed st-. No framework required. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
html[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { max-width: 100%; }
::selection { background: var(--clarity); color: var(--on-clarity); }
[data-theme] { color: var(--ink); }
.st-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-6); }
.st-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }
/* page-level theme switches: they read <html>, so put whole-theme artwork (logos) behind them */
html[data-theme="light"] .st-only-dark, html:not([data-theme="light"]) .st-only-light { display: none !important; }
.st-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.st-skip { position: absolute; left: var(--space-4); top: -48px; z-index: 100; background: var(--action); color: var(--on-action); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; }
.st-skip:focus-visible { top: var(--space-4); }
html[lang^="pt"] [data-lang="en"], html[lang^="en"] [data-lang="pt"] { display: none !important; }

/* focus — one ring for everything */
.st-skip:focus-visible, .st-btn:focus-visible, .st-icon-btn:focus-visible, .st-seg button:focus-visible, .st-field input:focus-visible, .st-field textarea:focus-visible, .st-field select:focus-visible, .st-card:focus-visible, .st-nav a:focus-visible, .st-nav-toggle:focus-visible, .st-link:focus-visible, .st-footer a:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}

/* ---------- layout ---------- */
.st-container { width: 100%; max-width: calc(var(--layout-container) + 2 * var(--space-6)); margin-inline: auto; padding-inline: var(--space-6); }
.st-section { position: relative; padding-block: var(--space-32); }
.st-section-sunken { background: var(--surface-sunken); }
/* a section that switches theme: <section class="st-section" data-theme="light"> re-themes everything inside */
.st-section[data-theme] { background: var(--surface); }
.st-section[data-theme].st-section-sunken { background: var(--surface-sunken); }
.st-section-head { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--space-12); }
.st-section-head > :not(.st-label) { max-width: 760px; }
.st-cols-2, .st-cols-3, .st-cols-4 { display: grid; gap: var(--space-4); }
.st-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: end; }
.st-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.st-divider { height: 1px; border: 0; background: var(--line); margin: 0; }

/* the stripe: the brand's vertical edge rule (emphasis colour: light blue on dark, bordô on light) */
.st-stripe { position: relative; }
.st-stripe::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--emphasis); pointer-events: none; }

/* backgrounds: a quiet column grid, faded; content after the layer is lifted above it */
.st-bg-grid { background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--layout-columns)) 100%; }
.st-bg-fade { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.st-bg-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.st-bg-layer ~ :not(.st-bg-layer) { position: relative; z-index: 1; }

/* ---------- type ---------- */
.st-display-xl, .st-display-lg, .st-h1, .st-h2, .st-h3, .st-numeral { font-family: var(--font-display); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.st-display-xl { font-size: clamp(44px, 8vw, 96px); line-height: 1; font-weight: 500; letter-spacing: -0.025em; }
.st-display-lg { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em; }
.st-h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; font-weight: 500; letter-spacing: -0.015em; }
.st-h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.st-h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.2px; }
.st-numeral { font-size: clamp(56px, 7vw, 88px); line-height: .95; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.st-lead { font-size: 19px; line-height: 30px; letter-spacing: -0.2px; color: var(--ink-muted); margin: 0; max-width: 60ch; text-wrap: pretty; }
.st-body { font-size: 16px; line-height: 26px; margin: 0; max-width: 64ch; }
.st-small { font-size: 14px; line-height: 22px; margin: 0; }
.st-eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; }
.st-code, .st-data { font-family: var(--font-mono); }
.st-code { font-size: 14px; line-height: 22px; }
.st-data { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .2px; }
.st-muted { color: var(--ink-muted); }
.st-subtle { color: var(--ink-subtle); }
.st-hl { color: var(--emphasis); }
.st-link { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.st-link:hover { text-decoration-thickness: 2px; }
code.st-inline { font-family: var(--font-mono); font-size: .9em; padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-sunken); border: 1px solid var(--line); }

/* ---------- Button ---------- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.1px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.st-btn-primary { background: var(--action); color: var(--on-action); }
.st-btn-primary:hover { background: var(--action-hover); color: var(--on-action-hover); }
.st-btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.st-btn-secondary:hover { border-color: var(--ink); background: var(--surface-raised); }
.st-btn-ghost { background: transparent; color: var(--ink); padding-inline: var(--space-2); }
.st-btn-ghost:hover { color: var(--emphasis); }
.st-btn-accent { background: var(--accent); color: var(--on-accent); }
.st-btn-accent:hover { background: var(--action); color: var(--on-action); }
.st-btn-sm { height: var(--control-sm); padding-inline: var(--space-3); font-size: 13px; }
.st-btn-lg { height: var(--control-lg); padding-inline: var(--space-6); font-size: 15px; }
.st-btn-ghost.st-btn-sm { padding-inline: var(--space-1); }
.st-btn-ghost.st-btn-lg { padding-inline: var(--space-3); }
.st-btn-block { width: 100%; }
.st-btn[disabled], .st-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.st-btn[disabled] { pointer-events: none; }
.st-arrow { flex: none; transition: transform var(--duration-base) var(--ease-standard); }
.st-btn:hover .st-arrow, .st-card:hover .st-arrow { transform: translateX(4px); }
.st-kbd { font-family: var(--font-mono); font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: var(--radius-xs); border: 1px solid currentColor; opacity: .7; }
.st-icon-btn { display: inline-grid; place-items: center; width: var(--control-md); height: var(--control-md); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.st-icon-btn:hover { border-color: var(--ink); background: var(--surface-raised); }
.st-icon-btn svg { width: 18px; height: 18px; }

/* ThemeToggle: shows the icon of the theme you'd switch TO (sun while dark, moon while light) */
.st-theme-toggle .st-i-moon { display: none; }
html[data-theme="light"] .st-theme-toggle .st-i-moon { display: block; }
html[data-theme="light"] .st-theme-toggle .st-i-sun { display: none; }

/* ---------- Tag ---------- */
.st-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-xs); font-family: var(--font-sans); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-muted); background: transparent; white-space: nowrap; }
.st-tag-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.st-tag-clarity { background: var(--clarity-soft); border-color: transparent; color: var(--clarity-text); }
.st-dot { width: 6px; height: 6px; border-radius: 1px; background: currentColor; flex: none; }
.st-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- SectionLabel ---------- */
.st-label { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.st-label-index { color: var(--emphasis); font-variant-numeric: tabular-nums; }
.st-label-rule { flex: 1; height: 1px; background: var(--line); min-width: var(--space-8); }

/* ---------- Card ---------- */
.st-card { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; transition: border-color var(--duration-fast) var(--ease-standard); min-height: 220px; }
a.st-card:hover { border-color: var(--line-strong); }
/* featured: the stripe, laid across the top */
.st-card-featured { background-image: linear-gradient(var(--emphasis), var(--emphasis)); background-size: 100% 3px; background-repeat: no-repeat; }
.st-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.st-card-icon { width: var(--control-md); height: var(--control-md); display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--emphasis); }
.st-card-icon svg { width: 20px; height: 20px; }
.st-card-index { font-family: var(--font-display); font-size: 20px; line-height: 20px; color: var(--ink-subtle); font-variant-numeric: lining-nums; }
.st-card-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.2px; }
.st-card-body { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); flex: 1; }
.st-card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-subtle); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.st-card-foot .st-arrow { color: var(--emphasis); }

/* corner ticks */
.st-ticks { position: relative; }
.st-ticks::before, .st-ticks::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--line-strong); border-style: solid; pointer-events: none; }
.st-ticks::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.st-ticks::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---------- Method: FEEL → UNDERSTAND → SOLVE → EVOLVE ---------- */
.st-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); counter-reset: st-step; list-style: none; margin: 0; padding: 0; }
.st-step { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; min-width: 0; }
.st-step-head { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-6) var(--space-6); background: var(--method-feel); color: var(--method-on); }
.st-step:nth-child(2) .st-step-head { background: var(--method-understand); }
.st-step:nth-child(3) .st-step-head { background: var(--method-solve); }
.st-step:nth-child(4) .st-step-head { background: var(--method-evolve); }
.st-step-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.st-step-num { font-family: var(--font-display); font-size: 28px; line-height: 1; font-weight: 400; font-variant-numeric: lining-nums; }
.st-step-pt { font-family: var(--font-display); font-size: 15px; line-height: 20px; opacity: .85; }
.st-step-name { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; }
.st-step-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.st-step-q { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 500; }
.st-step-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.st-step-list li { padding-left: var(--space-4); position: relative; }
.st-step-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--line-strong); }

/* the method line: chaos → clarity. Inline the SVG from assets/graphics/method-line.svg (made by
   tools/method_line.py) inside .st-ml, then the four labels as an ordered list. */
.st-ml { display: flex; flex-direction: column; gap: var(--space-4); }
.st-method-line { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink-muted); }
.st-method-line .st-ml-path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-method-line .st-ml-end { fill: var(--emphasis); }
.st-ml-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0 calc(40 / 1200 * 100%); list-style: none; } /* columns line up with the SVG's quarters */
.st-ml-steps li { border-left: 1px solid var(--line-strong); padding-left: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-subtle); min-width: 0; overflow-wrap: anywhere; }
.st-ml-steps li:last-child { color: var(--emphasis); }
/* drawn on scroll when sentire.js runs: put data-st-reveal on the .st-ml wrapper */
.st-js .st-ml[data-st-reveal] { opacity: 1; transform: none; }
.st-js .st-ml[data-st-reveal] .st-ml-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--duration-draw) var(--ease-standard); }
.st-js .st-ml[data-st-reveal] .st-ml-end, .st-js .st-ml[data-st-reveal] .st-ml-steps li { opacity: 0; transition: opacity var(--duration-slow) var(--ease-standard); }
.st-js .st-ml[data-st-reveal].is-in .st-ml-path { stroke-dashoffset: 0; }
.st-js .st-ml[data-st-reveal].is-in .st-ml-end, .st-js .st-ml[data-st-reveal].is-in .st-ml-steps li { opacity: 1; }
.st-js .st-ml[data-st-reveal].is-in .st-ml-steps li:nth-child(2) { transition-delay: 500ms; }
.st-js .st-ml[data-st-reveal].is-in .st-ml-steps li:nth-child(3) { transition-delay: 1100ms; }
.st-js .st-ml[data-st-reveal].is-in .st-ml-steps li:nth-child(4) { transition-delay: 1700ms; }
.st-js .st-ml[data-st-reveal].is-in .st-ml-end { transition-delay: 2200ms; }

/* ---------- Stat ---------- */
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-8); }
.st-stat { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); min-width: 180px; }
.st-stat-value { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 7vw, 88px); line-height: .95; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: baseline; gap: var(--space-1); font-variant-numeric: lining-nums tabular-nums; }
.st-stat-unit { font-family: var(--font-sans); font-size: 20px; letter-spacing: 0; color: var(--emphasis); font-weight: 500; }
.st-stat-accent .st-stat-unit { color: var(--accent-text); }
.st-stat-clarity .st-stat-unit { color: var(--clarity-text); }
.st-stat-label { font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---------- Terminal (the >_ mark, used sparingly: technical content only) ---------- */
.st-term { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 14px; line-height: 22px; color: var(--ink); min-width: 0; }
.st-term-bar { display: flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4); border-bottom: 1px solid var(--line); color: var(--ink-subtle); font-size: 12px; letter-spacing: .5px; }
.st-term-lights { display: flex; gap: 6px; margin-right: var(--space-2); }
.st-term-lights i { width: 8px; height: 8px; border-radius: 1px; background: var(--line-strong); }
.st-term-body { padding: var(--space-4); margin: 0; white-space: pre-wrap; overflow-x: auto; font: inherit; }
.st-term-line { display: block; min-height: 22px; }
.st-term-prompt { color: var(--emphasis); margin-right: var(--space-2); }
.st-term-muted { color: var(--ink-muted); }
.st-term-accent { color: var(--accent-text); }
.st-term-clarity { color: var(--clarity-text); }
.st-cursor { display: inline-block; width: 9px; height: 17px; vertical-align: -3px; margin-left: 2px; background: var(--emphasis); border-radius: 1px; animation: st-blink var(--duration-blink) steps(2, jump-none) infinite; }
.st-js .st-term[data-st-type] .st-term-line.is-pending { visibility: hidden; }
@keyframes st-blink { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Bento ---------- */
.st-bento { display: grid; gap: var(--space-2); grid-auto-rows: minmax(160px, auto); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-bento-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-span-2 { grid-column: span 2; }
.st-span-3 { grid-column: span 3; }
.st-span-4 { grid-column: span 4; }
.st-rows-2 { grid-row: span 2; }
.st-cell { position: relative; overflow: hidden; background: var(--surface-raised); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); color: var(--ink); }
.st-cell { border: 1px solid var(--line); }
.st-cell.st-ticks { overflow: visible; }
.st-cell-accent, .st-cell-clarity, .st-cell-inverse { border-color: transparent; }
/* coloured cells re-scope the tokens their content reads, so highlights, links, tags and hairlines stay legible */
.st-cell-accent { --ink: var(--on-accent); --ink-muted: var(--bordo-100); --ink-subtle: var(--bordo-100); --line: var(--bordo-300); --line-strong: var(--bordo-100); --emphasis: var(--light-blue); --link: var(--light-blue); }
.st-cell-clarity { --ink: var(--on-clarity); --ink-muted: var(--graphite); --ink-subtle: var(--mid-graphite); --line: var(--gray-400); --line-strong: var(--mid-graphite); --emphasis: var(--bordo); --link: var(--bordo); }
.st-cell-inverse { --ink: var(--graphite); --ink-muted: var(--mid-graphite); --ink-subtle: var(--gray-600); --line: var(--gray-100); --line-strong: var(--gray-400); --surface-sunken: var(--gray-50); --emphasis: var(--bordo); --link: var(--bordo); --accent-text: var(--bordo); --accent-soft: var(--bordo-100); --clarity-text: var(--blue-700); --clarity-soft: var(--blue-100); }
[data-theme="light"] .st-cell-inverse { --ink: var(--off-white); --ink-muted: var(--gray-200); --ink-subtle: var(--gray-300); --line: var(--gray-800); --line-strong: var(--gray-500); --surface-sunken: var(--gray-950); --emphasis: var(--light-blue); --link: var(--light-blue); --accent-text: var(--bordo-300); --accent-soft: var(--bordo-900); --clarity-text: var(--light-blue); --clarity-soft: var(--blue-900); }
.st-cell-accent { background: var(--accent); color: var(--on-accent); }
.st-cell-clarity { background: var(--clarity); color: var(--on-clarity); }
.st-cell-inverse { background: var(--surface-inverse); color: var(--ink-inverse); }
.st-cell-accent .st-label, .st-cell-accent .st-label-index { color: var(--on-accent); }
.st-cell-clarity .st-label, .st-cell-clarity .st-label-index { color: var(--on-clarity); }
.st-cell-inverse .st-label, .st-cell-inverse .st-label-index { color: var(--ink-inverse); }
.st-cell-accent .st-label-rule, .st-cell-clarity .st-label-rule, .st-cell-inverse .st-label-rule { background: currentColor; opacity: .35; }
.st-cell-outline { background: transparent; border: 1px solid var(--line); }
.st-cell-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.st-cell-text { margin: 0; font-size: 14px; line-height: 22px; opacity: .85; }
.st-cell:not([class*="st-cell-"]) .st-cell-text, .st-cell-outline .st-cell-text { opacity: 1; color: var(--ink-muted); }

/* ---------- Navbar ---------- */
.st-nav { position: relative; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); transition: background var(--duration-base) var(--ease-standard); }
.st-nav[data-st-sticky] { position: sticky; top: 0; }
.st-nav.is-scrolled { background: var(--surface-raised); }
.st-nav-inner { display: flex; align-items: center; gap: var(--space-8); height: var(--layout-nav-height); }
.st-nav-logo { display: flex; align-items: center; flex: none; }
.st-nav-logo img { height: 20px; width: auto; display: block; }
.st-nav-logo .st-logo-mark { display: none; height: 22px; }
.st-nav-links { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; flex: 1; }
.st-nav-links a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); text-decoration: none; white-space: nowrap; transition: color var(--duration-fast) var(--ease-standard); display: inline-flex; gap: 6px; align-items: baseline; }
.st-nav-links a:hover, .st-nav-links a[aria-current="page"] { color: var(--ink); }
.st-nav-idx { font-family: var(--font-display); font-size: 13px; color: var(--ink-subtle); font-variant-numeric: lining-nums; }
.st-nav-links a[aria-current="page"] .st-nav-idx { color: var(--emphasis); }
.st-nav-end { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.st-nav-toggle { display: none; width: var(--control-md); height: var(--control-md); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.st-nav-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform var(--duration-base) var(--ease-standard); }
.st-nav-toggle span + span { margin-top: 5px; }
.st-nav[data-open] .st-nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.st-nav[data-open] .st-nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Segmented ---------- */
.st-seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); gap: 2px; }
.st-seg button { height: 26px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--ink-muted); font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; cursor: pointer; text-transform: uppercase; }
.st-seg button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.st-seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* ---------- Field ---------- */
.st-form { display: grid; gap: var(--space-6); }
.st-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.st-field-label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-muted); }
.st-field input, .st-field textarea, .st-field select { width: 100%; font: inherit; font-size: 15px; line-height: 22px; color: var(--ink); background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px var(--space-3); transition: border-color var(--duration-fast) var(--ease-standard); }
.st-field textarea { min-height: 120px; resize: vertical; }
.st-field input::placeholder, .st-field textarea::placeholder { color: var(--ink-subtle); }
.st-field input:hover, .st-field textarea:hover, .st-field select:hover { border-color: var(--ink-muted); }
.st-field-hint { font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.st-field-error input, .st-field-error textarea, .st-field-error select, .st-field [aria-invalid="true"] { border-color: var(--status-alert); }
.st-field-error .st-field-hint, .st-field:has([aria-invalid="true"]) .st-field-hint { color: var(--status-alert); }

/* ---------- Footer ---------- */
.st-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); padding-block: var(--space-16) var(--space-8); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.st-footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); padding-bottom: var(--space-12); }
.st-footer-brand img { height: 20px; width: auto; display: block; margin-bottom: var(--space-4); }
.st-footer h4 { margin: 0 0 var(--space-3); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-subtle); }
.st-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.st-footer a { color: var(--ink-muted); text-decoration: none; transition: color var(--duration-fast) var(--ease-standard); }
.st-footer a:hover { color: var(--ink); }
.st-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; letter-spacing: .5px; color: var(--ink-subtle); }

/* ---------- reveal (only when sentire.js runs) ---------- */
.st-js [data-st-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard); transition-delay: var(--st-delay, 0ms); }
.st-js [data-st-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .st-cols-4, .st-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-bento, .st-bento-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-span-3, .st-span-4 { grid-column: span 2; }
  .st-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .st-nav-inner { gap: var(--space-3); }
  .st-js .st-nav-toggle { display: inline-grid; }
  .st-js .st-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: var(--space-2) var(--space-4) var(--space-6); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
  .st-js .st-nav[data-open] .st-nav-links { display: flex; }
  .st-js .st-nav-links a { width: 100%; height: 52px; align-items: center; font-size: 16px; border-bottom: 1px solid var(--line); }
  /* without JavaScript the links stay reachable: they wrap under the logo row */
  html:not(.st-js) .st-nav-inner { flex-wrap: wrap; height: auto; padding-block: var(--space-3); }
  html:not(.st-js) .st-nav-links { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
  .st-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 768px) {
  .st-section { padding-block: var(--space-24); }
  .st-section-head { margin-bottom: var(--space-8); }
}
@media (max-width: 640px) {
  .st-container { padding-inline: var(--space-4); }
  .st-cols-2, .st-cols-3, .st-cols-4, .st-method, .st-bento, .st-bento-2, .st-bento-3 { grid-template-columns: minmax(0, 1fr); }
  .st-span-2, .st-span-3, .st-span-4 { grid-column: auto; }
  .st-rows-2 { grid-row: auto; }
  .st-nav-end .st-hide-sm { display: none; }
  .st-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-lead { font-size: 17px; line-height: 27px; }
  .st-stripe::before { width: 4px; }
  .st-ml-steps li { font-size: 10px; letter-spacing: .8px; padding-left: var(--space-1); }
}
@media (max-width: 480px) {
  .st-nav-logo .st-logo-full { display: none; }
  .st-nav-logo .st-logo-mark { display: block; }
}
/* nothing moves, and nothing fades, under reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
  .st-js [data-st-reveal] { opacity: 1; transform: none; }
  .st-js .st-ml[data-st-reveal] .st-ml-path { stroke-dashoffset: 0; }
  .st-js .st-ml[data-st-reveal] .st-ml-end, .st-js .st-ml[data-st-reveal] .st-ml-steps li { opacity: 1; }
}
