:root {
  --navy-950: #030b1a;
  --navy-900: #07162f;
  --navy-850: #0b1c38;
  --navy-800: #102444;
  --gold-500: #e9b91f;
  --gold-300: #f4cf55;
  --paper: #f5f1e8;
  --white: #ffffff;
  --mist: #c8d0dd;
  --ink: #172033;
  --error: #ffb4ab;
  --success: #a7e8b8;
  --line: rgba(255, 255, 255, 0.16);
  --shell: 1180px;
  --sans: "Aptos", "Trebuchet MS", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--navy-900); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 14px; }
.header-kicker, .eyebrow, .section-number {
  color: var(--gold-300);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.header-rule { width: 32px; height: 1px; background: var(--gold-500); }
.header-title { color: var(--mist); font-size: .82rem; }

.hero { position: relative; padding: 56px 0 72px; background: var(--navy-900); }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,185,31,.65), transparent);
}
.hero-grid { display: grid; gap: 38px; }
.eyebrow { margin: 0 0 12px; }
.book-name { margin: 0 0 12px; color: var(--gold-300); font-size: .95rem; font-weight: 700; letter-spacing: .04em; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.03; text-wrap: balance; }
h1 { max-width: 17ch; font-size: clamp(2.55rem, 11vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: -.025em; }
.hero-lead { max-width: 60ch; margin: 24px 0 0; color: var(--white); font-size: clamp(1.08rem, 2.8vw, 1.32rem); line-height: 1.55; }
.edition-proof { display: inline-flex; gap: 10px; margin: 24px 0 0; padding-block: 8px; border-block: 1px solid rgba(233,185,31,.45); color: var(--gold-300); font-size: .86rem; font-weight: 700; }
.hero-support { max-width: 58ch; margin: 20px 0 0; color: var(--mist); }

.hero-conversion { display: grid; gap: 20px; align-items: start; }
.hero-cover { width: min(48vw, 168px); margin: 0 auto; }
.hero-cover img, .material-mockup img, .author-portrait img { display: block; width: 100%; height: auto; }
.hero-cover img { border: 1px solid rgba(244,207,85,.48); box-shadow: 0 24px 54px rgba(0,0,0,.32); }
.hero-cover figcaption, .material-mockup figcaption, .author-portrait figcaption { margin-top: 9px; color: var(--mist); font-size: .68rem; line-height: 1.45; }

.pdf-artifact { width: min(100%, 410px); display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: stretch; margin-top: 36px; border: 1px solid rgba(244,207,85,.55); background: rgba(255,255,255,.035); }
.pdf-tab { display: grid; place-items: center; background: var(--gold-500); color: #10151d; font-size: .72rem; font-weight: 700; letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); }
.pdf-artifact > div { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 18px 0; }
.pdf-artifact strong { margin-top: 5px; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.05; }
.pdf-meta, .pdf-author, .pdf-size { color: var(--mist); font-size: .68rem; letter-spacing: .04em; }
.pdf-author { margin-top: 12px; }
.pdf-size { margin-top: 4px; color: var(--gold-300); }

.form-wrap { align-self: start; padding: 26px 22px; border-top: 3px solid var(--gold-500); background: var(--paper); color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.form-intro { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(23,32,51,.16); }
.form-index { color: #9c7400; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.form-intro h2 { font-family: var(--serif); font-size: clamp(1.7rem, 6vw, 2.35rem); line-height: 1.08; }
.form-intro p { margin: 10px 0 0; color: #4a5364; }
.author-signature { display: flex; align-items: center; gap: 11px; margin-top: 16px; color: #5d6574; font-size: .76rem; line-height: 1.35; }
.author-signature img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; object-position: 50% 35%; border: 1px solid #b3aa96; border-radius: 50%; }
.author-signature strong { display: block; color: var(--ink); font-size: .82rem; }
form { margin-top: 24px; }
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 700; }
.field input { width: 100%; min-height: 54px; padding: 13px 14px; border: 1px solid #aab0bb; border-radius: 0; background: var(--white); color: var(--ink); }
.field input::placeholder { color: #747d8e; }
.field input[aria-invalid="true"] { border-color: #a52920; box-shadow: inset 3px 0 #a52920; }
.field-error { min-height: 0; margin: 5px 0 0; color: #8d1f18; font-size: .82rem; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid transparent; padding: 13px 18px; font-size: .87rem; font-weight: 700; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button-primary { width: 100%; background: var(--gold-500); color: #10151d; }
.button-primary:hover { background: var(--gold-300); }
.button:disabled { cursor: wait; opacity: .68; }
.button-mark { font-size: 1.4rem; line-height: 1; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-size: .86rem; font-weight: 600; }
.form-status.is-error { color: #8d1f18; }
.form-status.is-success { color: #176b36; }
.continue-link { display: inline-block; min-height: 44px; margin-top: 8px; color: #574000; font-size: .78rem; font-weight: 700; }
.privacy-note { margin: 18px 0 0; color: #5d6574; font-size: .75rem; line-height: 1.55; }
.text-button { min-height: 44px; border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.contents-section { padding: 76px 0; background: var(--paper); color: var(--ink); }
.contents-grid { display: grid; gap: 40px; }
.contents-section .section-number, .author-section .section-number { color: #8a6500; }
.section-heading > p:not(.section-number) { max-width: 48ch; margin: 22px 0 0; color: #4f5868; }
.material-mockup { width: min(100%, 430px); margin: 34px 0 0; }
.material-mockup img { aspect-ratio: 705 / 671; object-fit: contain; background: var(--white) url("assets/mockup-manual-do-pregador-livro-kindle.jpg") center / contain no-repeat; }
.material-mockup figcaption { color: #626b77; }
.topics-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #b9b3a8; }
.topics-list li { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 17px 0; border-bottom: 1px solid #cfc9bd; font-weight: 600; line-height: 1.4; }
.topics-list span { color: #9a7400; font-size: .68rem; letter-spacing: .08em; }

.author-section { padding: 72px 0; background: #e7dfd0; color: var(--ink); }
.author-grid { display: grid; gap: 26px; }
.author-portrait { width: min(68vw, 260px); margin: 0; }
.author-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border: 1px solid #aaa080; box-shadow: 14px 16px 0 rgba(131,96,0,.12); }
.author-portrait figcaption { color: #626052; }
.author-grid h2 { margin-top: 8px; }
.author-copy > p:not(.section-number) { max-width: 62ch; margin: 20px 0 0; color: #404958; }

.final-cta { padding: 72px 0; background: var(--navy-850); }
.final-cta-inner { display: grid; gap: 28px; align-items: end; }
.final-cta h2 { max-width: 16ch; }
.final-cta p:not(.section-number) { max-width: 46ch; margin: 18px 0 0; color: var(--mist); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--navy-950); color: #aeb8c8; font-size: .76rem; }
.footer-inner { display: grid; gap: 4px; }
.footer-inner p { margin: 0; }
.footer-link { justify-self: start; }

.privacy-dialog { width: min(calc(100% - 32px), 640px); max-height: calc(100vh - 40px); padding: 24px; border: 1px solid #c8b36c; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.privacy-dialog::backdrop { background: rgba(1,7,17,.82); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #cbc5b9; padding-bottom: 18px; }
.dialog-header h2 { font-size: 2rem; }
.dialog-header .eyebrow { color: #8a6500; }
.dialog-close { min-width: 44px; min-height: 44px; border: 1px solid #8c8374; background: transparent; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.draft-notice { padding: 12px; background: #eee1b7; }

.delivery-section { padding: 64px 0 78px; background: var(--navy-900); }
.delivery-grid { display: grid; gap: 44px; align-items: center; }
.confirmation-line { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 26px; color: var(--success); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.confirmation-line span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--success); border-radius: 50%; }
.delivery-copy h1 { max-width: 15ch; }
.delivery-lead { max-width: 55ch; margin: 24px 0 0; color: var(--mist); font-size: 1.08rem; }
.download-actions { max-width: 570px; margin-top: 32px; }
.download-actions > p { color: var(--mist); font-size: .84rem; }
.download-actions a:not(.button) { color: var(--gold-300); font-weight: 700; text-underline-offset: 3px; }
.save-note { padding-top: 12px; border-top: 1px solid var(--line); }
.pdf-artifact-large { width: min(100%, 360px); margin: 10px auto 0; grid-template-columns: 78px 1fr; }
.pdf-artifact-large > div { padding-block: 30px; }
.pdf-artifact-large strong { font-size: 2.35rem; }

.conateb-section { padding: 60px 0; background: var(--paper); color: var(--ink); }
.conateb-grid { display: grid; gap: 20px; align-items: center; }
.conateb-section .section-number { color: #826000; }
.conateb-section h2 { max-width: 18ch; font-size: clamp(1.9rem, 6vw, 3rem); }
.conateb-section p:not(.section-number) { max-width: 54ch; color: #4d5665; }
.button-secondary { width: 100%; border-color: #172033; background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--white); }

:focus-visible { outline: 3px solid #66d9ff; outline-offset: 3px; }

@media (min-width: 760px) {
  .shell { width: min(calc(100% - 64px), var(--shell)); }
  .hero { padding: 82px 0 92px; }
  .hero-grid { grid-template-columns: minmax(0, .86fr) minmax(570px, 1.14fr); gap: 48px; align-items: center; }
  .hero-copy h1 { font-size: clamp(3.5rem, 5vw, 4.75rem); }
  .hero-conversion { grid-template-columns: minmax(150px, 180px) minmax(360px, 1fr); gap: 24px; }
  .hero-cover { width: 100%; margin: 0; }
  .form-wrap { padding: 34px; }
  .contents-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .author-grid { grid-template-columns: minmax(210px, 260px) 1fr; gap: 64px; align-items: center; }
  .author-portrait { width: 100%; }
  .final-cta-inner { grid-template-columns: 1fr 320px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-inner p:last-child { grid-column: 1 / -1; }
  .delivery-grid { grid-template-columns: 1.2fr .8fr; gap: 80px; }
  .conateb-grid { grid-template-columns: .35fr 1fr auto; gap: 32px; }
  .button-secondary { width: auto; min-width: 250px; }
}

@media (min-width: 1100px) {
  .contents-section, .author-section, .final-cta { padding-block: 96px; }
}

@media (min-width: 760px) and (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-conversion { grid-template-columns: minmax(150px, 210px) minmax(360px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
