/* Hallmark · genre: editorial with the v5 night · macrostructure: the product's door, then ruled sections on the crema · design-system: design.md
 * contrast: crema on the night 17.9:1, lead 14.6:1 (--color-on-night-2); ink on crema 15.8:1, ink-2 10.6:1, muted 6.2:1
 *   (5.7:1 on --color-paper-2); the cherry of errors on crema above 5:1
 * Capifone's product home (/atendente/): the door shared with /demonstracao/ (automatic-entry.css), then the selling
 * content on the crema: the three channels, the recordings, the measurements, how it works, the trades, the plans, the
 * rules, the questions, our attendant and the activation form. Each section opens on the 2 px ink rule; from 1024 px
 * the shorter ones put their title on the left and their content on the right (the inner pages' split section).
 * No cards inside cards, no drawn scenes: the channels are words and a status, the product is shown by its recordings.
 * Every id and data attribute the scripts read is kept (automatic-entry.js, /site/planos.js, /site/ativacao.js,
 * /site/provas.js, /site/atendente.js, /site/acao-movel.js, /site/medicao.js, /medir.js and inicio.js).
 * Archivo is the shell's face (tokens.css, font-display: optional), so a slow first visit keeps the metric-matched
 * fallback for the whole view and nothing re-flows (CLS 0 on verificar-site.mjs's cold phone).
 * Requires tokens.css, shell.css and automatic-entry.css. Tokens only. */

/* A long page: a section named in the address or picked in the index (#planos, #ativar) is reached at once, not by a
   glide of several screens that would still be running while the page settles or the visitor reads (the shell's
   smooth anchor scrolling is left out here) */
html { scroll-behavior: auto; }

/* The title test (entrada-titulo): /medir.js sets data-versao-entrada-titulo on <html> before the first paint; a missing
   or inactive test keeps today's title (a) */
#entry-title [data-title-version="b"] { display: none; }
html[data-versao-entrada-titulo="b"] #entry-title [data-title-version="a"] { display: none; }
html[data-versao-entrada-titulo="b"] #entry-title [data-title-version="b"] { display: inline; }

/* ---------- The door (automatic-entry.css) and this page's additions ---------- */
/* The trail is the shell's (.trail); on this page its link keeps a 44 px target with a mouse too */
.door-trail a { min-height: 44px; color: inherit; }
/* Phones: the trail's 44 px targets reach into the space under the line (not above it: the bar reads the trail's top
   to know it is over the night) */
@media (max-width: 39.99rem) { .door-trail { margin-bottom: -12px; } }
.door-card .link { color: var(--color-on-night); }
@media (hover: hover) and (pointer: fine) {
  .door-trail a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--color-accent-on-night); }
  .door-card .link:hover { text-decoration-color: var(--color-accent-on-night); }
}
/* "Nova demonstração", under the preparation's actions (kept close to them, above the field's brightest light) */
.door-panel--progress .door-more { margin-top: var(--space-2xs); }
.door-head h3 { font-size: var(--text-title); font-weight: var(--wght-ui); letter-spacing: var(--track-title); line-height: 1.2; }
/* Phones: the bust a little smaller than on /demonstracao/ (this page has more to show under the door) */
@media (max-width: 39.99rem) { .door-capi { width: 136px; } }

