/* Ata, site (landing, privacy, support, 404): "one long quiet scroll".
   Same stage, inks and shadow recipe as the store art (loja/arte/final/estilo.css), at web scale.
   Two appearances, following the system (prefers-color-scheme, no toggle): every colour below is a custom property;
   the light values are the original page, the dark set is designed for black (see the dark block under :root). */

:root {
  color-scheme: light dark;

  --stage: #f5f5f7;   /* grey chapters, nav */
  --paper: #ffffff;   /* white chapters */
  --ink: #1d1d1f;     /* claims, body */
  --ink-2: #6e6e73;   /* continuations, secondary text */
  --hair: rgba(0, 0, 0, 0.1);
  --red: #ff383c;     /* the app's record red, measured in the recording capture: a mark, never a fill */
  --link: #0066cc;
  --tile: var(--paper);                  /* bento tiles */
  --pop: var(--paper);                   /* skip link */
  --pop-edge: 0 0 0 0.5px var(--hair), 0 2px 8px rgba(0, 0, 0, 0.08);
  --nav: rgba(245, 245, 247, 0.8);       /* nav material (with the backdrop blur) */
  --cut: rgba(0, 0, 0, 0.16);            /* hairline on a crop cut from inside a window, and the phone hero's cut */
  --btn: var(--ink); --btn-ink: #fff; --btn-hover: #000;  /* a.loja, once the store URL exists */
  --hi: var(--ink); --hi-ink: #f5f5f7; --hi-ink-2: #a1a1a6;  /* the one contrasting tile (price) */
  --dot: rgba(29, 29, 31, 0.18);         /* demo progress dots; the current one is --ink */
  --chip: var(--stage);                  /* inline code */

  --gutter: 32px;     /* 20px at phone width */
  --col: 1040px;      /* images, steps, two-column chapters */
  --col-hero: 1120px; /* the hero window only: it aligns with nothing beside it */
  --text: 760px;      /* spec list, FAQ, documents */
  --head: 980px;      /* headline measure: each line of a two-tone headline stays one line on desktop */

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;

  /* Motion (site-movimento-spec.md 1.1; values from Apple's live bundles, 30/11/2026) */
  --ease-text: cubic-bezier(0.25, 0.46, 0.45, 0.94);     /* easeOutQuad: headline lines, hero text */
  --ease-stagger: cubic-bezier(0.455, 0.03, 0.515, 0.955); /* easeInOutQuad: bento tiles */
  --ease-move: cubic-bezier(0.66, 0, 0.1, 1);            /* objects settling, FAQ, chevron */
  --ease-hover: cubic-bezier(0, 0, 0.5, 1);              /* hover and press only */
  /* Damped spring, zeta 0.82, omega 11: 1.1 % overshoot (0.6 px on 56 px). Hero window and fecho icon only. */
  --spring: linear(0, 0.076 4%, 0.2383 8%, 0.4206 12%, 0.5878 16%, 0.725 20%, 0.8501 25%, 0.93 30%, 0.976 35%, 0.9993 40%, 1.0104 47%, 1.0098 55%, 1.005 65%, 1.0011 78%, 1 100%);
  --t-quick: 200ms;
  --t-text: 500ms;
  --t-move: 700ms;
  --t-fade: 900ms;
  --t-settle: 1100ms;
  --rise-text: 10px;
  --rise-tile: 30px;
  --stagger: 150ms;
  --stagger-line: 120ms;
}
@supports not (transition-timing-function: linear(0, 1)) { :root { --spring: cubic-bezier(0.22, 1, 0.36, 1); } }

