/* =========================================================
   JB Treinamentos — página de vendas (estrutura mobile-first)
   Vermelho, amarelo e verde de Natal, botões grandes,
   cards brancos e barra de compra fixa no rodapé.
   ========================================================= */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --yellow: #f2b705;
  --yellow-dark: #b88a00;
  --green: #1f7a3a;
  --cream: #fdf6ec;
  --white: #ffffff;
  --ink: #2b2522;
  --muted: #6b625c;
  --line: #ece2d4;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--font); padding-bottom: 96px; -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: inherit }
button { font: inherit; cursor: pointer }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px }
.col { width: min(640px, calc(100% - 36px)); margin: auto }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.5px; text-wrap: balance }
h2 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; text-align: center }
p { margin: 0 }
.lead { margin: 14px auto 34px; max-width: 520px; text-align: center; font-size: 18px; color: var(--muted) }

/* faixa verde */
.strip { padding: 11px 16px; background: var(--green); color: #fff; text-align: center; font-size: 14.5px; font-weight: 500 }

/* botão amarelo "3D" */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 64px; padding: 16px 24px;
  border: 0; border-radius: 18px;
  background: var(--yellow); color: #2b1d00;
  font: 800 19px/1.2 var(--font); text-decoration: none; text-align: center;
  box-shadow: 0 7px 0 var(--yellow-dark);
  transition: transform .12s, box-shadow .12s;
  animation: pulse 2.4s ease-in-out 1.5s infinite;
}
.btn:hover { filter: brightness(1.04) }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--yellow-dark) }
@keyframes pulse { 0%, 100% { scale: 1 } 50% { scale: 1.025 } }
.btn-outline { background: #fff; color: var(--red); box-shadow: 0 7px 0 #e6d7c4; border: 2px solid var(--red); animation: none }
.btn-sm { width: auto; min-height: 54px; padding: 12px 24px; font-size: 16px; border-radius: 14px; box-shadow: 0 6px 0 var(--yellow-dark); animation: none }

/* topo */
.hero { background: radial-gradient(ellipse at 50% 0%, #de1b3a, var(--red) 55%, var(--red-dark)); color: #fff; text-align: center; padding: 34px 0 54px; overflow: hidden }
.pill { display: inline-block; padding: 8px 18px; border: 1.5px solid #ffffff66; border-radius: 99px; background: #ffffff1a; font-size: 14.5px; font-weight: 700 }
h1 { margin-top: 24px; font-size: clamp(38px, 10vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -1.5px }
h1 span { display: block; color: var(--yellow) }
.hero-sub { margin: 22px auto 0; max-width: 520px; font-size: 18px; color: #fde8ea }
.hero-sub b { color: #fff }
.price-intro { margin-top: 28px; font-size: 17px; color: #fde8ea }
.price-big { font-size: clamp(62px, 17vw, 88px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; color: var(--yellow) }
.price-note { font-size: 15.5px; color: #fde8ea }

/* cronômetro */
.timer {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 26px; padding: 16px 18px;
  border: 1.5px solid #ffffff59; border-radius: 18px;
  background: #ffffff1a; text-align: left;
}
.timer-icon { font-size: 30px; line-height: 1 }
.timer div { flex: 1; min-width: 0 }
.timer b { display: block; font-size: 15.5px; line-height: 1.3 }
.timer small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; opacity: .9 }
.timer-clock { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.5px }
.timer-light { background: var(--cream); border-color: #eedfc2; color: var(--ink) }
.timer-light .timer-clock { color: var(--red) }

.secure { margin-top: 18px; font-size: 14px; color: #fde8ea }
.secure.dark { color: var(--muted); text-align: center }
.ticks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 16px; font-weight: 700 }
.peek { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 17px; text-underline-offset: 6px }

/* capa do material */
.mock { position: relative; width: min(330px, 82%); margin: 44px auto 0; aspect-ratio: 3 / 4 }
.mock-back { position: absolute; inset: 0; background: #fff; border-radius: 4px; transform: rotate(5deg) translate(12px, -6px); opacity: .85 }
.cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 20px 18px;
  background: #fff; color: var(--ink); border-radius: 4px;
  box-shadow: 18px 22px 0 #00000026, 0 24px 50px #00000040;
  transform: rotate(-3deg);
}
.cover small { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); width: 70% }
.cover strong { margin-top: 12px; font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: -.5px }
.cover span { margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted) }
.cover img { width: 100%; flex: 1; min-height: 0; margin-top: 12px; object-fit: cover; border-radius: 4px }
.cover em { margin-top: 10px; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green) }
.badge {
  position: absolute; right: -26px; bottom: 34px;
  display: grid; place-content: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--yellow); color: var(--red-dark);
  border: 5px solid #fff; box-shadow: 0 12px 24px #00000040;
  font-size: 15px; font-weight: 800; line-height: 1.15;
  transform: rotate(8deg);
}
.badge b { font-size: 40px; line-height: 1 }
.mock-caption { margin-top: 34px; font-size: 15px; color: #fde8ea }

/* seções */
section { padding: 70px 0 }
.cream { background: var(--cream) }
.white { background: #fff }
.cards { display: grid; gap: 16px }
.card { padding: 30px 26px; background: #fff; border-radius: 26px; text-align: center; box-shadow: 0 10px 30px -18px #6b4a2a40 }
.emoji { font-size: 44px; line-height: 1 }
.card h3 { margin-top: 14px; font-size: 22px; font-weight: 700 }
.card p { margin-top: 10px; color: var(--muted); font-size: 16.5px }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px }
.g-item { position: relative; padding: 12px 12px 16px; border: 0; border-radius: 22px; background: var(--cream); text-align: center; color: var(--ink) }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line) }
.g-wide { grid-column: 1 / -1 }
.g-wide img { aspect-ratio: 1; width: 58%; margin: 0 auto }
.g-wide .g-plus { right: calc(21% + 8px) !important }
.g-plus { position: absolute; right: 20px; top: calc(12px + (100% - 60px) - 22px); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; font-weight: 500; line-height: 1; box-shadow: 0 4px 10px #00000033 }
.g-item .g-plus { top: auto; bottom: 62px }
.g-title { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.3 }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 18px }
.checks li:before {
  content: ''; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.fine { margin: 26px 0 30px; text-align: center; font-size: 14.5px; color: var(--muted) }

/* oferta */
.offer { margin-top: 26px; padding: 32px 26px 30px; background: #fff; border: 2px solid var(--line); border-radius: 28px }
.offer-main { position: relative; border: 3px solid var(--red); box-shadow: 0 20px 50px -24px #c8102e66 }
.offer-flag { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); padding: 6px 18px; border-radius: 99px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap }
.offer h3 { text-align: center; font-size: 19px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red) }
.offer-list { list-style: none; margin: 22px 0 0; padding: 0 }
.offer-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1.5px dashed var(--line); font-size: 17px; line-height: 1.45 }
.offer-list li:before {
  content: ''; flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; border-radius: 4px;
  background: #2e9e48 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.offer-from { margin-top: 26px; text-align: center; color: var(--muted); font-size: 17px }
.offer-price { text-align: center; font-size: clamp(56px, 15vw, 76px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; color: var(--red) }
.offer-price.small { font-size: 52px; margin-bottom: 22px }
.offer-note { text-align: center; font-size: 15.5px; font-weight: 600; color: var(--green) }
.offer .timer { margin: 22px 0 24px }

.guarantee { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 24px; border-radius: 24px; background: var(--cream) }
.g-seal { flex-shrink: 0; display: grid; place-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; font-weight: 800; line-height: 1; text-align: center; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--green) }
.g-seal small { font-size: 13px; font-weight: 600 }
.guarantee h3 { font-size: 20px; font-weight: 800 }
.guarantee p { margin-top: 4px; font-size: 15px; color: var(--muted) }

.steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border-radius: 20px; font-size: 17px }
.steps li:before { content: counter(s); flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 19px }

.faq { margin-top: 30px }
.faq details { border-bottom: 1.5px solid var(--line) }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; font-weight: 700; font-size: 17.5px; cursor: pointer }
.faq summary::-webkit-details-marker { display: none }
.faq summary:after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); color: var(--red); font-size: 22px; font-weight: 600; transition: transform .2s }
.faq details[open] summary:after { transform: rotate(45deg) }
.faq p { padding-bottom: 20px; color: var(--muted); font-size: 16.5px }

.final { background: radial-gradient(ellipse at 50% 100%, #de1b3a, var(--red) 60%, var(--red-dark)); color: #fff; text-align: center }
.final h2 { color: #fff }
.final p { margin: 14px 0 30px; font-size: 18px; color: #fde8ea }

footer { padding: 40px 0 30px; text-align: center; font-size: 14px; color: var(--muted) }
footer strong { color: var(--red); font-size: 18px }
footer p { margin-top: 6px }
footer button { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0 }

/* barra fixa */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px max(18px, calc((100% - 640px) / 2)) calc(16px + env(safe-area-inset-bottom));
  background: #fff; box-shadow: 0 -10px 30px #00000022;
}
.buybar div { display: flex; flex-direction: column; line-height: 1.15 }
.buybar small { font-size: 13px; color: var(--muted) }
.buybar strong { font-size: 22px; font-weight: 800; color: var(--red); letter-spacing: -.5px }

dialog { width: min(560px, calc(100% - 28px)); padding: 26px; border: 0; border-radius: 22px; background: #fff; color: var(--ink) }
dialog::backdrop { background: #2b0710cc }
dialog h3 { margin-bottom: 10px; font-size: 22px }
dialog p { margin-bottom: 18px; color: var(--muted) }
#zoom img { width: 100%; border-radius: 12px }
.zoom-title { font-weight: 700; color: var(--ink) !important; margin-right: 40px }
.close { float: right; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--red) }

.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; background: #fff; box-shadow: 0 -8px 24px #00000033 }
.cookie[hidden] { display: none }
.cookie p { font-size: 12.5px; max-width: 480px }
.cookie div { display: flex; gap: 6px; flex-shrink: 0 }
.cookie button { border: 0; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700 }
.cookie-no { background: var(--cream); color: var(--muted) }
.cookie-yes { background: var(--red); color: #fff }

/* computador: duas colunas no topo e cards lado a lado */
@media (min-width: 900px) {
  .hero .col { width: min(1080px, calc(100% - 80px)); display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 60px; text-align: left }
  .hero .col > * { grid-column: 1 }
  .hero .mock { grid-column: 2; grid-row: 1 / span 12; align-self: center; width: 380px; margin: 0 auto }
  .hero .mock-caption { grid-column: 2; grid-row: 13; text-align: center }
  .hero-sub { margin-left: 0 }
  .pill { justify-self: start }
  .ticks { justify-content: flex-start }
  .peek { justify-self: start }
  .cards { grid-template-columns: repeat(3, 1fr) }
  .col { width: min(760px, calc(100% - 80px)) }
  #por-dentro .col, .cream:first-of-type .col { width: min(1000px, calc(100% - 80px)) }
  #por-dentro .btn, #por-dentro .secure { max-width: 520px; margin-left: auto; margin-right: auto }
  .gallery { display: flex; flex-wrap: wrap; justify-content: center }
  .gallery .g-item { width: calc((100% - 42px) / 4) }
  .g-wide { grid-column: auto }
  .g-wide img { aspect-ratio: 1; width: 100% }
  .g-wide .g-plus { right: 20px !important }
  .checks { grid-template-columns: 1fr 1fr; column-gap: 30px }
}

/* ajustes finos */
.g-item .g-plus { top: 20px; bottom: auto; right: 20px }
.buybar strong { font-size: 19px; white-space: nowrap }
.buybar .btn-sm { white-space: nowrap; padding: 12px 20px }
.timer-light .timer-clock { font-size: 26px }
@media (max-width: 360px) {
  .buybar { gap: 8px; padding-left: 12px; padding-right: 12px }
  .buybar small { display: none }
  .buybar strong { font-size: 16px }
  .buybar .btn-sm { padding: 10px 14px; font-size: 14.5px; min-height: 48px }
}
@media (max-width: 420px) {
  .strip-extra { display: none }
  .timer { gap: 10px; padding: 14px }
  .timer-icon { display: none }
  .timer-clock { font-size: 28px }
  .buybar small { font-size: 12px }
}

.g-item { display: flex; flex-direction: column }
.g-title { flex: 1; display: flex; align-items: center; justify-content: center }

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