/* ============================================================
   Propedêutica Vascular — A Arte da Semiologia
   Paleta extraída da capa do livro (mesmo princípio dos outros
   sites do Dr. Amato): azul-marinho, terracota e dourado sobre
   papel off-white, com o motivo de "ondas vasculares" da capa.
   ============================================================ */

:root {
  --navy:        #16456E;
  --navy-dark:   #0E2E4C;
  --navy-deep:   #0A2138;
  --blue:        #1E5A8C;
  --terracotta:  #B85C50;
  --terracotta-dark: #9C4A40;
  --gold:        #E3B64F;
  --gold-dark:   #C89A3A;
  --off-white:   #FAF6EF;
  --paper:       #FFFDF8;
  --ink:         #12202E;
  --ink-soft:    #4A5A68;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --radius:     14px;
  --radius-sm:  9px;
  --container:  1140px;
  --shadow-sm:  0 2px 10px rgba(14, 46, 76, .08);
  --shadow-md:  0 10px 30px rgba(14, 46, 76, .14);
  --shadow-lg:  0 24px 60px rgba(14, 46, 76, .22);
  --ease-spring: cubic-bezier(.34, 1.4, .4, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
[hidden] { display: none !important; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 820px; }

/* ── Tipografia de seção ─────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: var(--paper); }
.section--dark {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-deep));
  color: var(--off-white);
}
.section-eyebrow {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9rem;
  text-align: center;
}
.section--dark .section-eyebrow { color: var(--gold); }
.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1.1rem;
  color: var(--navy-dark);
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
}
.section--dark .section-title { color: var(--off-white); }
.section--dark .section-title em { color: var(--gold); }
.section-desc {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section--dark .section-desc { color: rgba(250, 246, 239, .75); }

/* ── Botões ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s, background .25s;
  text-align: center;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 69, 110, .35);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(22, 69, 110, .45); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(200, 154, 58, .4);
}
.btn--gold:hover { box-shadow: 0 14px 34px rgba(200, 154, 58, .5); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--ghost:hover { background: rgba(22, 69, 110, .07); }
.btn--ghost-light {
  background: transparent;
  color: var(--off-white);
  border: 2px solid rgba(250, 246, 239, .7);
}
.btn--ghost-light:hover { background: rgba(250, 246, 239, .12); }

/* ── Banner de idioma ────────────────────────────────────── */
.lang-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .55rem 2.4rem .55rem 1rem;
  background: var(--navy-deep);
  color: var(--off-white);
  font-size: .9rem;
}
.lang-banner a { color: var(--gold); font-weight: 800; }
.lang-banner button {
  position: absolute; right: .6rem;
  background: none; border: none; color: var(--off-white);
  font-size: 1.2rem; cursor: pointer; opacity: .7;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: box-shadow .3s, background .3s;
  background: rgba(250, 246, 239, 0);
}
.nav.scrolled {
  background: rgba(250, 246, 239, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--navy-dark);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
}
.nav__brand em { color: var(--terracotta); font-style: italic; }
.nav__mark { width: 30px; height: 30px; flex: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
  transition: color .2s;
}
.nav__links a:not(.btn):hover { color: var(--terracotta); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2.5px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, var(--off-white) 100%);
}
#waves-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 69, 110, .10) 1px, transparent 1.4px);
  background-size: 15px 15px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
}
.eyebrow {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  color: var(--navy-dark);
  letter-spacing: -.01em;
}
.hero__title-accent {
  display: block;
  color: var(--terracotta);
  font-style: italic;
}
.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold-dark);
  margin: .6rem 0 1.3rem;
}
.hero__desc {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-bottom: 1.8rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.6rem;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  color: var(--ink-soft);
  font-size: .92rem;
}
.hero__chips li {
  background: rgba(255, 253, 248, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(22, 69, 110, .12);
  border-radius: 999px;
  padding: .35rem .95rem;
  box-shadow: var(--shadow-sm);
}
.hero__chips strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-right: .25rem;
}
.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(22, 69, 110, .4);
  border-radius: 14px;
}
.hero__scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--terracotta);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
}

