/* ═══════════════════════════════════════════════════════════════════════════
   style.css — Zettelkasten · Site de Vendas
   Paleta: fundo creme (#FAFAF7), texto escuro (#1a1a1a), accent âmbar (#C97D2E)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #FAFAF7;
  --bg-alt:    #F0EFE9;
  --bg-dark:   #1C1C1A;
  --text:      #1a1a1a;
  --text-muted:#555;
  --accent:    #C97D2E;
  --accent-dk: #A5611A;
  --border:    #DDD;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --font:      'Georgia', 'Times New Roman', serif;
  --font-ui:   system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 1rem; }

/* ── Container ─────────────────────────────────────────────────────────────── */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navegação ─────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 1rem; }

.nav-email {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--text-muted);
}

.nav-link {
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Botões ─────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s;
  text-decoration: none;
  text-align: center;
  padding: .55rem 1.2rem;
  font-size: .9rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dk);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.8rem; font-size: 1.1rem; }
.btn-full { width: 100%; display: block; padding: .9rem; font-size: 1rem; }

/* ── Badge ──────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  background: #FEF3E2;
  color: var(--accent-dk);
  border: 1px solid #FADBA0;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

/* ════════════════════════════ EARLY BANNER (topo) ══════════════════════════ */

.early-banner {
  background: #FEF3E2;
  border-bottom: 1px solid #FADBA0;
  padding: .6rem 1.5rem;
}

.early-banner-inner {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.early-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.8); }
}

.early-banner p {
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--accent-dk);
  margin: 0;
  text-align: center;
}

.early-banner a {
  color: var(--accent-dk);
  font-weight: 600;
  text-decoration: underline;
}

/* ════════════════════════════════ HERO ════════════════════════════════════ */

.hero {
  padding: 4rem 0 3.5rem;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

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

.subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }

