/* ============================================================
   TED DESCOMPLICADO — GLOBAL.CSS
   Tokens de marca, tema escuro e componentes compartilhados
   entre o Hub e todas as ferramentas.
   ============================================================ */

:root {
  /* Cores de marca */
  --noite: #0D0D0D;
  --noite-soft: #141414;
  --azul: #4A6FE3;
  --azul-hover: #3a5fd3;
  --amarelo: #F5C842;
  --verde: #4CAF72;
  --roxo: #9B59B6;
  --laranja: #E8844A;
  --off-white: #F8F6F2;

  /* Neutros */
  --cinza-100: #F1EEE8;
  --cinza-300: #C8C5BE;
  --cinza-500: #6B6860;
  --cinza-800: #2A2926;
  --texto: #1A1A1A;
  --texto-soft: #4A4845;
  --border-color: #E6E1D8;

  /* Escala */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-w: 1140px;

  /* Tipografia */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── ASSINATURA DA MARCA (masthead) ──
   Fixa no topo de TODAS as páginas do hub. */
.td-masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noite);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 16px;
}

.td-masthead-text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  text-align: center;
}
.td-masthead-text::-webkit-scrollbar { display: none; }
.td-masthead-text .dot { color: var(--amarelo); margin: 0 8px; }
.td-masthead-text .sep { color: rgba(255,255,255,0.3); margin: 0 8px; font-weight: 400; }

.td-masthead-home {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.td-masthead-home:hover { color: #fff; }
.td-masthead-home svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .td-masthead-home span { display: none; }
  .td-masthead-home { left: 12px; }
}

/* Empurra o conteúdo da página para baixo da masthead fixa */
.td-page-offset { padding-top: 40px; }

@media (max-width: 640px) {
  .td-masthead-text { font-size: 9px; letter-spacing: 0.08em; }
  .td-masthead-text .dot,
  .td-masthead-text .sep { margin: 0 5px; }
}

/* ── ALTERNADOR COACH / RH ── */
.td-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.td-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.td-toggle button.active {
  background: #FFFFFF;
  color: var(--noite);
}
.td-toggle button:not(.active):hover { color: #fff; }

/* Conteúdo condicional por modo de visão */
[data-td-view="coach"] .td-only-rh { display: none !important; }
[data-td-view="rh"] .td-only-coach { display: none !important; }

/* ── BOTÕES ── */
.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
  text-decoration: none;
}
.td-btn:hover { transform: translateY(-1px); }
.td-btn-wpp {
  background: #25D366;
  color: #fff;
}
.td-btn-wpp:hover { background: #1ebe58; }
.td-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.td-btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── MODAL DE BLOQUEIO ("Em Breve") ── */
.td-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.td-modal-overlay.open { display: flex; }

.td-modal {
  width: 100%;
  max-width: 420px;
  background: var(--noite);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  animation: tdModalIn 0.25s ease;
}
@keyframes tdModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.td-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.td-modal-close:hover { background: rgba(255,255,255,0.16); }

.td-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,200,66,0.14);
  color: var(--amarelo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.td-modal h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}

.td-modal p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
}

/* ── CARDS DO HUB ── */
.td-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .td-cards-grid { grid-template-columns: 1fr; }
}

.td-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.td-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
}

.td-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.td-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.td-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin: 0 0 20px;
  flex: 1;
}

.td-card-cta {
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Card bloqueado ("Em Breve / Plano Premium") */
.td-card-locked {
  cursor: pointer;
}
.td-card-locked .td-card-icon,
.td-card-locked h3,
.td-card-locked p {
  opacity: 0.45;
  filter: saturate(0.6);
}
.td-card-lock-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(245,200,66,0.16);
  color: var(--amarelo);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.td-card-locked:hover {
  border-color: rgba(245,200,66,0.35);
}

/* ── SEÇÃO ── */
.td-section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: 10px;
}
.td-section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}
