/* ============================================================
   voice.tele-agent.site — «Эфир» design system (round 2 rebuild)
   Palette «Ночь»: layered navy + three semantic accents
   (mint = live audio, amber = rubric, coral = issues/REC)
   Type: Unbounded (display) / Golos Text (body) / JetBrains Mono (utility)
   Bundled locally — zero third-party requests at runtime.
   Rebuild rules: one fluid clamp() type scale, 8px spacing rhythm,
   minmax(min(100%,…)) grid tracks, min-width:0 on text children,
   balance/pretty wrapping, no fixed content widths.
   ============================================================ */

:root {
  /* color */
  --bg: #0A111E;          /* «Ночь» */
  --panel: #121D31;       /* «Панель» */
  --raised: #18263F;      /* «Слой» */
  --deep: #0D1728;        /* inset wells */
  --line: #243853;        /* «Кромка» */
  --line-soft: rgba(36, 56, 83, 0.55);
  --text: #E9EFF8;        /* «Текст» */
  --muted: #9FB1C9;       /* «Штиль» */
  --mint: #41E5A5;        /* «Эфир» — live audio */
  --mint-soft: rgba(65, 229, 165, 0.12);
  --mint-line: rgba(65, 229, 165, 0.38);
  --on-mint: #052013;
  --amber: #FFC24D;       /* «Оценка» — rubric */
  --amber-soft: rgba(255, 194, 77, 0.12);
  --amber-line: rgba(255, 194, 77, 0.38);
  --coral: #FF7A70;       /* «Флаг» — issues / REC */

  /* type */
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* one fluid type scale: min -> max per role */
  --text-xs: clamp(0.7rem, 0.68rem + 0.1vw, 0.78rem);   /* mono captions */
  --text-s:  clamp(0.88rem, 0.86rem + 0.12vw, 0.96rem); /* secondary */
  --text-m:  clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem); /* body */
  --text-l:  clamp(1.06rem, 1rem + 0.32vw, 1.22rem);    /* lead */
  --h3-s:    clamp(1.02rem, 0.98rem + 0.22vw, 1.14rem);
  --h2-s:    clamp(1.4rem, 1.16rem + 1.3vw, 2.12rem);
  --h1-s:    clamp(1.58rem, 1.14rem + 2.7vw, 3.28rem);

  /* layout: 8px rhythm */
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 44px);
  --gap-s: 8px;
  --gap-m: 16px;
  --gap-l: 24px;
  --gap-xl: clamp(32px, 5vw, 56px);
  --radius: 16px;
  --head-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body { overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--text-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  text-wrap: balance;
  overflow-wrap: break-word; /* long RU words never force overflow */
}
p { text-wrap: pretty; }

::selection { background: rgba(65, 229, 165, 0.28); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--mint); color: var(--on-mint);
  font-weight: 600; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- shared ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap > * { min-width: 0; }

.section { padding-block: clamp(56px, 9vw, 104px); }
.band { border-block: 1px solid var(--line-soft); background: var(--panel); }
main[id], section[id] { scroll-margin-top: calc(var(--head-h) + 16px); }

.eyebrow {
  font-family: var(--f-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--gap-s) 10px; row-gap: var(--gap-s);
  min-width: 0;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--mint); flex: none;
}

.sec-head {
  max-width: 640px; display: grid; gap: var(--gap-m);
  margin-bottom: var(--gap-xl);
}
.sec-head h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--h2-s);
  line-height: 1.18; letter-spacing: -0.01em;
}
.sec-sub { color: var(--muted); font-size: var(--text-m); max-width: 56ch; }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: var(--text-s); line-height: 1.2;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-primary:hover { background: #6BF0BC; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--mint-line); color: var(--mint); }
.btn-lg { padding: 16px 28px; font-size: var(--text-m); border-radius: 12px; }
.btn .arr { transition: transform 0.16s ease; flex: none; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 17, 30, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-m); height: var(--head-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-mono); font-size: 0.84rem; letter-spacing: 0.02em;
  min-width: 0;
}
.brand svg { flex: none; }
.brand .b-dot { color: var(--mint); }
.brand .b-dom { color: var(--muted); }