.hero-price {
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Capa 3D do livro */

.hero-book {
  perspective: 900px;
  align-self: center;
}

.book-cover {
  display: flex;
  transform: rotateY(-18deg);
  box-shadow: 16px 16px 40px rgba(0,0,0,.25);
  border-radius: 3px 8px 8px 3px;
}

.book-spine {
  width: 36px;
  background: linear-gradient(to right, #7B4D1A, #A5611A);
  border-radius: 3px 0 0 3px;
  flex-shrink: 0;
}

.book-face {
  width: 180px;
  min-height: 260px;
  background: linear-gradient(145deg, #1C1C1A 0%, #2E2E2A 100%);
  border-radius: 0 8px 8px 0;
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F0EFE9;
}

.book-label {
  font-family: var(--font-ui);
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}

.book-title {
  font-size: 1.6rem;
  line-height: 1.15;
  color: #fff;
  margin: .3rem 0;
}

.book-subtitle {
  font-size: .75rem;
  color: #AAA;
  line-height: 1.5;
  margin: 0;
}

.book-author {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

/* ════════════════════════════════ DOR ═════════════════════════════════════ */

.section-pain {
  background: var(--bg-dark);
  color: #F0EFE9;
  padding: 4rem 0;
}

.section-pain .section-title { color: #fff; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pain-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.pain-icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }

.pain-card p { color: #ccc; margin: 0; font-size: .95rem; }

/* ════════════════════════════ LUHMANN ══════════════════════════════════════ */

.section-luhmann {
  background: #14130F;
  color: #F0EFE9;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-luhmann::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,125,46,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,125,46,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.luhmann-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.luhmann-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,125,46,.12);
  border: 1px solid rgba(201,125,46,.3);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.luhmann-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
}

.luhmann-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3rem;
  position: relative;
}

.luhmann-bio p {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.luhmann-bio strong { color: #fff; }

.luhmann-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex-shrink: 0;
}

.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,125,46,.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-align: center;
  min-width: 120px;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-ui);
  line-height: 1.1;
  margin-bottom: .3rem;
}

.stat-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .76rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.luhmann-quote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 1.4rem 2rem;
  margin: 2.5rem 0 2rem;
  background: rgba(255,255,255,.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.luhmann-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #e8e3d8;
  line-height: 1.7;
  margin-bottom: .7rem;
}

.luhmann-quote cite {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: #777;
}

.luhmann-bridge {
  text-align: center;
  font-size: 1.05rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.luhmann-bridge strong { color: var(--accent); }

/* ════════════════════════════════ SOLUÇÃO ══════════════════════════════════ */

.section-solution { padding: 5rem 0; background: var(--bg-alt); }

.solution-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.quote-block {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem;
  box-shadow: var(--shadow);
  align-self: center;
}

.quote-block blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: .8rem;
  line-height: 1.6;
}

.quote-block cite {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--text-muted);
}

/* ════════════════════════════════ BENEFÍCIOS ═══════════════════════════════ */

.section-benefits { padding: 5rem 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.benefit-num {
  display: block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.benefit-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.benefit-card p  { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ════════════════════════════════ APRENDA ══════════════════════════════════ */

.section-learn { padding: 5rem 0; background: var(--bg-alt); }

.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.chapter-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.chapter-badge {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: .25rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: .2rem;
}

.chapter-item p { color: var(--text-muted); margin: .2rem 0 0; font-size: .93rem; }

/* ════════════════════════════ EARLY ACCESS ════════════════════════════════ */

.section-early {
  padding: 5.5rem 0;
  background: #FEF8EE;
  border-top: 1px solid #FADBA0;
  border-bottom: 1px solid #FADBA0;
}

.early-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.early-tag {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dk);
  background: rgba(165,97,26,.1);
  border: 1px solid rgba(165,97,26,.25);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  display: block;
  width: fit-content;
}

.early-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 1.2rem;
  line-height: 1.25;
}

.early-text p { color: var(--text-muted); }
.early-text strong { color: var(--text); }

.early-perks {
  background: #fff;
  border: 1px solid #FADBA0;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 32px rgba(201,125,46,.1);
}

.early-perks h3 { font-size: 1.05rem; margin-bottom: 1.2rem; color: var(--text); }

.perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.8rem;
}

.perk-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-family: var(--font-ui);
  font-size: .93rem;
  color: var(--text);
}

.perk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}

.early-btn { width: 100%; text-align: center; margin-bottom: .6rem; }

.early-note {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.price-callout {
  background: #FEF3E2;
  border: 1px solid #FADBA0;
  border-radius: var(--radius);
  padding: .9rem 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--accent-dk);
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.price-callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* ════════════════════════════════ AUTORIDADE ═══════════════════════════════ */

.section-authority { padding: 5rem 0; }

.author-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-block h3 { margin-bottom: .6rem; }

/* ════════════════════════════════ DEPOIMENTOS ══════════════════════════════ */

.section-testimonials { padding: 5rem 0; background: var(--bg-alt); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.stars { color: var(--accent); font-size: 1rem; margin-bottom: .8rem; }
.testimonial-card p { font-style: italic; color: var(--text); font-size: .95rem; }
.testimonial-card cite {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--text-muted);
  display: block;
  margin-top: .8rem;
}

/* ════════════════════════════════ CTA FINAL ════════════════════════════════ */

.section-cta {
  background: var(--bg-dark);
  color: #F0EFE9;
  padding: 6rem 0;
  text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }

.cta-pre {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,125,46,.12);
  border: 1px solid rgba(201,125,46,.3);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.section-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-bottom: 1rem; }
.section-cta p  { color: #aaa; margin-bottom: 2rem; }

.cta-guarantee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: #aaa;
}

/* ════════════════════════════════ TÍTULOS GERAIS ═══════════════════════════ */

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: .3rem;
}
.section-title.left { text-align: left; }

/* ════════════════════════════════ FORMULÁRIOS ══════════════════════════════ */

.section-form { padding: 5rem 0; }
.form-wrapper { max-width: 480px; }
.form-header { margin-bottom: 2rem; }
.form-header h1 { font-size: 1.8rem; margin-bottom: .5rem; }
.form-header p  { color: var(--text-muted); }

.form-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

