/* Batidas El Tchan - landing. Tokens: ../brand/tokens.css (DESIGN.md). Tema claro, sempre. */
:root {
  color-scheme: light;
  --brand: #C4161C; --brand-hover: #A8121A; --brand-ink: #8A0F16; --brand-soft: #FDECEC;
  --bg: #F7F7F5; --card: #FFFFFF; --raised: #EFEDE8; --border: #D9D5CF;
  --fg: #1C1917; --fg-muted: #5F5853;
  --sun: #FCDA3B; --sun-ink: #3D2E00;
  --on-red: #FFFFFF; --on-red-soft: #FFE1E2;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-press: cubic-bezier(.2, 0, 0, 1);
  --sticker: 0 1px 0 rgb(28 25 23 / .06), 0 6px 16px -6px rgb(28 25 23 / .18);
  --float: 0 2px 0 rgb(28 25 23 / .06), 0 16px 40px -12px rgb(28 25 23 / .28);
  --font-display: "Titan One", "Arial Black", Impact, sans-serif;
  --font-sans: "Rubik", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Permanent Marker", cursive;
  --wrap: 1120px; --gutter: 16px; --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--brand) var(--raised); accent-color: var(--brand); caret-color: var(--brand); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 400 clamp(2.75rem, 8vw, 5.5rem)/.95 var(--font-display); letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h3 { font: 700 1.375rem/1.2 var(--font-sans); }
img, video { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: var(--header); }
a { color: var(--brand); text-underline-offset: .18em; }
::selection { background: #FBD5D6; color: var(--fg); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.on-red :focus-visible, .on-red:focus-visible { outline-color: #fff; }
.tab { font-variant-numeric: tabular-nums lining-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.i { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 30; background: var(--card); color: var(--brand); padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Botões: raio 12, 56px, Rubik 700 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 12px; border: 0; font: 700 1.0625rem var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform 120ms var(--ease-press), background 160ms, box-shadow 160ms; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgb(0 0 0 / .18); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgb(196 22 28 / .55); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 2px 0 rgb(0 0 0 / .12), 0 16px 40px -12px rgb(60 0 0 / .5); }
.btn-white:hover { background: var(--brand-soft); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .75); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

/* Etiqueta amarela escrita a caneta */
.tape { display: inline-block; background: var(--sun); color: var(--sun-ink); font: 400 clamp(1.125rem, 4.5vw, 1.5rem)/1.1 var(--font-hand); padding: 10px 18px 8px; border-radius: 2px; transform: rotate(-2deg); box-shadow: 0 2px 0 rgb(0 0 0 / .12); }

/* Cabeçalho: transparente sobre o vermelho, vira barra branca ao rolar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header); transition: background 240ms var(--ease), box-shadow 240ms var(--ease); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 100%; }
.top .seal { width: 48px; height: 48px; border-radius: 9999px; box-shadow: var(--sticker); }
.top .name { display: none; flex: 1; font: 400 1.5rem/1 var(--font-display); color: #fff; text-decoration: none; transition: color 240ms; }
.top .spacer { flex: 1; }
.top.is-stuck { background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); box-shadow: var(--sticker); }
.top.is-stuck .name { color: var(--fg); }
.top .btn-white { transition: background 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms; }
.top.is-stuck .btn-white { background: var(--brand); color: #fff; box-shadow: none; }
.top.is-stuck .btn-white:hover { background: var(--brand-hover); }
@media (min-width: 768px) { .top .name { display: block; } .top .spacer { display: none; } }

/* Hero: a tampa vermelha da caixa. Vídeo em loop por baixo, em multiply (vira impressão vermelha, contraste do branco preservado). */
.hero { position: relative; isolation: isolate; overflow: clip; background: var(--brand); color: #fff; min-height: 100svh; display: grid; align-items: center; padding-top: var(--header); }
.hero-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0; transition: opacity 800ms var(--ease); }
.hero-video.is-ready { opacity: 1; }
.hero-photo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; mix-blend-mode: multiply; transition: opacity 800ms var(--ease); }
.hero-video.is-ready + .hero-photo img { opacity: 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 20px; padding-block: 16px 32px; align-items: center; width: 100%; }
.hero-seal { width: min(48vw, 240px); margin: 0 auto; border-radius: 9999px; filter: drop-shadow(0 2px 0 rgb(0 0 0 / .15)) drop-shadow(0 18px 32px rgb(60 0 0 / .45)); animation: stick 600ms var(--ease) both; }
@keyframes stick { from { transform: scale(1.06) rotate(-4deg); opacity: .85; } to { transform: none; opacity: 1; } }
.hero h1 { color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .18); }
.hero .sub { font: 500 1.125rem/1.45 var(--font-sans); color: var(--on-red-soft); max-width: 34ch; margin-top: 16px; }
.hero .tape { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn-white { flex: 1 1 auto; }
.hero-actions .btn-outline { display: none; }
@media (min-width: 640px) { .hero-actions .btn-white { flex: none; } .hero-actions .btn-outline { display: inline-flex; } }
@media (min-width: 768px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 5fr 7fr; gap: 48px; padding-block: 48px 80px; }
  .hero-seal { width: 100%; max-width: 400px; margin: 0; }
}

/* Dobras */
.fold { padding-block: 64px; }
.fold h2 { margin-bottom: 16px; }
.lead { color: var(--fg-muted); max-width: 65ch; margin-bottom: 32px; font-size: 1.0625rem; }
@media (min-width: 768px) { .fold { padding-block: 96px; } }

