/* Strata Voice — página de divulgação.
 *
 * Os tokens são os do produto, copiados de `src/styles.css` e não reinventados: a página
 * e o aplicativo têm que ser reconhecíveis como a mesma coisa. O que muda é a escala e a
 * estrutura — um broadside de oito faixas que alternam papel, argila e noite, com o fio
 * de 1 px como única régua e o título partido em duas vozes do mesmo corpo.
 */

/* ---------------------------------------------------------------- faces --- */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/open-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/open-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------- tokens --- */

:root {
  color-scheme: light;

  --bg: #f3f0e9;
  --bg-deep: #f9f8f3;
  --surface: #fefdfb;
  --surface-2: #f9f8f4;
  --surface-3: #f2eee2;
  --border: #dfded8;
  --border-2: #b9b7a9;
  --text: #1a1a19;
  --text-2: #575445;
  --text-3: #66655f;
  --accent: #de5e32;
  --accent-ink: #c0492c;
  --accent-soft: rgb(222 94 50 / 0.14);
  --accent-line: rgb(222 94 50 / 0.48);
  --on-accent: #ffffff;
  --on-dark: #f6f6f4;
  --wait: #e09d3d;
  --wait-soft: rgb(224 157 61 / 0.14);
  --wait-line: rgb(224 157 61 / 0.48);
  --ok: #539265;
  --ok-soft: rgb(83 146 101 / 0.14);
  --ok-line: rgb(83 146 101 / 0.48);
  --danger: #d82f2c;
  --danger-soft: rgb(216 47 44 / 0.14);
  --danger-line: rgb(216 47 44 / 0.48);
  --sel: #eeebe0;

  --sh-0: 0 1px 2px 1px rgb(0 0 0 / 0.05);
  --sh-1: 0 1px 2px 1px rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.08);
  --sh-2: 0 4px 8px 0 rgb(0 0 0 / 0.08);
  --sh-3: 0 12px 20px -4px rgb(0 0 0 / 0.18);
  --sh-plate: 0 2px 6px rgb(26 26 25 / 0.06), 0 26px 48px -18px rgb(26 26 25 / 0.3);
  --ring: 0 0 0 3px rgb(222 94 50 / 0.22);

  /* A faixa de noite é sempre o contrário do tema da página: num broadside claro ela é a
   * pausa escura, e num escuro ela vira papel. A alternância é o instrumento; se ela
   * seguisse o tema, sumiria justamente onde precisa aparecer. */
  --night-bg: #161618;
  --night-ink: #ededf0;
  --night-ink-2: #9e9ea8;
  --night-line: #2f2f34;
  --night-accent: #ff9878;
  --night-ok-soft: #1c2c21;
  --night-ok-line: #2e4736;
  --night-wait-soft: #312717;
  --night-wait-line: #4c3d20;

  --didone-opsz: 72;
  --didone-opsz-inv: 8;
  --grid-line: rgb(26 26 25 / 0.045);
  --halftone-ink: rgb(26 26 25 / 0.2);

  --r-bar: 3px;
  --r-mark: 6px;
  --r-key: 7px;
  --r-xs: 8px;
  --r-ctl: 10px;
  --r-pop: 12px;
  --r-srf: 14px;
  --r-win: 16px;
  --r-pill: 999px;

  --font-dp: "Open Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-tx: "Geist Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  /* A segunda voz do titulo. Nao e a face do produto e nao pretende ser: ela existe
   * so no cartaz, onde o contraste alto de uma didone faz o par que uma grotesca
   * sozinha nao faz. Auto-hospedada como as outras tres. */
  --font-serif: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --rail: 1180px;
  --gutter: clamp(20px, 4.4vw, 52px);

  --t-hero: clamp(2.6rem, 6vw, 5.25rem);
  --t-h2: clamp(1.95rem, 4vw, 3.5rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1rem, 1.2vw, 1.125rem);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #161618;
  --bg-deep: #101011;
  --surface: #1f1f22;
  --surface-2: #26262a;
  --surface-3: #1a1a1d;
  --border: #2f2f34;
  --border-2: #42424a;
  --text: #ededf0;
  --text-2: #9e9ea8;
  --text-3: #93939d;
  --accent: #ff7a55;
  --accent-ink: #ff9878;
  --accent-soft: #3a211a;
  --accent-line: #5c3527;
  --on-accent: #161618;
  --wait: #dca84c;
  --wait-soft: #312717;
  --wait-line: #4c3d20;
  --ok: #79b389;
  --ok-soft: #1c2c21;
  --ok-line: #2e4736;
  --danger: #ff6b66;
  --danger-soft: #3a1d1c;
  --danger-line: #5c2f2d;
  --sel: #2b2b30;

  --sh-0: 0 1px 2px 1px rgb(0 0 0 / 0.3);
  --sh-1: 0 1px 2px 1px rgb(0 0 0 / 0.45), 0 1px 2px 0 rgb(0 0 0 / 0.35);
  --sh-2: 0 4px 8px 0 rgb(0 0 0 / 0.45);
  --sh-3: 0 12px 20px -4px rgb(0 0 0 / 0.6);
  --sh-plate: 0 2px 6px rgb(0 0 0 / 0.4), 0 26px 48px -18px rgb(0 0 0 / 0.62);
  --ring: 0 0 0 3px rgb(255 122 85 / 0.26);

  --night-bg: #f3f0e9;
  --night-ink: #1a1a19;
  --night-ink-2: #575445;
  --night-line: #dfded8;
  --night-accent: #c0492c;
  --night-ok-soft: rgb(83 146 101 / 0.14);
  --night-ok-line: rgb(83 146 101 / 0.48);
  --night-wait-soft: rgb(224 157 61 / 0.14);
  --night-wait-line: rgb(224 157 61 / 0.48);

  --didone-opsz: 8;
  --didone-opsz-inv: 72;
  --grid-line: rgb(237 237 240 / 0.05);
  --halftone-ink: rgb(237 237 240 / 0.17);
}

