/* Hallmark · shape: 08 Photographic, folds that open one into the next · genre: editorial · theme: custom · job: buy · idea: "a documentary photo essay of the plaques at work on Acre shop counters, tables and doors, where the words are only captions" · vibe: "daylight, wood, black plaques, quiet captions"
 * paper: oklch(98.6% 0.002 95) · accent: none, the photographs carry the colour · display: Golos Text · body: Golos Text · hero: Poster, the counter photograph full bleed with the head low left on the calm wood · nav: light over the photograph, solid paper on scroll · footer: the last photograph (the card in a hand) with the contact, then a paper strip · imagery: four generated photographs (FOTOS.md), each labelled Ilustração · signature: each fold is a photograph that opens through a widening window as you scroll, with numbered captions carrying the prices
 * axes: light/grotesk-sans/neutral · posture: Restrained · contrast: pass · fold: pass · comp: referencia.png (PO-approved) · reproduced (checked at 1440x900) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V5 · weakest: P and H, a photo essay can drift into mood with no offer; every photograph carries its format and two prices as order links, and the head and the button sit on the first frame */

/* Hallmark · waive 83 · photographs cover 39% of the page below the hero, under the 45% the gate allows a Photographic shape · the PO's Balcão is a photo essay where every fold is a photograph by brief, and the steps photo carries the essay through the type sections the finish review called a template */
/* Hallmark · reworded "Também fazemos sites e marcas." to "Mais do que um cartão." · craft § 6, the critique found the head did not cover the PDV and Kepi rows under it; the live site's own head does */
/* Hallmark · dismissed 58 · the h1 is the PO-approved headline the comp sets in three lines, kept verbatim; the page total over 450 words is the privacy note, the legal line, the fees and the six real questions the content rules keep */

@import url("./tokens.css");
@import url("./base.css");

/* ---------- Base ---------- */
body { font-size: var(--text-md); line-height: 1.6; font-synthesis: none; --borda: max(var(--gutter), calc((100% - var(--container)) / 2)); }
b, strong { font-weight: 600; }
.pular { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-tooltip); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); transform: translateY(-200%); }
.pular:focus-visible { transform: none; }
h2 { font-size: var(--text-section); font-weight: 500; letter-spacing: var(--tracking-display); line-height: 1.12; max-width: 20ch; }
h3 { font-size: var(--text-title); font-weight: 600; line-height: 1.25; }
a:hover { text-decoration-thickness: 2px; }

.marca { font-family: var(--font-display); font-size: var(--text-marca); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border: 1px solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-foto-tinta); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-foco-foto); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.link:active { color: var(--color-ink-2); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Navegação: clara sobre a foto, sólida na rolagem ---------- */
.topo { position: absolute; inset: 0 0 auto; z-index: var(--z-sticky-nav); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-lg) var(--borda); color: var(--color-foto-tinta); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.js .topo { position: fixed; }
.topo:not([data-solido]) { background: var(--color-foto-faixa); } /* faixa translúcida (sem gradiente): o texto branco lê sobre a parede clara da foto */
.topo[data-solido] { background: var(--color-paper); color: var(--color-ink); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); }
.topo .marca:focus-visible, .topo__nav a:focus-visible, .topo__menu:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.topo__nav { display: flex; gap: var(--space-lg); }
.topo__nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.topo__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.topo__menu { display: none; min-height: 44px; padding: 0 var(--space-md); border: 1px solid currentColor; border-radius: var(--radius-card); background: none; color: inherit; font-weight: 500; cursor: pointer; }
.topo__menu:active { opacity: 0.8; }

/* ---------- Dobras de foto ---------- */
.dobras { position: relative; }
.dobra { position: relative; height: 100svh; min-height: 34rem; overflow: clip; color: var(--color-foto-tinta); background: var(--color-ink); }
.dobra__foto { position: absolute; inset: 0; margin: 0; }
.dobra__foto picture { display: block; height: 100%; }
.dobra__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.dobra--abre .dobra__foto img { object-position: 45% 100%; transform: scale(1.05); transform-origin: 0% 96%; } /* leve, a partir da esquerda: a tenda sai de baixo do título e a mão com o celular continua entrando pela direita */ /* a tenda abre espaço para o título sobre a madeira, como na referência */ /* a janela clara sai do quadro: o texto fica sobre a madeira */
.dobra__abre { position: absolute; left: clamp(var(--gutter), calc(var(--gutter) + (100% - 1440px) * 0.12), 120px); bottom: 9%; z-index: var(--z-raised); display: grid; gap: var(--space-xl); justify-items: start; max-width: 36rem; }
.dobra__abre .btn { min-height: 52px; padding: 0 var(--space-xl); font-size: var(--text-lg); }
.dobra__abre h1 { font-size: var(--text-display); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.12; max-width: 19ch; color: var(--color-foto-tinta); text-shadow: 0 1px 2px var(--color-foto-sombra), 0 2px 10px var(--color-foto-sombra); } /* sombra de tinta com deslocamento: sem ela o branco cai abaixo de 4,5:1 nos reflexos da madeira (detector) */
.ilustracao { position: absolute; right: var(--borda); bottom: var(--space-md); z-index: var(--z-raised); padding: var(--space-2xs) var(--space-xs); background: var(--color-foto-placa); font-size: var(--text-xs); color: var(--color-foto-tinta); }

