/* ═══════════════════════════════════════════════════════════════════════
   Lista de presentes · Letícia & Victor
   Tema: brasão L&V — creme do convite + dourado envelhecido

   COMO ESTE ARQUIVO ESTÁ ORGANIZADO
     1. Fontes
     2. Variáveis (cores, fontes, medidas)  ← para mudar cores, mexa SÓ aqui
     3. Base da página
     4. Peças reutilizáveis (botões, filete dourado)
     5. Topo (brasão, nomes, contagem)
     6. Avisos
     7. Grade de presentes e cards
     8. Janela do presente (<dialog>)
     9. Rodapé
    10. Página de agradecimento
    11. Telas maiores (a partir de 600px)
    12. Animações e acessibilidade

   MOBILE-FIRST: tudo é escrito primeiro para o celular. As telas maiores
   só ACRESCENTAM ajustes na seção 11. Se algo estiver estranho no celular,
   o problema está nas seções 3 a 10, não na 11.
   ═══════════════════════════════════════════════════════════════════════ */


/* ─── 1. Fontes ─────────────────────────────────────────────────────────
   Hospedadas no próprio site (pasta /fonts). Nada é carregado de fora,
   o que mantém o CSP rígido e o site rápido. */
@font-face { font-family: "Exmouth"; font-weight: 400; font-display: swap; src: url("/fonts/exmouth.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 500; font-display: swap; src: url("/fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }


/* ─── 2. Variáveis ──────────────────────────────────────────────────────
   Trocar uma cor aqui muda o site inteiro. */
:root {
  /* Fundos */
  --creme: #f7f1e6;          /* fundo da página (marfim do convite) */
  --creme-claro: #fffcf6;    /* fundo dos cards e da janela */
  --creme-escuro: #efe5d2;   /* trilho da barra de progresso */

  /* Dourados do brasão
     ATENÇÃO AO CONTRASTE: --dourado sobre creme é bonito, mas fraco para texto
     pequeno (~2,8:1). Use --dourado em enfeites, bordas, barras e títulos grandes.
     Para texto pequeno (preços, rótulos) use --dourado-escuro (~4,6:1, legível). */
  --dourado: #b8863b;
  --dourado-escuro: #8a6224;
  --dourado-claro: #e3c88f;
  --dourado-degrade: linear-gradient(135deg, #d4a85c 0%, #b8863b 45%, #9a6d2b 100%);

  /* Textos */
  --tinta: #2e2618;          /* texto principal (sépia bem escuro) */
  --tinta-suave: #6e624d;    /* descrições e textos de apoio */
  --linha: #e8dcc4;          /* bordas finas */
  --erro: #a3402f;

  /* Fontes: cada uma tem um papel */
  --fonte-titulo: "Exmouth", "Cormorant Garamond", Georgia, serif;   /* nomes dos noivos e títulos grandes */
  --fonte-serifa: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* nomes dos presentes, números */
  --fonte-gravada: "Cinzel", "Cormorant Garamond", Georgia, serif;   /* rótulos em maiúsculas */
  --fonte-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* textos e botões */

  /* Medidas */
  --raio: 16px;
  --sombra: 0 1px 2px rgba(74, 52, 18, .05), 0 10px 30px rgba(74, 52, 18, .08);
  --toque: 48px;             /* tamanho mínimo de botão para o dedo */
  --margem-lateral: max(16px, env(safe-area-inset-left, 0px)); /* respeita o "notch" do iPhone */

  color-scheme: light;
}


/* ─── 3. Base da página ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }   /* garante que hidden sempre esconde */

/* Com a janela aberta, a página de trás não rola */
body:has(.modal[open]) { overflow: hidden; }

/* Link "pular para a lista" (aparece só ao navegar pelo teclado) */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* Contorno de foco visível para quem navega pelo teclado */
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }


/* ─── 4. Peças reutilizáveis ───────────────────────────────────────── */

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--toque);
  padding: 14px 28px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--fonte-texto); letter-spacing: .02em; text-decoration: none;
  transition: transform .15s ease, filter .2s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--gold {               /* botão principal (pagar, ver lista) */
  background: var(--dourado-degrade); color: #fffaf0;
  box-shadow: 0 6px 20px rgba(184, 134, 59, .35);
  text-shadow: 0 1px 0 rgba(90, 60, 15, .25);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--dark { background: var(--tinta); color: #fbf3e2; }   /* botão dos cards */
.btn--dark:hover { background: #45391f; }
.btn--block { width: 100%; }

/* Filete dourado com losango no meio (divisor) */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--dourado); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(120px, 28vw); background: linear-gradient(90deg, transparent, var(--dourado)); }
.ornament::after { background: linear-gradient(90deg, var(--dourado), transparent); }
.ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--dourado); }