/* O mesmo par escuro no estado sem carimbo, que é o padrão de quem nunca escolheu tema —
 * e o único estado que existe se o script não rodar. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #161618;
    --bg-deep: #101011;
    --surface: #1f1f22;
    --surface-2: #26262a;
    --surface-3: #1a1a1d;
    --border: #2f2f34;
    --border-2: #42424a;
    --text: #ededf0;
    --text-2: #9e9ea8;
    --text-3: #93939d;
    --accent: #ff7a55;
    --accent-ink: #ff9878;
    --accent-soft: #3a211a;
    --accent-line: #5c3527;
    --on-accent: #161618;
    --wait: #dca84c;
    --wait-soft: #312717;
    --wait-line: #4c3d20;
    --ok: #79b389;
    --ok-soft: #1c2c21;
    --ok-line: #2e4736;
    --danger: #ff6b66;
    --danger-soft: #3a1d1c;
    --danger-line: #5c2f2d;
    --sel: #2b2b30;

    --sh-0: 0 1px 2px 1px rgb(0 0 0 / 0.3);
    --sh-1: 0 1px 2px 1px rgb(0 0 0 / 0.45), 0 1px 2px 0 rgb(0 0 0 / 0.35);
    --sh-2: 0 4px 8px 0 rgb(0 0 0 / 0.45);
    --sh-3: 0 12px 20px -4px rgb(0 0 0 / 0.6);
    --sh-plate: 0 2px 6px rgb(0 0 0 / 0.4), 0 26px 48px -18px rgb(0 0 0 / 0.62);
    --ring: 0 0 0 3px rgb(255 122 85 / 0.26);

    --night-bg: #f3f0e9;
    --night-ink: #1a1a19;
    --night-ink-2: #575445;
    --night-line: #dfded8;
    --night-accent: #c0492c;
  --night-ok-soft: rgb(83 146 101 / 0.14);
  --night-ok-line: rgb(83 146 101 / 0.48);
  --night-wait-soft: rgb(224 157 61 / 0.14);
  --night-wait-line: rgb(224 157 61 / 0.48);

  --didone-opsz: 8;
  --didone-opsz-inv: 72;
  --grid-line: rgb(237 237 240 / 0.05);
  --halftone-ink: rgb(237 237 240 / 0.17);
  }
}

/* ------------------------------------------------------------ o chassis --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--border-2) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-tx);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-mark);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border: 3px solid var(--bg);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.rail {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------- o título em duas vozes --- */

/* O gesto de assinatura da página: duas linhas no MESMO corpo, em duas faces e duas
 * tintas. A primeira afirma, a segunda responde. Tamanho igual é o ponto — reduzir a
 * segunda a subtítulo desmancharia o par. */
.split {
  display: grid;
  gap: 0.02em;
}

