:root {
  --primary: #4f7895;
  --primary-foreground: #fffdfc;
  --destructive: #4f7895;
  --destructive-foreground: #fffdfc;
  --secondary: #dcebf4;
  --secondary-foreground: #365f79;
  --accent-foreground: #365f79;
  --ring: #78a9c4;
  --cta: #4f7895;
  --cta-foreground: #fffdfc;
  --cta-btn: #4f7895;
  --cta-btn-foreground: #fffdfc;
  --urgency: #4f7895;
  --urgency-foreground: #fffdfc;
  --terracotta: #4f7895;
  --rose-cream: #dcebf4;
  --soft-blue: #e3eff6;
  --solution-bg: #f2f8fb;
  --warning-foreground: #365f79;
  --wine: #4f7895;
  --upgrade-wine: #4f7895;
  --upgrade-wine-dark: #365f79;
  --upgrade-coral: #4f7895;
  --upgrade-cream: #fff8f0;
  --upgrade-gold: #c8942f;
  --upgrade-ink: #2b2024;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--upgrade-ink);
  background: #fffcf9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: clip;
}

main > section {
  padding-block: clamp(2.5rem, 5vw, 5.5rem) !important;
}

main > section:first-of-type {
  padding-top: clamp(2.75rem, 6vw, 6rem) !important;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.75rem) !important;
  line-height: 1.03 !important;
}

h2 {
  line-height: 1.12 !important;
}

p {
  text-wrap: pretty;
}

.rounded-2xl,
.rounded-xl {
  border-color: color-mix(in srgb, var(--upgrade-wine) 14%, transparent) !important;
}

.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl {
  box-shadow: 0 18px 44px -28px rgba(54, 95, 121, 0.38), 0 4px 14px rgba(54, 95, 121, 0.08) !important;
}

a[href*="pay.wiapy.com"] {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 32px -14px rgba(79, 120, 149, 0.72) !important;
  outline-offset: 4px;
}

a[href*="pay.wiapy.com"]:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--upgrade-gold) 68%, white);
  outline-offset: 4px;
}

button {
  min-height: 44px;
}

/* Controles do slideshow de avaliações: sempre circulares e proporcionais. */
.proof-dot-list {
  align-items: center;
  gap: clamp(0.55rem, 1.8vw, 0.8rem) !important;
  min-height: 1.5rem;
}

button.proof-dot {
  width: clamp(0.6rem, 1.8vw, 0.75rem) !important;
  height: clamp(0.6rem, 1.8vw, 0.75rem) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(79, 120, 149, 0.3) !important;
  transform: scale(1);
  transform-origin: center;
  cursor: pointer;
}

button.proof-dot[aria-current="true"] {
  background: #4f7895 !important;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(79, 120, 149, 0.14);
}

button[aria-label="Anterior"],
button[aria-label="Próximo"] {
  width: clamp(2.5rem, 8vw, 2.75rem) !important;
  height: clamp(2.5rem, 8vw, 2.75rem) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
}

#galeria img {
  transition: transform 240ms ease, box-shadow 240ms ease;
}

#galeria img:hover {
  transform: translateY(-4px);
}

#oferta {
  isolation: isolate;
}

#oferta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 148, 47, 0.13), transparent 28rem),
    linear-gradient(180deg, #fffdf9 0%, #fff8f0 100%);
}

#oferta .rounded-2xl {
  backdrop-filter: blur(8px);
}

footer {
  border-top: 1px solid rgba(79, 120, 149, 0.12);
  background: #fff8f0;
}

@media (min-width: 768px) {
  main > section > div {
    width: min(100%, 72rem);
  }

  #oferta .md\:col-span-3 {
    transform: translateY(-0.65rem);
  }
}

@media (max-width: 767px) {
  main > section {
    padding-inline: 1rem !important;
    padding-block: 2.75rem !important;
  }

  main > section:first-of-type {
    padding-top: 2.5rem !important;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  h2 {
    font-size: clamp(1.65rem, 7.6vw, 2.25rem) !important;
  }

  a[href*="pay.wiapy.com"] {
    width: 100% !important;
    padding-inline: 1.15rem !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
  }

  #oferta .rounded-2xl {
    border-radius: 1.35rem !important;
  }

  #oferta .text-5xl {
    font-size: 3.35rem !important;
  }

  .grid-cols-2 {
    gap: 0.75rem !important;
  }

  button {
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.native-faq-answer {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: #536a78;
}

.native-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(43, 32, 36, 0.74);
  backdrop-filter: blur(7px);
}

.native-modal-card {
  position: relative;
  width: min(100%, 30rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.75rem;
  border: 1px solid rgba(79, 120, 149, 0.16);
  border-radius: 1.5rem;
  background: #fffcf9;
  box-shadow: 0 30px 80px rgba(43, 32, 36, 0.32);
  text-align: center;
}

.native-modal-card h3 {
  margin: 0.65rem 0 1.15rem;
  color: var(--upgrade-wine);
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  line-height: 1.08;
}

.native-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.5rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #e3eff6;
  color: var(--upgrade-wine);
  font-size: 1.4rem;
  cursor: pointer;
}

