/* ==========================================================================
   LANDING — SEITA ORLANDISTA
   Direção: imprensa doutrinária. Gravura, filete, numeral romano, selo.
   Nada de card genérico: hierarquia por régua tipográfica e assimetria.
   ========================================================================== */

:root {
  --color-paper: #F5F2E9;
  --color-paper-deep: #EDE8DA;
  --rule: 1px solid var(--color-gray-200);
  --rule-dark: 1px solid rgba(255, 255, 255, 0.13);
  --rule-gold: 1px solid rgba(255, 204, 0, 0.35);
}

/* --------------------------------------------------------------------------
   ESTRUTURA DE SEÇÃO
   -------------------------------------------------------------------------- */
.section {
  padding: 7rem 0;
  position: relative;
}

.section--tight { padding: 4.5rem 0; }

.section-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--color-white); }
.section-dark p { color: rgba(255, 255, 255, 0.66); }

.section-paper {
  background: var(--color-paper);
}

/* Cabeçalho editorial — substitui o "badge + h2 + subtítulo" centralizado */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3.5rem 4rem;
  align-items: end;
  margin-bottom: 4.5rem;
}

.chapter__kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.section-dark .chapter__kicker { color: rgba(255, 255, 255, 0.45); }

.chapter__num {
  color: var(--color-primary);
  font-weight: 500;
}

.chapter__kicker-rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
  transform-origin: left center;
}

.chapter__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-weight: 600;
  text-wrap: balance;
}

.chapter__title .gothic {
  font-family: var(--font-gotica);
  font-weight: 400;
  color: var(--color-primary);
  font-size: 1.1em;
  line-height: 0.9;
}

.section-dark .chapter__title .gothic { color: var(--color-primary); }

.chapter__lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  padding-bottom: 0.4rem;
  border-left: 2px solid var(--color-primary);
  padding-left: 1.5rem;
}

.section-dark .chapter__lede { color: rgba(255, 255, 255, 0.62); }

/* Rótulo mono reutilizável */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gray-500);
}

/* (Hero section moved to css/sections/hero.css) */

/* ==========================================================================
   2. TARJA CORRIDA (credenciais)
   ========================================================================== */
.ticker {
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0.95rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ticker .marquee__item { font-weight: 500; }
.ticker .marquee__sep { color: rgba(0, 0, 0, 0.42); }

/* ==========================================================================
   3. ECOSSISTEMA — isolado no arquivo modular: css/sections/ecossistema.css
   ========================================================================== */

/* ==========================================================================
   4. CAP. I — isolado no arquivo modular: css/sections/autoridade.css
   ========================================================================== */

/* ==========================================================================
   5. TRAJETÓRIA — isolado no arquivo modular: css/sections/trajetoria.css
   ========================================================================== */

/* ==========================================================================
   6. O LIVRO AMARELO
   ========================================================================== */
.book {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 4.5rem;
  align-items: start;
}

.book__figure { position: sticky; top: calc(var(--header-height) + 3rem); }
.book__figure svg { width: 100%; height: auto; overflow: visible; }

.book__spine-tick { fill: rgba(255, 204, 0, 0.28); transition: fill 400ms ease; }
.book__spine-tick.is-lit { fill: var(--color-primary); }

.book__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: var(--rule-dark);
}

.book__meta-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.book__meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

/* ========================================================================== 
   7. A SEITA — pilares com ícone desenhado
   ========================================================================== */
#comunidade { padding: 4.75rem 0 5rem; }

#comunidade .chapter {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem 3.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.35rem;
  border-bottom: var(--rule-dark);
}

#comunidade .chapter__kicker { margin-bottom: 0.75rem; }

#comunidade .chapter__title {
  font-size: clamp(1.85rem, 3.25vw, 2.7rem);
  line-height: 1;
}

#comunidade .chapter__title br { display: none; }

#comunidade .chapter__lede {
  max-width: 43rem;
  padding-bottom: 0;
  padding-left: 1.1rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.pledges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule-dark);
  border-bottom: var(--rule-dark);
}

