/* ==========================================================================
   Markant — Landing page /ebook-claude
   Mobile first. Cores só via variáveis.
   ========================================================================== */

:root {
  --lima:         #D9E021;
  --verde:        #336B24;
  --cinza-escuro: #2B2A29;
  --cinza:        #5D5E5D;
  --branco:       #F9F9F9;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Lexend', sans-serif;

  --radius: 16px;
  --radius-sm: 12px;

  /* derivados */
  --texto-suave-escuro: color-mix(in srgb, var(--branco) 82%, var(--cinza-escuro));
  --superficie-escura:  color-mix(in srgb, var(--branco) 6%, var(--cinza-escuro));
  --borda-escura:       color-mix(in srgb, var(--branco) 14%, var(--cinza-escuro));
  --superficie-clara:   color-mix(in srgb, var(--cinza-escuro) 4%, var(--branco));
  --borda-clara:        color-mix(in srgb, var(--cinza-escuro) 14%, var(--branco));
  --sombra-papel:       color-mix(in srgb, var(--cinza-escuro) 50%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--cinza-escuro);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

/* ---------- acessibilidade ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--lima);
  color: var(--cinza-escuro);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--cinza-escuro);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.sticky-bar :focus-visible { outline-color: var(--branco); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow { max-width: 760px; }

.section {
  padding: 64px 0;
  overflow-x: clip;
}
.section-flush-top { padding-top: 0; }

.section-dark  { background: var(--cinza-escuro); color: var(--branco); }
.section-light { background: var(--branco); color: var(--cinza-escuro); }

h2 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 500; }

.center { text-align: center; }
.center-text { text-align: center; }
.center-text .btn { margin-top: 28px; }

.body-text {
  font-size: 1.0625rem;
  color: var(--cinza);
}
.section-dark .body-text { color: var(--texto-suave-escuro); }

.eyebrow {
  margin-bottom: 16px;
  color: var(--lima);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

mark {
  background: none;
  color: var(--lima);
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--lima);
  color: var(--cinza-escuro);
}
.btn-primary:hover { background: color-mix(in srgb, var(--lima) 88%, var(--branco)); }

.btn-secondary {
  border-color: var(--cinza-escuro);
  background: transparent;
  color: var(--cinza-escuro);
}
.btn-secondary:hover {
  background: var(--cinza-escuro);
  color: var(--branco);
}

.btn-block { display: flex; width: 100%; }

.cta-row { margin-top: 40px; text-align: center; }

.fineprint {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--texto-suave-escuro);
}
.caption {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--texto-suave-escuro);
}

/* ---------- papel (páginas do e-book) ---------- */

.paper {
  border-radius: 4px;
  background: var(--branco);
  box-shadow: 0 22px 40px -20px var(--sombra-papel), 0 4px 10px -4px var(--sombra-papel);
}
.tilt-left  { transform: rotate(-2.5deg); }
.tilt-right { transform: rotate(2.5deg); }

/* ---------- faixa de preço ---------- */

.topbar {
  padding: 10px 16px;
  background: var(--superficie-escura);
  border-bottom: 1px solid var(--borda-escura);
  color: var(--branco);
  font-size: 0.875rem;
  text-align: center;
}
.topbar s, .fineprint s, .price-old s, .exit-price s, .sticky-price s { color: var(--texto-suave-escuro); }
.topbar-new strong { color: var(--lima); font-family: var(--font-heading); font-size: 1.0625rem; }
.topbar-guarantee { font-weight: 500; }

/* ---------- 1 · topo ---------- */

.section-hero { padding: 24px 0 72px; }

.logo { display: inline-block; margin-bottom: 40px; }
.logo img { width: 140px; height: auto; }

.hero-grid { display: grid; gap: 56px; }

.hero-copy h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  margin-bottom: 20px;
}
.lead {
  margin-bottom: 32px;
  font-size: 1.125rem;
  color: var(--texto-suave-escuro);
}
.hero-copy .btn { width: 100%; }

.fan {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  aspect-ratio: 1 / 1.12;
}
.fan .paper { position: absolute; height: auto; }
.fan-main  { width: 64%; left: 18%; top: 4%; z-index: 3; }
.fan-left  { width: 50%; left: 4%;   top: 14%; z-index: 1; transform: rotate(-9deg); }
.fan-right { width: 50%; right: 4%;  top: 14%; z-index: 2; transform: rotate(8deg); }

.fineprint strong { color: var(--lima); }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 0.9375rem;
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list .icon-check { width: 20px; height: 20px; margin: 0; }

/* ---------- 3 · como funciona ---------- */

.how-grid { display: grid; gap: 40px; margin-top: 32px; }
.how-figure { margin: 0 auto; width: min(60%, 280px); }

.steps { display: grid; gap: 16px; }

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--cinza); }

.card-step {
  background: var(--superficie-clara);
  border: 1px solid var(--borda-clara);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--cinza-escuro);
  color: var(--lima);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---------- 4 · o que você recebe ---------- */

.cards-3 { display: grid; gap: 16px; margin-top: 32px; }
.card-dark {
  background: var(--superficie-escura);
  border: 1px solid var(--borda-escura);
}
.card-dark p { color: var(--texto-suave-escuro); }