.native-modal-kicker {
  margin: 0;
  color: var(--upgrade-coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.native-modal-copy {
  margin: -0.35rem 0 1rem;
  color: #536a78;
}

.native-price-box,
.native-coupon {
  margin: 1rem 0;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #edf5f9;
}

.native-price-box p { margin: 0; color: #536a78; }
.native-price-box strong { display: block; color: var(--upgrade-gold); font-size: 3.25rem; line-height: 1; }
.native-price-box span { display: inline-block; margin-top: 0.7rem; color: var(--upgrade-coral); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.native-modal-card ul { display: grid; gap: 0.65rem; margin: 1rem 0; padding: 0; list-style: none; text-align: left; }
.native-modal-card li { padding: 0.75rem; border-radius: 0.75rem; background: rgba(79, 120, 149, 0.1); font-weight: 650; }

.native-modal-primary,
.native-modal-secondary,
.native-text-button {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.native-modal-primary { border: 0; background: var(--upgrade-coral); color: white; }
.native-modal-secondary { border: 1px solid rgba(79, 120, 149, 0.2); color: #53656f; }
.native-text-button { border: 0; background: transparent; color: #536a78; }
.native-coupon { border: 2px dashed var(--upgrade-gold); }
.native-coupon small, .native-coupon strong { display: block; }
.native-coupon small { color: #8b6b2f; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.native-coupon strong { color: var(--upgrade-gold); font-size: 2rem; letter-spacing: 0.12em; }

.native-coupon-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #d7b35d, #f3d98a, #bd9135);
  color: var(--upgrade-wine);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Upsell do Plano Básico: usa :target para funcionar mesmo sem JavaScript. */
.basic-upsell-target {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
}

.basic-upsell-target:target { display: grid; }

.basic-upsell-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 37, 40, 0.68);
  backdrop-filter: blur(7px);
}

.basic-upsell-card {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.7rem 1.5rem;
  border-radius: 1rem;
  background: #fffdfb;
  box-shadow: 0 28px 75px rgba(36, 27, 31, 0.35);
  text-align: center;
}

.basic-upsell-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 999px;
  background: #f8f1e9;
  color: #365f79;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}

.basic-upsell-kicker {
  margin: 0;
  color: #4f7895;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.basic-upsell-kicker span { color: #78a9c4; margin-right: 0.45rem; }

.basic-upsell-card h2 {
  margin: 0.8rem 0 1.25rem;
  color: #426d89;
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.08;
}

.basic-upsell-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: #fbf7f2;
}

.basic-upsell-price p { margin: 0 0 0.35rem; color: #536a78; }
.basic-upsell-price s { color: #365f79; font-weight: 800; }
.basic-upsell-price > span { color: #4f7895; font-size: 0.78rem; font-weight: 900; }
.basic-upsell-price strong { color: #d2a13c; font-size: clamp(2.8rem, 12vw, 3.8rem); line-height: 1.1; text-shadow: 0 3px 4px rgba(100, 65, 15, 0.24); }
.basic-upsell-price b { margin-top: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 0.65rem; background: #dcebf4; color: #365f79; font-size: 0.76rem; letter-spacing: 0.06em; }

.basic-upsell-benefits {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.basic-upsell-benefits li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #eaf3f8;
  color: #281f22;
  font-size: 0.95rem;
  line-height: 1.45;
}

.basic-upsell-benefits span {
  display: grid;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: #4f7895;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.basic-upsell-primary,
.basic-upsell-secondary {
  display: block;
  width: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  text-align: center;
  text-decoration: none;
}

.basic-upsell-primary {
  background: #4f7895;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 9px 18px rgba(79, 120, 149, 0.28);
}

.basic-upsell-secondary {
  margin-top: 0.85rem;
  border: 1px solid #c9dce7;
  color: #536a78;
  font-size: 0.92rem;
  font-weight: 650;
}

@media (max-width: 480px) {
  .basic-upsell-card { padding: 1.5rem 1rem 1rem; }
  .basic-upsell-card h2 { margin-bottom: 1rem; }
  .basic-upsell-price { padding: 1rem 0.75rem; }
  .basic-upsell-benefits li { padding: 0.75rem; font-size: 0.9rem; }
}

/* Prévia contínua dos moldes abaixo do CTA principal. */
.hero-mold-carousel {
  width: 100vw;
  margin-top: 1.35rem;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.hero-mold-carousel::-webkit-scrollbar { display: none; }

.hero-mold-carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hero-molds-right 32s linear infinite;
  pointer-events: none;
  user-select: none;
}

.hero-mold-carousel-group {
  display: flex;
  flex: none;
  gap: clamp(0.65rem, 1.6vw, 1rem);
  padding-right: clamp(0.65rem, 1.6vw, 1rem);
}

.hero-mold-carousel img {
  display: block;
  flex: none;
  width: auto;
  height: clamp(12.5rem, 33vw, 21rem);
  border: 1px solid rgba(79, 120, 149, 0.16);
  border-radius: clamp(0.7rem, 2vw, 1.05rem);
  background: #fffaf4;
  box-shadow: 0 10px 24px rgba(54, 95, 121, 0.13);
  object-fit: cover;
}

@keyframes hero-molds-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 640px) {
  .hero-mold-carousel {
    margin-top: 1rem;
    mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  }

  .hero-mold-carousel-track { animation-duration: 25s; }
}
