/* site.css — gerado por build.js; não editar. Fontes: src/assets/site.css + src/assets/pages/*.css */
/* =============================================================================================
   site.css — a fundação do site Ticvero (ver ARCH.md, CONVENTIONS.md e handoff/TICVERO-HANDOFF.md)
   Tokens (tema escuro por omissão e tema claro), base, cabeçalho, menu, rodapé, bloco CTA e
   componentes partilhados. Os estilos de uma página vão em assets/pages/<id>.css, com o prefixo dela.
   Pontos de quebra: 900 px (menu <details>, colunas empilham) e 600 px (telemóvel). Sem !important.
   Regras de cor: o ciano é a única cor de marca; como TEXTO usa-se sempre --cy-ink. Vermelho só
   para Rejeitado/erros. Talões e papel ficam claros nos dois temas e usam só --print-*.
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   0. Tipos de letra, servidos pelo próprio site (o navegador não se liga a nenhum serviço externo)
   Space Grotesk (títulos, texto, UI) e JetBrains Mono (etiquetas, códigos, talões), ambas OFL.
   Fontes variáveis (peso 400–700); só os blocos latin e latin-ext, com os unicode-range do Google Fonts.
   --------------------------------------------------------------------------------------------- */
/* Space Grotesk: latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk: latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono: latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono: latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------------------------
   1. Tokens
   1a. Cores do tema. Claro por omissão (também sem script); escuro com <html data-theme="dark">
       (script no <head> do layout). .theme-dark repõe o escuro numa ilha (bloco CTA), também no claro.
   --------------------------------------------------------------------------------------------- */
:root[data-theme="dark"],
.theme-dark {
  --bg: #090B0F;
  --bg-2: #0E1117;
  --surface: #12161D;
  --surface-2: #171C24;
  --ink: #EEF1F5;
  --text: #9CA5B1;
  --muted: #858E9A;          /* #6B7480 do handoff dava 3,9:1 sobre --surface; este dá ≥ 5:1 */
  --line: #1D232C;
  --line-2: #29303B;
  --cy: #3DD5E3;             /* cor de marca: fundos, pontos, linhas, botões */
  --cy-ink: #3DD5E3;         /* ciano usado como TEXTO */
  --cy-soft: rgba(61, 213, 227, 0.10);
  --cy-glow: rgba(61, 213, 227, 0.35);
  --on-cy: #06191C;
  --red: #FF6B6B;
  --red-soft: rgba(255, 107, 107, 0.10);
  --off: #262C36;
  --dot: rgba(61, 213, 227, 0.14);
  /* logo (4a) */
  --mk-tile: #12141A;
  --mk-border: #262C36;
  --mk-off: #2C303A;
  --mk-on: #3DD5E3;
  --mk-period: #3DD5E3;
  /* sombras */
  --shadow-panel: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  --shadow-cta: 0 10px 30px -8px var(--cy-glow);
  --shadow-menu: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  --shadow-high: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  --shadow-low: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  --shadow-high-box: 0 24px 32px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-low-box: 0 14px 22px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

:root {
  --bg: #F5F7F9;
  --bg-2: #EDF0F3;
  --surface: #FFFFFF;
  --surface-2: #F7F9FB;
  --ink: #0B0E13;
  --text: #4A525D;
  --muted: #646C77;          /* #6E7681 do handoff dava 4,3:1 sobre --bg-2 */
  --line: #E2E6EB;
  --line-2: #CFD5DC;
  --cy: #1FB7C6;
  --cy-ink: #06737E;         /* #077C88 do handoff dava 4,3:1 sobre --bg-2; este dá 4,9:1 */
  --cy-soft: rgba(31, 183, 198, 0.10);
  --cy-glow: rgba(31, 183, 198, 0.25);
  --on-cy: #06191C;          /* texto sobre --cy (#1FB7C6): o branco dava 2,4:1; este dá 8:1 */
  --red: #C9302C;
  --red-soft: rgba(201, 48, 44, 0.08);
  --off: #DDE2E8;
  --dot: rgba(11, 14, 19, 0.07);
  /* logo (4c) */
  --mk-tile: transparent;
  --mk-border: transparent;
  --mk-off: #D3D9DF;
  --mk-on: #077C88;
  --mk-period: #077C88;
  --shadow-panel: 0 30px 60px -24px rgba(8, 12, 20, 0.22);
  --shadow-menu: 0 24px 48px -16px rgba(8, 12, 20, 0.18);
  --shadow-high: drop-shadow(0 22px 26px rgba(34, 33, 42, 0.16)) drop-shadow(0 2px 3px rgba(34, 33, 42, 0.20));
  --shadow-low: drop-shadow(0 14px 18px rgba(34, 33, 42, 0.13)) drop-shadow(0 1px 2px rgba(34, 33, 42, 0.18));
  --shadow-high-box: 0 22px 26px rgba(34, 33, 42, 0.16), 0 2px 3px rgba(34, 33, 42, 0.20);
  --shadow-low-box: 0 14px 18px rgba(34, 33, 42, 0.13), 0 1px 2px rgba(34, 33, 42, 0.18);
  color-scheme: light;
}

/* 1b. Papel (talões, folhas impressas): igual nos dois temas. Dentro do papel, os tokens do tema
       passam a ser os da impressão, para o CSS das páginas continuar a usar --ink, --c-ink, etc. */
:root {
  --paper: #FBFBF8;
  --print-ink: #22212A;
  --print-text: #3F4047;
  --print-faded: #6E6C75;
  --print-perf: #8F8D96;
  --print-cy: #077C88;       /* o ciano escuro: legível sobre papel (5,1:1) */
  --print-red: #B3261E;
  --print-band: rgba(31, 183, 198, 0.13);
  --scan: #3DD5E3;
  --paper-shade:
    linear-gradient(90deg, rgba(34, 33, 42, 0.04), rgba(34, 33, 42, 0) 8%, rgba(34, 33, 42, 0) 92%, rgba(34, 33, 42, 0.035)),
    linear-gradient(180deg, #FDFDFB, #F6F7F4 58%, #FAFAF8);
}

.paper,
.receipt__paper,
.receipt__stamp,
.slip__paper {
  --bg: var(--paper);
  --bg-2: #F1F1EC;
  --surface: var(--paper);
  --surface-2: #F4F4F0;
  --ink: var(--print-ink);
  --text: var(--print-text);
  --muted: var(--print-faded);
  --line: rgba(34, 33, 42, 0.14);
  --line-2: var(--print-perf);
  --cy: var(--print-cy);
  --cy-ink: var(--print-cy);
  --cy-soft: var(--print-band);
  --on-cy: #FFFFFF;
  --red: var(--print-red);
  color-scheme: light;
}

/* 1c. Bloco de código: sempre escuro, também no tema claro (valores fixos do handoff) */
:root {
  --code-bg: #06080B;
  --code-border: #29303B;
  --code-line: #1A1F27;
  --code-tab: #131820;
  --code-ink: #EEF1F5;
  --code-text: #C5CED9;
  --code-muted: #858E9A;
  --code-key: #7FB8F0;
  --code-str: #E6C07B;
  --code-true: #3DD5E3;
  --code-false: #FF6B6B;
  /* bloco CTA final: sempre escuro */
  --cta-bg: #090B0F;
  --cta-glow: rgba(61, 213, 227, 0.22);
  --cta-dot: rgba(61, 213, 227, 0.16);
  --cta-shadow: 0 10px 40px -6px rgba(61, 213, 227, 0.5);
}

/* 1d. Aliases dos nomes antigos (o CSS das páginas ainda os usa). Declarados também no papel e nas
       ilhas escuras, para seguirem os tokens desse sítio. */
:root,
.theme-dark,
.paper,
.receipt__paper,
.receipt__stamp,
.slip__paper {
  --c-counter: var(--bg);
  --c-paper: var(--paper);
  --c-ink: var(--ink);
  --c-text: var(--text);
  --c-faded: var(--muted);
  --c-perf: var(--line-2);
  --c-stamp: var(--cy-ink);
  --c-stamp-hover: var(--cy);
  --c-reject: var(--red);
  --c-white: var(--on-cy);
  --c-band: var(--cy-soft);
  --c-flash: var(--cy-soft);
}

/* 1e. Forma, tipos, escala, espaço, layout */
:root {
  --r-sm: 6px;
  --r-ctl: 9px;
  --r-btn: 11px;
  --r-card: 16px;
  --r-panel: 20px;
  --r-cta: 24px;
  --r-pill: 999px;

  --font-ui: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-print: var(--font-mono);

  /* Escala (handoff 1.4) */
  --fs-display: clamp(2.875rem, 6.4vw, 5.25rem);      /* h1: 46 → 84 */
  --lh-display: 0.98;
  --ls-display: -0.05em;
  --fs-title: clamp(2.125rem, 4.4vw, 3.5rem);         /* h2: 34 → 56 */
  --lh-title: 1.02;
  --ls-title: -0.045em;
  --fs-highlight: clamp(1.875rem, 3.6vw, 2.875rem);   /* CTA final: 30 → 46 */
  --lh-highlight: 1.05;
  --fs-sub: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);  /* h3: 20 → 24 */
  --lh-sub: 1.18;
  --fs-lead: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); /* entrada: 17 → 18 */
  --lh-lead: 1.6;
  --fs-body: 1rem;                                    /* 16 */
  --lh-body: 1.55;
  --fs-small: 0.9375rem;                              /* 15: texto dos cartões */
  --fs-label: 0.75rem;                                /* 12: etiquetas mono */
  --fs-code: 0.78125rem;                              /* 12,5: blocos de código */

  /* Espaçamento */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --section: 120px;
  --space-section: clamp(4.5rem, 3.2rem + 5vw, 7.5rem);        /* entre secções: 72 → 120 */
  --space-section-tight: clamp(3rem, 2.2rem + 3vw, 5rem);       /* quando continua o assunto: 48 → 80 */
  --space-title: 16px;                                          /* título → parágrafo */
  --space-object: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);          /* texto → objeto: 32 → 56 */
  --space-object-sm: clamp(2rem, 1.7rem + 1.2vw, 3rem);         /* texto → objeto: 32 → 48 */

  /* Layout */
  --content: 1240px;
  --measure: 620px;
  --gutter: 24px;
  --col-gap: 24px;
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --col-gap: 16px;
  }
}

/* ---------------------------------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* rede de segurança contra o scroll horizontal no telemóvel (palavras longas em de/fr) */
  overflow-wrap: break-word;
}

:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, pre) {
  margin: 0;
}

:where(ul, ol)[class],
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

:where(img, svg, video) {
  display: block;
  max-width: 100%;
}

:where(img) {
  height: auto;
}

:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

:where(strong, b) {
  font-weight: 600;
}

/* Código em linha (num texto do JSON): mono, um pouco mais pequeno que o texto à volta */
:where(:not(pre) > code) {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
}

[hidden] {
  display: none;
}

a {
  color: var(--ink);
  text-decoration-color: var(--cy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--cy-ink);
}

:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 3px;
}

::selection {
  background: var(--cy-glow);
  color: var(--ink);
}

/* Títulos: a escala do handoff; as classes .t-* dão o mesmo aspeto a outros elementos */
:where(h1),
.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: var(--ls-display);
  color: var(--ink);
  text-wrap: balance;
}

:where(h2),
.t-title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: var(--ls-title);
  color: var(--ink);
  text-wrap: balance;
}

:where(h3),
.t-sub {
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: pretty;
}

.t-highlight {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.t-lead {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text);
  text-wrap: pretty;
}

.t-text {
  max-width: var(--measure);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  text-wrap: pretty;
}

.t-lead strong,
.t-text strong {
  color: var(--ink);
}

.accent {
  color: var(--cy-ink);
}

