/* =============================================================================
   BASE.CSS — Design system
   Meio-termo: a estrutura de venda do "Pacote do Produtor" (caps forte, faixa
   de urgência, card de oferta com moldura) + os efeitos e a profundidade da
   primeira versão + a paleta da ZapPedido.

   PALETA ZAPPEDIDO (retirada de zappedidoss/src/index.css)
     Signal Red   #CC1414   -> marca e ação (CTAs, badges, urgência)
     Zesty Orange #9D4300   -> base dos âmbares
     Amber        #F97316
     Gold         #FFD700   -> preço, molduras e brilhos
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Superfícies — preto com um respiro quente, não neutro puro */
  --ink-950: #0A0605;
  --ink-900: #0E0908;
  --ink-850: #130C0B;
  --ink-800: #1A1110;
  --ink-700: #241716;

  --surface-1: rgba(255, 255, 255, .038);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);

  /* Texto */
  --text: #FFFFFF;
  --text-soft: #C3AFAC;
  --text-dim: #8E7876;

  /* Marca — vermelho ZapPedido */
  --red: #E8232A;          /* Signal Red aberto para funcionar no escuro */
  --red-bright: #FF5A57;
  --red-deep: #CC1414;     /* o oficial da marca */

  /* Destaque — âmbar/dourado */
  --gold: #FFB020;
  --gold-bright: #FFD166;
  --gold-deep: #C97A0F;
  --amber: #F97316;

  --green: #22C55E;

  /* Texto sobre superfícies de acento */
  --on-gold: #21100A;
  --on-red: #FFFFFF;

  /* Gradientes */
  --grad-gold: linear-gradient(135deg, #FFD166 0%, #FFB020 48%, #E8890C 100%);
  --grad-red: linear-gradient(135deg, #FF4A45 0%, #E8232A 46%, #CC1414 100%);

  /* Sombras e brilhos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-md: 0 18px 44px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 44px 90px -40px rgba(0, 0, 0, .9);
  --glow-gold: 0 0 40px rgba(255, 176, 32, .32);
  --glow-gold-strong: 0 0 60px rgba(255, 176, 32, .48);
  --glow-red: 0 12px 40px -10px rgba(232, 35, 42, .55);
  --glow-red-strong: 0 18px 54px -12px rgba(232, 35, 42, .7);

  /* Raios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Ritmo */
  --gutter: clamp(18px, 5vw, 32px);
  --maxw: 1100px;     /* largura geral */
  --maxw-copy: 860px; /* coluna de leitura, como no modelo */
  --section-y: clamp(52px, 7vw, 92px);

  /* Tipografia */
  --font-display: 'Archivo Black', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Movimento */
  --ease-out: cubic-bezier(.16, .84, .34, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.42, .64, 1);
}

/* ----------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;      /* Archivo Black já é pesada */
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, video, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

::selection { background: rgba(232, 35, 42, .45); color: #FFFFFF; }

/* ---------------------------------------------------------------- 3. LAYOUT */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--copy { max-width: var(--maxw-copy); }

.section { position: relative; padding-block: var(--section-y); }
.section + .section { padding-top: calc(var(--section-y) * .6); }

/* No modelo, quase tudo é centralizado */
.section__head { max-width: var(--maxw-copy); margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-bright);
  padding: 8px 16px;
  border: 1px solid rgba(232, 35, 42, .38);
  border-radius: var(--r-pill);
  background: rgba(232, 35, 42, .1);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.h-xl { font-size: clamp(30px, 7.4vw, 58px); }
.h-lg { font-size: clamp(26px, 6.2vw, 46px); }
.h-md { font-size: clamp(19px, 3.6vw, 27px); }

/* Destaque dourado com brilho — a assinatura do modelo */
.gold {
  color: var(--gold);
  text-shadow: 0 0 26px rgba(245, 179, 45, .55);
}

.lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-soft);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 52ch;
  margin-inline: auto;
}
.lead strong { color: var(--text); font-weight: 700; }
.lead .gold { font-weight: 700; }

/* Rótulo pequeno em caps com tracking, usado sob números e títulos */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --------------------------------------------------------------- 4. BOTÕES */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.4vw, 18px);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-align: center;
  padding: 20px 34px;
  border-radius: var(--r-md);
  background: var(--grad-red);      /* CTA no vermelho da ZapPedido */
  color: var(--on-red);
  box-shadow: var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.btn::after { /* brilho que atravessa o botão */
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  z-index: -1;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--glow-red-strong), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:hover::after { opacity: 1; animation: btn-sheen 1s var(--ease-out); }
.btn:active { transform: translateY(-1px) scale(.99); }