/* ── Livro 3D (tilt com mouse) ───────────────────────────── */
.hero__book {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.book-3d {
  --rx: 4deg;
  --ry: -20deg;
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 453 / 656;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .12s linear;
  animation: bookFloat 6s ease-in-out infinite;
}
@keyframes bookFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.book-3d__front, .book-3d__back {
  position: absolute;
  inset: 0;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  backface-visibility: hidden;
}
.book-3d__front {
  transform: translateZ(16px);
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, .18);
}
.book-3d__front img { width: 100%; height: 100%; object-fit: cover; }
.book-3d__back {
  transform: rotateY(180deg) translateZ(16px);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: 8px 3px 3px 8px;
}
.book-3d__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 32px;
  transform-origin: left center;
  transform: rotateY(90deg) translateZ(16px);
  background: linear-gradient(to right, var(--navy-deep), var(--navy) 60%, var(--blue));
}
.book-3d__pages {
  position: absolute;
  right: 0; top: 2px; bottom: 2px;
  width: 32px;
  transform-origin: right center;
  transform: rotateY(90deg) translateZ(-16px);
  background: repeating-linear-gradient(to right,
    #f3ecdd 0 2px, #e4d9c3 2px 3px, #faf5ea 3px 5px);
}
.book-3d__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, .34) 46%,
    rgba(255, 255, 255, .08) 54%,
    transparent 68%);
  background-size: 280% 100%;
  background-position: var(--sheen-x, 85%) 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.book-3d__shadow {
  position: absolute;
  bottom: -13%;
  left: 50%;
  width: 78%;
  height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(14, 46, 76, .38), transparent 68%);
  filter: blur(7px);
  animation: shadowPulse 6s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(.88); opacity: .75; }
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee {
  background: var(--navy-dark);
  color: var(--gold);
  overflow: hidden;
  padding: .9rem 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Flipbook (prévia 3D) ────────────────────────────────── */
.section--previa {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(227, 182, 79, .14), transparent 60%),
    radial-gradient(700px 380px at 8% 100%, rgba(184, 92, 80, .10), transparent 60%),
    var(--paper);
}
.flipbook-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 1rem 0 1.2rem;
}
.flipbook {
  position: relative;
  width: min(360px, 74vw);
  aspect-ratio: 620 / 877;
  perspective: 1800px;
  cursor: pointer;
}
.leaf {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform .75s cubic-bezier(.45, .05, .25, 1);
  border-radius: 4px 10px 10px 4px;
}
.leaf.flipped { transform: rotateY(-178deg); }
.leaf__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(22, 69, 110, .12);
}
.leaf__face img { width: 100%; height: 100%; object-fit: cover; }
.leaf__face--back {
  transform: rotateY(180deg);
  border-radius: 10px 4px 4px 10px;
}
.leaf__face--back::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(14, 46, 76, .16), transparent 18%);
}
.leaf__face--front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14, 46, 76, .14), transparent 14%);
}
.flipbook__nav {
  position: relative;
  z-index: 60; /* acima das folhas viradas, que transbordam à esquerda */
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), background .25s, opacity .25s;
  box-shadow: var(--shadow-md);
}
.flipbook__nav:hover { background: var(--terracotta); transform: scale(1.1); }
.flipbook__nav:disabled { opacity: .25; cursor: default; transform: none; }
.flipbook__counter {
  text-align: center;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
}
.flipbook__hint {
  position: absolute;
  right: -8px; top: -14px;
  z-index: 40;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .78rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: hintBob 2s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .4s;
}
.flipbook__hint.hidden { opacity: 0; }
@keyframes hintBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.previa__cta { text-align: center; margin-top: 2rem; }