/* Dark: apple.com product-page dark. One black page (both chapter tones), raised surfaces one step up (#1c1c1e tiles,
   the #161617 nav material), text #f5f5f7 / #86868b, white low-alpha hairlines, system blue and red in their dark
   variants. The price tile keeps the light page's logic: the one inverted tile (light on dark). No drop shadows on
   black: the skip link gets a hairline rim; windows and sheets carry a baked white rim (_render/assets.py, RIM) on top
   of the same baked shadow. Every app image swaps to its real dark capture through <picture> (index.html); the patch
   below is the one geometry that differs. Screen only: a dark Mac prints the light page (dark text, no dark captures). */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --stage: #000000;
    --paper: #000000;
    --ink: #f5f5f7;
    --ink-2: #86868b;   /* 5.8:1 on black, 4.7:1 on a #1c1c1e tile */
    --hair: rgba(255, 255, 255, 0.16);
    --red: #ff453a;     /* systemRed, dark */
    --link: #0a84ff;    /* systemBlue, dark: 5.8:1 on black, 4.7:1 on a tile */
    --tile: #1c1c1e;
    --pop: #1c1c1e;
    --pop-edge: 0 0 0 0.5px rgba(255, 255, 255, 0.24);
    --nav: rgba(22, 22, 23, 0.8);
    --cut: rgba(255, 255, 255, 0.16);
    --btn: #f5f5f7; --btn-ink: #1d1d1f; --btn-hover: #ffffff;
    --hi: #f5f5f7; --hi-ink: #1d1d1f; --hi-ink-2: #636366;  /* 5.5:1 */
    --dot: rgba(245, 245, 247, 0.24);
    --chip: #1c1c1e;
  }
}
/* Printing from a Mac in dark: the light page (the dark block above and the dark <source>s are screen only). */
@media print { :root { color-scheme: light; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
p, dd, li { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

/* Skip link: appears in the empty centre of the nav, so it never covers the icon or the price. */
.pular {
  position: absolute; left: 50%; top: -48px; z-index: 20; transform: translateX(-50%);
  background: var(--pop); padding: 8px 14px; border-radius: 8px; font-size: 15px;
  box-shadow: var(--pop-edge);
}
.pular:focus { top: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* The hairline under the nav lives on ::after so it can fade in over the first 48 px of scroll (cosmetic only,
   behind @supports below; elsewhere it is simply always there). */
.nav::after { content: ""; position: absolute; inset: 0; box-shadow: 0 0.5px 0 var(--hair); pointer-events: none; }
.nav-in {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
  height: 48px;
  display: flex; align-items: center; gap: 32px;
}
.marca {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
}
.marca:hover { text-decoration: none; }
.marca img { width: 32px; height: 32px; margin: 0 -2px 0 -4px; } /* the icon has a transparent margin */
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .nav-preco { color: var(--ink); font-size: 13px; letter-spacing: -0.01em; }
.nav-links a { opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
/* The price is the one destination in the nav: heavier, never a dark fill (that belongs to a.loja). */
.nav-preco { font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-preco:hover { color: var(--link); text-decoration: none; }
@media (hover: hover) {
  .nav-links a { transition: opacity var(--t-quick) ease-out; }
  .nav-preco { transition: color var(--t-quick) ease-out; }
}

/* ---------- Chapters ---------- */
.cap { padding: 120px var(--gutter) 128px; overflow-x: hidden; overflow-x: clip; } /* baked shadows may pass the gutter */
.cap-cinza { background: var(--stage); }
.cap-branca { background: var(--paper); }

.texto { max-width: var(--head); margin: 0 auto; text-align: center; }

h1, h2 {
  font-weight: 600;
  text-wrap: balance;
}
h1 .l1, h1 .l2, h2 .l1, h2 .l2 { display: block; }
.l1 { color: var(--ink); }
.l2 { color: var(--ink-2); }

h1 { font-size: 72px; line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: 56px; line-height: 1.07; letter-spacing: -0.024em; }

.apoio {
  max-width: 34em; margin: 24px auto 0;
  font-size: 21px; line-height: 1.43; letter-spacing: -0.016em;
  color: var(--ink-2);
  text-wrap: balance;
}
.apoio-menor { margin-top: 12px; font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; }

/* Hero */
.heroi { padding-top: 32px; padding-bottom: 120px; }
.heroi h1 { font-size: 66px; }
.heroi .apoio { max-width: 45em; margin-top: 14px; line-height: 1.4; }
/* Purchase block: two fixed lines. Until there is a store URL, .loja is plain text with the red dot as the mark;
   the dark fill belongs to a.loja only (something that looks like a button is a button). */
.compra { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.loja {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink);
  font-size: 17px; font-weight: 400; letter-spacing: -0.016em; line-height: 1.35;
}
a.loja { height: 44px; padding: 0 22px; border-radius: 22px; background: var(--btn); color: var(--btn-ink); font-weight: 500; }
a.loja:hover { text-decoration: none; background: var(--btn-hover); }
@media (hover: hover) {
  a.loja { transition: background-color 200ms var(--ease-hover), transform 100ms var(--ease-hover); }
  a.loja:active { transform: scale(0.98); }
}
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.preco { font-size: 15px; line-height: 1.4; color: var(--ink-2); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* ---------- Images ----------
   .sombra: a real window or sheet whose shadow is baked into the WebP (_render/assets.py: the store recipe, dithered,
   so no banding and no filter at scroll time). The file is wider than the window by the shadow; --t/--s/--b are that
   padding as a share of the window width, so the window edge lands exactly on the figure edge. */
.janela { max-width: var(--col); margin: 72px auto 0; }
.janela picture { display: flow-root; } /* contains the img's negative margins (no collapse into the figure) */
.sombra img {
  width: calc(100% + 2 * var(--s)); max-width: none;
  margin: calc(-1 * var(--t)) calc(-1 * var(--s)) calc(-1 * var(--b));
}
.janela-heroi { max-width: var(--col-hero); margin-top: 40px; }

/* ---------- Demo "Quem disse o quê" (#vozes) ----------
   Seven real captures of one meeting being named (story-01..07, demo build). Static by default (no JS, reduced
   motion, print, phones, tablets, short windows): six steps with their captions, each with our hand cursor drawn on
   the control the next step clicks. Steps 1 and 6 show the whole window; 2-5 a crop of the sheet at 1:1 (two
   columns from 1069 px), so the static page shows what changes instead of six near-identical windows. The pinned,
   scroll-scrubbed version is the .demo-on block in the motion section. */
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.so-celular { display: none; }
.simbolos { position: absolute; width: 0; height: 0; overflow: hidden; }
.demo-legendas, .demo-janela, .demo-pontos { display: none; }
.demo-passos { list-style: none; max-width: var(--col); margin: 72px auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px 40px; align-items: start; }
.demo-passo { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; min-width: 0; }
@media (min-width: 1069px) {
  .demo-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-inteiro { grid-column: 1 / -1; }
  .demo-recorte + .demo-legenda { font-size: 19px; }
}
/* Every demo image sits in a <picture> (light img + dark source); the wrapper takes no box, so the images lay out as
   direct children (the shadow stays out of flow, and no empty flex item adds a gap on the phone). */
.demo picture { display: contents; }
.demo source { display: none; }
.demo-recorte { display: flex; justify-content: center; }
.demo-recorte .demo-vista { width: max-content; max-width: 100%; }
.demo-recorte .demo-img { width: auto; max-width: 100%; box-shadow: 0 0 0 0.5px var(--cut); border-radius: 2px; }
.demo-quadro { position: relative; width: 100%; }
/* cena-sombra (_render/geometria.json): the shadow alone of a 1280 x 800 pt window; file = window x 1.12344. */
.demo-sombra { position: absolute; left: 0; top: 0; width: 112.344%; max-width: none; margin: -4.531% 0 0 -6.172%; pointer-events: none; user-select: none; }
.demo-vista { position: relative; }
.demo-img { width: 100%; }
.demo-clique { position: absolute; left: var(--x); top: var(--y); width: 28px; height: 28px; margin: -2.35px 0 0 -11.48px; pointer-events: none; }
.demo-clique svg, .demo-mao { display: block; width: 100%; height: 100%; overflow: visible; }
.demo-legenda {
  max-width: 34em; text-align: center;
  font-size: 21px; line-height: 1.38; letter-spacing: -0.016em; color: var(--ink-2);
  text-wrap: balance;
}
.demo-legenda strong { color: var(--ink); font-weight: 600; }

/* ---------- Bento (#destaques) ----------
   Five row heights, three tile widths, one dark tile. White tiles on the grey chapter, no border, no shadow; the
   clip-path keeps transformed children inside the 28 px corner (Apple's tile-rounded pattern). */
.bento {
  max-width: var(--col); margin: 72px auto 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px;
  grid-template-rows: 260px 260px 380px auto 470px;
  grid-template-areas:
    "busca  busca  busca  busca  preco  preco"
    "busca  busca  busca  busca  tempo  tempo"
    "menu   menu   modelo modelo modelo modelo"
    "idioma idioma idioma idioma idioma idioma"
    "agente agente agente agente agente agente";
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--tile); border-radius: 28px; clip-path: inset(0 round 28px);
  padding: 32px; text-align: left;
}
.t-busca { grid-area: busca; } .t-preco { grid-area: preco; } .t-tempo { grid-area: tempo; }
.t-menu { grid-area: menu; } .t-modelo { grid-area: modelo; } .t-idioma { grid-area: idioma; }
.t-agente { grid-area: agente; }
.tile-titulo { position: relative; z-index: 1; font-size: 24px; font-weight: 600; line-height: 1.17; letter-spacing: -0.02em; text-wrap: balance; }
.tile-sec { position: relative; z-index: 1; margin-top: 8px; font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: pretty; }
.tile-rotulo { font-size: 17px; line-height: 1.47; letter-spacing: -0.012em; color: var(--ink-2); }
.tile-num {
  margin-top: 6px; font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tile-num + .tile-sec { margin-top: 12px; }
.tile-frase { font-size: 48px; font-weight: 600; line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.tile-frase + .tile-sec { margin-top: 12px; }
/* Languages and "no bot": one low tile, two statements side by side on a hairline (was two half-empty tiles). */
.t-idioma { display: grid; grid-template-columns: 1fr 1fr; padding: 40px 0; }
.tile-par { padding: 0 40px; }
.tile-par + .tile-par { box-shadow: inset 0.5px 0 0 var(--hair); }
/* The one dark surface: price, not a button (no hover, no cursor, not a link). */
.escuro { background: var(--hi); color: var(--hi-ink); }
.escuro .tile-rotulo, .escuro .tile-sec { color: var(--hi-ink-2); }
.t-agente .tile-col { max-width: 360px; }
/* Beside the Ajustes window the text sits on the window's vertical middle, not in the top corner over 350 px of
   nothing (the row keeps its 470 px: shorter would cut the agent switch, the point of the tile). */
@media (min-width: 900px) { .t-agente { display: flex; flex-direction: column; justify-content: center; } }

/* Real objects, placed so the tile edge cuts them. Geometry from _render/geometria.json: baked shadow pads are
   54 px at the sides, 40 on top and 68 below (CSS px at design size); each box below puts the window edge itself
   at the spec's position. */
.tile-obj { position: absolute; margin: 0; z-index: 0; }
.tile-obj img { width: 100%; max-width: none; }
.obj-busca { left: -22px; top: 96px; width: 834px; }            /* window 780 x 500 at left 32, top 136 */
/* The menu: 1:1 would be 300 x 235, which meets the two-line title and its sentence in a 380 px tile, so it is shown
   at 0.85 (255 x 200, still 1.7 device px per source px at 2x), centred, bottom 24. */
.obj-menu { left: calc(50% - 173.4px); bottom: -33.8px; width: 346.8px; }
.obj-modelo { left: calc(50% - 334px); top: 141px; width: 668px; }  /* sheet 560 wide, centred; the 380 px tile cuts on the row divider under "Na primeira transcrição" */
.obj-agente { right: -6px; top: 0; width: 628px; }              /* Ajustes 520 wide at right 48, top 40 */

/* Requisitos (same measure as the FAQ below it, so the hairlines line up; two columns on the landing at desktop) */
.cap#requisitos { padding-top: 100px; padding-bottom: 108px; }
.ficha { max-width: var(--text); margin: 72px auto 0; border-bottom: 1px solid var(--hair); }
.ficha div {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--hair);
}
.ficha dt { font-weight: 600; letter-spacing: -0.016em; }
.ficha dd { color: var(--ink-2); }

/* Perguntas */
.faq { max-width: var(--text); margin: 72px auto 0; border-bottom: 1px solid var(--hair); }
.faq details { border-top: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.24;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details.fechando summary::after { transform: translateY(-3px) rotate(45deg); } /* closing: the chevron turns back first */
.faq summary:hover { color: var(--link); }
.faq summary:hover::after { border-color: var(--link); }
@media (hover: hover) {
  .faq summary { transition: color 200ms ease-out; }
  .faq summary::after { transition: border-color 200ms ease-out; }
}
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 40em; }
.faq details p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Fecho */
.fecho { padding-top: 112px; padding-bottom: 120px; }
.fecho-icone { width: 96px; height: 96px; margin: 0 auto 24px; }
.fecho-link { margin-top: 24px; font-size: 21px; letter-spacing: -0.016em; }

/* Rodapé */
.rodape { background: var(--stage); padding: 0 var(--gutter) 40px; }
.rodape-in {
  max-width: var(--col); margin: 0 auto;
  border-top: 1px solid var(--hair); padding-top: 20px;
  font-size: 12px; line-height: 1.5; color: var(--ink-2); letter-spacing: 0;
}
.doc .rodape-in { max-width: var(--text); } /* document pages: the footer starts where the text starts */
.rodape-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.rodape-links a { color: var(--ink); }
.rodape p + p { margin-top: 4px; }

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

/* ---------- Narrower screens ---------- */
@media (max-width: 1068px) {
  h1, .heroi h1 { font-size: 64px; }
  h2 { font-size: 48px; }
  .cap { padding-top: 100px; padding-bottom: 108px; }
  .heroi { padding-top: 32px; }
}
@media (max-width: 834px) {
  .nav-links { gap: 20px; }
  h1, .heroi h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .apoio { font-size: 19px; }
  .janela, .ficha, .faq, .demo-passos, .bento { margin-top: 56px; }
  .janela-heroi { margin-top: 40px; }
  .ficha div { grid-template-columns: 180px 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .nav-preco { margin-left: auto; }
  .nav-in { height: 48px; }
  .cap { padding-top: 72px; padding-bottom: 80px; }
  .heroi { padding-top: 48px; padding-bottom: 72px; }
  h1, .heroi h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.024em; }
  h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
  .apoio { font-size: 17px; line-height: 1.47; margin-top: 16px; }
  .heroi .apoio { margin-top: 16px; }
  .compra { margin-top: 20px; gap: 2px; }
  .preco .req { display: block; }
  .preco .sep { display: none; }
  .janela, .ficha, .faq, .demo-passos, .bento { margin-top: 40px; }
  .ficha div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }

  /* Phone crops (<picture> sources): one scale for every crop, 0.70 (srcset density 2.86x), centred; rectangles cut
     from inside a window get a hairline, no radius and no shadow. They may use 8 px of the gutter on each side. */
  .janela { margin-left: -8px; margin-right: -8px; max-width: none; }
  .janela img, .sombra img { width: auto; max-width: 100%; margin: 0 auto; box-shadow: 0 0 0 0.5px var(--cut); }

  /* Hero: the real top-left of the window, its shadow baked on the top and left only; it runs off the right edge of
     the screen and into the bottom of the chapter, so both cut edges are the screen's. */
  .heroi { padding-bottom: 0; }
  .janela-heroi { margin: 40px calc(-1 * var(--gutter)) 0 0; }
  .janela-heroi img {
    width: 114.574%; max-width: none; box-shadow: none;
    margin: -10.851% 0 0 -14.574%;
  }
  .heroi + .cap { box-shadow: inset 0 0.5px 0 var(--cut); } /* the screen's cut under the hero window */

  .faq summary { font-size: 17px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .cap#requisitos { padding-top: 72px; padding-bottom: 80px; }
  .fecho-icone { width: 80px; height: 80px; }
  .fecho-link { font-size: 17px; margin-top: 16px; }
}

/* ---------- Landing: requisitos in two columns, bento and scene at narrower widths ---------- */
@media (min-width: 1069px) {
  .cap#requisitos .ficha {
    max-width: var(--col); border-bottom: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(5, auto);
    grid-auto-flow: column; column-gap: 56px;
  }
  .cap#requisitos .ficha div { grid-template-columns: 160px 1fr; }
  .cap#requisitos .ficha div:nth-child(5n) { border-bottom: 1px solid var(--hair); } /* closes each column */
}
@media (max-width: 1068px) {
  .bento { gap: 16px; grid-template-rows: 220px 220px 340px auto 430px; }
  .tile { padding: 28px; }
  .tile-titulo { font-size: 21px; line-height: 1.19; }
  .tile-num { font-size: 56px; }
  .tile-frase { font-size: 40px; }
  .obj-busca { left: -26px; top: 92px; }                          /* window at left 28, top 132 */
  .obj-modelo { top: 100px; }  /* 340 px tile: the cut falls just under the divider below "Na primeira transcrição" */
}
/* Narrow tablet (735-899): six columns are too thin for a price at 56 px and for the Ajustes window beside its text,
   so tiles pair up in halves and the wide objects start at the tile padding and leave through the right edge. */
@media (min-width: 735px) and (max-width: 899px) {
  .bento {
    grid-template-rows: 400px 240px 340px auto 470px;
    grid-template-areas:
      "busca  busca  busca  busca  busca  busca"
      "preco  preco  preco  tempo  tempo  tempo"
      "menu   menu   menu   modelo modelo modelo"
      "idioma idioma idioma idioma idioma idioma"
      "agente agente agente agente agente agente";
  }
  .tile-par { padding: 0 28px; }
  .obj-modelo { left: -26px; }
  .t-agente .tile-col { max-width: 30em; }
  /* The Ajustes window does not fit beside or under its text here: the rectangle crop with both switches (the
     phone file at 1 source px per device px), centred and set into the tile's bottom, hairline on the cut. */
  .obj-agente { right: auto; top: auto; bottom: 0; left: calc(50% - 248px); width: 496px; }
  .obj-agente img { box-shadow: 0 0 0 0.5px var(--cut); }
}
@media (max-width: 734px) {
  .bento {
    grid-template-columns: minmax(0, 350px); justify-content: center; gap: 16px;
    grid-template-rows: none;
    grid-template-areas: "busca" "preco" "menu" "modelo" "tempo" "idioma" "agente";
    --stagger: 0ms; /* per-tile trigger on the phone: no row stagger */
  }
  .tile { border-radius: 24px; clip-path: inset(0 round 24px); padding: 24px; }
  .t-busca { min-height: 380px; } .t-preco { min-height: 200px; } .t-menu { min-height: 360px; }
  .t-tempo { min-height: 200px; } .t-agente { min-height: 420px; }
  .t-idioma { grid-template-columns: 1fr; padding: 0; }
  .tile-par { padding: 24px; }
  .tile-par + .tile-par { box-shadow: inset 0 0.5px 0 var(--hair); }
  .tile-titulo { font-size: 19px; line-height: 1.21; }
  .tile-sec { font-size: 15px; line-height: 1.47; margin-top: 6px; }
  .tile-num { font-size: 48px; }
  .tile-frase { font-size: 40px; }
  /* Search: the same capture at half size (780 file, 2x), window at left 24, top 120, bleeding right and bottom. */
  .obj-busca { left: -3px; top: 100px; width: 417px; }
  /* Model and Ajustes: the phone crops (rectangles cut inside the capture), full tile width, set into the tile's
     bottom; the tile edge cuts the sides and the base, a hairline marks the cut on top. */
  .obj-agente { left: 0; right: 0; top: auto; bottom: 0; width: auto; }
  /* Model: the crop sits right under the text (in flow), flush with the tile's sides and base: no hole above it. */
  .obj-modelo { position: relative; left: auto; top: auto; margin: 20px -24px -24px; width: auto; }
  .obj-modelo img, .obj-agente img { width: 100%; box-shadow: 0 0 0 0.5px var(--cut); }
  .t-agente .tile-col { max-width: none; }

  /* Demo on the phone: the same six moments, stacked (tap-free), each a crop of the real capture (the panel at 1 pt =
     1 px; the sheet crops shown full width), a hairline on the cut, the caption under it. Step 1 is the panel's top
     and its foot with the button the hand presses: two real crops, one gap between them. */
  .demo-passos { gap: 48px; }
  .demo-passo { justify-items: stretch; gap: 16px; }
  .demo-quadro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .demo-sombra, .so-largo { display: none; }
  .so-celular { display: block; }
  .demo-vista { width: max-content; max-width: 100%; }
  .demo-img { width: auto; max-width: 100%; box-shadow: 0 0 0 0.5px var(--cut); }
  .demo-inteiro .demo-vista:not(.so-celular) .demo-img { border-top-right-radius: 10px; } /* the window's real corner */
  .so-celular .demo-img { border-bottom-right-radius: 10px; }
  .demo-clique { width: 22px; height: 22px; margin: -1.85px 0 0 -9.02px; }
  .demo-legenda { font-size: 17px; line-height: 1.47; text-align: left; max-width: none; }
}

/* ---------- Long-form pages (privacidade, suporte) ---------- */
.doc-in { max-width: var(--text); margin: 0 auto; }
.doc-cab { padding-top: 88px; padding-bottom: 80px; }
.doc-cab h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.024em; }
.doc-data { margin-top: 20px; font-size: 14px; color: var(--ink-2); letter-spacing: -0.01em; }
.resumo { list-style: none; margin-top: 48px; border-bottom: 1px solid var(--hair); }
.resumo li { padding: 16px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }
.resumo strong { color: var(--ink); font-weight: 600; }
.doc-corpo { padding-top: 80px; padding-bottom: 112px; }

.prosa { color: var(--ink); }
.prosa .doc-resp { color: var(--ink-2); font-size: 15px; }
.prosa h2 { margin-top: 56px; font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; text-wrap: balance; }
.prosa .doc-resp + h2 { margin-top: 40px; }
.prosa h2 + p, .prosa h2 + ul, .prosa h2 + ol { margin-top: 14px; }
.prosa p + p, .prosa p + ul, .prosa ul + p, .prosa p + ol, .prosa ol + p { margin-top: 14px; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: 6px; }
.prosa li::marker { color: var(--ink-2); }
.prosa h2[id], .doc-h2[id], .ingles[id] { scroll-margin-top: 72px; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; letter-spacing: 0;
  background: var(--chip); border-radius: 5px; padding: 1px 5px;
}

/* English version at the end of each document page: same column, a hairline above, a quieter size. */
.ingles { margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.5; }
.ingles .doc-h2 { font-size: 26px; }
.ingles h3 { margin-top: 28px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ingles p { margin-top: 8px; color: var(--ink-2); }
.ingles .doc-h2 + p { margin-top: 16px; }

.contato { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); }
.contato p { color: var(--ink-2); }
.contato .contato-email { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.contato .contato-email a { color: var(--ink); }
#contato { scroll-margin-top: 72px; }

.doc-h2 { font-size: 32px; line-height: 1.12; letter-spacing: -0.022em; }
.doc-h2 + .ficha, .doc-h2 + .faq { margin-top: 24px; }
.ficha + .doc-h2 { margin-top: 80px; }
.ficha-doc div { grid-template-columns: 200px 1fr; }
.faq-doc summary { font-size: 19px; }
.prosa a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.pagina-404 .fecho { min-height: calc(100vh - 48px - 120px); display: flex; align-items: center; justify-content: center; }

@media (max-width: 834px) {
  .doc-cab h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .doc-cab { padding-top: 56px; padding-bottom: 56px; }
  .doc-cab h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
  .resumo { margin-top: 32px; }
  .doc-corpo { padding-top: 56px; padding-bottom: 80px; }
  .prosa h2 { margin-top: 44px; font-size: 21px; }
  .doc-h2 { font-size: 26px; }
  .ficha + .doc-h2 { margin-top: 56px; }
  .ficha-doc div { grid-template-columns: 1fr; }
  .faq-doc summary { font-size: 17px; }
  .contato .contato-email { font-size: 21px; }
  .ingles { margin-top: 64px; }
}

/* ---------- Motion (site-movimento-spec.md). Screen only, motion allowed, and only under html.anim, which the inline
   script sets; without it every rule below is inert and the page shows its final state. ---------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav::after { animation: nav-linha linear both; animation-timeline: scroll(root); animation-range: 0 48px; }
  }
}
@keyframes nav-linha { from { opacity: 0; } to { opacity: 1; } }

@media screen and (prefers-reduced-motion: no-preference) {
  /* Hero: hidden until movimento.js starts its Web Animations (fill: backwards), then the class lifts the hold. */
  html.anim:not(.heroi-pronto) .heroi h1 .l1,
  html.anim:not(.heroi-pronto) .heroi h1 .l2,
  html.anim:not(.heroi-pronto) .heroi .apoio,
  html.anim:not(.heroi-pronto) .heroi .compra,
  html.anim:not(.janela-pronta) .janela-heroi { opacity: 0; }

  /* One verb per kind of thing (review v2, finding 9). Headings: opacity only, .l1 then .l2. Tiles: the only rise.
     Objects inside tiles: enter from the side they bleed off. Menu: opacity only, as a macOS menu. */
  html.anim .revela .l1, html.anim .revela .l2 { opacity: 0; transition: opacity 600ms linear; }
  html.anim .revela .l2 { transition-delay: var(--stagger-line); }
  html.anim .revela.visto .l1, html.anim .revela.visto .l2 { opacity: 1; }
  /* Fecho: the icon settles on the spring, the lines follow 150 ms later. */
  html.anim .revela-fecho .fecho-icone {
    opacity: 0; transform: scale(0.92);
    transition: opacity 400ms linear, transform 900ms var(--spring);
  }
  html.anim .revela-fecho.visto .fecho-icone { opacity: 1; transform: none; }
  html.anim .revela-fecho .l1 { transition-delay: 150ms; }
  html.anim .revela-fecho .l2 { transition-delay: calc(150ms + var(--stagger-line)); }

  /* Bento: Apple's macOS StaggeredFadeIn (0.15 s apart, 30 px, 0.7 s / 0.9 s, easeInOutQuad), once per visual row
     (movimento.js groups by offsetTop and writes --i left to right). */
  html.anim .tile {
    opacity: 0; transform: translateY(var(--rise-tile));
    transition: opacity var(--t-fade) var(--ease-stagger), transform var(--t-move) var(--ease-stagger);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  html.anim .tile.visto { opacity: 1; transform: none; }
  html.anim .tile-obj {
    opacity: 0;
    transition: opacity var(--t-move) var(--ease-move), transform 900ms var(--ease-move);
    transition-delay: calc(var(--i, 0) * var(--stagger) + 200ms);
  }
  html.anim .obj-busca { transform: translate(40px, 24px); }       /* bleeds off right and bottom: comes from there */
  html.anim .obj-agente { transform: translateX(56px); }           /* bleeds off the right */
  html.anim .obj-modelo { transform: translateY(-12px) scale(0.96); transform-origin: 50% 0; } /* a sheet presenting */
  html.anim .obj-menu { transform: none; transition: opacity var(--t-quick) linear; transition-delay: calc(var(--i, 0) * var(--stagger) + 300ms); }
  html.anim .tile.visto .tile-obj { opacity: 1; transform: none; }

  /* Already on screen when movimento.js started (reload mid-page, deep link): final state, no transition. */
  html.anim .sem-anim, html.anim .sem-anim * { transition: none !important; }
  /* Keyboard focus inside a block not yet revealed: show it now. */
  html.anim .revela:focus-within .l1, html.anim .revela:focus-within .l2,
  html.anim .revela:focus-within .fecho-icone { opacity: 1; transform: none; transition: none; }

  /* FAQ chevron turns with the answer. */
  html.anim .faq summary::after { transition: transform 360ms var(--ease-move), border-color 200ms ease-out; }

}

/* ---- Demo, pinned (movimento.js adds .demo-on, only when this same media query matches). One sticky stage the
   height of the screen: compact headline, one caption, the app window as large as the height allows, six dots. The
   window never moves: frames are stacked pixel-aligned and only their opacity changes; our cursor travels over them.
   Every size comes from the viewport (svh, clamp); the queries below keep it to screens where the window reads. ---- */
.demo {
  --d-pad: clamp(12px, 2.4svh, 36px);
  --d-h2: clamp(26px, 4.4svh, 48px);
  --d-cap: clamp(16px, 2.1svh, 21px);
  --d-g1: clamp(6px, 1svh, 12px);
  --d-g2: clamp(14px, 2.6svh, 32px);
  --d-g3: clamp(12px, 1.8svh, 20px);
  --d-h2n: 1; --d-capn: 1;
  --d-chrome: calc(2 * var(--d-pad) + var(--d-h2) * 1.1 * var(--d-h2n) + var(--d-g1) + var(--d-cap) * 1.4 * var(--d-capn) + var(--d-g2) + var(--d-g3) + 6px);
  /* Capped at 1280: the window's real size in points (the 2560 capture lands 1:1 on a Retina screen). */
  --d-w: min(1280px, calc(100vw - 2 * var(--gutter)), calc((100vh - 48px - var(--d-chrome)) * 1.6));
  --d-w: min(1280px, calc(100vw - 2 * var(--gutter)), calc((100svh - 48px - var(--d-chrome)) * 1.6));
}
@media (max-width: 1068px) { .demo { --d-h2n: 2; --d-capn: 2; } }
/* Pinned only where the window comes out at least ~820 px wide (app text ~10 px): one-line headline from 1069 px
   needs 700 px of height, the two-line one (900-1068 px) 780. Anything smaller (tablets, short laptops) gets the
   static steps. movimento.js tests the same two queries. */
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 1069px) and (min-height: 700px),
       screen and (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 780px) {
  html.anim .demo.demo-on { padding: 0; overflow: visible; } /* no clip/hidden on any ancestor of the sticky stage */
  /* "Como funciona" (#vozes) lands with the stage just pinned: 64 px of scroll-padding minus 16 = the 48 px menu. */
  html.anim .demo.demo-on { scroll-margin-top: -16px; }
  /* Track: the stage plus 512 svh of scrubbing (lead 10, six beats of 72, tail 70; movimento.js uses the same units). */
  html.anim .demo-on .demo-trilho { height: calc(100vh - 48px + 512vh); height: calc(100svh - 48px + 512svh); }
  html.anim .demo-on .demo-palco {
    position: sticky; top: 48px;
    height: calc(100vh - 48px); height: calc(100svh - 48px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: var(--d-pad) var(--gutter); overflow: hidden; overflow: clip;
  }
  html.anim .demo-on .demo-cab h2 { font-size: var(--d-h2); line-height: 1.1; }
  @media (min-width: 1069px) {
    html.anim .demo-on .demo-cab h2 { white-space: nowrap; }
    html.anim .demo-on .demo-cab h2 .l1, html.anim .demo-on .demo-cab h2 .l2 { display: inline; }
  }
  html.anim .demo-on .demo-legendas {
    display: grid; margin-top: var(--d-g1); width: 100%; max-width: 62em;
    min-height: calc(var(--d-cap) * 1.4 * var(--d-capn));
  }
  html.anim .demo-on .demo-legendas .demo-legenda {
    grid-area: 1 / 1; max-width: none; margin: 0 auto; align-self: end; /* constant gap to the window */
    font-size: var(--d-cap); line-height: 1.4;
    opacity: 0; transition: opacity 140ms linear;
  }
  html.anim .demo-on .demo-legendas .demo-legenda.on { opacity: 1; transition: opacity 220ms linear 60ms; }
  html.anim .demo-on .demo-janela {
    display: block; position: relative; flex: none; margin-top: var(--d-g2);
    width: var(--d-w); aspect-ratio: 16 / 10;
    --mao: clamp(18px, calc(var(--d-w) * 0.025), 32px); /* the real pointer's share of a 1280 pt window */
  }
  /* A frame is display:none (so its lazy image is not fetched) until movimento.js wants it (.w). */
  html.anim .demo-on .demo-q { display: none; position: absolute; left: 0; top: 0; width: 100%; max-width: none; opacity: 0; }
  html.anim .demo-on .demo-q.w { display: block; }
  /* The frame for this moment is still loading: the empty stage (its shadow) with the right caption and dots. */
  html.anim .demo-on .demo-espera .demo-q, html.anim .demo-on .demo-espera .demo-mao { visibility: hidden; }
  html.anim .demo-on .demo-q-tecla { left: 57.8125%; top: 74.25%; width: 20.3125%; }
  /* Dark: the system's "Nova pessoa" list opens 10 px further right, so the dark patch is 530 px wide, same origin. */
  @media screen and (prefers-color-scheme: dark) { html.anim .demo-on .demo-q-tecla { width: 20.7031%; } }
  html.anim .demo-on .demo-mao {
    position: absolute; left: 0; top: 0; z-index: 2; width: var(--mao); height: var(--mao);
    margin: calc(var(--mao) * -0.084) 0 0 calc(var(--mao) * -0.41); transform-origin: 41% 8.4%;
    will-change: transform;
  }
  html.anim .demo-on .demo-pontos {
    display: flex; gap: 8px; list-style: none; margin-top: var(--d-g3); height: 6px;
  }
  html.anim .demo-on .demo-pontos li { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); transition: background-color 200ms linear; }
  html.anim .demo-on .demo-pontos li.on { background: var(--ink); }
  /* The list stays for screen readers: the .so-leitor descriptions and captions (figures are not rendered, so their
     images never load). */
  html.anim .demo .demo-passos {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  /* Not rendered from the first paint (before movimento.js adds .demo-on), so the browser's lazy loading never fetches
     the static steps' images where the stage will pin. If movimento.js does not start, the head script's 2.5 s
     fallback removes html.anim and they come back. */
  html.anim .demo .demo-passos figure { display: none; }
}

/* ---------- Reduced motion and print: final states, whatever classes or inline styles are present ---------- */
@media print, (prefers-reduced-motion: reduce) {
  .heroi h1 .l1, .heroi h1 .l2, .heroi .apoio, .heroi .compra, .janela-heroi,
  .revela .l1, .revela .l2, .fecho-icone, .tile, .tile-obj, .demo-q, .demo-legenda {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
  .nav::after { animation: none !important; opacity: 1 !important; }
}
@media print {
  .nav { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pular { display: none; }
}

/* ---------- Dark only: layout that differs from light (after every base rule, so these win at equal weight) ---------- */
@media screen and (prefers-color-scheme: dark) {
  /* Where two chapters meet, light alternates #f5f5f7 / #fff; on one black page that edge is gone and 120 + 128 px of
     black reads as a hole, so the next chapter starts at 72 px. The pinned scene keeps padding 0 (:not(.demo-on));
     the document pages are not touched. */
  @media (min-width: 641px) {
    .cap#vozes:not(.demo-on), .cap#destaques, .cap#requisitos, .cap#perguntas, .cap#perguntas + .fecho { padding-top: 72px; }
  }
  /* Phone demo crops that hold a real window corner (m-demo-1/1b/7): the file's alpha already carries the corner and
     the window's own light rim, so no CSS radius and no all-round hairline (two arcs made a double corner on black).
     The 16 % hairline marks only the horizontal cut, bottom (1, 7) or top (1b); the left cut needs none, because the
     crop starts 2 CSS px left of the app's own panel divider, which already draws that edge (a hairline beside it doubled). */
  @media (max-width: 734px) {
    .demo-inteiro .demo-vista:not(.so-celular) .demo-img, .demo-inteiro .so-celular .demo-img { border-radius: 0; box-shadow: none; }
    .demo-inteiro .demo-vista::after { content: ""; position: absolute; pointer-events: none; border: 0 solid var(--cut); left: 0; right: 0; }
    .demo-inteiro .demo-vista:not(.so-celular)::after { top: 100%; height: 0.5px; border-top-width: 0.5px; }
    .demo-inteiro .so-celular::after { bottom: 100%; height: 0.5px; border-top-width: 0.5px; }
  }
}