.legenda { position: absolute; right: var(--borda); bottom: var(--space-2xl); z-index: var(--z-raised); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-xs); max-width: 25rem; padding: var(--space-md) var(--space-lg); background: var(--color-foto-placa); color: var(--color-foto-tinta); font-size: var(--text-sm); line-height: 1.5; }
.legenda__n { grid-row: span 2; font-size: var(--text-num); font-weight: 400; line-height: 0.9; font-variant-numeric: tabular-nums; }
.legenda__precos { display: flex; flex-wrap: wrap; column-gap: var(--space-lg); font-variant-numeric: tabular-nums; }
.legenda__precos a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.legenda__precos a:focus-visible { outline: 2px solid var(--color-foco-foto); outline-offset: 2px; }

/* a próxima foto abre por uma janela que se alarga */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 40rem) {
    .js:not(.shot) .dobra:not(.dobra--abre) .dobra__foto picture { animation: janela linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes janela { from { clip-path: inset(16% 12% 0 12%); } to { clip-path: inset(0 0 0 0); } }
  }
}

/* ---------- Seções em papel ---------- */
.precos, .passos, .duvidas, .servicos { position: relative; z-index: var(--z-raised); background: var(--color-paper); }
.precos { padding-block: var(--section-gap-l) var(--section-gap-s); }
.precos__grade { display: grid; gap: var(--space-2xl); }
.precos__cab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.opcoes div { display: grid; gap: var(--space-xs); }
.opcoes dt { font-weight: 600; }
.opcoes dd { margin: 0; color: var(--color-ink-2); max-width: 40ch; }
.tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabela caption { caption-side: top; padding-bottom: var(--space-lg); text-align: left; font-size: var(--text-sm); color: var(--color-muted); }
.tabela th, .tabela td { padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: 1px solid var(--color-rule); text-align: left; vertical-align: middle; }
.tabela thead th { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); border-bottom-color: var(--color-ink); }
.tabela tbody th { font-size: var(--text-title); font-weight: 500; width: 46%; }
.tabela a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-xl); font-weight: 500; color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.tabela a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nota { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-ink-2); max-width: 62ch; }

.passos { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.passos__grade { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.passos__lista { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: 1px solid var(--color-ink); }
.passos__lista b { font-size: var(--text-xl); font-weight: 600; }
.passos__foto { margin: 0; }
.passos__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.passos__foto figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.nw { white-space: nowrap; }
.passos__lista li { padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); font-size: var(--text-lead); }
.passos__lista p { max-width: none; }
.passos__lista li::before { content: none; }

.duvidas { padding-block: var(--section-gap) var(--section-gap-s); }
.duvidas__lista { margin-top: var(--space-2xl); border-top: 1px solid var(--color-ink); }
.duvidas details { border-bottom: 1px solid var(--color-rule); }
.duvidas summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md); font-size: var(--text-lg); font-weight: 500; cursor: pointer; list-style: none; }
.duvidas summary::-webkit-details-marker { display: none; }
.mais { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.duvidas details[open] .mais .v { opacity: 0; }
.duvidas summary:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.duvidas summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.duvidas details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); font-size: var(--text-lg); max-width: none; }
.duvidas details:not([open]) > p { display: none; }

.servicos { padding-block: var(--section-gap-s) var(--section-gap); border-top: 1px solid var(--color-rule); }
.servicos__lista { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-2xl) 0 0; padding: 0; }
.servicos__lista li { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-sm); padding: 0 var(--space-xl); border-left: 1px solid var(--color-rule); }
.servicos__lista li:first-child { padding-left: 0; border-left: 0; }
.servicos__lista li:last-child { padding-right: 0; }
.servicos__lista p { color: var(--color-ink-2); }

