/* =========================================================
   Lilian Arts — cores tiradas do passarinho da logo
   ========================================================= */
:root {
  --papel: #FDF3F4;
  --branco: #FFFFFF;
  --ameixa: #4A1838;
  --ameixa-suave: #74465F;
  --amarelo: #FFD84D;
  --amarelo-sombra: #C99F12;
  --rosa: #F4A6C1;
  --rosa-claro: #F9D5E1;
  --ceu: #5BB8E8;
  --folha: #6DBE7E;
  --natal: #D23A48;
  --natal-fundo: #8A1626;
  --madeira: #DDB07C;
  --linha: rgba(74, 24, 56, .14);
  --sombra: 0 10px 24px -10px rgba(74, 24, 56, .35);

  --f-titulo: "Shantell Sans", "Comic Sans MS", system-ui, sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --raio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--ameixa);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Nada pode passar da largura da tela: animações de entrada (setas, fotos, vídeo)
   deslocam elementos para os lados e, no celular, isso alargava a página
   e descentralizava o modal. "clip" não cria rolagem, então o sticky continua funcionando. */
main, .rodape { overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--f-titulo);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  font-variation-settings: "INFM" 40, "BNCE" 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 2.85rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--ameixa); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ameixa); color: var(--branco); padding: 10px 16px; border-radius: 8px; }
.pular:focus { top: 12px; }
.icone { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Botões (feedback de clique: afunda) ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font-family: var(--f-texto); font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 150ms;
}
.botao--principal {
  background: var(--amarelo); color: var(--ameixa);
  box-shadow: 0 4px 0 var(--amarelo-sombra);
}
.botao--principal:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--amarelo-sombra); }
.botao--principal:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--amarelo-sombra); }
.botao--secundario { background: transparent; color: var(--ameixa); box-shadow: inset 0 0 0 2px var(--ameixa); }
.botao--secundario:hover { background: var(--rosa-claro); }
.botao--secundario:active { transform: scale(.97); }
.botao--texto { background: transparent; padding-inline: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--ameixa-suave); }
.botao--texto:hover { color: var(--ameixa); }
.botao--pequeno { min-height: 44px; padding: 0 18px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .botao { transition: none; } }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--papel) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.topo.rolou { border-bottom-color: var(--linha); }
.topo__wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { border-radius: 50%; box-shadow: 0 0 0 2px var(--branco), 0 2px 6px rgba(74,24,56,.2); }
.marca__nome { font-family: var(--f-titulo); font-weight: 700; font-size: 1.3rem; font-variation-settings: "INFM" 70; }
.menu { display: flex; gap: 6px; }
.menu a {
  text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 550;
  transition: background-color 150ms;
}
.menu a:hover { background: var(--rosa-claro); }
.menu a[aria-current="true"] { background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha); }
@media (max-width: 820px) { .menu { display: none; } }
@media (max-width: 420px) { .some-mobile { display: none; } }

/* =========================================================
   HERO — o varal
   ========================================================= */
.hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero + .secao { padding-top: clamp(2.5rem, 5vw, 4rem); }

