/* ============================================================
   A JORNADA DA RIQUEZA — Design System
   Vintage leather · Sépia · Cobre · Ebook identity
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color — vintage leather / aged paper canvas */
  --bg:           #1a0f0a;
  --bg-1:         #221610;
  --bg-2:         #2a1c14;
  --surface:      #2e1f16;
  --surface-2:    #3a2618;
  --border:       rgba(232, 200, 150, 0.08);
  --border-2:     rgba(232, 200, 150, 0.16);
  --text:         #f0e4cf;
  --text-muted:   #b8a079;
  --text-dim:     #6e5640;

  /* Accent — warm copper / amber / aged gold */
  --accent:        #c89968;
  --accent-bright: #e0b687;
  --accent-deep:   #8b6332;
  --accent-soft:   rgba(200, 153, 104, 0.12);
  --accent-glow:   rgba(200, 153, 104, 0.45);
  --accent-glow-2: rgba(224, 182, 135, 0.30);

  /* Semantic */
  --success:      #6ee7a7;
  --danger:       #ef6868;

  /* Type */
  --font-sans:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:    180ms;
  --dur:         320ms;
  --dur-slow:    600ms;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.4vw + 14px, 17px);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Textura: pontos minúsculos cobrindo a página toda + vinheta */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 90%);
}

/* Vinheta para reforçar o all-black nas bordas */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, transparent 30%, rgba(0,0,0,0.6) 100%),
    radial-gradient(ellipse 60% 80% at 50% 100%, transparent 40%, rgba(0,0,0,0.5) 100%);
}

/* Tudo acima da textura */
.nav, main, .footer, .sticky-cta, .scroll-progress, .grain { position: relative; z-index: 2; }
.nav { z-index: 50; }
.scroll-progress { z-index: 100; }
.grain { z-index: 99; }
.sticky-cta { z-index: 80; }

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; }

::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
}

.section--alt {
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-1) 30%, var(--bg-1) 70%, transparent 100%);
  position: relative;
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 40% 25% at 50% 100%, var(--accent-soft), transparent 70%);
}

.section__inner { position: relative; }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

/* Número decorativo gigante (fugir do look de template) */
.section__head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -1.2em;
  right: -0.2em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 153, 104, 0.15);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.section__head--center {
  text-align: center;
  margin-inline: auto;
}

.section__head--center .kicker { margin-inline: auto; }

.section__head--center[data-num]::before {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 720px) {
  .section__head[data-num]::before { right: -0.1em; opacity: 0.6; }
}

.section__head > * { position: relative; z-index: 1; }

.section__head--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 100%;
  align-items: end;
}

@media (min-width: 860px) {
  .section__head--row {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  border: 1px solid rgba(200, 153, 104, 0.30);
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 30px -8px var(--accent-glow);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section__title--md { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section__title--lg { font-size: clamp(2.2rem, 5.2vw, 4rem); }

.section__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-bright);
  text-shadow: 0 0 40px var(--accent-glow-2);
}

.section__title .accent {
  color: var(--accent-bright);
  text-shadow: 0 0 40px var(--accent-glow-2);
}

.section__lead {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1vw, 1.1rem);
  line-height: 1.7;
  max-width: 56ch;
  margin-top: 1.25rem;
}

/* ---------- 4. Scroll progress & grain ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  z-index: 100;
  transition: width 80ms linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 99;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #1f130c;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 1px rgba(0,0,0,0.2),
    0 12px 28px -8px var(--accent-glow);
}

.btn svg { width: 18px; height: 18px; }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  z-index: -1;
  transition: opacity var(--dur) var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.5), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 0 0 1px rgba(0,0,0,0.25),
    0 18px 36px -8px var(--accent-glow);
}

.btn:hover::after { opacity: 1; }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.link-quiet {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.link-quiet:hover { color: var(--text); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(26, 15, 10, 0.6);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav[data-scrolled="true"] {
  background: rgba(26, 15, 10, 0.85);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--accent-soft);
}

.brand__mark svg { width: 18px; height: 18px; }

.brand__dot { color: var(--accent); margin-inline: 2px; }

.nav__links {
  display: none;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}

.nav__links a:hover { color: var(--text); }

.nav__actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 920px) {
  .nav__links, .nav__actions { display: flex; }
}

.nav__toggle {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease);
}

@media (min-width: 920px) {
  .nav__toggle { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(40% 55% at 50% -5%, var(--accent-glow), transparent 60%),
    radial-gradient(55% 40% at 12% 35%, rgba(200, 153, 104, 0.18), transparent 70%),
    radial-gradient(45% 35% at 90% 28%, rgba(224, 182, 135, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center top, transparent 40%, var(--bg) 75%);
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(58, 38, 24,0.6);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110,231,167,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(110,231,167,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,231,167,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-block: 2rem 1.5rem;
}

.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-bright);
  text-shadow:
    0 0 30px var(--accent-glow),
    0 0 80px var(--accent-glow-2);
}

.hero__title .accent {
  color: var(--accent-bright);
  text-shadow:
    0 0 30px var(--accent-glow),
    0 0 80px var(--accent-glow-2);
}

.hero__title s {
  color: var(--text-dim);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.hero__title.is-visible .line,
.reveal.is-visible .hero__title .line { opacity: 1; transform: translateY(0); }
.hero__title.is-visible .line:nth-child(1),
.reveal.is-visible .hero__title .line:nth-child(1) { transition-delay: 0ms; }
.hero__title.is-visible .line:nth-child(2),
.reveal.is-visible .hero__title .line:nth-child(2) { transition-delay: 80ms; }
.hero__title.is-visible .line:nth-child(3),
.reveal.is-visible .hero__title .line:nth-child(3) { transition-delay: 160ms; }
.hero__title.is-visible .line:nth-child(4),
.reveal.is-visible .hero__title .line:nth-child(4) { transition-delay: 240ms; }

.hero__lead {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.7;
}

/* Hero video */
.hero__video {
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: 880px;
  position: relative;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04);
}

.video__poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(200, 153, 104, 0.25), transparent 60%),
    linear-gradient(135deg, #3a2618 0%, #221610 100%);
}

.video__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #1f130c;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  box-shadow:
    0 0 0 0 var(--accent-glow),
    0 20px 50px -10px rgba(0,0,0,0.6);
  animation: playPulse 2.4s var(--ease) infinite;
}

.video__play svg { width: 32px; height: 32px; margin-left: 4px; }

.video__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 20px 50px -10px rgba(0,0,0,0.6); }
  50%      { box-shadow: 0 0 0 22px rgba(200, 153, 104, 0), 0 20px 50px -10px rgba(0,0,0,0.6); }
}

.video__meta {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.55);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.video__dot {
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--danger);
}

/* Hero CTA + proof */
.hero__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__assurance {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__assurance svg { width: 16px; height: 16px; color: var(--accent); }

.hero__proof {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.proof__group { text-align: center; }

.proof__metric {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 30px var(--accent-glow-2);
}

.proof__metric sup { font-size: 0.55em; vertical-align: baseline; opacity: 0.8; }
.proof__metric .stars { letter-spacing: 0.15em; }

.proof__label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.proof__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@media (max-width: 640px) {
  .proof__divider { display: none; }
}

/* ---------- 8. Banner strip — halftone laranja queimado ---------- */
.banner-strip {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* Linhas horizontais finas em cima e embaixo */
.banner-strip::before,
.banner-strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 153, 104, 0.4) 20%, rgba(224, 182, 135, 0.6) 50%, rgba(200, 153, 104, 0.4) 80%, transparent);
  z-index: 4;
}
.banner-strip::before { top: 0; }
.banner-strip::after  { bottom: 0; }

/* Camada 1: gradiente laranja central */
.banner-strip__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, var(--accent) 0%, var(--accent-deep) 35%, transparent 70%);
  z-index: 1;
}

/* Camada 2: halftone (pontos) dissolvendo nas pontas */
.banner-strip__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--accent-bright) 1.2px, transparent 1.8px);
  background-size: 9px 9px;
  background-position: 0 0;
  /* Esconde no centro e aparece nas pontas, criando o efeito de halftone que dissolve */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 50%, #000 78%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 50%, #000 78%, #000 100%);
  opacity: 0.9;
  mix-blend-mode: screen;
  z-index: 2;
}

/* Camada 3: brilho fino de transição (deixa o laranja queimado mais cinemático) */
.banner-strip__sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
  z-index: 3;
  mix-blend-mode: screen;
}

.banner-strip__text {
  position: relative;
  z-index: 5;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 0 30px rgba(0,0,0,0.6);
}

.banner-strip__text em {
  font-style: normal;
  color: #ffe5d0;
  font-weight: 800;
}

/* ---------- 9. Problem cards ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.problem-card:hover {
  border-color: rgba(200, 153, 104, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 40px -20px var(--accent-glow);
}

/* === Rotator: card "ativo" no rodízio automático === */
.problem-card {
  transition:
    border-color 600ms var(--ease),
    transform 600ms var(--ease-out),
    background 600ms var(--ease),
    box-shadow 600ms var(--ease);
}

.problem-card.is-active {
  border-color: rgba(224, 182, 135, 0.55);
  transform: translateY(-8px) scale(1.03);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(200, 153, 104, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg-2) 100%);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.9),
    0 0 60px -10px var(--accent-glow),
    inset 0 0 0 1px rgba(224, 182, 135, 0.15);
  z-index: 2;
}