@keyframes btn-sheen { from { left: -60%; } to { left: 120%; } }

.btn--lg { padding: 22px 40px; font-size: clamp(16px, 2.8vw, 20px); }
.btn--block { display: flex; width: 100%; }

/* Pulsação discreta, como o CTA principal do modelo */
.btn--pulse { animation: cta-pulse 2.4s var(--ease-soft) infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, .25); }
  50%      { box-shadow: var(--glow-red-strong), inset 0 1px 0 rgba(255, 255, 255, .25); }
}

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink-700); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------- 5. CHIPS / SELOS */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  white-space: nowrap;
  transition: transform .3s var(--ease-spring), border-color .3s;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(255, 176, 32, .45); }
.chip b { color: var(--gold); font-weight: 800; }

/* ------------------------------------------------------------- 6. FIGURINHA */
.sticker {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .35s var(--ease-spring);
}
.sticker__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .1), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .3s, box-shadow .3s, transform .35s var(--ease-spring);
}
.sticker__art::before { /* halo do segmento */
  content: '';
  position: absolute;
  inset: -34%;
  background: radial-gradient(circle at 50% 60%, var(--sticker-color, var(--gold)), transparent 58%);
  opacity: .16;
  filter: blur(22px);
  pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.sticker:hover .sticker__art::before { opacity: .3; }
.sticker__img {
  position: relative;
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.sticker__img.is-loaded { opacity: 1; }
.sticker__img.is-loaded + .sticker__ph { opacity: 0; }

.sticker__ph { /* PLACEHOLDER — visível até a imagem real existir */
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  text-align: center;
  padding: 14px;
  transition: opacity .4s var(--ease-out);
}
.sticker__emoji {
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6));
}
.sticker__ph-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(10px, 1.5vw, 12px);
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .9);
  line-height: 1.25;
  text-wrap: balance;
}
.sticker__label {
  font-size: clamp(11px, 1.6vw, 12px);
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
}

/* MARCA D'ÁGUA — carimbo por cima da figurinha.
   Fica sempre na frente da imagem e intercepta o clique direito.
   Só aparece quando existe imagem real. */
.sticker__wm {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-repeat: repeat;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
.sticker__art.has-image .sticker__wm { opacity: var(--wm-opacity, .22); }

.sticker:hover { transform: translateY(-8px); }
.sticker:hover .sticker__art {
  border-color: rgba(255, 176, 32, .45);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: rotate(-2deg);
}

/* ------------------------------------------------------------- 7. FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  background: var(--ink-950);
  text-align: center;
}
.site-footer__inner { display: grid; gap: 14px; justify-items: center; }
.site-footer p { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.site-footer__links a {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s;
}
.site-footer__links a:hover { color: var(--gold); }

/* ------------------------------- 8. BARRA DE PROGRESSO DO SCROLL (topo) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  box-shadow: 0 0 14px rgba(255, 176, 32, .6);
  z-index: 200;
  pointer-events: none;
}

/* --------------------------------------------------- 9. FUNDO / ATMOSFERA */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.bg-fx__orb--a { width: 50vw; height: 50vw; top: -18vw; left: 50%; transform: translateX(-50%); background: rgba(232, 35, 42, .22); }
.bg-fx__orb--b { width: 40vw; height: 40vw; bottom: 2vw; right: -14vw; background: rgba(255, 176, 32, .12); }
.bg-fx__orb--c { width: 34vw; height: 34vw; top: 42%; left: -12vw; background: rgba(204, 20, 20, .14); }

/* Malha discreta — devolve a profundidade da primeira versão */
.bg-fx__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000 0%, transparent 74%);
}

/* Partículas quentes */
.bg-fx__dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 176, 32, .5), transparent),
    radial-gradient(1.5px 1.5px at 68% 12%, rgba(232, 35, 42, .4), transparent),
    radial-gradient(1.5px 1.5px at 32% 68%, rgba(255, 176, 32, .4), transparent),
    radial-gradient(1.5px 1.5px at 84% 54%, rgba(232, 35, 42, .3), transparent),
    radial-gradient(1.5px 1.5px at 48% 88%, rgba(255, 176, 32, .35), transparent),
    radial-gradient(1.5px 1.5px at 92% 82%, rgba(255, 176, 32, .25), transparent);
  background-size: 100% 100%;
  opacity: .85;
}
.bg-fx__noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------ 10. REVEAL NO SCROLL */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal='scale'] { transform: translateY(18px) scale(.96); }

/* ------------------------------------------------------- 11. UTILITÁRIOS */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------- 12. MOVIMENTO REDUZIDO */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
