/* Hallmark · genre: editorial with the v5 night · macrostructure: Workbench (the tool right under the night head card, then the work it returns) · design-system: design.md · designed-as-app
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · contrast: pass (40-41) · nav: N11 · footer: Ft5 over Ft4 (the shell's) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50-57)
 * Capi Studio visitor demonstrations (hand-written): /experimente-a-leitura-de-documentos/,
 * /experimente-perguntas-a-um-documento/ and /experimente-textos-do-seu-site/. What the three share: the page voice
 * under the night head card, the upload or address card with the consent, what the visitor gets, the notices, the
 * progress card with its steps and bar, the fictional examples, the tabs between results, the excerpt the AI read,
 * the source numbers, the "what is kept" row with "Apagar agora", and the "Isto é uma demonstração" band. Each page's
 * own file keeps only its result. Requires tokens.css, shell.css and paginas/interior.css. These pages are served with
 * style-src 'self': no inline style, no data: URI, nothing from another host. */

/* ---------- The page voice, set on the main element itself: the crema sheet, Archivo and the body size, whatever the
   body around it carries (these pages loaded the old studio sheets until the shell came in) ---------- */
.pg-main.pg--demo {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--wght-body);
  font-stretch: var(--wdth-text);
  line-height: var(--leading-body);
}
.pg--demo :where(h1, h2, h3, h4) { font-style: normal; overflow-wrap: anywhere; min-width: 0; }
.pg--demo :where(p, li) { text-wrap: pretty; }
.pg--demo :where(h2, h3)[tabindex="-1"]:focus, .pg--demo [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* The page's own skip link, to the upload or the address (the shell has the one to the content); hidden until focused */
.tool-skip {
  position: fixed;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: var(--z-modal);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: var(--wght-ui);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(-160%);
}
.tool-skip:focus { transform: none; }
.tool-skip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Touch-only and mouse-only lines (taking a photo; dragging a file in) */
@media not all and (pointer: coarse) { .so-toque { display: none; } }
@media (pointer: coarse) { .so-rato { display: none; } }

/* ---------- The first screen under the head card: the action, then what the visitor gets ---------- */
.demo-topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl) var(--col-gap);
  align-items: start;
  padding-bottom: calc(var(--section-pad) / 2);
}
@media (min-width: 64rem) {
  .demo-topo { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .demo-topo > .envio { grid-column: 1 / span 6; }
  .demo-topo > .demo-ganhos { grid-column: 8 / -1; }
}
@media (min-width: 100rem) {
  .demo-topo > .envio { grid-column: 1 / span 5; }
  .demo-topo > .demo-ganhos { grid-column: 7 / span 4; }
}
.envio { min-width: 0; scroll-margin-top: calc(var(--header-h) + var(--space-md)); }

/* The upload or address card: the one panel of the page, open, with the consent before the button. A file dragged
   over it draws a dashed ink edge inside. */
.envio-cartao {
  position: relative;
  padding: var(--space-md);
  border-radius: var(--radius-media);
  background: var(--color-paper-2);
  outline: 2px dashed transparent;
  outline-offset: calc(-1 * var(--space-xs));
  transition: background-color var(--dur-color) var(--ease-out), outline-color var(--dur-color) var(--ease-out);
}
@media (min-width: 40rem) { .envio-cartao { padding: var(--space-md) clamp(var(--space-lg), 3vw, var(--space-xl)) var(--space-lg); } }
.envio-cartao[data-arrastando] { background: var(--color-paper-3); outline-color: var(--color-ink); }
/* The action sits closer under the head than on the other interior pages: it is what these pages are for */
.pg--demo .pg-body { padding-top: clamp(var(--space-md), 3.4vw, var(--space-xl)); }
.envio-titulo {
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-ink);
  font-size: 1.25rem;
  font-weight: var(--wght-ui);
  letter-spacing: var(--track-title);
  line-height: 1.25;
  text-wrap: balance;
}

/* The consent: the exact registered text as ruled rows, then the box that unlocks the upload with the actions on its
   line (stacked on phones). The solid ink pill sends; the outline pill takes a photo on touch screens. */