.problem-card.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 182, 135, 0.10), transparent 60%);
  pointer-events: none;
  animation: badgeShimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

.problem-card.is-active::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent), transparent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.problem-card.is-active h3 { color: var(--accent-bright); transition: color 600ms var(--ease); }
.problem-card.is-active p  { color: var(--text); transition: color 600ms var(--ease); }

.problem-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- 10. Method ---------- */
.method {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 860px) {
  .method { grid-template-columns: repeat(3, 1fr); }
}

.method__step {
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  transition: all var(--dur) var(--ease);
  overflow: hidden;
}

.method__step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

.method__step:hover::before { opacity: 1; }

.method__step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.method__step > * { position: relative; z-index: 1; }

.method__phase {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.method__phase strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}

.method__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.method__step p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.method__step ul {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.method__step li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
}

.method__step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- 11. Modules ---------- */
.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .modules { grid-template-columns: repeat(4, 1fr); } }

.module {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.module[data-locked="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(26, 15, 10,0.65) 100%);
  pointer-events: none;
}

.module:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}

.module[data-locked="true"]:hover {
  border-color: rgba(200, 153, 104, 0.4);
  box-shadow: 0 0 50px -15px var(--accent-glow);
}

.module[data-locked="false"]:hover {
  border-color: rgba(110, 231, 167, 0.4);
  box-shadow: 0 0 50px -15px rgba(110, 231, 167, 0.35);
}

.module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.module__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.module__status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.module__status--free {
  color: var(--success);
  border-color: rgba(110,231,167,0.3);
  background: rgba(110,231,167,0.06);
}

.module__status--bonus {
  color: var(--accent-bright);
  border-color: rgba(224, 182, 135, 0.35);
  background: var(--accent-soft);
}

.module__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.module__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}

.module__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.module__cta {
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 500;
}

.module__lock {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  color: var(--accent);
}

.module__lock svg { width: 16px; height: 16px; }

.module--bonus {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-1) 100%);
  border-color: rgba(224, 182, 135, 0.22);
}

/* ---------- 12. Author ---------- */
.author {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 860px) {
  .author { grid-template-columns: 0.85fr 1fr; gap: 5rem; }
}

.author__media {
  position: relative;
}

.author__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  margin: 0 auto;
}

.author__portrait svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.author__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.45rem 0.9rem;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.author__body p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 1.5rem 0 2rem;
  font-size: 1.02rem;
}

.author__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.author__stats > div { display: flex; flex-direction: column; }

.author__stats strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}

.author__stats span {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- 13. Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }

.testimonial {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  transition: all var(--dur) var(--ease);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}

.testimonial:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}

.testimonial blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
}

.testimonial blockquote em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 500;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #1f130c;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial figcaption strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
}

.testimonial figcaption span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- 14. Offer ---------- */
.section--offer {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(200, 153, 104, 0.18), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(200, 153, 104, 0.10), transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

/* Halftone sutil de fundo na oferta — quebra a uniformidade */
.section--offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 153, 104, 0.12) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.section--offer .container { position: relative; z-index: 1; }

.offer {
  display: grid;
  gap: 3rem;
}

.offer__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.offer__head .kicker { margin-inline: auto; }

.offer__card {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 153, 104, 0.30);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(200, 153, 104, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.9),
    0 0 80px -20px var(--accent-glow),
    0 0 0 1px rgba(255,255,255,0.04);
}

.offer__badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--accent);
  color: #1f130c;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 0 0 8px 8px;
}

.offer__price {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.offer__price-old {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.offer__price-now { margin-top: 0.5rem; }

.offer__price-now small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.offer__price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
  margin-block: 0.25rem;
}

.offer__price-main strong {
  font-weight: 500;
  font-style: italic;
  color: var(--accent-bright);
  font-size: 1.6em;
  letter-spacing: -0.03em;
}

.offer__price-main sub {
  font-size: 0.55em;
  vertical-align: baseline;
}

.offer__list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.offer__list li {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

.offer__safety {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.safety-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.safety-item svg { width: 16px; height: 16px; color: var(--accent); }

/* Guarantee */
.guarantee {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.guarantee__seal {
  width: clamp(110px, 14vw, 140px);
  height: clamp(110px, 14vw, 140px);
  color: var(--accent-bright);
  flex-shrink: 0;
  filter: drop-shadow(0 0 24px var(--accent-glow-2));
}

.guarantee__seal svg { width: 100%; height: 100%; }

/* Apenas o anel pontilhado gira */
.seal__dashes {
  transform-origin: 40px 40px;
  transform-box: view-box;
  animation: sealSpin 22s linear infinite;
}

@keyframes sealSpin {
  to { transform: rotate(360deg); }
}

.guarantee h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.guarantee p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- 15. FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.faq__item[open] {
  border-color: var(--border-2);
  background: var(--surface-2);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-bright); }

.faq__chevron {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
  line-height: 1;
}

.faq__item[open] .faq__chevron {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__body p { margin: 0; }

/* ---------- 16. Final CTA ---------- */
.cta-final {
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%);
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta-final h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-bright);
}

.cta-final p {
  max-width: 60ch;
  margin: 1.5rem auto 2.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- 17. Footer ---------- */
.footer {
  padding-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 2fr; gap: 4rem; }
}

.footer__brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 540px) {
  .footer__cols { grid-template-columns: 1fr; }
}

.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer__cols a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-block: 0.3rem;
  transition: color var(--dur-fast) var(--ease);
}

.footer__cols a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}

.footer__bottom small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- 18. Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 2rem);
  max-width: 540px;
  z-index: 80;
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sticky-cta__inner {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.25rem;
  border-radius: 999px;
  background: rgba(58, 38, 24,0.85);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04);
}

.sticky-cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sticky-cta__text strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}

.sticky-cta__text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- 19. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   AUTH — Login / Recuperação
   ============================================================ */

.page-auth {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.page-auth::before,
.page-auth::after { display: none; }

.auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  width: 100%;
  place-items: center;
}

.auth__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}

.auth__brand {
  position: absolute;
  top: 2rem;
  left: clamp(1.5rem, 5vw, 4rem);
}

.auth__head { margin-bottom: 2.5rem; }

.auth__head .kicker { margin-bottom: 1rem; }

.auth__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.auth__lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

.auth__form {
  display: grid;
  gap: 1.25rem;
}

.field { display: grid; gap: 0.5rem; }

.field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.field input::placeholder { color: var(--text-dim); }

.field input:hover { border-color: rgba(255,255,255,0.2); }

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px -10px var(--accent-glow);
}

.field__input-wrap { position: relative; }

.field__input-wrap input { padding-right: 3rem; }

.field__toggle {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.field__toggle:hover { color: var(--accent-bright); background: var(--surface-2); }

.field__toggle svg { width: 18px; height: 18px; }

.auth__error {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(239, 104, 104, 0.08);
  border: 1px solid rgba(239, 104, 104, 0.3);
  color: #f8a5a5;
  font-size: 0.88rem;
}

.auth__submit { margin-top: 0.5rem; }

.auth__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 2rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth__cta-buy {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth__cta-buy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth__foot {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 5vw, 4rem);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Painel visual lateral */
.auth__visual {
  display: none;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 30%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg) 80%);
  border-left: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem);
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

@media (min-width: 980px) { .auth__visual { display: flex; } }

.auth__visual-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
}

.auth__visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
  z-index: -1;
}

/* Capa do livro no painel visual do login */
.auth__visual-cover {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.auth__visual-cover .book-cover {
  width: clamp(160px, 18vw, 220px);
  /* leve inclinação pra ficar mais editorial */
  animation: bookFloat 7s ease-in-out infinite;
}

.auth__quote {
  margin: 0;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.auth__quote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.auth__quote em {
  font-style: italic;
  color: var(--accent-bright);
}

.auth__quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.auth__visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 460px;
}

.auth__visual-stats > div { display: flex; flex-direction: column; }

.auth__visual-stats strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px var(--accent-glow-2);
}

.auth__visual-stats span {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   ÁREA DE MEMBROS — App layout, dashboard, player
   ============================================================ */

.page-app { min-height: 100vh; background: var(--bg); }
.page-app::before { opacity: 0.5; }
.page-app::after { display: none; }

/* ---------- Top nav da plataforma ---------- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.app-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.app-nav__links {
  display: none;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

@media (min-width: 860px) { .app-nav__links { display: flex; } }

.app-nav__links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.app-nav__links a:hover { color: var(--text); background: var(--surface); }

.app-nav__links a.is-active {
  color: var(--accent-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(200, 153, 104, 0.25);
}

.app-nav__user { position: relative; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.user-chip:hover { border-color: var(--border-2); background: var(--surface-2); }

.user-chip svg { width: 14px; height: 14px; color: var(--text-dim); }

.user-chip__name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar--sm { width: 28px; height: 28px; font-size: 0.78rem; }

.user-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.9);
  z-index: 60;
}

.user-menu__head {
  padding: 0.85rem 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.user-menu__name {
  font-weight: 600;
  font-size: 0.92rem;
}

.user-menu__email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  word-break: break-all;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.user-menu a:hover,
.user-menu button:hover {
  background: var(--surface-2);
  color: var(--accent-bright);
}

.user-menu [data-logout] {
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  color: #f8a5a5;
}

/* ---------- Dashboard ---------- */
.app__hello {
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.app__hello .kicker { margin-bottom: 1rem; }

.app__hello h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.app__hello h1 .accent {
  color: var(--accent-bright);
  font-style: italic;
  text-shadow: 0 0 30px var(--accent-glow-2);
}

.app__hello p {
  color: var(--text-muted);
  margin: 0;
}

.app__section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1.25rem;
  color: var(--text-muted);
}

/* Continue card */
.continue-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.continue-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 0% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.continue-card > * { position: relative; }

.continue-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 153, 104, 0.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 40px -20px var(--accent-glow);
}