/* ── Cards (Sobre) ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--paper);
  border: 1px solid rgba(22, 69, 110, .1);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: .9rem;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--navy-dark);
  margin-bottom: .5rem;
}
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ── Público ─────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.audience-card {
  background: rgba(250, 246, 239, .06);
  border: 1px solid rgba(227, 182, 79, .25);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform .3s var(--ease-spring), border-color .3s, background .3s;
}
.audience-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(250, 246, 239, .1);
}
.audience-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: .5rem;
}
.audience-card p { color: rgba(250, 246, 239, .78); font-size: .95rem; }
.author-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}
.author-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.4;
  color: var(--off-white);
}
.author-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-size: .95rem;
}

/* ── Estatísticas ────────────────────────────────────────── */
.section--stats {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  padding: clamp(2.8rem, 6vw, 4.2rem) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: .45rem;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Quiz ────────────────────────────────────────────────── */
.quiz {
  background: var(--paper);
  border: 1px solid rgba(22, 69, 110, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.4rem 2rem;
  position: relative;
  overflow: hidden;
}
.quiz__progress {
  height: 5px;
  background: rgba(22, 69, 110, .12);
  border-radius: 3px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.quiz__progress span {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(to right, var(--gold), var(--terracotta));
  border-radius: 3px;
  transition: width .45s var(--ease-spring);
}
.quiz__question {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy-dark);
  text-align: center;
  margin-bottom: 1.6rem;
}
.quiz__options {
  display: grid;
  gap: .9rem;
  max-width: 460px;
  margin: 0 auto;
}
.quiz__option {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(22, 69, 110, .18);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--ease-spring);
}
.quiz__option:hover {
  border-color: var(--terracotta);
  background: rgba(184, 92, 80, .06);
  transform: translateX(5px);
}
.quiz__back {
  display: block;
  margin: 1.4rem auto 0;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.quiz__back:hover { color: var(--terracotta); }
.quiz__result { text-align: center; }
.quiz__result-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.quiz__result-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--navy-dark);
  margin-bottom: .7rem;
}
.quiz__result-desc {
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 1.5rem;
}
.quiz__result .btn { margin-bottom: .4rem; }

/* ── Comprar ─────────────────────────────────────────────── */
.buy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.buy-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(22, 69, 110, .12);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.buy-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.buy-card--featured {
  border: 2px solid var(--gold);
  box-shadow: 0 16px 44px rgba(200, 154, 58, .22);
}
.buy-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.buy-card__store {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.buy-card__format {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-dark);
}
.buy-card__price {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
}
.buy-card__price span { font-size: 1.1rem; }
.buy-card__desc { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.buy-card .btn { margin-top: .6rem; font-size: .95rem; padding: .85rem 1.2rem; }
.buy-note {
  text-align: center;
  margin-top: 2.2rem;
  color: var(--ink-soft);
}

/* ── Idiomas ─────────────────────────────────────────────── */
.langs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.5rem 1rem;
  background: var(--paper);
  border: 2px solid rgba(22, 69, 110, .12);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform .3s var(--ease-spring), border-color .25s, box-shadow .3s;
}
.lang-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.lang-card--active, .lang-card.lang-card--geo {
  border-color: var(--terracotta);
  background: rgba(184, 92, 80, .05);
}
.lang-card__flag { font-size: 2.1rem; }
.lang-card__name { font-weight: 800; color: var(--navy-dark); }
.lang-card__note { font-size: .8rem; color: var(--ink-soft); }

/* ── Autor ───────────────────────────────────────────────── */
.author {
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
}
.author__photo {
  flex: none;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
}
.author__name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--off-white);
  margin-bottom: .7rem;
}
.author__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.author__chips span {
  background: rgba(227, 182, 79, .16);
  border: 1px solid rgba(227, 182, 79, .4);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  padding: .28rem .8rem;
  border-radius: 999px;
}
.author__info p { color: rgba(250, 246, 239, .8); margin-bottom: .8rem; font-size: .97rem; }
.author__links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1rem; }
.author__links a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.author__links a:hover { border-color: var(--gold); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; gap: .8rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid rgba(22, 69, 110, .12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-align: left;
  cursor: pointer;
}
.faq-item__icon {
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--terracotta);
  transition: transform .3s;
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item__a p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.faq-item.open .faq-item__a { max-height: 400px; }
/* Progressive enhancement: JS esconde as respostas no load;
   sem JS (crawlers) tudo fica visível. */
.js .faq-item:not(.open) .faq-item__a { max-height: 0; }
html:not(.js) .faq-item__a { max-height: none; }

/* ── CTA final ───────────────────────────────────────────── */
.section--final {
  position: relative;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  overflow: hidden;
  text-align: center;
}
#waves-canvas-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .9;
}
.section--final .container { position: relative; z-index: 2; }
.section--final .section-title { color: var(--off-white); }
.section--final .section-title em { color: var(--gold); }
.section--final .section-desc { color: rgba(250, 246, 239, .78); }
.section--final .hero__ctas { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 239, .7);
  text-align: center;
  padding: 3.2rem 0 2.4rem;
}
.footer__brand {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--off-white);
}
.footer__brand em { color: var(--gold); font-style: italic; }
.footer__tagline { font-size: .9rem; margin: .4rem 0 1.3rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 1.4rem;
}
.footer__links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.footer__links a:hover { text-decoration: underline; }
.footer__isbn { font-size: .8rem; opacity: .6; }

