:root {
  --blue: #1e3a8a;
  --blue-dark: #142a66;
  --blue-darker: #0f1f4d;
  --gold: #f0b429;
  --gold-dark: #c4870f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebc59;
  --ink: #0f1f4d;
  --green-br: #17a24a;
  --badge-a: #2ecc71;
  --badge-b: var(--green-br);
  --hiper-blue: #1f70b8;
  --hiper-blue-light: #4b96d6;
  --hiper-orange: #f2911e;
}

/* Lotofácil theme — official game color is purple */
body.theme-lotofacil {
  --blue: #7a1fa2;
  --blue-dark: #5c1780;
  --blue-darker: #3e0f5c;
  --ink: #3e0f5c;
  --badge-a: #c026d3;
  --badge-b: #7a1fa2;
}

body.theme-lotofacil .prize-box {
  border-color: rgba(224, 130, 255, 0.55);
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
}

body.theme-lotofacil .countdown .unit {
  background: rgba(0,0,0,0.32);
}

/* HiperXCap theme — brand blue + orange */
body.theme-hiper {
  --blue: var(--hiper-blue);
  --blue-dark: #175a92;
  --blue-darker: #0f3d66;
  --ink: #0f3d66;
  --badge-a: var(--hiper-orange);
  --badge-b: #c96e0f;
}

body.theme-hiper .btn-primary,
body.theme-hiper .sticky-cta a {
  color: #fff;
  background: linear-gradient(180deg, #ffb15e, var(--hiper-orange) 60%, #c96e0f);
  box-shadow: 0 8px 24px rgba(242,145,30,0.45);
  animation: pulseOrange 2.2s ease-in-out infinite;
}

body.theme-hiper .step-num {
  background: var(--hiper-orange);
  color: #fff;
}

.logo-chip {
  background: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  animation: floatBob 3.6s ease-in-out infinite;
}
.logo-hiper { width: 150px; height: auto; display: block; }

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Benefit cards (3-up, used on single-product LPs) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.benefit-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15,31,77,0.16);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hiper-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.benefit-icon svg { width: 20px; height: 20px; }

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--ink);
}

.benefit-card p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(15,31,77,0.68);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

@keyframes pulseOrange {
  0%, 100% { box-shadow: 0 8px 24px rgba(242,145,30,0.45); }
  50% { box-shadow: 0 8px 32px rgba(242,145,30,0.75); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--blue);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 40px, transparent 41px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 40px, transparent 41px),
    radial-gradient(circle at 75% 25%, rgba(0,0,0,0.08) 0, rgba(0,0,0,0.08) 40px, transparent 41px),
    radial-gradient(circle at 25% 75%, rgba(0,0,0,0.08) 0, rgba(0,0,0,0.08) 40px, transparent 41px);
  background-size: 160px 160px;
  background-repeat: repeat;
  color: #fff;
  padding-bottom: 90px;
  overflow-x: hidden;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: rgba(0,0,0,0.18);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
}
.trust-bar strong { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 20px 12px;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.6s ease forwards;
}

.logo-anita { width: 170px; height: auto; }
.logo-caixa { width: 170px; height: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--badge-a), var(--badge-b));
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeDown 0.6s ease forwards;
  animation-delay: 0.1s;
}

h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.15s;
}

h1 span { color: var(--gold); }

p.subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.25s;
}

/* ---------- Prize box (lotofacil variant) ---------- */
.prize-box {
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(240,180,41,0.5);
  border-radius: 18px;
  padding: 22px 20px;
  margin: 0 auto 28px;
  max-width: 420px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.prize-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 4px;
}