/* ---------- The selling content ---------- */
#sales-content .link { white-space: normal; }
#sales-content .display-l { font-size: var(--text-display-m); line-height: 1.02; }
#sales-content .sec-head .display-l { flex: 1 1 16ch; }
@media (min-width: 40rem) { #sales-content .display-l { max-width: 16ch; } }

/* Phones: a long page in a short budget (verificar-site.mjs: the selling content within 10.5 screens at 390 x 664), so
   the sections sit 56 px apart instead of 72 and their heads a little closer to what they introduce. The first one
   keeps a clear gap under the door (nothing else sits between them since 2026-12-02). */
@media (max-width: 39.99rem) {
  #sales-content > .sec { padding-block: 28px; }
  #sales-content > .sec:first-child { padding-top: var(--space-xl); }
  #sales-content .sec-head { margin-bottom: var(--space-md); }
  #sales-content .faq-list summary { min-height: 56px; }
}
@media (min-width: 40rem) { #sales-content > .sec:first-child { padding-top: var(--section-pad); } }

/* Split sections: the 2 px ink rule, the title on the left from 1024 px */
.prod-split { row-gap: var(--space-md); padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
@media (min-width: 40rem) { .prod-split { row-gap: var(--space-lg); } }
.prod-split > * { grid-column: 1 / -1; min-width: 0; }
.prod-split-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.prod-split-intro { max-width: 40ch; color: var(--color-ink-2); }
@media (min-width: 64rem) {
  .prod-split > .prod-split-head { grid-column: 1 / span 4; align-self: start; padding-right: var(--space-md); }
  .prod-split > .prod-split-body { grid-column: 5 / -1; }
}
@media (min-width: 100rem) {
  .prod-split > .prod-split-body { grid-column: 5 / span 7; }
}
/* A part of a section (the measurements under the channels, the rules under the plans): a 1 px ink rule, its title on
   the left from 1024 px */
.prod-sub { row-gap: var(--space-sm); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--color-ink); }
@media (min-width: 40rem) { .prod-sub { margin-top: var(--space-xl); } }
.prod-sub > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 64rem) {
  .prod-sub > .prod-sub-head { grid-column: 1 / span 4; padding-right: var(--space-md); }
  .prod-sub > .prod-sub-body { grid-column: 5 / -1; }
}

/* The three channels: one link each, with its name and where it stands today in a few words (no drawn screens).
   Phones and tablets: rows between rules with the arrow on the right; from 1024 px three columns side by side. */
.canais { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-rule); }
.canal { min-width: 0; border-bottom: 1px solid var(--color-rule); }
.canal-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nome seta" "estado seta"; align-items: center; gap: var(--space-3xs) var(--space-sm); min-height: 76px; padding-block: var(--space-sm); color: inherit; text-decoration: none; }
.canal-nome { grid-area: nome; min-width: 0; }
.canal-estado { grid-area: estado; display: flex; align-items: center; gap: var(--space-xs); min-width: 0; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.45; }
.canal-estado::before { content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: var(--radius-pill); }
.canal-estado[data-estado="ligado"] { color: var(--color-ink); font-weight: var(--wght-ui); }
.canal-estado[data-estado="ligado"]::before { background: currentColor; }
.canal-seta { grid-area: seta; transition: transform var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .canal-link:hover .canal-nome { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--color-accent); }
  .canal-link:hover .canal-seta { transform: translateX(2px); }
}
@media (min-width: 64rem) {
  .canais { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .canal { border-bottom: 0; }
  .canal-link { min-height: 0; padding-block: var(--space-md); }
}
.prod-limites { margin-top: 0; border-bottom: 1px solid var(--color-rule); }
/* Under the channel rows the last row's rule is the fold's top rule (one line, not two) */
@media (max-width: 63.99rem) { .prod-limites details:first-child { border-top: 0; } }
@media (min-width: 64rem) { .prod-limites { margin-top: var(--space-sm); } }
.prod-limites summary { min-height: 56px; font-size: 1.125rem; }
.prod-limites .faq-answer { max-width: 62ch; }
@media (min-width: 64rem) {
  .prod-limites details:first-child { border-top: 1px solid var(--color-rule); }
  .prod-limites details:first-child summary { padding-top: var(--space-sm); min-height: 56px; }
}

/* The recordings: numbered chapters, one open at a time (/site/provas.js); the media only on intent */
.provas { border-top: 1px solid var(--color-rule); }
.product-proof { border-bottom: 1px solid var(--color-rule); }
.product-proof summary { display: flex; align-items: center; gap: var(--space-sm); min-height: 64px; padding-block: var(--space-sm); font-size: var(--text-title); font-weight: var(--wght-ui); letter-spacing: var(--track-title); line-height: 1.25; list-style: none; cursor: pointer; }
.product-proof summary::-webkit-details-marker { display: none; }
.proof-number { min-width: 2ch; color: var(--color-muted); font-size: 1rem; font-weight: var(--wght-small); font-variant-numeric: tabular-nums; }
.product-proof summary .faq-plus { margin-left: auto; }
.product-proof[open] .faq-plus::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .product-proof summary:hover .proof-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--color-accent); }
}
.proof-content { display: grid; gap: var(--space-sm); padding-bottom: var(--space-lg); }
.proof-text { max-width: var(--measure); color: var(--color-ink-2); font-size: 1.125rem; line-height: 1.6; }
.proof-media { position: relative; width: 100%; aspect-ratio: 10 / 7; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-media); background: var(--color-paper-2); }
.proof-media img, .proof-media video { width: 100%; height: 100%; object-fit: contain; }
.proof-play { position: absolute; left: var(--space-sm); bottom: var(--space-sm); }
.proof-play .ico { fill: currentColor; stroke: none; }
.proof-status:empty { display: none; }
.proof-status { position: absolute; inset: var(--space-xs) var(--space-xs) auto; z-index: 1; padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.4; pointer-events: none; }
.proof-alternative { color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); }
.proof-alternative a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-underline-offset: 0.2em; }
.proof-media video::cue { color: var(--color-paper); background: var(--color-ink); }
@media (min-width: 64rem) {
  .proof-content { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .proof-text { grid-column: 1 / span 4; grid-row: 1; padding-right: var(--space-md); }
  .proof-alternative { grid-column: 1 / span 4; grid-row: 2; }
  .proof-media { grid-column: 5 / -1; grid-row: 1 / span 3; }
}

/* The measurements: three readings, the number first */
.leituras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); margin: 0; }
.leitura { display: grid; align-content: start; gap: var(--space-3xs); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.leitura:first-child { padding-top: 0; border-top: 0; }
.leitura dd { order: -1; font-size: var(--text-display-m); font-weight: var(--wght-display); font-stretch: var(--wdth-display); letter-spacing: var(--track-display); line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leitura dd abbr { text-decoration: none; }
.leitura dt { max-width: 26ch; color: var(--color-ink-2); line-height: 1.45; }
.leitura dt span { color: var(--color-muted); }
.leituras-fonte { margin-top: var(--space-md); }
/* Phones: the number and its sentence side by side, one reading to a row */
@media (max-width: 39.99rem) {
  .leitura { grid-template-columns: 9.6rem minmax(0, 1fr); align-items: baseline; column-gap: var(--space-sm); padding-block: var(--space-xs); }
  .leitura dd { font-size: 1.625rem; }
  .leitura dt { font-size: 1rem; }
}
@media (min-width: 40rem) {
  .leituras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .leitura, .leitura:first-child { padding-top: 0; border-top: 0; }
}

/* How it works (the shared numbered steps) and the two free tools */
@media (max-width: 39.99rem) { .prod-como .step { padding-block: var(--space-sm) var(--space-md); } .prod-como .step:first-child { padding-top: 0; } }
.prod-ferramentas { display: grid; gap: var(--space-2xs); margin-top: var(--space-md); }
.prod-ferramentas p { max-width: 52ch; color: var(--color-ink-2); }
.prod-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-sm); }
.prod-links .link { align-self: start; line-height: 1.3; }
@media (min-width: 40rem) { .prod-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); } }
@media (min-width: 64rem) {
  .prod-ferramentas { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; }
  .prod-ferramentas p { grid-column: 2 / span 4; }
  .prod-links { grid-column: 6 / -1; }
}