/* Rótulo pequeno em maiúsculas */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--fonte-gravada); font-size: 12px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--dourado-escuro);
}


/* ─── 5. Topo ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid; place-items: center;
  text-align: center;
  padding-block: 44px 56px;
  padding-inline: var(--margem-lateral);
  background: radial-gradient(900px 520px at 50% 18%, rgba(227, 200, 143, .28), transparent 70%), var(--creme);
}
/* Moldura fina dupla, como a do convite */
.hero::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(184, 134, 59, .45);
  outline: 1px solid rgba(184, 134, 59, .25); outline-offset: 5px;
}
.hero__inner { position: relative; max-width: 720px; width: 100%; }

.crest { width: 150px; height: auto; margin: 0 auto 16px; filter: drop-shadow(0 6px 14px rgba(120, 82, 25, .18)); }

.names {
  margin: 0;
  font-family: var(--fonte-titulo); font-weight: 400;
  font-size: clamp(54px, 14vw, 128px); line-height: 1.15;
  text-wrap: balance;
}
.amp { color: var(--dourado); padding: 0 .12em; }   /* o "&" dourado */

.date {
  margin: 16px 0 8px;
  font-family: var(--fonte-gravada); font-size: 15px; letter-spacing: .26em; color: var(--tinta-suave);
}
.hero .ornament { margin-bottom: 28px; }

/* Contagem regressiva: 4 caixinhas que dividem a largura no celular */
.countdown { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; }
.countdown__unit {
  flex: 1; max-width: 84px;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px 10px;
  background: var(--creme-claro); border: 1px solid var(--linha); border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--creme-claro), inset 0 0 0 4px rgba(184, 134, 59, .25); /* filete interno */
}
.countdown__num { font-family: var(--fonte-serifa); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { margin-top: 6px; font-family: var(--fonte-gravada); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dourado-escuro); }

.hero__msg { margin: 0 auto 28px; max-width: 460px; color: var(--tinta-suave); font-size: 16px; }


/* ─── 6. Avisos ────────────────────────────────────────────────────── */
.notice {
  max-width: 720px; margin: 28px var(--margem-lateral) 0; padding: 14px 18px;
  border-radius: 12px; border: 1px solid var(--linha); background: var(--creme-claro);
  text-align: center; font-size: 15px;
}
.notice--warn { border-color: #e6cf9d; background: #fbf3e1; }
.notice--error { border-color: #e4bcb2; background: #fbefea; color: var(--erro); }


/* ─── 7. Grade de presentes e cards ────────────────────────────────── */
.gifts {
  max-width: 1160px; margin: 0 auto;
  padding-block: 56px 72px;
  padding-inline: var(--margem-lateral);
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head .ornament { margin-bottom: 16px; }
.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--fonte-titulo); font-weight: 400;
  font-size: clamp(46px, 11vw, 68px); line-height: 1.15;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--tinta-suave); }
