/* ==========================================================================
   ENGENHARIA DO BEM-ESTAR — LIGHT CLINICAL 3D DESIGN SYSTEM (v2.0)
   Neumorfismo Suave / Claymorphism Clínico · WCAG 2.1 AA (>7:1) · Zero Overflow
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --surface-soft: #EEF4F8;
  --surface-teal: #E6F7F5;
  --surface-sky: #E0F2FE;
  --surface-gold: #FEF3C7;

  /* Paleta Light Clinical 3D */
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-deeper: #115E59;
  --secondary: #0284C7;
  --secondary-dark: #0369A1;
  --gold: #D97706;
  --gold-light: #F59E0B;
  --gold-dark: #B45309;

  /* Tipografia de Alto Contraste (>7:1) */
  --text: #0F172A;
  --text-body: #334155;
  --text-muted: #475569;

  /* Semântica Clínica */
  --ok: #0F766E;
  --ok-soft: #CCFBF1;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --alert: #B91C1C;
  --alert-soft: #FEE2E2;

  /* Bordas & Sombras 3D Táteis (Soft 3D / Claymorphism) */
  --border: #DCE6EE;
  --border-light: rgba(255, 255, 255, 0.88);
  --clay-shadow: -6px -6px 14px rgba(255, 255, 255, 0.92), 8px 10px 24px rgba(15, 23, 42, 0.08);
  --clay-shadow-sm: -3px -3px 9px rgba(255, 255, 255, 0.9), 4px 6px 14px rgba(15, 23, 42, 0.07);
  --clay-hover: -8px -8px 18px rgba(255, 255, 255, 0.96), 10px 14px 28px rgba(13, 148, 136, 0.16);
  --clay-active: inset 3px 3px 8px rgba(15, 23, 42, 0.11), inset -3px -3px 8px rgba(255, 255, 255, 0.9);
  --clay-btn-primary: 0 6px 16px rgba(13, 148, 136, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  --clay-btn-gold: 0 8px 18px rgba(217, 119, 6, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.50);

  --font-head: 'Figtree', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Atkinson Hyperlegible', 'Inter', system-ui, -apple-system, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 0.7rem;
  --radius: 1rem;
  --radius-lg: 1.35rem;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 0%, rgba(13, 148, 136, 0.07), transparent 38%),
    radial-gradient(circle at 92% 10%, rgba(2, 132, 199, 0.07), transparent 40%),
    var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.05rem);
  line-height: 1.62;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

button, input, select {
  font-family: var(--font-ui);
  font-size: 0.94rem;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Proteção Absoluta Contra Vazamento de Texto */
h1, h2, h3, h4, p, li, span, strong, td, th, label, figcaption {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   TOPBAR CLÍNICA ELEVADA
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--clay-shadow-sm);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex-wrap: nowrap;
}

.nav-links a,
.nav-links button {
  text-decoration: none;
  color: var(--text-body);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.15s;
}

.nav-links a:hover,
.nav-links button:hover {
  background: var(--surface-teal);
  color: var(--primary-dark);
}

.nav-unlock-btn {
  background: var(--surface-gold) !important;
  color: var(--gold-dark) !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--clay-shadow-sm);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 1.2rem 1.1rem;
}
.mobile-drawer.is-open { display: grid; gap: 0.45rem; }
.mobile-drawer a,
.mobile-drawer button {
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}

/* ==========================================================================
   CONTAINER & TIPOGRAFIA
   ========================================================================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.35rem 1.2rem 4.5rem;
  display: grid;
  gap: 2.15rem;
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary-dark);
  background: var(--surface-teal);
  padding: 0.3rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(13, 148, 136, 0.18);
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(1.66rem, 1.24rem + 1.45vw, 2.52rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(1.36rem, 1.08rem + 1.05vw, 1.88rem);
  font-weight: 800;
  line-height: 1.18;
}

.subhead {
  font-size: clamp(1.04rem, 0.96rem + 0.3vw, 1.22rem);
  font-weight: 700;
  line-height: 1.26;
}

.lede {
  color: var(--text-body);
  font-size: 1.01rem;
  margin: 0.7rem 0 0;
  max-width: 58ch;
}

.caption {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   HERO 3D CLÍNICO & BLOCO DE RESPOSTA DIRETA (AEO)
   ========================================================================== */
.hero-band {
  background: linear-gradient(150deg, #FFFFFF 0%, #F1FAF9 60%, #ECF6FD 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.75rem;
  display: grid;
  gap: 1.35rem;
  box-shadow: var(--clay-shadow);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-byline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.42rem 0.85rem 0.42rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--clay-shadow-sm);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: var(--text-body);
}