/* ---------- Fim: a última foto com o contato ---------- */
.fim { position: relative; z-index: var(--z-raised); background: var(--color-paper); }
.dobra__contato { position: absolute; left: var(--borda); top: 50%; transform: translateY(-50%); z-index: var(--z-raised); display: grid; gap: var(--space-lg); justify-items: start; max-width: 28rem; }
/* foto 4: o celular ocupa o canto de baixo à esquerda; a foto anda para a direita e o contato vai para a parede clara, em tinta (5,5:1; o branco ficava em 2,3:1) */
@media (min-width: 60.01rem) {
  .dobra--fim .dobra__foto img { transform: translateX(12%) scale(1.25); }
  .dobra--fim .dobra__contato { top: 15%; transform: none; max-width: 30rem; color: var(--color-ink); }
  .dobra--fim .dobra__contato h2 { color: var(--color-ink); max-width: none; }
  .dobra--fim .dobra__contato a:not(.btn):focus-visible { outline-color: var(--color-focus); }
}
.dobra__contato h2 { color: var(--color-foto-tinta); font-weight: 600; }
.dobra__contato p { line-height: 1.8; }
.dobra__contato a:not(.btn) { color: inherit; }
.dobra__contato a:not(.btn):focus-visible { outline: 2px solid var(--color-foco-foto); outline-offset: 2px; }
.fim__papel { padding-block: var(--space-2xl); display: grid; gap: var(--space-md); }
.fim__marca { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-md); color: var(--color-ink); }
.fim__marca .marca { font-size: var(--text-2xl); }
.privacidade { max-width: 64ch; font-size: var(--text-sm); color: var(--color-ink-2); }
.legal { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Telas menores ---------- */
@media (max-width: 60rem) {
  .topo__menu { display: inline-flex; align-items: center; }
  .topo__nav { display: none; position: absolute; top: 100%; right: var(--gutter); flex-direction: column; gap: 0; min-width: 14rem; padding: var(--space-xs) 0; background: var(--color-paper); border: 1px solid var(--color-ink); }
  .topo[data-aberto] .topo__nav { display: flex; }
  .topo__nav a { padding: 0 var(--space-md); color: var(--color-ink); font-size: var(--text-md); }
  .topo__nav a:focus-visible { outline-color: var(--color-focus); outline-offset: -2px; }
  .precos__cab, .opcoes { grid-template-columns: minmax(0, 1fr); }
  .passos__grade { grid-template-columns: minmax(0, 1fr); }
  .servicos__lista { grid-template-columns: minmax(0, 1fr); }
  .servicos__lista li, .servicos__lista li:first-child { padding: var(--space-xl) 0; border-left: 0; border-top: 1px solid var(--color-rule); }
}
@media (max-width: 60rem) {
  /* no celular e no tablet cada foto vem inteira e o texto vem depois dela, sobre tinta: nada cai em cima do adesivo nem da arte */
  .dobra { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .dobra__foto { position: static; display: contents; }
  .dobra__foto picture { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
  .dobra--abre .dobra__foto picture { aspect-ratio: 3 / 2; }
  .dobra__foto img { position: absolute; inset: 0; }
  .dobra--abre .dobra__foto img { transform: none; object-position: 50% 50%; }
  .dobra__abre, .dobra__contato { position: static; transform: none; order: 1; max-width: none; padding: var(--space-xl) var(--gutter) var(--space-lg); }
  .dobra__abre .btn, .dobra__contato .btn { width: 100%; }
  .legenda { position: static; order: 2; max-width: none; margin: 0; padding: var(--space-lg) var(--gutter) var(--space-xl); background: none; }
  .ilustracao { top: calc(var(--space-3xl) - var(--space-xs)); bottom: auto; right: var(--gutter); }
  .passos__lista li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .tabela tbody th { width: auto; font-size: var(--text-lg); }
}
@media (max-width: 40rem) {
  .tabela td { padding-right: var(--space-lg); }
  .tabela a { font-size: var(--text-lg); }
  .tabela tbody th { font-size: var(--text-md); }
}
@media (max-width: 40rem) {
  .dobra--abre .dobra__foto picture { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .topo { transition: none; }
}
.shot .dobras .dobra { position: relative; }
.dobra--abre > .ilustracao { background: none; } /* no hero, crédito simples sobre a madeira escura, como na referência */

/* captura (?shot): a navegação não se repete em cada trecho da página inteira */
.shot .topo { position: absolute; }
