@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/ebook-escala5x2/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #ffffff;
  --fundo-suave: #fafaf8;
  --ink: #1b1d29;
  --texto2: #4a5565;
  --apoio: #6a7282;
  --linha: #e4e6ec;
  --linha-quente: #ffdfc4;
  --laranja: #f26600;
  --laranja-texto: #c2410c;
  --destaque: #fff1e5;
  --brilho: #fff3e9;
  --cartao: #1e2939;
  --claro: #d1d5dc;
  --sucesso: #00bc7d;
  --erro: #b42318;
  --fonte: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--ink);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  font-variant-ligatures: no-contextual;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: inherit; }

.nowrap { white-space: nowrap; }

.barra-wrap,
.miolo {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.barra {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo { height: 23px; width: auto; display: block; }
.logo-rodape { height: 22px; width: auto; opacity: 0.7; }

.cta-cabecalho { transition: opacity 0.2s; }
.cta-fora { visibility: hidden; opacity: 0; }

.hero {
  background-image: radial-gradient(864px 448px at 72% -16%, #fff3e9, rgba(255, 255, 255, 0) 66%);
}

.hero-grid {
  display: grid;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.hero-copy { text-align: center; }

.kicker {
  margin: 0 auto;
  max-width: 300px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--apoio);
}

h1 {
  margin: 12px 0 0;
  font-size: 28.8px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.laranja { color: var(--laranja); }

.lead {
  margin: 16px auto 0;
  max-width: 608px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto2);
}

.capa {
  position: relative;
  isolation: isolate;
  width: 190px;
  margin: 28px auto 0;
}

.capa-mancha {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 145%;
  aspect-ratio: 1;
  transform: translate(-48%, -46%);
  border-radius: 999px;
  background: linear-gradient(to bottom right, var(--destaque), var(--brilho));
}

.capa-livro { position: relative; transform: rotate(-3deg); }

.capa-paginas,
.capa-paginas-frente {
  position: absolute;
  border-radius: 3px;
}

.capa-paginas {
  right: -7px;
  bottom: -6px;
  left: 6px;
  top: 6px;
  background: linear-gradient(90deg, #d6d9e1, #f3f4f7 35%, #e1e4ea);
  box-shadow: 0 30px 34px -14px rgba(27, 29, 41, 0.55);
}

.capa-paginas-frente {
  right: -3px;
  bottom: -3px;
  left: 3px;
  top: 3px;
  background: #fff;
}

.capa-frente {
  position: relative;
  overflow: hidden;
  border-radius: 3px 8px 8px 3px;
}

.capa-frente img { display: block; width: 100%; height: auto; }

.capa-lombada,
.capa-reflexo {
  position: absolute;
  pointer-events: none;
}

.capa-lombada {
  inset: 0 auto 0 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(255, 255, 255, 0.16) 18%, rgba(0, 0, 0, 0.1) 40%, transparent 100%);
}

.capa-reflexo {
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 40%);
}

.hero-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--laranja);
  color: var(--ink);
  padding: 12px 28px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn:hover { filter: brightness(0.95); }
.btn:active { filter: brightness(0.9); }
.btn:disabled { cursor: not-allowed; opacity: 0.7; }

.btn-compacto {
  min-height: 44px;
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
}

.secao { padding: 56px 0; }
.secao-suave { border-top: 1px solid var(--linha); background: var(--fundo-suave); }

h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.lista {
  margin: 28px 0 0;
  padding: 0;
  max-width: 768px;
  list-style: none;
}

.lista li {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--texto2);
}

.lista li:first-child { margin-top: 0; }

.check {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  color: var(--laranja);
}

.nota-fonte {
  margin: 28px 0 0;
  max-width: 768px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--apoio);
}

.acoes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 28px;
}

.acoes .btn { width: 100%; }

.link-laranja {
  color: var(--laranja-texto);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-underline-offset: 4px;
}

.intro {
  margin: 16px 0 0;
  max-width: 768px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--texto2);
}

.ferramentas {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.cartao {
  border-radius: 18px;
  background: var(--cartao);
  padding: 24px;
  box-shadow: 0 28px 60px -34px rgba(27, 29, 41, 0.45);
  color: #fff;
}

.etiqueta {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--laranja);
}

.cartao h3 {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cartao p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--claro); }

.provas {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.numero {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--laranja);
}

.legenda { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: var(--claro); }

.nota-prova { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--claro); }

#formulario {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--linha-quente);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 28px 60px -34px rgba(27, 29, 41, 0.45);
}

#titulo-formulario {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.campos {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

input,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--linha);
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

input::placeholder { color: var(--apoio); }

input.invalido,
select.invalido { border-color: var(--erro); }

.erro {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--erro);
}

#botao-enviar { margin-top: 24px; }

.consentimento {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--apoio);
}