.split__a,
.split__b {
  display: block;
  font-size: inherit;
  line-height: 0.98;
}

.split__a {
  font-family: var(--font-dp);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}

/* O eixo optico e o conserto, e nao um truque: uma didone desenhada para 96 pt tem
 * hairline fina demais para sobreviver a um chao escuro, onde ela cintila em vez de ler.
 * `opsz` baixo e o corte de texto da mesma face — hastes robustas, mesma familia. Papel
 * fica com a versao elegante; noite, com a que aguenta. A face so carrega o eixo `opsz`
 * (medido: `wght` nao varia neste arquivo), entao o peso vem dali. */
.split__b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.06em;
  line-height: 0.94;
  letter-spacing: -0.012em;
  color: var(--accent-ink);
  font-variation-settings: "opsz" var(--didone-opsz);
  font-optical-sizing: none;
}

.night .split__b {
  font-variation-settings: "opsz" var(--didone-opsz-inv);
}

.close .split__b {
  font-variation-settings: "opsz" 8;
}

/* ------------------------------------------------------------- a marca --- */

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.mark__tile {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: #fff;
  flex: none;
}

.mark__tile svg {
  width: 16px;
  height: 16px;
}

.mark__name {
  font-family: var(--font-dp);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.018em;
}

.top__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.theme-toggle:hover {
  background: var(--sel);
  border-color: var(--border-2);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------- botões --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-family: var(--font-tx);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.18s var(--ease), transform 0.12s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--on-accent);
  box-shadow: var(--sh-0);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--onfield {
  background: var(--close-well);
  border-color: var(--close-well);
  color: var(--close-field);
  box-shadow: var(--sh-1);
}

.btn--onfield:hover {
  filter: brightness(1.03);
}

.btn--onfield:active {
  transform: translateY(1px);
}

/* `[aria-disabled]` junto com `:disabled` porque os dois botões de baixar são <a>, e um
   <a> não aceita `:disabled` — antes da primeira release `app.js` tira o `href` e marca
   o ARIA, e sem esta linha o link continuaria com cara de clicável sem sê-lo. */
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  transform: none;
  opacity: 0.62;
}

/* ---------------------------------------------------------------- teclas --- */

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--border-2);
  border-bottom-width: 3px;
  border-radius: var(--r-key);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  line-height: 1;
  transition: transform 0.09s linear, background-color 0.09s linear,
    border-color 0.09s linear, color 0.09s linear;
}

