/* ============================================================
   SOBERANO DESIGN SYSTEM - CORE STYLESHEET
   Vanilla CSS & Custom Properties
   ============================================================ */

/* Import Google Fonts (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --background: #FCFCFC;
  --foreground: #0C0F14;
  --vivo: #FD4900;
  --vivo-hover: #E03F00;
  --vivo-soft: rgba(253, 73, 0, 0.08);
  --muted: #F1F3F5;
  --muted-foreground: #6A7582;
  --border: #E6E8EB;
  --card: #FFFFFF;
  --soft: #E2E8F0;
  --destructive: #EF4444;
  --destructive-hover: #DC2626;

  /* Shapes & Layouts */
  --radius-4xl: 26px;
  --radius-3xl: 20px;
  --radius-xl: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Variables override */
body.dark {
  --background: #0C0F14;
  --foreground: #FCFCFC;
  --border: #1E232B;
  --card: #12161D;
  --muted: #1E232B;
  --muted-foreground: #8A96A3;
  --soft: #2D3748;
}

/* Basic Reset & Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   UTILITY CLASSES & GRID LAYOUTS
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.hidden { display: none; }

/* Grid Scaffolding */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   MAIN CONTAINER SCAFFOLDING
   ============================================================ */
.min-h-screen {
  min-height: 100vh;
}

.main-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .main-layout {
    flex-direction: row;
  }
}

/* Complete Area content containing sticky header & scroll body */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

main.main-content {
  flex: 1;
  padding: 3rem 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  main.main-content {
    padding: 3rem 3rem;
  }
}

/* ============================================================
   HEADER BAR (STICKY NAV)
   ============================================================ */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(252, 252, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.dark .header-bar {
  background-color: rgba(12, 15, 20, 0.8);
}

@media (min-width: 640px) {
  .header-bar {
    padding: 1rem 3rem;
  }
}

.text-vivo-accent {
  color: var(--vivo);
}

/* ============================================================
   SIDEBAR (MENU LATERAL)
   ============================================================ */
.sidebar {
  display: none;
  background-color: var(--background);
  border-right: 1px solid var(--border);
  padding: 2rem;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 10;
  width: 280px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Mobile full-screen overlay state override */
.sidebar.mobile-open {
  display: flex !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}

.sidebar.desktop-open {
  display: flex;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.75rem 0 0.25rem 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.sidebar-link:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

/* ============================================================
   SECTIONS & SEPARATORS
   ============================================================ */
.section-showcase {
  margin-bottom: 5rem;
  scroll-margin-top: 5rem;
}

.separator {
  height: 1px;
  width: 100%;
  background-color: var(--border);
  margin: 1rem 0;
}

/* ============================================================
   CARD CONTAINER
   ============================================================ */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-4xl);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  background-color: var(--foreground);
  color: var(--background);
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--vivo);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--vivo-hover);
}

.btn-secondary {
  background-color: var(--muted);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-destructive {
  background-color: var(--destructive);
  color: #FFFFFF;
}

.btn-destructive:hover {
  background-color: var(--destructive-hover);
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-4xl);
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.field-instruction {
  font-size: 11px;
  color: var(--muted-foreground);
}

.input {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.input:focus {
  border-color: var(--vivo);
  box-shadow: 0 0 0 3px rgba(253, 73, 0, 0.15);
}

/* Input groups with addons */
.input-group {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  transition: var(--transition);
}

.input-group:focus-within {
  border-color: var(--vivo);
  box-shadow: 0 0 0 3px rgba(253, 73, 0, 0.15);
}

.input-group-input {
  flex: 1;
  height: 2.75rem;
  border: none;
  background: transparent;
  padding: 0 1rem;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--foreground);
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--muted-foreground);
}

.kbd {
  font-size: 9px;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-sans);
  color: var(--foreground);
}

/* Checkbox */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: var(--foreground);
}

.checkbox-input {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  background-color: var(--card);
  position: relative;
  transition: var(--transition);
}

.checkbox-input:checked {
  background-color: var(--foreground);
  border-color: var(--foreground);
}

.checkbox-input:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--background);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.75rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.badge-vivo {
  background-color: var(--vivo-soft);
  color: var(--vivo);
}