.continue-card__thumb {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--accent-deep) 0%, #2a0d05 80%);
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(200, 153, 104, 0.3);
  box-shadow: 0 0 30px -8px var(--accent-glow);
}

.continue-card__thumb svg { width: 28px; height: 28px; margin-left: 3px; }

.continue-card__body { min-width: 0; }

.continue-card__module {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.continue-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-card__progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.continue-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.continue-card__cta svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.continue-card:hover .continue-card__cta svg { transform: translateX(4px); }

@media (max-width: 720px) {
  .continue-card {
    grid-template-columns: 64px 1fr;
  }
  .continue-card__cta { grid-column: 1 / -1; justify-content: flex-end; }
  .continue-card__thumb { width: 64px; height: 64px; }
}

/* Progress bar genérica */
.progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
  border-radius: 999px;
  transition: width 600ms var(--ease-out);
}

.progress__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.progress__label strong {
  color: var(--accent-bright);
  font-weight: 600;
}

/* Course grid (dashboard) */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 153, 104, 0.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 40px -20px var(--accent-glow);
}

.course-card__cover {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(70% 100% at 30% 30%, var(--accent) 0%, transparent 60%),
    radial-gradient(60% 100% at 70% 70%, var(--accent-deep) 0%, transparent 60%),
    linear-gradient(135deg, #2a1810 0%, #221610 100%);
  position: relative;
  overflow: hidden;
}

.course-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(224, 182, 135, 0.15) 1.2px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
          mask-image: linear-gradient(135deg, #000, transparent 70%);
}

.course-card__body {
  padding: 1.25rem;
}

.course-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.3rem;
}

.course-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.course-card__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

.course-card__progress {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* ---------- Página da aula (player) ---------- */
.page-course .app-nav__inner { gap: 1rem; }

.course-breadcrumb {
  display: none;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 760px) { .course-breadcrumb { display: flex; } }

.course-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}
.course-breadcrumb a:hover { color: var(--text); }

.course-breadcrumb span[aria-hidden] { color: var(--text-dim); }

.course-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 68px);
}

@media (min-width: 980px) {
  .course-layout { grid-template-columns: 340px 1fr; }
}

.course-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-1);
  overflow-y: auto;
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 68px);
  display: none;
}

@media (min-width: 980px) { .course-sidebar { display: block; } }

.course-sidebar.is-open {
  display: block;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-height: none;
}

.course-sidebar__head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.course-sidebar__head .kicker {
  display: inline-flex;
  margin-bottom: 0.7rem;
}

.course-sidebar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.course-sidebar__progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modules-nav { padding: 1rem 0.75rem 4rem; }

.module-group {
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.module-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  background: transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  text-align: left;
}

.module-group__head:hover { background: var(--surface); }

.module-group__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.module-group__title {
  flex: 1;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: -0.005em;
}

.module-group__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.module-group__chevron {
  width: 14px; height: 14px;
  color: var(--text-dim);
  transition: transform var(--dur) var(--ease);
}

.module-group[data-open="true"] .module-group__chevron { transform: rotate(180deg); }

.module-group__lessons {
  display: none;
  padding-bottom: 0.5rem;
}

.module-group[data-open="true"] .module-group__lessons { display: block; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem 0.6rem 2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  text-align: left;
  width: 100%;
  background: transparent;
  border-radius: 6px;
  position: relative;
}

.lesson-item:hover {
  background: var(--surface);
  color: var(--text);
}

.lesson-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 500;
}

.lesson-item.is-active::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}

.lesson-item__icon {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  flex-shrink: 0;
  color: transparent;
  transition: all var(--dur) var(--ease);
}

.lesson-item__icon svg { width: 11px; height: 11px; }

.lesson-item.is-completed .lesson-item__icon {
  background: var(--success);
  border-color: var(--success);
  color: #1f130c;
}

.lesson-item__title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-item__duration {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Stage */
.course-stage {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.04);
  margin-bottom: 2rem;
}

.player-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(200, 153, 104, 0.22), transparent 60%),
    linear-gradient(135deg, #2a1810 0%, #221610 100%);
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
}

.player-play {
  /* herda do .video__play */
}

.player-meta {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.6);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Cabeçalho da aula */
.lesson-head { margin-bottom: 2rem; }

.lesson-head__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.lesson-head__sep { color: var(--text-dim); }

.lesson-head__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lesson-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.lesson-head__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 70ch;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 4rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1.5rem;
}

.lesson-actions__complete {
  --btn-bg: var(--success);
  --btn-fg: #1f130c;
}