.pledge {
  padding: 2rem 1.8rem 2.2rem;
  border-right: var(--rule-dark);
  position: relative;
  transition: background 500ms var(--ease-out-expo);
}

.pledge:last-child { border-right: none; }
.pledge:hover { background: rgba(255, 204, 0, 0.035); }

.pledge__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
}

.pledge__icon svg { width: 100%; height: 100%; overflow: visible; }
.pledge__icon svg [data-draw] { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pledge__num {
  position: absolute;
  top: 1.65rem;
  right: 1.65rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: 0.04em;
}

.pledge__title {
  font-size: 1.24rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.012em;
  max-width: 16ch;
}

.pledge__text { font-size: 0.94rem; line-height: 1.55; margin: 0; }

/* Cadência de entregas */
.cadence {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.25rem;
  border: var(--rule-dark);
}

.cadence__item {
  flex: 1 1 220px;
  padding: 1.05rem 1.35rem;
  border-right: var(--rule-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cadence__item:last-child { border-right: none; }

.cadence__freq {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.cadence__what {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--color-white);
  line-height: 1.35;
}

/* --- Selo de fundador --- */
.founder {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.09), transparent 55%),
    var(--color-black-surface);
  border: var(--rule-gold);
  position: relative;
  overflow: hidden;
}

.founder__seal {
  width: 132px;
  height: 132px;
  position: relative;
}

.founder__seal svg { width: 100%; height: 100%; }
.founder__seal text { fill: var(--color-primary); }

.founder__seal-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
}

.founder__seal-core b {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
}

.founder__seal-core span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.founder__title {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.founder__text {
  font-size: 0.98rem;
  line-height: 1.52;
  max-width: 52ch;
  margin: 0;
}

/* ==========================================================================
   8. ENSAIOS — índice editorial + destaque
   ========================================================================== */
.essays__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: var(--rule);
  margin-bottom: 0.5rem;
}

.essays__feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-black);
}

.essays__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.08);
  transition: transform 1.1s var(--ease-out-expo), filter 600ms ease;
}

.essays__feature:hover .essays__feature-media img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1);
}

.essays__feature-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0.9rem 0 0.9rem;
  text-wrap: balance;
}

.essays__feature-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.essay-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 9rem 6rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: var(--rule);
  transition: padding-left 400ms var(--ease-out-expo);
}

.essay-row:hover { padding-left: 1rem; }

.essay-row__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-gray-300);
  letter-spacing: 0.08em;
}

.essay-row:hover .essay-row__num { color: var(--color-primary); }

.essay-row__title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.essay-row__meta,
.essay-row__time {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.essay-row__time { text-align: right; }

.essays__more { margin-top: 3rem; text-align: center; }

/* ==========================================================================
   9. FAQ — acordeão com filete
   ========================================================================== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: var(--rule);
}

.faq-item {
  border-bottom: var(--rule);
  transition: background 400ms ease;
}

.faq-item.active { background: rgba(255, 204, 0, 0.045); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.7rem 1.25rem 1.7rem 0;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  color: var(--color-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: padding-left 400ms var(--ease-out-expo), color 300ms ease;
}

.faq-item.active .faq-question,
.faq-question:hover { padding-left: 1.25rem; }

.faq-question .toggle-symbol {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  position: relative;
  border: 1px solid var(--color-gray-300);
  border-radius: 50%;
  transition: transform 500ms var(--ease-out-expo), border-color 300ms ease, background 300ms ease;
}

.faq-question .toggle-symbol::before,
.faq-question .toggle-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--color-gray-700);
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease, background 300ms ease;
}

.faq-question .toggle-symbol::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item.active .toggle-symbol {
  transform: rotate(135deg);
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.faq-item.active .toggle-symbol::before,
.faq-item.active .toggle-symbol::after { background: var(--color-black); }

/* Altura animada via JS (max-height calculado) */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 520ms var(--ease-out-expo), opacity 380ms ease, padding 520ms var(--ease-out-expo);
  padding: 0 4rem 0 1.25rem;
}