/* The trades with their own configuration: a ruled index */
.ramos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--col-gap); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-rule); }
.ramos li { min-width: 0; border-top: 1px solid var(--color-rule); }
.ramo { display: grid; align-content: start; gap: var(--space-3xs); min-height: 44px; padding-block: var(--space-sm) var(--space-md); color: inherit; text-decoration: none; }
.ramo strong { font-size: 1.0625rem; font-weight: var(--wght-ui); line-height: 1.3; overflow-wrap: anywhere; }
.ramo span { max-width: 36ch; color: var(--color-ink-2); font-size: 0.9375rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .ramo:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; text-decoration-color: var(--color-accent); }
}
/* Phones: an index of the names, two to a row from 360 px; what each configuration covers stays in the link's name for
   screen readers and on the trade's own page, and shows from 640 px */
@media (max-width: 39.99rem) {
  .ramo { padding-block: var(--space-xs); }
  .ramo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 22.5rem) { .ramos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 40rem) { .ramo strong { font-size: 1.125rem; } .ramo span { font-size: 1rem; line-height: 1.5; } }
@media (min-width: 64rem) { .ramos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod-ramos-todos { margin-top: var(--space-sm); }

/* The plans (/site/planos.js and /site/planos.json own the values and the price switch). Each card reserves the
   lines its longest text needs, so the configured answer arriving moves nothing below it. */
.planos-aviso { margin-bottom: var(--space-md); }
.planos { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--color-rule); }
.plano { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-xs); min-width: 0; padding-block: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-rule); }
.plano-nome { font-size: var(--text-title); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2xs); }
.price-amount { font-size: var(--text-display-m); font-weight: var(--wght-display); font-stretch: var(--wdth-display); letter-spacing: var(--track-display); line-height: 1; font-variant-numeric: tabular-nums; }
.price-prefix, .price-period { color: var(--color-ink-2); font-size: 1rem; }
.plano-linha { display: grid; gap: 2px; }
.plano-linha > span { color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.4; }
.plano-linha > p { color: var(--color-ink); line-height: 1.5; overflow-wrap: anywhere; }
/* What a plan includes that is not switched on yet, next to the choice (Codex review A22, 2026-12-02) */
.plano-aviso { color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.45; }
/* The longest included text at each width: three lines in narrow columns; on a phone from 360 px one line, two for the
   two plans whose configured text runs longer */
