/* O Último Trabalho: site de pré-venda.
   Identidade tirada da capa e das ilustrações do livro: papel creme,
   xilogravura em vinho e tinta quase preta. Títulos em Literata, texto em Manrope. */

:root {
  --papel: #f4ecdf;
  --papel-2: #e9dcc4;
  --tinta: #1f1515;
  --tinta-2: #4b3d39;
  --tinta-3: #7a6b64;
  --vinho: #6b1d2a;
  --vinho-forte: #84253a;
  --vinho-escuro: #2a1014;
  --rosa: #d88d9a;
  --creme-no-escuro: #efe5d6;
  --linha: rgba(31, 21, 21, 0.14);
  --linha-escuro: rgba(239, 229, 214, 0.16);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largura: 1160px;
  --raio: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.envoltorio {
  width: min(100% - 48px, var(--largura));
  margin-inline: auto;
}

.olho {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vinho);
}

/* Quebra dos títulos: duas linhas no computador, texto corrido no celular. */
.quebra {
  display: none;
}

.nobr {
  white-space: nowrap;
}

@media (min-width: 960px) {
  .quebra {
    display: inline;
  }
}

/* ---------- Topo ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 236, 223, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--linha);
}

.topo .envoltorio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.marca {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.marca strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.marca span {
  font-size: 13px;
  color: var(--tinta-3);
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--vinho);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.botao:hover {
  background: var(--vinho-forte);
}

.botao:active {
  transform: translateY(1px);
}

.botao:disabled {
  opacity: 0.6;
  cursor: progress;
}

.botao-pequeno {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
}

.hero .envoltorio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(46px, 6.4vw, 86px);
  margin-top: 18px;
}

.hero .subtitulo {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.45;
  color: var(--tinta-2);
  margin-top: 20px;
  max-width: 34ch;
}

.hero .apresentacao {
  margin-top: 18px;
  color: var(--tinta-2);
  max-width: 52ch;
}

.capa {
  justify-self: center;
  width: min(100%, 420px);
  border-radius: 6px;
  box-shadow:
    0 30px 60px -20px rgba(42, 16, 20, 0.45),
    0 12px 24px -12px rgba(42, 16, 20, 0.35);
}

/* ---------- Formulário ---------- */

.cartao-form {
  margin-top: 36px;
  padding: 28px;
  background: #fbf7f0;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  max-width: 560px;
}

.cartao-form h2 {
  font-size: 24px;
}

.cartao-form > p {
  margin-top: 6px;
  color: var(--tinta-2);
  font-size: 15px;
}

.form-lista {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-lista .duas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-lista label.campo {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.form-lista input[type="text"],
.form-lista input[type="email"],
.form-lista input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(31, 21, 21, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-lista input:focus {
  outline: none;
  border-color: var(--vinho);
  box-shadow: 0 0 0 3px rgba(107, 29, 42, 0.15);
}

.form-lista input[aria-invalid="true"] {
  border-color: #b3261e;
}

.consentimento {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tinta-2);
}

.consentimento input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--vinho);
}

.form-lista .botao {
  width: 100%;
  margin-top: 4px;
}

.form-erro {
  font-size: 14px;
  color: #b3261e;
}

.form-erro:empty {
  display: none;
}

/* ---------- Seções ---------- */

.secao {
  padding: 104px 0;
}

.secao h2 {
  font-size: clamp(32px, 3.9vw, 50px);
}

.secao .olho + h2 {
  margin-top: 14px;
}

.texto-longo p + p {
  margin-top: 18px;
}

.historia {
  background: var(--papel-2);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}

.historia .envoltorio {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: 72px;
  row-gap: 48px;
  align-items: center;
}

.cabeca-secao {
  grid-column: 1 / -1;
}

.historia figure {
  margin: 0;
}

.historia figure img {
  border-radius: var(--raio);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 70%;
  width: 100%;
}

.historia .texto-longo {
  color: var(--tinta-2);
  max-width: 60ch;
  font-size: 18px;
}

/* O método fica no escuro, com o rosa da versão de revisão. */
.metodo {
  background: var(--vinho-escuro);
  color: var(--creme-no-escuro);
}

.metodo .olho {
  color: var(--rosa);
}

.metodo .intro {
  margin-top: 22px;
  max-width: 62ch;
  color: rgba(239, 229, 214, 0.78);
}