.chord {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chord__plus {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

[data-held="1"] kbd {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--text);
}

.hold-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.hold-btn:hover {
  background: var(--sel);
}

.hold-btn[data-held="1"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ----------------------------------------------------------------- hero --- */

.hero {
  padding-bottom: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 3.6vw, 52px);
  align-items: center;
  padding-top: clamp(18px, 3vw, 42px);
  padding-bottom: clamp(30px, 4vw, 56px);
}

.hero__copy h1 {
  font-size: var(--t-hero);
}

/* Sem balancear: equilibrar deixa "Segure." sozinho numa linha e joga os outros dois
 * imperativos para a de baixo. Preenchendo, a quebra cai onde a fala cai. */
.hero__copy .split__a,
.hero__copy .split__b {
  text-wrap: initial;
}

.hero__deck {
  margin-top: 24px;
  max-width: 52ch;
  color: var(--text-2);
  font-size: var(--t-lead);
  line-height: 1.62;
}

.hero__deck strong {
  color: var(--text);
  font-weight: 500;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__req {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

/* O trilho que fecha a dobra. Quatro fatos medidos e uma placa numerada — a mesma
 * gramática de prancha do palco, em uma linha. */
.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0;
  border-top: 1px solid var(--border-2);
  padding-block: 16px 22px;
}

.ticker > p {
  padding-right: 20px;
}

.ticker > p + p {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.ticker b {
  display: block;
  font-family: var(--font-tx);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ticker span {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-3);
}

.ticker__plate {
  min-width: 150px;
  text-align: right;
}

.ticker__plate b {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.ticker__plate span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
}

/* ------------------------------------------------------ a faixa de argila --- */

/* O único campo de cor no meio da página, e ele é fino de propósito: uma tarja que
 * atravessa a leitura e não uma seção. */
.strip {
  background: var(--close-field, #c0492c);
  color: #fff;
}

.strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding-block: 18px;
}

.strip__label,
.strip__end {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.82);
}

.strip__end {
  margin-left: auto;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.strip li {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* --------------------------------------------------------------- faixas --- */

.band {
  border-top: 1px solid var(--border);
  padding-block: clamp(52px, 6vw, 84px);
}

.band--tight {
  padding-block: clamp(40px, 4.4vw, 60px);
}

.band--quiet {
  border-top-color: var(--border-2);
}

.band__head {
  max-width: 43rem;
}

.band__head h2 {
  font-size: var(--t-h2);
}

.band__head p {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--text-2);
  font-size: var(--t-lead);
  line-height: 1.62;
}

/* O deck ao lado do título, não embaixo — é o que compacta a página sem apertar nada. */
.band__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: end;
}

.band__head--split p {
  margin-top: 0;
  padding-bottom: 0.35em;
}

/* ------------------------------------------------------------- a matriz --- */

/* Grade só de fio, sem cartão e sem raio: as células são divisões de uma prancha, não
 * objetos empilhados sobre ela. */
.matrix {
  display: grid;
  margin-top: clamp(32px, 3.6vw, 48px);
  border-top: 1px solid var(--border-2);
}

.matrix--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px clamp(18px, 2.2vw, 30px) 26px;
  border-bottom: 1px solid var(--border);
}

.cell + .cell {
  border-left: 1px solid var(--border);
}

.cell:first-child {
  padding-left: 0;
}

.cell:last-child {
  padding-right: 0;
}

.cell__index {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cell__index b {
  font-weight: 500;
  color: var(--text-2);
}

.cell__index i {
  margin-left: auto;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.cell h3 {
  font-family: var(--font-dp);
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.cell__body {
  margin-top: auto;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.55;
}

.cell__body b,
.cell__body strong {
  color: var(--text);
  font-weight: 500;
}

/* Os termos do dicionário, compactados numa lista de duas linhas por termo. */
.terms {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.terms b {
  display: block;
  font-family: var(--font-dp);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.terms span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-3);
}

/* As abas de estilo, dentro de uma célula. */
.styles {
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--surface);
  overflow: hidden;
}

.styles__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.styles__tab {
  height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: var(--r-mark);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.styles__tab:hover {
  background: var(--sel);
  color: var(--text);
}

.styles__tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
}

.styles__body {
  padding: 12px 13px 14px;
  display: grid;
  gap: 4px;
}

.styles__out {
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text-3);
}

.styles__out--final {
  margin-bottom: 2px;
  color: var(--text);
}

.pair__label {
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.styles__body .pair__label + .styles__out {
  margin-bottom: 8px;
}

/* As duas cápsulas de exemplo dentro da célula de degradação. */
.specimens {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px;
  border-radius: var(--r-ctl);
  background: var(--surface-3);
}

/* -------------------------------------------------------- rótulo de prancha --- */

/* A legenda vem ANTES da figura, como numa prancha técnica, e o fio é dela. */
.plate-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.8125rem;
  color: var(--text-3);
}

.plate-label b {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.plate-label em {
  font-style: normal;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.03em;
}

.tag--synthetic {
  border-color: var(--wait-line);
  background: var(--wait-soft);
  color: var(--text);
}

.tag--todo {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.tag--drawn {
  border-color: var(--border-2);
  background: transparent;
  color: var(--text-2);
}

.figure {
  margin: clamp(30px, 3.4vw, 44px) 0 0;
}

.figure--half {
  max-width: 78%;
}

.figure__frame {
  margin-top: 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-win);
  background: var(--surface);
  box-shadow: var(--sh-3);
  overflow: hidden;
}

.note {
  margin-top: 18px;
  max-width: 74ch;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-3);
}

.note .tag {
  margin-right: 8px;
  translate: 0 1px;
}

/* ------------------------------------------------------ o par bruto→final --- */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(28px, 3.2vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--r-srf);
  background: var(--surface);
  overflow: hidden;
}

.pair__side {
  padding: clamp(20px, 2.3vw, 28px);
}

.pair__side + .pair__side {
  border-left: 1px solid var(--border);
  background: var(--surface-2);
}

.pair__text {
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 40ch;
}

.pair__text del {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
}

.pair__text ins {
  background: var(--ok-soft);
  box-shadow: 0 0 0 1px var(--ok-line);
  border-radius: var(--r-bar);
  padding: 0 2px;
  text-decoration: none;
}

.pair__text del + ins {
  margin-left: 3px;
}

.pair__meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.pair__meta b {
  color: var(--text-2);
  font-weight: 400;
}

/* --------------------------------------------------------- a faixa de noite --- */

.night {
  background: var(--night-bg);
  color: var(--night-ink);
  padding-block: clamp(56px, 6.5vw, 92px);
}

.night .split__a {
  color: var(--night-ink);
}

.night .split__b {
  color: var(--night-accent);
}

.night .band__head p,
.night .cell__body {
  color: var(--night-ink-2);
}

.night .cell__body b,
.night .cell__body strong {
  color: var(--night-ink);
  font-weight: 500;
}

.night .matrix {
  border-top-color: var(--night-line);
}

.night .cell {
  border-bottom-color: var(--night-line);
}

.night .cell + .cell {
  border-left-color: var(--night-line);
}

.night .cell__index {
  color: var(--night-ink-2);
}

.night .cell__index b {
  color: var(--night-ink);
}

.night .cell__index i {
  background: var(--night-accent);
}

.night .plate-label {
  color: var(--night-ink-2);
  border-bottom-color: var(--night-line);
}

.night .plate-label b {
  color: var(--night-ink);
}

.night .tag {
  border-color: var(--night-line);
  background: transparent;
  color: var(--night-ink-2);
}

.night .tag--synthetic {
  border-color: var(--wait-line);
  color: var(--night-ink);
}

.night .figure__frame {
  border-color: var(--night-line);
  background: transparent;
}

.night__pair {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 2.6vw, 38px);
  align-items: start;
}