.aceite { margin-top: var(--space-sm); }
.aceite-titulo { color: var(--color-ink-2); font-size: var(--text-sm); font-weight: var(--wght-ui); line-height: 1.4; }
.aceite-lista { margin: var(--space-2xs) 0 0; padding: 0; list-style: none; }
.aceite-lista li {
  padding-block: var(--space-3xs);
  padding-right: max(0px, 100% - 64ch);   /* lines of at most about 75 characters; the rule still runs the card's width */
  border-top: 1px solid var(--color-rule);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.aceite-linha { border-top: 1px solid var(--color-rule); }
.aceite-marca {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 48px;
  font-size: var(--text-body);
  font-weight: var(--wght-ui);
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aceite-marca input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--color-ink); cursor: pointer; }
.aceite[data-erro] .aceite-marca { color: var(--color-accent); }
.aceite[data-erro] .aceite-marca input { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.aceite-erro { margin-top: var(--space-xs); color: var(--color-accent); font-size: 0.9375rem; font-weight: var(--wght-ui); line-height: 1.4; }
.envio-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-2xs); }
.envio-acoes .btn { flex: 1 1 100%; }
@media (min-width: 40rem) {
  .aceite-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-md); padding-top: var(--space-xs); }
  .aceite-linha .envio-acoes { margin-top: 0; }
  .envio-acoes .btn { flex: 0 1 auto; }
}
/* On a phone the page is the card: no tint and no padding, the card's title kept for screen readers only, and the
   conditions set as one paragraph of fine print after a bold "Antes de enviar:", so the send button sits whole on the
   first screen under the head and the bar (390 x 664, what a phone shows with its browser bars). */
@media (max-width: 39.99rem) {
  .envio-cartao { padding: 0; border-radius: 0; background: none; outline: 0; }
  .envio-titulo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .aceite { margin-top: 0; color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.45; }
  .aceite-titulo, .aceite-lista, .aceite-lista li { display: inline; }
  .aceite-titulo { color: var(--color-ink); }
  .aceite-titulo::after { content: ":"; }
  .aceite-lista li { padding: 0; border: 0; font-size: inherit; line-height: inherit; }
  .aceite-linha { margin-top: var(--space-2xs); }
  .aceite-marca { min-height: 44px; }
}
.envio-formatos, .envio-restantes, .envio-soltar { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.45; }
.envio-formatos > span:last-child { white-space: nowrap; }
.envio-restantes { margin-top: var(--space-3xs); color: var(--color-ink-2); font-weight: var(--wght-ui); }
.envio-soltar { margin-top: var(--space-3xs); }

/* The address form (texts from a site): one field with its ink pill inside, as in the homepage's conversation; the ring
   shows on the field while typing, on the pill when the pill has the keyboard */
.site-form { margin-top: var(--space-xs); }
.site-rotulo { display: block; margin-bottom: var(--space-2xs); font-weight: var(--wght-ui); line-height: 1.35; }
.site-linha {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-3xs);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-media);
  background: var(--color-paper);
  transition: border-color var(--dur-color) var(--ease-out), background-color var(--dur-color) var(--ease-out);
}
.site-linha:has(input:focus-visible) { border-color: var(--color-ink-2); outline: 2px solid var(--color-focus); outline-offset: 1px; }
.site-linha:has(input[aria-invalid="true"]) { border-color: var(--color-accent); }
.site-linha input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--space-sm);
  border: 0;
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--color-ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  outline: none;
}
.site-linha input::placeholder { color: var(--color-muted); opacity: 1; }
.site-linha input:disabled { color: var(--color-muted); cursor: not-allowed; }
.site-linha .btn { flex: none; min-height: 48px; }
@media (max-width: 22.49rem) {
  .site-linha { flex-direction: column; align-items: stretch; }
}
@media (hover: hover) and (pointer: fine) {
  .site-linha:hover:not(:has(input:focus-visible)) { border-color: var(--color-ink-2); }
}