.lesson-actions__complete::before {
  background: linear-gradient(135deg, #8ef0b3 0%, #4ade80 100%);
}

.lesson-actions__complete[data-completed="true"] {
  background: transparent;
  border: 1px solid var(--success);
  color: var(--success);
  box-shadow: none;
}

.lesson-actions__complete[data-completed="true"]::before { opacity: 0; }

.lesson-actions__nav {
  display: flex;
  gap: 0.5rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: none;
}

.btn--ghost::before { background: var(--surface); opacity: 0; transition: opacity var(--dur) var(--ease); }
.btn--ghost:hover::before { opacity: 1; }
.btn--ghost:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* Botão flutuante para abrir sidebar no mobile */
.modules-toggle {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 70;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

.modules-toggle svg { width: 16px; height: 16px; }

@media (min-width: 980px) { .modules-toggle { display: none; } }


/* ============================================================
   ADMIN — Sidebar + dashboard + editor + tabelas
   ============================================================ */

.page-admin {
  min-height: 100vh;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr;
}

.page-admin::before { opacity: 0.4; }
.page-admin::after { display: none; }

@media (min-width: 980px) {
  .page-admin { grid-template-columns: 260px 1fr; }
}

/* Badge ADMIN */
.brand__badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 2px 8px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 4px;
  vertical-align: 2px;
  text-transform: uppercase;
}

.brand__badge--sm { font-size: 0.58rem; padding: 1px 6px; }

.page-admin-login .admin-hint {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-admin-login .admin-hint code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
  position: fixed;
  top: 0; bottom: 0;
  left: 0;
  width: 260px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  z-index: 60;
  transform: translateX(-110%);
  transition: transform var(--dur) var(--ease);
}

@media (min-width: 980px) {
  .admin-sidebar { transform: none; position: sticky; height: 100vh; }
}

.admin-sidebar.is-open { transform: translateX(0); }

.admin-brand {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.admin-nav a svg { width: 18px; height: 18px; opacity: 0.8; }

.admin-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.admin-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(200, 153, 104, 0.25);
}

.admin-nav a.is-active svg { opacity: 1; }

.admin-sidebar__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.admin-sidebar__foot .user-chip {
  width: 100%;
  justify-content: flex-start;
}

.admin-sidebar__foot .user-chip svg { margin-left: auto; }

/* ---------- Main + topbar ---------- */
.admin-main {
  min-width: 0;
  position: relative;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.admin-topbar__title {
  flex: 1;
  min-width: 0;
}

.admin-topbar__title .kicker {
  margin-bottom: 0.4rem;
  font-size: 10px;
}

.admin-topbar__title h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.topbar-stat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.topbar-stat strong { color: var(--accent-bright); font-weight: 600; }

/* Icon button */
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn--danger:hover {
  background: rgba(239, 104, 104, 0.1);
  color: #f8a5a5;
  border-color: rgba(239, 104, 104, 0.3);
}

@media (min-width: 980px) {
  .admin-topbar [data-admin-sidebar-toggle] { display: none; }
}

/* ---------- Content ---------- */
.admin-content {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 1400px;
}

.admin-section {
  margin-top: 2.5rem;
}

.admin-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.admin-section__head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.stat {
  padding: 1.25rem 1.4rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 100% 0%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.stat:hover { border-color: var(--border-2); }
.stat:hover::before { opacity: 1; }

.stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.stat__value {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--accent-bright);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 30px var(--accent-glow-2);
  position: relative;
  z-index: 1;
}

/* ---------- Admin grid (cards de curso) ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .admin-grid { grid-template-columns: repeat(3, 1fr); } }

.admin-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.admin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 153, 104, 0.4);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7), 0 0 30px -15px var(--accent-glow);
}

.admin-card__cover {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 10px;
  background:
    radial-gradient(70% 100% at 30% 30%, var(--accent) 0%, transparent 60%),
    radial-gradient(60% 100% at 70% 70%, var(--accent-deep) 0%, transparent 60%),
    linear-gradient(135deg, #2a1810 0%, #221610 100%);
  flex-shrink: 0;
  border: 1px solid rgba(200, 153, 104, 0.2);
}

.admin-card__body { min-width: 0; flex: 1; }

.admin-card__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card__body p {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.5rem;
}

.admin-card__arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.admin-card:hover .admin-card__arrow {
  transform: translateX(4px);
  color: var(--accent-bright);
}

.admin-card--add {
  justify-content: center;
  gap: 0.6rem;
  border-style: dashed;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 96px;
}

.admin-card--add:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.admin-card__plus {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
}

/* ---------- Recent students list ---------- */
.recent-students {
  display: grid;
  gap: 0.5rem;
}

.recent-students li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.recent-student__body { min-width: 0; }

.recent-student__body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.recent-student__body span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-students time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Status pill */
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
}

.status-pill--active {
  color: var(--success);
  background: rgba(110,231,167,0.08);
}

.status-pill--blocked {
  color: #f8a5a5;
  background: rgba(239,104,104,0.08);
}

/* ---------- Card block (editor metadados) ---------- */
.admin-card-block {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-card-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-card-block__head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.admin-card-block__stats {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-card-block__stats strong { color: var(--accent-bright); font-weight: 600; }

.admin-card-block__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Admin form ---------- */
.admin-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.admin-form .field input,
.admin-form .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}

.admin-form .field textarea { min-height: 80px; }

.admin-form .field input:focus,
.admin-form .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-form__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.admin-form--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}

@media (min-width: 760px) {
  .admin-form--row { grid-template-columns: 1fr 1.5fr auto; }
}

.link-danger { color: #f8a5a5 !important; }
.link-danger:hover { color: #ffb8b8 !important; }

/* ---------- Modules editor ---------- */
.admin-modules {
  display: grid;
  gap: 0.85rem;
}

.admin-module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.admin-module:hover { border-color: var(--border-2); }

.admin-module__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.admin-module__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.admin-module__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.admin-module__actions {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

.admin-module__summary {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}

.admin-module.is-collapsed .admin-lessons,
.admin-module.is-collapsed .admin-module__summary,
.admin-module.is-collapsed .admin-module__foot { display: none; }

.admin-module.is-collapsed .admin-module__head { border-bottom: none; }

/* Inline editable inputs */
.admin-inline {
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  resize: none;
  line-height: 1.4;
}

.admin-inline:hover { background: rgba(255,255,255,0.025); }

.admin-inline:focus {
  outline: none;
  background: var(--bg-1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-inline--muted {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.admin-inline--xs {
  font-size: 0.82rem;
  padding: 0.45rem 0.55rem;
  width: auto;
  min-width: 0;
}

.admin-inline--multiline {
  min-height: 1.6em;
  overflow-y: hidden;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Lessons list */
.admin-lessons {
  display: flex;
  flex-direction: column;
}

.admin-lesson {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: start;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease);
}

.admin-lesson:last-child { border-bottom: none; }
.admin-lesson:hover { background: rgba(255,255,255,0.015); }

.admin-lesson__handle {
  align-self: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: grab;
  user-select: none;
  padding: 0 0.3rem;
}

.admin-lesson__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-lesson__side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.admin-lesson__side .admin-inline--xs { width: 90px; }

@media (max-width: 760px) {
  .admin-lesson { grid-template-columns: 1fr; }
  .admin-lesson__handle { display: none; }
  .admin-lesson__side { flex-wrap: wrap; }
  .admin-lesson__side .admin-inline--xs { width: 100%; }
}

.admin-module__foot {
  padding: 0.75rem 1rem;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}

.empty-state p { margin: 0 0 1rem; }

/* ---------- Table (alunos) ---------- */
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.012); }

.cell-student {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cell-student strong {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.cell-student span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.row-actions {
  display: flex;
  gap: 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- Toast admin ---------- */
.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.3rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.8), 0 0 30px -10px var(--accent-glow);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.admin-toast.is-visible { opacity: 1; transform: translateY(0); }

.admin-toast[data-type="success"] { border-color: rgba(110,231,167,0.4); color: var(--success); }
.admin-toast[data-type="error"]   { border-color: rgba(239,104,104,0.4); color: #f8a5a5; }

/* ============================================================
   EBOOK — "A Jornada da Riqueza"
   Hero com capa, capítulos, formatos, autor
   ============================================================ */

/* Hero split layout: texto + capa do livro */
.hero--book .hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  text-align: left;
}

@media (min-width: 960px) {
  .hero--book .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Coluna direita: capa + prova logo abaixo */
.book-side {
  display: grid;
  gap: 1.75rem;
  align-content: start;
  margin-top: 1.5rem;
}

.book-side .book-stage { padding-block: 0; }

.book-side .hero__proof {
  margin-top: 0;
  padding-top: 1.5rem;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.book-side .hero__proof .proof__metric {
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  white-space: nowrap;
}

.book-side .hero__proof .proof__label {
  font-size: 0.72rem;
  white-space: nowrap;
}

.book-side .hero__proof .proof__divider { height: 28px; }

@media (max-width: 960px) {
  .book-side { margin-top: 0; }
}

@media (max-width: 480px) {
  .book-side .hero__proof { flex-wrap: wrap; }
}

.hero--book .hero__title {
  margin-block: 1.5rem 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.hero--book .hero__lead { margin: 0; }

.hero--book .hero__cta {
  margin-top: 2rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .hero--book .hero__cta { align-items: center; }
}

/* === Capa do livro === */
.book-stage {
  position: relative;
  perspective: 1800px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1rem;
}

.book-stage__glow {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(45% 55% at 50% 50%, rgba(200, 153, 104, 0.35), transparent 70%),
    radial-gradient(60% 45% at 30% 80%, rgba(139, 99, 50, 0.22), transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.book-cover {
  position: relative;
  z-index: 1;
  width: clamp(240px, 32vw, 380px);
  aspect-ratio: 2 / 3;
  border-radius: 6px 8px 8px 6px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateY(-12deg) rotateX(2deg);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
  box-shadow:
    /* leve gradiente da lombada esquerda */
    inset 12px 0 24px -10px rgba(0, 0, 0, 0.55),
    inset 2px 0 0 0 rgba(0, 0, 0, 0.5),
    inset -1px 0 0 0 rgba(255, 220, 180, 0.04),
    /* sombras de profundidade */
    0 18px 30px -10px rgba(0, 0, 0, 0.55),
    0 50px 90px -20px rgba(0, 0, 0, 0.8),
    0 100px 140px -40px rgba(0, 0, 0, 0.85),
    /* halo cobre */
    0 0 80px -10px rgba(200, 153, 104, 0.35);
}

.book-cover:hover {
  transform: rotateY(-6deg) rotateX(1deg) translateY(-4px);
  box-shadow:
    inset 12px 0 24px -10px rgba(0, 0, 0, 0.55),
    inset 2px 0 0 0 rgba(0, 0, 0, 0.5),
    inset -1px 0 0 0 rgba(255, 220, 180, 0.04),
    0 24px 40px -10px rgba(0, 0, 0, 0.55),
    0 60px 110px -20px rgba(0, 0, 0, 0.85),
    0 0 110px -10px rgba(200, 153, 104, 0.5);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Brilho diagonal sobre a capa */
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 240, 210, 0) 30%, rgba(255, 240, 210, 0.10) 48%, rgba(255, 240, 210, 0) 60%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Selo/ribbon "ebook" sobre a capa */
.book-tag {
  position: absolute;
  top: 14px;
  right: -10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #1f130c;
  border-radius: 4px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.5), 0 0 20px -5px var(--accent-glow);
}

.book-tag::after {
  content: "";
  position: absolute;
  right: 0; bottom: -6px;
  border: 5px solid transparent;
  border-top-color: var(--accent-deep);
  border-right-color: var(--accent-deep);
}

/* Lista de "o que vem dentro" abaixo da capa */
.book-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.book-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.book-meta__item strong {
  color: var(--text);
  font-weight: 600;
}

/* === Capítulos (substitui módulos para ebook) === */
.chapters {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .chapters { grid-template-columns: repeat(2, 1fr); }
}

.chapter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(200, 153, 104, 0.04), transparent 60%),
    var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.chapter::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.chapter:hover {
  border-color: rgba(200, 153, 104, 0.35);
  transform: translateY(-2px);
}

.chapter:hover::before { opacity: 1; }

.chapter__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--accent-bright);
  min-width: 2.5rem;
  line-height: 1;
}

.chapter__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.chapter__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.chapter__pages {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* === TOC-BOOK — sumário em formato de livro aberto vintage === */
.toc-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    /* halo cobre suave */
    radial-gradient(120% 70% at 50% 0%, rgba(200, 153, 104, 0.08), transparent 60%),
    /* textura de papel: ranhuras horizontais sutis + grain leve */
    repeating-linear-gradient(0deg, rgba(232, 200, 150, 0.02) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(232, 200, 150, 0.10);
  border-radius: 4px;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.85),
    0 0 60px -20px var(--accent-glow),
    inset 0 0 0 1px rgba(232, 200, 150, 0.04);
  isolation: isolate;
}

/* Quinas dobradas (cantos com sombra simulando livro envelhecido) */
.toc-book::before,
.toc-book::after {
  content: "";
  position: absolute;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 0;
}

.toc-book::before {
  top: 0; left: 0;
  background: linear-gradient(135deg, rgba(232, 200, 150, 0.08), transparent 50%);
}

.toc-book::after {
  bottom: 0; right: 0;
  background: linear-gradient(-45deg, rgba(232, 200, 150, 0.08), transparent 50%);
}

@media (min-width: 920px) {
  .toc-book {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  }
}

/* Lombada central (spine) entre as duas páginas */
.toc-book__spine {
  display: none;
}

@media (min-width: 920px) {
  .toc-book__spine {
    display: block;
    position: absolute;
    top: clamp(2rem, 4vw, 3rem);
    bottom: clamp(2rem, 4vw, 3rem);
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(232, 200, 150, 0.10) 8%,
      rgba(200, 153, 104, 0.35) 50%,
      rgba(232, 200, 150, 0.10) 92%,
      transparent 100%);
    box-shadow: 0 0 18px rgba(200, 153, 104, 0.25);
    z-index: 1;
    pointer-events: none;
  }

  /* Sombras dos dois lados da lombada simulando curvatura das páginas */
  .toc-book__spine::before,
  .toc-book__spine::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    pointer-events: none;
  }
  .toc-book__spine::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.45));
  }
  .toc-book__spine::after {
    left: 100%;
    background: linear-gradient(-90deg, transparent, rgba(0,0,0,0.45));
  }
}

/* === Página individual === */
.toc-page {
  position: relative;
  z-index: 2;
}

.toc-page__ornament {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 0.65rem;
  /* compensa letter-spacing para centralização real */
  padding-left: 0.5em;
}

.toc-page__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  position: relative;
}

.toc-page__label::before,
.toc-page__label::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(232, 200, 150, 0.25);
  vertical-align: middle;
  margin: 0 0.7rem;
}

/* === Lista de capítulos (estilo TOC vintage) === */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.toc-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding: 0.65rem 0.4rem 0.95rem 0.4rem;
  border-bottom: 1px dotted rgba(232, 200, 150, 0.20);
  position: relative;
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.toc-item:last-child {
  border-bottom: none;
}

.toc-item::before {
  content: "↳";
  position: absolute;
  left: -0.4rem;
  top: 0.85rem;
  color: var(--accent-bright);
  font-size: 0.95rem;
  font-family: var(--font-display);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.toc-item:hover {
  background: linear-gradient(90deg, rgba(200, 153, 104, 0.07), transparent 85%);
  padding-left: 0.9rem;
}

.toc-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.toc-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease), text-shadow var(--dur) var(--ease);
  font-variant-numeric: oldstyle-nums;
}

