/* Identidade Vagaí: azul #13235B · laranja #FF6B2C · Bricolage Grotesque */
:root {
  --azul: #13235B;
  --azul-2: #1D3280;
  --azul-escuro: #0B1640;
  --laranja: #FF6B2C;
  --laranja-hover: #F0571A;
  --laranja-suave: #FFE8DD;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --border: rgba(19, 35, 91, .09);
  --text: #1B2240;
  --muted: #5E6685;
  --ok: #12A574;
  --bad: #E5484D;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(19,35,91,.04), 0 12px 32px rgba(19,35,91,.07);
  --display: 'Bricolage Grotesque', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 76px; /* espaço da barra fixa no mobile */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; color: var(--azul); letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.75rem; font-weight: 800; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; font-weight: 800; }
strong { color: var(--azul); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Logo Vagaí (mesma construção do arquivo da marca, em em) */
.logo, .book__brand {
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 800; line-height: 1;
  letter-spacing: -.036em; color: var(--azul);
}
.logo { font-size: 30px; padding-top: 4px; }
.logo__acento {
  position: absolute; right: .036em; top: -.06em;
  width: .179em; height: .321em; border-radius: .09em;
  background: var(--laranja); transform: rotate(32deg);
}

/* Botões: laranja reservado só para ação de compra */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--laranja); color: #fff; font-weight: 700; font-family: inherit;
  border-radius: 999px; padding: .75rem 1.3rem; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(255, 107, 44, .35), inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--laranja-hover); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 107, 44, .45), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn--block { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.tag {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface); color: var(--azul);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 4px var(--laranja-suave); }
.tag--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); box-shadow: none; }
.tag--light::before { box-shadow: 0 0 0 4px rgba(255,107,44,.25); }
.micro { font-size: .85rem; color: var(--muted); margin-top: .85rem; }
.micro--light { color: #B7BEDA; }

/* Topbar com vidro */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 245, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }

/* Hero */
.hero {
  position: relative; padding: 56px 0 32px;
  /* brilhos em gradiente (sem filter: blur, que gerava recortes retangulares) */
  background:
    radial-gradient(600px circle at 95% 0%, rgba(255, 107, 44, .14), transparent 70%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hl { color: var(--laranja); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 1.25rem 0 1.5rem; max-width: 560px; }

.checks { list-style: none; margin-bottom: 1.75rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: .15rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 165, 116, .12); color: var(--ok); font-size: .75rem; font-weight: 800;
}
.checks--big li { font-size: 1.08rem; margin-bottom: 1rem; }

/* Mockup do e-book */
.hero__mock { display: flex; justify-content: center; perspective: 1400px; }
.book { width: 240px; aspect-ratio: 3 / 4.2; transform: rotateY(-20deg) rotateX(6deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotateY(-20deg) rotateX(6deg) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .book { animation: none; } }
.book__cover {
  position: relative; overflow: hidden;
  width: 100%; height: 100%; border-radius: 6px 16px 16px 6px;
  background: radial-gradient(120% 70% at 100% 0%, var(--azul-2) 0%, var(--azul) 50%, var(--azul-escuro) 100%);
  box-shadow: inset 8px 0 0 rgba(255,255,255,.08), 30px 40px 70px rgba(19, 35, 91, .35);
  color: #fff; padding: 26px 22px; display: flex; flex-direction: column;
}
.book__cover::after {
  content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: var(--laranja); opacity: .9; right: -90px; bottom: -70px;
}
.book__brand { color: #fff; font-size: 26px; align-self: flex-start; margin-bottom: 22px; }
.book__kicker { font-size: .68rem; letter-spacing: .22em; color: var(--laranja); font-weight: 700; }
.book__title { font-family: var(--display); font-size: 2.15rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 10px 0 8px; }
.book__sub { font-size: .85rem; color: #B7BEDA; }
.book__lines { margin-top: auto; display: grid; gap: 8px; position: relative; z-index: 1; }
.book__lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.16); width: 70%; }
.book__lines i:nth-child(2) { width: 52%; }
.book__lines i:nth-child(3) { width: 36%; }

/* Faixa de logos em movimento */
.logos { background: var(--bg); padding: 48px 0 56px; overflow: hidden; }
.logos__title { text-align: center; color: var(--muted); font-weight: 500; font-size: 1rem; margin: 0 16px 36px; }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 110px; padding-right: 110px; flex: none; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 24px; width: auto; flex: none;
  filter: brightness(0); opacity: .35; transition: opacity .2s;
}
.marquee__track img:hover { opacity: .7; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Seções */
.section { padding: 72px 0; position: relative; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.pains { display: grid; gap: 12px; }
.pain {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 18px 20px; border-radius: var(--radius); color: var(--muted);
  border-left: 3px solid var(--laranja);
}
.bridge { margin-top: 2.25rem; font-size: 1.15rem; color: var(--muted); }

/* Cards estilo bento */
.cards { display: grid; gap: 14px; }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(255, 107, 44, .45); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--azul); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1rem;
}
.card:nth-child(1) .card__n, .card:nth-child(6) .card__n { background: var(--laranja); }
.card p { color: var(--muted); font-size: .95rem; }

.compare { display: grid; gap: 14px; }
.compare__col { border-radius: var(--radius); padding: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.compare__col--bad { opacity: .85; }
.compare__col--good { border: 2px solid var(--ok); }
.compare__col--bad h3 { color: var(--bad); }
.compare__col--good h3 { color: var(--ok); }
.compare__col p { font-style: italic; color: var(--muted); }

/* Oferta: bloco azul da marca */
.offer {
  position: relative; text-align: center; overflow: hidden;
  background: radial-gradient(500px circle at 100% 0%, rgba(255, 107, 44, .28), transparent 65%), var(--azul); color: #fff; border-radius: 28px; padding: 44px 24px;
  box-shadow: 0 30px 70px rgba(19, 35, 91, .3);
}
.offer h2 { color: #fff; margin-bottom: 1rem; }
.offer strong { color: #fff; }
.offer .checks { display: inline-block; text-align: left; }
.offer .checks li::before { background: rgba(255,255,255,.12); color: #fff; }
.price { display: flex; flex-direction: column; align-items: center; margin: .5rem 0 1.75rem; }
.price__label { color: #B7BEDA; font-size: .95rem; }
.price__value { font-family: var(--display); font-size: 5rem; font-weight: 800; line-height: 1; margin: .35rem 0; letter-spacing: -.04em; }
.price__value small { font-size: 1.4rem; vertical-align: top; margin-right: 4px; color: #B7BEDA; letter-spacing: 0; }
.price__value sup { font-size: 1.9rem; }

.guarantee {
  display: flex; gap: 18px; align-items: center; margin-top: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 20px;
}
.guarantee p { color: var(--muted); }
.guarantee__seal {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(18, 165, 116, .1); color: var(--ok);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1;
}
.guarantee__seal small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }

/* FAQ */
details { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; transition: border-color .2s; }
details[open] { border-color: rgba(255, 107, 44, .5); }
summary { cursor: pointer; font-weight: 600; padding: 18px 20px; list-style: none; position: relative; padding-right: 52px; color: var(--azul); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--laranja-suave); color: var(--laranja); font-size: 1.1rem; line-height: 1;
}
details[open] summary::after { content: '−'; }
details p { padding: 0 20px 18px; color: var(--muted); }

/* Chamada final */
.final { background: radial-gradient(600px circle at 50% 120%, rgba(255, 107, 44, .3), transparent 65%), var(--azul); color: #fff; padding: 88px 0; }
.final h2 { color: #fff; margin-bottom: 1.5rem; }

.footer { background: var(--azul-escuro); color: #B7BEDA; padding: 28px 0; text-align: center; font-size: .88rem; }
.footer__small { font-size: .78rem; opacity: .7; margin-top: .4rem; }

/* Barra fixa (mobile) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); padding: 12px 16px; color: var(--muted);
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 22, 64, .55); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; background: var(--surface); border-radius: 24px; padding: 32px 24px;
  width: 100%; max-width: 420px; box-shadow: 0 30px 80px rgba(11, 22, 64, .35);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
}
.modal__close { position: absolute; top: 10px; right: 16px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.modal form { margin-top: 1.1rem; display: grid; gap: 12px; }
.modal form[hidden] { display: none; }
.modal label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--azul); }
.modal input {
  font: inherit; color: var(--text); background: var(--bg);
  padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 12px;
}
.modal input:focus { outline: none; border-color: var(--laranja); box-shadow: 0 0 0 3px var(--laranja-suave); }
.form-msg { color: var(--bad); font-size: .9rem; min-height: 1.2em; }
.modal label small { font-weight: 400; color: var(--muted); }
.modal h3 { margin-bottom: .25rem; }

/* Etapas do checkout */
.steps { list-style: none; display: flex; gap: 8px; margin: 0 32px 18px 0; }
.steps__item {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-bottom: 10px; border-bottom: 3px solid var(--border);
}
.steps__item span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--border); color: var(--muted); font-size: .75rem;
}
.steps__item.is-active { color: var(--azul); border-color: var(--laranja); }
.steps__item.is-active span { background: var(--laranja); color: #fff; }
.steps__item.is-done { color: var(--azul); border-color: var(--azul); }
.steps__item.is-done span { background: var(--azul); color: #fff; }

.resumo {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 18px; font-size: .92rem;
}
.resumo strong { font-family: var(--display); color: var(--azul); font-size: 1.15rem; }

/* Escolha Pix / cartão */
.metodos { display: grid; gap: 10px; margin-top: .5rem; }
.metodo { cursor: pointer; display: block !important; }
.metodo input { position: absolute; opacity: 0; pointer-events: none; }
.metodo__box {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--border); border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.metodo:hover .metodo__box { border-color: rgba(19, 35, 91, .25); }
.metodo input:checked + .metodo__box { border-color: var(--laranja); background: #FFF6F1; }
.metodo input:focus-visible + .metodo__box { outline: 3px solid var(--azul); outline-offset: 2px; }
.metodo__icone {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg); color: var(--azul);
}
.metodo input:checked + .metodo__box .metodo__icone { background: var(--laranja); color: #fff; }
.metodo__icone svg { width: 22px; height: 22px; }
.metodo__texto { display: grid; }
.metodo__texto strong { font-size: 1rem; }
.metodo__texto small { color: var(--muted); font-weight: 400; font-size: .85rem; }

.aviso-c6 {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: .86rem; color: var(--muted); line-height: 1.5;
}
.aviso-c6::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aviso-c6 strong { color: var(--azul); }
.link-voltar {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: .88rem;
  color: var(--muted); text-decoration: underline; padding: 4px; justify-self: center;
}
.link-voltar:hover { color: var(--azul); }

/* Desktop */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero { padding: 96px 0 72px; }
  .hero__grid { grid-template-columns: 1.25fr .75fr; }
  .book { width: 300px; }
  .book__brand { font-size: 32px; }
  .pains { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card:nth-child(1), .cards .card:nth-child(4), .cards .card:nth-child(6) { grid-column: span 2; } /* bento */
  .compare { grid-template-columns: 1fr 1fr; }
  .offer { padding: 60px 48px; }
  .section { padding: 96px 0; }
  .final { padding: 112px 0; }
}

/* ---------- Coluna preta do Pix ---------- */
.modal__box.com-pix { max-width: 420px; padding: 0; display: grid; overflow-y: auto; }
.modal__box.com-pix .checkout__main { padding: 32px 24px; }
.pix-painel {
  background: #0A0A0A; color: #fff; padding: 28px 24px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pix-painel[hidden] { display: none; }
.pix-painel__titulo { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.pix-painel__valor { color: #9CA3AF; font-size: .95rem; margin: 2px 0 20px; }

.pix-qr {
  position: relative; width: 210px; height: 210px; border-radius: 20px;
  display: grid; place-items: center; background: #151515; transition: background .3s;
}
.pix-qr__molde { width: 62%; height: 62%; fill: #D9DDE3; opacity: .9; transition: opacity .3s, transform .3s; }
.pix-qr__codigo {
  position: absolute; inset: 0; padding: 14px; border-radius: 20px; background: #fff;
  opacity: 0; transform: scale(.94); transition: opacity .35s, transform .35s;
}
.pix-qr__codigo svg { width: 100%; height: 100%; display: block; }
.pix-qr__ok {
  position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center;
  background: rgba(10, 10, 10, .82); color: #34D399; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.pix-qr__ok svg { width: 72px; height: 72px; }
.pix-qr[data-estado="carregando"] .pix-qr__molde { opacity: .35; animation: pulsar 1.1s ease-in-out infinite; }
.pix-qr[data-estado="gerado"] .pix-qr__molde,
.pix-qr[data-estado="pago"] .pix-qr__molde { opacity: 0; transform: scale(.9); }
.pix-qr[data-estado="gerado"] .pix-qr__codigo,
.pix-qr[data-estado="pago"] .pix-qr__codigo { opacity: 1; transform: none; }
.pix-qr[data-estado="pago"] .pix-qr__ok { opacity: 1; }
@keyframes pulsar { 50% { opacity: .15; } }

.pix-copiar {
  margin-top: 18px; width: 100%; max-width: 260px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #0A0A0A; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; padding: .8rem 1.2rem; transition: transform .15s, opacity .15s;
}
.pix-copiar svg { width: 18px; height: 18px; }
.pix-copiar:hover:not(:disabled) { transform: translateY(-2px); }
.pix-copiar:disabled { opacity: .3; cursor: not-allowed; }
.pix-copiar.copiado { background: #34D399; }
.pix-copiar:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; }

.pix-status { margin-top: 14px; font-size: .86rem; color: #9CA3AF; min-height: 2.6em; max-width: 280px; line-height: 1.5; }
.pix-status strong { color: #fff; }
.pix-status.aguardando::before {
  content: ''; display: inline-block; vertical-align: middle; margin: -2px 8px 0 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--laranja);
  animation: pulsar 1.1s ease-in-out infinite;
}
.pix-status.pago { color: #34D399; font-weight: 600; }

.pix-passos {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  list-style: none; counter-reset: passo; text-align: left; display: grid; gap: 10px; width: 100%; max-width: 280px;
}
.pix-passos li { counter-increment: passo; position: relative; padding-left: 30px; font-size: .84rem; color: #9CA3AF; line-height: 1.45; }
.pix-passos li::before {
  content: counter(passo); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-size: .72rem; font-weight: 700;
}
.pix-passos strong { color: #fff; }

/* Desktop: coluna preta ao lado */
@media (min-width: 820px) {
  .modal__box.com-pix { max-width: 780px; grid-template-columns: 1fr 340px; }
  .modal__box.com-pix .pix-painel { justify-content: center; padding: 36px 28px; }
  .modal__box.com-pix .modal__close { color: #fff; z-index: 2; }
}

/* Logo do Pix: cor oficial #32BCAD */
.metodo input[value="pix"] + .metodo__box .metodo__icone { color: #32BCAD; }
.metodo input[value="pix"]:checked + .metodo__box .metodo__icone { background: #32BCAD; color: #fff; }
.pix-painel__titulo { display: inline-flex; align-items: center; gap: 10px; }
.pix-logo { width: 22px; height: 22px; color: #32BCAD; }
