/* ── Design tokens: LearnStation.AI ───────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Coral — primary */
  --blue:           #e0605e;
  --blue-dim:       #c94847;
  --blue-bright:    #f0918f;
  --blue-glow:      rgba(224,96,94,0.15);

  /* Blue — secondary */
  --teal:           #3b9eff;
  --teal-dim:       #1a88f0;
  --teal-glow:      rgba(59,158,255,0.12);

  /* Surfaces — dark cool-navy */
  --bg:             #0d1117;
  --bg-card:        #161b22;
  --bg-card-2:      #1c2330;
  --bg-hover:       #21293a;
  --border:         #2d3748;
  --border-dim:     #1e2733;
  --border-bright:  #3d4f66;

  /* Text */
  --text:           #cdd9e5;
  --text-muted:     #768899;
  --text-dim:       #3d5068;

  /* Semantic */
  --error:          #f85149;
  --warning:        #d29922;
  --coming:         #388bfd;

  /* Shape */
  --radius:         8px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --radius-pill:    999px;

  /* Font */
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Logo wordmark ────────────────────────────────── */
.logo-wordmark {
  display: flex;
  align-items: baseline;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo-learn   { color: var(--text); }
.logo-station { color: var(--blue-bright); }
.logo-ai      { color: var(--teal); font-weight: 700; font-size: 0.9em; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-dim);
  padding: 0.9rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.site-header nav a:hover { color: var(--text); }

/* ── Hero keyframes ───────────────────────────────── */
@keyframes hero-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 28px 28px; }
}
@keyframes hero-pulse {
  0%, 100% { opacity: 0.08; transform: translateY(-50%) scale(1); }
  50%       { opacity: 0.15; transform: translateY(-50%) scale(1.04); }
}
@keyframes hero-glow-shift {
  0%   { opacity: 1; }
  50%  { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── HERO ─────────────────────────────────────────── */
.hero-banner {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 5rem 4vw 4rem;
  overflow: hidden;
  background: var(--bg);
}

/* Dot grid — drifts slowly */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: -28px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  animation: hero-drift 8s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 25%, rgba(0,0,0,0.55) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 25%, rgba(0,0,0,0.55) 75%, transparent 100%);
}

/* Radial glow — breathes */
.hero-banner::after {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 800px; height: 700px;
  background: radial-gradient(ellipse at 20% 30%,
    rgba(224,96,94,0.1) 0%,
    rgba(59,158,255,0.05) 45%,
    transparent 70%);
  pointer-events: none;
  animation: hero-glow-shift 6s ease-in-out infinite;
}

/* Bottom fade */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Vídeo de fundo do hero */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  mix-blend-mode: screen;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: #e8f0fa;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,96,94,0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: -0.01em;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--blue);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.hero-meta strong { color: var(--text); font-weight: 700; }

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.progress-bar-container {
  background: var(--border-dim);
  border-radius: var(--radius-pill);
  height: 3px;
  width: 96px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

/* ── Row label ───────────────────────────────────────── */
.row-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Episodes section ────────────────────────────────── */
.episodes-section {
  padding: 2rem 4vw 5rem;
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Week separator ──────────────────────────────────── */
.week-separator {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 0 1.25rem;
}
.week-separator:first-child { padding-top: 0; }

.week-sep-inner {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-shrink: 0;
}

.week-sep-line {
  flex: 1;
  height: 1px;
  background: var(--border-dim);
}

.week-sep-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.week-sep-label.week-sep-active {
  color: var(--text-muted);
}

.week-sep-soon {
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
}

/* ── Week row (4 cards per row) ──────────────────────── */
.week-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── Episode card ────────────────────────────────────── */
.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(224,96,94,0.12), 0 16px 36px rgba(0,0,0,0.5);
}

.episode-card.locked { cursor: default; }
.episode-card.locked:hover {
  transform: none;
  border-color: var(--border-dim);
  box-shadow: none;
}

.card-thumbnail {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}

/* Barra de acento — sempre visível nos publicados, aparece no hover nos locked */
.episode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s;
}
.episode-card:not(.locked)::before { opacity: 1; }
.episode-card:hover::before { opacity: 1; }