/* --------------------------------------------------------- a ficha técnica --- */

.spec {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.spec__head h2 {
  font-size: var(--t-h2);
}

.spec__head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 42ch;
}

.spec__list {
  border-top: 1px solid var(--border-2);
}

.spec__list li {
  display: grid;
  grid-template-columns: 34px 108px minmax(0, 1fr);
  gap: 0 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.spec__list b {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-weight: 400;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.spec__list i {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.spec__list span {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* -------------------------------------------------------------- o fecho --- */

/* O campo do fecho não troca com o tema — mesma decisão que a pílula do overlay, pelo
 * mesmo motivo: a argila clara do tema escuro é `#ff9878`, e texto branco sobre ela mede
 * 1,6:1. Um campo que só está certo num tema não é um campo. */
:root {
  --close-field: #c0492c;
  --close-ink: #ffffff;
  --close-ink-2: rgb(255 255 255 / 0.95);
  --close-well: #fefdfb;
}

.close {
  background: var(--close-field);
  color: var(--close-ink);
  padding-block: clamp(56px, 7vw, 100px);
}

.close__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}

.close h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
}

.close .split__a {
  color: var(--close-ink);
}

.close .split__b {
  color: rgb(255 255 255 / 0.72);
}

.close__actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.close__note {
  display: grid;
  justify-items: start;
  gap: 9px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  padding-top: 14px;
  max-width: 40ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--close-ink-2);
}

.close__spec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.close .tag--todo {
  border-color: rgb(255 255 255 / 0.42);
  background: rgb(26 26 25 / 0.18);
  color: var(--close-ink);
}

/* -------------------------------------------------------------- rodapé --- */

.foot {
  padding-block: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
  text-underline-offset: 3px;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
}

/* -------------------------------------------------------------- o palco --- */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
}

.scene {
  position: relative;
  aspect-ratio: 1 / 1.84;
  perspective: 2400px;
  perspective-origin: 55% 42%;
}

.scene__plates {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(17deg) rotateZ(-1deg) rotateY(-17deg);
}

.plate {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transition: transform 0.72s var(--ease), opacity 0.5s var(--ease),
    filter 0.6s var(--ease);
  will-change: transform, opacity;
}

.plate--window {
  --tx: -2%;
  --ty: -100%;
  --tz: 190px;
  width: 80%;
  margin-left: -40%;
  transform: translate3d(var(--tx), var(--ty), var(--tz));
}

.plate--window .shot--dark,
html[data-theme="dark"] .plate--window .shot--light {
  display: none;
}

html[data-theme="dark"] .plate--window .shot--dark {
  display: block;
}

.plate--window img {
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: var(--r-win);
  box-shadow: var(--sh-plate);
  background: var(--surface);
}

.plate--hud {
  --tx: -20%;
  --ty: -16%;
  --tz: 96px;
  width: 58%;
  margin-left: -29%;
  display: flex;
  justify-content: center;
  transform: translate3d(var(--tx), var(--ty), var(--tz));
}