.faq-item.active .faq-answer {
  opacity: 1;
  padding-bottom: 1.9rem;
}

.faq-answer p {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--color-gray-700);
  margin: 0;
}

/* ==========================================================================
   10. CHAMADA FINAL
   ========================================================================== */
.closing {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.closing__engraving {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.4;
}

.closing__engraving svg { width: min(720px, 90vw); height: auto; }

.closing__inner { position: relative; z-index: 2; }

.closing__title {
  font-family: var(--font-gotica);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--color-white);
  margin: 1.5rem 0;
  letter-spacing: 0.01em;
}

.closing__title em {
  font-style: normal;
  color: var(--color-primary);
}

.closing__text {
  font-size: 1.15rem;
  line-height: 1.68;
  max-width: 56ch;
  margin: 0 auto 2.75rem;
  color: rgba(255, 255, 255, 0.66);
}

.closing__note {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 992px) {
  .section { padding: 5rem 0; }

  .chapter {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 3rem;
  }
  .chapter__lede { border-left-width: 2px; }

  #comunidade .chapter {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    margin-bottom: 2.25rem;
  }
  #comunidade .chapter__title br { display: initial; }

  .book { grid-template-columns: 1fr; gap: 3rem; }
  .book__figure { position: static; max-width: 300px; }

  .pledges { grid-template-columns: 1fr; }
  .pledge { border-right: none; border-bottom: var(--rule-dark); padding: 1.75rem 0; }
  .pledge:last-child { border-bottom: none; }
  .pledge__num { top: 1.75rem; right: 0; }

  .cadence__item { border-right: none; border-bottom: var(--rule-dark); flex: 1 1 100%; }
  .cadence__item:last-child { border-bottom: none; }

  .founder {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.35rem;
    padding: 1.75rem;
  }

  .essays__feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .essay-row { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .essay-row__meta { grid-column: 2; }
  .essay-row__time { display: none; }

  .closing { padding: 5.5rem 0; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  .book__meta { grid-template-columns: 1fr; gap: 1.25rem; }

  .part { grid-template-columns: 1fr; gap: 0.75rem; }
  .part__num { font-size: 2rem; }

  .founder__seal { width: 120px; height: 120px; }

  .faq-answer { padding-right: 1rem; }
}

/* --------------------------------------------------------------------------
   COMPLEMENTOS
   -------------------------------------------------------------------------- */

/* O destaque de ensaios é um link inteiro: herda a cor e não sublinha */
.essays__feature { color: inherit; }
.essays__feature-title { transition: color 300ms ease; }
.essays__feature:hover .essays__feature-title { color: var(--color-gray-700); }

/* O botão do modal Pix dentro do card preto precisa de contraste próprio */
.pricing-card.featured .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-white);
}
.pricing-card.featured .btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 204, 0, 0.08);
}

/* Foco visível — navegação por teclado não pode sumir no fundo preto */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   HERO CLARO — variante em papel
   Sobrescreve o hero escuro. Tinta preta sobre creme, amarelo só em acento:
   amarelo sobre creme não passa em contraste, então ele nunca carrega texto.
   ========================================================================== */