/* ---------- 5 · por dentro ---------- */

.inside-grid { display: grid; gap: 40px; margin-top: 32px; }
.inside-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 460px;
  margin: 0 auto;
}

.topics { counter-reset: topic; display: grid; gap: 12px; }
.topics li {
  counter-increment: topic;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--superficie-clara);
  border: 1px solid var(--borda-clara);
  border-radius: var(--radius-sm);
}
.topics li::before {
  content: counter(topic, decimal-leading-zero);
  flex: none;
  color: var(--verde);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---------- 6 · exemplo ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin: 40px 0 0;
}
.gallery figure { margin: 0; }

/* ---------- 7 · para quem ---------- */

.fit-grid { display: grid; gap: 16px; margin-top: 32px; }
.card-fit {
  background: var(--superficie-clara);
  border: 1px solid var(--borda-clara);
}
.fit-title { margin-bottom: 16px; color: var(--verde); }

.check-list, .cross-list { display: grid; gap: 14px; }
.check-list li, .cross-list li {
  position: relative;
  padding-left: 32px;
}
.check-list li::before, .cross-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
}
.check-list li::before { content: "✓"; background: var(--verde); color: var(--branco); }
.cross-list li::before { content: "✕"; background: var(--cinza); color: var(--branco); }

/* ---------- 8 · combinado ---------- */

.notice {
  padding: 28px 24px;
  background: color-mix(in srgb, var(--lima) 16%, var(--branco));
  border: 2px solid var(--lima);
  border-radius: var(--radius);
}
.notice h2 { font-size: 1.5rem; margin-bottom: 16px; }
.notice ul { display: grid; gap: 14px; }
.notice li { position: relative; padding-left: 20px; }
.notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cinza-escuro);
}

/* ---------- 9 · oferta ---------- */

.offer {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px;
  background: var(--superficie-escura);
  border: 1px solid var(--borda-escura);
  border-radius: var(--radius);
  text-align: center;
}
.offer h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem); }

.offer-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}
.offer-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-check {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  fill: none;
  stroke: var(--lima);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-old { margin-bottom: 4px; color: var(--texto-suave-escuro); }
.price-save {
  margin-bottom: 20px;
  font-weight: 500;
}
.price {
  margin-bottom: 6px;
  color: var(--lima);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.25rem;
  line-height: 1;
}

/* ---------- pop-up de saída ---------- */

.exit-dialog {
  width: calc(100% - 32px);
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  padding: 32px 24px 24px;
  background: var(--cinza-escuro);
  color: var(--branco);
  border: 1px solid var(--borda-escura);
  border-radius: var(--radius);
  overflow-y: auto;
}
.exit-dialog::backdrop { background: color-mix(in srgb, var(--cinza-escuro) 80%, transparent); }
.exit-dialog h2 { font-size: 1.5rem; margin-bottom: 12px; }
.exit-dialog .offer-list { margin: 20px 0; }
.exit-dialog :focus-visible { outline-color: var(--branco); }
.exit-price { margin-bottom: 16px; text-align: center; }
.exit-price strong { color: var(--lima); font-family: var(--font-heading); font-size: 1.75rem; }
.exit-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  color: var(--branco);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.exit-dismiss {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--texto-suave-escuro);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- 11 · faq ---------- */

.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq details {
  background: var(--superficie-clara);
  border: 1px solid var(--borda-clara);
  border-radius: var(--radius-sm);
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 52px 14px 18px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--verde);
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; color: var(--cinza); }

/* ---------- 12 · rodapé ---------- */

.footer-ebook {
  padding: 48px 0 calc(112px + env(safe-area-inset-bottom));
  text-align: center;
}
.footer-logo { width: 140px; height: auto; margin: 0 auto 20px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
}
.footer-links a { text-underline-offset: 3px; }
.footer-links a:hover { color: var(--lima); }
.footer-place { margin-top: 8px; color: var(--texto-suave-escuro); }
.footer-legal {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 0.8125rem;
  color: var(--texto-suave-escuro);
}

/* ---------- barra fixa (só no celular) ---------- */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--cinza-escuro);
  border-top: 1px solid var(--borda-escura);
  color: var(--branco);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; }

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.sticky-price { display: grid; line-height: 1.2; }
.sticky-price span { font-size: 0.75rem; color: var(--texto-suave-escuro); }
.sticky-price strong { font-family: var(--font-heading); font-size: 1.25rem; }
.sticky-bar .btn { padding: 12px 18px; font-size: 0.9375rem; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 88px 0; }
  .section-flush-top { padding-top: 0; }

  .hero-copy .btn { width: auto; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .fit-grid { grid-template-columns: 1fr 1fr; }

  .topics { grid-template-columns: 1fr 1fr; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  .offer { padding: 48px 40px; }

  .footer-ebook { padding-bottom: 56px; }
  .sticky-bar { display: none; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1024px) {
  .container { padding: 0 80px; }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 80px;
  }
  .fan { width: 100%; max-width: 480px; }

  .how-grid {
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 56px;
  }
  .how-figure { width: 100%; }

  .inside-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 64px;
  }
  .inside-figures { max-width: none; margin: 0; }
}