.toc-item:hover .toc-item__num {
  color: var(--accent-bright);
  opacity: 1;
  text-shadow: 0 0 16px var(--accent-glow);
}

.toc-item__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 0.2rem;
  line-height: 1.3;
  transition: color var(--dur) var(--ease);
}

.toc-item:hover .toc-item__body h3 {
  color: var(--accent-bright);
}

.toc-item__body p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .toc-item {
    grid-template-columns: 44px 1fr;
    gap: 0.8rem;
  }
  .toc-item__num { font-size: 1.35rem; }
  .toc-item__body h3 { font-size: 0.96rem; }
  .toc-item__body p  { font-size: 0.82rem; }
  .toc-page__label { font-size: 0.65rem; }
}

/* === Formatos (PDF / EPUB / Planilhas) === */
.formats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .formats { grid-template-columns: repeat(3, 1fr); }
}

.format-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(200, 153, 104, 0.06), transparent 70%),
    var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.format-card:hover {
  border-color: rgba(200, 153, 104, 0.35);
  transform: translateY(-3px);
}

.format-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 153, 104, 0.25);
  color: var(--accent-bright);
  margin-bottom: 1rem;
}

.format-card__icon svg { width: 22px; height: 22px; }

.format-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.format-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* === MANIFEST — pacote oficial estilo ticket vintage === */
.manifest {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.75rem, 3.5vw, 3rem);
  background:
    /* halo cobre suave no topo e fundo */
    radial-gradient(140% 60% at 50% 0%, rgba(200, 153, 104, 0.10), transparent 60%),
    radial-gradient(140% 60% at 50% 100%, rgba(200, 153, 104, 0.06), transparent 60%),
    /* textura papel: ranhuras finas + grão sutil */
    repeating-linear-gradient(0deg, rgba(232, 200, 150, 0.02) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 50%, var(--bg-2) 100%);
  border-left: 1px solid rgba(232, 200, 150, 0.15);
  border-right: 1px solid rgba(232, 200, 150, 0.15);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.85),
    0 0 80px -20px var(--accent-glow),
    inset 0 0 0 1px rgba(232, 200, 150, 0.04);
}

/* Perfurações (estilo borda de selo postal) topo e fundo */
.manifest__perfs {
  position: absolute;
  left: 0; right: 0;
  height: 16px;
  background-image: radial-gradient(circle at 8px center, var(--bg-1) 6px, transparent 6.5px);
  background-size: 16px 16px;
  background-repeat: repeat-x;
  background-position: 0 center;
}

.manifest__perfs--top    { top: -8px; }
.manifest__perfs--bottom { bottom: -8px; }

/* Selo de cera rotacionado no canto */
.manifest__seal {
  position: absolute;
  top: -28px;
  right: clamp(1rem, 4vw, 3rem);
  width: 88px;
  height: 88px;
  color: var(--accent-bright);
  transform: rotate(-12deg);
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
  z-index: 3;
}

.manifest__seal svg { width: 100%; height: 100%; }

.manifest__head {
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px dashed rgba(232, 200, 150, 0.22);
  position: relative;
}

.manifest__stamp {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(200, 153, 104, 0.5);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(200, 153, 104, 0.06);
  border-radius: 2px;
  transform: rotate(-1.5deg);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 24px -8px var(--accent-glow);
}

.manifest__head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
}

.manifest__head p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.manifest__grid {
  display: grid;
  gap: 1.5rem;
}

.manifest__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(232, 200, 150, 0.14);
  position: relative;
  transition: background var(--dur) var(--ease);
}

.manifest__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.manifest__row:hover {
  background: linear-gradient(90deg, transparent, rgba(200, 153, 104, 0.05), transparent);
}

.manifest__code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  min-width: 2.5rem;
  text-align: right;
  opacity: 0.85;
}

.manifest__body {
  display: grid;
  gap: 0.35rem;
}

.manifest__body strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.manifest__body span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.manifest__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #1f130c;
  border-radius: 3px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.4);
}

.manifest__check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 153, 104, 0.4);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 13px;
  align-self: center;
  flex-shrink: 0;
}

.manifest__row--bonus .manifest__code {
  color: var(--accent-bright);
  opacity: 1;
}

/* Rodapé com rows tipo formulário */
.manifest__foot {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px dashed rgba(232, 200, 150, 0.22);
  display: grid;
  gap: 0.7rem;
}

.manifest__foot-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.manifest__foot-row span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
}

.manifest__foot-row span::after {
  content: "";
  position: absolute;
  left: 0; right: -8px;
  bottom: 4px;
  border-bottom: 1px dotted rgba(232, 200, 150, 0.18);
}

.manifest__foot-row strong {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

@media (max-width: 640px) {
  .manifest__row {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
  }
  .manifest__check {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .manifest__seal {
    width: 72px;
    height: 72px;
    top: -22px;
    right: 1rem;
  }
  .manifest__foot-row {
    grid-template-columns: 80px 1fr;
  }
}

/* === Capa em miniatura na oferta === */
.offer-stack {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 920px) {
  .offer-stack {
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-rows: auto auto;
    column-gap: 4rem;
    row-gap: 2rem;
  }

  /* Coluna direita ocupa as duas linhas (card cresce até a base da garantia) */
  .offer-stack .offer__card--right {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  /* Capa fica no topo da coluna esquerda, subida levemente */
  .offer-stack .offer-cover {
    grid-column: 1;
    grid-row: 1;
    margin-top: -1.5rem;
  }

  /* Garantia abaixo da capa, mesma coluna */
  .offer-stack .guarantee--inline {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    max-width: 100%;
  }
}

/* Variante inline: selo no topo, texto embaixo (mais ar pro texto) */
.guarantee--inline {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
}

.guarantee--inline .guarantee__seal {
  width: clamp(80px, 9vw, 100px);
  height: clamp(80px, 9vw, 100px);
}

.guarantee--inline h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.guarantee--inline p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0 auto;
}

.offer-cover {
  position: relative;
  display: flex;
  justify-content: center;
}

.offer-cover .book-cover {
  width: clamp(220px, 28vw, 320px);
}

/* === Autor: retrato como livraria === */
.author--book .author__portrait {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(200, 153, 104, 0.18), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}

.author--book .author__portrait::before {
  content: "GGL";
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: -0.04em;
}

/* === Hero: ajustes específicos === */
.hero--book .hero__proof { justify-content: flex-start; }

@media (max-width: 720px) {
  .hero--book .hero__inner { text-align: center; }
  .hero--book .hero__proof { justify-content: center; }
}

/* ============================================================
   MOTION LAYER — animações constantes / scarcity / activity
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-12deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(-10deg) rotateX(3deg) translateY(-12px); }
}

@keyframes bookGlint {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  20%  { transform: translateX(220%)  skewX(-12deg); }
  100% { transform: translateX(220%)  skewX(-12deg); }
}

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

@keyframes marqueeRev {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes drawUnderline {
  0%   { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

@keyframes auraPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 18px 36px -8px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 20px rgba(200, 153, 104, 0), 0 18px 36px -8px var(--accent-glow); }
}

@keyframes badgeShimmer {
  0%, 100% { background-position: -200% 0; }
  50%      { background-position: 200% 0; }
}

@keyframes toastIn {
  0%   { opacity: 0; transform: translateX(-30px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0)     scale(1); }
}

@keyframes toastOut {
  0%   { opacity: 1; transform: translateX(0)    scale(1); }
  100% { opacity: 0; transform: translateX(-30px) scale(0.96); }
}

@keyframes wordIn {
  0%   { opacity: 0; transform: translateY(60%) rotate(8deg); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0)   rotate(0);    filter: blur(0); }
}

@keyframes coinSpin {
  0%, 100% { transform: rotateY(0deg)   translateY(0) translateX(0); }
  25%      { transform: rotateY(180deg) translateY(-8px) translateX(4px); }
  50%      { transform: rotateY(360deg) translateY(0) translateX(0); }
  75%      { transform: rotateY(540deg) translateY(-6px) translateX(-4px); }
}

@keyframes dust {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-160px) translateX(20px); opacity: 0; }
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@keyframes sectionNumPop {
  0%   { transform: translateY(40%) scale(0.92); opacity: 0; }
  100% { transform: translateY(0)   scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .book-cover,
  .book-cover::before,
  .marquee__track,
  .ribbon-shimmer,
  .activity-toast,
  .scarcity__dot,
  .hero__title .word {
    animation: none !important;
  }
}

/* ---------- Book cover: float + glint constante ---------- */
.book-cover {
  animation: bookFloat 7s ease-in-out infinite;
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 240, 210, 0.18) 50%, transparent 100%);
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: bookGlint 5.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Pausa o float ao hover (deixa a interação com o usuário ter prioridade) */
.book-cover:hover { animation-play-state: paused; }

/* Particulas de poeira/ouro flutuando atrás da capa */
.book-stage__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.book-stage__particles span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-bright), transparent 70%);
  opacity: 0;
  animation: dust 9s linear infinite;
}

