/* Panini Mundial 2026 — funil: cores e componentes partilhados */
:root {
  --wine: #6b0f1a;
  --wine-dark: #4a0810;
  --wine-light: #8b1f2d;
  --green: #0f9d58;
  --green-dark: #0a7a3f;
  --yellow: #ffbd17;
  --yellow-cta: #fdd835;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f5f4;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(26, 26, 46, 0.06);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', Impact, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--wine-dark);
}
body {
  margin: 0;
  font-family: var(--font);
  background: #f4f4f6;
  color: var(--ink);
  line-height: 1.45;
  overflow-x: clip;
}

.funnel-top {
  background: var(--wine);
  color: #fff;
  padding: max(22px, env(safe-area-inset-top, 0px)) 16px 22px;
  position: relative;
}
.funnel-top-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 10px;
}
.funnel-logo {
  width: 100%;
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px 0 6px;
}
.funnel-logo img {
  height: clamp(104px, 30vw, 140px);
  width: auto;
  max-width: min(440px, 96vw);
  display: block;
  border-radius: 12px;
  object-fit: contain;
}
.offer-timer {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  flex: 0 1 auto;
  justify-content: center;
}
.offer-timer .offer-ico { color: #fde68a; }
.offer-timer__label { color: rgba(255, 255, 255, 0.92); }
.offer-timer__digits {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(16px, 4.2vw, 19px);
  letter-spacing: 0.1em;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  width: 100%;
}
@media (min-width: 560px) {
  .funnel-top-inner { justify-content: space-between; }
  .social-pills { width: auto; justify-content: flex-end; }
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 250, 235, 0.95);
  border: 1px solid rgba(253, 224, 71, 0.4);
  background: rgba(0, 0, 0, 0.15);
  padding: 5px 10px;
  border-radius: 999px;
}
.social-pill svg { width: 12px; height: 12px; color: #fde047; }

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}
.trust-strip-inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
@media (min-width: 420px) {
  .trust-strip-inner { grid-template-columns: repeat(4, 1fr); }
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-item span.ok { color: var(--green-dark); font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 16px 20px;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:active { transform: scale(.99); }
.btn-cta {
  color: #14141f;
  padding: 15px 22px;
  border-radius: 999px;
  background: #ffc42a;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.45);
}
.btn-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.wrap { max-width: 480px; margin: 0 auto; padding: 0 12px 40px; }

footer.f {
  background: var(--wine-dark);
  color: #fecaca;
  padding: 32px 16px 16px;
  margin-top: 40px;
  font-size: 13px;
}
.f-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 640px) { .f-grid { grid-template-columns: 1fr 1fr 1fr; } }
.f h4 { color: #fde047; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.f a { color: #fff; text-decoration: none; display: block; margin-bottom: 8px; opacity: .9; }
.f a:hover { opacity: 1; text-decoration: underline; }
.copy-bar { background: #111; color: #9ca3af; text-align: center; padding: 10px; font-size: 11px; }

.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  background: #fff;
  min-height: 60vh;
}
.legal-page h1 { font-size: 1.75rem; margin: 0 0 24px; }
.legal-page h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal-page p { color: #4b5563; line-height: 1.6; margin: 0 0 12px; }
.legal-back { display: inline-block; margin-bottom: 20px; color: var(--green-dark); font-weight: 700; text-decoration: none; }

.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.checkout-overlay.is-open { display: flex; }
.checkout-modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 520px;
  height: 90vh;
  height: 90dvh;
  max-height: 760px;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.checkout-close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.checkout-iframe-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
}
.checkout-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.checkout-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}
.checkout-loading.hidden { display: none; }
.checkout-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: checkout-spin .75s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.checkout-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 24px;
  padding-top: max(48px, env(safe-area-inset-top, 0px));
  text-align: center;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-content: center;
}
.checkout-fallback.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .checkout-overlay {
    padding: 0;
    align-items: stretch;
  }
  .checkout-modal {
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
}
.checkout-fallback a {
  color: var(--green-dark);
  font-weight: 800;
}

.noscript-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}