.top-nav { display: none; }
.top-nav a {
  text-decoration: none; color: var(--muted); font-size: 0.9rem;
  white-space: nowrap;              /* a nav item never breaks mid-word */
  padding-block: 8px;               /* equal single-line heights */
  transition: color 0.15s ease;
}
.top-nav a:hover { color: var(--mint); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--raised); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer;
  flex: none;
}
.nav-toggle:hover { border-color: var(--mint-line); color: var(--mint); }

/* compact dropdown state (<1080px, JS on) */
.js .nav-toggle { display: flex; }
.js .top-nav {
  position: absolute; top: 100%; right: var(--pad);
  flex-direction: column; align-items: stretch;
  min-width: 216px; max-width: calc(100vw - 2 * var(--pad));
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: var(--gap-s); margin-top: 2px;
  box-shadow: 0 16px 40px rgba(4, 8, 16, 0.55);
}
.js .site-head .head-row { position: relative; }
.js .site-head.nav-open .top-nav { display: flex; }
.top-nav .nav-cta {
  display: block; margin-top: var(--gap-s);
  font-family: var(--f-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  color: var(--on-mint); background: var(--mint);
  border-radius: 8px; padding: 10px 16px;
}
.top-nav .nav-cta:hover { background: #6BF0BC; color: var(--on-mint); }

.head-cta {
  font-family: var(--f-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  color: var(--on-mint); background: var(--mint);
  padding: 9px 14px; border-radius: 8px;
  transition: background-color 0.15s ease;
}
.head-cta:hover { background: #6BF0BC; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) 0; }
.hero-grid {
  display: grid; gap: clamp(40px, 6vw, 72px);
  align-items: center;
  grid-template-columns: minmax(min(100%, 640px), 1fr);
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--h1-s);
  line-height: 1.18; letter-spacing: -0.012em; /* Unbounded has tall diacritics (й/ё) */
  margin-top: var(--gap-m);
}
.hero .lead { margin-top: var(--gap-m); max-width: 56ch; color: var(--muted); font-size: var(--text-l); }
.hero .cta-row { margin-top: var(--gap-l); }

.u-wave {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='46'%20height='9'%20viewBox='0%200%2046%209'%3E%3Cg%20fill='%2341E5A5'%20opacity='0.85'%3E%3Crect%20x='0'%20y='3'%20width='4'%20height='6'%20rx='1'/%3E%3Crect%20x='7'%20y='1'%20width='4'%20height='8'%20rx='1'/%3E%3Crect%20x='14'%20y='3.5'%20width='4'%20height='5'%20rx='1'/%3E%3Crect%20x='21'%20y='0'%20width='4'%20height='9'%20rx='1'/%3E%3Crect%20x='28'%20y='2'%20width='4'%20height='7'%20rx='1'/%3E%3Crect%20x='35'%20y='4'%20width='4'%20height='4'%20rx='1'/%3E%3Crect%20x='42'%20y='1.5'%20width='4'%20height='7'%20rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 46px 9px;
  padding-bottom: 7px;
}

/* badge artifact — fluid aspect-ratio box, cannot overflow */
.hero-badge { position: relative; justify-self: center; min-width: 0; margin-inline: auto; }
.hero-badge::before {
  content: ""; position: absolute; inset: -8%;
  background-image: radial-gradient(rgba(65, 229, 165, 0.16) 1px, transparent 1.4px);
  background-size: 19px 19px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 78%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 78%);
  pointer-events: none;
}
.hero-badge svg.badge {
  position: relative;
  width: min(72vw, 296px);
  aspect-ratio: 260 / 340;
  height: auto;
}

.eq-b {
  transform-box: fill-box; transform-origin: center;
  animation: eqSway 1.9s ease-in-out infinite;
}
.eq-b:nth-child(1) { animation-duration: 1.7s; animation-delay: -0.2s; }
.eq-b:nth-child(2) { animation-duration: 2.1s; animation-delay: -0.9s; }
.eq-b:nth-child(3) { animation-duration: 1.6s; animation-delay: -0.4s; }
.eq-b:nth-child(4) { animation-duration: 2.3s; animation-delay: -1.2s; }
.eq-b:nth-child(5) { animation-duration: 1.8s; animation-delay: -0.6s; }
.eq-b:nth-child(6) { animation-duration: 2.0s; animation-delay: -0.1s; }
.eq-b:nth-child(7) { animation-duration: 1.5s; animation-delay: -0.8s; }
.eq-b:nth-child(8) { animation-duration: 2.2s; animation-delay: -0.5s; }
.eq-b:nth-child(9) { animation-duration: 1.75s; animation-delay: -1.0s; }
@keyframes eqSway {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.rec-dot { animation: recPulse 2.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.badge-notes { position: relative; margin-top: var(--gap-m); display: grid; gap: var(--gap-s); min-width: 0; }
.badge-notes li {
  font-family: var(--f-mono); font-size: var(--text-xs); letter-spacing: 0.03em;
  color: var(--muted); display: flex; gap: 10px; align-items: center; min-width: 0;
}
.badge-notes li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--mint); flex: none;
}

/* audio rail — intrinsic aspect, width-fluid */
.rail { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-soft); padding-top: var(--gap-m); }
.rail img { width: 100%; aspect-ratio: 1076 / 44; height: auto; opacity: 0.85; }
.rail figcaption {
  margin-top: var(--gap-s); font-family: var(--f-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--gap-s) var(--gap-m); min-width: 0;
}
.rail figcaption .cap-arr { display: inline-block; margin: 0 4px; vertical-align: -1px; }

/* ---------- pipeline steps ---------- */
.steps { display: grid; gap: var(--gap-l); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 16px; top: 16px; bottom: 16px;
  width: 2px; background: var(--line);
}
.step {
  position: relative; padding-left: 56px;
  display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
}
.step-idx {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--f-mono); font-weight: 600; font-size: 0.8rem; color: var(--mint);
}
.step-body { min-width: 0; display: grid; gap: var(--gap-s); }
.step h3 { font-size: var(--h3-s); font-weight: 600; letter-spacing: 0.01em; }
.step p { color: var(--muted); font-size: var(--text-s); max-width: 48ch; }
.art {
  margin-top: var(--gap-s); width: 100%; max-width: 420px;
  background: var(--deep); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted);
  display: grid; gap: 6px; min-width: 0;
}
.art .a-row { display: flex; align-items: center; gap: var(--gap-s); flex-wrap: wrap; min-width: 0; }
.art .a-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); min-width: 0; }
.art .a-flow svg { flex: none; }
.art .a-flow .a-name { color: var(--muted); }
.art .a-arrow { color: var(--mint); }
.art .a-dialog {
  border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 9px; background: var(--panel);
  max-width: 100%; min-width: 0;
  overflow-wrap: break-word;            /* wraps at spaces; never overflows */
}
.art .a-dialog.s { color: var(--mint); border-color: var(--mint-line); }
.art .a-check { display: flex; gap: 8px; align-items: center; min-width: 0; }
.art .a-check .ok { color: var(--mint); flex: none; }
.art .a-check .miss { color: var(--amber); }