.varal {
  --y0: 22px;
  --sag: 42px;
  --w: clamp(140px, 13vw, 178px);
  position: relative;
  height: calc(var(--w) * 1.42 + 70px);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  touch-action: pan-y;
}
.varal__barbante { position: absolute; inset: 0 0 auto 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.barbante { fill: none; stroke-width: 3; stroke-linecap: round; }
.barbante--base { stroke: var(--branco); }
.barbante--listra { stroke: var(--natal); stroke-dasharray: 7 7; }

.peca {
  --t: .5;
  position: absolute;
  left: calc(var(--t) * 100%);
  top: calc(var(--y0) + 4 * var(--sag) * var(--t) * (1 - var(--t)) - 12px);
  translate: -50% 0;
  width: var(--w);
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.peca:focus-visible { outline: none; }
.peca:focus-visible .polaroid { outline: 3px solid var(--ameixa); outline-offset: 4px; }
.p1 { --t: .09; --d: 0ms; }
.p2 { --t: .29; --d: 110ms; }
.p3 { --t: .5;  --d: 220ms; }
.p4 { --t: .71; --d: 330ms; }
.p5 { --t: .91; --d: 440ms; }

.peca__balanco { display: block; transform-origin: 50% 6px; rotate: var(--ang, 0deg); }
.peca__queda { display: block; }
.js .peca__queda { animation: cair 620ms cubic-bezier(.3, 1.45, .55, 1) var(--d) both; }
@keyframes cair {
  from { transform: translateY(-140px); opacity: 0; }
  25% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

.prendedor {
  position: relative; z-index: 2; display: block;
  width: 14px; height: 36px; margin: 0 auto -16px;
  border-radius: 3px 3px 4px 4px;
  background: linear-gradient(90deg, #C9965E 0 46%, #A97A47 46% 54%, var(--madeira) 54%);
  box-shadow: 0 2px 3px rgba(74,24,56,.3);
}
.prendedor::after { /* molinha */
  content: ""; position: absolute; left: -3px; right: -3px; top: 13px; height: 5px;
  border-radius: 3px; background: #B9B3B8; box-shadow: inset 0 1px 0 #E8E3E6;
}
.polaroid {
  display: block; background: var(--branco);
  padding: 8px 8px 0; border-radius: 3px;
  box-shadow: var(--sombra);
  transition: box-shadow 200ms;
}
.peca:hover .polaroid { box-shadow: 0 16px 30px -12px rgba(74, 24, 56, .45); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--rosa-claro); }
.polaroid__legenda {
  display: block; padding: 6px 2px 9px;
  font-family: var(--f-titulo); font-size: .98rem; font-weight: 500; text-align: center;
  font-variation-settings: "INFM" 100;
}

@media (max-width: 700px) {
  .varal { --w: min(31vw, 150px); --sag: 26px; --y0: 18px; }
  .p2, .p4 { display: none; }
  .p1 { --t: .18; }
  .p3 { --t: .5; --d: 110ms; }
  .p5 { --t: .82; --d: 220ms; }
  .polaroid { padding: 6px 6px 0; }
  .polaroid__legenda { font-size: .78rem; padding-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.hero__texto { max-width: 1180px; }
.hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  max-width: 21ch;
  font-weight: 800;
  font-variation-settings: "INFM" 55, "BNCE" 22;
  letter-spacing: -.01em;
}
.hero__sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 54ch; color: var(--ameixa-suave); }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero__micro { margin-top: .9rem; font-size: .92rem; color: var(--ameixa-suave); }

/* =========================================================
   Seções
   ========================================================= */
.secao { padding-block: clamp(4rem, 9vw, 7rem); }
.cabeca { max-width: 640px; margin-bottom: 2rem; }
.cabeca p { color: var(--ameixa-suave); font-size: 1.12rem; }
.cabeca--centro { margin-inline: auto; text-align: center; }

/* ---------- Filtro ---------- */
.filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 2.5rem; }
.filtro__rotulo { font-weight: 600; margin-right: 6px; }
.chip {
  --cor: var(--ameixa);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha);
  font-weight: 600;
  transition: background-color 150ms, box-shadow 150ms, transform 120ms;
}
.chip::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--cor); rotate: -8deg; }
.chip[data-filtro="todos"]::before { display: none; }
.chip--amor { --cor: var(--rosa); }
.chip--familia { --cor: var(--ceu); }
.chip--escola { --cor: var(--folha); }
.chip--natal { --cor: var(--natal); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ameixa-suave); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ameixa); color: var(--branco); box-shadow: none; }