.badge-soft {
  background-color: var(--soft);
  color: var(--background);
}

.badge-muted {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* ============================================================
   ADVANCED WIDGETS
   ============================================================ */
/* Calendar Container */
.calendar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: 1rem;
  background-color: var(--card);
  width: fit-content;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-month {
  font-size: 0.875rem;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekday {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  border-radius: var(--radius-4xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: var(--transition);
}

.calendar-day:hover {
  background-color: var(--muted);
}

.calendar-day.active {
  background-color: var(--vivo);
  color: #FFFFFF;
}

.calendar-day.outside {
  color: var(--muted-foreground);
  opacity: 0.5;
}

/* Agenda: calendario + proximos encontros */
.agenda {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.agenda-bloco {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.agenda .calendar-box {
  width: 100%;
}

.agenda .calendar-grid {
  width: 100%;
}

.agenda .calendar-weekday,
.agenda .calendar-day {
  width: 100%;
}

.agenda .calendar-day {
  cursor: default;
}

.agenda-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agenda-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  background-color: var(--card);
}

.agenda-item-data {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--vivo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agenda-item-tema {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
}

.agenda-item-meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

@media (min-width: 760px) {
  .agenda-bloco {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* Card de acao: titulo, texto curto e CTA */
.action-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  background-color: var(--card);
}

.action-card-titulo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--foreground);
}

.action-card-texto {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.action-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-list {
  display: grid;
  gap: 1rem;
}

.skill-item {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  background-color: var(--card);
}

.skill-item-header {
  display: grid;
  gap: 0.35rem;
}

.skill-item-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--foreground);
}

.skill-item-summary {
  max-width: 68ch;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.skill-description {
  max-width: 68ch;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.65;
}

.skill-bullets {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.1rem;
  color: var(--foreground);
}

.skill-bullets li {
  font-size: 0.875rem;
  line-height: 1.55;
}

.skill-installation {
  max-width: 72ch;
  padding: 0.9rem;
  border-radius: var(--radius-2xl);
  background-color: var(--muted);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.skill-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.skill-file {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Progress */
.progress-container {
  width: 100%;
}

.progress-track {
  width: 100%;
  height: 0.5rem;
  background-color: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--vivo);
  transition: width 0.3s ease;
}

/* Avatar */
.avatar-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.avatar-fallback {
  background-color: var(--vivo-soft);
  color: var(--vivo);
}

/* Command Menu Box */
.command-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  background-color: var(--card);
  width: 100%;
  overflow: hidden;
}

.command-input-container {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.command-list {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  max-height: 180px;
  overflow-y: auto;
}

.command-group-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
}

.command-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-xl);
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition);
}

.command-item:hover {
  background-color: var(--muted);
}

/* Data Table */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   MIOLO FOTORAD DOCUMENTS (LAYOUT ARTIGO)
   ============================================================ */
.article-doc {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.doc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.doc-section {
  margin-bottom: 2.5rem;
}

.doc-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.doc-paragraph {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Titulo de passo dentro de uma secao (Passo N - Titulo) */
.step-heading {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-label {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background-color: var(--vivo-soft);
  color: var(--vivo);
}

.step-title {
  color: var(--foreground);
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .two-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-band {
  background-color: var(--muted);
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Numbered Flow list */
.flow-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.flow-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.flow-row:last-child {
  border-bottom: none;
}

.flow-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: var(--vivo-soft);
  color: var(--vivo);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ Details Accordion */
.faq-accordion {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-content {
  padding-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Question/Answer box mockup */
.qa-box {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.qa-row {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.qa-row:last-child {
  border-bottom: none;
  border-left: 2px solid var(--vivo);
  background-color: var(--background);
}

/* Prev / Next Navigation */
.prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.prev-next-card {
  padding: 1rem;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  text-decoration: none;
  color: var(--foreground);
  transition: var(--transition);
}

.prev-next-card:hover {
  background-color: var(--soft);
}

/* ============================================================
   LISTS & SPECIALIZED ITEMS
   ============================================================ */
.list-box {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-4xl);
  padding: 1.5rem;
}

.list-title {
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
}

.list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  align-items: start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* large numbers list */
.register-list-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.register-list-item:last-child {
  border-bottom: none;
}

.register-number {
  font-size: 1.875rem;
  font-weight: 900;
  color: rgba(106, 117, 130, 0.2);
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-4xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* Hide scrollbar browser compatibility */
.carousel-slides::-webkit-scrollbar {
  display: none;
}
.carousel-slides {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, var(--card), var(--muted));
  user-select: none;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: rgba(252, 252, 252, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background-color: var(--background);
}

.carousel-nav-btn.prev { left: 0.75rem; }
.carousel-nav-btn.next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(106, 117, 130, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--vivo);
}

/* ============================================================
   OFFER BLOCK
   ============================================================ */
.offer-card {
  background-color: var(--card);
  border: 2px solid var(--vivo);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(253, 73, 0, 0.1);
  margin-left: auto;
  margin-right: auto;
}

.offer-header {
  background-color: var(--vivo-soft);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.offer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.price-strike {
  text-decoration: line-through;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* ============================================================
   TOAST NOTIFICATION (SONNER MOCKUP)
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: slideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(100%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ============================================================
   DOC CONTENT BLOCKS (montagem de guia a partir de markdown)
   Pecas que o pipeline da plataforma emite e o Soberano veste.
   Crescimento do design system: a plataforma so consome.
   ============================================================ */

/* Conteudo de um passo dentro do fluxo numerado (2o filho de .flow-row) */
.flow-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.flow-content > *:first-child {
  margin-top: 0;
}

.flow-content > *:last-child {
  margin-bottom: 0;
}

/* Lista de marcadores simples */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.bullet-list > li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.bullet-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--vivo);
}

.bullet-list > li strong {
  color: var(--foreground);
}

/* Lista-indice: link em negrito + descricao curta (porta de entrada do guia) */
.index-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding: 0;
}

.index-list > li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.index-list > li:last-child {
  border-bottom: none;
}

.index-list-link {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.index-list-link:hover {
  color: var(--vivo);
}

.index-list-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* Checklist (estrutura emitida pelo pipeline: li > input + div.checkbox-text) */
.checkbox-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.checkbox-box {
  appearance: none;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  cursor: default;
  background-color: var(--card);
  position: relative;
  transition: var(--transition);
}

.checkbox-box:checked {
  background-color: var(--vivo);
  border-color: var(--vivo);
}

.checkbox-box:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  flex: 1;
}

.checkbox-text > *:first-child { margin-top: 0; }
.checkbox-text > *:last-child { margin-bottom: 0; }

/* Video do guia (bloco de conteudo, nao moldura) */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--muted);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-meta > span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vivo);
}

.video-meta h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.video-meta p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.video-support {
  background-color: var(--muted);
  border-radius: var(--radius-3xl);
  padding: 1.25rem;
}

.video-support h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.video-support p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Tipografia in-line dentro do miolo do guia (link, codigo, enfase, divisor).
   O showcase nao tinha esses primitivos; o design system cresce pra cobri-los
   nos 3 produtos de uma vez. Escopo em .article-doc pra nao vazar pro resto. */
.article-doc a {
  color: var(--vivo);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.article-doc a:hover {
  color: var(--vivo-hover);
  text-decoration: underline;
}

.article-doc a.btn {
  color: var(--background);
  text-decoration: none;
}

.article-doc a.btn:hover {
  color: var(--background);
  text-decoration: none;
}

.article-doc a.btn-primary,
.article-doc a.btn-primary:hover,
.article-doc a.btn-destructive,
.article-doc a.btn-destructive:hover {
  color: #FFFFFF;
}

.article-doc a.btn-secondary,
.article-doc a.btn-secondary:hover,
.article-doc a.btn-outline,
.article-doc a.btn-outline:hover,
.article-doc a.btn-ghost,
.article-doc a.btn-ghost:hover {
  color: var(--foreground);
}

.article-doc strong {
  color: var(--foreground);
  font-weight: 700;
}

.article-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.article-doc pre {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.article-doc pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.article-doc hr {
  height: 1px;
  border: none;
  background-color: var(--border);
  margin: 2rem 0;
}