.hero-byline img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-byline a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.aeo-answer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--clay-shadow-sm);
  display: grid;
  gap: 0.35rem;
}

.aeo-answer-box p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.97rem;
}

/* ==========================================================================
   BOTÕES 3D TÁTEIS (CLAYMORPHISM)
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.58rem 1.12rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.91rem;
  cursor: pointer;
  border: 1px solid var(--border-light);
  text-decoration: none;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-3px);
}

.btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: var(--clay-active);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 36px;
  padding: 0.38rem 0.8rem;
  font-size: 0.83rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--clay-btn-primary);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: rgba(13, 148, 136, 0.32);
  box-shadow: var(--clay-shadow-sm);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-teal);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #FFFFFF;
  box-shadow: var(--clay-btn-gold);
}
.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-body);
  border-color: var(--border);
  box-shadow: var(--clay-shadow-sm);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-sky);
  color: var(--secondary-dark);
}
.btn-ghost.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--clay-btn-primary);
}

.btn-danger {
  background: var(--surface);
  color: var(--alert);
  border-color: rgba(185, 28, 28, 0.3);
  box-shadow: var(--clay-shadow-sm);
}
.btn-danger:hover:not(:disabled) {
  background: var(--alert-soft);
}

/* ==========================================================================
   HUB DE BUSCA + BOTÕES TEMÁTICOS 3D (REVELAÇÃO PROGRESSIVA)
   ========================================================================== */
.hub-shell {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--clay-shadow);
  display: grid;
  gap: 1.2rem;
}

.search-box-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.search-input-clay {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.96rem;
  box-shadow: inset 2px 2px 6px rgba(15, 23, 42, 0.06), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.search-input-clay:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.topic-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}

.topic-btn-3d {
  appearance: none;
  text-align: left;
  width: 100%;
  background: linear-gradient(155deg, #FFFFFF 0%, #F7FAFC 100%);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--clay-shadow);
  cursor: pointer;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-btn-3d:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-hover);
  border-color: rgba(13, 148, 136, 0.35);
}

.topic-btn-3d:active {
  transform: translateY(2px);
  box-shadow: var(--clay-active);
}

.topic-btn-3d[aria-expanded="true"] {
  background: linear-gradient(155deg, #FFFFFF 0%, #E8F8F6 100%);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.topic-btn-3d.is-premium {
  background: linear-gradient(155deg, #FFFFFF 0%, #FFFBF2 100%);
  border-color: rgba(217, 119, 6, 0.28);
}

.topic-btn-3d.is-premium[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.18);
}

.topic-btn-3d.is-hidden-search {
  display: none;
}

.topic-btn-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.iso-icon-3d {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #E6F7F5, #E0F2FE);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.95), 4px 5px 12px rgba(13, 148, 136, 0.16);
  flex-shrink: 0;
}

.topic-btn-3d.is-premium .iso-icon-3d {
  background: linear-gradient(145deg, #FEF3C7, #FDE68A);
  box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.95), 4px 5px 12px rgba(217, 119, 6, 0.18);
}

.topic-btn-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.07rem;
  color: var(--text);
  line-height: 1.25;
}

.topic-btn-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.topic-btn-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.topic-btn-3d.is-premium .topic-btn-foot {
  color: var(--gold-dark);
}

/* ==========================================================================
   PAINÉIS TEMÁTICOS EXPANSÍVEIS (100% NO DOM INICIAL PARA SEO / AEO / GEO)
   ========================================================================== */
.topics-stack {
  display: grid;
  gap: 1.25rem;
}

.topic-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--clay-shadow);
  overflow: hidden;
  scroll-margin-top: 76px;
}

.topic-panel.is-hidden-search {
  display: none;
}

.topic-panel-bar {
  width: 100%;
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F9FC 100%);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
}

.topic-panel[data-open="true"] .topic-panel-bar {
  border-bottom-color: var(--border);
  background: linear-gradient(135deg, #F0FDFA 0%, #EFF6FF 100%);
}

.topic-panel.is-premium[data-open="true"] .topic-panel-bar {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.topic-panel-chevron {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.78rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--clay-shadow-sm);
}

/* CSS Grid Smooth Collapse — mantém texto 100% presente e indexável no DOM */
.topic-panel-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.25s ease;
}

.topic-panel[data-open="true"] .topic-panel-collapse {
  grid-template-rows: 1fr;
  opacity: 1;
}

.topic-panel-inner {
  overflow: hidden;
}