@media (max-width: 600px) {
  :where(h1, h2),
  .t-display,
  .t-title {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* ---------------------------------------------------------------------------------------------
   3. Layout: contentor, secções, grelha de 12 colunas
   --------------------------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.section {
  padding-top: var(--space-section);
}

.section--tight {
  padding-top: var(--space-section-tight);
}

/* 12 colunas em todas as larguras. Em ≤ 900 px quase tudo passa a grid-column: 1 / -1. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

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

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: var(--gutter);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-ctl);
  background: var(--cy);
  color: var(--on-cy);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: var(--space-section);
}

.site-main:focus {
  outline: none;
}

/* O primeiro bloco de cada página: brilho ciano + pontos, com uma linha por baixo */
.dotgrid {
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
}

.glow {
  background-image: radial-gradient(circle at 70% 40%, var(--cy-soft), transparent 55%);
}

.glow.dotgrid,
.page-intro {
  background-image:
    radial-gradient(circle at 70% 40%, var(--cy-soft), transparent 55%),
    radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 22px 22px;
}

.page-intro {
  padding-block: clamp(56px, 3rem + 4vw, 96px);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------------------------
   4. Papel rasgado: serrilhado em CSS que se adapta à largura (só talões e tiras de papel)
   --------------------------------------------------------------------------------------------- */
.torn-top,
.torn-bottom,
.torn-y,
.torn-x {
  --tooth: 12px;
  --depth: 4px;
}

.torn-top {
  -webkit-mask:
    conic-gradient(from 123deg at 50% 0, #000 114deg, #0000 0) 0 0 / var(--tooth) var(--depth) round no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--depth) - 0.5px) / 100% 100% no-repeat;
  mask:
    conic-gradient(from 123deg at 50% 0, #000 114deg, #0000 0) 0 0 / var(--tooth) var(--depth) round no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--depth) - 0.5px) / 100% 100% no-repeat;
}

.torn-bottom {
  -webkit-mask:
    conic-gradient(from -57deg at 50% 100%, #000 114deg, #0000 0) 0 100% / var(--tooth) var(--depth) round no-repeat,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--depth) + 0.5px) no-repeat;
  mask:
    conic-gradient(from -57deg at 50% 100%, #000 114deg, #0000 0) 0 100% / var(--tooth) var(--depth) round no-repeat,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--depth) + 0.5px) no-repeat;
}

.torn-y,
.receipt__paper,
.slip__paper {
  -webkit-mask:
    conic-gradient(from 123deg at 50% 0, #000 114deg, #0000 0) 0 0 / var(--tooth) var(--depth) round no-repeat,
    conic-gradient(from -57deg at 50% 100%, #000 114deg, #0000 0) 0 100% / var(--tooth) var(--depth) round no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--depth) - 0.5px) / 100% calc(100% - 2 * var(--depth) + 1px) no-repeat;
  mask:
    conic-gradient(from 123deg at 50% 0, #000 114deg, #0000 0) 0 0 / var(--tooth) var(--depth) round no-repeat,
    conic-gradient(from -57deg at 50% 100%, #000 114deg, #0000 0) 0 100% / var(--tooth) var(--depth) round no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--depth) - 0.5px) / 100% calc(100% - 2 * var(--depth) + 1px) no-repeat;
}

.torn-x {
  -webkit-mask:
    conic-gradient(from 33deg at 0 50%, #000 114deg, #0000 0) 0 0 / var(--depth) var(--tooth) no-repeat round,
    conic-gradient(from 213deg at 100% 50%, #000 114deg, #0000 0) 100% 0 / var(--depth) var(--tooth) no-repeat round,
    linear-gradient(#000 0 0) calc(var(--depth) - 0.5px) 0 / calc(100% - 2 * var(--depth) + 1px) 100% no-repeat;
  mask:
    conic-gradient(from 33deg at 0 50%, #000 114deg, #0000 0) 0 0 / var(--depth) var(--tooth) no-repeat round,
    conic-gradient(from 213deg at 100% 50%, #000 114deg, #0000 0) 100% 0 / var(--depth) var(--tooth) no-repeat round,
    linear-gradient(#000 0 0) calc(var(--depth) - 0.5px) 0 / calc(100% - 2 * var(--depth) + 1px) 100% no-repeat;
}

.torn--wide {
  --tooth: 18px;
  --depth: 6px;
}

.shadow-high {
  filter: var(--shadow-high);
}

.shadow-low {
  filter: var(--shadow-low);
}

/* ---------------------------------------------------------------------------------------------
   5. Cabeçalho (fixo no topo, translúcido). ≥ 1280: uma linha; 901–1279: a navegação numa 2.ª
      linha; ≤ 900: menu <details> com o botão de tema ao lado; ≤ 600: o botão vai para o menu.
   --------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: none;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 68px;
}

/* O logo: símbolo em pontos (padrão 0000 / 0001 / 1010 / 0100) + nome minúsculo com o ponto final */
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, 4px);
  gap: 3px;
  align-content: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--mk-border);
  border-radius: 8px;
  background: var(--mk-tile);
}

.brand__mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mk-off);
}

.brand__mark i.on {
  background: var(--mk-on);
}

.brand__name {
  font: 700 22px/1 var(--font-ui);
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__dot {
  color: var(--mk-period);
}

.site-nav {
  min-width: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-ctl);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--ink);
}

.site-nav__link[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.site-header__tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

/* Seletor de língua compacto: o código atual (mono) abre a lista das cinco */
.lang-menu {
  position: relative;
}

.lang-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: var(--r-ctl);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.lang-menu__button::-webkit-details-marker {
  display: none;
}

.lang-menu__button::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.lang-menu__button:hover,
.lang-menu[open] .lang-menu__button {
  color: var(--ink);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
}

.lang-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.lang-menu__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.lang-menu__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.lang-menu__code {
  width: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
}

.lang-menu__link[aria-current="page"] .lang-menu__code {
  color: var(--cy-ink);
}

/* Botão de tema: ☀ no escuro, ☾ no claro. Só aparece com script (sem script não faria nada). */
.theme-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  border-color: var(--cy);
}

.theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: inline;
}

/* ≥ 1280 px: tudo numa linha (marca | navegação | língua, tema, botão) */
@media (min-width: 1280px) {
  .site-nav {
    margin-right: 8px;
  }
}

/* 901–1279 px: marca | ferramentas na 1.ª linha; a navegação na 2.ª */
@media (min-width: 901px) and (max-width: 1279px) {
  .site-header__bar {
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .site-nav {
    order: 1;
    flex: 1 0 100%;
    margin: 0 0 6px -12px;
  }
}

/* O menu do telemóvel e do tablet: <details> nativo, sem script */
.menu {
  display: none;
}

.menu__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.menu__button::-webkit-details-marker {
  display: none;
}

.menu__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.menu__icon--close,
.menu__label--close,
.menu[open] .menu__icon--open,
.menu[open] .menu__label--open {
  display: none;
}

.menu[open] .menu__icon--close {
  display: block;
}

.menu[open] .menu__label--close {
  display: inline;
}

.menu__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  padding: 8px var(--gutter) 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-menu);
}

.menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-lead);
  font-weight: 500;
  text-decoration: none;
}

.menu__link[aria-current="page"] {
  color: var(--cy-ink);
}

/* .menu à frente: o margin: 0 do .btn (secção 7) ganharia a .menu__cta sozinha */
.menu .menu__cta {
  margin-top: 24px;
}

.menu__langs {
  margin-top: 24px;
}

.menu__langs-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.menu__langs-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.menu__lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.menu__lang[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cy);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (max-width: 900px) {
  .site-header__bar {
    min-height: 64px;
    gap: 8px;
  }

  .site-nav,
  .lang-menu {
    display: none;
  }

  .menu {
    display: block;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

/* Ecrãs muito estreitos (360 px): o nome encolhe em vez de empurrar o menu para fora */
@media (max-width: 400px) {
  .brand {
    gap: 10px;
  }

  .brand__name {
    font-size: 20px;
  }
}

/* .menu / .site-header à frente: estas regras têm de ganhar a .btn e .btn--lg (secção 7) */
@media (min-width: 601px) {
  .menu .menu__cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header .site-header__cta {
    display: none;
  }
}

/* ---------------------------------------------------------------------------------------------
   6. Bloco CTA final (sempre escuro) e rodapé
   --------------------------------------------------------------------------------------------- */
.cta-block {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-section);
  border: 1px solid var(--line-2);
  border-radius: var(--r-cta);
  background: var(--cta-bg);
  color: var(--ink);
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 50%, var(--cta-glow), transparent 45%),
    radial-gradient(circle, var(--cta-dot) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 20px 20px;
  pointer-events: none;
}

.cta-block__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 40px;
  padding: clamp(32px, 1.2rem + 4vw, 64px);
}

.cta-block__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.cta-block__title {
  font-size: var(--fs-highlight);
  line-height: var(--lh-highlight);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.cta-block__lead,
.cta-block__contact {
  color: var(--text);
  text-wrap: pretty;
}

.cta-block .btn {
  box-shadow: 0 0 0 1px var(--cy), var(--cta-shadow);
}

.site-footer {
  flex: none;
  border-top: 1px solid var(--line);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
  color: var(--text);
  font-size: 14px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.site-footer__brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.site-footer__legal {
  color: var(--muted);
}

.site-footer__privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 600px) {
  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}

/* ---------------------------------------------------------------------------------------------
   7. Botões e ligação secundária
   --------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--cy);
  color: var(--on-cy);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.25;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--cy), var(--shadow-cta);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn::after {
  content: "→" / "";
}

.btn:hover {
  color: var(--on-cy);
  filter: brightness(1.08);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.btn--secondary {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: none;
}

.btn--secondary::after {
  content: none;
}

.btn--secondary:hover {
  border-color: var(--cy);
  color: var(--ink);
  filter: none;
}

.btn__code {
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-ctl);
  font-size: 14px;
  box-shadow: none;
}

.btn--sm::after {
  content: none;
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  border-radius: calc(var(--r-btn) + 1px);
  font-size: 17px;
}

@media (max-width: 600px) {
  .btn--lg {
    display: flex;
    width: 100%;
    padding: 12px 24px;
    white-space: normal;
  }
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--cy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.link:hover {
  color: var(--cy-ink);
}

/* ---------------------------------------------------------------------------------------------
   8. Componentes partilhados do handoff: etiqueta, chip, badge, cartão, estado
   --------------------------------------------------------------------------------------------- */
/* «// processo»: etiqueta de secção */
.eyebrow {
  display: block;
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.badge::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 10px var(--cy-glow);
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.card :where(p) {
  font-size: var(--fs-small);
  color: var(--text);
}

/* Cartão com barra de estado no topo, com brilho. A cor do estado é --signal (ciano por omissão;
   .card--rejected = vermelho); os textos do cartão que levam a cor do estado usam var(--signal). */
.card--signal {
  --signal: var(--cy-ink);
  overflow: hidden;
}

.card--signal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 18px var(--signal);
}

.card--rejected {
  --signal: var(--red);
}

/* Estado em linha: mono 12/700 maiúsculo com um ponto antes. Os glifos antigos (svg) escondem-se. */
.status {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  flex: none;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status__glyph {
  display: none;
}

/* Um estado escrito para o carimbo em duas linhas (fr: «En cours de / vérification») fica numa linha só */
.status .stamp__line2 {
  display: inline;
  margin: 0;
  font-size: inherit;
  letter-spacing: inherit;
}

.status .stamp__line2 + .stamp__line2::before {
  content: " ";
}

.status--approved,
.status--partial {
  color: var(--cy-ink);
}

.status--review,
.status--on-counter.status--review {
  color: var(--muted);
}

.status--rejected {
  color: var(--red);
}

/* ---------------------------------------------------------------------------------------------
   9. Marcadores «[…]»: o que ainda não existe
   --------------------------------------------------------------------------------------------- */
.placeholder {
  padding: 0 4px;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.placeholder--wordmark {
  display: inline-block;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}

/* O nome escrito como o logo: minúsculo, com o ponto final na cor de marca (relatório, esquemas, 404) */
.placeholder--wordmark::after {
  content: "." / "";
  color: var(--mk-period);
}

.paper .placeholder--wordmark::after {
  color: var(--print-cy);
}

.placeholder--block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
  color: var(--text);
  text-align: center;
}

.placeholder--photo {
  aspect-ratio: var(--placeholder-ratio, 3 / 2);
}

.placeholder--quote {
  display: block;
  padding: 24px 32px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
}

.placeholder--quote blockquote {
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  font-weight: 600;
  color: var(--ink);
}

.placeholder--quote figcaption {
  margin-top: 12px;
  color: var(--text);
}

/* ---------------------------------------------------------------------------------------------
   10. Figura e legenda (legenda mono, discreta)
   --------------------------------------------------------------------------------------------- */
.figure {
  margin: 0;
}

.figure > figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.figure--center > figcaption {
  text-align: center;
}

.figure--tight > figcaption {
  margin-top: 12px;
}

/* ---------------------------------------------------------------------------------------------
   11. O talão (papel térmico, claro nos dois temas). Três camadas: .receipt (posição, rotação;
       pinos e carimbo vivem aqui) > .receipt__shadow (sombra) > .receipt__paper (o papel).
   --------------------------------------------------------------------------------------------- */
.receipt {
  --receipt-w: 302px;
  position: relative;
  width: min(var(--receipt-w), 100%);
  margin-inline: auto;
  transform: rotate(var(--receipt-tilt, 0deg));
}

.receipt--tilt {
  --receipt-tilt: -0.6deg;
}

.receipt__shadow {
  filter: var(--shadow-low);
}

.receipt--hero .receipt__shadow {
  filter: var(--shadow-high);
}

.receipt__paper {
  --tooth: 12px;
  --depth: 4px;
  position: relative;
  overflow: hidden;
  padding: 26px 18px 22px;
  background: var(--paper-shade);
  color: var(--print-ink);
  font-family: var(--font-print);
  font-size: 11px;
  line-height: 19px;
  font-weight: 400;
  white-space: nowrap;
}

.receipt__store {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.receipt__c {
  text-align: center;
}

.receipt__faded {
  color: var(--print-faded);
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.receipt__qty {
  display: inline-block;
  width: 22px;
}

.receipt__indent {
  padding-left: 22px;
}

.receipt__total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  line-height: 22px;
  font-weight: 700;
}

.receipt__rule {
  margin: 8px 0;
  border-top: 1px dashed var(--print-perf);
}

.receipt__space {
  height: 10px;
}

.receipt__space--sm {
  height: 6px;
}

.receipt__space--lg {
  height: 14px;
}

.receipt__vat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--print-faded);
}

.receipt__vat > :nth-child(3n + 2) {
  text-align: center;
}

.receipt__vat > :nth-child(3n) {
  text-align: right;
}

.receipt__qr {
  display: flex;
  justify-content: center;
}

.receipt__qr img {
  width: 108px;
  height: 108px;
}

/* Faixa de linha lida: ciano suave atrás do texto. Nunca à volta de uma linha desbotada. */
.receipt__band {
  position: relative;
  z-index: 0;
}

.receipt__band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3px -10px;
  background: var(--print-band);
}

.receipt__band--qr::before {
  inset: -4px -10px;
}

/* Carimbo sobre o talão: posição pela página (--stamp-x, --stamp-y) a partir do canto do talão */
.receipt__stamp {
  position: absolute;
  z-index: 2;
  left: var(--stamp-x, 0px);
  top: var(--stamp-y, 0px);
  width: max-content;
}

.receipt__stamp--center {
  left: 50%;
  translate: -50% 0;
}

div.receipt__stamp {
  display: flex;
}

/* ---------------------------------------------------------------------------------------------
   12. Pino numerado e lista de anotações
   --------------------------------------------------------------------------------------------- */
.pin {
  position: absolute;
  z-index: 3;
  top: calc(var(--pin-y, 14px) - 13px);
  right: -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 0 2px var(--bg), 0 0 14px var(--cy-glow);
  color: var(--on-cy);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pin--left {
  right: auto;
  left: -13px;
}

.pin--inline {
  position: static;
  flex: none;
  box-shadow: 0 0 12px var(--cy-glow);
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.note__title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.note__text {
  margin-top: 4px;
  color: var(--text);
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------------------------------
   13. Carimbos (texto real; cor + glifo + moldura). Mono maiúsculo, sem rotação fora do papel.
       Sobre papel (talão) mantêm a tinta e a inclinação.
   --------------------------------------------------------------------------------------------- */
.stamp {
  --stamp-tilt: 0deg;
  display: inline-block;
  margin: 0;
  padding: 3px;
  border: 2px solid currentColor;
  border-radius: 8px;
  color: var(--cy-ink);
  font-family: var(--font-mono);
  transform: rotate(var(--stamp-tilt));
}

.stamp__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stamp__glyph {
  flex: none;
  width: 20px;
  height: 20px;
}

.stamp__word {
  display: block;
}

.stamp__line2 {
  display: block;
  margin-top: 4px;
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

.stamp__inner:has(> .stamp__note) {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
}

.stamp__note {
  grid-column: 1 / -1;
  flex-basis: 100%;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.stamp--review {
  color: var(--muted);
}

.stamp--review .stamp__inner {
  border-style: dashed;
}

.stamp--rejected {
  color: var(--red);
}

.stamp--flat {
  --stamp-tilt: 0deg;
}

/* Sobre papel: tinta de carimbo, inclinação de cada estado */
:is(.receipt, .paper) .stamp {
  opacity: 0.94;
  mix-blend-mode: multiply;
}

:is(.receipt, .paper) .stamp--approved {
  --stamp-tilt: -4deg;
}

:is(.receipt, .paper) .stamp--partial {
  --stamp-tilt: 2.5deg;
}

:is(.receipt, .paper) .stamp--rejected {
  --stamp-tilt: 3.5deg;
}

:is(.receipt, .paper) .stamp--flat {
  --stamp-tilt: 0deg;
}

/* ---------------------------------------------------------------------------------------------
   14. Folha (tabelas, formulário, texto longo): um cartão do tema. .paper faz dela papel impresso.
   --------------------------------------------------------------------------------------------- */
.sheet {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.sheet.paper {
  border: 0;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow-low-box);
}

.sheet--pad {
  padding: clamp(20px, 1rem + 1.6vw, 36px);
}

/* ---------------------------------------------------------------------------------------------
   15. Tabela (com <caption> visível e th scope)
   --------------------------------------------------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.table caption {
  caption-side: top;
  padding: 0 0 16px;
  text-align: left;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table td {
  color: var(--text);
}

.table thead th {
  padding-block: 10px;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
}

.table tbody th {
  font-weight: 600;
}

.table :is(th, td):first-child {
  padding-left: 0;
}

.table :is(th, td):last-child {
  padding-right: 0;
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table .num {
  text-align: right;
}

@media (max-width: 600px) {
  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table--stack tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .table--stack tbody tr:last-child {
    border-bottom: 0;
  }

  .table--stack th,
  .table--stack td {
    display: block;
    padding: 0;
    border: 0;
  }

  .table--stack td + td,
  .table--stack th + td {
    margin-top: 8px;
  }

  .table--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
  }

  .table--stack .num {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .table--stack-md thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table--stack-md tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .table--stack-md tbody tr:last-child {
    border-bottom: 0;
  }

  .table--stack-md th,
  .table--stack-md td {
    display: block;
    padding: 0;
    border: 0;
  }

  .table--stack-md td + td,
  .table--stack-md th + td {
    margin-top: 8px;
  }

  .table--stack-md td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
  }

  .table--stack-md .num {
    text-align: left;
  }
}

/* ---------------------------------------------------------------------------------------------
   16. Código: sempre escuro. .codeblock (um bloco) e .code-window (com separadores e estado).
       Realce: .tk-key (chaves), .tk-str (strings e números), .tk-true, .tk-false, .tk-com.
   --------------------------------------------------------------------------------------------- */
.codeblock {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--code-border);
  border-radius: var(--r-card);
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: var(--fs-code);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.codeblock code {
  font: inherit;
}

.codeblock__comment,
.tk-com {
  color: var(--code-muted);
}

.tk-key {
  color: var(--code-key);
}

.tk-str {
  color: var(--code-str);
}

.tk-true {
  color: var(--code-true);
}

.tk-false {
  color: var(--code-false);
}

.codeblock--scroll {
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: var(--r-card);
  background: var(--code-bg);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--code-line);
}

.code-window__tab {
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  cursor: pointer;
}

.code-window__tab[aria-selected="true"] {
  background: var(--code-tab);
  color: var(--code-ink);
}

.code-window__tab:hover {
  color: var(--code-ink);
}

.code-window__status {
  margin-left: auto;
  padding: 6px 10px;
  color: var(--code-true);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.code-window .codeblock {
  border: 0;
  border-radius: 0;
}

.code-window .codeblock:focus-visible {
  outline-offset: -2px;
}

@media (max-width: 600px) {
  .codeblock {
    padding: 16px;
  }
}

/* ---------------------------------------------------------------------------------------------
   17. Campos de formulário e mensagens
   --------------------------------------------------------------------------------------------- */
.field__label {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field__help {
  margin-top: 4px;
  color: var(--text);
  font-size: var(--fs-small);
}

.field__input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 8px 0 0;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.field__input:hover {
  border-color: var(--muted);
}

.field__input:focus-visible {
  border-color: var(--cy);
  outline-offset: 1px;
}

textarea.field__input {
  height: auto;
  min-height: 144px;
  padding: 12px 14px;
  resize: vertical;
}

select.field__input {
  padding-right: 36px;
}

.field__input[aria-invalid="true"] {
  border: 2px solid var(--red);
  padding-inline: 13px;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  color: var(--red);
  font-weight: 600;
}

.field__error[hidden] {
  display: none;
}

.field__error-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset__legend {
  padding: 0;
  color: var(--ink);
  font-weight: 600;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
}

.check--top {
  align-items: flex-start;
}

.check__input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cy);
}

.check--top .check__input {
  margin-top: 2px;
}

/* A mensagem que site.js mostra no lugar do envio (nunca finge que enviou) */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--cy);
  border-radius: var(--r-ctl);
  background: var(--cy-soft);
  color: var(--ink);
}

.notice[hidden] {
  display: none;
}

.notice:focus {
  outline: none;
}

.notice:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 3px;
}

.notice__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--cy-ink);
}

/* ---------------------------------------------------------------------------------------------
   18. Páginas geradas pelo build: escolha de língua (dist/index.html) e 404
   --------------------------------------------------------------------------------------------- */
.slip-page {
  background-image:
    radial-gradient(circle at 70% 30%, var(--cy-soft), transparent 55%),
    radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 22px 22px;
}

.slip-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
}

.slip {
  width: min(440px, 100%);
  filter: var(--shadow-high);
}

.slip__paper {
  --tooth: 12px;
  --depth: 4px;
  padding: 40px clamp(20px, 15.543px + 1.1429vw, 32px) 32px;
  background: var(--paper);
  color: var(--ink);
}

.slip__brand {
  margin-bottom: 24px;
}

.slip__title {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.slip__list {
  margin-top: 16px;
  border-top: 1px dashed var(--line-2);
}

.slip__choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
  text-decoration: none;
}

.slip__name {
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.slip__choice:hover .slip__name {
  text-decoration: underline;
  text-decoration-color: var(--cy);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.slip__go {
  color: var(--text);
}

.slip__block + .slip__block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}

.slip__text {
  margin-top: 8px;
  color: var(--text);
}

/* ---- pages/brands.css ---- */
/* =============================================================================================
   brands.css — página «Para marcas» (for-brands.html), orientada ao decisor de marketing.
   1 topo (.page-intro) com o exemplo compacto da decisão FS A/1188 (talão em miniatura | produtos) ·
   3 benefícios · 4 a marca define as regras · 5 várias campanhas (faixa) · 6 mais controlo + revisão humana ·
   7 funciona com o processo atual (faixa horizontal) · 8 relatório (página deitada: números e barras) ·
   9 CTA final desta página (o bloco comum do layout esconde-se aqui). Nada de imagens grandes com texto ao lado.
   A marca não opera nada (não há consola): o painel é a decisão que a marca recebe, sem controlos.
   Só tokens do site.css. Papel (o talão, a folha A4) fica claro nos dois temas: lá dentro os tokens
   são os da tinta (.receipt__paper, .paper).
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   Pequenos utilitários da página
   --------------------------------------------------------------------------------------------- */
.brands-strong {
  font-weight: 600;
  color: var(--ink);
}

/* impressão citada no texto (linha do talão, código da loja): mono, como no papel */
.brands-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--ink);
}

/* cabeçalho de secção: etiqueta, título e entrada */
.brands-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.brands-head--center {
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.brands-head--center .t-lead {
  margin-inline: auto;
}

.brands-hero__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1 / span 9;
}

/* ---------------------------------------------------------------------------------------------
   1. Topo: título, entrada e a decisão do talão FS A/1188, o que a marca recebe
   --------------------------------------------------------------------------------------------- */
.brands-hero__intro {
  grid-column: 1 / span 7;
  margin-top: 24px;
}

.brands-hero__action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-6);
}

.brands-stage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
  margin-top: var(--space-object);
}

/* o painel: barra de janela, imagem | produtos, para onde segue, estado final */
.brands-decision {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  color: var(--text);
}

.brands-decision__bar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.brands-decision__dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.brands-decision__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--off);
}