.hero {
  background:
    radial-gradient(120% 90% at 76% 18%, #FFFDF6 0%, transparent 60%),
    var(--color-paper);
  color: var(--color-gray-900);
  border-bottom: 1px solid var(--color-gray-200);
}

/* Grão vira multiplicação sobre fundo claro */
.hero.grain::after {
  mix-blend-mode: multiply;
  opacity: 0.038;
}

/* Gravura: filete dourado fosco + anéis de tinta */
.hero__engraving .engraving__rosette { stroke: #C9A227; }
.hero__engraving .engraving__rosette--counter { stroke: rgba(15, 17, 21, 0.45); }
.hero__engraving svg { opacity: 0.42; }

.hero__vignette {
  background:
    radial-gradient(110% 80% at 80% 20%, rgba(255, 204, 0, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, transparent 68%, var(--color-paper) 100%);
}

.engraving__sweep {
  background: linear-gradient(100deg, transparent 42%, rgba(255, 204, 0, 0.16) 50%, transparent 58%);
}

.hero__rail { color: var(--color-gray-500); }

.hero__kicker {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-900);
  box-shadow: var(--shadow-subtle);
}

.hero__title { color: var(--color-black); }
.hero__title .gothic { color: var(--color-black); }

/* Traço mais encorpado: sobre creme o filete fino sumiria */
.hero__underline path {
  stroke-width: 5;
  opacity: 1;
}

.hero__lede { color: var(--color-gray-700); }
.hero__lede strong { color: var(--color-black); }

.hero__actions .btn-ghost {
  border-color: var(--color-gray-300);
  color: var(--color-gray-900);
}
.hero__actions .btn-ghost:hover {
  border-color: var(--color-black);
  color: var(--color-black);
  background: rgba(15, 17, 21, 0.04);
}

.hero__stats { border-top: 1px solid var(--color-gray-300); }
.hero__stat-value { color: var(--color-black); }
/* O "+" e o "meses" pedem um ouro escurecido para não sumir no creme */
.hero__stat-value .suffix { color: #A67C00; }
.hero__stat-label { color: var(--color-gray-500); }

/* O retrato continua preto: é o ponto de maior contraste da dobra */
.hero__frame {
  border: none;
  box-shadow: 0 40px 80px -32px rgba(15, 17, 21, 0.45);
}

.hero__caption { color: var(--color-gray-500); }
.hero__caption b { color: #A67C00; }

.hero__cue { color: var(--color-gray-500); }
.hero__cue-track { background: var(--color-gray-300); }

/* ==========================================================================
   TARJA — agora escura, para costurar o hero claro ao ecossistema preto
   ========================================================================== */
.ticker {
  background: var(--color-black);
  color: var(--color-white);
  border-top: none;
  border-bottom: none;
}

.ticker .marquee__sep { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   AJUSTES DE CONTRASTE
   O amarelo Missão só carrega texto sobre fundo escuro. Em seção clara a
   gótica volta a ser tinta preta — como no hero.
   -------------------------------------------------------------------------- */
.section-paper .chapter__title .gothic,
.section:not(.section-dark) .chapter__title .gothic {
  color: var(--color-black);
}

/* Numeral do capítulo e rótulos mono em fundo claro: ouro escurecido */
.section:not(.section-dark) .chapter__num,
.section:not(.section-dark) .essay-row:hover .essay-row__num {
  color: #A67C00;
}

/* A peça preta dos planos avança 2rem para baixo: dá folga para a garantia */
.pricing-assurance { margin-top: 4.5rem; }

@media (max-width: 640px) {
  html { font-size: 16px; }

  .book__meta { grid-template-columns: 1fr; gap: 1.25rem; }

  .part { grid-template-columns: 1fr; gap: 0.75rem; }
  .part__num { font-size: 2rem; }

  .founder__seal { width: 120px; height: 120px; }

  .faq-answer { padding-right: 1rem; }
}

/* --------------------------------------------------------------------------
   COMPLEMENTOS
   -------------------------------------------------------------------------- */

/* O destaque de ensaios é um link inteiro: herda a cor e não sublinha */
.essays__feature { color: inherit; }
.essays__feature-title { transition: color 300ms ease; }
.essays__feature:hover .essays__feature-title { color: var(--color-gray-700); }

/* O botão do modal Pix dentro do card preto precisa de contraste próprio */
.pricing-card.featured .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-white);
}
.pricing-card.featured .btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 204, 0, 0.08);
}

/* Foco visível — navegação por teclado não pode sumir no fundo preto */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 992px) {
  /* Em tela estreita a rosácea da esquerda só suja o fundo do retrato */
  .hero__engraving svg.hero__engraving--left { display: none; }
  .hero::before { opacity: 0.34; }
}