.plan-included { min-height: calc(3 * 1.5em); }
@media (min-width: 22.5rem) and (max-width: 39.99rem) {
  .plan-included { min-height: 1.5em; }
  :is([data-plan="premium"], [data-plan="sob-medida"]) .plan-included { min-height: calc(2 * 1.5em); }
  .plano { padding-block: var(--space-sm); }
}
.plano-acao { align-self: flex-start; margin-top: auto; }
/* Phones: each plan is one row, its name and its action on the first line */
@media (max-width: 39.99rem) {
  .plano { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-sm); row-gap: var(--space-2xs); }
  .plano > * { grid-column: 1 / -1; }
  .plano > .plano-nome { grid-column: 1; grid-row: 1; }
  .plano > .plano-acao { grid-column: 2; grid-row: 1; margin: 0; }
}
/* Under 360 px the name and the button no longer fit side by side with air between them: the button goes last */
@media (max-width: 22.49rem) {
  .plano > .plano-acao { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: var(--space-2xs); }
}
@media (min-width: 40rem) {
  .planos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .plano { gap: var(--space-sm); padding-block: var(--space-md); }
}
@media (min-width: 64rem) {
  .planos { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-bottom: 1px solid var(--color-rule); }
  .plano { padding: var(--space-md) var(--space-md) var(--space-lg); border-bottom: 0; }
  .plano:first-child { padding-left: 0; }
  .plano + .plano { border-left: 1px solid var(--color-rule); }
}
.planos-notas { display: grid; gap: var(--space-2xs); margin-top: var(--space-md); color: var(--color-ink-2); font-size: 1rem; line-height: 1.55; }
.planos-notas p { max-width: 62ch; }

/* The rules, in writing (under the plans) */
.regras { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--color-rule); }
.regras li { max-width: 62ch; padding-block: var(--space-2xs); border-top: 1px solid var(--color-rule); font-size: 0.9375rem; line-height: 1.5; }
.regras li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 40rem) { .regras li { padding-block: var(--space-sm); font-size: inherit; line-height: inherit; } }

