/* =========================================================
   Rita Rosário Bolos — BIO PRIME (Profissional)
   Direção: o acabamento do bolo. O rosa do adesivo da logo,
   a tinta grafite do nome e o framboesa dos cartazes do
   festival. A assinatura é a borda de conchinhas de chantilly
   que a Rita põe em todo bolo: ela é confeitada na abertura e
   fica como moldura da foto.
   ========================================================= */

:root {
  /* Cor */
  --fundo: #FBEFF0;            /* rosa-claro: fundo */
  --rosa: #F4CFD4;             /* rosa do adesivo: cenas de destaque */
  --chantilly: #FFFCFA;        /* superfícies e as conchinhas */
  --ganache: #3B2A2E;          /* texto (12:1 no fundo) */
  --ganache-soft: #6B5A5E;     /* texto de apoio (5,8:1 no fundo) */
  --framboesa: #A3264F;        /* só ação e foco (6,3:1 no fundo) */
  --framboesa-press: #87193F;
  --pistache: #556F3E;         /* só a linha inclusiva */
  --pistache-claro: #E8EFDF;
  --pistache-tinta: #3F5A2C;   /* texto sobre o pistache-claro (6,6:1) */
  --linha: rgba(59, 42, 46, 0.14);
  --linha-forte: #977F84;      /* contorno de controle (3:1) */
  --bolha: #E3F3D6;            /* balão da prévia, o verde da conversa */

  /* Tipografia — a cursiva da logo e uma de leitura feita para baixa visão */
  --display: "Cookie", "Brush Script MT", cursive;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Espaço e forma (raio por papel) */
  --gutter: 20px;
  --scene: 60px;
  --r-acao: 999px;             /* botões: o círculo do adesivo */
  --r-foto: 22px;
  --r-campo: 14px;

  /* Motion */
  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 420ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-chantilly: cubic-bezier(0.3, 1.4, 0.5, 1);   /* aperta, passa um pouco e assenta */
  --shift-cta: 14px;
  --press-scale: 0.97;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-cta: 0px;
    --press-scale: 1;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--rosa);
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--ganache);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page {
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--fundo);
}

:focus-visible {
  outline: 3px solid var(--framboesa);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 12px;
  top: calc(12px + var(--safe-top));
  z-index: 40;
  padding: 12px 18px;
  border-radius: var(--r-acao);
  background: var(--ganache);
  color: var(--chantilly);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* marco invisível: passou dele, a pessoa começou a rolar */
.marco-scroll {
  position: absolute;
  top: 160px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 10.6vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

section {
  padding: var(--scene) var(--gutter);
}
section > p { max-width: 36ch; }
section > * + * { margin-top: 16px; }

.superficie--chantilly { background: var(--chantilly); }
.superficie--rosa { background: var(--rosa); }

/* ---------- Botões ---------- */

.btn,
.link,
.chip span,
.balcao__item,
.cta-flutuante,
.ancora,
.link-acao,
.hero__ig,
.mapa__abrir,
.final__contato a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-acao);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn i { font-size: 20px; }

.btn--framboesa {
  background: var(--framboesa);
  color: var(--chantilly);
}
.btn--framboesa:active { background: var(--framboesa-press); }

.btn--linha {
  background: transparent;
  border-color: var(--framboesa);
  color: var(--framboesa);
}
.btn--linha:active { background: rgba(163, 38, 79, 0.1); }

.btn:active,
.link:active,
.link-acao:active,
.mapa__abrir:active,
.final__contato a:active,
.cta-flutuante:active { transform: scale(var(--press-scale)); }

@media (hover: hover) and (pointer: fine) {
  .btn--framboesa:hover,
  .cta-flutuante:hover { background: var(--framboesa-press); }
  .btn--linha:hover { background: rgba(163, 38, 79, 0.08); }
  .link:hover { border-color: var(--framboesa); }
}

.link-acao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--framboesa);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link-acao i { font-size: 20px; }

/* ---------- Cena 1: Hero ---------- */

.hero {
  padding: calc(16px + var(--safe-top)) var(--gutter) 28px;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--chantilly);
  box-shadow: 0 0 0 1px var(--linha);
}

.hero__ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.hero__ig i { font-size: 20px; color: var(--framboesa); }

.hero__pre {
  margin-top: 26px;
  color: var(--ganache-soft);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nome {
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 18.5vw, 76px);
  line-height: 0.9;
  color: var(--ganache);
}
/* folga para a cursiva não ser cortada pela máscara da abertura */
.nome__txt {
  display: inline-block;
  padding: 0.08em 0.18em 0.16em 0.16em;
  margin: -0.08em -0.18em -0.16em -0.16em;
}