.book-stage__particles span:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 7s; }
.book-stage__particles span:nth-child(2) { left: 22%; animation-delay: 2s;   animation-duration: 11s; }
.book-stage__particles span:nth-child(3) { left: 40%; animation-delay: 4.5s; animation-duration: 8s; }
.book-stage__particles span:nth-child(4) { left: 58%; animation-delay: 1.5s; animation-duration: 10s; }
.book-stage__particles span:nth-child(5) { left: 75%; animation-delay: 3s;   animation-duration: 12s; width: 3px; height: 3px; }
.book-stage__particles span:nth-child(6) { left: 88%; animation-delay: 5s;   animation-duration: 9s; }
.book-stage__particles span:nth-child(7) { left: 15%; animation-delay: 6s;   animation-duration: 13s; width: 5px; height: 5px; }
.book-stage__particles span:nth-child(8) { left: 65%; animation-delay: 7.5s; animation-duration: 8.5s; }

/* ---------- MARQUEE — banner-strip vira loop infinito ---------- */
.banner-strip__marquee {
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  padding-right: 3rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 0 30px rgba(0,0,0,0.6);
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee__track--rev { animation: marqueeRev 32s linear infinite; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.marquee__item .sep {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  opacity: 0.95;
}

.marquee__item em {
  font-style: normal;
  color: #ffe5d0;
  font-weight: 800;
}

.banner-strip:hover .marquee__track { animation-play-state: paused; }

/* ---------- SCARCITY: timer + barra de vagas ---------- */
.scarcity {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: inline-grid;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(200, 153, 104, 0.30);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(200, 153, 104, 0.08), transparent 70%),
    rgba(34, 22, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: min(420px, 100%);
  position: relative;
  overflow: hidden;
}

.scarcity::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 153, 104, 0.10), transparent);
  background-size: 200% 100%;
  animation: badgeShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

.scarcity__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.scarcity__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff7866;
  box-shadow: 0 0 12px #ff7866;
  animation: blinkDot 1.4s ease-in-out infinite;
}

.scarcity__timer {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-display);
  align-items: baseline;
}

.scarcity__cell {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.scarcity__cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}

.scarcity__sep {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.6;
}

.scarcity__stock {
  display: grid;
  gap: 0.35rem;
}

.scarcity__stock-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scarcity__stock-label strong { color: var(--accent-bright); font-weight: 600; }

.scarcity__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.scarcity__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 28%);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px var(--accent-glow);
  border-radius: 999px;
  transition: width 1.2s var(--ease-out);
}

.scarcity__bar-fill::after {
  content: "";
  position: absolute;
  top: 0; right: -2px; bottom: 0;
  width: 12px;
  background: rgba(255,255,255,0.6);
  filter: blur(4px);
}

/* ---------- ACTIVITY TOAST (compras ao vivo) ---------- */
.activity-toast {
  position: fixed;
  bottom: 96px;
  left: 16px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background: rgba(34, 22, 16, 0.95);
  border: 1px solid rgba(200, 153, 104, 0.28);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7), 0 0 30px -10px var(--accent-glow);
  max-width: min(320px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-30px) scale(0.96);
}

.activity-toast.is-in  { animation: toastIn  450ms var(--ease-out) forwards; pointer-events: auto; }
.activity-toast.is-out { animation: toastOut 350ms var(--ease) forwards; }

.activity-toast__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1f130c;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-toast__text {
  display: grid;
  line-height: 1.3;
}

.activity-toast__text strong {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.activity-toast__text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.activity-toast__close {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  color: var(--text-dim);
  font-size: 14px;
  border-radius: 50%;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.activity-toast__close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

@media (max-width: 720px) {
  .activity-toast {
    bottom: 110px;
    left: 12px;
    max-width: calc(100vw - 24px);
  }
}

/* ---------- SECTION DOT NAV (lateral direita) ---------- */
.section-nav {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem 0.55rem;
  background: rgba(34, 22, 16, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 1080px) {
  .section-nav { display: flex; }
}

.section-nav a {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 200, 150, 0.25);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.section-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(34, 22, 16, 0.95);
  border: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.section-nav a:hover {
  background: var(--accent);
  transform: scale(1.2);
}

.section-nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.section-nav a.is-active {
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  transform: scale(1.25);
}

/* ---------- UNDERLINE — sublinhado desenhado nos termos-chave ---------- */
.draw-underline {
  position: relative;
  display: inline-block;
  color: var(--text);
  white-space: nowrap;
}

.draw-underline::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -2px;
  height: 8px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 C 40 1, 80 7, 120 4 S 180 1, 198 5' stroke='%23c89968' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.draw-underline.is-drawn::after { transform: scaleX(1); }

/* ---------- HERO TITLE — reveal palavra por palavra ---------- */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(8deg);
  filter: blur(8px);
  margin-right: 0.25em;
  will-change: transform, opacity, filter;
}

.hero__title.is-words-in .word {
  animation: wordIn 0.9s var(--ease-out) forwards;
}

.hero__title.is-words-in .word:nth-child(1)  { animation-delay: 0.05s; }
.hero__title.is-words-in .word:nth-child(2)  { animation-delay: 0.18s; }
.hero__title.is-words-in .word:nth-child(3)  { animation-delay: 0.30s; }
.hero__title.is-words-in .word:nth-child(4)  { animation-delay: 0.42s; }
.hero__title.is-words-in .word:nth-child(5)  { animation-delay: 0.54s; }
.hero__title.is-words-in .word:nth-child(6)  { animation-delay: 0.66s; }

/* ---------- AURA pulsante nos CTAs principais ---------- */
.btn--aura {
  animation: auraPulse 2.6s var(--ease) infinite;
}

/* ---------- SECTION NUMBER — pop in com motion ---------- */
.section__head[data-num].is-num-in::before {
  animation: sectionNumPop 1s var(--ease-out) forwards;
}

/* Inicialmente esconde o número grande pra ele entrar com motion */
.section__head[data-num]::before {
  opacity: 0;
  transform: translateY(40%) scale(0.92);
  transition: none;
}

/* ---------- BANNER STRIP texto antigo: esconde (substituído por marquee) ---------- */
.banner-strip__text { display: none; }

/* ---------- BÔNUS — magnetic button hover halo + ribbon shimmer ---------- */
.btn { transition: transform 220ms var(--ease-out), box-shadow var(--dur) var(--ease-out); }

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Ribbon shimmer no badge "Oferta de lançamento" */
.offer__badge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.offer__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: badgeShimmer 3.2s ease-in-out infinite;
  z-index: -1;
}

/* Sticky CTA — pulse leve para chamar atenção */
.sticky-cta.is-visible .btn {
  animation: auraPulse 3s var(--ease) infinite;
}

/* Hero CTA quando aparece — animação maior */
.hero__cta .btn--lg { animation: auraPulse 3.2s var(--ease) infinite; }

/* Book tag — pequena flutuação */
@keyframes tagFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-3px) rotate(-1deg); }
}

.book-tag { animation: tagFloat 3s ease-in-out infinite; }

/* ============================================================
   ÁREA DO LEITOR — biblioteca + reader (PDF embed)
   ============================================================ */