/* The questions (the shared accordion) */
.prod-perguntas .faq-list { border-bottom: 1px solid var(--color-rule); }
@media (max-width: 63.99rem) { .prod-perguntas .faq-list details:first-child { border-top: 0; } }

/* Our attendant, inline (/site/atendente.js). The parts are the window's quick-question view (conversa.css, which pages
   without the helper do not load), so they are written here with the same values. */
.chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-media); background: var(--color-paper); }
.chat-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-rule); }
.chat-head strong { grid-column: 1; font-size: 1.0625rem; font-weight: var(--wght-ui); line-height: 1.3; }
.chat-head .attendant-tag { grid-column: 1; color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.4; }
.chat-head #attendant-new { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; font-size: var(--text-sm); }
.attendant-suggestions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md) 0; }
.attendant-suggestions button {
  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);
  cursor: pointer;
  transition: background-color var(--dur-color) var(--ease-out), border-color var(--dur-color) var(--ease-out);
}
.attendant-suggestions button:disabled { opacity: 1; border-color: var(--color-rule); color: var(--color-ink-2); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .attendant-suggestions button:hover:not(:disabled) { background: var(--color-paper-2); border-color: var(--color-ink); }
}
.attendant-log { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--space-sm); min-height: 10rem; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md); }
/* Earlier messages scroll away under a soft edge (as tall as the log's top padding, so an unscrolled first line is never
   faded) instead of being cut mid-line right under the suggestions. */
.attendant-log { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--space-md)); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--space-md)); }
.attendant-message { max-width: 44ch; line-height: 1.5; overflow-wrap: anywhere; }
.attendant-message-bot { align-self: flex-start; color: var(--color-ink); }
.attendant-message-user { align-self: flex-end; max-width: min(46ch, 86%); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); background: var(--color-ink); color: var(--color-paper); }
.attendant-message-human { align-self: flex-start; }
.attendant-team-label { font-weight: var(--wght-ui); }
/* Answer links are whole 44 px targets */
.attendant-message a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: var(--wght-ui); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { .attendant-message a:hover { text-decoration-color: var(--color-accent); } }
.attendant-form { padding: var(--space-sm) var(--space-md) 0; border-top: 1px solid var(--color-rule); }
.attendant-form label { display: block; margin-bottom: var(--space-2xs); font-size: var(--text-sm); font-weight: var(--wght-ui); }
.attendant-compose { display: flex; gap: var(--space-2xs); }
.attendant-compose input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 1.0625rem;
  outline: 2px solid transparent;
  outline-offset: 1px;
}
.attendant-compose input::placeholder { color: var(--color-muted); opacity: 1; }
.attendant-compose input:focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
.attendant-compose input[readonly] { background: var(--color-paper-2); }
.attendant-compose input[aria-invalid="true"] { border-color: var(--color-accent); }
.attendant-compose .btn { min-height: 52px; padding: 0 var(--space-md); }
.attendant-compose .btn:disabled { opacity: 1; border-color: var(--color-rule-strong); background: var(--color-paper-3); color: var(--color-ink-2); }
.attendant-form[data-state="sending"] .btn { opacity: 0.7; }
.attendant-status { min-height: 1.45em; padding: var(--space-2xs) var(--space-md) 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: var(--wght-small); line-height: 1.45; }
.attendant-status[data-error] { color: var(--color-accent); }
.attendant-fallback { padding: 0 var(--space-md) var(--space-2xs); }
.chat .notice { padding: 0 var(--space-md) var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.prod-chat { height: clamp(480px, 74vh, 640px); }
/* On phones, controls and multiline feedback size the card; only the transcript scrolls. */
@media (max-width: 39.99rem) {
  .prod-chat { height: auto; }
  .prod-chat .attendant-log { flex: none; height: clamp(10rem, 30vh, 20rem); }
}
.prod-chat .chat-head { grid-template-columns: auto minmax(0, 1fr) auto; }
.prod-chat-avatar { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; margin-right: var(--space-2xs); overflow: hidden; border-radius: var(--radius-pill); background: var(--color-paper-3); }
.prod-chat-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.prod-chat .chat-head strong, .prod-chat .chat-head .attendant-tag { grid-column: 2; }
.prod-chat .chat-head #attendant-new { grid-column: 3; }
.prod-chat .attendant-suggestions button { white-space: normal; text-align: left; }
.prod-chat .attendant-fallback { padding-bottom: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); }