.plate--host {
  --tx: -3%;
  --ty: 22%;
  --tz: 0px;
  width: 84%;
  margin-left: -42%;
  transform: translate3d(var(--tx), var(--ty), var(--tz));
}

.stage[data-phase="assembled"] .plate--window {
  --ty: -150%;
  --tz: 300px;
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}

.stage[data-phase="assembled"] .plate--hud {
  --tx: 30%;
  --ty: 118%;
  --tz: 60px;
  width: 52%;
  margin-left: -26%;
}

.stage[data-phase="assembled"] .plate--host {
  --tx: -3%;
  --ty: -14%;
  --tz: 30px;
  width: 100%;
  margin-left: -50%;
}

.anchor {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  pointer-events: none;
}

.leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity 0.34s var(--ease);
}

.leaders polyline {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.stage[data-phase="assembled"] .leaders,
.stage[data-phase="assembled"] .anchor,
.stage[data-phase="assembled"] .callouts {
  opacity: 0;
}

.stage__side {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  align-content: center;
  justify-items: start;
}

.callouts {
  display: grid;
  gap: 26px;
  transition: opacity 0.34s var(--ease);
}

.callout {
  padding-top: 9px;
  border-top: 1px solid var(--accent-line);
}

.callout b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.callout span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.42;
  color: var(--text-2);
}

.callout em {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.stage__note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage__replay {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  box-shadow: var(--sh-0);
}

.stage[data-ran="1"][data-phase="exploded"] .stage__replay {
  opacity: 1;
  pointer-events: auto;
}

.stage__replay:hover {
  border-color: var(--border-2);
  background: var(--sel);
}

/* --------------------------------------------- o aplicativo de outra pessoa --- */

.host {
  border: 1px solid var(--border);
  border-radius: var(--r-srf);
  background: var(--surface);
  box-shadow: var(--sh-plate);
  overflow: hidden;
}

.host__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.host__dots {
  display: flex;
  gap: 5px;
}

.host__dots i {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--border-2);
}

.host__title {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}

.host__form {
  padding: 13px 15px 15px;
  display: grid;
  gap: 9px;
}

.host__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.host__row b {
  font-weight: 500;
  color: var(--text-3);
  min-width: 46px;
}

.host__row span {
  color: var(--text-2);
}

.host__field {
  position: relative;
  min-height: 112px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  font-size: 0.9375rem;
  line-height: 1.56;
  color: var(--text);
}

.stage[data-phase="assembled"] .host__field {
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--surface);
}

.host__placeholder {
  color: var(--text-3);
}

.host__typed {
  white-space: pre-wrap;
}

.host__typed.is-fresh {
  background: var(--accent-soft);
  border-radius: var(--r-bar);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: sv-paste 1.4s var(--ease) forwards;
}

@keyframes sv-paste {
  0% {
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 3px transparent;
  }
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  translate: 0 0.16em;
  background: var(--accent);
  animation: sv-caret 1.06s steps(1, end) infinite;
}

@keyframes sv-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.host__send {
  display: flex;
  justify-content: flex-end;
}

.host__send span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ----------------------------------------------------- a cápsula do overlay --- */

.hud {
  position: relative;
  --hud-ink: #f6f6f4;
  --hud-muted: rgb(246 246 244 / 0.72);
  --hud-accent: #ed7149;
  --hud-wait: #dca84c;
  --hud-ok: #79b389;

  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid rgb(255 255 255 / 0.17);
  border-radius: var(--r-pill);
  background: rgb(26 26 25 / 0.94);
  color: var(--hud-ink);
  font-family: var(--font-tx);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 12px 20px -4px rgb(0 0 0 / 0.38);
  white-space: nowrap;
}

.hud--lg {
  transform-origin: center;
  scale: 1.28;
}

.hud__dot {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--hud-accent);
  transition: background-color 0.3s ease;
}

.hud[data-state="transcribing"] .hud__dot,
.hud[data-state="correcting"] .hud__dot {
  background: var(--hud-wait);
}

.hud[data-state="inserted"] .hud__dot {
  background: var(--hud-ok);
}

.hud__ring {
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--hud-accent);
  border-radius: var(--r-pill);
  opacity: 0;
}

.hud[data-state="recording"] .hud__ring {
  animation: sv-ring 1.6s var(--ease) infinite;
}

