/* ===== CAMADA-MED V48 · correções cirúrgicas ===== */

/* 1) DIAGNÓSTICO: uma pergunta por vez (corrige bug da lista) */
.cm-quiz-shell .cm-quiz-step:not(.is-active),
.cm-quiz-shell .q-card:not(.is-active),
[data-quiz-wizard] .cm-quiz-step:not(.is-active),
[data-quiz-wizard] .q-card:not(.is-active){ display:none !important; }
.cm-quiz-shell .cm-quiz-step.is-active,
.cm-quiz-shell .q-card.is-active{ display:block !important; }

/* 2) LETRAS MAIS FORTES (leitura) */
.dive-lead{ color:#3c473f !important; font-weight:500 !important; }
#leadForm, .cm-quiz-shell, .cm-quiz-head span,
.q-card h3, .cm-question-number,
.cm-route-sub, .cm-route-case p, .cm-route-reason p,
.cm-road-step span, .result-profile-intro p,
.cm-profile-copy p{ color:#26302a !important; }
.choice .choice-copy{ color:#1f2a24 !important; font-weight:500 !important; }
.q-card h3{ color:#16231d !important; }

/* 3) MARCA D'ÁGUA: selo oficial afundado, fraco (asset original do site) */
#divePanel::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:url("/assets/brand/camadamed-crest-stamp-v37.webp") center/min(74vw,460px) no-repeat;
  opacity:.06; mix-blend-mode:multiply;
}
#dive .dive-inner{ position:relative; z-index:1; }
.cm-result-stamp{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:url("/assets/brand/camadamed-crest-stamp-v37.webp") center/min(72vw,440px) no-repeat;
  opacity:.05; mix-blend-mode:multiply;
}

/* 4) POPUP DE SAÍDA DO COMPRE AQUI (relógio + desconto) — só via JS, nunca auto-abre */
.cmfe-modal{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:22px;
  background:rgba(14,42,36,.40);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);}
.cmfe-modal.cmfe-on{display:flex;animation:cmfeFade .28s ease;}
@keyframes cmfeFade{from{opacity:0}to{opacity:1}}
.cmfe-box{position:relative;max-width:382px;width:100%;border-radius:24px;padding:30px 24px 22px;
  background:#F6EFE0;background-image:url("/assets/brand/paper-cream-v37.png");background-size:360px;
  border:1px solid rgba(184,134,42,.5);box-shadow:0 30px 70px -28px rgba(14,42,36,.7);
  animation:cmfeUp .34s cubic-bezier(.22,.61,.36,1);color:#0E2A24;font-family:"Inter",system-ui,sans-serif;}
@keyframes cmfeUp{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.cmfe-x{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(14,42,36,.16);
  background:#F2E9D8;color:#0E2A24;cursor:pointer;font-size:16px;line-height:1;display:grid;place-items:center;}
.cmfe-eyebrow{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:#B8862A;margin-bottom:10px;}
.cmfe-box h2{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:27px;line-height:1.12;margin:0 0 8px;color:#0E2A24;}
.cmfe-sub{color:#283029;font-size:14.5px;font-weight:500;margin:0 0 16px;}
.cmfe-timer{display:flex;flex-direction:column;align-items:center;gap:4px;margin:2px 0 16px;}
.cmfe-tl{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#5E6B61;}
.cmfe-clock{font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:500;font-size:34px;color:#8C2C3A;letter-spacing:.04em;}
.cmfe-price{text-align:center;margin-bottom:18px;}
.cmfe-from{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;color:#5E6B61;text-decoration:line-through;}
.cmfe-now{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:38px;color:#0E2A24;line-height:1;margin:2px 0;}
.cmfe-coupon{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;letter-spacing:.1em;color:#B8862A;}
.cmfe-cta{display:block;width:100%;text-align:center;text-decoration:none;cursor:pointer;border:none;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12.5px;letter-spacing:.13em;text-transform:uppercase;font-weight:500;color:#3a2a06;
  padding:17px 18px;border-radius:16px;background:linear-gradient(180deg,#FBEFC4,#E7C766 45%,#B8862A);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 12px 26px -14px rgba(184,134,42,.9);}
.cmfe-dismiss{display:block;width:100%;margin-top:10px;background:none;border:none;color:#5E6B61;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;}
@media (prefers-reduced-motion:reduce){.cmfe-modal,.cmfe-box{animation:none!important}}

/* 5) dive opaco (sem vazar o fundo da página atrás) — combina com a print aprovada */
#dive.open{ background:#F2E9D8 url("/assets/brand/paper-cream-v37.png") !important; background-size:360px !important; }

/* ═══════════════════════════════════════════════════════════════════
   6) SUPERPREMIUM + MODULOS — identidade creme/petróleo/dourado
   Corrige: fundo verde-escuro, logo errada, cards ilegíveis,
   textos brancos, rodapé cortado, h1/h2 sem identidade.
   Escopo: body[data-page="superpremium"] + body[data-page="modulos"]
═══════════════════════════════════════════════════════════════════ */

/* — fundo global: papel creme com textura — */
body[data-page="superpremium"],
body[data-page="modulos"]{
  background: #F2E9D8 url("/assets/brand/paper-cream-v37.png") repeat !important;
  background-size: 360px !important;
  color: #0E2A24 !important;
}
body[data-page="superpremium"]::before,
body[data-page="superpremium"]::after,
body[data-page="modulos"]::before,
body[data-page="modulos"]::after{ display:none !important; }
body[data-page="superpremium"] .cm-page-sheen,
body[data-page="modulos"] .cm-page-sheen{ display:none !important; }

/* — nav/header: creme translúcido, logo cream — */
body[data-page="superpremium"] .nav,
body[data-page="superpremium"] header,
body[data-page="superpremium"] .top,
body[data-page="superpremium"] .top-bar,
body[data-page="modulos"] .nav,
body[data-page="modulos"] header,
body[data-page="modulos"] .top,
body[data-page="modulos"] .top-bar,
body[data-page="modulos"] .lib-topbar{
  background: rgba(242,233,216,.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(14,42,36,.12) !important;
  box-shadow: none !important;
}
body[data-page="superpremium"] .official-logo-img,
body[data-page="modulos"] .official-logo-img{
  width: auto !important;
  height: 38px !important;
  max-width: 160px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}
body[data-page="superpremium"] .brand,
body[data-page="modulos"] .brand,
body[data-page="modulos"] .lib-logo{ color: #0E2A24 !important; }
body[data-page="superpremium"] .nav-link,
body[data-page="modulos"] .nav-link{ color: #0E2A24 !important; }

/* — hero: fundo transparente, textos petróleo — */
body[data-page="superpremium"] .hero,
body[data-page="superpremium"] .super-hero,
body[data-page="superpremium"] .section,
body[data-page="superpremium"] .section.alt,
body[data-page="modulos"] .hero,
body[data-page="modulos"] .library-intro,
body[data-page="modulos"] .section,
body[data-page="modulos"] .section.alt{
  background: transparent !important;
  border-color: rgba(14,42,36,.1) !important;
  box-shadow: none !important;
}
body[data-page="superpremium"] h1,
body[data-page="superpremium"] h2,
body[data-page="superpremium"] h3,
body[data-page="modulos"] h1,
body[data-page="modulos"] h2,
body[data-page="modulos"] h3{
  color: #0E2A24 !important;
  -webkit-text-fill-color: #0E2A24 !important;
}
body[data-page="superpremium"] .gold,
body[data-page="superpremium"] .h1 .gold,
body[data-page="modulos"] .gold,
body[data-page="modulos"] .gold-text{
  background: linear-gradient(135deg,#B8862A,#E7C766 50%,#B8862A) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
}
body[data-page="superpremium"] p,
body[data-page="superpremium"] .lead,
body[data-page="superpremium"] .body-text,
body[data-page="modulos"] p,
body[data-page="modulos"] .lead{ color: #3C473F !important; }
body[data-page="superpremium"] .eyebrow,
body[data-page="modulos"] .eyebrow{
  color: #B8862A !important;
  -webkit-text-fill-color: #B8862A !important;
}

/* — cards numerados (01-06): creme escuro com borda dourada, texto legível — */
body[data-page="superpremium"] .card,
body[data-page="superpremium"] .cards-grid .card{
  background: #EDE2C8 !important;
  border: 1px solid rgba(184,134,42,.35) !important;
  box-shadow: 0 4px 24px -8px rgba(14,42,36,.14) !important;
  color: #0E2A24 !important;
}
body[data-page="superpremium"] .card-number,
body[data-page="superpremium"] .card .cm-order{
  color: #B8862A !important;
  -webkit-text-fill-color: #B8862A !important;
  background: none !important;
  font-weight: 700 !important;
}
body[data-page="superpremium"] .card h3,
body[data-page="superpremium"] .card h4{
  color: #0E2A24 !important;
  -webkit-text-fill-color: #0E2A24 !important;
}
body[data-page="superpremium"] .card p{
  color: #3C473F !important;
  -webkit-text-fill-color: #3C473F !important;
}
/* sweeps/shine off on these pages */
body[data-page="superpremium"] .card::before,
body[data-page="superpremium"] .book-feature::before,
body[data-page="modulos"] .cm-free-card::before,
body[data-page="modulos"] .module::before,
body[data-page="modulos"] .cm-route-hero::before,
body[data-page="modulos"] .cm-route-support article::before{ display:none !important; }

/* — preços/badge — */
body[data-page="superpremium"] .badge{
  background: rgba(184,134,42,.12) !important;
  border: 1px solid rgba(184,134,42,.4) !important;
  color: #7A5A18 !important;
}
body[data-page="superpremium"] .book-feature,
body[data-page="superpremium"] .offer{
  background: #EDE2C8 !important;
  border: 1px solid rgba(184,134,42,.25) !important;
  box-shadow: 0 4px 24px -8px rgba(14,42,36,.14) !important;
}
body[data-page="superpremium"] .clean-list li,
body[data-page="superpremium"] .clean-list{ color: #0E2A24 !important; }

/* — CTA buttons — */
body[data-page="superpremium"] .btn.btn-primary,
body[data-page="modulos"] .btn.btn-primary,
body[data-page="modulos"] .cta-gold,
body[data-page="modulos"] .btn-gold{
  background: linear-gradient(152deg,#FBEFC4,#E7C766 45%,#B8862A) !important;
  color: #120B00 !important;
  box-shadow: 0 8px 24px -12px rgba(184,134,42,.7), inset 0 1px 0 rgba(255,255,255,.55) !important;
  -webkit-text-fill-color: #120B00 !important;
}
body[data-page="superpremium"] .btn.btn-secondary,
body[data-page="modulos"] .btn.btn-secondary{
  background: transparent !important;
  border: 1.5px solid rgba(14,42,36,.3) !important;
  color: #0E2A24 !important;
  -webkit-text-fill-color: #0E2A24 !important;
}

/* — modulos: cards de módulos/anos legíveis — */
body[data-page="modulos"] .module,
body[data-page="modulos"] .year-card,
body[data-page="modulos"] .subject-card,
body[data-page="modulos"] .module-item,
body[data-page="modulos"] .cm-free-card,
body[data-page="modulos"] .cm-route-hero,
body[data-page="modulos"] .cm-route-support article{
  background: #EDE2C8 !important;
  border: 1px solid rgba(184,134,42,.3) !important;
  box-shadow: 0 4px 20px -8px rgba(14,42,36,.12) !important;
  color: #0E2A24 !important;
}
body[data-page="modulos"] .year-info h3,
body[data-page="modulos"] .subject-card h3,
body[data-page="modulos"] .module-info h4,
body[data-page="modulos"] .cm-free-card h3,
body[data-page="modulos"] .cm-route-hero h3,
body[data-page="modulos"] .cm-route-support strong{
  color: #0E2A24 !important;
  -webkit-text-fill-color: #0E2A24 !important;
}
body[data-page="modulos"] .year-info p,
body[data-page="modulos"] .subject-card p,
body[data-page="modulos"] .module-info p,
body[data-page="modulos"] .cm-free-card p,
body[data-page="modulos"] .cm-route-sub,
body[data-page="modulos"] .cm-route-case p,
body[data-page="modulos"] .cm-route-reason p,
body[data-page="modulos"] .cm-route-support p{
  color: #3C473F !important;
  -webkit-text-fill-color: #3C473F !important;
}
body[data-page="modulos"] .cm-order,
body[data-page="modulos"] .cm-route-hero .cm-order,
body[data-page="modulos"] .cm-route-support span{
  color: #B8862A !important;
  -webkit-text-fill-color: #B8862A !important;
}
body[data-page="modulos"] .cm-actions a{
  border-color: rgba(184,134,42,.4) !important;
  color: #7A5A18 !important;
  background: rgba(184,134,42,.08) !important;
}
body[data-page="modulos"] .tag,
body[data-page="modulos"] .recommended-tag,
body[data-page="modulos"] .value-pills span,
body[data-page="modulos"] .s-count{
  background: rgba(184,134,42,.1) !important;
  border-color: rgba(184,134,42,.3) !important;
  color: #7A5A18 !important;
}
body[data-page="modulos"] .breadcrumb{
  background: rgba(14,42,36,.06) !important;
  border-color: rgba(184,134,42,.2) !important;
  color: #5A6B62 !important;
}
body[data-page="modulos"] .cm-reason{
  background: rgba(184,134,42,.06) !important;
  border-left-color: #B8862A !important;
  color: #0E2A24 !important;
}

/* — rodapé: limpo, creme, logo completa — */
body[data-page="superpremium"] footer,
body[data-page="superpremium"] .footer,
body[data-page="modulos"] footer,
body[data-page="modulos"] .footer,
body[data-page="modulos"] .cm-contact-footer-standalone{
  background: #EDE2C8 !important;
  border-top: 1px solid rgba(14,42,36,.12) !important;
  color: #3C473F !important;
  box-shadow: none !important;
}
body[data-page="superpremium"] .footer-brand .official-logo-img,
body[data-page="modulos"] .footer-brand .official-logo-img,
body[data-page="modulos"] .lib-logo .official-logo-img{
  height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}
body[data-page="superpremium"] .footer p,
body[data-page="modulos"] .footer p,
body[data-page="modulos"] .cm-contact-footer-standalone p{ color:#5A6B62 !important; }
body[data-page="superpremium"] .cm-contact-link,
body[data-page="modulos"] .cm-contact-link{ color:#0E2A24 !important; }
body[data-page="superpremium"] .cm-contact-link strong,
body[data-page="modulos"] .cm-contact-link strong{ color:#0E2A24 !important; }
body[data-page="superpremium"] .cm-contact-link span,
body[data-page="modulos"] .cm-contact-link span{ color:#5A6B62 !important; }

/* kill cm-page-sheen + body overlays on cream pages (mix-blend:screen over cream = black) */
body[data-page="superpremium"] .cm-page-sheen,
body[data-page="modulos"] .cm-page-sheen,
body[data-page="superpremium"] .cm-page-sheen::before,
body[data-page="modulos"] .cm-page-sheen::before{
  display:none !important;
  opacity:0 !important;
  pointer-events:none !important;
}
body[data-page="superpremium"]::after,
body[data-page="modulos"]::after{
  display:none !important;
  content:none !important;
  background:none !important;
}
/* kill ALL liquid-glass sweep ::before that use mix-blend:screen/animation */
/* target only the classes that carry the cmDiamondSweep / cmGlass animation */
body[data-page="superpremium"] .hero-art::before,
body[data-page="superpremium"] .panel::before,
body[data-page="superpremium"] .module::before,
body[data-page="superpremium"] .q-card::before,
body[data-page="superpremium"] .step-card::before,
body[data-page="superpremium"] .quote::before,
body[data-page="superpremium"] .offer::before,
body[data-page="superpremium"] .cm-free-card::before,
body[data-page="superpremium"] .cm-route-hero::before,
body[data-page="superpremium"] .cm-route-support article::before,
body[data-page="superpremium"] .video::before,
body[data-page="superpremium"] .lang-card::before,
body[data-page="superpremium"] .cm-glass::before,
body[data-page="superpremium"] .hero-card::before,
body[data-page="superpremium"] .hero-art::before,
body[data-page="superpremium"] .library-intro::before,
body[data-page="superpremium"] .offer-band::before,
body[data-page="superpremium"] .hero-card-inner::before,
body[data-page="superpremium"] .book-feature::before,
body[data-page="modulos"] .hero-art::before,
body[data-page="modulos"] .panel::before,
body[data-page="modulos"] .module::before,
body[data-page="modulos"] .q-card::before,
body[data-page="modulos"] .step-card::before,
body[data-page="modulos"] .quote::before,
body[data-page="modulos"] .offer::before,
body[data-page="modulos"] .cm-free-card::before,
body[data-page="modulos"] .cm-route-hero::before,
body[data-page="modulos"] .cm-route-support article::before,
body[data-page="modulos"] .video::before,
body[data-page="modulos"] .lang-card::before,
body[data-page="modulos"] .cm-glass::before,
body[data-page="modulos"] .hero-card::before,
body[data-page="modulos"] .library-intro::before,
body[data-page="modulos"] .offer-band::before,
body[data-page="modulos"] .hero-card-inner::before,
body[data-page="modulos"] .book-feature::before{
  display: none !important;
  content: none !important;
  animation: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* fix contact strip cards on cream pages (inherit petróleo instead of dark-glass) */
body[data-page="superpremium"] .cm-contact-link,
body[data-page="modulos"] .cm-contact-link{
  background: #EDE2C8 !important;
  border: 1px solid rgba(14,42,36,.18) !important;
  box-shadow: none !important;
}
body[data-page="superpremium"] .cm-contact-icon,
body[data-page="modulos"] .cm-contact-icon{
  background: rgba(14,42,36,.08) !important;
  color: #0E2A24 !important;
}
body[data-page="superpremium"] .cm-contact-copy strong,
body[data-page="modulos"] .cm-contact-copy strong{ color:#0E2A24 !important; }
body[data-page="superpremium"] .cm-contact-copy span,
body[data-page="modulos"] .cm-contact-copy span{ color:#5A6B62 !important; }

/* logo sizing — wordmark-official.png is wide, not square */
body[data-page="superpremium"] img.official-logo-img,
body[data-page="modulos"] img.official-logo-img{
  width: auto !important;
  max-width: 180px !important;
  height: 32px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}
body[data-page="superpremium"] .footer-brand img.official-logo-img,
body[data-page="modulos"] .footer-brand img.official-logo-img{
  height: 38px !important;
  max-width: 200px !important;
}

/* lib-topbar logo pill: remove dark background, match cream nav */
body[data-page="modulos"] a.lib-logo,
body[data-page="modulos"] a.official-logo-link,
body[data-page="superpremium"] a.official-logo-link{
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ── card h3 (01-06) titles: force petróleo so they're readable on cream ── */
body[data-page="superpremium"] .card h3,
body[data-page="superpremium"] .cards-grid .card h3{
  color: #1C3830 !important;
  -webkit-text-fill-color: #1C3830 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  font-size: clamp(18px, 4.5vw, 22px) !important;
  letter-spacing: -.01em !important;
}

/* ── h1 .gold: clip gradient to text, kill badge border/shadow ── */
body[data-page="superpremium"] h1 .gold,
body[data-page="superpremium"] h1 span.gold,
body[data-page="superpremium"] .gold,
body[data-page="superpremium"] span.gold{
  display: inline !important;
  background: linear-gradient(135deg, #B8862A 0%, #E7C766 45%, #FBEFC4 62%, #B8862A 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  padding: 0 !important;
}

/* ── paper feel: stronger watermark + subtle shadow on cards ── */
body[data-page="superpremium"] .card,
body[data-page="superpremium"] .cards-grid .card,
body[data-page="superpremium"] .book-feature{
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 -1px 0 rgba(14,42,36,.08) inset,
    0 6px 28px -10px rgba(14,42,36,.18),
    0 2px 6px -3px rgba(14,42,36,.12) !important;
  border: 1px solid rgba(184,134,42,.28) !important;
}

/* ── lib-logo wordmark: hide the adjacent text span (logo already has text) ── */
body[data-page="modulos"] a.lib-logo span:not(.sr-only){
  display: none !important;
}

/* footer: hide the PNG (has white bg on cream = ghosted), show wordmark via pseudo */
body[data-page="superpremium"] .footer-brand img.official-logo-img,
body[data-page="modulos"] .footer-brand img.official-logo-img{
  display: none !important;
}
body[data-page="superpremium"] .footer-brand::after,
body[data-page="modulos"] .footer-brand::after{
  content: "CAMADAMED";
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .18em;
  background: linear-gradient(135deg, #8C6A1A 0%, #B8862A 40%, #7A5412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
  margin-bottom: 6px;
}
/* nav wordmark PNG: gold metallic on cream — works fine as-is */
body[data-page="superpremium"] header img.official-logo-img,
body[data-page="superpremium"] .nav img.official-logo-img,
body[data-page="modulos"] .lib-topbar img.official-logo-img{
  filter: none !important;
}