.ferramentas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.ferramenta {
  padding: 36px;
  border: 1px solid var(--linha-escuro);
  border-radius: var(--raio);
  background: rgba(255, 255, 255, 0.03);
}

.ferramenta .numero {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--rosa);
}

.ferramenta h3 {
  font-size: 28px;
  margin-top: 10px;
}

.ferramenta h3 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: rgba(239, 229, 214, 0.7);
}

.ferramenta > p {
  margin-top: 14px;
  color: rgba(239, 229, 214, 0.78);
}

.perguntas {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.perguntas li {
  padding: 14px 16px;
  border-left: 2px solid var(--rosa);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-size: 17px;
}

.piramide {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 26px;
}

.piramide div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}

.piramide .p-topo {
  width: 52%;
  background: var(--rosa);
  color: var(--vinho-escuro);
}

.piramide .p-meio {
  width: 76%;
  background: rgba(216, 141, 154, 0.38);
}

.piramide .p-base {
  width: 100%;
  background: rgba(216, 141, 154, 0.16);
  border: 1px solid rgba(216, 141, 154, 0.35);
}

.piramide-legenda {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(239, 229, 214, 0.78);
}

.citacao {
  margin: 72px auto 0;
  max-width: 820px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
}

.citacao p::before {
  content: "\201C";
}

.citacao p::after {
  content: "\201D";
}

.citacao footer {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--rosa);
}

/* Para quem é */

.para-quem .cabeca > p:last-child {
  margin-top: 22px;
  max-width: 68ch;
  color: var(--tinta-2);
}

.leitores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.leitor {
  padding: 30px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: #fbf7f0;
}

.leitor h3 {
  font-size: 22px;
}

.leitor p {
  margin-top: 12px;
  color: var(--tinta-2);
  font-size: 16px;
}

.faixa {
  margin: 64px 0 0;
  border-radius: var(--raio);
  overflow: hidden;
}

.faixa img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.ficha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--linha);
}

.ficha div {
  padding-top: 22px;
}

.ficha strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--vinho);
}

.ficha span {
  font-size: 15px;
  color: var(--tinta-2);
}

/* Autor */

.autor {
  background: var(--papel-2);
  border-top: 1px solid var(--linha);
}

.autor .envoltorio {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
}

.autor .retrato {
  position: relative;
  margin: 0;
  border-radius: var(--raio);
  background: var(--vinho);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.autor .retrato img {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 86%;
  max-width: none;
  transform: translateX(-50%);
}

.autor .texto-longo {
  margin-top: 24px;
  color: var(--tinta-2);
  max-width: 58ch;
}

/* Chamada final */

.chamada {
  text-align: center;
}

.chamada p {
  margin: 20px auto 0;
  max-width: 52ch;
  color: var(--tinta-2);
}

.chamada .botao {
  margin-top: 32px;
}

/* Rodapé */

.rodape {
  padding: 36px 0;
  border-top: 1px solid var(--linha);
  font-size: 14px;
  color: var(--tinta-3);
}

.rodape .envoltorio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Página de obrigado */

.obrigado {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.obrigado .envoltorio {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 860px;
}

.obrigado h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-top: 14px;
}

.obrigado p {
  margin-top: 18px;
  color: var(--tinta-2);
}

.obrigado .botao {
  margin-top: 28px;
}

/* ---------- Celular ---------- */

@media (max-width: 959px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 36px 0 64px;
  }

  .hero .envoltorio,
  .historia .envoltorio,
  .autor .envoltorio,
  .obrigado .envoltorio {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero .capa {
    order: -1;
    width: min(60%, 250px);
  }

  .secao {
    padding: 72px 0;
  }

  .ferramentas,
  .leitores {
    grid-template-columns: 1fr;
  }

  .ferramenta {
    padding: 28px 22px;
  }

  .faixa img {
    aspect-ratio: 16 / 9;
  }

  .obrigado .capa {
    width: 160px;
  }
}

@media (max-width: 560px) {
  .envoltorio {
    width: min(100% - 32px, var(--largura));
  }

  .marca span {
    display: none;
  }

  .cartao-form {
    padding: 22px 18px;
  }

  .form-lista .duas,
  .ficha {
    grid-template-columns: 1fr;
  }
}

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

  .botao {
    transition: none;
  }
}