.demo-badge {
  display: inline-block; margin-top: 16px !important; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--dourado-claro); background: rgba(227, 200, 143, .2);
  color: var(--dourado-escuro) !important; font-size: 13px; font-weight: 500;
}

/* A GRADE
   Uma única regra cria 1, 2, 3 ou 4 colunas conforme a largura da tela, sem media query:
     - auto-fill: cabe quantas colunas couberem
     - minmax(..., 1fr): cada coluna tem no mínimo 260px e divide o espaço que sobra
     - min(100%, 260px): em celulares bem estreitos (< 260px) a coluna nunca passa da tela */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.grid__loading { grid-column: 1 / -1; text-align: center; color: var(--tinta-suave); }

/* O CARD (criado pelo app.js)
   Coluna flexível: imagem em cima, texto no meio, botão sempre no pé.
   Assim os botões ficam alinhados mesmo com descrições de tamanhos diferentes. */
.gift {
  display: flex; flex-direction: column;
  background: var(--creme-claro); border: 1px solid var(--linha); border-radius: var(--raio);
  overflow: hidden; box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
@media (hover: hover) {   /* efeito de passar o mouse só em computador (no celular "grudaria") */
  .gift:hover { transform: translateY(-3px); border-color: var(--dourado-claro); box-shadow: 0 2px 4px rgba(74, 52, 18, .05), 0 18px 40px rgba(74, 52, 18, .12); }
}

/* Área da imagem: proporção fixa 4:3 (a mesma das fotos em /img/presentes),
   então fotos de tamanhos diferentes não desalinham a grade */
.gift__media {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f8eedb, #e2c48c);   /* fundo quando não há foto */
  border-bottom: 1px solid var(--linha);
}
.gift__media::after {   /* moldura interna fina, como num porta-retrato */
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(255, 250, 238, .7); border-radius: 8px;
}
.gift__media img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.gift__media:has(img)::after { border-color: rgba(184, 134, 59, .18); }   /* moldura discreta sobre fotos */
.gift__emoji { font-size: 60px; line-height: 1; }
.gift__done {   /* selo "Presente completo" (só cotas esgotadas) */
  position: absolute; top: 14px; right: 14px; z-index: 1;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 252, 246, .95); color: var(--dourado-escuro); font-size: 12px; font-weight: 600;
}

.gift__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.gift__name { margin: 0 0 6px; font-family: var(--fonte-serifa); font-size: 26px; font-weight: 500; line-height: 1.15; }
.gift__desc { flex: 1; margin: 0 0 16px; color: var(--tinta-suave); font-size: 14px; }   /* flex:1 empurra preço e botão para baixo */

.gift__price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; font-size: 13px; color: var(--tinta-suave); }
.gift__price strong { font-size: 20px; font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; }