/* The easy second path, right under the card */
.exemplos-atalho { margin-top: var(--space-xs); }
.exemplos-atalho .ico { transition: transform var(--dur-short) var(--ease-out); }
@media (max-width: 22.49rem) { .exemplos-atalho .ico { display: none; } }
@media (hover: hover) and (pointer: fine) { .exemplos-atalho:hover .ico { transform: translateY(2px); } }

/* Notices: what went wrong (accent), what was protected or deleted (ink), what to know (rule) */
.envio-aviso {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.envio-aviso strong { display: block; margin-bottom: var(--space-3xs); color: var(--color-ink); font-weight: var(--wght-ui); }
.envio-aviso[data-tipo="erro"] { border-color: var(--color-accent); }
.envio-aviso[data-tipo="erro"] strong { color: var(--color-accent); }
.envio-aviso[data-tipo="protegido"] { border-color: var(--color-ink); }
.envio-aviso-texto { margin-top: var(--space-sm); color: var(--color-accent); font-weight: var(--wght-ui); }

/* What the visitor gets: three plain lines under an ink rule */
.demo-ganhos { min-width: 0; padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.demo-ganhos-titulo { font-size: var(--text-title); font-weight: var(--wght-ui); letter-spacing: var(--track-title); line-height: 1.2; }
.demo-ganhos-lista { margin: var(--space-sm) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-rule); }
.demo-ganhos-lista li { padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); color: var(--color-ink-2); }

/* ---------- Progress: a calm card with the steps, the bar and the time it usually takes ---------- */
.progresso { padding-bottom: calc(var(--section-pad) / 2); scroll-margin-top: calc(var(--header-h) + var(--space-md)); }
.progresso-cartao {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 52rem;
  padding: var(--space-md);
  border-radius: var(--radius-media);
  background: var(--color-paper-2);
}
@media (min-width: 40rem) { .progresso-cartao { padding: var(--space-lg) var(--space-xl) var(--space-xl); } }
.progresso-miniatura { flex: none; width: 72px; height: 92px; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-paper); }
.progresso-miniatura img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.progresso-corpo { flex: 1 1 auto; min-width: 0; }
.progresso-corpo h2 { font-size: var(--text-title); font-weight: var(--wght-ui); letter-spacing: var(--track-title); line-height: 1.2; text-wrap: balance; }
.etapas { display: grid; gap: var(--space-2xs); margin: var(--space-sm) 0 var(--space-md); padding: 0; list-style: none; }
.etapas li { position: relative; padding-left: var(--space-lg); color: var(--color-muted); font-size: 1rem; line-height: 1.45; }
.etapas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.725em - 9px);
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-rule-strong);
  border-radius: 50%;
}
.etapas li[data-estado="feito"] { color: var(--color-ink-2); }
.etapas li[data-estado="feito"]::before { border-color: var(--color-ink); background: var(--color-ink); }
.etapas li[data-estado="feito"]::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: calc(0.725em - 3.5px);
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--color-paper);
  border-bottom: 2px solid var(--color-paper);
  transform: rotate(-45deg);
}
.etapas li[data-estado="agora"] { color: var(--color-ink); font-weight: var(--wght-ui); }
.etapas li[data-estado="agora"]::before { border: 2px solid var(--color-ink); border-right-color: transparent; }
.barra { height: 4px; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-rule); }
.barra span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--color-ink); transform: scaleX(0); transform-origin: left center; transition: transform 500ms var(--ease-out); }
.progresso-nota { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  .etapas li[data-estado="agora"]::before { animation: demo-gira 900ms linear infinite; }
}
@keyframes demo-gira { to { transform: rotate(360deg); } }
@media (max-width: 39.99rem) {
  .progresso-cartao { flex-direction: column; gap: var(--space-sm); }
  .progresso-miniatura { width: 56px; height: 72px; }
}

/* ---------- Results: what every result shares ---------- */
.resultado, .trabalho { padding-bottom: calc(var(--section-pad) / 2); scroll-margin-top: calc(var(--header-h) + var(--space-md)); }

