/* =========================================================
   ALÉM DAS ORIGENS — Página de vendas

   1. Variáveis
   2. Base
   3. Utilitários
   4. Botões
   5. Seções
   6. Componentes
   7. Responsivo
   8. Extras & Animações
========================================================= */

/* 1. VARIÁVEIS (edite cores e fontes aqui) */
:root {
  --cream: #f3e6d3;
  --paper: #ead8be;
  --sand: #d9b993;
  --caramel: #b7834f;
  --rust: #8a5530;
  --brown: #5b3820;
  --espresso: #2e1c10;
  --ink: #23160c;
  
  --font-brand: "Cinzel Decorative", serif;
  --font-title: "Cinzel", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Lato", sans-serif;
  
  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(46, 28, 16, .45);
  --container: 1140px;
}

/* 2. BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  padding-top: 40px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600; /* CORREÇÃO: Peso explícito para evitar o bug do CoreText na Apple (faux-bold) */
  line-height: 1.25;
  color: var(--espresso);
}

p + p {
  margin-top: 1rem;
}

/* 3. UTILITÁRIOS */
.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
  margin-inline: auto;
}

.center {
  text-align: center;
}

.muted {
  color: var(--brown);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: var(--sand);
}

/* 4. BOTÕES */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600; /* CORREÇÃO: Alterado de 700 para 600 para segurança no iOS */
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: .9rem;
  padding: 1.05rem 2.2rem;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, background .2s;
  margin-top: 2rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--caramel), var(--rust));
  color: var(--cream);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(46,28,16,.6);
}

.btn--outline {
  border: 1.5px solid var(--caramel);
  color: var(--cream);
}

.btn--outline:hover {
  background: var(--caramel);
}

.btn--lg {
  font-size: 1rem;
  padding: 1.25rem 2.6rem;
}

/* 5. SEÇÕES */
.section {
  padding: 6rem 0;
}

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  background: var(--espresso);
  color: var(--paper);
}

.section--dark .section__title, 
.section--dark h3, 
.section--dark h4 {
  color: var(--cream);
}

.section--texture {
  background: linear-gradient(rgba(46,28,16,.92), rgba(46,28,16,.94)), url("../img/livros-registro.jpg") center/cover;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 14rem;
  text-align: center;
  background: linear-gradient(180deg, #f6ecdd 0%, var(--paper) 45%, var(--sand) 100%);
}

.hero__mountains {
  position: absolute;
  inset: auto 0 0 0;
  height: 320px;
  background: 
    radial-gradient(120% 90% at 20% 100%, var(--brown) 40%, transparent 41%),
    radial-gradient(110% 80% at 85% 100%, var(--rust) 42%, transparent 43%),
    radial-gradient(140% 70% at 50% 100%, var(--caramel) 45%, transparent 46%);
  opacity: .9;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: 120px;
  margin: 0 auto 1rem;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--espresso);
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-title);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--brown);
  margin-top: .5rem;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 860px;
  margin: 3rem auto 1.25rem;
}

.hero__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--brown);
}

.hero__badge {
  display: flex;
  width: fit-content;
  flex-direction: column;
  gap: .2rem;
  margin: 2rem auto 0;
  padding: .9rem 1.6rem;
  border: 1px solid var(--caramel);
  border-radius: var(--radius);
  background: rgba(243,230,211,.6);
  font-size: .95rem;
}

.hero__badge-label {
  font-family: var(--font-title);
  font-weight: 600; /* CORREÇÃO */
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
}

/* Split (texto + imagem) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* Seção 2 — Cards Estáticos (Grade) */
.stack-cards {
  list-style: none;
  margin-top: 2rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stack-cards__item {
  background: #fbf4ea;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border-top: 1px solid rgba(183, 131, 79, .4);
  border-right: 1px solid rgba(183, 131, 79, .28);
  border-bottom: 1px solid rgba(183, 131, 79, .35);
  border-left: 4px solid var(--caramel);
  box-shadow: 0 -8px 24px -8px rgba(46, 28, 16, .16), 0 12px 28px -12px rgba(46, 28, 16, .22);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stack-cards__item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--espresso);
  margin-bottom: 0.5rem;
}

.stack-cards__item p {
  font-size: 0.98rem;
  margin: 0;
  color: var(--ink);
}

.box-closing {
  margin-top: 3.5rem;
  text-align: center;
  padding: 2.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(183,131,79,.3);
  position: relative;
  z-index: 10;
}

.box-closing h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--espresso);
}

.box-closing p {
  font-size: 1.1rem;
}

.box-closing strong {
  display: block;
  margin-top: 1rem;
  color: var(--rust);
  font-size: 1.15rem;
}

/* Seção 3 — Apresentação */
.section-apresentacao {
  display: flex;
  flex-direction: column;
}

.section-apresentacao .split-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.section-apresentacao .text-content {
  text-align: left;
}

.section-apresentacao .text-content h2,
.section-apresentacao .text-content .eyebrow {
  text-align: left;
}

.section-apresentacao .text-content p {
  text-align: left;
  margin-bottom: 1.2rem;
}