/* ===== Dashboard: hero do livro ===== */
.library-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .library-hero { grid-template-columns: 0.7fr 1.3fr; }
}

.library-hero__cover {
  display: flex;
  justify-content: center;
  position: relative;
}

.library-hero__cover .book-cover {
  width: clamp(200px, 26vw, 300px);
}

.library-hero__info {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.library-hero__info .kicker { justify-self: start; margin: 0 0 0.25rem; }

.library-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
  color: var(--text);
}

.library-hero__author {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-bright);
  font-size: 1.1rem;
}

.library-hero__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 56ch;
}

.library-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  border-top: 1px dashed rgba(232, 200, 150, 0.18);
  border-bottom: 1px dashed rgba(232, 200, 150, 0.18);
}

.library-hero__meta strong {
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.library-hero__meta .dot { color: var(--text-dim); }

.library-hero__progress {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.library-hero__progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.library-hero__progress-label strong { color: var(--accent-bright); font-weight: 600; }

.library-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

/* ===== Sumário no dashboard ===== */
.library-toc {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.library-toc__head {
  margin-bottom: 1.75rem;
  display: grid;
  gap: 0.35rem;
}

.library-toc__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.library-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  counter-reset: chapter;
}

.chapter-item a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(200, 153, 104, 0.04), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.chapter-item a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.chapter-item a:hover {
  border-color: rgba(200, 153, 104, 0.35);
  transform: translateY(-2px);
}

.chapter-item a:hover::before { opacity: 1; }

.chapter-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chapter-item__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.chapter-item__body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.chapter-item__status {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 200, 150, 0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all var(--dur) var(--ease);
}

.chapter-item__status svg { width: 16px; height: 16px; }

.chapter-item.is-read .chapter-item__status {
  background: var(--accent-soft);
  border-color: rgba(200, 153, 104, 0.4);
  color: var(--accent-bright);
}

.chapter-item.is-read .chapter-item__body h3 {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .chapter-item a { grid-template-columns: auto 1fr auto; gap: 0.85rem; padding: 0.9rem 1rem; }
  .chapter-item__num { font-size: 0.9rem; }
  .chapter-item__body h3 { font-size: 0.95rem; }
  .chapter-item__body p { font-size: 0.8rem; }
}

/* ===== "Continue de onde parou" — thumb com capa ===== */
.continue-card__thumb--book {
  width: 60px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.5);
}

.continue-card__thumb--book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Reader (curso.html repurposed) ===== */
.page-reader { background: var(--bg); }

.reader {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 72px);
}

@media (min-width: 1024px) {
  .reader { grid-template-columns: 320px 1fr; }
}

/* ===== Sidebar do reader ===== */
.reader__sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .reader__sidebar {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
}

/* Mobile drawer */
@media (max-width: 1023px) {
  .reader__sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 320ms var(--ease-out);
    box-shadow: 30px 0 60px -10px rgba(0,0,0,0.8);
    overflow-y: auto;
  }
  .reader__sidebar.is-open { transform: translateX(0); }
}

.reader__sidebar-head {
  display: grid;
  gap: 0.65rem;
}

.reader__sidebar-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.reader__sidebar-progress {
  display: grid;
  gap: 0.4rem;
}

.reader__sidebar-progress .progress__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.reader__sidebar-progress .progress__label strong { color: var(--accent-bright); font-weight: 600; }

/* ===== Stage do reader (PDF + cabeçalho do capítulo) ===== */
.reader__stage {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  min-width: 0;
}

@media (min-width: 1100px) {
  .reader__stage {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "pdf info"
      "pdf actions";
    grid-template-rows: 1fr auto;
    align-items: start;
    gap: 1.25rem 2rem;
  }

  .reader__stage .pdf-frame      { grid-area: pdf; height: calc(100vh - 130px); }
  .reader__stage .lesson-head    { grid-area: info; }
  .reader__stage .lesson-actions { grid-area: actions; }

  /* No layout horizontal, ações ficam empilhadas verticalmente na coluna lateral */
  .reader__stage .lesson-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .reader__stage .lesson-actions__nav {
    flex-direction: column;
    gap: 0.6rem;
  }

  .reader__stage .lesson-actions__nav .btn { justify-content: center; }
  .reader__stage .reader-progress { align-self: center; }
}

.reader__stage .lesson-head { padding: 0; margin: 0; }

/* ===== PDF reader (PDF.js) ===== */
.pdf-frame {
  position: relative;
  width: 100%;
  height: calc(100vh - 240px);
  min-height: 600px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(200, 153, 104, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.8),
    0 0 60px -20px var(--accent-glow),
    inset 0 0 0 1px rgba(232, 200, 150, 0.04);
  padding: 1.75rem clamp(0.5rem, 2vw, 2rem);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 153, 104, 0.35) transparent;
}

.pdf-frame::-webkit-scrollbar          { width: 10px; }
.pdf-frame::-webkit-scrollbar-track    { background: transparent; }
.pdf-frame::-webkit-scrollbar-thumb    { background: rgba(200, 153, 104, 0.3); border-radius: 999px; }
.pdf-frame::-webkit-scrollbar-thumb:hover { background: rgba(200, 153, 104, 0.5); }

.pdf-page {
  position: relative;
  margin: 0 auto 1.25rem;
  max-width: min(100%, 820px);
  background: #f5f1e8;
  border-radius: 4px;
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(232, 200, 150, 0.05);
}

.pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Enquanto carrega, força um tamanho (placeholder visual).
   Quando o canvas é injetado, o aspect-ratio fica natural da página real. */
.pdf-page.is-loading {
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
}

.pdf-page.is-loading::before {
  content: "página " attr(data-page);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(0deg, #f5f1e8 0 12px, #ece6d6 12px 13px);
}

.pdf-page.is-error::before {
  content: "Erro ao carregar";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c94a4a;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Loading inicial enquanto o PDF.js baixa o livro */
.pdf-loading {
  display: grid;
  place-items: center;
  gap: 1.25rem;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.pdf-loading p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pdf-loading code {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 0.1em 0.4em;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  color: var(--accent-bright);
  text-transform: none;
  letter-spacing: 0;
}

.pdf-loading__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(200, 153, 104, 0.18);
  border-top-color: var(--accent-bright);
  animation: pdfSpin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(200, 153, 104, 0.25);
}

@keyframes pdfSpin {
  to { transform: rotate(360deg); }
}

/* Indicador "salvo automaticamente" no rodapé do reader */
.reader-progress {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}

.reader-progress span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 153, 104, 0.25);
  border-radius: 999px;
}

.reader-progress svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 720px) {
  .pdf-frame { height: calc(100vh - 200px); padding: 1rem 0.5rem; }
  .pdf-page  { margin-bottom: 0.75rem; }
}

/* ===== Capítulo lido na sidebar ganha cor diferente ===== */
.reader .lesson-item.is-completed .lesson-item__title { color: var(--text-muted); }
.reader .lesson-item.is-completed .lesson-item__icon  { color: var(--accent-bright); }

/* ===== Botão "marcar como lido" — estado completed ===== */
.lesson-actions__complete[data-completed="true"] {
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.lesson-actions__complete[data-completed="true"]::before {
  background: transparent;
}

/* ============================================================
   PHASES — "páginas de capítulo" verticais (substitui .method)
   ============================================================ */
.phases {
  display: grid;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}

.phase {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(232, 200, 150, 0.10);
  border-radius: 4px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(200, 153, 104, 0.10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(232, 200, 150, 0.02) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(232, 200, 150, 0.04);
}

/* Quinas vintage */
.phase::before,
.phase::after {
  content: "";
  position: absolute;
  width: 70px; height: 70px;
  pointer-events: none;
  z-index: 0;
}
.phase::before {
  top: 0; left: 0;
  background: linear-gradient(135deg, rgba(232, 200, 150, 0.08), transparent 55%);
}
.phase::after {
  bottom: 0; right: 0;
  background: linear-gradient(-45deg, rgba(232, 200, 150, 0.08), transparent 55%);
}

/* Numeral romano gigante como herói visual */
.phase__roman {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin: 1rem 0 1.25rem;
  text-shadow:
    0 0 60px var(--accent-glow),
    0 0 140px var(--accent-glow-2);
  -webkit-text-stroke: 1px rgba(232, 200, 150, 0.18);
  position: relative;
  z-index: 1;
  user-select: none;
  display: inline-block;
}

/* Linhas decorativas dos dois lados do numeral romano */
.phase__roman::before,
.phase__roman::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 153, 104, 0.4), transparent);
}
.phase__roman::before { right: 100%; margin-right: 1.5rem; }
.phase__roman::after  { left:  100%; margin-left:  1.5rem; }

/* Label superior (pílula vintage) */
.phase__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(200, 153, 104, 0.35);
  border-radius: 999px;
  background: rgba(200, 153, 104, 0.06);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px -8px var(--accent-glow);
}

/* Título da fase em uppercase display */
.phase__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.phase__lead {
  max-width: 56ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.phase__divider {
  font-family: var(--font-display);
  letter-spacing: 0.55em;
  color: var(--accent);
  opacity: 0.6;
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  padding-left: 0.55em;
  position: relative;
  z-index: 1;
}

.phase__topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-grid;
  gap: 0.55rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.phase__topics li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: -0.005em;
}

.phase__topics li::before {
  content: "▸";
  color: var(--accent);
  font-size: 0.85rem;
}