/* ---------- Galeria (álbum com fita adesiva) ---------- */
.galeria { columns: 3 280px; column-gap: clamp(20px, 3vw, 36px); }
.produto { break-inside: avoid; margin-bottom: 2.6rem; }
.produto[hidden] { display: none; }
.produto__foto {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  margin-bottom: 1rem;
}
.produto__foto img {
  width: 100%; border-radius: 6px;
  box-shadow: var(--sombra);
  transition: transform 200ms ease-out;
}
.produto__foto:hover img { transform: translateY(-3px) rotate(-.6deg); }
.produto__foto::before { /* fita adesiva com a cor da ocasião */
  content: ""; position: absolute; z-index: 1; top: -11px; left: 22px;
  width: 92px; height: 26px; rotate: -5deg;
  background: color-mix(in srgb, var(--fita) 82%, white);
  opacity: .92;
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 24% 8%, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.produto h3 { margin-bottom: .35em; }
.produto p { margin-bottom: .6em; }
.produto__ideal { font-size: .95rem; color: var(--ameixa-suave); }
.produto__ideal strong { color: var(--ameixa); font-weight: 650; margin-right: .3em; }

::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* ---------- Natal ---------- */
.natal {
  background: var(--natal-fundo);
  color: #FFF4F2;
  position: relative;
}
.natal::before, .natal::after { /* costura nas bordas */
  content: ""; position: absolute; left: 0; right: 0; height: 0;
  border-top: 2px dashed rgba(255, 244, 242, .45);
}
.natal::before { top: 14px; }
.natal::after { bottom: 14px; }
.natal :focus-visible { outline-color: var(--amarelo); }
.natal__grade { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.natal__texto p { max-width: 52ch; font-size: 1.1rem; }
.natal__lista { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.natal__lista li { display: flex; gap: .7rem; align-items: baseline; font-weight: 550; }
.natal__lista li::before { content: "✦"; color: var(--amarelo); }
.natal__aviso { font-size: .98rem !important; opacity: .88; }
.natal .botao--principal { box-shadow: 0 4px 0 #5C0D18; }
.natal .botao--principal:hover { box-shadow: 0 6px 0 #5C0D18; }
.natal .botao--principal:active { box-shadow: 0 1px 0 #5C0D18; }

.natal__video { position: relative; justify-self: center; width: min(100%, 360px); rotate: 2deg; }
.natal__video video {
  width: 100%; aspect-ratio: 512 / 910; object-fit: cover;
  border-radius: 22px; border: 8px solid #FFF4F2;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55);
  background: #5C0D18;
}
.video-botao {
  position: absolute; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ameixa); font-weight: 600; font-size: .92rem;
  transition: transform 120ms;
}
.video-botao:active { transform: scale(.95); }
.video-botao .icone--play { display: none; }
.video-botao[aria-pressed="true"] .icone--play { display: block; }
.video-botao[aria-pressed="true"] .icone--pause { display: none; }

@media (max-width: 820px) {
  .natal__grade { grid-template-columns: 1fr; }
  .natal__video { width: min(78%, 320px); }
}

/* ---------- Quem faz ---------- */
.quem { background: linear-gradient(180deg, var(--papel), #FBE6EC); }
.quem__mapa {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.quem__foto { margin: 0; width: clamp(220px, 28vw, 340px); }
.quem__foto img {
  border-radius: 50%; width: 100%; aspect-ratio: 1;
  border: 14px solid var(--branco);
  box-shadow: 0 0 0 10px var(--rosa-claro), var(--sombra);
}
.quem__lado { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; font-weight: 600; font-size: 1.05rem; }
.quem__lado li { display: flex; align-items: center; gap: 12px; }
.quem__lado--esq li { flex-direction: row-reverse; text-align: right; }
.quem__lado--esq li:nth-child(odd) { margin-right: 1.5rem; }
.quem__lado--dir li:nth-child(even) { margin-left: 1.5rem; }
.seta { width: 64px; height: 30px; flex: none; color: #7A4A2A; }
.quem__lado--esq .seta { transform: scaleX(-1); }
.seta__traco { stroke-dasharray: 140; stroke-dashoffset: 0; }
.seta__ponta { stroke-dasharray: 30; stroke-dashoffset: 0; }

/* As setas se desenham quando a seção aparece */
.js .quem:not(.visivel) .seta__traco { stroke-dashoffset: 140; }
.js .quem:not(.visivel) .seta__ponta { stroke-dashoffset: 30; }
.js .quem .seta__traco { transition: stroke-dashoffset 700ms ease-out var(--atraso, 0ms); }
.js .quem .seta__ponta { transition: stroke-dashoffset 200ms ease-out calc(var(--atraso, 0ms) + 650ms); }
.quem__lado li:nth-child(1) { --atraso: 0ms; }
.quem__lado li:nth-child(2) { --atraso: 140ms; }
.quem__lado li:nth-child(3) { --atraso: 280ms; }
.quem__lado li:nth-child(4) { --atraso: 420ms; }

@media (max-width: 860px) {
  .quem__mapa { grid-template-columns: 1fr; justify-items: center; }
  .quem__foto { order: -1; }
  .quem__lado { gap: .9rem; width: 100%; max-width: 420px; }
  .quem__lado li, .quem__lado--esq li { flex-direction: row; text-align: left; margin: 0 !important; }
  .quem__lado--esq .seta { transform: none; }
  .seta { width: 44px; height: 22px; }
}

/* ---------- Pedido (formulário em 3 passos) ---------- */
.pedido__grade { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pedido__intro { position: sticky; top: 100px; }
.pedido__intro p { color: var(--ameixa-suave); max-width: 44ch; }
.pedido__direto { margin-top: 1.6rem; color: var(--ameixa) !important; font-weight: 550; }
.pedido__direto a { display: inline-block; margin-top: .2rem; font-weight: 650; text-underline-offset: 4px; }
@media (max-width: 860px) { .pedido__grade { grid-template-columns: 1fr; } .pedido__intro { position: static; } }

.cartao-form {
  background: var(--branco);
  border-radius: 22px;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow: 0 1px 0 var(--linha), 0 24px 50px -28px rgba(74, 24, 56, .45);
  overflow: hidden;
}
.progresso { height: 8px; border-radius: 99px; background: var(--rosa-claro); overflow: hidden; }
.progresso__barra {
  height: 100%; width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--rosa), var(--amarelo));
  transform-origin: left; transform: scaleX(var(--p, .18));
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1);
}
.progresso__texto { font-size: .9rem; color: var(--ameixa-suave); margin: .6rem 0 1.2rem; }

.etapa { border: 0; margin: 0; padding: 0; min-width: 0; }
.etapa legend { font-family: var(--f-titulo); font-weight: 700; font-size: 1.5rem; padding: 0; margin-bottom: 1rem; font-variation-settings: "INFM" 40; }
.etapa.entra-frente { animation: entraFrente 260ms ease-out; }
.etapa.entra-tras { animation: entraTras 260ms ease-out; }
@keyframes entraFrente { from { opacity: 0; transform: translateX(28px); } }
@keyframes entraTras { from { opacity: 0; transform: translateX(-28px); } }

.opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .opcoes { grid-template-columns: repeat(2, 1fr); } }
.opcao {
  position: relative; display: grid; gap: 8px; justify-items: center; align-content: start;
  padding: 10px 10px 12px; border-radius: 14px; cursor: pointer;
  background: var(--papel); box-shadow: inset 0 0 0 2px transparent;
  font-weight: 600; font-size: .95rem; text-align: center; line-height: 1.25;
  transition: box-shadow 150ms, transform 120ms, background-color 150ms;
}
.opcao:hover { box-shadow: inset 0 0 0 2px var(--rosa); }
.opcao:active { transform: scale(.97); }
.opcao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.opcao__mais {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px;
  border: 2px dashed var(--rosa); font-family: var(--f-titulo); font-size: 2.6rem; color: var(--ameixa-suave);
}
.opcao:has(input:checked) { background: #FFF7D6; box-shadow: inset 0 0 0 2.5px var(--ameixa); }
.opcao:has(input:checked)::after {
  content: "✓"; position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ameixa); color: var(--branco); font-size: .85rem; font-weight: 700;
  animation: marcar 220ms cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes marcar { from { transform: scale(0); } }
.opcao:has(input:focus-visible) { outline: 3px solid var(--ameixa); outline-offset: 3px; }

.campo { display: grid; gap: 6px; margin-bottom: 1.1rem; }
.campo label { font-weight: 600; }
.opcional { font-weight: 400; color: var(--ameixa-suave); }
.campo input, .campo select, .campo textarea {
  font: inherit; color: var(--ameixa);
  min-height: 48px; padding: 10px 14px;
  border: 2px solid #D9C4CF; border-radius: 12px; background: var(--branco);
  transition: border-color 150ms, box-shadow 150ms;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--ameixa); box-shadow: 0 0 0 4px var(--rosa-claro); }
.campo [aria-invalid="true"] { border-color: #B3261E; }
.campo-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .campo-linha { grid-template-columns: 1fr; } }
.erro { color: #B3261E; font-size: .92rem; font-weight: 550; margin: .6rem 0 0; }
.erro[hidden] { display: none; }

.previa { background: var(--papel); border-radius: 12px; padding: 14px 16px; margin-bottom: 1rem; }
.previa__titulo { font-weight: 650; font-size: .92rem; margin-bottom: .4rem; }
.previa__texto { margin: 0; font-family: var(--f-texto); font-size: .95rem; white-space: pre-wrap; color: var(--ameixa-suave); }

.etapa__acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 1.5rem; }
.etapa__acoes--centro { justify-content: center; }

.etapa--pronto { text-align: center; padding: 1rem 0 .5rem; }
.etapa--pronto:focus { outline: none; }
.etapa--pronto h3 { font-size: 1.7rem; }
.check { width: 76px; height: 76px; margin: 0 auto 1rem; }
.check__circulo { fill: var(--amarelo); stroke: var(--amarelo-sombra); stroke-width: 2; transform-origin: center; animation: marcar 320ms cubic-bezier(.3, 1.5, .5, 1); }
.check__traco { fill: none; stroke: var(--ameixa); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tracar 360ms ease-out 220ms forwards; }
@keyframes tracar { to { stroke-dashoffset: 0; } }

/* ---------- Rodapé ---------- */
.rodape { background: var(--ameixa); color: #FBE6EC; padding-block: 3rem; }
.rodape :focus-visible { outline-color: var(--amarelo); }
.rodape__grade { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.rodape__marca { display: flex; gap: 16px; align-items: center; }
.rodape__marca img { border-radius: 50%; border: 3px solid var(--branco); }
.rodape__marca p { margin: 0; max-width: 40ch; }
.rodape__marca strong { font-family: var(--f-titulo); font-size: 1.3rem; }
.rodape__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rodape__links a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.rodape__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rodape__copy { grid-column: 1 / -1; margin: 0; font-size: .9rem; opacity: .75; }
@media (max-width: 700px) { .rodape__grade { grid-template-columns: 1fr; } }

/* ---------- Detalhe do produto ---------- */
.detalhe {
  width: min(920px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 20px;
  background: var(--branco); color: var(--ameixa);
  box-shadow: 0 40px 80px -30px rgba(40, 8, 30, .6);
  overflow: hidden; /* quem rola é o conteúdo; o X fica sempre visível */
}
.detalhe[open] { display: flex; flex-direction: column; }
.detalhe::backdrop { background: rgba(74, 24, 56, .55); backdrop-filter: blur(4px); }
.detalhe[open] { animation: abrir 260ms cubic-bezier(.2, .8, .2, 1); }
.detalhe[open]::backdrop { animation: escurecer 260ms ease-out; }
.vt-ativa .detalhe[open], .vt-ativa .detalhe[open]::backdrop { animation: none; }
@keyframes abrir { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes escurecer { from { opacity: 0; } }
.detalhe__grade { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.detalhe__foto { width: 100%; height: 100%; max-height: 640px; object-fit: cover; }
.detalhe__texto { padding: clamp(1.4rem, 4vw, 2.6rem); }
.detalhe__texto h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); padding-right: 2rem; }
.detalhe__rotulo { font-weight: 650; margin-bottom: .4rem; }
.detalhe__lista { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.detalhe__lista li::marker { color: var(--rosa); }
.detalhe__acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.detalhe__fechar {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--ameixa);
  box-shadow: 0 2px 8px rgba(74, 24, 56, .2);
  transition: transform 120ms;
}
.detalhe__fechar:active { transform: scale(.92); }
.detalhe__fechar svg { width: 22px; height: 22px; }
@media (max-width: 700px) {
  .detalhe__grade { grid-template-columns: 1fr; }
  .detalhe__foto { max-height: 46vh; }
}

/* =========================================================
   Entradas no scroll (CSS scroll-driven, sem JavaScript).
   Só abaixo da dobra, só transform/opacity, e cada uma
   conta algo do assunto: foto colada no álbum, fita que estica,
   fatos que apontam para a Lilian.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cabeca, .natal__texto, .pedido__intro, .cartao-form {
      animation: subir linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 70%;
    }

    /* Foto que chega torta e assenta no álbum */
    .produto {
      animation: colar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .produto:nth-child(odd) { --gira: -3deg; }
    .produto:nth-child(even) { --gira: 2.5deg; }
    .produto__foto::before {
      transform-origin: left center;
      animation: fita linear both;
      animation-timeline: view();
      animation-range: entry 30% entry 100%;
    }

    /* Vídeo sobe e gira até a inclinação final */
    .natal__video {
      animation: virar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    /* Foto da Lilian cresce e os fatos vêm dos lados em direção a ela */
    .quem__foto {
      animation: crescer linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 80%;
    }
    .quem__lado li {
      animation: deslizar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .quem__lado--esq li { --de: -36px; }
    .quem__lado--dir li { --de: 36px; }
  }
}
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes colar { from { opacity: 0; transform: translateY(44px) rotate(var(--gira, -3deg)) scale(.96); } }
@keyframes fita { from { opacity: 0; transform: scaleX(.15); } }
@keyframes virar { from { opacity: 0; transform: translateY(70px) rotate(7deg); } }
@keyframes crescer { from { opacity: 0; transform: scale(.88); } }
@keyframes deslizar { from { opacity: 0; transform: translateX(var(--de, 0)); } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .peca__queda { animation: none; }
  .etapa.entra-frente, .etapa.entra-tras { animation: none; }
  .detalhe[open], .detalhe[open]::backdrop { animation: none; }
  .js .quem .seta__traco, .js .quem .seta__ponta { transition: none; stroke-dashoffset: 0; }
  .produto__foto img, .chip, .opcao { transition: none; }
  .progresso__barra { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