.section-apresentacao .image-content img {
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.section-apresentacao .btn-wrapper {
  text-align: center;
  width: 100%;
  margin-top: 4rem;
}

/* Final */
.final {
  position: relative;
  padding: 7rem 0;
  color: var(--cream);
  overflow: hidden;
}

.final__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(35,22,12,.82), rgba(35,22,12,.9)), url("../img/hero-arquivo.jpg") center/cover;
}

.final__inner {
  position: relative;
}

.final .section__title {
  color: var(--cream);
}

.final__logo {
  width: 80px;
  margin: 0 auto 1.5rem;
  filter: invert(88%) sepia(20%) saturate(400%) hue-rotate(340deg);
}

.footer {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
}

/* 6. COMPONENTES */
.list-check {
  list-style: none;
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0;
}

.list-check li {
  padding-left: 1.8rem;
  position: relative;
}

.list-check li::before {
  content: "❧";
  position: absolute;
  left: 0;
  color: var(--caramel);
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brown);
  border-left: 3px solid var(--caramel);
  padding-left: 1.25rem;
  margin-top: 2rem;
}

.quote.center {
  border: 0;
  padding: 0;
  margin-top: 3rem;
}

.notice {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border-left: 4px solid var(--rust);
  border-radius: var(--radius);
}

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.grid--cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fbf4ea;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card--featured {
  grid-column: span 1;
  background: var(--espresso);
  color: var(--paper);
}

.card--featured h3 {
  color: var(--cream);
}

.card__num {
  font-family: var(--font-title);
  color: var(--caramel);
  font-size: 1.6rem;
  font-weight: 600; /* CORREÇÃO */
}

.card h3 {
  font-size: 1.1rem;
  margin: .5rem 0 .75rem;
}

.grid--themes {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.theme {
  background: var(--cream);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--rust);
  box-shadow: var(--shadow);
}

.theme__tag {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
}

.theme h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-top: .6rem;
  font-weight: 600;
}

.grid--info {
  grid-template-columns: repeat(3, 1fr);
}

.info {
  border: 1px solid rgba(217,185,147,.3);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.info__icon {
  font-size: 1.8rem;
  color: var(--caramel);
}

.info h3 {
  font-size: 1rem;
  margin: .5rem 0;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.benefits {
  list-style: none;
  counter-reset: b;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.benefits li {
  counter-increment: b;
  border-top: 2px solid var(--caramel);
  padding-top: 1.25rem;
}

.benefits li::before {
  content: counter(b, upper-roman);
  font-family: var(--font-title);
  color: var(--rust);
  font-size: 1.4rem;
  font-weight: 600; /* CORREÇÃO */
}

.benefits h3 {
  font-size: 1rem;
  margin: .4rem 0;
}

.benefits p {
  font-size: .95rem;
}

.portrait-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sand), var(--brown));
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-title);
  color: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.credentials {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: .6rem;
}

.credentials li {
  padding: .75rem 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--caramel);
}

.grid--plans {
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.plan {
  position: relative;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(217,185,147,.35);
  border-radius: var(--radius);
}

.plan--highlight {
  background: var(--cream);
  color: var(--ink);
  transform: scale(1.06);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  border-color: var(--caramel);
}

.section--dark .plan--highlight h3 {
  color: var(--espresso);
}

.plan__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rust);
  color: var(--cream);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 99px;
  white-space: nowrap;
}

.plan__name {
  font-size: 1.4rem;
}

.plan__off {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 700;
  color: var(--caramel);
  font-size: .85rem;
  letter-spacing: .1em;
}

.plan__old {
  text-decoration: line-through;
  opacity: .7;
  margin-top: 1rem;
}

.plan__price {
  font-family: var(--font-title);
  font-size: 2.3rem;
  font-weight: 600; /* CORREÇÃO */
  margin-top: 0 !important;
}

.plan__price small {
  font-size: .9rem;
  font-weight: 500;
}

.plan__note {
  font-size: .9rem;
  opacity: .85;
  margin-top: .25rem !important;
}

.plan .btn {
  margin-top: 1.5rem;
}

.plan--highlight .btn--primary {
  color: var(--cream);
}

.plans__terms {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.6rem;
  color: var(--sand);
}

.faq {
  margin-top: 2.5rem;
  display: grid;
  gap: .75rem;
}

.faq details {
  background: #fbf4ea;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600; /* CORREÇÃO */
  color: var(--espresso);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::after {
  content: "+";
  color: var(--rust);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: .8rem;
}

/* 7. RESPONSIVO */
@media (max-width: 960px) {
  .split, .grid--cards, .grid--info, .grid--plans {
    grid-template-columns: 1fr 1fr;
  }
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .plan--highlight {
    transform: none;
  }
  .section-apresentacao .split-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section-apresentacao .text-content {
    text-align: center;
  }
  .section-apresentacao .text-content h2,
  .section-apresentacao .text-content .eyebrow,
  .section-apresentacao .text-content p {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }
  .grid--cards, .grid--info, .grid--plans, .benefits, .stack-cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-bottom: 10rem;
  }
}

/* 8. MARQUEE E ASSINATURA */
.marquee-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: var(--caramel);
  padding: 10px 0;
  z-index: 9999;
  overflow: hidden;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  margin: 0 30px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.agencia-footer {
  margin-top: 16px;
  text-align: center;
}

.agencia-footer a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8rem;
}

.agencia-footer a:hover {
  color: #fff;
}