/* ---------- panel / dashboard mock ---------- */
.panel-grid { display: grid; gap: var(--gap-l); grid-template-columns: minmax(min(100%, 640px), 1fr); }
.tag-demo {
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mint); white-space: nowrap;
  border: 1px solid var(--mint-line); background: var(--mint-soft);
  padding: 3px 9px; border-radius: 999px;
}
.dash, .transcript {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  min-width: 0;
}
.dash-top, .tr-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); min-width: 0;
}
.dash-cols {
  display: none; padding: 10px 16px 2px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  grid-template-columns: minmax(0, 1.3fr) max-content minmax(72px, 1.4fr) minmax(88px, 1fr);
  gap: 10px;
}
.dash-rows { display: grid; }
.dash-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap-s) 12px;
  padding: 12px 16px 16px; border-top: 1px solid var(--line-soft);
  grid-template-areas: "name count" "bar bar" "flags flags";
  align-items: center;
}
.dash-row > * { min-width: 0; }
.c-name { grid-area: name; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--text-s); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--mint-soft); border: 1px solid var(--mint-line);
  color: var(--mint); font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600;
}
.c-count { grid-area: count; font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.c-count b { color: var(--text); font-weight: 600; }
.c-bar { grid-area: bar; display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.bar i.warn { background: var(--amber); }
.pct { font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted); min-width: 3.2em; text-align: right; }
.c-flags { grid-area: flags; display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; align-items: center; }
.chip {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
  max-width: 100%;
}
.chip svg { vertical-align: -1px; margin-right: 4px; }
.chip-warn { color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber-line); }
.chip-ok { color: var(--mint); background: var(--mint-soft); border: 1px solid var(--mint-line); }
.chip-none { color: var(--muted); font-family: var(--f-mono); font-size: var(--text-xs); }

