/* Hallmark · shape: Letter (home), Timetable (pipa) · genre: editorial · theme: brand · redesign: full
 * paper: oklch(95.6% 0.018 85) · accent: oklch(78% 0.14 80) · display: Literata · body: Source Sans 3 · hero: Split, the head on 7 columns and the contract sheet on 5 · nav: wordmark and one action · footer: columns of facts · signature: the family contract as a real sheet (home), the four Saturdays set huge (pipa)
 * axes: green field/serif 800/mustard · posture: Split · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V3 · weakest: V, no photographs yet; the pages show the real artefacts (the contract, the dates) instead of stock, and the photo slot waits for Ricardo's portrait */
/* Hallmark · dropped #kit, https://wa.me/55TROCAR?text=Quero%20o%20link%20da%20aula%20aberta%20de%2009%2F12 · the kit button now goes straight to the Brevo form (one click, impeccable critique P1) and the open class has one signup, the Brevo form, on both pages */
/* Hallmark · waive 44c, 79 · the thank-you page is a receipt: a short hero on purpose; the min-height hero leaves air on tall screens by design */
/* Hallmark · waive 77 · the closing band is a statement with its two actions, no visual belongs there */

/* Marca: paleta "Livro de cabeceira" e Literata + Source Sans 3 (marca/README.md). Terracota só no botão de compra. */
:root {
  --tinta: #22252A;
  --floresta: #1F4D3F;
  --floresta-escura: #173B30;
  --mostarda: #E8B33A;
  --mostarda-clara: #F0C65F;
  --terracota: #B5482A;
  --terracota-escura: #963A21;
  --salvia: #9DB8A6;
  --creme: #F6F0E4;
  --papel: #FBF7EF;
  --linha: #DDD2BE;
  --suave: #565A57;
  --creme-suave: #CFDAD1;

  --color-paper: var(--creme); --color-paper-2: var(--papel); --color-paper-3: var(--linha);
  --color-ink: var(--tinta); --color-ink-2: var(--floresta); --color-muted: var(--suave);
  --color-rule: var(--linha);
  --color-accent: var(--mostarda); --color-accent-ink: var(--tinta); --color-focus: var(--floresta);

  --font-display: "Literata", ui-serif, Georgia, serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 800;

  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-sm: 0.9375rem; --text-md: 1.125rem; --text-title: clamp(1.25rem, 0.75vw + 0.9rem, 1.625rem);
  --text-lead: clamp(1.2rem, 0.4vw + 1.05rem, 1.4rem);
  --text-section: clamp(2.1rem, 2.6vw + 1rem, 3.5rem);
  --text-display: clamp(2.6rem, 4.6vw + 1rem, 5rem);
  --text-huge: clamp(4.5rem, 9vw + 1rem, 10rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms;
  --container: 1240px; --gutter: 64px; --gap-columns: 32px; --section-gap: 128px;
  --radius-button: 6px; --radius-sheet: 3px;
  --tracking-display: -0.025em;
}
@media (max-width: 60rem) { :root { --gutter: 32px; --section-gap: 96px; } }
@media (max-width: 40rem) { :root { --gutter: 20px; --section-gap: 72px; --gap-columns: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--space-xl); scrollbar-color: var(--suave) var(--creme); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--mostarda-clara); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.04; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); max-width: 14ch; }
h2 { font-size: var(--text-section); max-width: 18ch; line-height: 1.08; }
h3 { font-size: var(--text-title); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 62ch; }
li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
main > section { padding-block: var(--section-gap); }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 40ch; }
.nota { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }
.pilha > * + * { margin-top: var(--space-lg); }

/* Faixas de cor: cada uma define o próprio foco e as cores do botão */
.faixa-verde { --color-paper: var(--floresta); --color-ink: var(--creme); --color-muted: var(--creme-suave); --color-focus: var(--mostarda); --botao-bg: var(--mostarda); --botao-fg: var(--tinta); --botao-hover: var(--mostarda-clara); background: var(--floresta); color: var(--creme); }
.faixa-salvia { --color-muted: var(--tinta); background: var(--salvia); }
.faixa-papel { background: var(--papel); }

/* Topo */
.topo { padding-block: var(--space-lg); }
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.assinatura { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; text-decoration: none; font: 700 1.3rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.assinatura svg { width: 28px; height: auto; flex: none; }

/* Botões: uma forma só; a cor vem da faixa */
.botao {
  --botao-bg-at: var(--botao-bg, var(--floresta)); --botao-fg-at: var(--botao-fg, var(--creme));
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--space-md) var(--space-lg);
  border: 0; border-radius: var(--radius-button); background: var(--botao-bg-at); color: var(--botao-fg-at);
  font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.botao:hover { background: var(--botao-hover, var(--floresta-escura)); }
.botao:active { transform: translateY(1px); }
.botao.compra { --botao-bg: var(--terracota); --botao-fg: var(--creme); --botao-hover: var(--terracota-escura); }
.link { display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-focus); }
.link:active { opacity: 0.8; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); }