.hero__lead {
  max-width: 30ch;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.45;
}

/* O bolo pronto: a foto e a borda de chantilly */
.bolo {
  margin-top: 26px;
}

.bolo__foto {
  position: relative;
  padding-bottom: 6px;
}
.bolo__foto img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-foto) var(--r-foto) 12px 12px;
  background: var(--rosa);
}

.borda {
  position: absolute;
  left: 0;
  right: 10%;
  bottom: -8px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  pointer-events: none;
}

.concha {
  display: block;
  width: 168%;
  aspect-ratio: 60 / 36;
  height: auto;
  overflow: visible;
  transform-origin: 28% 92%;
}
.concha__sombra { fill: rgba(59, 42, 46, 0.2); }
.concha__corpo { fill: url(#chantilly-luz); }
.concha__frisos {
  fill: none;
  stroke: #DDC2C6;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.bolo__legenda {
  margin-top: 26px;
  color: var(--ganache-soft);
  font-size: 15px;
  line-height: 1.4;
}

.ancora {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 6px;
  color: var(--framboesa);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ancora i { font-size: 16px; }

/* ---------- Abertura: a borda sendo confeitada ----------
   .abertura      foto e fonte prontas: o nome sobe da cobertura e as
                  conchinhas nascem uma a uma (~1,6s)
   .sem-abertura  demorou: só o nome, curto; a borda já pronta
   sem JS         tudo no estado final; com JS e falha, o CSS revela em 2,6s */

@media (prefers-reduced-motion: no-preference) {
  .js .hero:not(.pronto) .nome__txt {
    opacity: 0;
    animation: revela-seguro 0s linear 2.6s forwards;
  }
  .js .hero:not(.pronto) .concha {
    opacity: 0;
    transform: scale(0.2, 0);
    animation: revela-seguro 0s linear 2.6s forwards;
  }

  .js .hero.abertura .nome__txt {
    animation: sobe-nome 560ms var(--ease-enter) 60ms both;
  }
  .js .hero.abertura .concha {
    animation: confeita 440ms var(--ease-chantilly) calc(420ms + var(--i) * 74ms) both;
  }

  .js .hero.sem-abertura .nome__txt {
    animation: sobe-nome 320ms var(--ease-enter) both;
  }
  .js .hero.sem-abertura .concha {
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* eco: um toque na foto aperta a borda de novo, uma vez */
  .hero.pronto .borda.is-aperta .concha {
    animation: aperta 300ms var(--ease-chantilly) calc(var(--i) * 34ms) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero:not(.pronto) .nome__txt { animation: aparece 200ms linear both; }
}

@keyframes sobe-nome {
  from {
    opacity: 0;
    transform: translateY(0.28em);
    clip-path: inset(100% 0 0 0);
  }
  35% { opacity: 1; }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes confeita {
  0%   { opacity: 0; transform: scale(0.2, 0) rotate(-14deg); }
  35%  { opacity: 1; }
  62%  { opacity: 1; transform: scale(1.08, 1.16) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes aperta {
  0%   { transform: none; }
  45%  { transform: scale(1.06, 0.8); }
  100% { transform: none; }
}

@keyframes revela-seguro {
  to { opacity: 1; transform: none; }
}

@keyframes aparece {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Cena 2: os caminhos ---------- */

.links {
  padding: 8px var(--gutter) var(--scene);
}

.links__lista {
  display: grid;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px 10px 10px;
  border: 2px solid var(--linha);
  border-radius: 20px;
  background: var(--chantilly);
  text-decoration: none;
}

.link__icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--framboesa);
  font-size: 20px;
}

.link__txt { display: grid; line-height: 1.25; }
.link__txt strong { font-size: 17px; font-weight: 700; }
.link__txt small { margin-top: 2px; color: var(--ganache-soft); font-size: 15px; }

.link--principal {
  border-color: var(--framboesa);
  background: var(--framboesa);
  color: var(--chantilly);
}
.link--principal .link__icone { background: var(--chantilly); color: var(--framboesa); font-size: 24px; }
.link--principal .link__txt small { color: rgba(255, 252, 250, 0.88); }
.link--principal:active { background: var(--framboesa-press); }

/* ---------- Cena 3: a vitrine ---------- */

.vitrine__lead { max-width: 34ch; }

.balcao {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.balcao__item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 48px;
  padding: 6px 2px 8px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: var(--ganache-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.balcao__item img {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--chantilly), 0 0 0 4px transparent;
  transition: box-shadow var(--motion-fast) var(--ease-standard);
}
.balcao__item:active { transform: scale(0.96); }
.balcao__item[aria-selected="true"] {
  color: var(--framboesa);
  font-weight: 700;
}
.balcao__item[aria-selected="true"] img {
  box-shadow: 0 0 0 2px var(--chantilly), 0 0 0 5px var(--framboesa);
}

.sabor { margin-top: 28px; }
.sabor + .sabor { margin-top: 56px; }
.js .balcao:not([hidden]) ~ .sabor { margin-top: 20px; }

.sabor__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-foto);
  background: var(--rosa);
}

.sabor__nome {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}

.sabor__nota {
  margin-top: 6px;
  color: var(--ganache-soft);
  font-size: 16px;
}

/* O corte do bolo: as faixas formam a fatia vista de lado */
.corte {
  margin: 22px 0 24px;
}
.corte li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.35;
}
.corte li::before {
  content: "";
  grid-row: 1 / span 2;
  align-self: stretch;
  margin: -8px 0;
  background: var(--camada);
  box-shadow: inset 1px 0 0 var(--linha), inset -1px 0 0 var(--linha);
}
.corte li:first-child::before { border-radius: 12px 12px 0 0; box-shadow: inset 0 1px 0 var(--linha), inset 1px 0 0 var(--linha), inset -1px 0 0 var(--linha); }
.corte li:last-child::before { border-radius: 0 0 12px 12px; box-shadow: inset 0 -1px 0 var(--linha), inset 1px 0 0 var(--linha), inset -1px 0 0 var(--linha); }
.corte__parte {
  display: block;
  color: var(--ganache-soft);
  font-size: 14px;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .sabor.is-novo .corte li::before {
    transform-origin: left center;
    animation: camada var(--motion-scene) var(--ease-enter) both;
  }
  .sabor.is-novo .corte li:nth-child(2)::before { animation-delay: 60ms; }
  .sabor.is-novo .corte li:nth-child(3)::before { animation-delay: 120ms; }
}
@keyframes camada {
  from { transform: scaleX(0); }
  to { transform: none; }
}

::view-transition-group(sabor-foto) {
  animation-duration: var(--motion-emphasis);
  animation-timing-function: var(--ease-standard);
}

.vitrine__mais {
  margin-top: 32px;
  font-size: 16px;
}
.vitrine__mais a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--framboesa);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Cena 4: a Rita ---------- */

.rita__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-foto);
}
.rita .titulo { margin-top: 24px; }
.rita__assinatura {
  margin-top: 20px;
  color: var(--framboesa);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
}

/* ---------- Cena 5: sob medida ---------- */

.festa__caso { margin-top: 24px; }
.festa__caso img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-foto);
}
.festa__caso figcaption {
  margin-top: 10px;
  color: var(--ganache-soft);
  font-size: 15px;
}
.festa .btn { margin-top: 28px; }