.topic-panel-body {
  padding: 1.45rem;
  display: grid;
  gap: 1.35rem;
}

/* ==========================================================================
   FREEMIUM GATE (ACESSO COMPLETO HOTMART — PAGAMENTO ÚNICO)
   ========================================================================== */
.premium-gate-banner {
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--clay-shadow-sm);
  display: grid;
  gap: 0.85rem;
}

.premium-content-wrap.is-locked {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
}

.premium-content-wrap.is-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(244, 247, 250, 0.92) 72%, #F4F7FA 100%);
  pointer-events: none;
}

.premium-content-wrap.is-unlocked .premium-lock-note {
  display: none;
}

/* ==========================================================================
   CARDS, GRIDS, CHIPS (ANTI-OVERFLOW) & CALLOUTS
   ========================================================================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--clay-shadow-sm);
}

.panel-soft {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: grid;
  gap: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 0.95rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.split-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.42rem;
  align-content: start;
  box-shadow: var(--clay-shadow-sm);
  overflow: hidden;
}

.status-card[data-status="ok"] { border-left-color: var(--ok); }
.status-card[data-status="warning"] { border-left-color: var(--gold); }
.status-card[data-status="alert"] { border-left-color: var(--alert); }

/* FIX DEFINITIVO DE QUEBRA DE TEXTO EM CARDS (ex: Ômega-3 1,35-2,7g) */
.card-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}

.card-top-row > strong {
  flex: 1 1 160px;
  color: var(--text);
  line-height: 1.3;
}

.chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.25;
  padding: 0.28rem 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--surface-sky);
  color: var(--secondary-dark);
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
}

.chip[data-status="ok"] { background: var(--ok-soft); color: var(--primary-deeper); }
.chip[data-status="warning"] { background: var(--warn-soft); color: var(--warn); }
.chip[data-status="alert"] { background: var(--alert-soft); color: var(--alert); }
.chip[data-status="gold"] {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: var(--gold-dark);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.metric-label {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.22rem, 1.02rem + 0.65vw, 1.68rem);
  line-height: 1.16;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.callout {
  background: var(--surface-sky);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--text);
  display: grid;
  gap: 0.3rem;
  font-size: 0.94rem;
}
.callout[data-status="ok"] { background: var(--surface-teal); border-left-color: var(--primary); }
.callout[data-status="warning"] { background: var(--warn-soft); border-left-color: var(--gold); }
.callout[data-status="alert"] { background: var(--alert-soft); border-left-color: var(--alert); }

/* Fotos & Molduras 3D */
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  background: var(--surface);
  box-shadow: var(--clay-shadow);
  margin: 0;
}
.photo-frame img { width: 100%; object-fit: cover; }
.photo-caption {
  padding: 0.62rem 0.95rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* Tabelas Responsivas Contidas */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--clay-shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 520px;
}

th {
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.82rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.82rem 0.95rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
  color: var(--text-body);
}
tr:last-child td { border-bottom: none; }

/* Formulários, Checklists & Sliders */
.field-group { display: grid; gap: 0.3rem; }
.field-label { font-family: var(--font-ui); font-weight: 600; font-size: 0.86rem; color: var(--text); }
select, input[type="number"], input[type="search"], input[type="text"], input[type="email"] {
  width: 100%;
  min-height: 43px;
  padding: 0.48rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
input[type="range"] { width: 100%; accent-color: var(--primary); min-height: 36px; cursor: pointer; }
.slider-pair { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 0.6rem; align-items: center; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 46px;
  font-size: 0.92rem;
  box-shadow: var(--clay-shadow-sm);
  transition: border-color 0.15s, background 0.15s;
}
.check-item:hover { background: var(--surface-teal); border-color: var(--primary); }
.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* Body Map SVG */
.body-map-wrap {
  display: grid;
  grid-template-columns: minmax(205px, 242px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.body-svg-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  box-shadow: inset 2px 2px 6px rgba(15, 23, 42, 0.05);
}
.hotspot-node { cursor: pointer; }
.region-pill-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.region-pill {
  min-height: 36px;
  padding: 0.3rem 0.76rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: var(--clay-shadow-sm);
}
.region-pill[data-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.region-pill[data-pain="high"] { border-color: var(--alert); box-shadow: inset 0 0 0 1.5px var(--alert); }
.region-pill[data-pain="mild"] { border-color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }

/* Tabs, Meters, Timers & Charts */
.tool-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.tool-pane { display: none; gap: 1rem; }
.tool-pane.is-active { display: grid; }
.chart-box { position: relative; width: 100%; height: 325px; }

.range-meter {
  position: relative;
  height: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.range-band-ok {
  position: absolute;
  top: 0; bottom: 0;
  background: rgba(13, 148, 136, 0.2);
  border-left: 1.5px dashed var(--primary-dark);
  border-right: 1.5px dashed var(--primary-dark);
}
.range-fill {
  position: relative;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.timer-display {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.7rem + 1.4vw, 3rem);
  line-height: 1;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.progress-track { width: 100%; height: 10px; background: var(--surface-soft); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); width: 0%; transition: width 0.25s ease; }

/* Slide Deck Viewer */
.slide-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0F172A;
  aspect-ratio: 1120 / 602;
}
.slide-stage img { width: 100%; height: 100%; object-fit: contain; }
.slide-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.42rem; }
.slide-thumb-btn {
  padding: 0; border: 2px solid var(--border); border-radius: 0.5rem;
  overflow: hidden; background: var(--bg); cursor: pointer; position: relative; aspect-ratio: 1120 / 602;
}
.slide-thumb-btn.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.3); }
.slide-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.slide-thumb-num {
  position: absolute; bottom: 2px; right: 3px; background: rgba(15, 23, 42, 0.85);
  color: #fff; font-size: 0.68rem; font-weight: 700; padding: 0 4px; border-radius: 4px;
}