/* transcript */
.transcript { display: flex; flex-direction: column; }
.tr-body { padding: 8px 16px 16px; }
.tr-line {
  display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: 10px;
  padding: 9px 0; align-items: start; border-top: 1px solid var(--line-soft);
}
.tr-line:first-child { border-top: 0; }
.tr-time { font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted); padding-top: 3px; white-space: nowrap; }
.tr-who {
  width: 22px; height: 22px; border-radius: 6px; margin-top: 1px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600;
}
.tr-who.seller { color: var(--mint); background: var(--mint-soft); border: 1px solid var(--mint-line); }
.tr-who.buyer { color: var(--muted); background: var(--deep); border: 1px solid var(--line); }
.tr-text { font-size: var(--text-s); line-height: 1.55; min-width: 0; overflow-wrap: break-word; }
.tr-text .chip { margin-top: 6px; display: inline-block; }
.demo-note {
  margin-top: var(--gap-m); font-family: var(--f-mono); font-size: var(--text-xs);
  color: var(--muted); letter-spacing: 0.02em;
}

/* ---------- checklist ---------- */
.checklist {
  display: grid; gap: var(--gap-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 296px), 1fr));
}
.check-item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 16px;
  transition: border-color 0.16s ease;
  min-width: 0;
}
.check-item:hover { border-color: var(--amber-line); }
.tick {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--amber-soft); border: 1px solid var(--amber-line); flex: none;
}
.check-text { min-width: 0; }
.check-item strong { display: block; font-size: var(--text-m); font-weight: 600; }
.check-item .check-text span { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-s); line-height: 1.5; overflow-wrap: break-word; }

/* ---------- privacy ---------- */
.trust-grid {
  display: grid; gap: var(--gap-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 264px), 1fr));
}
.trust-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: var(--gap-l); min-width: 0;
}
.trust-card svg { margin-bottom: var(--gap-m); }
.trust-card h3 { font-size: var(--h3-s); font-weight: 600; }
.trust-card p { margin-top: var(--gap-s); color: var(--muted); font-size: var(--text-s); }

/* ---------- pilot ---------- */
.pilot-inner {
  max-width: 660px; margin-inline: auto; text-align: center;
  display: grid; gap: var(--gap-m); justify-items: center; min-width: 0;
}
.pilot-inner .eyebrow { justify-content: center; }
.pilot-inner h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.15;
}
.pilot-inner p { color: var(--muted); font-size: var(--text-m); max-width: 56ch; }
.pilot-note { font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.03em; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding-block: var(--gap-l) 32px; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 12px var(--gap-l);
  align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted);
}
.site-foot .wrap > span { min-width: 0; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--mint); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- motion ---------- */
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.2s; } .d4 { animation-delay: 0.28s; }
.d5 { animation-delay: 0.38s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .rise, .eq-b, .rec-dot { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arr { transition: none; }
}

/* ---------- responsive ---------- */

/* nav row + header CTA from 1080px (five links, the language switch and the CTA) */
@media (min-width: 1080px) {
  .js .nav-toggle, .nav-toggle { display: none; }
  .js .top-nav, .top-nav {
    display: flex; position: static;
    flex-direction: row; align-items: center; gap: clamp(16px, 2.4vw, 28px);
    background: none; border: 0; padding: 0; margin: 0; box-shadow: none;
    min-width: 0; max-width: none;
  }
  .top-nav .nav-cta { display: none; }
  .head-cta { display: inline-block; }
}
@media (max-width: 1079px) {
  .head-cta { display: none; }
  .no-js .top-nav { display: none; } /* no-JS: sub-nav hidden, page is linear */
}

/* wide hero: copy + badge columns */
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(min(100%, 460px), 1.1fr) minmax(min(100%, 320px), 0.9fr);
  }
  .hero-badge { justify-self: end; margin-inline: 0; }
}