.brands-decision__where {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  min-width: 0;
  font-size: var(--fs-small);
}

.brands-decision__campaign {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.brands-decision__body {
  display: grid;
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
}

/* a imagem enviada: o talão em papel sobre uma grelha de pontos pequena */
.brands-decision__image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 22px 18px 16px;
  border-right: 1px solid var(--line);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

/* o mesmo desenho de QR, transposto: é outro documento */

/* o talão em miniatura (papel claro nos dois temas), como no painel do Início */
.brands-mini {
  width: 196px;
  padding: 12px 10px 14px;
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  color: var(--print-ink);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 13px;
  white-space: nowrap;
  transform: rotate(-1deg);
}

.brands-mini__c {
  text-align: center;
}

.brands-mini__b {
  font-weight: 700;
}

.brands-mini__faded {
  color: var(--print-faded);
}

.brands-mini__gap {
  height: 6px;
}

.brands-mini__rule {
  margin: 5px 0;
  border-top: 1px dashed var(--print-perf);
}

.brands-mini__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

/* as duas linhas que contam, com a faixa da linha lida */
.brands-mini__row--ok {
  margin-inline: -4px;
  padding-inline: 4px;
  background: var(--print-band);
}

.brands-mini__qr {
  width: 48px;
  height: 48px;
  margin-inline: auto;
}

.brands-decision__photo-caption {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

/* os produtos pedidos: o resultado de cada um, a linha do talão e o motivo */
.brands-decision__lines {
  min-width: 0;
  padding: 20px 28px 16px;
}

.brands-decision__heading {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.brands-decision__list {
  margin-top: 12px;
  border-top: 1px solid var(--line-2);
}

.brands-decision__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.brands-decision__item:last-child {
  border-bottom: 0;
}

.brands-decision__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.brands-decision__product {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.brands-decision__result {
  flex: none;
}

/* a linha do talão, com o valor à direita, como no papel */
.brands-decision__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.brands-decision__line > :first-child {
  min-width: 0;
  text-wrap: pretty;
}

/* a impressão do talão nunca parte a meio («SI CONC 13»): desce inteira para a linha seguinte */
.brands-decision__line .brands-mono {
  white-space: nowrap;
}

.brands-decision__price {
  flex: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.brands-decision__why {
  margin-top: 4px;
  color: var(--text);
  font-size: var(--fs-small);
  text-wrap: pretty;
}

/* para onde segue a decisão */

/* o estado final: a barra do resultado (como no painel do Início) */
.brands-decision__verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  background: var(--cy-soft);
  color: var(--cy-ink);
}

.brands-decision__state {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brands-decision__state::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.brands-decision__count {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

/* a legenda do exemplo: só a nota dos dados fictícios */
.brands-stage > .brands-stage__caption {
  grid-column: 1 / -1;
  text-align: right;
}

/* a loja fora da campanha: um caso de log, como nos cartões antifraude do Início */

/* a escolha desenhada (não é um controlo): círculo com ponto ciano, ou vazio */

/* O CTA final é desta página (secção 8): o bloco CTA comum do layout não se mostra aqui */
.page-brands aside:has(> .cta-block) {
  display: none;
}

/* «Ver exemplo» desliza até ao exemplo (sem movimento para quem o pede) */
@media (prefers-reduced-motion: no-preference) {
  :root:has(body.page-brands) {
    scroll-behavior: smooth;
  }
}

/* ---------------------------------------------------------------------------------------------
   3. Benefícios: quatro, título + uma frase, numa faixa
   --------------------------------------------------------------------------------------------- */
.brands-benefits {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.brands-benefits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.brands-benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 24px;
  border-left: 1px solid var(--line);
}

.brands-benefit::before {
  content: "";
  width: 24px;
  height: 2px;
  margin-bottom: 8px;
  background: var(--cy);
  box-shadow: 0 0 10px var(--cy-glow);
}

.brands-benefit__title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.brands-benefit__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------
   4. A marca define as regras: «O que pode a marca controlar?» em quatro cartões e a linha dos dados
   --------------------------------------------------------------------------------------------- */
.brands-rules__question {
  margin-top: 40px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0;
}

.brands-rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.brands-rules__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 2px solid var(--cy);
}

.brands-rules .brands-rules__name {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brands-rules .brands-rules__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

.brands-rules__data {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 24px;
  color: var(--text);
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------------------------------
   5. Uma plataforma, várias campanhas: numa faixa de fundo; texto e tipos | três campanhas de exemplo
   --------------------------------------------------------------------------------------------- */
.brands-campaigns {
  margin-top: var(--space-section);
  padding-block: clamp(48px, 2.5rem + 3vw, 88px);
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.brands-campaigns__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
  gap: 40px 64px;
}

.brands-campaigns__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brands-campaign {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--text);
}

.brands-campaign strong {
  color: var(--ink);
}

.brands-campaign--on {
  border-color: var(--cy);
  box-shadow: 0 0 24px var(--cy-glow);
  color: var(--ink);
}

.brands-campaign__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.brands-campaign--on .brands-campaign__dot {
  background: var(--cy);
  box-shadow: 0 0 10px var(--cy-glow);
}

/* ---------------------------------------------------------------------------------------------
   6. Mais controlo: quatro cartões e a revisão humana numa faixa
   --------------------------------------------------------------------------------------------- */
.brands-control__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 40px;
}

.brands-control__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brands-control__item--review {
  --signal: var(--muted);
}

.brands-control .brands-control__code {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
}

.brands-control__title {
  font-size: 21px;
  line-height: 1.2;
}

.brands-control .brands-control__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.brands-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: center;
  gap: 8px 40px;
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
  background: var(--surface);
}

.brands-review__title {
  font-size: 19px;
  line-height: 1.3;
}

.brands-review__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------
   8. Relatório: título centrado e a página do relatório deitada (papel): quatro totais e três listas com barras
   --------------------------------------------------------------------------------------------- */
.brands-report__figure {
  margin-top: 40px;
}

.brands-report__figure > figcaption {
  text-align: center;
}

.brands-sheet {
  padding: clamp(20px, 1rem + 2vw, 40px);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow-high-box);
  color: var(--print-ink);
  font-size: 14px;
  line-height: 1.45;
}

.brands-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--print-ink);
}

.brands-sheet__brand {
  font-size: 18px;
}

.brands-sheet__title {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brands-sheet__period {
  margin-left: 8px;
  color: var(--print-faded);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.brands-sheet__pdf {
  padding: 0 6px;
  border: 1.5px solid var(--print-cy);
  border-radius: 3px;
  color: var(--print-cy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.brands-sheet__totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px dashed var(--print-perf);
}

.brands-sheet__label {
  color: var(--print-faded);
  font-size: 13px;
}

.brands-sheet__big {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.brands-sheet__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  padding-top: 20px;
}

.brands-sheet__col {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.brands-sheet__group {
  margin-bottom: 2px;
  font-weight: 600;
}

/* uma linha com barra: o nome e o número em cima, a barra por baixo (comprimento = --brands-bar) */
.brands-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  font-size: 13px;
}

.brands-bar::after {
  content: "";
  grid-column: 1 / -1;
  width: var(--brands-bar, 0%);
  height: 6px;
  border-radius: 3px;
  background: var(--print-cy);
  opacity: 0.85;
}

.brands-bar__name {
  min-width: 0;
}

.brands-bar__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------------------------
   7. Funciona com o processo atual: título centrado e as três caixas lado a lado, com setas
   --------------------------------------------------------------------------------------------- */

.brands-integ__flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: 960px;
  margin: 40px auto 0;
}

.brands-integ__more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.brands-integ__node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--bg);
  text-align: center;
}

/* a ligação: uma linha horizontal com seta, no espaço entre duas caixas */
.brands-integ__node + .brands-integ__node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -49px;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--cy));
}

.brands-integ__node + .brands-integ__node::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: -9px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--cy);
  border-right: 1px solid var(--cy);
  transform: rotate(45deg);
}

.brands-integ__node--core {
  border-color: var(--cy);
  box-shadow: 0 0 24px var(--cy-glow);
}

.brands-integ__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 22px/1 var(--font-ui);
  letter-spacing: -0.035em;
}

.brands-integ__name {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------------------------
   9. CTA final desta página (o componente .cta-block)
   --------------------------------------------------------------------------------------------- */
.brands-final .cta-block {
  margin-bottom: 0;
}

.brands-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------------------------------------
   ≤ 900 px: as colunas empilham
   --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .brands-hero__head,
  .brands-hero__intro,
  .brands-stage > .brands-stage__caption {
    grid-column: 1 / -1;
  }

  /* a imagem do talão por cima dos produtos */
  .brands-decision__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .brands-decision__image {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  /* relatório: as três listas uma por baixo da outra; os totais em 2 × 2 */
  .brands-sheet__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .brands-sheet__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* integração: as três caixas empilhadas, setas verticais */
  .brands-integ__flow {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    gap: 32px;
  }

  .brands-integ__node + .brands-integ__node::before {
    top: -33px;
    left: 50%;
    width: 1px;
    height: 32px;
    background: linear-gradient(var(--line-2), var(--cy));
  }

  .brands-integ__node + .brands-integ__node::after {
    top: -9px;
    left: calc(50% - 4px);
    transform: rotate(135deg);
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 600 px: telemóvel
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .brands-benefit {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .brands-benefit:first-child {
    border-top: 0;
  }

  .brands-hero__action .btn,
  .brands-final__actions {
    width: 100%;
  }

  .brands-decision__bar {
    padding: 12px 16px;
  }

  .brands-decision__image {
    padding: 20px 12px 16px;
  }

  .brands-decision__lines {
    padding: 20px 16px 24px;
  }

  /* o resultado («Conta», «Não conta») desce para baixo do nome: o nome do produto não fica
     espremido e os três resultados alinham à esquerda */
  .brands-decision__row {
    flex-direction: column;
  }

  .brands-decision__verdict {
    padding-inline: 16px;
  }

}

/* ---- pages/demo.css ---- */
/* =============================================================================================
   pages/demo.css — «Pedir demonstração» (design de origem: Demonstracao.dc.html; rebrand Ticvero v3)
   A abertura em .page-intro (brilho + pontos, linha por baixo); por baixo, o formulário num cartão
   do tema (colunas 1–7) e, ao lado, o talão em papel carimbado e o que acontece a seguir (9–12 a
   partir de 1280 px; 8–12 entre 901 e 1279). ≤ 900: tudo empilha; o talão e o texto «O que
   acontece a seguir» ficam lado a lado até 601 px; ≤ 600: uma coluna.
   ============================================================================================= */

/* O bloco CTA final do layout («Pedir demonstração») não faz sentido nesta página: sai, com o
   seu contentor, para não deixar margem vazia antes do rodapé */
.page-demo aside:has(> .cta-block) {
  display: none;
}

/* ---------------------------------------------------------------------------------------------
   Abertura
   --------------------------------------------------------------------------------------------- */
.demo-intro__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.demo-request__title {
  max-width: 900px;
}

.demo-request__lead {
  max-width: 640px;
}

/* ---------------------------------------------------------------------------------------------
   Secção e grelha
   --------------------------------------------------------------------------------------------- */
.demo-request__grid {
  align-items: start;
  padding-top: var(--space-object);
}

.demo-request__main {
  grid-column: 1 / span 7;
  min-width: 0;
}

.demo-request__aside {
  grid-column: 8 / span 5;
  min-width: 0;
}

@media (min-width: 1280px) {
  .demo-request__aside {
    grid-column: 9 / span 4;
  }
}

/* ---------------------------------------------------------------------------------------------
   O pedido: cartão do tema (.sheet = surface + borda), com uma linha ciano no topo
   --------------------------------------------------------------------------------------------- */
.demo-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-7);
  border-color: var(--line-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel);
}

.demo-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--sp-7);
  right: var(--sp-7);
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, var(--cy), transparent);
  box-shadow: 0 0 18px var(--cy-glow);
  pointer-events: none;
}

/* No topo do cartão, a nota dos campos obrigatórios (mono, discreta) */
.demo-form__intro {
  display: grid;
  gap: var(--sp-2);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.demo-form__note {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.6;
  text-wrap: pretty;
}

/* O campo-armadilha contra robôs: fora do ecrã e fora da ordem do teclado (aria-hidden no template), mas no
   formulário, onde um robô o encontra e preenche */
.demo-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sem script, o servidor volta a esta página com #demo-sent ou #demo-error: a mensagem aparece */
.demo-form .notice[hidden]:target {
  display: flex;
}

/* A mensagem de erro é um erro: vermelho (a de envio fica ciano, a de .notice) */
.demo-form .notice[data-error-message] {
  border-color: var(--red);
  background: var(--red-soft);
}

.demo-form .notice[data-error-message] .notice__icon {
  color: var(--red);
}

/* Campos aos pares; alinhados pela base, para os campos ficarem na mesma linha mesmo que uma
   etiqueta ocupe duas linhas (traduções longas) */
.demo-form__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--col-gap);
  align-items: end;
}