.consentimento a { text-decoration: underline; }

.isca {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.painel { display: none; }

.painel-miolo {
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 12px;
}

.painel-cartao { position: relative; }

.fechar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--apoio);
  cursor: pointer;
}

.fechar:hover { background: var(--linha); color: var(--ink); }
.fechar svg { width: 20px; height: 20px; }

.painel.aberto {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  overflow-y: auto;
  background: rgba(27, 29, 41, 0.6);
}

.painel.aberto .painel-miolo {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.painel.aberto #titulo-formulario { padding-right: 36px; }

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .painel.aberto .painel-miolo { animation: subir-painel 0.22s ease-out; }
}

@keyframes subir-painel {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 359px) {
  .barra-wrap { padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 26px; }
  .lead { font-size: 16px; }
  .logo { height: 20px; }
  .btn-compacto { padding-left: 12px; padding-right: 12px; font-size: 13px; }
}

@media (min-width: 640px) {
  h1 { font-size: 38px; }
  #titulo-formulario { font-size: 26.4px; }
  .acoes { flex-direction: row; align-items: center; gap: 28px; }
  .acoes .btn { width: auto; }
  .link-laranja { text-align: left; }
  .cartao { padding: 28px; }
  .pronto-miolo { text-align: left; }
  .pronto-icone { margin-left: 0; }
}

@media (min-width: 768px) {
  .ferramentas { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .cartao { display: flex; flex-direction: column; }
  .cartao .nota-prova,
  .cartao .nota-vazia { margin-top: auto; }
  .provas { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) and (max-height: 760px) {
  .hero-grid { padding-top: 16px; }
  .capa { width: 140px; margin-top: 20px; }
  .hero-cta { margin-top: 24px; }
}

@media (min-width: 1024px) {
  .logo { height: 25px; }
  .kicker { max-width: none; margin-left: 0; margin-right: 0; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .hero-copy { text-align: left; }
  h1 { font-size: 40px; }
  .lead { margin-left: 0; font-size: 17.5px; }
  .capa { width: 170px; margin: 24px 0 0; }
  .hero-cta { display: none; }
  .secao { padding: 64px 0; }
  h2 { font-size: 32px; }
  .painel { display: block; }
  .painel-miolo { max-width: none; margin: 0; padding: 0; }
  .fechar { display: none; }
  .painel.aberto {
    position: static;
    z-index: auto;
    display: block;
    overflow: visible;
    background: transparent;
  }
  .painel.aberto #titulo-formulario { padding-right: 0; }
  #formulario { max-width: none; margin: 0; padding: 24px; }
  #titulo-formulario { font-size: 22px; }
  .campos { gap: 12px; margin-top: 16px; }
  label { margin-bottom: 4px; }
  input, select { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  #botao-enviar { min-height: 48px; margin-top: 16px; padding-top: 8px; padding-bottom: 8px; }
  .consentimento { margin-top: 10px; }
}

@media (min-width: 1280px) {
  h1 { font-size: 46px; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .barra { height: 56px; }
  .hero-grid { padding-top: 16px; padding-bottom: 24px; }
  .capa { width: 150px; margin-top: 16px; }
  #formulario { padding: 20px; }
  #titulo-formulario { font-size: 20px; }
  .campos { gap: 8px; margin-top: 12px; }
  label { margin-bottom: 2px; }
  #botao-enviar { margin-top: 12px; }
  .consentimento { margin-top: 8px; }
}

.rodape {
  border-top: 1px solid var(--linha);
  background: #fff;
  color: var(--apoio);
}

.rodape-miolo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 40px;
  text-align: center;
  font-size: 12.5px;
  line-height: 20px;
}

.rodape p { margin: 12px 0 0; }
.rodape ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.rodape a { text-decoration: underline; text-underline-offset: 2px; }
.rodape a:hover { color: var(--ink); }
.rodape .aviso { max-width: 36rem; margin-top: 20px; }
.rodape .copia { margin-top: 8px; }

.pronto-miolo { padding-top: 56px; padding-bottom: 56px; text-align: center; }
.pronto-icone {
  display: flex;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 188, 125, 0.15);
  color: var(--sucesso);
}
.pronto-icone svg { width: 24px; height: 24px; }
.pronto-miolo h1 { font-size: 28.8px; }
.pronto-miolo .lead { margin-top: 18px; }
.pronto-miolo .btn { margin-top: 28px; }
.pronto-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 16px;
}

@media (min-width: 640px) {
  .pronto-links { justify-content: flex-start; }
  .pronto-miolo h1 { font-size: 38px; }
}

@media (min-width: 1024px) {
  .pronto-miolo { padding-top: 80px; padding-bottom: 80px; }
  .pronto-miolo h1 { font-size: 48.8px; }
  .pronto-miolo .lead { font-size: 17.92px; }
}
