:root {
  --yellow: #ffda3e;
  --green: #27c864;
  --green-dark: #128c4b;
  --red: #ff2929;
  --white: #ffffff;
  --text: #161616;
  --muted: #6c706d;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #000; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  color: #fff;
  background: #000;
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Página inicial */
.offer-page { color: var(--white); background: #000; }
.offer {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: clamp(0px, 2.8vw, 18px);
  place-items: center;
  background: #000;
}
.offer-card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(24px, 4vw, 34px) clamp(16px, 4vw, 30px) clamp(28px, 4vw, 36px);
  overflow: hidden;
  color: #fff;
  background: #000;
  border: 0;
  box-shadow: none;
}
.offer-headline {
  position: relative;
  z-index: 1;
  margin: 0 auto clamp(14px, 3vw, 20px);
  padding: 11px clamp(10px, 3vw, 15px);
  color: #111;
  background: var(--yellow);
  font-size: clamp(20px, 4.2vw, 27px);
  font-weight: 900;
  line-height: 1.28;
  text-align: center;
  text-transform: uppercase;
}
.mobile-break { display: none; }

.ebook-stage {
  position: relative;
  display: grid;
  width: min(calc(100% - 52px), 448px);
  min-height: 0;
  aspect-ratio: 1.55 / 1;
  margin: 0 auto clamp(16px, 3vw, 21px);
  overflow: visible;
  place-items: center;
  background: transparent;
  border: 0;
}
.ebook-product-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 20px 16px rgba(0,0,0,.68)) drop-shadow(0 0 12px rgba(255,218,62,.14));
  transform-origin: center;
  animation: productPulse 3.2s ease-in-out infinite;
  will-change: transform, filter;
}
.warning-copy {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 0 auto;
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}
.scarcity-copy { margin: clamp(21px, 4vw, 28px) 0 clamp(17px, 3vw, 21px); color: var(--red); font-size: 17px; font-weight: 800; line-height: 1.35; text-align: center; }
.scarcity-copy strong { display: inline-block; min-width: 1ch; }
.scarcity-copy strong.is-updating { animation: spotChange 360ms ease both; }
.main-cta,
.modal-submit {
  display: flex;
  width: 100%;
  min-height: 68px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(39,200,100,.22);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: 160ms ease;
}
.main-cta { position: relative; z-index: 1; width: min(calc(100% - 54px), 430px); margin: 0 auto; padding-inline: 18px; animation: ctaPulse 1.9s ease-in-out infinite; will-change: transform, box-shadow; }
.main-cta svg, .modal-submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.main-cta:hover, .modal-submit:hover { background: #20b959; transform: translateY(-2px); }
.main-cta:hover { animation: none; transform: translateY(-2px) scale(1.01); }
.main-cta:focus-visible, .modal-submit:focus-visible, .modal-close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Popup de captura */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  place-items: center;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(7px);
  animation: fadeIn 180ms ease both;
}
.lead-modal {
  position: relative;
  width: min(100%, 480px);
  padding: 40px 38px 30px;
  color: var(--text);
  background: #fff;
  border-top: 7px solid var(--green);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: modalIn 240ms ease both;
}
.modal-close { position: absolute; top: 11px; right: 13px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: #777; background: #f0f0ef; border: 0; border-radius: 50%; font-size: 27px; line-height: 1; cursor: pointer; }
.modal-icon { display: grid; width: 58px; height: 58px; margin: -5px auto 14px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; }
.modal-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.modal-step { margin: 0 0 5px; color: var(--green-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-align: center; }
.lead-modal h2 { margin: 0; font-size: 29px; line-height: 1.08; text-align: center; }
.lead-modal > p:not(.modal-step):not(.modal-privacy) { margin: 12px auto 25px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.field-group { margin-bottom: 17px; }
.field-group label { display: block; margin-bottom: 7px; color: #292929; font-size: 13px; font-weight: 800; }
.input-box { position: relative; }
.input-box svg { position: absolute; top: 50%; left: 15px; width: 20px; height: 20px; color: #858985; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transform: translateY(-50%); }
.input-box input { width: 100%; height: 55px; padding: 0 15px 0 46px; color: #111; background: #f5f5f3; border: 1px solid #dededb; border-radius: 7px; outline: none; }
.input-box input:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(39,200,100,.12); }
.input-box input[aria-invalid="true"] { border-color: #d72d2d; }
.field-hint, .field-error { display: block; margin-top: 6px; font-size: 11px; }
.field-hint { color: #777; }
.field-error { color: #bc2020; font-weight: 700; }
.modal-submit { min-height: 59px; margin-top: 22px; font-size: 14px; border-radius: 7px; }
.modal-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.form-status { min-height: 17px; margin: 10px 0 0; color: #bc2020; font-size: 12px; font-weight: 700; text-align: center; }
.modal-privacy { margin: 17px 0 0; color: #858985; font-size: 10px; line-height: 1.5; text-align: center; }
.modal-privacy a { color: #525552; font-weight: 700; }
.modal-open { overflow: hidden; }

/* Confirmação antes da conversa */
.confirmation-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(30px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
  color: #fff;
  background: #191919;
}
.confirmation-card {
  display: flex;
  width: min(100%, 440px);
  min-height: calc(100dvh - 60px);
  padding: clamp(28px, 5vh, 42px) clamp(20px, 6vw, 32px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #191919;
  text-align: center;
}
.confirmation-visual {
  display: grid;
  width: min(100%, 340px);
  aspect-ratio: 1024 / 537;
  overflow: visible;
  place-items: center;
  background: transparent;
}
.confirmation-visual img {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 24px 20px rgba(0,0,0,.9)) drop-shadow(0 0 20px rgba(255,218,62,.18));
}
.confirmation-card h1 {
  margin: clamp(30px, 5vh, 40px) 0 0;
  color: var(--yellow);
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 900;
  line-height: 1.48;
  text-transform: uppercase;
}
.confirmation-scarcity {
  margin: 12px 0 0;
  color: var(--red);
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.confirmation-instruction {
  margin: clamp(30px, 5vh, 40px) 0 0;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 800;
  line-height: 1.45;
}
.confirmation-cta {
  display: flex;
  width: min(100%, 320px);
  min-height: 60px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border-radius: 5px;
  box-shadow: 0 16px 34px rgba(39,200,100,.28);
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: 160ms ease;
}
.confirmation-cta:hover { background: #20b959; transform: translateY(-2px); }
.confirmation-cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.confirmation-cta[aria-disabled="true"] { background: #747874; box-shadow: none; cursor: not-allowed; transform: none; }

/* Política */
.privacy-page { min-height: 100vh; padding: 30px; color: #222; background: #ecebe6; }
.site-header { display: flex; width: min(100%, 820px); margin: 0 auto 25px; align-items: center; justify-content: space-between; }
.brand { color: #181818; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.brand-mark { display: inline-grid; width: 32px; height: 32px; margin-right: 7px; place-items: center; color: #fff; background: #181818; border-radius: 50%; }
.brand-dot { color: var(--green); }
.privacy-content { width: min(100%, 820px); margin: auto; padding: clamp(28px,5vw,60px); background: #fff; border-radius: 12px; box-shadow: 0 15px 45px rgba(0,0,0,.08); }
.privacy-content h1 { margin: 0; font-size: clamp(38px,7vw,62px); }
.privacy-content h2 { margin-top: 34px; }
.privacy-content p, .privacy-content li { color: #5f6360; line-height: 1.7; }
.privacy-content .eyebrow { color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.privacy-content .legal-alert { padding: 15px; color: #665300; background: #fff5bd; border-radius: 7px; }
.noscript { position: fixed; right: 15px; bottom: 15px; left: 15px; z-index: 100; padding: 15px; color: #fff; background: #b42318; border-radius: 7px; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes spotChange { 0% { opacity: .25; transform: translateY(-5px) scale(1.15); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes productPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 20px 16px rgba(0,0,0,.68)) drop-shadow(0 0 12px rgba(255,218,62,.14)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 26px 21px rgba(0,0,0,.76)) drop-shadow(0 0 24px rgba(255,218,62,.28)); }
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 25px rgba(39,200,100,.22), 0 0 0 0 rgba(39,200,100,.32); }
  50% { transform: scale(1.025); box-shadow: 0 18px 34px rgba(39,200,100,.36), 0 0 0 9px rgba(39,200,100,0); }
}

@media (max-width: 620px) {
  .offer { min-height: 100svh; min-height: 100dvh; padding: 0; place-items: center; background: #000; }
  .offer-card { display: flex; width: min(100%, 460px); min-height: 100svh; min-height: 100dvh; padding: max(22px, calc(env(safe-area-inset-top) + 14px)) clamp(14px, 4.6vw, 20px) max(27px, calc(env(safe-area-inset-bottom) + 18px)); flex-direction: column; justify-content: center; background: #000; border: 0; box-shadow: none; }
  .mobile-break { display: inline; }
  .offer-headline { margin-bottom: 8px; padding: 11px clamp(5px, 2vw, 9px); font-size: clamp(16px, 5.05vw, 22px); line-height: 1.18; white-space: nowrap; }
  .ebook-stage { width: min(100%, 350px); min-height: 0; aspect-ratio: 1.08 / 1; margin: 0 auto clamp(17px, 5vw, 23px); }
  .warning-copy { max-width: 390px; font-size: clamp(13px, 4.05vw, 18px); line-height: 1.38; white-space: nowrap; }
  .scarcity-copy { margin-block: clamp(17px, 5vw, 24px) clamp(14px, 4vw, 19px); font-size: clamp(11px, 3.25vw, 15px); line-height: 1.35; letter-spacing: -.012em; white-space: nowrap; }
  .main-cta { width: min(100%, 404px); min-height: clamp(58px, 15.5vw, 64px); padding-inline: 10px; border-radius: 8px; font-size: clamp(12px, 3.55vw, 16px); white-space: nowrap; }
  .lead-modal { width: 100%; max-height: calc(100dvh - max(8px, env(safe-area-inset-top))); padding: 34px clamp(16px, 5vw, 22px) max(23px, calc(env(safe-area-inset-bottom) + 16px)); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; scrollbar-width: thin; }
  .lead-modal::before { position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; content: ""; background: #d7d7d4; border-radius: 10px; transform: translateX(-50%); }
  .lead-modal h2 { font-size: clamp(23px, 6.5vw, 27px); text-wrap: balance; }
  .modal-close { top: 14px; right: 14px; width: 42px; height: 42px; }
  .modal-backdrop { padding: max(8px, env(safe-area-inset-top)) 0 0; place-items: end stretch; }
  .modal-icon { width: 52px; height: 52px; margin-bottom: 11px; }
  .lead-modal > p:not(.modal-step):not(.modal-privacy) { margin-bottom: 21px; }
  .field-group { margin-bottom: 15px; }
  .input-box input { min-height: 56px; font-size: 16px; }
  .modal-submit { min-height: 58px; margin-top: 18px; }

  .privacy-page { padding: 20px 15px; }

  .confirmation-page { padding: 0; place-items: stretch center; }
  .confirmation-card { width: min(100%, 440px); min-height: 100svh; min-height: 100dvh; padding: max(24px, calc(env(safe-area-inset-top) + 16px)) clamp(18px, 6vw, 28px) max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
}

@media (max-width: 380px) {
  .offer-card { padding-inline: 13px; }
  .offer-headline { font-size: clamp(15px, 5vw, 18px); }
  .ebook-stage { width: min(100%, 315px); aspect-ratio: 1.06 / 1; }
  .lead-modal { padding-inline: 16px; }
  .confirmation-card h1 { font-size: 14px; }
  .confirmation-scarcity { font-size: 11px; }
  .confirmation-wide-break { display: none; }
}

@media (max-width: 620px) and (max-height: 720px) {
  .offer-card { padding-top: max(15px, calc(env(safe-area-inset-top) + 9px)); }
  .offer-headline { margin-bottom: 7px; padding-block: 7px; font-size: clamp(15px, 4.8vw, 17px); }
  .ebook-stage { width: min(100%, 280px); aspect-ratio: 1.08 / 1; margin-bottom: 14px; }
  .warning-copy { font-size: clamp(13px, 4vw, 14px); }
  .scarcity-copy { margin-block: 13px 11px; font-size: 13px; }
  .main-cta { min-height: 56px; }
  .lead-modal { padding-top: 28px; }
  .modal-icon { width: 48px; height: 48px; }
  .lead-modal > p:not(.modal-step):not(.modal-privacy) { margin-bottom: 18px; }
  .field-group { margin-bottom: 12px; }
  .confirmation-card { padding-top: max(24px, calc(env(safe-area-inset-top) + 16px)); padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
  .confirmation-visual { width: min(100%, 280px); }
  .confirmation-card h1 { margin-top: 24px; }
  .confirmation-instruction { margin-top: 24px; }
}

@media (orientation: landscape) and (min-width: 560px) and (max-height: 540px) {
  .offer { place-items: start center; }
  .offer-card {
    display: grid;
    grid-template-columns: minmax(230px, .9fr) minmax(270px, 1.1fr);
    grid-template-areas:
      "headline warning"
      "stage scarcity"
      "stage cta";
    width: min(100%, 900px);
    min-height: 100dvh;
    padding: max(12px, calc(env(safe-area-inset-top) + 7px)) max(16px, calc(env(safe-area-inset-right) + 12px)) max(12px, calc(env(safe-area-inset-bottom) + 7px)) max(16px, calc(env(safe-area-inset-left) + 12px));
    column-gap: clamp(18px, 4vw, 38px);
    row-gap: 10px;
    align-content: center;
  }
  .mobile-break { display: none; }
  .offer-headline { grid-area: headline; margin: 0; padding: 7px 8px; font-size: clamp(14px, 2.25vw, 19px); line-height: 1.16; white-space: normal; }
  .ebook-stage { grid-area: stage; width: min(100%, 320px); min-height: 0; margin: 0 auto; aspect-ratio: 1.2 / 1; }
  .warning-copy { grid-area: warning; max-width: 430px; font-size: clamp(14px, 2.25vw, 19px); line-height: 1.25; white-space: normal; }
  .scarcity-copy { grid-area: scarcity; margin: 0; font-size: clamp(13px, 1.9vw, 16px); white-space: normal; }
  .main-cta { grid-area: cta; width: 100%; min-height: 56px; margin: 0; font-size: clamp(13px, 1.9vw, 16px); white-space: normal; }
  .modal-backdrop { padding-top: max(6px, env(safe-area-inset-top)); }
  .lead-modal { width: min(100%, 560px); max-height: calc(100dvh - 6px); padding-top: 29px; }
  .modal-icon { display: none; }
  .lead-modal > p:not(.modal-step):not(.modal-privacy) { margin-block: 8px 14px; }
  .field-group { margin-bottom: 10px; }
  .input-box input { min-height: 50px; }
  .modal-submit { min-height: 52px; margin-top: 12px; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ebook-product-image, .main-cta { animation: none !important; }
}