/* steps: horizontal rail */
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-l); }
  .steps::before {
    left: 17px; right: 17px; top: 16px; bottom: auto;
    width: auto; height: 2px;
  }
  .step { padding-left: 0; padding-top: 56px; }
  .step-idx { top: 0; }
  .art { max-width: none; }
}

/* dashboard table + two-column panel only where it fits */
@media (min-width: 1024px) {
  .panel-grid { grid-template-columns: minmax(min(100%, 480px), 1.15fr) minmax(min(100%, 360px), 0.85fr); align-items: start; }
  .dash-cols { display: grid; }
  .dash-row {
    grid-template-columns: minmax(0, 1.3fr) max-content minmax(72px, 1.4fr) minmax(88px, 1fr);
    grid-template-areas: none; gap: 10px; padding: 12px 16px;
  }
  .dash-row > * { grid-area: auto; }
  .c-bar { justify-self: stretch; }
  .c-flags { justify-self: start; }
}

/* ---------- VoxMetric additions ---------- */
.head-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch {
  font-family: var(--f-mono); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-switch:hover { color: var(--mint); border-color: var(--mint-line); }

.value-demo { margin-top: var(--gap-xl); }

.who-list { display: flex; flex-wrap: wrap; gap: 12px; }
.who-list li {
  font-size: var(--text-m); font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--line);
}

.contact-grid { display: grid; gap: var(--gap-xl); }
.contact-copy h2 {
  font-family: var(--f-display); font-weight: 600; line-height: 1.15;
  font-size: var(--h2-s); margin-top: var(--gap-s);
}
.contact-copy > p { margin-top: var(--gap-m); color: var(--muted); font-size: var(--text-m); max-width: 46ch; }
.contact-list { margin-top: var(--gap-l); display: grid; gap: 10px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-width: 0; }
.contact-list span {
  font-family: var(--f-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); min-width: 7.5em;
}
.contact-list a { color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--mint); }

.demo-form {
  display: grid; gap: 14px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.demo-form label { display: grid; gap: 6px; font-size: var(--text-s); color: var(--muted); }
.demo-form input, .demo-form textarea {
  width: 100%; min-width: 0; font: inherit; font-size: var(--text-m); color: var(--text);
  background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.demo-form textarea { resize: vertical; }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--mint-line); box-shadow: 0 0 0 3px var(--mint-soft); }
.demo-form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-family: var(--f-mono); font-size: var(--text-xs); color: var(--muted); }

.foot-legal { color: var(--muted); font-size: var(--text-xs); line-height: 1.5; max-width: 72ch; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 420px) {
  .head-tools { gap: 8px; }
  .lang-switch { padding: 8px; }
}
/* four value items: 2 x 2, never 3 + 1 */
@media (min-width: 700px) {
  #value .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* DOM order is brand, toggle, nav, tools, so Tab follows what is seen: on wide screens the toggle is
   hidden and the row reads brand, nav, tools; on compact screens it reads brand, toggle, tools. */
@media (max-width: 1079px) {
  .nav-toggle { margin-left: auto; }
}

/* The score's label: visible on compact layouts, where the column headings are hidden. */
.pct-lbl { margin-right: 6px; text-transform: none; }
@media (min-width: 1024px) {
  .pct-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.pct:has(.pct-lbl) { min-width: 0; white-space: nowrap; }

/* Long warning chips in the transcript wrap instead of clipping on narrow screens. */
.tr-text .chip { white-space: normal; overflow-wrap: anywhere; }