/* The activation form (/site/ativacao.js) */
.prod-form { display: grid; align-content: start; gap: var(--space-md); }
.prod-campos { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm) var(--col-gap); }
@media (min-width: 40rem) { .prod-campos { row-gap: var(--space-md); } }
/* The name and the business side by side from 360 px; the others the full width */
@media (min-width: 22.5rem) {
  .prod-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-campos .field--full { grid-column: 1 / -1; }
}
.field { display: grid; align-content: start; gap: var(--space-2xs); min-width: 0; }
.field label { font-size: 1rem; font-weight: var(--wght-ui); line-height: 1.35; }
.field label span { color: var(--color-muted); font-weight: var(--wght-small); }
.field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 1.0625rem;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: border-color var(--dur-color) var(--ease-out);
}
.field textarea { min-height: 96px; padding-block: var(--space-xs); line-height: 1.5; resize: vertical; }
@media (min-width: 40rem) { .field textarea { min-height: 120px; } }
.field :is(input, select, textarea):focus-visible { outline-color: var(--color-focus); border-color: var(--color-ink-2); }
/* A refused field turns red at once (no fade), focused or not, the same red as its reason */
.field :is(input, select, textarea)[aria-invalid="true"],
.field :is(input, select, textarea)[aria-invalid="true"]:focus-visible { border-color: var(--color-accent); transition: none; }
.field :is(input, select, textarea):disabled { opacity: 1; background: var(--color-paper-2); color: var(--color-ink-2); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .field :is(input, select, textarea):hover:not(:focus):not(:disabled):not([aria-invalid="true"]) { border-color: var(--color-ink-2); }
}
.field-error { color: var(--color-accent); font-size: var(--text-sm); font-weight: var(--wght-ui); line-height: 1.45; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.prod-enviar { width: 100%; }
/* Unavailable (before the form is ready, after a request is received): a quiet pill at full contrast, at once (a fade
   from the ink pill passes through colours that read below 4.5:1) */
.prod-enviar:disabled { opacity: 1; border-color: var(--color-rule-strong); background: var(--color-paper-3); color: var(--color-ink-2); transition: none; }
@media (min-width: 40rem) { .prod-enviar { justify-self: start; width: auto; } }
.prod-form-status { min-height: 1.6em; color: var(--color-ink-2); line-height: 1.5; }
@media (max-width: 39.99rem) { .prod-form-status:empty { min-height: 0; } }
.prod-form-status:focus { outline: none; }
#activation-form[data-state="received"] .prod-form-status { color: var(--color-ink); font-weight: var(--wght-ui); }
#activation-form:is([data-state="error"], [data-state="limited"]) .prod-form-status { color: var(--color-accent); font-weight: var(--wght-ui); }
.prod-form-aviso { color: var(--color-ink); }

/* The phones' bar back to the demonstration (/site/acao-movel.js), once the door is out of sight */
.mobile-action-bar { position: fixed; left: var(--space-sm); right: var(--space-sm); bottom: calc(var(--space-sm) + env(safe-area-inset-bottom)); z-index: var(--z-sticky); }
.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-md);
  overflow: hidden;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: var(--shadow-float);
  font-weight: var(--wght-ui);
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html.is-locked .mobile-action-bar { visibility: hidden; }
@media (min-width: 43.8125rem) { .mobile-action-bar { display: none; } }

/* Reduced motion: the shell shortens every transition to 1 ms; this page's controls drop theirs entirely */
@media (prefers-reduced-motion: reduce) {
  .produto :is(.btn, .link, .proof-chevron, .field input, .field select, .field textarea) { transition: none !important; }
}