/* Etiquetas um pouco mais pequenas do que o texto, como na UI do produto */
.demo-form .field__label,
.demo-form .fieldset__legend {
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Tipo de campanha: cada opção é uma pastilha com borda (a caixa nativa, em ciano, fica) */
.demo-form__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

@media (min-width: 1280px) {
  .demo-form__checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.demo-form__checks .check {
  min-width: 0;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--bg-2);
  font-size: var(--fs-small);
}

/* palavras longas (de: «Gewinnspiele») partem-se dentro da pastilha, nunca saem dela */
.demo-form__checks .check > span {
  min-width: 0;
  padding-block: 8px;
  line-height: 1.3;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.demo-form__checks .check:hover {
  border-color: var(--muted);
}

.demo-form__checks .check:has(:checked) {
  border-color: var(--cy);
  background: var(--cy-soft);
}

.demo-form__checks .check:has(:focus-visible) {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
}

.demo-form__checks .check__input:focus-visible {
  outline: none;
}

.demo-form__consent {
  color: var(--text);
  font-size: var(--fs-small);
}

.demo-form__consent a {
  color: var(--cy-ink);
  text-underline-offset: 3px;
}

.demo-form .notice {
  margin: 0;
}

.demo-form__submit {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

/* o único marcador desta página é o email de contacto ({{contact.emailHtml}}, curto: ≤ 220 px, menos
   do que a coluna mais estreita): não parte a meio da caixa tracejada. Com um email real sai como
   ligação (.link) e esta regra deixa de se aplicar. */
.demo-request .placeholder {
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------------------------
   O talão carimbado: mini-talão de 264 px (papel, claro nos dois temas), encostado à esquerda
   --------------------------------------------------------------------------------------------- */
.demo-receipt {
  margin-inline: 0;
}

.demo-receipt .receipt__paper {
  padding: 24px 16px 20px;
}

.demo-receipt__space-qr {
  height: 12px;
}

.demo-receipt__space-foot {
  height: 8px;
}

/* avanço de papel em branco, onde assenta o carimbo (--stamp-y: 428px, logo abaixo da última
   linha impressa, já contando com a rotação) */
.demo-receipt__feed {
  height: 112px;
}

/* o QR deste talão é outro: o mesmo desenho transposto na diagonal */
.demo-receipt .demo-receipt__qr img {
  width: 81px;
  height: 81px;
  transform: matrix(0, 1, 1, 0, 0, 0);
}

/* o carimbo fica centrado no papel (com a inclinação do estado). max-content dá-lhe a largura da
   palavra; a linha pequena vai numa grelha a toda a largura. */
.demo-receipt .demo-stamp {
  left: 50%;
  width: max-content;
  transform: translateX(-50%) rotate(var(--stamp-tilt));
}

.demo-stamp .stamp__inner {
  display: grid;
  grid-template-columns: repeat(2, auto);
}

.demo-stamp .stamp__note {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------------------------------------
   O que acontece a seguir
   --------------------------------------------------------------------------------------------- */
.demo-next {
  margin-top: var(--space-object);
}

.demo-next__text {
  margin-top: var(--sp-4);
}

.demo-next__subtitle {
  margin-top: var(--sp-6);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.demo-next__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

/* traço ciano em vez de marcador: a lista não é uma sequência */
.demo-next__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--text);
  font-size: var(--fs-small);
}

.demo-next__item::before {
  content: "";
  flex: none;
  width: 12px;
  height: 0;
  margin-top: 11px;
  border-top: 1.5px solid var(--cy);
}

.demo-next__contact {
  margin-top: var(--sp-6);
}

.demo-next__more {
  margin-top: var(--sp-2);
}

/* ---------------------------------------------------------------------------------------------
   ≤ 900 px: o formulário a toda a largura; por baixo, o talão e o texto lado a lado
   --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .demo-request__main,
  .demo-request__aside {
    grid-column: 1 / -1;
  }

  .demo-form {
    padding: var(--sp-6);
  }

  .demo-form::before {
    left: var(--sp-6);
    right: var(--sp-6);
  }

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

  .demo-request__aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-6);
    align-items: start;
    margin-top: var(--space-section-tight);
  }

  .demo-next {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 600 px (telemóvel): uma coluna; o talão centrado, com a legenda centrada
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .demo-form {
    gap: var(--sp-5);
    padding: var(--sp-5) var(--sp-4);
    border-radius: var(--r-card);
  }

  .demo-form::before {
    left: var(--sp-4);
    right: var(--sp-4);
  }

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

  .demo-form__checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-request__aside {
    display: block;
  }

  .demo-receipt {
    margin-inline: auto;
  }

  .demo-figure > figcaption {
    text-align: center;
  }

  .demo-next {
    margin-top: var(--sp-7);
  }
}

/* ---- pages/home.css ---- */
/* =============================================================================================
   pages/home.css — Início comercial B2B (marcas, agências, plataformas), com o design Ticvero v3
   1 hero com a demonstração do talão · 2 benefícios · 3 para quem · 4 como funciona (+ caso incerto) ·
   5 revisão humana e os quatro resultados · 6 antifraude · 7 integração · 8 capacidades · 9 relatório ·
   10 CTA final desta página (o bloco CTA comum do layout esconde-se no Início).
   ============================================================================================= */

/* Cabeçalho de secção: etiqueta, h2 e entrada. --split: h2 | entrada, alinhados em baixo. */
.home-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.home-head--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  align-items: end;
  gap: 16px 64px;
  max-width: none;
}

.home-head__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------------------------------------------------------------------------------------------
   1. Hero
   --------------------------------------------------------------------------------------------- */
.home-hero {
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(circle at 70% 40%, var(--cy-soft), transparent 55%),
    radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 22px 22px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  align-items: center;
  gap: 64px;
  padding-block: clamp(56px, 2.5rem + 5vw, 96px) clamp(64px, 3rem + 5vw, 104px);
}

.home-hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.home-hero__badge {
  align-self: flex-start;
}

.home-hero__title {
  font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.75rem);
  line-height: 1.02;
}

/* «Cada produto decidido.» sempre na sua linha */
.home-hero__title .accent {
  display: block;
}

/* Ecrãs largos: a coluna do texto um pouco mais larga que a do painel (o título é comprido) */
@media (min-width: 1100px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }
}

/* a frase de baixo: maior e mais escura que a entrada normal, para se ler logo */
.home-hero__lead {
  max-width: 580px;
  color: color-mix(in oklab, var(--ink) 72%, var(--text));
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

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

.home-hero__actions .btn--secondary {
  padding-inline: 20px;
}

/* O painel: janela com barra, talão | verificações, e a barra do resultado. Contorno com gradiente ciano. */
.home-panel-wrap {
  position: relative;
  min-width: 0;
}

.home-panel-wrap > figcaption {
  margin-top: 14px;
  text-align: right;
}

.home-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.home-panel-frame {
  position: relative;
}

.home-panel-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-panel) + 1px);
  background: linear-gradient(140deg, var(--cy-glow), transparent 40%, transparent 70%, var(--cy-soft));
  filter: blur(0.5px);
}

.home-panel__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--font-mono);
}

.home-panel__dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.home-panel__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--off);
}

.home-panel__path {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--fs-label);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-panel__progress {
  flex: none;
  margin-left: auto;
  color: var(--cy-ink);
  font-size: 11px;
  white-space: nowrap;
}

.home-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
}

.home-panel__stage {
  position: relative;
  overflow: hidden;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

/* O talão em ponto pequeno (papel claro nos dois temas) */
.home-mini {
  position: relative;
  padding: 12px 10px 16px;
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  color: var(--print-ink);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 13px;
  white-space: nowrap;
}

.home-mini__c {
  text-align: center;
}

.home-mini__b {
  font-weight: 700;
}

.home-mini__faded {
  color: var(--print-faded);
}

.home-mini__gap {
  height: 6px;
}

.home-mini__gap--lg {
  height: 10px;
}

.home-mini__rule {
  margin: 5px 0;
  border-top: 1px dashed var(--print-perf);
}

.home-mini__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.home-mini__mark {
  display: inline-block;
  width: 11px;
  color: var(--print-cy);
  font-weight: 700;
  transition: opacity 0.3s;
}

.home-mini__row--out {
  color: var(--print-faded);
}

.home-mini__row--out .home-mini__mark {
  color: var(--print-faded);
}

.home-panel.is-unmarked .home-mini__mark {
  opacity: 0;
}

.home-mini__qr {
  width: 52px;
  height: 52px;
  margin-inline: auto;
}

/* A linha de leitura: escondida por omissão (estado final); o script põe a posição e a mostra */
.home-mini__scan {
  position: absolute;
  top: 0;
  left: -6px;
  right: -6px;
  height: 2px;
  background: var(--scan);
  box-shadow: 0 0 16px 4px rgba(61, 213, 227, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: top 0.6s linear, opacity 0.3s;
}

.home-panel.is-scanning .home-mini__scan {
  opacity: 1;
}

/* As cinco verificações: pendente (opacidade .4), ativa (borda ciano, •), feita (✓, fundo ciano suave) */
.home-checks {
  margin: 0;
  padding: 10px 0;
}

.home-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 18px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.home-check.is-active,
.home-check.is-ok {
  opacity: 1;
}

.home-check__box {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  transition: border-color 0.3s, background-color 0.3s;
}

.home-check.is-active .home-check__box {
  border-color: var(--cy);
}

.home-check.is-active .home-check__box::before {
  content: "•";
}

.home-check.is-ok .home-check__box {
  border-color: var(--cy);
  background: var(--cy-soft);
}

.home-check.is-ok .home-check__box::before {
  content: "✓";
}

.home-check__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.home-check__title {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.home-check__detail {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* A barra do resultado: EM ANÁLISE (cinzento) → APROVADO (ciano) */
.home-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  transition: background-color 0.4s;
}

.home-result.is-done {
  background: var(--cy-soft);
  color: var(--cy-ink);
}

.home-result__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-result__label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.home-result__done,
.home-result.is-done .home-result__pending {
  display: none;
}

.home-result.is-done .home-result__done {
  display: inline;
}

.home-result__note {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  visibility: hidden;
}

.home-result.is-done .home-result__note {
  visibility: visible;
}

/* «Ver como funciona» desliza até à secção (sem movimento para quem o pede) */
@media (prefers-reduced-motion: no-preference) {
  :root:has(body.page-home) {
    scroll-behavior: smooth;
  }
}

/* O Início tem o seu próprio CTA final (secção 9): o bloco comum do layout não se mostra aqui */
.page-home aside:has(> .cta-block) {
  display: none;
}

/* ---------------------------------------------------------------------------------------------
   2. Benefícios: três resultados de negócio, numa faixa logo a seguir ao hero
   --------------------------------------------------------------------------------------------- */
.home-benefits {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.home-benefits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.home-benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  align-content: start;
  padding: 32px 24px;
  border-left: 1px solid var(--line);
}

.home-benefit__icon {
  display: flex;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--cy-ink);
}

.home-benefit__title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-benefit__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------
   3. Para quem: três cartões
   --------------------------------------------------------------------------------------------- */
.home-audience__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 48px;
}

.home-audience__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-audience .home-audience__tag {
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.home-audience__title {
  font-size: 22px;
  line-height: 1.2;
}

.home-audience .home-audience__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.home-audience__more {
  margin-top: auto;
}

/* ---------------------------------------------------------------------------------------------
   4b. O caso incerto → revisão humana, por baixo dos quatro passos
   --------------------------------------------------------------------------------------------- */
.home-uncertain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 48px;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
  background: var(--surface);
}

.home-uncertain__path {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.home-uncertain__arrow {
  color: var(--muted);
}

.home-uncertain__to {
  color: var(--ink);
  font-weight: 600;
}

.home-uncertain__text {
  flex: 1 1 360px;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------
   6. Integração, sem código: texto | plataforma da campanha → Ticvero → resultado
   --------------------------------------------------------------------------------------------- */
.home-integ__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
  gap: 40px 64px;
  padding: clamp(24px, 1rem + 3vw, 56px);
  background-image: radial-gradient(circle at 85% 50%, var(--cy-soft), transparent 55%);
}

.home-integ__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.home-integ__title {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.05;
}

.home-integ__flow {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  margin: 0;
}

.home-integ__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--bg);
  text-align: center;
}

/* a ligação entre dois nós: uma linha com uma seta */
.home-integ__node + .home-integ__node::before {
  content: "";
  position: absolute;
  top: -33px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--line-2), var(--cy));
}

.home-integ__node + .home-integ__node::after {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--cy);
  border-bottom: 1px solid var(--cy);
  transform: rotate(45deg);
}

.home-integ__node--core {
  border-color: var(--cy);
  box-shadow: 0 0 24px var(--cy-glow);
}

.home-integ__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 22px/1 var(--font-ui);
  letter-spacing: -0.035em;
}

.home-integ__name {
  color: var(--ink);
  font-weight: 600;
}

.home-integ__sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

/* ---------------------------------------------------------------------------------------------
   7. Capacidades: grelha compacta, sem parágrafos
   --------------------------------------------------------------------------------------------- */
.home-caps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 40px;
}

.home-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.35;
  font-weight: 500;
}

.home-cap::before {
  content: "✓" / "";
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  background: var(--cy-soft);
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------------------------------------------------------------------------------------------
   9. CTA final desta página (o componente .cta-block, uma só ação)
   --------------------------------------------------------------------------------------------- */
.home-final .cta-block {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------------------------
   5. Automatização com controlo: três cartões com a barra do estado e os quatro resultados
   --------------------------------------------------------------------------------------------- */
.home-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 48px;
}

.home-case {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-case__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.home-case .home-case__doc {
  color: var(--muted);
}

.home-case__code {
  color: var(--signal);
  font-weight: 700;
  text-transform: uppercase;
}

.home-case__title {
  font-size: clamp(1.3125rem, 1.2rem + 0.4vw, 1.5rem);
  line-height: 1.15;
}

.home-case .home-case__text {
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Revisão humana: a barra em cinzento (Em revisão), não em ciano nem em vermelho */
.home-case--review {
  --signal: var(--muted);
}

/* Os quatro resultados, numa linha por baixo dos cartões */
.home-outcomes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.home-outcomes__label {
  color: var(--text);
  font-size: var(--fs-small);
}

.home-outcomes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------------------------------------------------------------------------------------------
   4. Como funciona: linha por trás dos nós (ciano nas pontas), quatro colunas; ≤ 900 px na vertical
   --------------------------------------------------------------------------------------------- */
.home-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: 56px;
}

.home-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cy), var(--line-2) 30%, var(--line-2) 70%, var(--cy));
}

.home-steps--compact .home-step {
  gap: 12px;
}

.home-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.home-step__node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
}

.home-step__node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.home-step--lit .home-step__node {
  border-color: var(--cy);
  box-shadow: 0 0 14px var(--cy-glow);
}

.home-step--lit .home-step__node::before {
  background: var(--cy);
}

.home-step__tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.home-step__title {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* ---------------------------------------------------------------------------------------------
   8. Relatório mensal: título centrado e a página do relatório deitada (papel): quatro totais e três listas com barras
   --------------------------------------------------------------------------------------------- */
.home-head--center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.home-head--center .t-lead {
  margin-inline: auto;
}

.home-report__figure {
  margin-top: 40px;
}

.home-report__figure > figcaption {
  text-align: center;
}

.home-report__more {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.home-sheet {
  padding: clamp(20px, 1rem + 2vw, 40px);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow-high-box);
  color: var(--print-ink);
  font-size: 14px;
  line-height: 1.45;
}

.home-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--print-ink);
}

.home-sheet__brand {
  font-size: 18px;
}

.home-sheet__name {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-sheet__period {
  margin-left: 8px;
  color: var(--print-faded);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.home-sheet__pdf {
  padding: 0 6px;
  border: 1.5px solid var(--print-cy);
  border-radius: 3px;
  color: var(--print-cy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.home-sheet__totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px dashed var(--print-perf);
}

.home-sheet__label {
  color: var(--print-faded);
  font-size: 13px;
}

.home-sheet__big {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-sheet__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  padding-top: 20px;
}

.home-sheet__col {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.home-sheet__group {
  margin-bottom: 2px;
  font-weight: 600;
}

/* uma linha com barra: o nome e o número em cima, a barra por baixo (comprimento = --home-bar) */
.home-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  font-size: 13px;
}

.home-bar::after {
  content: "";
  grid-column: 1 / -1;
  width: var(--home-bar, 0%);
  height: 6px;
  border-radius: 3px;
  background: var(--print-cy);
  opacity: 0.85;
}

.home-bar__name {
  min-width: 0;
}

.home-bar__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------------------------
   ≤ 900 px: o processo na vertical (a linha passa para a esquerda dos nós)
   --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .home-sheet__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-sheet__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-left: 48px;
  }

  .home-steps::before {
    top: 0;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--cy), var(--line-2) 30%, var(--line-2) 70%, var(--cy));
  }

  .home-step__node {
    position: absolute;
    top: -4px;
    left: -48px;
  }

}