/* ── Geo banner ──────────────────────────────────────────── */
.geo-banner {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 340px;
  background: var(--navy-deep);
  color: var(--off-white);
  border: 1px solid rgba(227, 182, 79, .5);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  animation: slideUp .5s var(--ease-spring);
}
.geo-banner button {
  background: none; border: none; color: var(--off-white);
  font-size: 1.15rem; cursor: pointer; opacity: .7; align-self: flex-start;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ── Toast de prova social ───────────────────────────────── */
.social-toast {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: 320px;
  background: var(--paper);
  border: 1px solid rgba(22, 69, 110, .16);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: .87rem;
  color: var(--ink);
  animation: toastIn .45s var(--ease-spring);
}
.social-toast.leaving { animation: toastOut .4s ease forwards; }
.social-toast__icon { font-size: 1.3rem; }
@keyframes toastIn {
  from { transform: translateX(-110%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(-110%); opacity: 0; }
}

/* ── CTA fixo mobile ─────────────────────────────────────── */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 240;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(22, 69, 110, .14);
  box-shadow: 0 -6px 24px rgba(14, 46, 76, .12);
}
.mobile-cta .btn { width: 100%; }

/* ── Exit-intent modal ───────────────────────────────────── */
.ei-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(10, 33, 56, .66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.ei-modal.ei-open { opacity: 1; visibility: visible; }
.ei-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 5px solid var(--gold);
  padding: 2.4rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.97);
  transition: transform .35s var(--ease-spring);
}
.ei-modal.ei-open .ei-card { transform: none; }
.ei-close {
  position: absolute;
  top: .6rem; right: .9rem;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.ei-eyebrow {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .5rem;
}
.ei-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: .5rem;
}
.ei-desc { color: var(--ink-soft); font-size: .94rem; margin-bottom: 1.2rem; }
.ei-form input[type="text"], .ei-form input[type="email"] {
  width: 100%;
  padding: .85rem 1rem;
  margin-bottom: .8rem;
  border: 2px solid rgba(22, 69, 110, .18);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .98rem;
  background: #fff;
  color: var(--ink);
}
.ei-form input:focus { outline: none; border-color: var(--blue); }
.ei-form .btn { width: 100%; }
.ei-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  opacity: 0 !important;
}
.ei-privacy { text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: .7rem; }
.ei-success { text-align: center; flex-direction: column; gap: .5rem; }
.ei-success__icon { font-size: 2.6rem; }
.ei-push__text { font-size: .92rem; color: var(--ink-soft); margin-top: .8rem; }
.ei-push__skip {
  display: block;
  margin: .6rem auto 0;
  background: none; border: none;
  color: var(--ink-soft); font-size: .85rem; cursor: pointer;
}
.ei-float-btn {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 230;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep);
  font-weight: 800;
  font-size: .92rem;
  border: none;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  animation: slideUp .5s var(--ease-spring);
}

/* ── Scroll reveal (padrão dos outros sites) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-grid { grid-template-columns: repeat(2, 1fr); }
  .langs-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 60px; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-radius: 0 0 0 var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .8rem;
    min-width: 220px;
    transform: translateX(110%);
    transition: transform .35s var(--ease-spring);
  }
  .nav__links.open { transform: none; }
  .nav__links a:not(.btn) { padding: .8rem .9rem; }
  .nav__links .btn { margin-top: .5rem; }

  .hero { padding-top: 6.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.6rem; text-align: center; }
  .hero__book { order: -1; }
  .book-3d { width: min(210px, 56vw); }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__ctas, .hero__chips { justify-content: center; }
  .hero__scroll-hint { display: none; }

  .cards-grid, .buy-grid, .audience-grid { grid-template-columns: 1fr; }
  .langs-grid { grid-template-columns: repeat(2, 1fr); }
  .flipbook__nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .author { flex-direction: column; align-items: center; text-align: center; }
  .author__chips, .author__links { justify-content: center; }
  .footer { padding-bottom: 6rem; } /* espaço pro CTA fixo */
  .ei-float-btn { bottom: 4.6rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .flipbook-wrap { gap: .5rem; }
  .flipbook { width: min(300px, 68vw); }
}

/* ── Acessibilidade: movimento reduzido ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