label {
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

input[type="email"],
input[type="number"] {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
  width: 100%;
}
input:focus { border-color: var(--accent); }

.alert {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-error { background: #FEE; border: 1px solid #FAA; color: #C33; }

.form-back {
  margin-top: 1.2rem;
  font-family: var(--font-ui);
  font-size: .875rem;
  color: var(--text-muted);
}

/* ── Checkout ────────────────────────────────────────────────────────────── */

.product-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
  font-size: .9rem;
}

.product-cover-mini { font-size: 2rem; flex-shrink: 0; }
.product-summary p  { color: var(--text-muted); margin: .1rem 0 0; font-size: .82rem; }

.valor-hints {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}

.hint-btn {
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.hint-btn:hover,
.hint-btn.active {
  border-color: var(--accent);
  background: #FEF3E2;
  color: var(--accent-dk);
}

.checkout-note {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ════════════════════════════════ ÁREA DO COMPRADOR ════════════════════════ */

.section-area { padding: 5rem 0; }
.area-wrapper { max-width: 760px; }
.area-success { text-align: center; margin-bottom: 2.5rem; }

.area-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #D4EDDA;
  color: #2E7D47;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.area-success h1 { font-size: 2rem; margin-bottom: .5rem; }
.area-success p  { color: var(--text-muted); }

.area-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.area-book-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: .9rem;
}
.area-icon      { font-size: 2rem; }
.area-book-info p { color: var(--text-muted); margin: .1rem 0 0; font-size: .82rem; }

.area-tips {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow);
}

.area-tips h2   { font-size: 1.2rem; margin-bottom: 1rem; }
.area-tips ol   { padding-left: 1.2rem; font-size: .95rem; }
.area-tips li   { margin-bottom: .6rem; color: var(--text-muted); }
.area-tips li strong { color: var(--text); }

/* ════════════════════════════════ FOOTER ═══════════════════════════════════ */

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--text-muted);
}

.footer-legal {
  margin-top: .4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-legal a:hover { color: var(--accent); text-decoration: none; }

.footer-sep { color: var(--border); }

/* ════════════════════════════ SEÇÃO PREVIEW PDF ══════════════════════════ */

.section-preview {
  padding: 5.5rem 0;
  background: #F5F4EE;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* two-column layout: viewer left, pitch right */
.preview-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media(max-width:800px){ .preview-layout { grid-template-columns: 1fr; } }

.preview-header { text-align: left; margin-bottom: 1.6rem; }

.preview-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dk);
  background: rgba(201,125,46,.1);
  border: 1px solid rgba(201,125,46,.3);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}

.preview-header h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: .4rem 0 .5rem; }
.preview-header p  { color: var(--text-muted); font-size: .93rem; max-width: 480px; margin: 0; }

.pdf-viewer-shell {
  background: #2A2A27;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0,0,0,.22);
}

.pdf-viewer-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  background: #1C1C1A;
  border-bottom: 1px solid #3A3A37;
}