/* ---------------------------------------------------------------------------------------------
   ≤ 600 px (telemóvel)
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .home-hero__grid {
    gap: 48px;
  }

  .home-hero__actions .btn {
    flex: 1 1 100%;
  }

  /* O painel: o talão por cima das verificações */
  .home-panel__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-panel__stage {
    display: flex;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-mini {
    width: 200px;
  }

  .home-benefit {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .home-benefit:first-child {
    border-top: 0;
  }

  .home-uncertain {
    padding: 16px;
  }

}

/* ---- pages/how.css ---- */
/* =============================================================================================
   how.css — Como funciona (rebrand Ticvero, fase 4), contado do lado do cliente: os quatro passos
   (envio, validação, revisão por uma pessoa quando é preciso, decisão) e, a seguir, o que
   verificamos, com exemplos (QR fiscal, loja e produtos, repetidos, adulteração).
   Desktop primeiro. Pontos de quebra: 900 px, 600 px e, para os lados a lado largos, 1280 px.
   Papel (.paper / .receipt__paper) só nos objetos impressos; o resto é UI do tema (tokens de site.css).
   Todos os seletores levam uma classe .how-…
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   Peças comuns da página
   --------------------------------------------------------------------------------------------- */

/* «// processo»: a etiqueta por cima de um título */
.how-eyebrow {
  margin-bottom: var(--sp-4);
}

/* Quadrados de estado por produto (a folha do passo 3) */
.how-sq {
  flex: none;
  width: 20px;
  height: 20px;
}

.how-sq--person rect {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
}

.how-sq--person circle,
.how-sq--person path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.how-sq--done rect {
  fill: var(--cy);
  rx: 4px;
}

.how-sq--done path {
  fill: none;
  stroke: var(--on-cy);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Lista de valores (dados do QR, somas) */
.how-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 8px;
}

.how-dl dt {
  color: var(--text);
}

.how-dl dd {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.how-dl--sum dd {
  text-align: right;
}

/* Estado em linha com texto que pode partir em duas linhas: o ponto fica na primeira */
.how-stores__status::before,
.how-stores__result--out::before,
.how-tr2__callout::before,
.how-case__review::before,
.how-sends__table .status::before,
.how-pcase__result::before {
  align-self: flex-start;
  margin-top: 5.5px;
}

.how-stores__status,
.how-stores__result--out,
.how-tr2__callout,
.how-case__review,
.how-sends__table .status,
.how-pcase__result {
  align-items: flex-start;
}

/* Uma palavra composta com hífen que não pode partir no hífen (p.ex. «Steuer-QR-Code» num título) */
.how-nowrap {
  white-space: nowrap;
}

/* Cabeça de um passo: o número (mono, ciano, numa pílula com brilho, como os nós do processo no
   Início) por cima do H2. */
.how-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.how-head__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--cy);
  border-radius: var(--r-pill);
  box-shadow: 0 0 14px var(--cy-glow);
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.how-head__num::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cy);
}

.how-head__title {
  min-width: 0;
}

/* ---------------------------------------------------------------------------------------------
   1. Abertura (.page-intro) e a faixa dos quatro passos
   --------------------------------------------------------------------------------------------- */
.how-hero__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: var(--sp-5);
}

.how-hero__title {
  grid-column: 1 / span 10;
}

.how-hero__lead {
  grid-column: 1 / span 7;
  margin-top: var(--sp-5);
}

.how-hero__steps {
  grid-column: 1 / -1;
  margin-top: var(--space-object);
}

.how-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
  padding: 24px 24px 28px;
}

.how-step + .how-step {
  border-left: 1px solid var(--line);
}