/* ---------- Cena 6: o que dizem ---------- */

.dizem__lista {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}
.dizem__lista blockquote {
  position: relative;
  padding-top: 26px;
  font-size: 19px;
  line-height: 1.45;
}
.dizem__lista blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: -2px;
  color: var(--framboesa);
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
}
.dizem__quem {
  margin-top: 10px;
  color: var(--ganache-soft);
  font-size: 15px;
  font-weight: 700;
}
.dizem__fonte {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--ganache-soft);
  font-size: 15px;
}

/* ---------- Cena 7: linha inclusiva ---------- */

.inclusiva .titulo { color: var(--pistache); }
.inclusiva__opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.inclusiva__opcoes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-acao);
  background: var(--pistache-claro);
  color: var(--pistache-tinta);
  font-size: 16px;
  font-weight: 700;
}
.inclusiva .link-acao { margin-top: 18px; }

/* ---------- Cena 8: o festival ---------- */

.passos {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.passos li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
}
.passos__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--framboesa);
  color: var(--framboesa);
  font-size: 18px;
  font-weight: 700;
}
.festival__nota {
  margin-top: 22px;
  color: var(--ganache-soft);
  font-size: 16px;
}
.festival .btn { margin-top: 24px; }

/* ---------- Cena 9: a encomenda ---------- */

.encomenda__head {
  display: grid;
  grid-template-columns: 1fr 96px;
  align-items: start;
  gap: 16px;
}
.encomenda__head p { margin-top: 14px; }
.encomenda__cal {
  width: 96px;
  margin-top: 6px;
  border-radius: 10px;
  rotate: 4deg;
  box-shadow: 0 6px 16px rgba(59, 42, 46, 0.14);
}