@keyframes sv-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.hud__meter {
  display: flex;
  flex: none;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.hud[data-state="recording"] .hud__meter {
  opacity: 0.9;
}

.hud__meter i {
  width: 2.5px;
  height: 20px;
  flex: none;
  border-radius: var(--r-bar);
  background: var(--hud-ink);
  transform-origin: bottom;
  transform: scaleY(0.12);
  transition: transform 90ms linear;
}

.hud__label {
  flex: none;
}

.hud__track {
  flex: none;
  width: 56px;
  height: 2px;
  border-radius: var(--r-bar);
  background: var(--hud-ink);
  opacity: 0.45;
}

.hud[data-state="transcribing"] .hud__track,
.hud[data-state="correcting"] .hud__track {
  animation: sv-breathe 1.5s var(--ease) infinite;
}

@keyframes sv-breathe {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.8;
  }
}

.hud__time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  font-variant-numeric: tabular-nums;
}

.hud__divider {
  flex: none;
  width: 1px;
  height: 16px;
  background: rgb(255 255 255 / 0.18);
}

.hud__hint {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  color: var(--hud-muted);
}

.hud-card {
  width: 264px;
  padding: 12px 14px;
  border: 1px solid var(--wait-line);
  border-radius: var(--r-pop);
  background: var(--wait-soft);
  box-shadow: var(--sh-2);
}

.hud-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.hud-card__head i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: var(--r-pill);
  border: 2px solid var(--wait);
}

.hud-card p {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-2);
}

/* ------------------------------------------------- o recorte de área --- */

/* A área escolhida é um buraco no escurecido, não um retângulo por cima dele — é assim
 * que a tela do produto se comporta. O escurecimento inteiro é a sombra externa desta
 * caixa: com ela em 0×0 a tela toda está escura, e conforme cresce o buraco abre.
 *
 * Aqui, e só aqui, `width`/`height` são animados. Um `clip-path` cortaria a sombra junto
 * e mataria o escurecimento; um `scale` encolheria o spread com ela. */
.grab {
  position: relative;
  margin-top: 14px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-2);
  border-radius: var(--r-ctl);
  background: var(--surface-3);
  overflow: hidden;
}

.night .grab {
  border-color: var(--night-line);
}

.grab__desktop {
  position: absolute;
  inset: 0;
  padding: 7%;
  display: grid;
  grid-template-columns: 30% 1fr;
  grid-template-rows: 22% 1fr;
  gap: 4%;
}

.grab__desktop i {
  border-radius: var(--r-mark);
  background: var(--surface);
  border: 1px solid var(--border);
}

.grab__desktop i:nth-child(1) {
  grid-column: 1 / -1;
}

.grab__box {
  position: absolute;
  left: 26%;
  top: 30%;
  width: 0;
  height: 0;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.32), 0 0 0 2000px rgb(26 26 25 / 0.5);
  opacity: 0;
}

.grab__size {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--r-mark);
  background: var(--accent-ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
}

.grab__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  translate: -50% 0;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 0.17);
  background: rgb(26 26 25 / 0.94);
  color: #f6f6f4;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  white-space: nowrap;
  opacity: 0;
}

.grab[data-play="1"] .grab__hint {
  animation: grab-fade 0.45s var(--ease) 0.25s forwards;
}

.grab[data-play="1"] .grab__box {
  animation: grab-drag 1.7s var(--ease) forwards;
}

.grab[data-play="1"] .grab__size {
  animation: grab-fade 0.3s var(--ease) 1.3s forwards;
}

@keyframes grab-fade {
  to {
    opacity: 1;
  }
}

@keyframes grab-drag {
  0% {
    opacity: 0;
    width: 0;
    height: 0;
  }
  26% {
    opacity: 1;
    width: 0;
    height: 0;
  }
  100% {
    opacity: 1;
    width: 46%;
    height: 42%;
  }
}

