:root {
  --purple: #7b3fe4;
  --purple-dark: #5a26b8;
  --pink: #ff4fa3;
  --yellow: #ffc93c;
  --blue: #3fa9f5;
  --green: #35c06a;
  --red: #ff5a5f;
  --whats: #25d366;

  --bg: #fffaf2;
  --surface: #ffffff;
  --tint: #f4eeff;
  --ink: #2b2140;
  --muted: #6b6280;
  --line: #ece4f7;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(91, 38, 184, 0.12);
  --shadow-lg: 0 24px 60px rgba(91, 38, 184, 0.22);
  --font-title: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 0;
  font-weight: 800; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .icon-btn:focus-visible, .cart-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 6px 0 var(--purple-dark); }
.btn--primary:hover { box-shadow: 0 8px 0 var(--purple-dark); }
.btn--primary.is-added { background: var(--green); box-shadow: 0 6px 0 #239150; }
.btn--ghost { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn--light { background: #fff; color: var(--purple); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 6px 0 #1a9e4b; }
.btn--whats:disabled { background: #b8b2c4; box-shadow: none; cursor: not-allowed; transform: none; }
.btn--pay { background: #009ee3; color: #fff; box-shadow: 0 6px 0 #0077b0; }
.btn--pay:disabled { background: #b8b2c4; box-shadow: none; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.form-error { background: #ffe8e9; color: #c22a30; font-weight: 700; font-size: .9rem; padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; }
.field small { font-weight: 600; color: var(--muted); }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--tint); color: var(--ink); font-size: 1.1rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.logo__icon { font-size: 1.8rem; }
.logo b { color: var(--purple); }
.logo i { font-style: normal; color: var(--pink); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav a:hover { color: var(--purple); }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--yellow); border: 0; border-radius: 999px;
  padding: 10px 18px; font-weight: 800; color: var(--ink); text-decoration: none;
}
.cart-btn__count {
  background: var(--pink); color: #fff; border-radius: 999px;
  min-width: 24px; height: 24px; padding: 0 6px;
  display: grid; place-items: center; font-size: .8rem;
}
.cart-btn__count.is-empty { background: rgba(43,33,64,.25); }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(.95); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 201, 60, .35), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255, 79, 163, .22), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(63, 169, 245, .22), transparent 45%),
    var(--bg);
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-block; background: #fff; border: 2px dashed var(--pink); color: var(--pink);
  font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: .9rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
.rainbow {
  background: linear-gradient(90deg, var(--red), #ff9a3c, var(--yellow) 40%, var(--green), var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .95rem; }
.hero__facts b { color: var(--purple); }

.hero__art { position: relative; height: 480px; }
.sheet {
  position: absolute; width: 58%; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.sheet--back  { left: 2%;  top: 40px; transform: rotate(-9deg); }
.sheet--mid   { right: 0;  top: 30px; transform: rotate(8deg); }
.sheet--front { left: 21%; top: 0;    transform: rotate(-1deg); z-index: 2; }
.sticker { position: absolute; font-size: 2.6rem; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); animation: float 4s ease-in-out infinite; }
.sticker--1 { top: -10px; right: 12%; }
.sticker--2 { bottom: 40px; left: 0; animation-delay: -1.3s; }
.sticker--3 { bottom: 10px; right: 6%; animation-delay: -2.6s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }

.bunting {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background:
    conic-gradient(from 150deg at 50% 0, var(--red) 0 60deg, transparent 0) 0 0/240px 34px,
    conic-gradient(from 150deg at 50% 0, var(--yellow) 0 60deg, transparent 0) 40px 0/240px 34px,
    conic-gradient(from 150deg at 50% 0, var(--green) 0 60deg, transparent 0) 80px 0/240px 34px,
    conic-gradient(from 150deg at 50% 0, var(--blue) 0 60deg, transparent 0) 120px 0/240px 34px,
    conic-gradient(from 150deg at 50% 0, var(--purple) 0 60deg, transparent 0) 160px 0/240px 34px,
    conic-gradient(from 150deg at 50% 0, var(--pink) 0 60deg, transparent 0) 200px 0/240px 34px;
  background-repeat: repeat-x;
  opacity: .9;
}

/* ---------- seções ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); }
.kicker {
  display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; color: var(--pink); margin-bottom: 8px;
}
.kicker--light { color: var(--yellow); }

/* ---------- produtos ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 32px; }
.product {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 8px solid var(--accent); overflow: hidden; display: flex; flex-direction: column;
}
.product__gallery {
  position: relative; border: 0; padding: 28px 28px 0; background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 7%, #fff) 0 12px, #fff 12px 24px);
  display: block; width: 100%;
}
.product__gallery img {
  width: 62%; margin: 0 auto; border-radius: 10px; border: 5px solid #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.15); transform: rotate(-2deg) translateY(10px);
  transition: transform .25s ease;
}
.product__gallery:hover img { transform: rotate(0) translateY(0) scale(1.02); }
.product__badge {
  position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px;
}
.product__peek {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(43,33,64,.85); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.product__gallery:hover .product__peek, .product__gallery:focus-visible .product__peek { opacity: 1; }
.product__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 28px 0; }
.product__thumbs button { border: 2px solid var(--line); border-radius: 8px; padding: 0; overflow: hidden; background: #fff; aspect-ratio: 3/4; transition: border-color .15s; }
.product__thumbs button:hover { border-color: var(--accent); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product__body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product__sub { color: var(--muted); }
.product__meta { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.product__meta li { background: var(--tint); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .88rem; }
.product__topics { list-style: none; padding: 0; margin: 0 0 24px; columns: 2; column-gap: 16px; font-size: .95rem; }
.product__topics li { padding-left: 22px; position: relative; margin-bottom: 4px; break-inside: avoid; }
.product__topics li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.product__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price s { display: block; color: var(--muted); font-size: .9rem; }
.price strong { font-family: var(--font-title); font-size: 2rem; color: var(--ink); line-height: 1; }

.combo {
  margin-top: 40px; border-radius: var(--radius); padding: 32px 36px; color: #fff;
  background: linear-gradient(120deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.combo h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 6px 0; }
.combo p { margin: 0; opacity: .95; }
.combo s { opacity: .75; }
.combo strong { font-size: 1.3rem; }
.combo__tag { background: rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .85rem; }

/* ---------- passos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin: 0; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  font-family: var(--font-title); font-size: 1.6rem; font-weight: 800; color: #fff;
}
.step:nth-child(1) .step__num { background: var(--red); }
.step:nth-child(2) .step__num { background: var(--yellow); color: var(--ink); }
.step:nth-child(3) .step__num { background: var(--green); }
.step:nth-child(4) .step__num { background: var(--blue); }

/* ---------- benefícios ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.benefit span { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.benefit p { color: var(--muted); margin: 0; }

/* ---------- instagram ---------- */
.section--insta {
  background: linear-gradient(120deg, #833ab4, #fd1d1d 60%, #fcb045);
  color: #fff; padding: 64px 0;
}
.insta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.insta h2 { margin-bottom: 6px; word-break: break-word; }
.insta p { margin: 0; opacity: .92; max-width: 36em; }

/* ---------- faq ---------- */
.faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 800; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--purple);
  display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- rodapé ---------- */
.footer { background: var(--ink); color: #d9d2e8; padding: 48px 0 96px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.logo--footer { color: #fff; margin-bottom: 12px; }
.logo--footer b { color: var(--yellow); }
.footer a { color: #fff; font-weight: 700; }
.footer__copy { font-size: .85rem; opacity: .7; margin: 0; }

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whats); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- carrinho ---------- */
.overlay { position: fixed; inset: 0; background: rgba(43, 33, 64, .45); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #fff; }
.drawer__line { display: flex; justify-content: space-between; color: var(--green); font-weight: 700; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 16px; font-weight: 800; }
.drawer__total strong { font-family: var(--font-title); font-size: 1.8rem; }
.drawer__note { font-size: .82rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.field input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit;
  background: var(--bg);
}
.field input:focus { outline: none; border-color: var(--purple); }

.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 56px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.line__info strong { display: block; line-height: 1.25; }
.line__info span { font-size: .85rem; color: var(--muted); }
.line__price { text-align: right; font-weight: 800; }
.line__price button { display: block; margin-left: auto; background: none; border: 0; color: var(--red); font-size: .8rem; font-weight: 700; padding: 2px 0; text-decoration: underline; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.empty span { font-size: 3rem; }

/* ---------- galeria ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(20, 14, 32, .9);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-width: min(560px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 700; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__nav { font-size: 1.8rem; flex: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 150%); opacity: 0;
  background: var(--ink); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .3s ease, opacity .3s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- página do pedido ---------- */
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 32px; text-align: center; border-top: 8px solid var(--yellow); }
.order-card[data-status="paid"] { border-top-color: var(--green); }
.order-card[data-status="rejected"], .order-card[data-status="refunded"], .order-card[data-status="amount_mismatch"] { border-top-color: var(--red); }
.order-card__icon { font-size: 3.5rem; line-height: 1; margin-bottom: 12px; }
.order-card h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.order-card__msg { color: var(--muted); font-size: 1.05rem; }
.order-card__downloads { display: grid; gap: 12px; margin: 24px 0; }
.order-card__summary { font-size: .9rem; color: var(--muted); }
.order-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 560px) { .order-card { padding: 32px 20px; } .order-card__actions .btn { width: 100%; } }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 380px; max-width: 460px; margin: 0 auto; width: 100%; }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .logo { font-size: 1.05rem; }
  .logo__icon { font-size: 1.5rem; }
  .cart-btn__label { display: none; }
  .hero__art { height: 300px; }
  .product__gallery, .product__thumbs, .product__body { padding-left: 18px; padding-right: 18px; }
  .product__topics { columns: 1; }
  .product__buy .btn { width: 100%; }
  .combo { padding: 26px 22px; }
  .combo .btn { width: 100%; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: 25%; }
  .lightbox__nav--next { right: 25%; }
  .lightbox img { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