/* Herói em duas colunas */
.heroi { padding-block: var(--space-2xl) var(--section-gap); min-height: min(calc(100svh - 92px), 780px); display: grid; align-items: center; }
.heroi .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.heroi .lead { margin-block: var(--space-lg) var(--space-xl); }
.heroi .fato { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) { .heroi .container { grid-template-columns: minmax(0, 1fr); } }

/* A folha do contrato (home) */
.folha { background: var(--papel); color: var(--tinta); border-radius: var(--radius-sheet); padding: var(--space-xl); box-shadow: 0 1px 0 var(--linha), 0 24px 48px -24px var(--floresta-escura); max-width: 460px; justify-self: end; width: 100%; }
.folha h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); max-width: none; line-height: 1.15; }
.folha .sub { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--suave); }
.folha ol { counter-reset: regra; margin-top: var(--space-lg); }
.folha li { counter-increment: regra; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-sm); border-top: 1px solid var(--linha); font-size: 1rem; line-height: 1.45; }
.folha li::before { content: counter(regra); font: 800 1rem/1.45 var(--font-display); color: var(--floresta); }
.assinaturas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--suave); }
.assinaturas span { display: block; border-top: 1.5px solid var(--tinta); padding-top: var(--space-xs); }
@media (max-width: 60rem) { .folha { justify-self: start; } }

/* Duas colunas: título à esquerda, conteúdo à direita */
.duas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
@media (max-width: 60rem) { .duas { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* Linhas: listas com régua, sem cartões */
.linhas li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--space-2xl); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.linhas li:last-child { border-bottom: 1px solid var(--color-rule); }
.linhas strong { font: 700 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.01em; }
.faixa-verde .linhas li { border-color: color-mix(in oklab, var(--creme) 22%, transparent); }
@media (max-width: 40rem) { .linhas li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Calendário dos quatro sábados (assinatura do PIPA) */
.sabados { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.sabado { border-top: 3px solid var(--mostarda); padding-top: var(--space-md); }
.sabado .dia { display: block; font: 800 var(--text-huge)/0.9 var(--font-display); letter-spacing: -0.04em; }
.sabado .etapa { display: block; margin-top: var(--space-sm); font: 700 var(--text-title)/1.2 var(--font-display); }
@media (max-width: 60rem) { .sabados { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); } }

/* Encontros do PIPA, em sequência */
.encontros > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); }
.encontros > li:last-child { border-bottom: 1px solid var(--color-rule); }
.encontros .letra { font: 800 clamp(3rem, 4vw + 1rem, 5rem)/0.9 var(--font-display); color: var(--floresta); }
.encontros h3 { margin-top: var(--space-sm); }
.encontros .quando { font-size: var(--text-sm); color: var(--color-muted); }
.encontros .saem { margin-top: var(--space-md); font-weight: 700; color: var(--floresta); }
@media (max-width: 40rem) { .encontros > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); } }

/* Preço */
.preco { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.valor { font: 800 clamp(4rem, 6vw + 1rem, 8.5rem)/0.9 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }
.valor small { white-space: normal; }
.valor small { display: block; margin-top: var(--space-md); font: 400 var(--text-md)/1.5 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.inclui li { padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.inclui li:last-child { border-bottom: 1px solid var(--color-rule); }
@media (max-width: 60rem) { .preco { grid-template-columns: minmax(0, 1fr); } }

/* Retrato do Ricardo: a foto dele entra no lugar das iniciais */
.retrato { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: var(--radius-sheet); background: var(--papel); display: grid; place-items: center; font: 800 clamp(3rem, 5vw, 5rem)/1 var(--font-display); color: var(--floresta); overflow: hidden; position: relative; }
@media (max-width: 40rem) { .retrato:not(:has(img)) { display: none; } }
.retrato > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Perguntas */
.perguntas details { border-top: 1px solid var(--color-rule); }
.perguntas details:last-of-type { border-bottom: 1px solid var(--color-rule); }
.perguntas summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md); cursor: pointer; font: 700 var(--text-title)/1.25 var(--font-display); letter-spacing: -0.01em; list-style: none; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; flex: none; font: 400 1.75rem/1 var(--font-body); color: var(--floresta); transition: transform var(--dur-short) var(--ease-out); }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas summary:hover { color: var(--floresta); }
.perguntas details p { padding-bottom: var(--space-lg); }

/* Fechamento */
.fecho h2 { max-width: 16ch; }
.fecho .acoes { margin-top: var(--space-xl); }

/* Rodapé: fatos em colunas */
.rodape { padding-block: var(--space-2xl); background: var(--tinta); color: var(--creme); font-size: var(--text-sm); --color-focus: var(--mostarda); }
.rodape .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); }
.rodape h2 { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.rodape p, .rodape li { color: var(--creme-suave); }
.rodape a { display: inline-flex; min-height: 44px; align-items: center; }
.rodape a:hover { color: var(--mostarda); }
@media (max-width: 40rem) { .rodape .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

@media (max-width: 40rem) {
  .acoes .botao { width: 100%; }
  .topo .botao { padding-inline: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
.heroi.heroi-curto { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