/* Episode thumbnail gradients */
.ep-thumb-1 { background: linear-gradient(145deg, #182840 0%, #1d3460 100%); }
.ep-thumb-2 { background: linear-gradient(145deg, #18283a 0%, #1d3448 100%); }
.ep-thumb-3 { background: linear-gradient(145deg, #1e1836 0%, #251d4c 100%); }
.ep-thumb-4 { background: linear-gradient(145deg, #18203a 0%, #1e2a4a 100%); }
.ep-thumb-5 { background: linear-gradient(145deg, #182830 0%, #1c3038 100%); }
.ep-thumb-6 { background: linear-gradient(145deg, #201830 0%, #281c3e 100%); }
.ep-thumb-7 { background: linear-gradient(145deg, #182620 0%, #1c2e28 100%); }
.ep-thumb-8 { background: linear-gradient(145deg, #261c1c 0%, #302222 100%); }

/* Badge "NOVO" — canto superior direito, só nos publicados */
.card-new-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 3;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.35);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(6px);
}
.card-new-badge::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,0.8);
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52,211,153,0.8); }
  50%       { opacity: 0.5; box-shadow: 0 0 2px rgba(52,211,153,0.3); }
}

/* Watermark numérico — bottom-right, diagonal oposta ao sticker */
.card-thumb-num {
  position: absolute;
  right: 0.625rem; bottom: -0.5rem;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.05);
  user-select: none;
  pointer-events: none;
}

/* Emoji icon — centro, sobre tudo */
.card-thumb-icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* Locked overlay */
.episode-card.locked .card-thumbnail .card-thumb-icon {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  opacity: 0.4;
}
.episode-card.locked .card-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.5);
  backdrop-filter: blur(1px);
  z-index: 2;
}


.card-body {
  padding: 0.875rem 1rem 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.episode-card.locked .card-body { opacity: 0.4; }

.card-episode-num {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Dot coral = disponível */
.episode-card:not(.locked) .card-episode-num::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(224,96,94,0.6);
}
.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
}
.card-tagline {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.card-coming-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.875rem;
  font-size: 0.75rem;
  color: var(--coming);
  font-weight: 500;
}
.card-coming-date::before {
  content: '○';
  font-size: 0.55rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.875rem;
}

.tag {
  background: rgba(224,96,94,0.08);
  border: 1px solid rgba(224,96,94,0.2);
  color: #f0918f;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-bright);
  transition: gap 0.18s, color 0.18s;
}
.episode-card:hover .card-cta { gap: 0.75rem; color: var(--blue); }

/* ── About strip ─────────────────────────────────────── */
.about-strip {
  margin: 0 4vw 4.5rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Sticker 12 — espirais "AI", canto direito do about */
.about-ciandt-s12 {
  position: absolute;
  right: 2rem; top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

/* Sticker 24 — grade de arcos, canto inferior esquerdo */
.about-ciandt-s24 {
  position: absolute;
  left: -1rem; bottom: -1rem;
  width: 120px;
  height: 120px;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

/* Subtle glow behind photo */
.about-strip::before {
  content: '';
  position: absolute;
  left: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(ellipse, rgba(224,96,94,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.about-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--border-bright);
  box-shadow: 0 0 0 4px rgba(224,96,94,0.1);
  position: relative;
  z-index: 1;
}
.about-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.about-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.about-bio {
  font-size: 0.8375rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
  max-width: 680px;
}

/* ── Episode page ────────────────────────────────────── */
.episode-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 4vw 7rem;
}

.ep-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  transition: color 0.15s;
}
.ep-back:hover { color: var(--text); }

/* ── Reading progress bar ────────────────────────────── */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  z-index: 200;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Opener video ────────────────────────────────────── */
.ep-opener { margin-bottom: 2.5rem; }
.ep-opener-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ep-opener-label::before { content: '▶'; font-size: 0.55rem; }
.ep-opener-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.ep-opener-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Learning objectives pill bar ───────────────────── */
.ep-objectives {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.375rem 1.625rem;
  background: rgba(224,96,94,0.05);
  border: 1px solid rgba(224,96,94,0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.ep-objectives-label {
  width: 100%;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.375rem;
}
.ep-obj-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
}
.ep-obj-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Checkpoint ──────────────────────────────────────── */
.section-checkpoint {
  background: linear-gradient(135deg, rgba(224,96,94,0.06) 0%, rgba(224,96,94,0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.625rem;
  margin-bottom: 2.75rem;
}
.checkpoint-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkpoint-label::before { content: '◆'; font-size: 0.5rem; }
.checkpoint-questions { display: flex; flex-direction: column; gap: 1.125rem; }
.checkpoint-q {
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.checkpoint-q-text {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  transition: background 0.15s;
}
.checkpoint-q-text:hover { background: var(--bg-hover); }
.checkpoint-toggle {
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: transform 0.2s;
}
.checkpoint-q.open .checkpoint-toggle { transform: rotate(180deg); }
.checkpoint-answer {
  display: none;
  padding: 0 1.125rem 1.125rem;
  border-top: 1px solid var(--border-dim);
}
.checkpoint-q.open .checkpoint-answer { display: block; }
.checkpoint-answer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-top: 0.875rem;
}
.checkpoint-answer strong { color: var(--teal); font-weight: 700; }

/* ── Sandbox CTA ─────────────────────────────────────── */
.sandbox-cta {
  margin-top: 4rem;
  padding: 2.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(224,96,94,0.08) 0%, rgba(224,96,94,0.04) 100%);
  border: 1px solid rgba(224,96,94,0.22);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
/* s6 no canto inferior esquerdo do sandbox */
.sandbox-cta::before {
  content: '';
  position: absolute;
  left: -1rem; bottom: -1rem;
  width: 96px; height: 96px;
  background-image: url('assets/s6.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.sandbox-cta-text { flex: 1; }
.sandbox-cta-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.sandbox-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}
.sandbox-cta-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.sandbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.sandbox-btn:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224,96,94,0.28);
}
.sandbox-btn-icon { font-size: 1rem; }

@media (max-width: 640px) {
  .sandbox-cta { flex-direction: column; gap: 1.25rem; }
  .sandbox-btn  { width: 100%; justify-content: center; }
}

/* ── Episode header ──────────────────────────────────── */
/* ── Stickers na página de episódio ─────────────────── */

/* s24 no canto do ep-header */
.ep-header {
  margin-bottom: 2.75rem;
  position: relative;
}
.ep-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 56px; height: 56px;
  background-image: url('assets/s24.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.ep-week {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.875rem;
}
.ep-week::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.ep-title {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  color: #daeaf7;
}

.ep-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-weight: 400;
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.ep-meta .dot::before { content: '·'; margin-right: 0.875rem; }

.ep-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* Intro */
.ep-intro {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 400;
  padding: 1.625rem 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  margin-bottom: 2.5rem;
}

/* ── Content sections ────────────────────────────────── */
.ep-section { margin-bottom: 2.25rem; }

.ep-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ep-section-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 400;
}

.section-insight {
  border-left: 3px solid var(--teal);
  padding-left: 1.375rem;
}

.section-definition {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.625rem;
}

.section-highlight {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  text-align: left;
}
.section-highlight .ep-section-body {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
}
.section-highlight .ep-section-title { display: none; }

.section-reflection .ep-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Concept list */
.concept-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1rem;
}
.concept-item {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.concept-item::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.concept-term {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.concept-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ── Video section ───────────────────────────────────── */
.section-videos .ep-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-videos .ep-section-title::before {
  content: '▶';
  font-size: 0.75rem;
  color: var(--teal);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.video-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.video-card:hover .video-thumb img { opacity: 1; }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn span {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  padding-left: 3px;
  color: #fff;
  transition: background 0.18s, border-color 0.18s;
}
.video-card:hover .video-play-btn span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.video-info {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.video-channel {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.video-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.video-duration {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 0.3rem;
}

/* ── Stats bar ───────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.stat-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
}
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Next episode teaser ─────────────────────────────── */
.next-ep-teaser {
  margin-top: 4rem;
  padding: 1.625rem 1.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.next-ep-teaser::after {
  content: '';
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background-image: url('assets/s24.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.next-ep-teaser:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.next-ep-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.next-ep-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.015em;
}
.next-ep-arrow {
  font-size: 1.25rem;
  color: var(--blue-bright);
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 1.875rem 4vw;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  right: 4vw; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background-image: url('assets/s24.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
footer::after {
  content: '';
  position: absolute;
  left: 4vw; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background-image: url('assets/s6.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* ── Areas page ──────────────────────────────────────── */
.areas-hero {
  padding: 4rem 4vw 2.5rem;
  max-width: 760px;
}
.areas-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 0.875rem;
  color: #fff;
}
.areas-hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

.area-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 4vw 2rem;
  flex-wrap: wrap;
}
.area-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.area-tab:hover { border-color: var(--blue); color: var(--text); }
.area-tab.active {
  background: rgba(224,96,94,0.1);
  border-color: var(--blue);
  color: var(--blue-bright);
}
.area-tab .tab-icon { font-size: 1rem; }

.area-panel { padding: 0 4vw 6rem; max-width: 900px; }

.area-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.area-panel-icon {
  font-size: 2.5rem;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.area-panel-meta { flex: 1; }
.area-panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  color: #fff;
}
.area-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.tool-badge {
  background: rgba(224,96,94,0.08);
  border: 1px solid rgba(224,96,94,0.2);
  color: #f0918f;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}
.area-metric {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}
.area-metric::before { content: '↑ '; }

.area-scene {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}
.area-scene-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.area-scene p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

.area-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.area-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
}
.area-block-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.area-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.area-block.ai-role { border-color: rgba(224,96,94,0.2); }
.area-block.ai-role .area-block-label { color: var(--teal); }
.area-block.ai-role p { color: var(--text); }

.experiments-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.experiment-list { display: flex; flex-direction: column; gap: 1.25rem; }

.experiment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.experiment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.15s;
}
.experiment-header:hover { background: var(--bg-hover); }

.experiment-header-left { flex: 1; }
.experiment-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.experiment-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.experiment-difficulty {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  background: rgba(224,96,94,0.1);
  color: var(--blue-bright);
  border: 1px solid rgba(224,96,94,0.2);
}
.experiment-toggle {
  color: var(--text-dim);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.experiment-card.open .experiment-toggle { transform: rotate(180deg); }

.experiment-body {
  display: none;
  padding: 0 1.375rem 1.375rem;
  border-top: 1px solid var(--border-dim);
}
.experiment-card.open .experiment-body { display: block; }

.prompt-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-box {
  background: #010409;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #c9d1d9;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.875rem;
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { border-color: var(--teal); color: var(--teal); }
.copy-btn.copied {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(224,96,94,0.08);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .week-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .week-row        { grid-template-columns: 1fr; }
  .video-grid      { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .about-strip     { flex-direction: column; gap: 1.25rem; text-align: center; }
  .next-ep-teaser  { flex-direction: column; }
  .hero-banner     { min-height: 480px; padding: 3.5rem 4vw 3rem; }
  .hero-actions    { flex-direction: column; align-items: flex-start; }
  .hero-bg-symbol  { display: none; }
  .area-two-col    { grid-template-columns: 1fr; }
  .area-panel-header { flex-direction: column; }
  .area-tabs       { gap: 0.35rem; }
  .area-tab        { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
}

/* ══ VISUAL SECTION TYPES ════════════════════════════ */

/* ── Comparison ──────────────────────────────────── */
.section-comparison { margin-bottom: 2.75rem; }
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.comparison-col {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.comparison-col.col-a {
  background: rgba(59,158,255,0.06);
  border-color: rgba(59,158,255,0.22);
}
.comparison-col.col-b {
  background: rgba(224,96,94,0.06);
  border-color: rgba(224,96,94,0.22);
}
.comparison-col-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.col-a .comparison-col-label { color: var(--teal); }
.col-b .comparison-col-label { color: var(--blue); }
.comparison-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.comparison-col ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.comparison-col ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.col-a ul li::before { background: var(--teal); }
.col-b ul li::before { background: var(--blue); }
.comparison-col-example {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--border);
}

/* ── Process flow ────────────────────────────────── */
.section-process { margin-bottom: 2.75rem; }
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.25rem;
  position: relative;
}
.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
}
.process-step + .process-step { margin-top: 0; }
.process-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.process-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(224,96,94,0.12);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.process-step-line {
  width: 2px;
  flex: 1;
  min-height: 1.5rem;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin: 0.25rem 0;
}
.process-step-body {
  padding: 0 0 1.75rem 0;
  flex: 1;
}
.process-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.process-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}
.process-step:last-child .process-step-line { display: none; }
.process-step:last-child .process-step-body { padding-bottom: 0; }

/* ── Alert / warning box ─────────────────────────── */
.section-alert { margin-bottom: 2.75rem; }
.alert-box {
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.alert-box.alert-danger {
  background: rgba(224,96,94,0.07);
  border: 1px solid rgba(224,96,94,0.25);
}
.alert-box.alert-warning {
  background: rgba(210,153,34,0.07);
  border: 1px solid rgba(210,153,34,0.25);
}
.alert-box.alert-info {
  background: rgba(59,158,255,0.07);
  border: 1px solid rgba(59,158,255,0.2);
}
.alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.alert-content-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.alert-danger .alert-content-label { color: var(--blue); }
.alert-warning .alert-content-label { color: var(--warning); }
.alert-info .alert-content-label { color: var(--teal); }
.alert-content-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.alert-content-body strong { color: var(--text); font-weight: 600; }

/* ── Diagram / RAG flow ──────────────────────────── */
.section-diagram { margin-bottom: 2.75rem; }
.diagram-flow {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.diagram-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.diagram-node {
  flex: 1;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  text-align: center;
}
.diagram-node.node-primary {
  border-color: var(--blue);
  background: rgba(224,96,94,0.07);
}
.diagram-node.node-secondary {
  border-color: var(--teal);
  background: rgba(59,158,255,0.06);
}
.diagram-node.node-output {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.diagram-node-icon { font-size: 1.25rem; margin-bottom: 0.3rem; }
.diagram-node-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.diagram-node-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.diagram-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  flex-shrink: 0;
}
.diagram-note {
  margin-top: 1rem;
  padding: 0.875rem 1.125rem;
  background: rgba(59,158,255,0.06);
  border: 1px solid rgba(59,158,255,0.15);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.diagram-note strong { color: var(--teal); font-weight: 600; }

/* ── Timeline ────────────────────────────────────── */
.section-timeline { margin-bottom: 2.75rem; }
.timeline {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.75rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.125rem;
  top: 0.2rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item.milestone .timeline-dot {
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-year {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}
.timeline-item.milestone .timeline-year { color: var(--teal); }
.timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Biases grid ─────────────────────────────────── */
.bias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-top: 1.25rem;
}
.bias-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.125rem;
  border-top: 3px solid var(--blue);
}
.bias-card-icon { font-size: 1.25rem; margin-bottom: 0.5rem; }
.bias-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.bias-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Temperature slider visual ───────────────────── */
.temp-visual {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.temp-bar-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
    rgba(59,158,255,0.8) 0%,
    rgba(224,96,94,0.8) 100%);
  margin: 1rem 0;
  position: relative;
}
.temp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.temp-extremes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.temp-extreme {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.temp-extreme.temp-low { border-color: rgba(59,158,255,0.3); background: rgba(59,158,255,0.05); }
.temp-extreme.temp-high { border-color: rgba(224,96,94,0.3); background: rgba(224,96,94,0.05); }
.temp-extreme-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.temp-low .temp-extreme-label { color: var(--teal); }
.temp-high .temp-extreme-label { color: var(--blue); }
.temp-extreme ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.temp-extreme ul li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 0.875rem;
  position: relative;
}
.temp-extreme ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .temp-extremes   { grid-template-columns: 1fr; }
  .diagram-row     { flex-direction: column; }
  .diagram-arrow   { transform: rotate(90deg); }
  .bias-grid       { grid-template-columns: 1fr 1fr; }
}

/* ── Vic audio intro ────────────────────────────────── */
.vic-audio-strip {
  margin: 0 4vw;
  border-radius: var(--radius-xl);
  position: relative;
  transform: translateY(-28px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, rgba(22,27,34,0.98) 0%, rgba(13,17,23,0.99) 100%);
  border: 1px solid var(--border-dim);
  overflow: hidden;
}
/* subtle left glow */
.vic-audio-strip::after {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 140px; height: 140px;
  background: radial-gradient(ellipse, rgba(224,96,94,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Main row ── */
.vic-audio-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem 1rem;
  position: relative;
  z-index: 1;
}

/* ── Photo + circular rings ── */
.vic-photo-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(224,96,94,0.35);
  opacity: 0.12;
  transform: scale(1);
  transition: transform 0.12s ease-out, opacity 0.12s ease-out;
  pointer-events: none;
}
.vic-ring-2 {
  inset: -7px;
  border-color: rgba(224,96,94,0.22);
}
.vic-ring-3 {
  inset: -15px;
  border-color: rgba(59,158,255,0.18);
}
.vic-audio-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(224,96,94,0.3);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── Right: info + progress ── */
.vic-audio-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.vic-audio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.vic-audio-info { flex: 1; min-width: 0; }
.vic-audio-label {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.2rem;
}
.vic-audio-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vic-audio-title {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Play button ── */
.vic-play-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
  box-shadow: 0 2px 12px rgba(224,96,94,0.3);
}
.vic-play-btn:hover {
  background: var(--blue-dim);
  transform: scale(1.07);
}
.vic-play-btn svg {
  width: 13px; height: 13px;
  fill: #fff;
  margin-left: 2px;
  flex-shrink: 0;
}
.vic-play-btn.playing svg { margin-left: 0; }

/* ── Progress bar ── */
.vic-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vic-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
}
.vic-progress-track:hover { background: rgba(255,255,255,0.12); }
.vic-progress-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(224,96,94,0.4);
}
.vic-progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ── Caption ── */
.vic-caption-text {
  padding: 0 1.75rem 1rem 4.5rem; /* alinha com o texto acima */
  font-size: 0.775rem;
  line-height: 1.55;
  color: var(--text-muted);
  opacity: 0;
  min-height: 1.4rem;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}
.vic-caption-text.visible {
  opacity: 1;
  animation: vic-caption-in 0.3s ease forwards;
}
@keyframes vic-caption-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 0.75; transform: translateY(0); }
}

@media (max-width: 640px) {
  .vic-audio-strip   { transform: translateY(-20px); }
  .vic-audio-main    { padding: 1rem 1.125rem 0.875rem; gap: 1rem; }
  .vic-caption-text  { padding: 0 1.125rem 0.875rem 1.125rem; }
  .vic-audio-title   { display: none; }
}

/* ── Language switcher ──────────────────────────────── */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  opacity: 0.4;
  transition: opacity 0.15s, border-color 0.15s;
}
.lang-btn:hover { opacity: 0.7; }
.lang-btn.active {
  opacity: 1;
  border-color: var(--border);
}