/* Compêndio & Favoritos */
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  box-shadow: var(--clay-shadow-sm);
}
.fav-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.24rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.fav-btn.is-fav { background: var(--warn-soft); border-color: var(--gold); color: var(--gold-dark); }

/* Quiz */
.quiz-option {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  box-shadow: var(--clay-shadow-sm);
}
.quiz-option:hover:not(:disabled) { background: var(--surface-teal); border-color: var(--primary); }
.quiz-option.is-correct { background: var(--ok-soft); border-color: var(--ok); color: var(--primary-deeper); font-weight: 600; }
.quiz-option.is-wrong { background: var(--alert-soft); border-color: var(--alert); color: var(--alert); }
.quiz-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-sky); color: var(--secondary-dark);
  font-weight: 700; font-size: 0.82rem; flex-shrink: 0;
}

/* Especialista */
.specialist-grid {
  display: grid;
  grid-template-columns: minmax(215px, 275px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.specialist-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: var(--clay-shadow);
  margin: 0;
}
.specialist-photo img { width: 100%; aspect-ratio: 640 / 660; object-fit: cover; object-position: top center; }

/* Modais (Hotmart Unlock & Lightbox) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.15rem;
}
.modal-backdrop.is-open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 1rem;
}

.lightbox-inner {
  max-width: 1120px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.45);
  display: grid;
}
.lightbox-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.05rem; border-bottom: 1px solid var(--border); background: var(--bg); gap: 0.75rem;
}
.lightbox-body {
  background: #0F172A; display: flex; justify-content: center; align-items: center;
  max-height: 78vh; overflow: auto; padding: 0.5rem;
}
.lightbox-body img { max-height: 74vh; width: auto; object-fit: contain; }

/* Details (Referências) */
details.inline-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  box-shadow: var(--clay-shadow-sm);
}
details.inline-detail summary {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
details.inline-detail summary::after { content: '+'; font-size: 1.2rem; color: var(--primary); font-weight: 800; }
details.inline-detail[open] summary::after { content: '−'; }
details.inline-detail[open] summary { margin-bottom: 0.7rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--border); }

/* Toast & Footer */
.toast {
  position: fixed;
  bottom: 1.2rem; right: 1.2rem; z-index: 95;
  background: var(--text); color: #FFFFFF;
  padding: 0.78rem 1.15rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.6rem 1.2rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Responsividade Mobile-First */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .hero-grid, .split-grid, .split-equal, .body-map-wrap, .specialist-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0.95rem 0.85rem 3.2rem; gap: 1.65rem; }
  .hero-band, .hub-shell, .panel, .panel-soft, .topic-panel-body { padding: 1.05rem; }
  .search-box-wrap, .slider-pair { grid-template-columns: 1fr; }
  .slide-thumbs { grid-template-columns: repeat(5, 1fr); }
  .topic-panel-bar { padding: 0.95rem 1.05rem; }
}

@media print {
  .topbar, .btn-row, .toast, #mobile-drawer, .modal-backdrop, .tool-tabs, .slide-thumbs, .hub-shell { display: none !important; }
  .topic-panel-collapse { grid-template-rows: 1fr !important; opacity: 1 !important; }
  .premium-content-wrap.is-locked { max-height: none !important; }
  .premium-content-wrap.is-locked::after { display: none !important; }
}