/* Tabs between the documents or sites of this visit: filter pills, the open one in ink */
.resultado-abas, .trabalho-abas { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: 0 0 var(--space-lg); }
.resultado-aba, .trabalho-aba {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: var(--wght-small);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-color) var(--ease-out), border-color var(--dur-color) var(--ease-out), color var(--dur-color) var(--ease-out);
}
.resultado-aba[aria-selected="true"], .trabalho-aba[aria-selected="true"] { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); font-weight: var(--wght-ui); }
.resultado-aba:active, .trabalho-aba:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .resultado-aba:hover:not([aria-selected="true"]), .trabalho-aba:hover:not([aria-selected="true"]) { border-color: var(--color-ink); background: var(--color-paper-2); }
}

/* The words the AI read or cited: crema-3 under the text and the accent drawn under it, never a colour fill */
.pg--demo mark {
  padding: 0 2px;
  background: var(--color-paper-3);
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Source numbers inside a sentence: small, in brackets, with a 24 px target around them */
.ref {
  position: relative;
  top: -0.42em;
  display: inline-block;
  min-width: 24px;
  height: 24px;
  margin-block: calc(-1 * var(--space-2xs));
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: var(--wght-ui);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-underline-offset: 2px;
}
.ref::before { content: "["; }
.ref::after { content: "]"; }
@media (hover: hover) and (pointer: fine) { .ref:hover { text-decoration-color: var(--color-accent); } }

/* A quoted source: the number, where it is, the words */
.fonte-n, .citacao-n { color: var(--color-ink); font-size: var(--text-sm); font-weight: var(--wght-ui); line-height: 1.6; font-variant-numeric: tabular-nums; }

/* What is kept, and "Apagar agora": under an ink rule, never hidden in a side panel */
.dados {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-ink);
}
@media (min-width: 40rem) { .dados { grid-template-columns: minmax(0, 1fr) auto; } }
.dados-texto { max-width: 48ch; color: var(--color-ink-2); font-size: 1rem; line-height: 1.5; }
.dados-texto strong { color: var(--color-ink); font-weight: var(--wght-ui); }
.dados .btn { justify-self: start; }

/* A button that is busy keeps its place and says so with the cursor */
.pg--demo .btn[aria-busy="true"] { cursor: progress; }

/* ---------- The fictional examples ---------- */
.exemplos { scroll-margin-top: calc(var(--header-h) + var(--space-md)); }
.exemplos-vazio { padding-block: var(--space-sm); color: var(--color-muted); }
.exemplo { -webkit-tap-highlight-color: transparent; }
.exemplo:disabled { cursor: not-allowed; opacity: 0.55; }
.exemplo[aria-busy="true"] { cursor: progress; opacity: 0.7; }

/* Documents (the reading): the real images of the fictional documents as figures, a strip on phones, five across on computers */
.exemplos-lista--figuras {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(15rem, 64%);
  gap: var(--space-sm);
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-3xs) var(--gutter) var(--space-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule-strong) transparent;
}
@media (min-width: 64rem) {
  .exemplos-lista--figuras { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-inline: 0; padding: 0; overflow: visible; }
}
.exemplos-lista--figuras .exemplo {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-media);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.exemplos-lista--figuras .exemplo:focus-visible { outline-offset: 4px; }
.exemplo-imagem {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-media);
  background: var(--color-paper-2);
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-color) var(--ease-out);
}
.exemplo-imagem img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--dur-hover) var(--ease-out); }
.exemplo-texto { display: grid; gap: var(--space-3xs); }
.exemplo-texto strong { font-size: 1rem; font-weight: var(--wght-ui); line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-color) var(--ease-out); }
.exemplo-texto span { color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.4; }
.exemplos-lista--figuras .exemplo:active:not(:disabled) .exemplo-imagem { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .exemplos-lista--figuras .exemplo:hover:not(:disabled) .exemplo-imagem { transform: translateY(-4px); border-color: var(--color-rule-strong); }
  .exemplos-lista--figuras .exemplo:hover:not(:disabled) .exemplo-imagem img { transform: scale(1.03); }
  .exemplos-lista--figuras .exemplo:hover:not(:disabled) .exemplo-texto strong { text-decoration-color: var(--color-accent); }
}
/* "Fictício" on the document itself: a small crema label in the corner, sentence case */
.selo-ficticio {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--space-xs);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: var(--wght-ui);
  line-height: 1.2;
  white-space: nowrap;
}

