/* ============================================================
   Design tokens — equivalentes hex dos tokens oklch originais
   ============================================================ */
:root {
  --radius: 1rem;

  --color-background: #fdf8ff;
  --color-foreground: #371057;
  --color-card: #ffffff;
  --color-card-foreground: #371057;

  --color-primary: #6817a1;
  --color-primary-foreground: #fcfcfc;
  --color-secondary: #f3e4ff;
  --color-secondary-foreground: #531182;
  --color-muted: #f4eafb;
  --color-muted-foreground: #67537d;
  --color-accent: #ffc31b;
  --color-accent-foreground: #4a2200;
  --color-success: #03a14a;
  --color-success-foreground: #fcfcfc;
  --color-destructive: #e62b34;
  --color-destructive-foreground: #fcfcfc;
  --color-border: #e4cdf6;

  --gradient-hero: linear-gradient(160deg, #f4e3ff, #fdf8ff);
  --gradient-cta: linear-gradient(135deg, #03a14a, #008c4f);
  --shadow-soft: 0 12px 40px -12px rgba(104, 23, 161, 0.3);
  --shadow-cta: 0 10px 30px -8px rgba(0, 139, 69, 0.6);

  --font-display: "Fredoka", sans-serif;
  --font-sans: "Nunito", sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--color-border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  height: auto; /* anula os atributos width/height do HTML (equivale ao preflight do Tailwind) */
  display: block;
}

main {
  overflow: hidden;
}

/* ============================================================
   Utilitários
   ============================================================ */
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-destructive { color: var(--color-destructive); }
.text-muted { color: var(--color-muted-foreground); }
.text-center { text-align: center; }
.line-through { text-decoration: line-through; color: var(--color-muted-foreground); }

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-xl { width: 4rem; height: 4rem; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-xs { max-width: 28rem; }
.container-sm { max-width: 48rem; }
.container-md { max-width: 64rem; }
.container-4xl { max-width: 56rem; }
.container-lg { max-width: 72rem; }

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-alt {
  background-color: var(--color-muted);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
}

.grid {
  display: grid;
  margin-top: 2.5rem;
}

.gap-5 { gap: 1.25rem; }
.gap-4 { gap: 1rem; }

/* ============================================================
   Componentes
   ============================================================ */
.topbar {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.badge-secondary {
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
}

.badge-accent {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}

.badge-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  border-radius: 9999px;
  padding: 1rem 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  background-image: var(--gradient-cta);
  color: var(--color-success-foreground);
  box-shadow: var(--shadow-cta);
  animation: pulse-cta 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.btn-cta:hover {
  transform: scale(1.03);
}

@keyframes pulse-cta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.cta-center {
  justify-content: center;
}

.card {
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card-success {
  border: 2px solid var(--color-success);
}

.card-left {
  text-align: left;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card h3:first-child {
  margin-top: 0;
}

.card p {
  margin-top: 0.5rem;
}

.card .list-item {
  margin-top: 0.75rem;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background-image: var(--gradient-hero);
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
}

.trust-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted-foreground);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   Antes e depois
   ============================================================ */
.list-item {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: flex-start;
}

.list-item .icon-md {
  margin-top: 0.125rem;
}

.text-destructive-icon .icon-md {
  color: var(--color-destructive);
}

/* ============================================================
   Bônus
   ============================================================ */
.bonus-card {
  padding: 1.25rem;
}

.bonus-img {
  width: 100%;
  aspect-ratio: 75 / 56;
  object-fit: contain;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
}

.bonus-label {
  margin-top: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
}

.bonus-card h3 {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.bonus-price {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.bonus-price .text-success {
  font-weight: 700;
}

/* ============================================================
   Oferta
   ============================================================ */
.offer-card {
  border-radius: 1.5rem;
  border: 2px solid var(--color-primary);
  background-color: var(--color-card);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.offer-title {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.offer-mockups {
  margin-top: 1.25rem;
}

.offer-main-mockup {
  width: 7.5rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.offer-bonus-thumbs {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.offer-bonus-thumbs img {
  width: 100%;
  aspect-ratio: 75 / 56;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
}

.offer-list {
  margin-top: 1.5rem;
  text-align: left;
  list-style: none;
}

.offer-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 600;
}

.offer-list li + li {
  margin-top: 0.75rem;
}

.offer-list .icon-md {
  margin-top: 0.125rem;
}

.offer-before {
  margin-top: 1.5rem;
  color: var(--color-muted-foreground);
}

.offer-price {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.offer-note {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.offer-clock {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   Garantia
   ============================================================ */
.guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.guarantee .lead {
  margin-top: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  padding: 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  list-style-position: inside;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ============================================================
   Animações de entrada (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-cta { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
  .hero-copy h1 { font-size: 3rem; }
  .btn-cta { font-size: 1.25rem; }

  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { text-align: left; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .trust-row { justify-content: flex-start; }
  .grid-2-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