/* Barra de progresso (só presentes do tipo "cota") */
.bar { height: 6px; border-radius: 99px; overflow: hidden; background: var(--creme-escuro); }
.bar__fill { height: 100%; width: 0; border-radius: 99px; background: var(--dourado-degrade); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.gift__meta { margin: 8px 0 16px; font-size: 13px; color: var(--tinta-suave); }

/* Presente "integral": sem barra, o preço fica logo acima do botão */
.gift--integral .gift__price { margin-bottom: 16px; }
/* Cota esgotada: card um pouco apagado */
.gift--esgotado .gift__media { filter: saturate(.6); }


/* ─── 8. Janela do presente (<dialog>) ─────────────────────────────────
   NO CELULAR: "sobe de baixo" como nos aplicativos (bottom sheet),
               largura total, cantos arredondados só em cima.
   NO DESKTOP: cartão centralizado de até 440px (ver seção 11).

   O <dialog> já vem com regras do navegador (borda, margem, tamanho máximo);
   aqui zeramos tudo e desenhamos do nosso jeito. */
.modal {
  /* Gruda no pé da tela */
  margin: auto 0 0;
  width: 100%; max-width: 100%;
  max-height: 92dvh;       /* dvh = altura real visível no celular (desconta a barra do navegador) */
  padding: 0; border: 0;
  background: transparent; color: inherit;
  overflow: visible;
}
/* Fundo escurecido atrás da janela (desenhado pelo próprio navegador) */
.modal::backdrop { background: rgba(36, 28, 14, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: subir .32s cubic-bezier(.2, .9, .3, 1); }
.modal[open]::backdrop { animation: aparecer .25s ease; }

.modal__card {
  position: relative;
  max-height: 92dvh; overflow-y: auto;
  overscroll-behavior: contain;   /* rolar dentro da janela não rola a página de trás */
  padding: 30px 20px calc(24px + env(safe-area-inset-bottom, 0px));   /* espaço da barra do iPhone */
  background: var(--creme-claro);
  border-top: 3px solid var(--dourado);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
/* "Alça" no topo, indicando que é uma folha que subiu */
.modal__card::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 4px; background: var(--linha);
}
.modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--tinta-suave);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: #f3ead9; }
/* Foto do presente no topo da janela (pequena no celular, para sobrar espaço para o formulário) */
.modal__foto { width: min(200px, 60%); margin: 4px auto 10px; text-align: center; font-size: 48px; line-height: 1.2; }
.modal__foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--linha); background: #fff; }
.modal__card h3 { margin: 4px 0 6px; text-align: center; font-family: var(--fonte-serifa); font-size: 30px; font-weight: 500; line-height: 1.15; }
.modal__desc { margin: 0 0 22px; text-align: center; color: var(--tinta-suave); font-size: 14px; }

/* Campos do formulário */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.field small { display: block; margin-top: 6px; color: var(--tinta-suave); font-size: 13px; }
.field input[type="text"], .stepper input {
  width: 100%; min-height: var(--toque);
  padding: 12px 14px;
  border: 1px solid var(--linha); border-radius: 12px; background: var(--creme);
  font: 16px var(--fonte-texto);   /* 16px evita o zoom automático do iPhone ao tocar no campo */
  color: var(--tinta); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(184, 134, 59, .2); }

/* Seletor de cotas: [ − ] [ 3 ] [ + ]  (escondido em presentes "integral") */
.stepper { display: grid; grid-template-columns: var(--toque) 1fr var(--toque); gap: 8px; }
.stepper input { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  min-height: var(--toque);
  border: 1px solid var(--linha); border-radius: 12px; background: var(--creme-claro);
  font-size: 22px; color: var(--tinta); cursor: pointer;
}
.stepper__btn:hover:not([disabled]) { border-color: var(--dourado); color: var(--dourado-escuro); }
.stepper__btn[disabled] { opacity: .35; cursor: not-allowed; }

/* Campo de valor do vale-presente: [ R$ | 150,00 ]  (só no tipo "livre") */
.valor-livre { position: relative; }
.valor-livre__prefixo {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--fonte-serifa); font-size: 22px; color: var(--dourado-escuro); pointer-events: none;
}
/* ".field .valor-livre input" é mais específico que ".field input[type=text]", então estas regras vencem */
.field .valor-livre input {
  width: 100%; min-height: 56px;
  padding: 12px 14px 12px 52px;   /* espaço para o "R$" à esquerda */
  border: 1px solid var(--linha); border-radius: 12px; background: var(--creme);
  font: 500 24px var(--fonte-serifa); color: var(--tinta); font-variant-numeric: tabular-nums;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field .valor-livre input:focus { border-color: var(--dourado); box-shadow: 0 0 0 3px rgba(184, 134, 59, .2); }
.field .valor-livre input[aria-invalid="true"] { border-color: var(--erro); box-shadow: 0 0 0 3px rgba(163, 64, 47, .12); }

/* Botões de valor sugerido (R$ 50 · R$ 100 · R$ 200 · R$ 500) */
.valor-livre__sugestoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--linha); border-radius: 999px; background: var(--creme-claro);
  font: 500 14px var(--fonte-texto); color: var(--tinta); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--dourado); color: var(--dourado-escuro); background: #fbf3e1; }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 18px; border-top: 1px dashed var(--linha); font-size: 15px;
}
.total strong { font-family: var(--fonte-serifa); font-size: 28px; font-weight: 500; color: var(--dourado-escuro); font-variant-numeric: tabular-nums; }
.form-error { margin: -6px 0 14px; color: var(--erro); font-size: 14px; }
.secure-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--tinta-suave); }