/* Documents (the questions): one ruled row each, the name, what it holds, the action */
.exemplos-lista--linhas { border-top: 1px solid var(--color-rule); }
.exemplos-lista--linhas .exemplo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  width: 100%;
  padding: var(--space-md) 0;
  border: 0;
  border-bottom: 1px solid var(--color-rule);
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
@media (min-width: 64rem) {
  .exemplos-lista--linhas .exemplo { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); column-gap: var(--col-gap); align-items: baseline; }
}
.exemplo-nome strong { display: block; font-size: var(--text-title); font-weight: var(--wght-ui); letter-spacing: var(--track-title); line-height: 1.2; text-wrap: balance; }
.exemplo-empresa { display: block; margin-top: var(--space-3xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.4; }
.exemplo-descricao { max-width: 46ch; color: var(--color-ink-2); line-height: 1.5; }
.exemplo-abrir {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: var(--wght-ui);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  white-space: nowrap;
  transition: text-decoration-color var(--dur-color) var(--ease-out);
}
@media (min-width: 64rem) { .exemplo-abrir { justify-self: end; } }
.exemplos-lista--linhas .exemplo:focus-visible { outline-offset: 4px; }
.exemplos-lista--linhas .exemplo:active:not(:disabled) .exemplo-abrir { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .exemplos-lista--linhas .exemplo:hover:not(:disabled) .exemplo-abrir { text-decoration-color: var(--color-accent); }
  .exemplos-lista--linhas .exemplo:hover:not(:disabled) .exemplo-nome strong { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
}

/* A fictional site (the texts): the words on the left, the two ways in on the right */
.exemplo-site { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg) var(--col-gap); padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
@media (min-width: 64rem) {
  .exemplo-site { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .exemplo-site-texto { grid-column: 1 / span 7; }
  .exemplo-site-acoes { grid-column: 9 / -1; }
}
.exemplo-site-texto .pg-text { margin-top: var(--space-sm); }
.exemplo-site-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); }
@media (max-width: 39.99rem) { .exemplo-site-acoes .btn { flex: 1 1 100%; } }

/* ---------- "Isto é uma demonstração": the service behind the demonstration, in a quiet tinted band ---------- */
.servico-cartao {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md) var(--col-gap);
  padding: clamp(var(--space-lg), 5vw, var(--space-2xl)) clamp(var(--space-md), 4vw, var(--space-2xl));
  border-radius: var(--radius-media);
  background: var(--color-paper-2);
}
@media (min-width: 64rem) {
  .servico-cartao { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .servico-cartao > .pg-h2 { grid-column: 1 / span 5; }
  .servico-corpo { grid-column: 7 / -1; }
}
.servico-corpo { min-width: 0; }
.servico-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-lg); }
@media (max-width: 39.99rem) { .servico-acoes .btn { flex: 1 1 100%; } }
.servico-nota { max-width: 50ch; margin-top: var(--space-md); }

/* ---------- Reduced motion: no travel, no turning ---------- */
@media (prefers-reduced-motion: reduce) {
  .envio-cartao, .exemplo-imagem, .exemplo-imagem img, .barra span, .exemplos-atalho .ico { transition: none; }
  .etapas li[data-estado="agora"]::before { border-right-color: var(--color-ink); }
  .etapas li[data-estado="agora"]::after {
    content: "";
    position: absolute;
    left: 6px;
    top: calc(0.725em - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-ink);
  }
}

/* Contrast (the tokens' OKLCH to sRGB, WCAG 2): ink on crema 17.4:1, on crema-2 16:1, on crema-3 (the marked words)
   14.4:1; ink-2 11.1:1 and 10.2:1; muted 6.2:1 and 5.7:1; the accent as text 6:1 and 5.5:1; crema on the ink pill
   17.4:1; the control edge (rule-strong) 3.7:1 and 3.4:1; the focus ring 6:1 and 5.5:1. Measured in the pages: the lowest
   text in <main> is 5.7:1 (muted on crema-2). */