.how-step__num {
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.how-step__title {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* A ligação do título: alvo com 44 px de altura sem mexer no ritmo da linha */
.how-step__title a {
  display: inline-block;
  margin-block: -8px;
  padding-block: 8px;
}

.how-step__text {
  margin-top: var(--sp-2);
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------------------------
   2. Passo 1: o consumidor envia o talão (título | parágrafo, alinhados pela base)
   --------------------------------------------------------------------------------------------- */
.how-send__grid {
  align-items: end;
}

.how-send__head {
  grid-column: 1 / span 7;
}

.how-send__body {
  grid-column: 8 / span 5;
}

.how-send__more {
  margin-top: var(--sp-3);
}

@media (min-width: 901px) and (max-width: 1279px) {
  .how-send__head {
    grid-column: 1 / span 6;
  }

  .how-send__body {
    grid-column: 7 / span 6;
  }
}

/* ---------------------------------------------------------------------------------------------
   3. Passo 2: validamos automaticamente (o TR-1 em 1–5, título e anotações em 7–12)
   A última linha é flexível: se o talão for mais alto do que a coluna do texto, o espaço que
   sobra vai para o fim, e o texto fica junto do título.
   --------------------------------------------------------------------------------------------- */
.how-check__grid {
  grid-template-rows: repeat(3, auto) minmax(0, 1fr);
}

.how-check__head {
  grid-column: 7 / span 6;
  grid-row: 1;
}

.how-check__lead {
  grid-column: 7 / span 6;
  grid-row: 2;
  margin-top: var(--space-title);
}

.how-check__guide {
  margin-top: var(--sp-4);
}

.how-check__figure {
  grid-column: 1 / span 5;
  grid-row: 1 / span 4;
  padding-top: 8px;
}

/* o carimbo do TR-1 (posição a partir do canto do talão; no telemóvel, ver o fim do ficheiro) */
.how-check__stamp {
  --stamp-x: 118px;
  --stamp-y: 530px;
}

.how-check__notes {
  grid-column: 7 / span 6;
  grid-row: 3;
  max-width: var(--measure);
  margin-top: var(--space-object-sm);
}

.how-check__notes .note__title a {
  display: inline-block;
  margin-block: -8px;
  padding-block: 8px;
}

.how-check__verdict {
  grid-column: 7 / span 6;
  grid-row: 4;
  align-self: start;
  max-width: var(--measure);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------------------------
   4. Passo 3: uma pessoa revê, quando é preciso (texto em 1–6, a folha do caso em 8–12)
   A 2.ª linha é flexível: a folha, mais alta, não afasta o texto do título.
   --------------------------------------------------------------------------------------------- */
.how-person__grid {
  grid-template-rows: auto minmax(0, 1fr);
}

.how-person__head {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.how-person__text {
  grid-column: 1 / span 6;
  grid-row: 2;
  margin-top: var(--space-title);
}

/* Quando acontece: uma frase (se um caso vai a revisão decidimos nós; as regras não se mostram) */
.how-person__when {
  margin-top: var(--sp-5);
}

.how-person__figure {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
  align-self: center;
}

.how-case {
  padding: 32px;
}

.how-case__title {
  color: var(--ink);
  font-size: var(--fs-lead);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.how-case__intro {
  margin-top: var(--sp-1);
  color: var(--text);
  font-size: var(--fs-small);
}

.how-case__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.how-case__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.how-case__item .how-sq {
  margin-top: 2px;
}

.how-case__name {
  color: var(--ink);
  font-weight: 600;
}

.how-case__name::after {
  content: " ";
}

.how-case__state {
  color: var(--text);
}

.how-case__review {
  margin-top: var(--sp-5);
}

.how-case__decision {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.how-case__result {
  flex: 1 1 12em;
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 901px) and (max-width: 1279px) {
  .how-person__figure {
    grid-column: 7 / span 6;
  }
}

/* ---------------------------------------------------------------------------------------------
   5. Passo 4: a decisão chega à marca (e a marca pode contestá-la), e os quatro resultados em
      cartões com a barra do estado
   --------------------------------------------------------------------------------------------- */
.how-results__head {
  grid-column: 1 / span 8;
}

.how-results__lead {
  grid-column: 1 / span 6;
  margin-top: var(--space-title);
}

/* onde chega a decisão: dois canais (o sistema da marca, por API ou webhook, e o relatório mensal) */
.how-where {
  grid-column: 1 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.how-where__item {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--cy);
}

.how-where dt {
  color: var(--ink);
  font-weight: 600;
}

.how-where dd {
  margin-top: var(--sp-1);
  max-width: 34ch;
  color: var(--text);
}

/* a contestação: a marca pede a revisão e a decisão nova chega pelos mesmos canais */
.how-results__appeal {
  grid-column: 1 / span 6;
  margin-top: var(--sp-6);
}

.how-results__cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--space-object-sm);
}

.how-result {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}

.how-result--review {
  --signal: var(--muted);
}

.how-result__status {
  margin-bottom: var(--sp-1);
}

/* «En cours de / vérification» (fr) vem em duas linhas para o carimbo: aqui fica numa linha só */
.how-result__status .stamp__line2 {
  display: inline;
  margin: 0;
  font-size: inherit;
  letter-spacing: inherit;
}

.how-result__status .stamp__line2:not(:last-child) {
  margin-right: 0.45em;
}

.how-result__text {
  text-wrap: pretty;
}

.how-result .how-result__here {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.how-result__here strong {
  color: var(--ink);
}

@media (max-width: 1279px) {
  .how-results__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------------------------------------
   7. O QR fiscal: texto | os dados do QR (o QR impresso num pedaço de papel)
   --------------------------------------------------------------------------------------------- */
.how-qr__text {
  grid-column: 1 / span 6;
}

.how-qr__lead {
  margin-top: var(--space-title);
}

.how-qr__more {
  margin-top: 16px;
}

.how-qr__figure {
  grid-column: 8 / span 5;
}

.how-qr__sheet {
  padding: 32px;
}

.how-qr__data {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.how-qr__tile {
  display: block;
  flex: none;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: var(--shadow-low-box);
}

.how-qr__code {
  width: 135px;
  height: 135px;
}

.how-qr__dl {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-small);
}

.how-qr__check {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}

.how-qr__sum {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-variant-numeric: tabular-nums;
}

.how-qr__ok {
  margin-top: 12px;
}

@media (min-width: 901px) and (max-width: 1279px) {
  .how-qr__figure {
    grid-column: 7 / span 6;
  }

  .how-qr__code {
    width: 108px;
    height: 108px;
  }
}

/* ---------------------------------------------------------------------------------------------
   8. Loja, produtos e preço (três objetos, cada um com a sua forma)
   --------------------------------------------------------------------------------------------- */
.how-camp__eyebrow {
  grid-column: 1 / -1;
}

.how-camp__title {
  grid-column: 1 / span 8;
}

.how-camp__lead {
  grid-column: 1 / span 6;
  margin-top: var(--space-title);
}

.how-camp__item {
  margin-top: var(--space-object-sm);
}

.how-camp__item--stores {
  grid-column: 1 / span 4;
}

.how-camp__item--find {
  grid-column: 5 / span 4;
}

.how-camp__item--band {
  grid-column: 9 / span 4;
}

.how-camp__text {
  margin-top: 8px;
  color: var(--text);
  font-size: var(--fs-small);
}

.how-camp__figure {
  margin-top: 24px;
}

/* 8a. A mesma loja escrita de três formas: tiras de papel, chaveta ciano, resultado.
   As tiras nunca encolhem abaixo da largura impressa; o resultado fica com 38 % da linha (menos, se
   não couber), por isso os dois resultados ficam alinhados sempre que há espaço. */
.how-stores {
  max-width: 420px;
}

.how-stores__row {
  display: flex;
  align-items: center;
}

.how-stores__row--out {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.how-stores__slips {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 16px;
}

/* chaveta que junta as três formas da mesma loja */
.how-stores__slips::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  right: 16px;
  border-right: 1.5px solid var(--cy);
}

/* traço da chaveta até ao resultado */
.how-stores__slips::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.75px);
  right: 0;
  width: 16px;
  border-top: 1.5px solid var(--cy);
}

.how-stores__item {
  display: flex;
  align-items: center;
}

.how-stores__item::after {
  content: "";
  flex: 1 0 8px;
  margin-left: 4px;
  border-top: 1.5px solid var(--cy);
}

.how-stores__item--2 {
  padding-left: 28px;
}

.how-stores__item--3 {
  padding-left: 10px;
}

.how-stores__slips--out {
  flex-direction: row;
  align-items: center;
  padding-right: 0;
}

.how-stores__slips--out::before {
  content: none;
}

.how-stores__slips--out::after {
  position: static;
  flex: 1 0 8px;
  width: auto;
  margin-left: 4px;
  border-top: 1.5px dashed var(--muted);
}

/* uma tira de cabeçalho de talão: papel (.paper), impressão mono */
.how-slip {
  display: inline-block;
  flex: none;
  padding: 7px 12px;
  border-radius: 2px;
  background: var(--paper-shade);
  box-shadow: var(--shadow-low-box);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.how-stores__result {
  flex: 0 1 38%;
  min-width: 0;
  position: relative;
  padding-left: 16px;
}

/* o ponto onde a chaveta chega */
.how-stores__result::before {
  content: "";
  position: absolute;
  left: -2px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 10px var(--cy-glow);
}

.how-stores__result--out::before {
  position: static;
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: none;
}

.how-stores__name {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
}

.how-stores__status {
  margin-top: 4px;
}

/* 8b. Quatro maneiras de encontrar um produto */
.how-find {
  padding: 8px 24px;
}

.how-find__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 12px;
  align-items: start;
  padding: 16px 0;
  font-size: var(--fs-small);
}

.how-find__row + .how-find__row {
  border-top: 1px solid var(--line);
}

.how-find__row dt {
  grid-column: 1 / span 2;
}

.how-find__row dd {
  grid-column: 3 / span 3;
  color: var(--text);
}

.how-find__product {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.how-chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--cy-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 19px;
  white-space: nowrap;
}

/* 8c. A régua de preços: estica na largura; a altura e os traços não mudam */
.how-band {
  padding: 16px 24px;
}

.how-ruler {
  position: relative;
  height: 132px;
}

.how-ruler__art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 132px;
  overflow: visible;
}

.how-ruler__art * {
  vector-effect: non-scaling-stroke;
}

.how-ruler__band {
  fill: var(--cy-soft);
  stroke: var(--cy);
  stroke-width: 1.5;
}

.how-ruler__axis {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.how-ruler__in {
  stroke: var(--cy);
  stroke-width: 2;
}

.how-ruler__out {
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

.how-ruler__price {
  position: absolute;
  top: 8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

/* x na régua de 352: 24,90 € → 257,2; 18,50 € → 78 */
.how-ruler__price--in {
  left: 73.068%;
}

.how-ruler__price--out {
  left: 22.159%;
}

.how-ruler__tick {
  position: absolute;
  top: 106px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

.how-ruler__tick--edge {
  color: var(--ink);
  font-weight: 700;
}

.how-ruler__tick--16 {
  left: 2.273%;
}

.how-ruler__tick--22 {
  left: 50%;
}

.how-ruler__tick--26 {
  left: 81.818%;
}

.how-ruler__tick--28 {
  left: 97.727%;
}

/* 901–1279 px: cada objeto numa linha, texto à esquerda e objeto à direita */
@media (min-width: 901px) and (max-width: 1279px) {
  .how-camp__item--stores,
  .how-camp__item--find,
  .how-camp__item--band {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .how-camp__head {
    grid-column: 1 / span 5;
  }

  .how-camp__figure {
    grid-column: 7 / span 6;
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------------------------------------
   9. Repetidos: as duas fotografias (envios 3 e 5) e a tabela dos cinco envios
   --------------------------------------------------------------------------------------------- */
.how-sends__eyebrow {
  grid-column: 1 / -1;
}

.how-sends__title {
  grid-column: 1 / span 8;
}

.how-sends__lead {
  grid-column: 1 / span 6;
  margin-top: var(--space-title);
}

/* Dois cartões lado a lado; cada um ocupa duas linhas da grelha (subgrid): a do palco e a da legenda,
   para as duas legendas começarem à mesma altura. */
.how-photos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px var(--col-gap);
  margin-top: var(--space-object-sm);
}

.how-pcase {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* O palco: fundo de pontos (como o painel do Início); a composição das fotografias depende da largura
   dele (ver o @container no fim desta secção) */
.how-pcase__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-2);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 14px 14px;
  container: how-pcase / inline-size;
}

.how-pcase__art {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 376px;
}

.how-pcase__art--a {
  height: 360px;
}

.how-pcase__caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px 24px;
}

.how-pcase__doc {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

.how-pcase__title {
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
}

.how-pcase__result {
  text-wrap: balance;
}

/* A fotografia de um talão: papel térmico cortado (sem serrilhado), sombra baixa, impressão literal.
   Por omissão o papel estreito (200 px, o palco do telemóvel); o largo (240 px) no @container. A altura
   das linhas (19 px) é a mesma nos dois: as chamadas ficam à mesma altura. */
.how-photo {
  position: absolute;
  width: 200px;
  padding: 16px;
  background: var(--paper-shade);
  box-shadow: var(--shadow-low-box);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 19px;
  font-weight: 400;
  white-space: nowrap;
}

.how-photo .receipt__store {
  font-size: 11px;
}

.how-photo .receipt__total {
  font-size: 12.5px;
}

.how-photo--first {
  top: 0;
  left: 8px;
  transform: rotate(-4deg);
}

.how-photo--second {
  top: 64px;
  left: calc(100% - 208px);
}

.how-photo--solo {
  top: 0;
  left: 0;
}

.how-photo .receipt__band::before {
  inset: -3px -8px;
}

.how-photo__gap {
  height: 8px;
}

/* «FATURA SIMPLIFICADA» e o fim do talão do caso a só aparecem no papel largo */
.how-photo__long,
.how-photo__desk {
  display: none;
}

.how-photo__tail {
  height: 56px;
}

/* Carimbos das fotografias: decorativos (aria-hidden); a informação está no estado da legenda */
.how-pcase__stamp {
  position: absolute;
  z-index: 2;
  width: max-content;
}

.how-pcase__stamp .stamp__inner {
  font-size: 1.0625rem;
}

.how-pcase__stamp--a {
  top: 272px;
  right: 8px;
}

.how-pcase__stamp--c {
  top: 290px;
  left: 12px;
}

/* Chamadas ao lado da fotografia: uma linha curta e o texto. A linha começa 8 px antes da borda da
   fotografia e o texto 4 px depois do fim da linha. */
.how-pcase__line {
  position: absolute;
  left: 192px;
  width: 16px;
  height: 0;
  border-top: 1.5px solid currentColor;
}

.how-pcase__note {
  position: absolute;
  left: 212px;
  width: calc(100% - 212px);
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 600;
}

/* Num telemóvel de 360 px sobram cerca de 90 px para a chamada: uma palavra comprida hifeniza em vez de
   sair do ecrã. */
.how-pcase__note > span {
  display: block;
  min-width: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

.how-pcase__line--counted {
  top: 145px;
  color: var(--muted);
}

.how-pcase__note--counted {
  top: 135px;
  color: var(--text);
}

.how-pcase__line--now {
  top: 183px;
  color: var(--cy);
}

.how-pcase__note--now {
  top: 173px;
  color: var(--cy-ink);
}

/* O papel largo, com o palco a 420 px ou mais */
@container how-pcase (min-width: 420px) {
  .how-pcase__art {
    height: 392px;
  }

  .how-pcase__art--a {
    height: 472px;
  }

  .how-photo {
    width: 240px;
    font-size: 11px;
  }

  .how-photo .receipt__store {
    font-size: 12px;
  }

  .how-photo .receipt__total {
    font-size: 13.5px;
  }

  .how-photo--second {
    top: 84px;
    left: calc(100% - 240px);
  }

  .how-photo__long {
    display: inline;
  }

  .how-photo__desk {
    display: block;
  }

  .how-photo__tail {
    height: 64px;
  }

  .how-pcase__stamp .stamp__inner {
    font-size: 1.25rem;
  }

  .how-pcase__stamp--a {
    top: 380px;
  }

  .how-pcase__stamp--c {
    top: 300px;
  }

  .how-pcase__line {
    left: 232px;
  }

  .how-pcase__note {
    left: 252px;
    width: calc(100% - 252px);
    font-size: var(--fs-body);
  }
}

.how-photos__note {
  grid-column: 1 / -1;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.how-sends__sheet {
  grid-column: 1 / -1;
  margin-top: var(--space-object-sm);
  padding: 32px 40px 24px;
  overflow-x: auto;
}

.how-sends__table thead th:nth-child(1) {
  width: 8%;
}

.how-sends__table thead th:nth-child(2),
.how-sends__table thead th:nth-child(4) {
  width: 34%;
}

.how-sends__table thead th:nth-child(3) {
  width: 24%;
}

.how-sends__table tbody th {
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-weight: 700;
}

.how-sends__why {
  color: var(--text);
}

/* ---------------------------------------------------------------------------------------------
   10. Adulteração: o TR-2 (FS A/1301) e as contas que não batem
   --------------------------------------------------------------------------------------------- */
.how-tamper__text {
  grid-column: 7 / span 6;
  grid-row: 1;
}

.how-tamper__figure {
  grid-column: 1 / span 5;
  grid-row: 1;
  padding-top: 8px;
}

.how-tamper__figure > figcaption {
  max-width: 302px;
}

.how-tamper__lead {
  margin-top: var(--space-title);
}

.how-tamper__dl {
  max-width: 400px;
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

.how-tamper__bad {
  margin-top: 12px;
}

.how-tamper__more {
  margin-top: 24px;
}

.how-tamper .how-tr2 {
  margin-inline: 0;
}

/* a linha acrescentada, emoldurada a vermelho dentro da faixa lida (tinta do papel) */
.how-tr2__added {
  position: relative;
}

.how-tr2__added::after {
  content: "";
  position: absolute;
  inset: -2px -8px;
  border: 1.5px solid var(--red);
}

/* a legenda da linha acrescentada: por baixo do talão por omissão */
.how-tr2__callout {
  margin-top: 16px;
}

/* ao lado do talão, ligada à linha por um traço, quando há espaço à direita */
@media (min-width: 1280px), (min-width: 601px) and (max-width: 900px) {
  .how-tr2__callout {
    position: absolute;
    top: 203px;
    left: calc(100% + 22px);
    width: 200px;
    margin-top: 0;
  }

  .how-tr2__callout::after {
    content: "";
    position: absolute;
    top: calc(9px - 0.75px);
    left: -20px;
    width: 12px;
    border-top: 1.5px solid var(--red);
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 900 px: as colunas empilham; a faixa dos passos fica de pé
   --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .how-hero__title,
  .how-hero__lead,
  .how-send__head,
  .how-send__body,
  .how-qr__text,
  .how-camp__title,
  .how-camp__lead,
  .how-sends__title,
  .how-sends__lead,
  .how-results__head,
  .how-results__lead,
  .how-results__appeal {
    grid-column: 1 / -1;
  }

  /* a faixa de pé: um passo por linha, o número à esquerda */
  .how-hero__steps {
    max-width: var(--measure);
  }

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

  .how-step {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: 20px;
  }

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

  .how-step__num {
    flex: none;
    width: 24px;
    margin-top: 3px;
  }

  .how-step__body {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* passo 1 */
  .how-send__body {
    margin-top: var(--space-title);
  }

  .how-check__grid,
  .how-person__grid {
    grid-template-rows: none;
  }

  /* passo 2: título → texto → talão → anotações */
  .how-check__head,
  .how-check__lead,
  .how-check__figure,
  .how-check__notes,
  .how-check__verdict {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .how-check__figure {
    margin-top: var(--space-object);
    padding-top: 0;
  }

  /* passo 3: título → texto → folha */
  .how-person__head,
  .how-person__text,
  .how-person__figure {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .how-person__figure {
    width: 100%;
    max-width: var(--measure);
    margin-top: var(--space-object);
  }

  /* passo 4 */
  .how-where {
    grid-column: 1 / -1;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    max-width: var(--measure);
  }

  .how-where dd {
    max-width: none;
  }

  .how-qr__figure {
    grid-column: 1 / -1;
    width: 100%;
    max-width: var(--measure);
    margin-top: var(--space-object);
  }

  .how-camp__item--stores,
  .how-camp__item--find,
  .how-camp__item--band {
    grid-column: 1 / -1;
    max-width: var(--measure);
    margin-top: var(--space-object);
  }

  /* repetidos: as fotografias uma por baixo da outra */
  .how-photos {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--measure);
  }

  .how-tamper__text {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .how-tamper__figure {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: var(--space-object);
    padding-top: 0;
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 600 px: telemóvel
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  /* o carimbo do TR-1 mais à esquerda: a 118 px saía do ecrã em 360-375 px (de, es, fr) */
  .how-check__stamp {
    --stamp-x: 64px;
    --stamp-y: 528px;
  }

  .how-step {
    padding: 16px;
  }

  .how-case {
    padding: 24px 16px;
  }

  /* QR: o código por cima dos dados */
  .how-qr__sheet {
    padding: 24px 16px;
  }

  .how-qr__data {
    flex-direction: column;
    gap: 16px;
  }

  .how-qr__dl {
    align-self: stretch;
  }

  /* loja fora da campanha: o resultado desce para baixo da tira, a toda a largura */
  .how-stores__row--out {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .how-stores__slips--out::after {
    content: none;
  }

  .how-stores__result--out {
    flex: 1 1 100%;
    padding-left: 0;
  }

  .how-find {
    padding: 8px 16px;
  }

  .how-find__row {
    display: block;
  }

  .how-find__row dd {
    margin-top: 8px;
  }

  .how-band {
    padding: 16px;
  }

  /* repetidos: o palco quase sem margens, para as chamadas terem espaço */
  .how-pcase__stage {
    padding: 24px 10px;
  }

  .how-pcase__caption {
    padding: 16px;
  }

  /* repetidos: cada envio num bloco; o número leva o nome da coluna */
  .how-sends__sheet {
    padding: 24px 16px 16px;
  }

  .how-sends__table tbody th[data-label]::before {
    content: attr(data-label) " ";
  }

  /* adulteração: o talão centrado */
  .how-tamper .how-tr2 {
    margin-inline: auto;
  }

  .how-tamper__figure > figcaption {
    margin-inline: auto;
    text-align: center;
  }

  .how-tr2__callout {
    display: flex;
    justify-content: center;
  }

  /* resultados: um por linha */
  .how-results__cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------------------------
   Botão da abertura, só no telemóvel: em ≤ 600 px o cabeçalho não tem o «Pedir demonstração»
   (SYSTEM 3.4) e o primeiro vem logo a seguir ao parágrafo de abertura, a toda a largura.
   --------------------------------------------------------------------------------------------- */
.how-hero__action {
  display: none;
}

@media (max-width: 600px) {
  .how-hero__action {
    display: block;
    grid-column: 1 / -1;
    margin-top: var(--sp-5);
  }
}

/* ---- pages/integration.css ---- */
/* =============================================================================================
   Integração (id integration, prefixo int-). Design de origem: Integracao.dc.html; rebrand Ticvero (handoff v3).
   A coisa memorável: o talão (papel claro nos dois temas) ligado ao aviso por webhook por três fios ciano.
   Os blocos de código são a janela sempre escura do handoff §3.6 (.code-window + .codeblock, realce tk-*).
   Pontos de quebra: 1280 (largo), 900 (empilha; sem fios), 600 (telemóvel).
   ============================================================================================= */

/* Código em linha: mono (site.css), na cor do título; não parte no hífen («X-Api-Key»).
   :where() deixa a especificidade baixa, para cada contexto poder mudar a cor. */
.page-integration :where(:not(pre) > code) {
  color: var(--ink);
  white-space: nowrap;
}

/* Etiqueta «// palavra» antes de cada título de secção */
.int-eyebrow {
  margin-bottom: var(--sp-3);
}

/* Nas secções com grelha, a etiqueta ocupa uma linha inteira */
.int-eyebrow--row {
  grid-column: 1 / -1;
}

/* A barra das janelas de código: o nome do ficheiro (como um separador ativo) e o estado.
   Altura fixa: no palco, os fios contam com ela (48 px + 1 px de borda). */
.int-window__bar {
  box-sizing: border-box;
  height: 48px;
}

.int-window__file {
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--code-tab);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------------------------
   1. Abertura (esquema A, fundo .page-intro) e palco
   --------------------------------------------------------------------------------------------- */
.int-hero__grid {
  row-gap: var(--space-title);
  align-items: start;
}

.int-hero__eyebrow {
  grid-column: 1 / -1;
}

.int-hero__title {
  grid-column: 1 / span 8;
}

.int-hero__intro {
  grid-column: 1 / span 5;
}

.int-hero__cta {
  margin-top: var(--sp-6);
}

/* Os factos: um cartão do tema, uma linha por facto (termo em mono, valor à direita) */
.int-facts {
  grid-column: 7 / span 6;
  padding: 4px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.int-facts__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--sp-4);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.int-facts__row:last-child {
  border-bottom: 0;
}

.int-facts__term {
  grid-column: 1 / span 2;
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.int-facts__value {
  grid-column: 3 / span 4;
  font-weight: 500;
  color: var(--ink);
}

/* Uma frase em vez de um valor (a documentação segue com as credenciais): peso normal */
.int-facts__value--note {
  font-weight: 400;
  color: var(--text);
}

/* O palco. Até 1279 px: o talão centrado, por baixo o aviso (612 px no máximo) e a legenda; sem fios.
   ≥ 1280 px (ver o fim do ficheiro): talão nas colunas 1–4, aviso encostado à direita (612 px, a
   largura que o JSON pede sem scroll) e os fios entre os dois. As alturas são fixas (linhas de 19 px
   no talão, de 24 px no código, barra da janela de 49 px); só a largura dos fios muda. */
.int-stage {
  --int-slip-pad: 0px;
  position: relative;
  margin: var(--space-object) 0 0;
}

.int-stage__slip {
  position: relative;
  width: min(302px, 100%);
  margin-inline: auto;
  padding-top: var(--int-slip-pad);
}

.int-stage__slip .receipt {
  margin-inline: 0;
}

/* Faixas só nas três linhas que contam, separadas por 2 px (o design: −3/1, 1/1, 1/−3) */
.int-stage .int-band--first::before {
  inset: -3px -10px 1px;
}

.int-stage .int-band--mid::before {
  inset: 1px -10px;
}

.int-stage .int-band--last::before {
  inset: 1px -10px -3px;
}

.int-stage__note {
  margin-top: var(--sp-5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  text-wrap: balance; /* em francês a legenda parte em duas: sem uma palavra sozinha na segunda */
}

/* «não conta»: à esquerda do talão, na altura de SACO PAPEL (centro da linha a 290,5 px do papel) */
.int-stage__skip {
  position: absolute;
  top: calc(var(--int-slip-pad) + 280px);
  right: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  white-space: nowrap;
}

.int-stage__tick {
  flex: none;
  width: 16px;
  height: 0;
  border-top: 1.5px dashed var(--line-2);
}

.int-stage__wires {
  display: none;
}

.int-stage__svg {
  position: absolute;
  top: 0;
  left: 4px;
  width: calc(100% - 4px);
  height: 680px;
  overflow: visible;
}

.int-stage__svg path {
  fill: none;
  stroke: var(--cy);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px var(--cy-glow));
}

.int-stage__dot {
  position: absolute;
  left: 0.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 10px var(--cy-glow);
}

.int-stage__dot--end {
  left: auto;
  right: -4px;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--cy-glow);
}

.int-stage__dot--a { top: 362px; }
.int-stage__dot--b { top: 392.5px; }
.int-stage__dot--c { top: 413.5px; }
.int-stage__dot--d { top: 441px; }
.int-stage__dot--e { top: 513px; }
.int-stage__dot--f { top: 585px; }

.int-stage__hook,
.int-stage__caption {
  width: min(100%, 612px);
  min-width: 0;
  margin-inline: auto;
}

.int-stage__hook {
  margin-top: var(--space-object);
  box-shadow: var(--shadow-panel);
}

/* O aviso: linhas de 24 px; faixas ciano atrás dos três objetos de expectedEans (linhas 15–17, 18–20 e 21–23) */
.int-hook {
  --int-pad: 24px;
  --int-band: color-mix(in srgb, var(--code-true) 12%, transparent);
  padding-top: var(--int-pad);
  line-height: 24px;
  background:
    linear-gradient(var(--int-band), var(--int-band)) 0 calc(var(--int-pad) + 337px) / 100% 70px no-repeat,
    linear-gradient(var(--int-band), var(--int-band)) 0 calc(var(--int-pad) + 409px) / 100% 70px no-repeat,
    linear-gradient(var(--int-band), var(--int-band)) 0 calc(var(--int-pad) + 481px) / 100% 70px no-repeat,
    var(--code-bg);
  background-attachment: local;
}

.int-stage__caption {
  margin-top: var(--sp-3);
  color: var(--text);
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------------------------------
   Listas de definições (o que se envia; confirmação e reenvio)
   --------------------------------------------------------------------------------------------- */
.int-defs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: var(--measure);
  margin-top: var(--sp-6);
}

.int-defs__term {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: 600;
  color: var(--ink);
}

/* Termo · pontilhado · campo. Quando não cabem numa linha (telemóvel, alemão, francês), o pontilhado e o
   campo passam juntos para a linha seguinte, a toda a largura: o termo nunca fica espremido. */
.int-defs__term--leader {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--sp-2);
}

.int-defs__field {
  display: flex;
  flex: 1 0 auto;
  align-items: baseline;
  gap: var(--sp-2);
}

.int-defs__leader {
  flex: 1 1 16px;
  min-width: 16px;
  border-bottom: 1.5px dotted var(--line-2);
}

.int-defs__term--leader code {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 400;
  color: var(--cy-ink);
}

.int-defs__optional {
  font-weight: 400;
  color: var(--muted);
}

.int-defs__def {
  margin-top: var(--sp-1);
  color: var(--text);
}

/* ---------------------------------------------------------------------------------------------
   2. O que se envia (esquema D)
   --------------------------------------------------------------------------------------------- */
.int-send__text {
  grid-column: 1 / span 5;
}

.int-send__intro {
  margin-top: var(--space-title);
}

.int-send__repeat {
  margin-top: var(--sp-6);
}

/* O bloco de código encosta à direita com 612 px (as linhas de 60 caracteres cabem sem scroll) */
.int-send__figure {
  grid-column: 6 / span 7;
  justify-self: end;
  width: min(100%, 612px);
  min-width: 0;
}

/* ---------------------------------------------------------------------------------------------
   3. Em fila, com aviso por webhook (esquema C: objeto 1–5 | texto 7–12)
   --------------------------------------------------------------------------------------------- */
.int-modes__text {
  grid-column: 7 / span 6;
  grid-row: 1;
}

.int-modes__lead {
  margin-top: var(--space-title);
}

.int-modes__p {
  margin-top: var(--sp-4);
}

.int-modes__lead + .int-modes__p {
  margin-top: var(--sp-5);
}

.int-modes__figure {
  grid-column: 1 / span 5;
  grid-row: 1;
  margin: 0;
  padding: var(--sp-6);
}

/* Um só caminho, o envio em fila (o «na hora» não se anuncia enquanto o Rui pondera; 2026-09-28): uma coluna, com as
   linhas em subgrid como quando havia duas */
.int-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(6, auto);
}

.int-flow__col {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  min-width: 0;
}

.int-flow__head {
  padding-bottom: var(--sp-5);
}

.int-flow__path {
  margin-top: var(--sp-1);
}

.int-flow__path code {
  color: var(--cy-ink);
}

.int-flow__steps {
  display: grid;
  grid-row: 2 / -1;
  grid-template-rows: subgrid;
}

.int-step {
  position: relative;
  min-height: 72px;
  padding: 0 0 var(--sp-3) 28px;
}

/* o ponto: cheio (ciano, com brilho) quando alguém envia ou recebe; vazio enquanto a plataforma verifica */
.int-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 10px var(--cy-glow);
}

.int-step--work::before {
  border: 2px solid var(--line-2);
  background: var(--surface);
  box-shadow: none;
}

/* o traço até ao ponto seguinte: contínuo com a chamada aberta, tracejado na fila */
.int-step::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -6px;
  left: 5px;
  border-left: 2px solid var(--cy);
}

.int-step--queue::after {
  border-left: 2px dashed var(--line-2);
}

.int-step:last-child::after {
  content: none;
}

.int-step__title {
  font-weight: 600;
  color: var(--ink);
}

.int-step__text {
  color: var(--muted);
  font-size: var(--fs-small);
}

.int-flow__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: var(--fs-small);
}

/* a amostra do traço fica na primeira linha da legenda, mesmo quando esta parte em duas (alemão) */
.int-flow__key {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.int-flow__swatch {
  flex: none;
  margin-top: 11px;
  width: 24px;
  height: 0;
  border-top: 2px solid var(--cy);
}

.int-flow__swatch--queue {
  border-top: 2px dashed var(--line-2);
}

/* ---------------------------------------------------------------------------------------------
   4. O que volta (esquema B)
   --------------------------------------------------------------------------------------------- */
.int-result__title {
  grid-column: 1 / span 8;
}

.int-result__lead {
  grid-column: 1 / span 6;
  margin-top: var(--space-title);
}

.int-result__sheet {
  margin-top: var(--space-object);
}

/* a tabela nunca rebenta a folha: em larguras intermédias o scroll é da própria tabela */
.int-result__scroll {
  overflow-x: auto;
}

/* no telemóvel a legenda parte em duas linhas: sem «JSON» sozinho na segunda */
.int-table caption {
  text-wrap: balance;
}

.int-table :where(:not(pre) > code) {
  color: inherit;
}

.int-result__more {
  margin-top: var(--space-object);
  row-gap: var(--sp-6);
}

/* Três campos em duas colunas: as linhas e a pontuação à esquerda, um por baixo do outro;
   o motivo, o mais longo, ocupa a coluna da direita nas duas linhas da grelha */
.int-result__lines {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.int-result__score {
  grid-column: 1 / span 5;
  grid-row: 2;
}

.int-result__reason {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
}

.int-result__p {
  margin-top: var(--sp-2);
}

/* ---------------------------------------------------------------------------------------------
   5. Pausa de ação (esquema G)
   --------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------
   6. Confirmação, reenvio e anulação (esquema D)
   --------------------------------------------------------------------------------------------- */
.int-confirm__text {
  grid-column: 1 / span 5;
}

.int-confirm__figure {
  grid-column: 6 / span 7;
  justify-self: end;
  width: min(100%, 612px);
  min-width: 0;
}

/* ---------------------------------------------------------------------------------------------
   7. O que já vem feito (esquema F: tríptico com três formas; as ilustrações partilham a altura):
      o diagrama da importação, a folha com o catálogo e as lojas, o fim do talão com o QR fiscal
   --------------------------------------------------------------------------------------------- */
.int-done__title {
  grid-column: 1 / span 8;
}

.int-done__grid {
  grid-template-rows: auto auto;
  margin-top: var(--space-object-sm);
}

.int-done__item {
  display: grid;
  grid-column: span 4;
  grid-row: span 2;
  grid-template-rows: subgrid;
  margin: 0;
  min-width: 0;
}

.int-done__art {
  min-height: 216px;
}

.int-done__caption {
  margin-top: var(--sp-5);
}

.int-done__text {
  margin-top: var(--sp-2);
}

/* Importação automática: diagrama (o sistema da marca é uma caixa do tema; a seta ciano) */
.int-import {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.int-import__system {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.int-import__icon {
  flex: none;
  width: 20px;
  height: 24px;
  color: var(--muted);
}

.int-import__flow {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 120px;
  padding-left: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.int-import__arrow {
  flex: none;
  width: 16px;
  height: 96px;
  color: var(--cy);
}

.int-import__product {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
}

/* O catálogo e as lojas: uma folha pequena de papel (.paper: claro nos dois temas), o único objeto inclinado da
   secção. Duas listas curtas: o EAN ao lado do nome do produto (um nome longo parte dentro da sua coluna), as lojas
   por baixo. 344 px no máximo: inclinada, continua abaixo dos 358 px no telemóvel. */
.int-lists {
  width: min(100%, 344px);
  padding: 20px 20px 18px;
  border-radius: 3px;
  background: var(--paper-shade);
  box-shadow: var(--shadow-low-box);
  color: var(--ink);
  font-size: var(--fs-small);
  transform: rotate(-1deg);
}

.int-lists__label {
  font-weight: 600;
}

.int-lists__label--stores {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}

.int-lists__list {
  margin-top: var(--sp-2);
}

.int-lists__list > li + li {
  margin-top: var(--sp-1);
}

.int-lists__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-3);
}

.int-lists__ean {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
}

/* Os campos do QR fiscal: o fim do talão (sombra baixa, sem rotação) e o <dl> */
.int-qr .receipt {
  margin-inline: 0;
}

.int-qr .receipt__paper {
  padding: 22px 18px 20px;
}

.int-qr .receipt__qr img {
  width: 96px;
  height: 96px;
}

.int-qr__gap {
  height: 12px;
}

.int-qr__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.int-qr__data dt {
  color: var(--muted);
}

.int-qr__data dd {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------------------------
   ≥ 1280 px: o palco do design. Talão nas colunas 1–4 (encostado à direita, 145 px mais abaixo),
   aviso com 612 px encostado à direita e os fios da borda de um à borda do outro.
   Com --col-gap de 24 px: fim da coluna 4 = 100%/3 − 16px; 7 colunas = 700%/12 − 10px.
   --------------------------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .int-stage {
    --int-slip-pad: 145px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .int-stage__slip {
    position: static; /* a anotação «não conta» mede-se a partir do palco (ver abaixo) */
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
    justify-self: end;
    margin: 0;
  }

  /* «não conta» na margem, entre o ecrã (16 px de folga) e a borda esquerda do talão
     (talão a 100%/3 − 16px − 302px do palco). Perto dos 1280 px não há espaço para «ne compte pas»
     ou «doesn't count» numa linha: parte em duas, encostado ao talão, e o traço fica na 1.ª linha. */
  .int-stage__skip {
    left: calc(16px - var(--gutter));
    right: calc(200% / 3 + 318px);
    justify-content: flex-end;
    align-items: flex-start;
    white-space: normal;
    text-align: right;
  }

  .int-stage__skip .int-stage__tick {
    margin-top: 9px;
  }

  .int-stage__wires {
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    left: calc(100% / 3 - 16px);
    right: min(612px, calc(700% / 12 - 10px));
    height: 680px;
    pointer-events: none;
  }

  .int-stage__hook,
  .int-stage__caption {
    grid-column: 6 / span 7;
    justify-self: end;
    margin: 0;
  }

  .int-stage__hook {
    grid-row: 1;
  }

  .int-stage__caption {
    grid-row: 2;
    margin-top: var(--sp-5);
  }
}

/* ---------------------------------------------------------------------------------------------
   901–1279 px: o código (até 612 px, a largura das linhas de 60 caracteres) já não cabe ao lado do
   texto sem scroll: fica por baixo dele. Os fluxos ganham uma coluna.
   --------------------------------------------------------------------------------------------- */
@media (min-width: 901px) and (max-width: 1279px) {
  .int-send__text,
  .int-send__figure,
  .int-confirm__text,
  .int-confirm__figure {
    grid-column: 1 / -1;
  }

  .int-send__figure,
  .int-confirm__figure {
    justify-self: start;
    margin-top: var(--space-object);
  }

  .int-modes__figure {
    grid-column: 1 / span 6;
  }

  .int-modes__text {
    grid-column: 8 / span 5;
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 900 px: tudo empilha; no palco, o talão e o aviso ficam um por baixo do outro, sem fios
   --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .int-hero__title,
  .int-hero__intro,
  .int-facts,
  .int-send__text,
  .int-send__figure,
  .int-modes__text,
  .int-modes__figure,
  .int-result__title,
  .int-result__lead,
  .int-result__lines,
  .int-result__score,
  .int-result__reason,
  .int-confirm__text,
  .int-confirm__figure,
  .int-done__title {
    grid-column: 1 / -1;
  }

  /* os três campos voltam à ordem do DOM: linhas, pontuação, motivo */
  .int-result__lines,
  .int-result__score,
  .int-result__reason {
    grid-row: auto;
  }

  .int-facts {
    margin-top: var(--sp-5);
  }

  .int-send__figure,
  .int-confirm__figure {
    justify-self: start;
    margin-top: var(--space-object);
  }

  .int-modes__figure {
    grid-row: 2;
    margin-top: var(--space-object);
  }

  /* A tabela de 5 colunas não cabe numa folha estreita: cada estado passa a um bloco já aqui
     (o .table--stack partilhado só empilha em ≤ 600 px); o mesmo desenho, com o data-label por cima */
  .int-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .int-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3) var(--sp-5);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .int-table tbody tr:last-child {
    border-bottom: 0;
  }

  .int-table th,
  .int-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .int-table th {
    grid-column: 1 / -1;
  }

  .int-table th + td,
  .int-table td + td {
    margin-top: 0;
  }

  .int-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    line-height: 1.6;
  }

  .int-done__grid {
    display: block;
  }

  .int-done__item {
    display: block;
  }

  .int-done__item + .int-done__item {
    margin-top: var(--sp-7);
  }

  .int-done__art {
    min-height: 0;
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 600 px: telemóvel
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .int-facts {
    padding: 4px 16px;
  }

  .int-facts__row {
    display: block;
  }

  .int-facts__term {
    padding: 0 0 2px;
  }

  .int-hook {
    --int-pad: 16px;
  }

  /* Sem espaço à esquerda do talão: a legenda do aviso já diz que SACO PAPEL não conta */
  .int-stage__skip {
    display: none;
  }

  .int-modes__figure {
    padding: var(--sp-5) var(--sp-4);
  }

  .int-flow,
  .int-flow__col,
  .int-flow__steps {
    display: block;
  }

  .int-flow__head {
    padding-bottom: var(--sp-4);
  }

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

/* ---- pages/pricing.css ---- */
/* =============================================================================================
   pricing.css — Preços (handoff Ticvero v3). Classes com o prefixo price-.
   1 topo (.page-intro) com a tabela de preços num painel do tema · 2 a fatura do mês · 3 o que está
   incluído (três cartões) · 4 pausa de ação · 5 perguntas frequentes. O bloco CTA final está no layout.
   Os preços e os exemplos são UI do tema (cartões), não papel. Pontos de quebra: 1280 · 900 · 600 px.
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   1. Topo: texto em 1–6, a tabela de preços em 7–12 (8–12 a partir de 1280 px)
   --------------------------------------------------------------------------------------------- */
.price-hero__grid {
  row-gap: var(--space-object);
  align-items: center;
}

.price-hero__text {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.price-hero__line {
  display: block;
}

.price-hero__action {
  margin-top: var(--sp-4);
}

.price-hero__object {
  position: relative;
  grid-column: 7 / span 6;
}

@media (min-width: 1280px) {
  .price-hero__object {
    grid-column: 8 / span 5;
  }
}

/* contorno com gradiente ciano subtil, como o painel da home */
.price-hero__object::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-panel) + 1px);
  background: linear-gradient(140deg, var(--cy-glow), transparent 40%, transparent 70%, var(--cy-soft));
  filter: blur(0.5px);
}

/* O painel da tabela de preços. É um contentor: o tamanho dos valores acompanha a largura do painel,
   não a do ecrã (entre 901 e 1279 px o painel é mais estreito do que a 768 px). */
.price-sheet {
  container-type: inline-size;
  position: relative;
  padding: 0 var(--sp-6) var(--sp-6);
  border: 1px solid var(--line-2);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

/* barra de janela: três pontos e o nome */
.price-sheet__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: calc(-1 * var(--sp-6));
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  background: var(--bg-2);
}

.price-sheet__dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.price-sheet__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--off);
}

.price-sheet__name {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.price-sheet__dot {
  color: var(--cy-ink);
}

/* A tabela dos escalões: 3 colunas (volume · fee mensal · por talão). Cabe a 360 px:
   os números não partem (espaços inseparáveis no JSON), as cabeças partem em duas linhas se for preciso. */
.price-tiers {
  width: 100%;
  margin-top: var(--sp-5);
  border-collapse: collapse;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-tiers caption {
  caption-side: top;
  padding: 0 0 var(--sp-3);
  text-align: left;
  font-size: var(--fs-lead);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-tiers th,
.price-tiers td {
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.price-tiers :is(th, td):first-child {
  padding-left: 0;
}

.price-tiers thead th {
  padding-top: 0;
  padding-bottom: var(--sp-2);
  border-bottom-color: var(--line-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: bottom;
  text-wrap: balance;
  hyphens: auto;
}

.price-tiers tbody th {
  font-weight: 500;
  color: var(--ink);
}

.price-tiers .num {
  text-align: right;
}

.price-tiers tbody tr:last-child > * {
  border-bottom: 0;
}

/* os valores: grandes; 20 px num painel estreito, 26 px num painel largo. O valor por talão em ciano. */
.price-tiers__value {
  font-size: clamp(1.25rem, 5.8cqi, 1.625rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price-tiers__value + .price-tiers__value {
  color: var(--cy-ink);
}

.price-tiers .price-tiers__ask {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* «Aprovado ou Rejeitado: o mesmo valor.» por baixo da tabela */
.price-sheet__same {
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-2);
  color: var(--text);
  font-size: var(--fs-small);
  text-wrap: balance;
}

/* «Aprovado ou | Rejeitado: o mesmo valor.»: a pontuação nunca começa uma linha */
.price-sheet__pair {
  white-space: nowrap;
}

.price-sheet__note {
  margin-top: var(--sp-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------------------------
   2. A fatura do mês: os exemplos em 1–5, o texto em 7–12
   --------------------------------------------------------------------------------------------- */
.price-calc__grid {
  row-gap: var(--space-object);
  align-items: start;
}

.price-calc__text {
  grid-column: 7 / span 6;
  grid-row: 1;
}

.price-calc__figure {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.price-calc__title {
  margin-top: var(--space-title);
}

.price-calc__lead {
  margin-top: var(--space-title);
}

/* as regras: linhas numeradas (01…05, mono, ciano) separadas por uma linha */
.price-calc__items {
  counter-reset: price-rule;
  margin-top: var(--space-object-sm);
  border-bottom: 1px solid var(--line);
}

.price-calc__item {
  counter-increment: price-rule;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
}

.price-calc__item::before {
  content: counter(price-rule, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 3px;
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
}

.price-calc__item h3 {
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.price-calc__item .t-text {
  margin-top: var(--sp-1);
  font-size: var(--fs-small);
}

/* os h3 desta página partem equilibrados (sem uma palavra sozinha na segunda linha) */
.price-calc__item h3,
.price-incl__part-title,
.price-faq__item h3 {
  text-wrap: balance;
}

/* Os exemplos de cálculo: um cartão do tema (.sheet) com duas contas */
.price-bill {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-bill + .price-bill {
  margin-top: var(--sp-6);
}

.price-bill caption {
  caption-side: top;
  padding: 0 0 var(--sp-3);
  text-align: left;
  font-size: var(--fs-lead);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-bill th,
.price-bill td {
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.price-bill :is(th, td):first-child {
  padding-left: 0;
}

.price-bill tbody th {
  font-weight: 400;
  color: var(--text);
}

.price-bill thead th {
  padding-top: 0;
  padding-bottom: var(--sp-2);
  border-bottom-color: var(--line-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: bottom;
}

/* «1 000 talões» parte em duas linhas num cartão estreito (os valores, não) */
.price-bill thead th.num {
  white-space: normal;
  text-wrap: balance;
}

.price-bill thead td {
  padding: 0;
  border-bottom-color: var(--line-2);
}

.price-bill tbody tr:first-child > * {
  border-top: 1px solid var(--line-2);
}

.price-bill thead + tbody tr:first-child > * {
  border-top: 0;
}

.price-bill .num {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* o total: linha forte por cima, a negrito, sem linha por baixo; o valor em ciano */
.price-bill .price-bill__total > * {
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.price-bill .price-bill__total > .num {
  color: var(--cy-ink);
}

/* ---------------------------------------------------------------------------------------------
   3. O que está incluído: título e entrada; três cartões
   --------------------------------------------------------------------------------------------- */
.price-incl__head {
  row-gap: var(--space-title);
}

.price-incl__eyebrow {
  grid-column: 1 / -1;
}

.price-incl__title {
  grid-column: 1 / span 8;
}

.price-incl__lead {
  grid-column: 1 / span 6;
}

.price-incl__parts {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--space-object);
}

.price-incl__part {
  padding: clamp(24px, 1rem + 1.6vw, 40px);
}

/* «Não incluído»: borda tracejada, sem fundo, glifo «−» apagado */
.price-incl__part--out {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
}

.price-incl__part-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sub);
  line-height: var(--lh-sub);
  font-weight: 600;
  color: var(--ink);
}

/* o glifo numa caixa: ✓ ciano (incluído), − cinzento tracejado (não incluído) */
.price-incl__mark {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid color-mix(in oklab, var(--cy) 40%, transparent);
  border-radius: var(--r-ctl);
  background: var(--cy-soft);
  color: var(--cy-ink);
}

.price-incl__part--out .price-incl__mark {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
  color: var(--muted);
}

.price-incl__part-text {
  margin-top: var(--sp-3);
}

/* O que está no fee: uma linha por item, o nome em 1–4 e o que é em 5–12 */
.price-incl__rows {
  margin-top: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.price-incl__rows > div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--sp-1);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
}

.price-incl__rows dt {
  grid-column: 1 / span 4;
  font-weight: 600;
  color: var(--ink);
}

.price-incl__rows dd {
  grid-column: 5 / span 8;
  margin: 0;
  color: var(--text);
}

.price-incl__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--sp-6);
  row-gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.price-incl__cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--sp-7);
  margin-top: var(--sp-6);
}

.price-incl__cols > :first-child {
  grid-column: 1 / span 6;
}

.price-incl__cols > :last-child {
  grid-column: 8 / span 5;
}

.price-incl__block-title {
  font-size: var(--fs-lead);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-incl__intro {
  margin-top: var(--sp-2);
  color: var(--text);
}

.price-incl__more {
  margin-top: var(--sp-2);
}

/* As cinco verificações: só os nomes, numerados em mono (a explicação está em Como funciona) */
.price-incl__checks {
  counter-reset: price-check;
  margin-top: var(--sp-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.price-incl__checks > li {
  counter-increment: price-check;
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.price-incl__checks > li::before {
  content: counter(price-check, decimal-leading-zero);
  flex: none;
  width: 20px;
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
}

.price-incl__states {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

/* o texto alinha com a palavra do estado (ponto 7 px + 8 px) */
.price-incl__state-text {
  display: block;
  margin-top: var(--sp-1);
  padding-left: 15px;
  color: var(--text);
  font-size: var(--fs-small);
}

.price-incl__checks + .price-incl__more,
.price-incl__states + .price-incl__more {
  margin-top: var(--sp-4);
}

.price-incl__out {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: var(--sp-5);
  color: var(--text);
}

.price-incl__out > li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px dashed var(--line-2);
  border-bottom: 1px dashed var(--line-2);
}

/* um traço «−» antes de cada item (desenhado: não é lido em voz alta) */
.price-incl__out > li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--muted);
  transform: translateY(-4px);
}

/* ---------------------------------------------------------------------------------------------
   4. Pausa de ação: um cartão do tema com brilho; a frase em 1–7, o botão em 9–12
   --------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------
   5. Perguntas frequentes: título em 1–4, respostas em duas colunas em 5–12
   --------------------------------------------------------------------------------------------- */
.price-faq__grid {
  align-items: start;
}

.price-faq__head {
  grid-column: 1 / span 4;
}

.price-faq__title {
  margin-top: var(--space-title);
}

.price-faq__list {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-7);
}

.price-faq__item {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.price-faq__item h3 {
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.price-faq__a {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
}

/* 901–1279 px: 8 colunas dariam respostas com ~35 caracteres por linha; o título passa para cima */
@media (max-width: 1279px) {
  .price-faq__head,
  .price-faq__list {
    grid-column: 1 / -1;
  }

  .price-faq__list {
    margin-top: var(--space-object-sm);
  }
}

/* ---------------------------------------------------------------------------------------------
   ≤ 900 px: as colunas empilham (título → texto → objeto)
   --------------------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .price-hero__text,
  .price-hero__object,
  .price-calc__text,
  .price-calc__figure,
  .price-incl__title,
  .price-incl__lead,
  .price-faq__head,
  .price-faq__list {
    grid-column: 1 / -1;
  }

  .price-hero__object {
    width: 100%;
    max-width: 560px;
  }

  .price-calc__text {
    grid-row: 1;
  }

  .price-calc__figure {
    grid-row: 2;
    width: 100%;
    max-width: 560px;
  }

  .price-incl__cols > :first-child,
  .price-incl__cols > :last-child {
    grid-column: 1 / -1;
  }

  .price-incl__cols {
    row-gap: var(--sp-6);
  }

}

/* ---------------------------------------------------------------------------------------------
   ≤ 600 px: telemóvel
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .price-hero__action {
    align-self: stretch;
    margin-top: var(--sp-2);
  }

  .price-sheet {
    padding: 0 var(--sp-4) var(--sp-5);
  }

  .price-sheet__bar {
    margin-inline: calc(-1 * var(--sp-4));
  }

  .price-tiers th,
  .price-tiers td,
  .price-bill th,
  .price-bill td {
    padding-left: var(--sp-3);
  }

  /* as contas num cartão estreito (de: «KASSENBONS» em maiúsculas mono é largo) */
  .price-bills {
    padding-inline: var(--sp-4);
  }

  .price-bill .num {
    font-size: 0.8125rem;
  }

  .price-bill thead th {
    letter-spacing: 0;
  }

  .price-incl__part-title {
    align-items: flex-start;
  }

  /* cada item do fee: o nome por cima, o que é por baixo */
  .price-incl__rows dt,
  .price-incl__rows dd {
    grid-column: 1 / -1;
  }

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

  .price-incl__out > li + li {
    border-top: 0;
  }

  .price-faq__list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
  }
}

/* ---- pages/privacy.css ---- */
/* =============================================================================================
   pages/privacy.css — «Política de privacidade» (id privacy, prefixo privacy-). Sem design de origem.
   Rebrand Ticvero v3: um documento sóbrio do tema. A abertura em .page-intro; o índice no topo (a
   partir de 1280 px, na coluna da direita, fixo ao rolar); a política num cartão do tema (.sheet,
   segue o claro/escuro: não é papel) com secções numeradas em mono ciano, o texto até ~70
   caracteres por linha e as tabelas com scroll próprio no telemóvel. Quebras: 1280, 900, 600.
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   1. Abertura (.page-intro: brilho + pontos, linha por baixo)
   --------------------------------------------------------------------------------------------- */
.privacy-head__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: 1 / span 9;
  min-width: 0;
}

.privacy-head__title {
  margin-top: var(--sp-4);
}

.privacy-head__lead {
  margin-top: var(--space-title);
}

/* A versão: uma linha mono discreta, como um carimbo de data */
.privacy-head__version {
  margin-top: var(--sp-4);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.6;
  text-wrap: pretty;
}

/* A nota para quem enviou um talão: o aviso do sistema (.notice, ciano) */
.privacy-head__note {
  max-width: var(--measure);
  margin-top: var(--sp-6);
  font-size: var(--fs-small);
}

.privacy-head__note a {
  color: var(--cy-ink);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------------------------
   2. Documento: índice e cartão
   --------------------------------------------------------------------------------------------- */
.privacy-doc {
  margin-top: var(--space-object);
  align-items: start;
}

/* 901–1279 px: o índice por cima do documento; ambos em 10 colunas (a tabela de 3 colunas cabe) */
.privacy-toc {
  grid-column: 1 / span 10;
  min-width: 0;
}

.privacy-sheet {
  grid-column: 1 / span 10;
  min-width: 0;
  margin-top: var(--sp-6);
  /* 24 → 56 em cima, 16 → 56 dos lados, 24 → 48 em baixo (390 → 1440) */
  padding: clamp(24px, 12.114px + 3.0476vw, 56px) clamp(16px, 1.143px + 3.8095vw, 56px) clamp(24px, 15.086px + 2.2857vw, 48px);
  border-radius: var(--r-panel);
}

/* Largo: o índice passa para a coluna da direita e acompanha a leitura */
@media (min-width: 1280px) {
  .privacy-toc {
    grid-column: 10 / span 3;
    grid-row: 1;
  }

  .privacy-sheet {
    grid-column: 1 / span 9;
    grid-row: 1;
    margin-top: 0;
  }
}

/* Só fica fixo quando cabe inteiro na janela (11 entradas + o título), abaixo do cabeçalho fixo */
@media (min-width: 1280px) and (min-height: 760px) {
  .privacy-toc {
    position: sticky;
    top: calc(68px + var(--sp-5));
  }
}

@media (max-width: 900px) {
  .privacy-head__text,
  .privacy-toc,
  .privacy-sheet {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------------------------------------
   3. Índice: etiqueta mono e lista com filetes do tema
   --------------------------------------------------------------------------------------------- */
.privacy-toc__title {
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}

.privacy-toc__title::before {
  content: "// ";
}

.privacy-toc__list {
  margin-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.privacy-toc__list > li {
  border-bottom: 1px solid var(--line);
}

.privacy-toc__link {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  min-height: 44px;
  padding: 10px 0;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-decoration: none;
}

.privacy-toc__link:hover {
  color: var(--ink);
}

.privacy-toc__link:hover > span:last-child {
  text-decoration: underline;
  text-decoration-color: var(--cy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.privacy-toc__num {
  flex: none;
  min-width: 3ch; /* «10.» e «11.» alinham com «1.» */
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-variant-numeric: tabular-nums;
}

/* Entre 601 e 1279 px o índice fica por cima do documento, em duas colunas (1–6 | 7–11) */
@media (min-width: 601px) and (max-width: 1279px) {
  .privacy-toc__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    column-gap: var(--col-gap);
  }
}

/* ---------------------------------------------------------------------------------------------
   4. Secções: números mono pendurados à esquerda, texto até ~70 caracteres
   --------------------------------------------------------------------------------------------- */
.privacy-sec {
  --privacy-hang: 56px;
  padding-left: var(--privacy-hang);
  scroll-margin-top: 88px;
}

.privacy-sec + .privacy-sec {
  margin-top: var(--sp-7);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--line);
}

.privacy-sec__title {
  display: grid;
  grid-template-columns: var(--privacy-hang) minmax(0, 1fr);
  align-items: baseline;
  margin-left: calc(-1 * var(--privacy-hang));
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  scroll-margin-top: 88px;
}

.privacy-sec__num {
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* A secção aberta por uma ligação (privacy.html#privacy-direitos): a faixa ciano suave */
.privacy-sec__title:target {
  border-radius: var(--r-sm);
  background: var(--cy-soft);
  box-shadow: 0 0 0 8px var(--cy-soft);
}

.privacy-sec > * + * {
  margin-top: var(--sp-4);
}

.privacy-sec > .privacy-sec__title + * {
  margin-top: var(--sp-5);
}

.privacy-sec > h3 {
  margin-top: var(--sp-6);
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.privacy-sec > h3 + * {
  margin-top: var(--sp-3);
}

/* Medida de leitura: Space Grotesk a 16 px, 35 em ≈ 70 caracteres por linha.
   As fichas são mais largas: o valor fica numa coluna mais estreita do que o texto corrido. */
.privacy-sec > :is(p, ul, ol, h3) {
  max-width: 35em;
}

.privacy-sec > dl {
  max-width: 42em;
}

.privacy-sec p,
.privacy-sec li {
  color: var(--text);
  line-height: 1.7;
  text-wrap: pretty;
}

.privacy-sec strong {
  color: var(--ink);
}

.privacy-sec :is(p, li, dd) a:not(.link) {
  color: var(--cy-ink);
  text-underline-offset: 3px;
}

/* Os marcadores curtos do texto corrido não se partem ao meio (os das fichas podem ser longos) */
.privacy-sec p .placeholder {
  white-space: nowrap;
}

/* Fichas (dados, para quê, fundamento): termo mono à esquerda, valor à direita, numa caixa --bg-2 */
.privacy-facts {
  padding: 4px var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--bg-2);
}

.privacy-facts__row {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  column-gap: var(--sp-4);
  padding: 14px 0;
}

.privacy-facts__row + .privacy-facts__row {
  border-top: 1px solid var(--line);
}

.privacy-facts__term {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.6;
}

.privacy-facts__value {
  color: var(--ink);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Listas com marca ciano */
.privacy-list {
  padding-left: 1.25em;
  list-style: disc;
}

.privacy-list > li + li {
  margin-top: var(--sp-2);
}

.privacy-list > li::marker {
  color: var(--cy);
}

/* O que acontece a um talão: uma sequência real, com os pinos numerados do sistema */
.privacy-steps__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.privacy-steps__item + .privacy-steps__item {
  margin-top: var(--sp-4);
}

.privacy-steps__text {
  padding-top: 1px;
}

/* ---------------------------------------------------------------------------------------------
   5. Tabelas: rolam sozinhas quando não cabem (o scroll é do contentor, nunca da página)
   --------------------------------------------------------------------------------------------- */
.privacy-sec > .privacy-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.privacy-table:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 3px;
}

.privacy-table .table td {
  color: var(--text);
}

/* A tabela dos subcontratantes tem três colunas: abaixo de ~34 rem rola na horizontal.
   O contentor é a referência (cqi) para o nome do subcontratante caber na parte visível. */
.privacy-table--wide {
  container-type: inline-size;
}

.privacy-table--wide .table {
  min-width: 34rem;
}

.privacy-table--wide .table tbody th {
  min-width: 9em;
}

/* Linha de grupo (o subcontratante): a toda a largura, por cima dos seus serviços */
.privacy-table .privacy-table__group > th {
  padding-top: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  color: var(--cy-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
}

/* Quando a tabela rola (telemóvel), a legenda e o nome do subcontratante não ficam cortados: partem-se
   na largura visível e acompanham o scroll horizontal */
.privacy-table__fit {
  display: block;
  position: sticky;
  left: 0;
  max-width: 100cqi;
}

.privacy-sec > .privacy-table__hint {
  display: none;
}

.privacy-sec > .privacy-table,
.privacy-sec > .privacy-table__hint + .privacy-table {
  margin-top: var(--sp-5);
}

/* No telemóvel, o aviso de que a tabela rola vem antes dela */
@media (max-width: 600px) {
  .privacy-sec > .privacy-table__hint {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
  }
}

/* ---------------------------------------------------------------------------------------------
   6. Telemóvel: sem números pendurados; as fichas passam a termo por cima do valor
   --------------------------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .privacy-sec {
    padding-left: 0;
  }

  .privacy-sec + .privacy-sec {
    margin-top: var(--sp-6);
    padding-top: var(--sp-6);
  }

  .privacy-sec__title {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--sp-3);
    margin-left: 0;
  }

  .privacy-facts {
    padding-inline: var(--sp-4);
  }

  .privacy-facts__row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--sp-1);
  }
}

/* ---------------------------------------------------------------------------------------------
   7. Impressão: só a política, em tinta sobre branco (sem cabeçalho, índice, bloco CTA nem rodapé)
   --------------------------------------------------------------------------------------------- */
@media print {
  .page-privacy .site-header,
  .page-privacy .site-footer,
  .page-privacy .skip-link,
  .page-privacy aside:has(> .cta-block),
  .privacy-toc {
    display: none;
  }

  .page-privacy {
    --bg: var(--paper);
    --bg-2: var(--paper);
    --surface: var(--paper);
    --ink: var(--print-ink);
    --text: var(--print-text);
    --muted: var(--print-faded);
    --line: var(--print-perf);
    --line-2: var(--print-perf);
    --cy: var(--print-cy);
    --cy-ink: var(--print-cy);
    --cy-soft: var(--print-band);
    background: var(--paper);
    color: var(--print-ink);
  }

  .page-privacy .page-intro {
    background: none;
  }

  .privacy-sheet {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .privacy-sec__title {
    break-after: avoid-page;
  }

  .privacy-table .table {
    min-width: 0;
  }
}