/* ─── 9. Rodapé ────────────────────────────────────────────────────── */
.footer {
  padding-block: 44px 52px; padding-inline: var(--margem-lateral);
  text-align: center; border-top: 1px solid var(--linha);
  color: var(--tinta-suave); font-size: 13px;
}
.footer__crest { width: 60px; height: auto; margin: 0 auto 10px; opacity: .9; }
.footer__mono { margin: 0 0 4px; font-family: var(--fonte-gravada); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--dourado-escuro); }


/* ─── 10. Página de agradecimento (sucesso.html) ───────────────────── */
.page-success {
  min-height: 100dvh; display: grid; place-items: center;
  background: radial-gradient(900px 500px at 50% 0%, rgba(227, 200, 143, .3), transparent 70%), var(--creme);
}
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.thanks { position: relative; z-index: 2; max-width: 560px; padding-block: 40px; padding-inline: var(--margem-lateral); text-align: center; }
.thanks .crest { width: 120px; margin-bottom: 12px; }
.names--sm { font-size: clamp(50px, 12vw, 84px); }
.thanks__gift { margin: 18px 0 8px; font-family: var(--fonte-serifa); font-size: 24px; }
.thanks__msg { margin: 0 0 12px; color: var(--tinta-suave); }
.thanks__small { margin: 0 0 28px; font-size: 13px; color: var(--tinta-suave); }


/* ─── 11. Telas maiores (a partir de 600px) ────────────────────────────
   Só ajustes. A grade não precisa de nada aqui: o auto-fill já resolve. */
@media (min-width: 600px) {
  .hero { min-height: 88vh; padding-block: 56px 64px; }
  .hero::before { inset: 14px; }
  .crest { width: clamp(170px, 24vw, 220px); margin-bottom: 18px; }
  .date { font-size: 19px; letter-spacing: .28em; }
  .countdown { gap: 18px; margin-bottom: 36px; }
  .countdown__unit { flex: 0 0 auto; min-width: 82px; padding: 14px 10px 10px; }
  .countdown__num { font-size: 40px; }
  .hero__msg { font-size: 17px; }
  .notice { margin-inline: auto; }
  .gifts { padding-block: 80px 96px; }
  .section-head { margin-bottom: 48px; }
  .grid { gap: 24px; }
  .gift__body { padding: 20px 22px 22px; }

  /* Janela vira um cartão centralizado */
  .modal { margin: auto; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
  .modal[open] { animation: surgir .25s cubic-bezier(.2, .9, .3, 1.2); }
  .modal__card {
    max-height: calc(100dvh - 32px);
    padding: 32px 28px 24px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  }
  .modal__card::before { display: none; }   /* sem "alça" no desktop */
  .modal__foto { width: 240px; }

  .thanks .crest { width: 130px; }
}


/* ─── 12. Animações e acessibilidade ───────────────────────────────── */
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(100%); } }                          /* celular: vem de baixo */
@keyframes surgir { from { opacity: 0; transform: translateY(12px) scale(.97); } }   /* desktop: aparece no centro */
@keyframes brasao { from { opacity: .001; transform: translateY(10px) scale(.98); } }
.hero .crest { animation: brasao 1s cubic-bezier(.2, .8, .2, 1) both; }

/* Quem pediu "menos movimento" no celular/computador não vê animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