.pdf-dot { width: 11px; height: 11px; border-radius: 50%; }
.pdf-dot-r { background: #FF5F56; }
.pdf-dot-y { background: #FFBD2E; }
.pdf-dot-g { background: #27C93F; }

.pdf-viewer-title {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: #888;
  margin-left: .5rem;
}

.pdf-fullscreen-btn {
  margin-left: auto;
  background: none;
  border: 1px solid #3A3A37;
  color: #777;
  font-family: var(--font-ui);
  font-size: .72rem;
  padding: .2rem .7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.pdf-fullscreen-btn:hover { background: #2a2a27; color: #ccc; border-color: #666; }

.pdf-viewer-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: #fff;
}

.pdf-fallback {
  display: none;
  padding: 3rem;
  text-align: center;
  color: #aaa;
  font-family: var(--font-ui);
}

.pdf-viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.2rem;
  background: #1C1C1A;
  border-top: 1px solid #3A3A37;
  flex-wrap: wrap;
  gap: .5rem;
}

.pdf-viewer-footer span { font-family: var(--font-ui); font-size: .8rem; color: #666; }
.pdf-viewer-footer a    { font-family: var(--font-ui); font-size: .8rem; color: var(--accent); font-weight: 600; }

/* ── coluna direita: pitch de venda ── */
.preview-right { padding-top: .5rem; }

.preview-aside-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dk);
  background: rgba(201,125,46,.1);
  border: 1px solid rgba(201,125,46,.3);
  padding: .28rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.preview-aside-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.preview-aside-lead {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.preview-features {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.preview-feat {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}

.preview-feat-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .05rem; }
.preview-feat strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.preview-feat p { font-family: var(--font-ui); font-size: .86rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.preview-aside-cta {
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 24px rgba(201,125,46,.12);
}
.preview-aside-cta .btn { width: 100%; text-align: center; margin-bottom: .6rem; display: block; }
.preview-aside-note {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ── modal tela cheia ── */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: stretch;
}
.pdf-modal--open { display: flex; }

.pdf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}

.pdf-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  background: #1C1C1A;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.pdf-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  background: #141414;
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}

.pdf-modal-close {
  background: none;
  border: 1px solid #444;
  color: #aaa;
  font-family: var(--font-ui);
  font-size: .82rem;
  padding: .28rem .75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
}
.pdf-modal-close:hover { background: #333; color: #fff; }

.pdf-modal-iframe {
  flex: 1;
  border: none;
  width: 100%;
  min-height: calc(100vh - 7rem);
}

/* ════════════════════════════ SEÇÃO GRAFO OBSIDIAN ════════════════════════ */

.section-graph {
  padding: 5.5rem 0;
  background: #0E0E0C;
  color: #F0EFE9;
  overflow: hidden;
  position: relative;
}

.graph-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.graph-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,125,46,.1);
  border: 1px solid rgba(201,125,46,.25);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}

.graph-header h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); color: #fff; margin: .5rem 0 .6rem; }
.graph-header p  { color: #888; font-size: .97rem; max-width: 540px; margin: 0 auto; }

.graph-canvas-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 0 80px rgba(201,125,46,.08), 0 24px 64px rgba(0,0,0,.4);
}

.graph-canvas-ui {
  position: absolute;
  top: .8rem;
  left: .8rem;
  display: flex;
  gap: .5rem;
  z-index: 5;
}

.graph-ui-dot { width: 10px; height: 10px; border-radius: 50%; }
.graph-ui-dot-r { background: #FF5F56; }
.graph-ui-dot-y { background: #FFBD2E; }
.graph-ui-dot-g { background: #27C93F; }

.graph-canvas-label {
  position: absolute;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: .75rem;
  color: #555;
  z-index: 5;
  white-space: nowrap;
}

#obsidian-graph {
  display: block;
  width: 100%;
  height: 440px;
  background: #0A0A08;
  cursor: grab;
}
#obsidian-graph:active { cursor: grabbing; }

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding: 0 1rem;
}

.graph-legend-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .8rem;
  color: #777;
}

.graph-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ══════════════════════ ÁREA: TEMPLATES DUO ══════════════════════════════ */

.area-section-title {
  font-size: 1.2rem;
  margin: 2.5rem 0 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.area-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.area-guide-banner {
  background: linear-gradient(135deg, #1C1C1A 0%, #2E2A1E 100%);
  border: 1px solid rgba(201,125,46,.3);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.area-guide-text h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.area-guide-text p  { font-family: var(--font-ui); font-size: .88rem; color: #aaa; margin: 0; }

.templates-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.template-duo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .15s, box-shadow .15s;
}

.template-duo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 32px rgba(201,125,46,.12);
}

.template-duo-card--advanced {
  background: linear-gradient(160deg, #1C1C1A 0%, #2A2218 100%);
  border-color: rgba(201,125,46,.35);
  color: #F0EFE9;
}

.template-duo-card--advanced h3   { color: #fff; }
.template-duo-card--advanced p    { color: #aaa; }
.template-duo-card--advanced code { color: var(--accent); background: rgba(201,125,46,.12); }

.template-duo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-duo-icon { font-size: 2rem; }

.template-duo-badge {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #EEFAEE;
  color: #1D6B27;
  border: 1px solid #A3D9A8;
}

.template-duo-badge--advanced {
  background: rgba(201,125,46,.15);
  color: var(--accent);
  border: 1px solid rgba(201,125,46,.4);
}

.template-duo-card h3 { font-size: 1.15rem; margin: 0; }
.template-duo-card p  { font-family: var(--font-ui); font-size: .88rem; margin: 0; line-height: 1.55; }

.template-duo-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  flex: 1;
}

.template-duo-list li { color: var(--text-muted); }
.template-duo-card--advanced .template-duo-list li { color: #888; }
.template-duo-card .btn { margin-top: auto; text-align: center; width: 100%; }

/* ══════════════════════ PÁGINA COMO USAR ══════════════════════════════════ */

.section-guide { padding: 4rem 0 6rem; }
.guide-wrapper { max-width: 760px; }

.guide-hero {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.guide-back:hover { color: var(--accent); text-decoration: none; }

.guide-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.guide-hero p  { font-size: 1.08rem; color: var(--text-muted); max-width: 580px; }

.guide-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  margin-bottom: 3rem;
}

.guide-toc h4 {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .9rem;
}

.guide-toc ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.guide-toc a  { font-family: var(--font-ui); font-size: .9rem; color: var(--text); }
.guide-toc a:hover { color: var(--accent); }

.guide-step { margin-bottom: 3rem; scroll-margin-top: 5rem; }

.guide-step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

.guide-step h2 { font-size: 1.3rem; line-height: 1.25; margin: 0; }
.guide-step p, .guide-step li { color: var(--text-muted); font-size: .97rem; }
.guide-step ol, .guide-step ul { padding-left: 1.4rem; margin: .6rem 0; display: flex; flex-direction: column; gap: .5rem; }
.guide-step li strong { color: var(--text); }

.guide-code-block {
  background: #1C1C1A;
  border: 1px solid #3A3A37;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.guide-code-block pre { font-family: 'Courier New', monospace; font-size: .88rem; color: #C97D2E; line-height: 1.7; margin: 0; }
.guide-code-block .code-comment { color: #555; }
.guide-code-block .code-prop    { color: #7EB8D4; }
.guide-code-block .code-val     { color: #A8D4A0; }

.guide-tip {
  background: #FEF8EE;
  border: 1px solid #FADBA0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--accent-dk);
}
.guide-tip strong { color: var(--accent-dk); }

.guide-visual-mock {
  background: #1C1C1A;
  border: 1px solid #3A3A37;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  color: #888;
  line-height: 1.8;
}

.guide-visual-mock .mock-folder { color: #C97D2E; font-weight: 700; }
.guide-visual-mock .mock-file   { color: #aaa; }
.guide-visual-mock .mock-active { color: #7EB8D4; }

.guide-note-type {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1rem 0;
}

.guide-note-type-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .6rem;
}

.guide-note-badge {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.badge-rascunho      { background: #FEE; color: #C33; border: 1px solid #FAAAAA; }
.badge-bibliografica { background: #EEF4FE; color: #2855A0; border: 1px solid #B3CBF7; }
.badge-permanente    { background: #EEFAEE; color: #1D6B27; border: 1px solid #A3D9A8; }
.badge-diaria        { background: #F5EEF8; color: #6B2D8B; border: 1px solid #C7A3D9; }

.guide-note-type h4 { font-size: 1rem; margin: 0; }
.guide-note-type p  { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ══════════════════════ COMO USAR: FLUXO ══════════════════════════════════ */

.guide-flow-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.2rem 0 1.6rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
}

.flow-item {
  padding: .35rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.flow-item--seed  { background: #FEF3E2; color: var(--accent-dk); border: 1px solid #FADBA0; }
.flow-item--bib   { background: #EEF4FE; color: #2855A0; border: 1px solid #B3CBF7; }
.flow-item--perm  { background: #EEFAEE; color: #1D6B27; border: 1px solid #A3D9A8; }
.flow-item--flash { background: #F5EEF8; color: #6B2D8B; border: 1px solid #C7A3D9; }

.flow-arrow { color: var(--text-muted); font-size: 1rem; }

.guide-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.guide-flow-step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
}

.guide-flow-step h4 { font-size: .97rem; margin: 0 0 .4rem; color: var(--text); }
.guide-flow-step p  { font-family: var(--font-ui); font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ════════════════════════════ RESPONSIVO ══════════════════════════════ */

/* Capa do livro como imagem — tamanho reduzido, proporcional */
.book-cover-img {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 12px 12px 32px rgba(0,0,0,.28);
  transform: rotateY(-18deg);
  display: block;
}

@media (max-width: 700px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-book          { display: none; }
  .solution-inner     { grid-template-columns: 1fr; }
  .luhmann-inner      { grid-template-columns: 1fr; }
  .luhmann-stats      { grid-template-columns: repeat(2, 1fr); }
  .early-inner        { grid-template-columns: 1fr; }
  .area-card          { flex-direction: column; align-items: flex-start; }
  .templates-duo      { grid-template-columns: 1fr; }
  .guide-flow-bar     { flex-direction: column; align-items: flex-start; }
}

/* ── Área: canvas preenche o wrapper do grafo ── */
#areaGraphCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