.prize-value {
  font-size: clamp(1.3rem, 7.5vw, 2.1rem);
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.countdown .unit {
  background: rgba(0,0,0,0.28);
  border-radius: 10px;
  padding: 8px 6px;
  min-width: 58px;
}

.countdown .num {
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: block;
}

.countdown .lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

.draw-date {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.draw-date strong { color: #fff; }

/* ---------- CTA ---------- */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.35s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 19px 36px;
  font-size: 1.2rem;
  color: var(--ink);
  background: linear-gradient(180deg, #ffd75e, var(--gold) 60%, var(--gold-dark));
  box-shadow: 0 8px 24px rgba(240,180,41,0.45);
  width: 100%;
  max-width: 380px;
  animation: pulse 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.btn-primary svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-primary:hover { transform: translateY(-3px) scale(1.03); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shine 3.4s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -60%; }
  35% { left: 120%; }
  100% { left: 120%; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(240,180,41,0.45); }
  50% { box-shadow: 0 8px 32px rgba(240,180,41,0.75); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  to { opacity: 1; transform: translateY(0); }
}

.cta-microcopy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cta-microcopy svg { width: 14px; height: 14px; }

/* ---------- How it works ---------- */
.steps {
  max-width: 640px;
  margin: 44px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 10px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 auto 10px;
}

.step p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ---------- Footer trust ---------- */
.footer-trust {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 20px 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-trust p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--whatsapp), var(--whatsapp-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  text-decoration: none;
  z-index: 20;
  animation: bounceIn 0.6s ease 1.2s both;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--blue-darker);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px;
  z-index: 15;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.show { transform: translateY(0); }

.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 13px;
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(180deg, #ffd75e, var(--gold) 60%, var(--gold-dark));
}

@media (min-width: 641px) {
  .sticky-cta { display: none; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  body { padding-bottom: 82px; }
  .countdown .unit { min-width: 50px; padding: 7px 4px; }
  .prize-box { padding: 22px 8px; }
}

/* ================= Home page (institutional) ================= */
body.page-home {
  background-color: #ffffff;
  background-image: none;
  color: var(--ink);
}

.hero-band {
  background: linear-gradient(160deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 40px 20px 36px;
}
.hero-band .hero { padding: 0; }

.band { padding: 60px 20px; }
.band-white { background: #ffffff; }
.band-tint { background: #f4f7fd; }
.band-blue { background: var(--blue); color: #fff; }
.band-navy { background: var(--blue-darker); color: rgba(255,255,255,0.7); }

.section-inner { max-width: 640px; margin: 0 auto; }

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-align: center;
  color: var(--ink);
}
.band-blue .section-title, .band-navy .section-title { color: #fff; }

.section-text {
  color: rgba(15,31,77,0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.band-blue .section-text { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.band-blue .eyebrow { color: var(--gold); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.offer-card {
  background: #fff;
  border-radius: 16px;
  border-top: 5px solid transparent;
  padding: 28px 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 14px 30px rgba(15,31,77,0.18);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.offer-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.offer-card.accent-gold { border-top-color: var(--gold); }
.offer-card.accent-hiper { border-top-color: var(--hiper-blue); }

.offer-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.offer-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.offer-card p {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: rgba(15,31,77,0.68);
  line-height: 1.55;
  flex: 1;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.82rem;
}

.btn-small.gold {
  color: var(--ink);
  background: linear-gradient(180deg, #ffd75e, var(--gold) 60%, var(--gold-dark));
}

.btn-small.hiper {
  color: #fff;
  background: linear-gradient(180deg, var(--hiper-blue-light), var(--hiper-blue));
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.trust-card {
  background: #f4f7fd;
  border: 1px solid rgba(15,31,77,0.08);
  border-radius: 16px;
  padding: 22px 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.trust-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--ink);
}
.trust-card h3 svg { width: 18px; height: 18px; color: var(--hiper-orange); flex-shrink: 0; }

.trust-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15,31,77,0.72);
  line-height: 1.6;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.status-badge .status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.open { background: rgba(23,162,74,0.14); color: var(--green-br); }
.status-badge.closed { background: rgba(15,31,77,0.08); color: rgba(15,31,77,0.5); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.hours-table td {
  padding: 5px 2px;
  color: rgba(15,31,77,0.68);
}
.hours-table td:last-child { text-align: right; }
.hours-table tr.today td { color: var(--gold-dark); font-weight: 700; }

.band-navy .footer-trust { margin-top: 0; padding-top: 0; border-top: none; }

@media (max-width: 640px) {
  .band { padding: 44px 18px; }
  .offer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