/* --------------------------------------------------------------- estreito --- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 5vw, 56px);
  }

  .hero__copy {
    max-width: 40rem;
  }

  .scene {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    aspect-ratio: 1 / 1.4;
  }

  .band__head--split,
  .spec,
  .night__pair,
  .close__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .band__head--split p {
    padding-bottom: 0;
  }

  .figure--half {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .ticker > p,
  .ticker > p + p {
    padding: 0 18px;
    border-left: 1px solid var(--border);
  }

  .ticker > p:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .ticker__plate {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  .matrix--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell,
  .cell + .cell {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair__side + .pair__side {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .spec__list li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .spec__list i {
    grid-column: 2;
    margin-bottom: 4px;
  }

  .spec__list span {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .leaders,
  .anchor {
    display: none;
  }

  .callouts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .stage[data-phase="assembled"] .callouts {
    opacity: 1;
  }

  .stage[data-phase="assembled"] .plate--hud {
    --tx: 12%;
    --ty: 168%;
  }

  .scene__plates {
    transform: rotateX(13deg) rotateY(-11deg);
  }

  .hud--lg {
    scale: 1;
  }

  .plate--hud {
    --tx: -8%;
  }
}

@media (max-width: 560px) {
  .callouts {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticker {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticker > p,
  .ticker > p + p {
    padding: 0;
    border-left: 0;
  }

  .top__meta > span {
    display: none;
  }

  .btn,
  .hold-btn {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    gap: 10px;
  }

  .strip__end {
    margin-left: 0;
  }

  .plate--window {
    --tx: 6%;
    width: 70%;
    margin-left: -35%;
  }

  .scene {
    aspect-ratio: 1 / 1.78;
  }

  .scene__plates {
    transform: translateY(-36px) rotateX(13deg) rotateY(-11deg);
  }

  .grab__hint {
    max-width: calc(100% - 20px);
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grab[data-play="1"] .grab__box {
    opacity: 1;
    width: 46%;
    height: 42%;
  }

  .grab[data-play="1"] :is(.grab__size, .grab__hint) {
    opacity: 1;
  }
}


/* ================================================== o que veio da referencia === */

/* A sobrancelha com o quadrado de acento. O piso de craft recusa sobrancelha por
 * padrao; aqui ela e pedida pelo briefing, que fixou uma referencia onde ela e o
 * instrumento que separa as faixas. Cada uma nomeia a faixa, nao repete o titulo. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
}

.night .eyebrow {
  color: var(--night-ink-2);
}

.night .eyebrow::before {
  background: var(--night-accent);
}

.close .eyebrow {
  color: rgb(255 255 255 / 0.78);
}

.close .eyebrow::before {
  background: rgb(255 255 255 / 0.9);
}

/* A grade fina do chao do cabecalho. Papel milimetrado, nao textura de fundo: ela para
 * onde a faixa para. */
.hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 78px 78px;
  background-position: center top;
}

/* A marca em reticula, sangrando pela borda direita atras das placas. */
.halftone {
  position: absolute;
  top: 3%;
  right: -19%;
  width: min(900px, 68vw);
  height: auto;
  aspect-ratio: 1;
  color: var(--halftone-ink);
  pointer-events: none;
  z-index: 0;
}

.hero__grid,
.ticker {
  position: relative;
  z-index: 1;
}

/* A faixa de noite usada como secao inteira, com a trilha por dentro. */
.night--band {
  padding-block: clamp(52px, 6vw, 88px);
}

.night .pair {
  border-color: var(--night-line);
  background: transparent;
}

.night .pair__side + .pair__side {
  border-left-color: var(--night-line);
  background: rgb(255 255 255 / 0.03);
}

html[data-theme="dark"] .night .pair__side + .pair__side {
  background: rgb(0 0 0 / 0.04);
}

.night .pair__label,
.night .pair__meta,
.night .note {
  color: var(--night-ink-2);
}

.night .pair__text {
  color: var(--night-ink);
}

.night .pair__meta {
  border-top-color: var(--night-line);
}

.night .pair__meta b {
  color: var(--night-ink);
}

.night .pair__text del {
  color: var(--night-accent);
  text-decoration-color: var(--night-accent);
}

.night .pair__text ins {
  background: var(--night-ok-soft);
  box-shadow: 0 0 0 1px var(--night-ok-line);
}

.night .tag--synthetic {
  background: var(--night-wait-soft);
  border-color: var(--night-wait-line);
}

/* O rodape fecha no mesmo tom que a faixa de noite. */
.foot {
  background: var(--night-bg);
  color: var(--night-ink-2);
}

.foot__row {
  padding-block: 30px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.foot a {
  color: var(--night-ink);
}

.foot a:hover {
  text-decoration-color: var(--night-accent);
}

@media (max-width: 900px) {
  .halftone {
    top: auto;
    bottom: -8%;
    right: -26%;
    width: min(560px, 92vw);
    opacity: 0.7;
  }
}