.encomenda__aviso {
  display: flex;
  gap: 10px;
  max-width: none;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--fundo);
  font-size: 16px;
  line-height: 1.45;
}
.encomenda__aviso i { margin-top: 3px; color: var(--framboesa); }

.pedido { display: none; }
.js .pedido {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}
.js .encomenda__sem-js { display: none; }
.encomenda__sem-js { margin-top: 28px; }

.escolha legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--linha-forte);
  border-radius: var(--r-acao);
  background: var(--chantilly);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.chip input:active + span { transform: scale(var(--press-scale)); }
.chip input:checked + span {
  border-color: var(--framboesa);
  background: var(--framboesa);
  color: var(--chantilly);
  font-weight: 700;
}
.chip--pistache input:checked + span {
  border-color: var(--pistache);
  background: var(--pistache);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--framboesa);
  outline-offset: 3px;
}

.campos {
  display: grid;
  gap: 16px;
}
.campo { display: grid; gap: 8px; }
.campo__rotulo { font-size: 17px; font-weight: 700; }
.campo__rotulo small { color: var(--ganache-soft); font-size: 15px; font-weight: 400; }
.campo input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--linha-forte);
  border-radius: var(--r-campo);
  background: var(--chantilly);
  color: var(--ganache);
  font: inherit;
  font-size: 17px;
}
.campo input:focus-visible {
  outline: 3px solid var(--framboesa);
  outline-offset: 2px;
  border-color: var(--framboesa);
}

.previa__rotulo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ganache-soft);
  font-size: 15px;
  font-weight: 700;
}
.previa__balao {
  position: relative;
  margin-top: 10px;
  margin-left: 18px;
  padding: 14px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--bolha);
  font-size: 16px;
  line-height: 1.5;
}
.previa__balao.is-atualizada { animation: atualiza var(--motion-standard) var(--ease-standard); }
@keyframes atualiza {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .previa__balao.is-atualizada { animation: none; }
}

/* ---------- Cena 10: onde retirar ---------- */

.endereco {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  font-size: 18px;
  font-style: normal;
  line-height: 1.45;
}
.endereco i { margin-top: 4px; color: var(--framboesa); font-size: 20px; }
.onde__nota { color: var(--ganache-soft); font-size: 16px; }

.mapa {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  margin-top: 22px;
  border-radius: var(--r-foto);
  background: var(--rosa);
}
.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.mapa__abrir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--ganache);
  border-radius: var(--r-acao);
  background: var(--chantilly);
  color: var(--ganache);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.onde .btn { margin-top: 18px; }

/* ---------- Cena 11: CTA final ---------- */

.final { padding-bottom: calc(var(--scene) + 8px); }
.final__titulo { font-size: clamp(40px, 11.2vw, 48px); }
.final .btn--framboesa { margin-top: 26px; }
.final .btn--linha { margin-top: 12px; }

.final__contato {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}
.final__contato a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 500;
  text-decoration: none;
}
.final__contato i { width: 20px; color: var(--framboesa); text-align: center; }

/* ---------- Rodapé ---------- */

.rodape {
  padding: 32px var(--gutter) calc(32px + var(--safe-bottom));
  background: var(--fundo);
  color: var(--ganache);
  text-align: center;
}
.rodape__copy {
  color: var(--ganache-soft);
  font-size: 14px;
}

.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;
  color: var(--ganache);
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--framboesa);
  --seal-ring: 0.6 1.4;        /* pontilhado: as pérolas de confeitaria */
  --seal-font: var(--text);
  flex: none;
  width: 72px;
  height: 72px;
  overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); stroke-linecap: round; opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

.credito:active .selo-b2 { rotate: -10deg; }

.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

/* ---------- CTA flutuante (Regra do CTA) ---------- */

.cta-flutuante {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: var(--r-acao);
  background: var(--framboesa);
  color: var(--chantilly);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(135, 25, 63, 0.32);
  translate: -50% var(--shift-cta);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-standard) var(--ease-exit),
    translate var(--motion-standard) var(--ease-exit),
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    visibility 0s linear var(--motion-standard);
}
.cta-flutuante i { font-size: 22px; }
.cta-flutuante.is-visivel {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--motion-emphasis) var(--ease-enter),
    translate var(--motion-emphasis) var(--ease-enter),
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    visibility 0s;
}
.cta-flutuante:focus-visible { outline-color: var(--ganache); }

/* espaço para o flutuante não cobrir o fim das cenas */
main { padding-bottom: 0; }
.onde { padding-bottom: calc(var(--scene) + 40px); }

/* ---------- Telas maiores ---------- */

@media (min-width: 560px) {
  .page { box-shadow: 0 0 0 1px var(--linha); }
}
