/* site.css — reset, type, layout, header/footer, sections and the hand-built vignettes.
 * Colours and fonts come from tokens.css; movement lives in motion.css. Nothing on the page
 * is inline (the CSP forbids it), so every state is a class or an attribute.  */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;               /* clip, not hidden: hidden would break position: sticky */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 48em) { :root { --gutter: 32px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

html:not(.js) .js-only { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: var(--gutter); z-index: 100; padding: .5rem .75rem; background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: .5rem; }

/* ---------- Layout and type ---------- */
.container { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--band { background: var(--surface-2); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head .lead { margin-top: 1rem; }

.eyebrow { font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
h1 em, h2 em { color: var(--primary); }
h3 { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.3; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: var(--measure); text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .01em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--sm { padding: .5rem .85rem; font-size: .875rem; }
.btn--lg { padding: .95rem 1.5rem; font-size: 1.0625rem; }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .65rem; border-radius: 999px; font: 500 .75rem/1.7 var(--font-mono); letter-spacing: .02em; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--wait { background: var(--wait-soft); color: var(--wait); }
.chip--no { background: var(--no-soft); color: var(--no); }
.chip--float { background: var(--surface); box-shadow: var(--shadow-float); border: 1px solid var(--line); padding: .35rem .8rem; }

.stamp { display: inline-block; padding: .45rem 1rem; border: 3px solid var(--accent); border-radius: 8px; color: var(--accent); font: 700 1rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; rotate: -7deg; white-space: nowrap;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 4 -1.2'/%3E%3C/filter%3E%3Crect width='160' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-size: 100% 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
/* The header carries more than the article column can hold: brand, nine anchors, the
   language switcher, the theme toggle and the demo button, in a language that runs 25–30 %
   longer than English. It gets its own, wider max-width, and the burger takes over at the
   width where that max-width stops being reached — a media query cannot rescue a container
   that is already capped. */
.site-header > .container { position: relative; height: 100%; display: flex; align-items: center; gap: 1rem; max-width: var(--header-w); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand .mark { color: var(--primary); }
.brand__word { font: 600 1.375rem/1 var(--font-display); letter-spacing: -.02em; }
.site-nav ul { display: flex; gap: .125rem; }
.site-nav a:not(.btn) { display: block; padding: .4rem .4rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.site-nav a:not(.btn):hover { background: var(--surface-2); }
.site-nav a[aria-current] { color: var(--primary); background: var(--primary-soft); }
.site-nav__cta { display: none; }
.header-controls { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; flex: none; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lang-switch a { padding: .25rem .6rem; border-radius: 999px; font: 600 .75rem/1.4 var(--font-mono); color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.theme-toggle { display: inline-flex; align-items: center; height: 2.125rem; padding: 0 .55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: .8125rem; font-weight: 500; flex: none; }
.theme-toggle__mode { display: none; align-items: center; gap: .4rem; }
/* An <svg> is a flex item that will shrink to nothing rather than overflow its row: without
   this the icon silently vanished whenever the header ran out of width. */
.theme-toggle svg, .nav-toggle svg { flex: none; }
:root:not([data-theme]) .theme-toggle__mode[data-mode="system"],
:root[data-theme="light"] .theme-toggle__mode[data-mode="light"],
:root[data-theme="dark"]  .theme-toggle__mode[data-mode="dark"] { display: inline-flex; }
.nav-toggle { display: none; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); }
.nav-toggle__close { display: none; }
.site-header.is-open .nav-toggle__open { display: none; }
.site-header.is-open .nav-toggle__close { display: block; }

@media (max-width: 79.99em) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: .75rem var(--gutter) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { padding: .65rem .5rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav__cta { display: inline-flex; margin-top: 1rem; }
}
@media (max-width: 24em) { .brand__word { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; contain: paint; padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 8vw, 7rem); min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
.hero__grid { position: absolute; inset: -20% 0 0; pointer-events: none;
  --grid-line: color-mix(in srgb, var(--primary) 16%, transparent);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 45%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 45%, #000 20%, transparent 72%); }
.hero__inner { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero__copy .lead { margin-top: 1.25rem; }
.hero__visual { position: relative; display: grid; place-items: center; padding-block: 1.5rem 1rem; }
.hero__watermark { position: absolute; right: -8%; top: -6%; color: var(--primary); opacity: .07; pointer-events: none; }
/* The stage is the card's box: the stamp and, on wide screens, the chips hang off its edges,
 * overlapping only the card's padding, so nothing they cover is text. */
.hero__stage { position: relative; width: min(100%, 26rem); }
.hero__stamp { position: absolute; bottom: -1rem; right: .5rem; font-size: 1rem; padding: .45rem .9rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
@media (min-width: 60em) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; }
  .hero__visual { padding-block: 2rem 4.5rem; }
  .hero__chips { display: contents; }
  .hero__chip { position: absolute; }
  .hero__chip--1 { top: -1rem; left: -2.5rem; }
  .hero__chip--2 { bottom: -1rem; right: -2rem; }
  .hero__chip--3 { bottom: -3.8rem; left: -.5rem; }
  .hero__stamp { top: -1.4rem; bottom: auto; right: -2.5rem; font-size: 1.3rem; padding: .6rem 1.2rem; } /* clear of the first chip in az/ru */
}

/* Documents, ledgers, levels */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.375rem; box-shadow: var(--shadow-float); }
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--muted); margin-bottom: .6rem; }
.doc__title { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; margin-bottom: .9rem; }
.ledger { display: grid; grid-template-columns: 1fr auto; row-gap: .4rem; font-size: .9375rem; }
.ledger dt { display: flex; color: var(--muted); }
.ledger dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-strong); margin: 0 .6rem .35rem; }
.ledger dd { font-family: var(--font-mono); font-size: .875rem; text-align: right; }
.levels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.levels__item { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .7rem .25rem .3rem; border-radius: 999px; background: var(--surface-2); font-size: .8125rem; color: var(--muted); }
.levels__num { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--line); color: var(--ink); font: 600 .75rem var(--font-mono); }
.levels__item.is-done { background: var(--ok-soft); color: var(--ok); }
.levels__item.is-done .levels__num { background: var(--ok); color: #fff; }

/* ---------- Proof ---------- */
.proof { padding-block: clamp(2.5rem, 5vw, 4rem); }
.proof__tiles { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48em) { .proof__tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.proof__tile { display: grid; gap: .25rem; }
.proof__num { font: 500 clamp(2.25rem, 2rem + 1.5vw, 3.25rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.proof__label { font-size: .875rem; color: var(--muted); line-height: 1.4; text-wrap: pretty; }
.proof__note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }

/* ---------- Flow ---------- */
.flow__layout { display: grid; gap: 2.5rem; }
.flow__pane { position: sticky; top: var(--header-h); z-index: 2; background: var(--bg); padding: .75rem 0; border-bottom: 1px solid var(--line); }
.flow__nodes { display: flex; gap: .25rem; }
.flow__node { position: relative; flex: 1; display: grid; justify-items: center; gap: .3rem; padding: .5rem .2rem; border-radius: var(--r-md); color: var(--muted); transition: color .3s, background-color .3s; }
.flow__num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font: 600 .8125rem var(--font-mono); transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.flow__name { font-size: .75rem; font-weight: 500; text-align: center; }
.flow__detail { display: none; }
@media (max-width: 59.99em) {
  /* Seven names never fit a phone-width row ("Предложения" alone is wider than a seventh of
     it): the row shows the numbered circles and the current step's name sits under them. */
  .flow__nodes { position: relative; padding-bottom: 1.4rem; }
  .flow__node { position: static; min-width: 0; }
  .flow__name { display: none; }
  .flow__node.is-now .flow__name { display: block; position: absolute; left: 0; right: 0; bottom: 0; }
}
.flow__node.is-lit { color: var(--primary); }
.flow__node.is-lit .flow__num { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.flow__node.is-now .flow__num { box-shadow: 0 0 0 4px var(--accent-soft); }
.flow__stamp { display: none; }
.flow__steps { display: grid; gap: 1.5rem; }
.flow__step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.25rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.flow__step[aria-current] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.flow__index { position: absolute; left: 1.5rem; top: 1.65rem; color: var(--accent); }
.flow__step h3 { margin-bottom: .5rem; }
.flow__step p { color: var(--muted); }
@media (min-width: 60em) {
  .flow__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .flow__pane { top: calc(var(--header-h) + 2rem); background: none; border: 0; padding: 0; }
  .flow__nodes { flex-direction: column; gap: 0; }
  .flow__node { grid-template-columns: 2.5rem 1fr; grid-template-areas: "num name" "num detail"; justify-items: start; align-items: center; column-gap: .9rem; row-gap: .1rem; padding: .7rem .9rem; }
  .flow__node + .flow__node::before { content: ""; position: absolute; left: calc(.9rem + 1.25rem - 1px); top: -1rem; height: 1.5rem; border-left: 2px solid var(--line); transition: border-color .3s; }
  .flow__node.is-lit + .flow__node.is-lit::before { border-color: var(--primary); }
  .flow__num { grid-area: num; width: 2.5rem; height: 2.5rem; font-size: .9375rem; }
  .flow__name { grid-area: name; font-size: 1rem; }
  .flow__detail { grid-area: detail; display: block; opacity: 0; max-height: 0; overflow: hidden; color: var(--muted); transition: opacity .3s, max-height .3s; }
  .flow__node.is-now .flow__detail { opacity: 1; max-height: 2rem; }
  .flow__node.is-now { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); margin-block: .25rem; }
  .flow__stamp { display: inline-block; position: absolute; right: 0; top: 2.6rem; opacity: 0; }
  .flow__steps { gap: 3rem; }
  .flow__step { display: grid; align-content: center; border: 0; background: none; box-shadow: none; padding: 0; }
  .flow__step[aria-current] { box-shadow: none; }
  .flow__step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; letter-spacing: -.02em; }
  .flow__step p { font-size: 1.0625rem; max-width: 34rem; }
  .flow__index { position: static; margin-bottom: .75rem; font-size: .9375rem; }
}

/* ---------- Matrix ---------- */
.mx { position: relative; margin-bottom: clamp(2.5rem, 5vw, 4rem); padding: 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.mx__card { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin-bottom: 1rem; padding: .75rem 1rem; box-shadow: none; border-color: var(--primary); background: var(--primary-soft); color: var(--primary); width: max-content; max-width: 100%; }
.mx__facts { color: var(--ink); }
.mx__table-wrap { overflow-x: auto; }
.mx__table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; }
.mx__table th, .mx__table td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mx__table th { font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mx__table tbody tr:last-child td { border-bottom: 0; }
/* These are the demo's final states; motion.css winds them back under .js and plays them. */
.mx__hit td { background: var(--primary-soft); }
.mx__cell span { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .5rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.mx__cell span::before { content: "✓"; font-weight: 700; }
.mx__stamp { position: absolute; right: 1rem; top: -.9rem; font-size: 1.1rem; }

.features { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.features--stack { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .9375rem; text-wrap: pretty; }

/* ---------- Split sections, cards ---------- */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; }
  .split--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .split--rev > :first-child { order: 2; }
}
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .9375rem; text-wrap: pretty; }
.card__label { color: var(--accent) !important; margin-bottom: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.card--accent { border-color: var(--accent); background: var(--accent-soft); }
.card--accent p { color: var(--ink); }

/* Diff card */
.diff__table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.diff__table th, .diff__table td { padding: .55rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.diff__table th { font-weight: 500; color: var(--muted); }
.diff__old { color: var(--no); text-decoration: line-through; white-space: nowrap; }
.diff__new { color: var(--ok); font-weight: 600; text-align: right !important; white-space: nowrap; }
.diff__foot { margin-top: .75rem; color: var(--muted); }

/* Bidding grid */
.grid-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; box-shadow: var(--shadow-float); overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.grid-table th, .grid-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.grid-table th:first-child { text-align: left; font-weight: 500; color: var(--muted); }
.grid-table thead th { font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grid-table thead th:not(:first-child) { filter: blur(3px); user-select: none; }
.grid-table__win { background: var(--ok-soft); }
.grid-table thead .grid-table__win { filter: blur(3px); }
.grid-table__award td, .grid-table__award th { border-bottom: 0; padding-top: .75rem; }
.grid-table__note { margin-top: .75rem; color: var(--muted); }

/* Mail card */
.mail { display: grid; gap: .6rem; }
.mail__subject { font-weight: 600; font-size: 1.0625rem; }
.mail__meta, .mail__note { color: var(--muted); }
.mail__btn { justify-self: start; margin-top: .25rem; }

/* Finance */
.finance__layout { display: grid; gap: 1rem; }
@media (min-width: 60em) { .finance__layout { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.switch { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.switch__track { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 999px; background: var(--line); transition: background-color .2s; flex: none; }
.switch__knob { position: absolute; top: 2px; left: 2px; width: calc(1.4rem - 4px); height: calc(1.4rem - 4px); border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: translate .2s; }
.switch__track.is-on { background: var(--ok); }
.switch__track.is-on .switch__knob { translate: 1.1rem 0; }
.checklist { display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.5rem; font-size: .9375rem; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.ledger-card { align-self: start; }
.bar { position: relative; height: .6rem; margin-top: 1rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.bar__fill--65 { width: 65%; background: var(--primary-soft); }
.bar__fill--50 { width: 50%; background: var(--primary); opacity: .55; }
.bar__fill--37 { width: 37%; background: var(--primary); }
.ledger-card__note { margin-top: .5rem; color: var(--muted); }

/* Chart */
.chart { display: grid; gap: .75rem; }
.chart figcaption { color: var(--muted); }
.chart__svg { width: 100%; height: auto; }
.chart__grid line { stroke: var(--line); stroke-width: 1; }
.chart__axis text, .chart__labels text, .chart__values text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.chart__axis text { text-anchor: end; }
.chart__values text { fill: var(--ink); font-weight: 500; }
.chart__bar { fill: var(--primary); }
.chart__bar--hot { fill: var(--accent); }
.chart__note { color: var(--muted); }

/* AI panel */
.ai__ask { font-weight: 600; font-size: 1.0625rem; text-wrap: pretty; }
.ai__calls { display: grid; gap: .35rem; margin: .9rem 0; padding-left: 1.1rem; border-left: 2px solid var(--accent); }
.ai__calls li { color: var(--muted); overflow-wrap: anywhere; }
.ai__answer { color: var(--ink); font-size: .9375rem; text-wrap: pretty; }
.ai__foot { margin-top: .75rem; color: var(--muted); }

/* CTA */
.cta { background: var(--primary); color: var(--on-primary); overflow: hidden; }
.cta__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) { .cta__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; } }
.cta h2 { color: inherit; }
.cta h2 em { color: var(--accent-soft); }
.cta .lead { color: inherit; opacity: .85; margin-top: 1rem; }
.cta__art { display: block; }
.cta__art img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgb(0 0 0 / .28); rotate: -2deg; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 1.5rem; font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr auto; } }
.site-footer__tagline { margin-top: .75rem; color: var(--muted); max-width: 22rem; }
.site-footer__title { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.site-footer__links { display: grid; gap: .4rem; }
.site-footer__links a { color: var(--ink); text-decoration: none; }
.site-footer__links a:hover { color: var(--primary); text-decoration: underline; }
.site-footer__controls { display: flex; gap: .6rem; align-items: center; align-self: start; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
