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

:root {
  /* Cores definidas como "indefinidas" via placeholders */
  --primary-500: #6366f1; /* bg-undefined-500 equivalente */
  --secondary-500: #06b6d4; /* bg-undefined-500 equivalente */
  --accent-500: #f59e0b;

  /* Tema: indefinido (modo claro por padrão) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --ring: 0 0 0 3px color-mix(in oklab, var(--primary-500) 30%, transparent);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, color-mix(in oklab, var(--primary-500) 8%, transparent) 0%, transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, color-mix(in oklab, var(--secondary-500) 8%, transparent) 0%, transparent 60%),
    var(--bg);
}

/* Tema escuro */
.theme-wrapper.dark {
  --bg: #0b1220;
  --surface: #0f172a;
  --surface-2: #0b1220;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2a44;
  --shadow: 0 12px 28px rgba(0,0,0,0.45);
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 8px 20px color-mix(in oklab, var(--primary-500) 30%, transparent);
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.topbar-actions {
  display: inline-flex;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0); }
.icon-btn svg { width: 18px; height: 18px; }

/* Stage & slides */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px 12px 24px;
}

.slide-container {
  position: relative;
  width: min(92vw, 1280px);
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  padding: clamp(16px, 2.2vw, 28px);
  display: grid;
  grid-template-rows: 1fr;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  height: 100%;
}

.slide-inner.center {
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in oklab, var(--primary-500) 6%, transparent), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in oklab, var(--secondary-500) 6%, transparent), transparent 60%);
  pointer-events: none;
}

/* Elements */
.kicker {
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.title-xl {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
}

.title {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
}

.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary-500) 10%, var(--surface));
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.chip.invert {
  background: color-mix(in oklab, var(--primary-500) 20%, transparent);
  color: white;
  border-color: color-mix(in oklab, var(--primary-500) 35%, transparent);
}

.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary-500) 90%, white), var(--primary-500));
  color: white;
  border-color: color-mix(in oklab, var(--primary-500) 30%, var(--border));
}
.btn-ghost {
  background: color-mix(in oklab, var(--primary-500) 6%, var(--surface));
}

/* Two-column layout */
.two-col {
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
}
@media (max-width: 920px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.checklist svg {
  color: var(--primary-500);
  width: 18px; height: 18px;
}

/* Illustration card */
.illustration-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  height: clamp(200px, 28vw, 320px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.avatar {
  width: clamp(90px, 12vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(80% 80% at 30% 30%, color-mix(in oklab, var(--primary-500) 60%, white), transparent 70%),
    linear-gradient(135deg, var(--secondary-500), color-mix(in oklab, var(--primary-500) 35%, var(--surface)));
  border: 4px solid var(--surface);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.15);
}
.bars {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 10px;
}
.bar {
  height: 12px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--primary-500) 10%, var(--surface-2));
  position: relative;
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: 10px;
  transform-origin: left center;
}
.bar.b1::after { width: 72%; }
.bar.b2::after { width: 52%; }
.bar.b3::after { width: 36%; }
.bar.b4::after { width: 64%; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: 8px;
}
@media (max-width: 920px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.photo {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.p1::before {
  background-image: linear-gradient(120deg, color-mix(in oklab, var(--primary-500) 20%, transparent), transparent), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop stop-color="%236366f1"/><stop offset="1" stop-color="%2306b6d4"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23g)"/><circle cx="420" cy="240" r="120" fill="white" opacity=".15"/><rect x="80" y="120" width="220" height="240" rx="24" fill="white" opacity=".25"/></svg>');
}
.p2::before {
  background-image: linear-gradient(120deg, color-mix(in oklab, var(--secondary-500) 22%, transparent), transparent), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480"><rect width="100%" height="100%" fill="%2306b6d4"/><g fill="white" opacity=".2"><rect x="60" y="60" width="180" height="120" rx="16"/><rect x="260" y="140" width="320" height="180" rx="16"/></g></svg>');
}
.p3::before {
  background-image: linear-gradient(120deg, color-mix(in oklab, var(--accent-500) 25%, transparent), transparent), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480"><rect width="100%" height="100%" fill="%23f59e0b"/><g fill="white" opacity=".15"><circle cx="160" cy="240" r="80"/><circle cx="360" cy="240" r="100"/></g></svg>');
}
.p4::before {
  background-image: linear-gradient(120deg, color-mix(in oklab, var(--primary-500) 20%, transparent), transparent), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop stop-color="%236366f1"/><stop offset="1" stop-color="%2306b6d4"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23g)"/><g fill="white" opacity=".25"><rect x="80" y="180" width="180" height="180" rx="24"/><rect x="280" y="160" width="280" height="200" rx="24"/></g></svg>');
}
.photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .65);
  color: white;
  font-weight: 700;
  font-size: 12px;
}

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in oklab, var(--primary-500) 40%, var(--border));
}
.timeline li {
  position: relative;
  padding-left: 34px;
  margin: 0 0 18px;
}
.timeline .dot {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary-500), color-mix(in oklab, var(--primary-500) 60%, black));
  border: 2px solid var(--surface);
  box-shadow: 0 4px 10px color-mix(in oklab, var(--primary-500) 30%, transparent);
}
.timeline .content .time {
  font-weight: 700;
}
.timeline .content .desc {
  color: var(--muted);
}

/* Pros/Cons cards */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow);
}
.card .card-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.card svg {
  width: 18px; height: 18px;
  color: var(--primary-500);
}
.card.pros {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--primary-500) 8%, transparent), transparent 60%),
    var(--surface);
}
.card.cons {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent-500) 8%, transparent), transparent 60%),
    var(--surface);
}
.list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: 10px;
}
@media (max-width: 920px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow);
}
.stat .value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}
.stat .label {
  color: var(--muted);
  font-weight: 600;
}
.stat .bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary-500) 12%, var(--surface-2));
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: 999px;
}

/* Code block */
.code-block {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, #0b1220 94%, white);
  color: #e5e7eb;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-block .copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #1f2a44;
  background: #0f172a;
  color: #e5e7eb;
  cursor: pointer;
}
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(12px, 1.5vw, 14px);
}

/* Controls */
.controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: min(92vw, 1280px);
}

.nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.nav:hover { transform: translateY(-1px); }
.nav svg { width: 20px; height: 20px; }

.dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary-500) 24%, var(--border));
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.dot:hover { transform: translateY(-1px) scale(1.02); }
.dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-color: color-mix(in oklab, var(--primary-500) 35%, var(--border));
}

/* Progressbar */
.progressbar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: transparent;
  overflow: hidden;
}
.progressbar .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  transition: width .25s ease;
}

/* Footer hint */
.hint {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  padding-bottom: 10px;
}