/* Cardápio de batidas: o fundo da dobra assume a cor da batida ativa.
   Cores de produto (extensão local da paleta, só nesta dobra): cada card traz --c (fundo) e --ink (tinta, AA sobre --c). */
.batidas-fold { --c: #FB8BA2; --ink: #4A0F1E; background: var(--c); color: var(--ink); transition: background 480ms var(--ease), color 480ms var(--ease); }
.batidas-fold .lead { color: inherit; opacity: .85; }
.batidas { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.batidas::-webkit-scrollbar { display: none; }
.batida { flex: 0 0 min(76vw, 300px); scroll-snap-align: center; position: relative; background: var(--card); color: var(--fg); border-radius: 20px; padding: 8px 8px 14px; box-shadow: var(--sticker); transition: transform 480ms var(--ease), box-shadow 480ms var(--ease); }
.batida.is-active { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--float); }
.batida .media { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--c); color: var(--ink); display: grid; place-items: center; }
.batida .media img { width: 46%; border-radius: 9999px; box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 8px 16px -6px rgb(0 0 0 / .35); }
.batida .media .photo, .batida .media .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.batida .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease); }
.batida .media video.is-ready { opacity: 1; }
.batida .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 4px 0; min-height: 52px; }
.batida h3 { font-size: 1.125rem; text-wrap: balance; }
.batida .select { position: absolute; inset: 0; border-radius: 20px; background: transparent; border: 0; cursor: pointer; }
.batida .select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
/* Preço: etiqueta que "carimba" quando a batida fica ativa */
.price { flex: none; background: var(--raised); color: var(--fg); font: 400 1.125rem/1 var(--font-hand); padding: 8px 12px 6px; border-radius: 2px; transform: rotate(-3deg); transform-origin: 80% 80%; box-shadow: 0 2px 0 rgb(0 0 0 / .12); transition: background 320ms, color 320ms, font-size 320ms var(--ease); }
.batida.is-active .price { background: var(--sun); color: var(--sun-ink); font-size: 1.75rem; animation: stamp 480ms var(--ease) both; }
@keyframes stamp { from { transform: scale(1.6) rotate(-10deg); opacity: 0; } 60% { transform: scale(.96) rotate(-2deg); opacity: 1; } to { transform: scale(1) rotate(-3deg); opacity: 1; } }
/* entrada em cascata ao chegar na dobra */
.batida { opacity: 0; translate: 0 16px; }
.batidas.is-in .batida { opacity: 1; translate: 0 0; transition: opacity 600ms var(--ease), translate 600ms var(--ease), transform 480ms var(--ease), box-shadow 480ms var(--ease); transition-delay: calc(var(--i) * 40ms), calc(var(--i) * 40ms), 0ms, 0ms; }
@media (min-width: 1024px) {
  .batidas { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .batida { flex: 1 1 0; min-width: 0; }
}

/* Porções: lista grande, nome à esquerda, preço a caneta à direita; sem bordas em toda linha */
.porcoes { display: grid; gap: 20px; max-width: 720px; }
.porcao { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border-radius: 20px; padding: 20px 20px 20px 24px; }
.porcao h3 { font-size: clamp(1.375rem, 4vw, 1.75rem); }
.porcao .tape { font-size: clamp(1.25rem, 4.5vw, 1.625rem); transform: rotate(2deg); flex: none; }
.porcoes-fold .wrap { display: grid; gap: 24px; }
@media (min-width: 1024px) { .porcoes-fold .wrap { grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; } .porcoes-fold h2 { position: sticky; top: calc(var(--header) + 24px); } }

/* Na areia: fotos do pack, grade em degraus (2 colunas no celular, 4 no desktop) */
.areia { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 32px; }
.areia img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--sticker); }
.areia picture:nth-child(even) { translate: 0 32px; }
@media (min-width: 1024px) { .areia { grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 48px; } .areia picture:nth-child(even) { translate: 0 48px; } }

/* Onde encontrar: vermelho de novo (uma dobra em cada três) */
.onde { background: var(--brand); color: #fff; }
.onde .lead { color: var(--on-red-soft); }
.onde .lead a { color: #fff; }
.stickers { display: grid; gap: 16px; margin-top: 32px; }
.sticker { background: var(--card); color: var(--fg); border-radius: 20px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--float); transform: rotate(-1deg); }
.sticker + .sticker { transform: rotate(1deg); }
.sticker .i { width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
.sticker h3 { font-size: 1.125rem; margin-bottom: 4px; }
.sticker p { color: var(--fg-muted); }
.sticker a { font-weight: 600; display: inline-block; margin-top: 4px; }
.onde-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .onde .wrap { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; } .stickers { margin-top: 0; } }

/* Rodapé */
footer { padding: 48px 0 calc(64px + env(safe-area-inset-bottom)); color: var(--fg-muted); font-size: .9375rem; }
footer .wrap { display: grid; gap: 20px; }
footer .brand { display: flex; align-items: center; gap: 12px; color: var(--fg); font: 400 1.5rem/1 var(--font-display); text-decoration: none; }
footer .brand img { width: 48px; height: 48px; border-radius: 9999px; box-shadow: var(--sticker); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--fg); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
footer nav a:hover { color: var(--brand); }
footer .legal { max-width: 65ch; }
footer address { font-style: normal; }
footer address a { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-seal, .batida.is-active .price { animation: none; }
  .batida, .batidas.is-in .batida, .btn, .top, .batidas-fold, .price, .hero-video { transition: none; }
  .batida { opacity: 1; translate: 0 0; }
  .batida.is-active { transform: none; }
}