/* Conector entre as fases — linha vertical + 3 pontos */
.phases__connect {
  position: relative;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.phases__connect::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 153, 104, 0.45) 30%, rgba(200, 153, 104, 0.45) 70%, transparent);
}

.phases__connect span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  position: relative;
  z-index: 1;
  opacity: 0.5;
  animation: connectBlink 2.4s ease-in-out infinite;
}

.phases__connect span:nth-child(1) { animation-delay: 0s; }
.phases__connect span:nth-child(2) { animation-delay: 0.3s; opacity: 0.85; }
.phases__connect span:nth-child(3) { animation-delay: 0.6s; }

@keyframes connectBlink {
  0%, 100% { transform: scale(1);   opacity: 0.45; }
  50%      { transform: scale(1.4); opacity: 1; }
}

@media (max-width: 640px) {
  .phase__roman::before,
  .phase__roman::after { display: none; }
  .phase__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}

/* === Sticky header + cards empilhados (stack) === */
@media (min-width: 768px) {
  #livro .section__head {
    position: sticky;
    top: 72px; /* logo abaixo da nav */
    z-index: 5;
    background: linear-gradient(180deg,
      rgba(34, 22, 16, 0.96) 0%,
      rgba(34, 22, 16, 0.94) 60%,
      rgba(34, 22, 16, 0.82) 88%,
      rgba(34, 22, 16, 0) 100%);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
    margin: 0 calc(clamp(1rem, 4vw, 2.5rem) * -1) 1.5rem;
    border-bottom: 1px solid rgba(232, 200, 150, 0.06);
  }

  /* Esconde o "02" decorativo gigante quando o head está sticky */
  #livro .section__head[data-num]::before { display: none; }

  /* Stack das fases: cada card vira sticky no mesmo top,
     o seguinte sobe e cobre o anterior na ordem do DOM */
  .phases--stack {
    display: grid;
    gap: 0;
  }

  .phases--stack .phase {
    position: sticky;
    /* nav (72) + altura aproximada do head sticky (~280-320px) + folga */
    top: clamp(360px, 38vh, 420px);
    /* z-index crescente garante que o próximo cobre o anterior */
    z-index: calc(var(--phase-i, 1) + 1);
    /* sombra dramática + máscara superior pra emenda limpa entre cards */
    box-shadow:
      0 -50px 60px -10px rgba(0, 0, 0, 0.65),
      0 40px 80px -30px rgba(0, 0, 0, 0.8),
      inset 0 0 0 1px rgba(232, 200, 150, 0.04);
  }

  /* Espaço de scroll igual entre cada card consecutivo */
  .phases--stack .phase + .phase {
    margin-top: 70vh;
  }
}

/* Em telas menores, sem stack: cards empilhados de forma natural */
@media (max-width: 767px) {
  .phases--stack .phase { margin-top: 1.5rem; }
  .phases--stack .phase:first-child { margin-top: 0; }
}

/* ============================================================
   PRAISE — página de elogios estilo livro editorial
   ============================================================ */
.praise {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 1rem 0;
}

/* Header da página */
.praise__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}

.praise__pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.praise__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--accent-bright);
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 0 40px var(--accent-glow-2);
}

.praise__ornament {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.55em;
  opacity: 0.55;
  padding-left: 0.55em; /* compensa o letter-spacing pra centralizar */
  margin-top: 0.85rem;
}

/* Cada citação */
.praise__quote {
  margin: 0;
  padding: 2rem 0;
  position: relative;
  max-width: 620px;
  margin-inline: auto;
}

.praise__quote--right { margin-left: auto;  text-align: right; }
.praise__quote--left  { margin-right: auto; text-align: left; }

.praise__quote--right .praise__mark--open  { left: auto; right: -0.2em; }
.praise__quote--right .praise__mark--close { left: -0.4em; right: auto; }
.praise__quote--left  .praise__mark--open  { left: -0.2em; }

.praise__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5rem, 9vw, 7rem);
  color: var(--accent);
  opacity: 0.35;
  line-height: 0;
  position: absolute;
  user-select: none;
  text-shadow: 0 0 30px var(--accent-glow);
  transition: opacity 600ms var(--ease);
}

.praise__mark--open {
  top: 2.5rem;
  left: -0.2em;
}

.praise__mark--close {
  bottom: 5.5rem;
  right: -0.2em;
}

.praise__quote:hover .praise__mark { opacity: 0.7; }

.praise__quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 auto 1.75rem;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}

.praise__quote em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-bright);
  background-image: linear-gradient(transparent 75%, rgba(200, 153, 104, 0.18) 75%);
  padding: 0 0.1em;
}

.praise__quote figcaption {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
}

.praise__quote--right figcaption { justify-items: end;   text-align: right; }
.praise__quote--left  figcaption { justify-items: start; text-align: left; }

.praise__dash {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0;
  margin-bottom: 0.1rem;
  opacity: 0.7;
}

.praise__quote figcaption strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.praise__loc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Divisor entre citações */
.praise__sep {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.8em;
  color: var(--accent);
  opacity: 0.4;
  margin: 1rem 0;
  padding-left: 0.8em;
  user-select: none;
}

/* Rodapé estilo livro */
.praise__foot {
  margin-top: 3rem;
  display: grid;
  gap: 0.75rem;
}

.praise__pagemark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .praise__mark { font-size: 4rem; }
  .praise__mark--open  { top: 1.5rem; left: -0.1em; }
  .praise__mark--close { bottom: 4.5rem; right: -0.1em; }
  .praise__quote { padding: 1.5rem 0.5rem; }
  .praise__quote--right,
  .praise__quote--left { text-align: center; }
  .praise__quote--right figcaption,
  .praise__quote--left  figcaption { justify-items: center; text-align: center; }
}

/* ============================================================
   CAROUSEL — depoimentos em slide horizontal
   ============================================================ */
.carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(0px, 2vw, 4rem);
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(200, 153, 104, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, rgba(232, 200, 150, 0.018) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(232, 200, 150, 0.12);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.75),
    inset 0 0 0 1px rgba(232, 200, 150, 0.04);
  position: relative;
  isolation: isolate;
}

/* Quinas vintage */
.carousel__viewport::before,
.carousel__viewport::after {
  content: "";
  position: absolute;
  width: 60px; height: 60px;
  pointer-events: none;
  z-index: 0;
}
.carousel__viewport::before {
  top: 0; left: 0;
  background: linear-gradient(135deg, rgba(232, 200, 150, 0.08), transparent 55%);
}
.carousel__viewport::after {
  bottom: 0; right: 0;
  background: linear-gradient(-45deg, rgba(232, 200, 150, 0.08), transparent 55%);
}

.carousel__track {
  display: flex;
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}

.carousel__slide {
  min-width: 100%;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 5vw, 4rem);
  margin: 0;
  text-align: center;
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.carousel__slide blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 60ch;
  margin: 0;
  position: relative;
  letter-spacing: -0.005em;
}

.carousel__slide blockquote::before {
  content: "\201C";
  display: block;
  font-size: clamp(3.5rem, 6vw, 5rem);
  color: var(--accent);
  opacity: 0.4;
  line-height: 0.5;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-shadow: 0 0 30px var(--accent-glow);
}

.carousel__slide blockquote em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-bright);
  background-image: linear-gradient(transparent 75%, rgba(200, 153, 104, 0.18) 75%);
  padding: 0 0.1em;
}

.carousel__slide figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(232, 200, 150, 0.2);
  width: min(360px, 90%);
  justify-content: center;
}

.carousel__avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #1f130c;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5);
}

.carousel__author {
  display: grid;
  text-align: left;
  gap: 0.15rem;
}

.carousel__author strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.carousel__author span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* === Setas de navegação === */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(34, 22, 16, 0.92);
  border: 1px solid rgba(200, 153, 104, 0.4);
  color: var(--accent-bright);
  cursor: pointer;
  transition: all 320ms var(--ease-out);
  z-index: 5;
  box-shadow:
    0 12px 28px -8px rgba(0,0,0,0.7),
    0 0 24px -8px var(--accent-glow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.carousel__nav svg {
  width: 22px;
  height: 22px;
}

.carousel__nav:hover {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #1f130c;
  border-color: var(--accent-bright);
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 16px 36px -8px rgba(0,0,0,0.8),
    0 0 36px -4px var(--accent-glow);
}

.carousel__nav:active { transform: translateY(-50%) scale(0.96); }

.carousel__nav--prev { left: -8px; }
.carousel__nav--next { right: -8px; }

/* === Dots indicadores === */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.carousel__dots button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(232, 200, 150, 0.2);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 320ms var(--ease), width 320ms var(--ease-out);
}

.carousel__dots button:hover { background: rgba(200, 153, 104, 0.5); }

.carousel__dots button.is-active {
  background: var(--accent);
  width: 48px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* === Mobile === */
@media (max-width: 640px) {
  .carousel { padding: 0; }
  .carousel__nav {
    width: 40px; height: 40px;
  }
  .carousel__nav svg { width: 18px; height: 18px; }
  .carousel__nav--prev { left: 8px; }
  .carousel__nav--next { right: 8px; }
  .carousel__slide figcaption { flex-direction: column; gap: 0.6rem; text-align: center; }
  .carousel__author { text-align: center; }
}
