/* ═══════════════════════════════════════════════════════════════════════════
   REVERB WORKBOOK — APP.CSS
   Tokens · Reset · Layout · Componentes · Canvas · Progresso
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───── 1. TOKENS (REVERB Brand) ───────────────────────────────────────── */
:root {
  /* Cores brand */
  --reverb-violet-deep: #4B0082;
  --reverb-violet-bright: #8A2BE2;
  --reverb-violet-mid: #6A1FB5;
  --reverb-violet-soft: #B47FE8;

  /* Backgrounds */
  --reverb-bg: #FFFFFF;
  --reverb-surface: #F8F6FA;
  --reverb-surface-2: #F1ECF6;
  --reverb-surface-3: #E8DFEF;
  --reverb-surface-deep: #15101F;

  /* Texto */
  --reverb-text: #1A1330;
  --reverb-text-soft: #3A3550;
  --reverb-text-muted: #5A5670;
  --reverb-text-faint: #8A8AA0;

  /* Bordas */
  --reverb-border: rgba(138, 43, 226, 0.12);
  --reverb-border-hover: rgba(138, 43, 226, 0.32);
  --reverb-border-strong: rgba(138, 43, 226, 0.5);

  /* Funcionais */
  --reverb-success: #10B981;
  --reverb-warning: #F59E0B;
  --reverb-error: #EF4444;
  --reverb-info: #3B82F6;

  /* Tipografia */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Raios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Gradientes */
  --reverb-gradient: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
  --reverb-gradient-wave: linear-gradient(135deg, #4B0082 0%, #6A1FB5 50%, #8A2BE2 100%);
  --reverb-gradient-soft: linear-gradient(135deg, rgba(75,0,130,0.04) 0%, rgba(138,43,226,0.06) 100%);

  /* Glows */
  --reverb-glow: 0 0 30px rgba(138, 43, 226, 0.35);
  --reverb-glow-subtle: 0 0 18px rgba(138, 43, 226, 0.18);
  --reverb-glow-deep: 0 8px 40px rgba(75, 0, 130, 0.4);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(26, 19, 48, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 19, 48, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 19, 48, 0.08);
  --shadow-xl: 0 24px 60px rgba(26, 19, 48, 0.12);

  /* Transições */
  --tr: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-w: 300px;
  --header-h: 80px;
  --max-content: 920px;
}

/* ───── 2. RESET + BASE ────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--reverb-bg);
  color: var(--reverb-text);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ───── 3. PROGRESS BAR DO TOPO ────────────────────────────────────────── */
.top-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--reverb-surface-2);
  z-index: 200;
}
.top-progress__fill {
  height: 100%;
  background: var(--reverb-gradient);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

/* ───── 4. HEADER ──────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 3px; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--reverb-border);
  z-index: 100;
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 24px;
}
.header__logo { height: 56px; display: flex; align-items: center; padding: 6px 0; }
.header__logo img { height: 100%; width: auto; display: block; }
.header__divider { width: 1px; height: 24px; background: var(--reverb-border); }
.header__title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--reverb-text-muted);
}
.header__title strong { color: var(--reverb-text); font-weight: 700; }
.header__spacer { flex: 1; }
.header__progress {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--reverb-text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: var(--tr-fast);
}
.header__progress:hover { background: var(--reverb-surface); }
.header__progress-bar {
  width: 140px; height: 6px;
  background: var(--reverb-surface-2);
  border-radius: 3px; overflow: hidden;
}
.header__progress-fill {
  height: 100%;
  background: var(--reverb-gradient);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.header__progress-num {
  font-weight: 700; color: var(--reverb-text);
  font-variant-numeric: tabular-nums;
}
.header__actions { display: flex; gap: 8px; }
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--reverb-surface);
  color: var(--reverb-text-muted);
  transition: var(--tr);
  border: 1px solid transparent;
}
.btn-icon:hover {
  background: var(--reverb-surface-2);
  color: var(--reverb-violet-bright);
  border-color: var(--reverb-border);
}
.btn-icon svg { width: 16px; height: 16px; }

/* ───── 5. SIDEBAR ─────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: calc(var(--header-h) + 3px); left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h) - 3px);
  background: var(--reverb-surface);
  border-right: 1px solid var(--reverb-border);
  overflow-y: auto;
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--reverb-border-strong) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--reverb-border-hover); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--reverb-border-strong); }

.nav-section { padding: 0 16px; margin-bottom: 4px; }
.nav-section__title {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--reverb-text-faint);
  padding: 16px 12px 8px;
  display: flex; align-items: center; gap: 8px;
}
.nav-section__title::before {
  content: ''; width: 16px; height: 1px;
  background: var(--reverb-border-strong);
}
.nav-chapter { margin-bottom: 2px; }
.nav-chapter__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--tr-fast);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--reverb-text-soft);
}
.nav-chapter__head:hover {
  background: rgba(138, 43, 226, 0.06);
  color: var(--reverb-violet-bright);
}
.nav-chapter--active .nav-chapter__head {
  background: rgba(138, 43, 226, 0.08);
  color: var(--reverb-violet-deep);
}
.nav-chapter__letter {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--reverb-gradient);
  color: white;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.nav-chapter__letter--neutral {
  background: var(--reverb-text-muted);
}
.nav-chapter__letter--success {
  background: var(--reverb-success);
}
.nav-chapter__title { flex: 1; }
.nav-chapter__arrow {
  width: 10px; height: 10px;
  transition: var(--tr-fast);
  opacity: 0.6;
}
.nav-chapter--open .nav-chapter__arrow { transform: rotate(90deg); }
.nav-chapter__items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 34px;
}
.nav-chapter--open .nav-chapter__items {
  max-height: 600px;
}
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--reverb-text-muted);
  transition: var(--tr-fast);
  margin: 1px 0;
}
.nav-item:hover {
  background: rgba(138, 43, 226, 0.06);
  color: var(--reverb-text);
}
.nav-item--active {
  background: rgba(138, 43, 226, 0.10);
  color: var(--reverb-violet-deep);
  font-weight: 600;
}
.nav-item__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--reverb-border-strong);
  flex-shrink: 0;
  transition: var(--tr-fast);
}
.nav-item--filled .nav-item__dot {
  background: var(--reverb-gradient);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}
.nav-item--partial .nav-item__dot {
  background: radial-gradient(circle, var(--reverb-violet-bright) 50%, transparent 50%);
  border-color: var(--reverb-violet-bright);
}
.nav-item__title { flex: 1; }
.nav-item__count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--reverb-text-faint);
  font-weight: 500;
}

/* ───── 6. MAIN ────────────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  margin-top: calc(var(--header-h) + 3px);
  padding: 0;
  min-height: calc(100vh - var(--header-h) - 3px);
}
.main__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px 56px 120px;
}

/* ───── 7. STAGE HERO (capítulos do ciclo) ─────────────────────────────── */
.stage-hero {
  position: relative;
  margin: -48px -56px 48px;
  padding: 80px 56px 72px;
  background: var(--reverb-gradient-wave);
  overflow: hidden;
  isolation: isolate;
}
.stage-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  z-index: -1;
}
.stage-hero__waves {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.35;
}
.stage-hero__waves svg { animation: wave-shift 18s ease-in-out infinite; }
@keyframes wave-shift {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-20px) translateY(-10px); }
}
.stage-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.stage-hero__breadcrumb-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: white;
  font-family: var(--font-display);
  font-weight: 800; font-size: 12px;
}
.stage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; line-height: 1.05;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 720px;
}
.stage-hero__lead {
  font-size: 18px; font-weight: 400; line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}
.stage-hero__meta {
  display: flex; gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  flex-wrap: wrap;
}
.stage-hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.stage-hero__meta-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.stage-hero__meta-value {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: white;
}

/* Variante: hero clean (páginas não-ciclo) */
.page-hero {
  margin: -48px -56px 48px;
  padding: 64px 56px;
  background: var(--reverb-surface);
  border-bottom: 1px solid var(--reverb-border);
}
.page-hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--reverb-violet-bright);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero__kicker::before {
  content: ''; width: 24px; height: 1.5px;
  background: var(--reverb-gradient);
  border-radius: 1px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800; line-height: 1.1;
  color: var(--reverb-text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}
.page-hero__lead {
  font-size: 18px; line-height: 1.6;
  color: var(--reverb-text-muted);
  max-width: 640px;
}

/* ───── 8. SECTIONS ────────────────────────────────────────────────────── */
.section { margin-bottom: 56px; }
.section__kicker {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--reverb-violet-bright);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section__kicker::before {
  content: ''; width: 24px; height: 1.5px;
  background: var(--reverb-gradient);
  border-radius: 1px;
}
.section__title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  line-height: 1.15;
  color: var(--reverb-text);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section__lead {
  font-size: 16px;
  color: var(--reverb-text-muted);
  max-width: 680px; line-height: 1.7;
}

/* ───── 9. PURPOSE GRID & CARDS ────────────────────────────────────────── */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.purpose-card {
  padding: 24px;
  background: var(--reverb-bg);
  border: 1px solid var(--reverb-border);
  border-radius: var(--r-md);
  transition: var(--tr);
  position: relative; overflow: hidden;
}
.purpose-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--reverb-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.purpose-card:hover {
  border-color: var(--reverb-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.purpose-card:hover::before { transform: scaleX(1); }
.purpose-card__title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--reverb-violet-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.purpose-card__body {
  font-size: 14px;
  color: var(--reverb-text-muted);
  line-height: 1.6;
}

/* ───── 10. CALLOUTS ───────────────────────────────────────────────────── */
.callout {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  display: flex; gap: 14px;
  border-left: 3px solid;
}
.callout__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800; font-size: 12px;
  margin-top: 2px;
}
.callout__body {
  font-size: 14.5px; line-height: 1.65;
  color: var(--reverb-text-soft);
}
.callout--info { background: rgba(59,130,246,0.05); border-color: var(--reverb-info); }
.callout--info .callout__icon { background: var(--reverb-info); color: white; }
.callout--warn { background: rgba(245,158,11,0.06); border-color: var(--reverb-warning); }
.callout--warn .callout__icon { background: var(--reverb-warning); color: white; }
.callout--tip { background: rgba(138,43,226,0.05); border-color: var(--reverb-violet-bright); }
.callout--tip .callout__icon { background: var(--reverb-gradient); color: white; }

/* ───── 11. ROLES TABLE (Protagonista/Colaborador/Consultivo) ──────────── */
.roles-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--reverb-bg);
  border: 1px solid var(--reverb-border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 13px;
}
.roles-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--reverb-surface);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--reverb-text-muted);
  border-bottom: 1px solid var(--reverb-border);
}
.roles-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--reverb-border);
  vertical-align: top;
}
.roles-table tr:last-child td { border-bottom: none; }
.roles-table tr:hover td { background: var(--reverb-surface); }
.role-badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
  margin: 2px 4px 2px 0;
  white-space: nowrap;
}
.role-badge--protag { background: rgba(138,43,226,0.12); color: var(--reverb-violet-deep); }
.role-badge--colab { background: rgba(59,130,246,0.10); color: #1e40af; }
.role-badge--consult { background: rgba(107,114,128,0.10); color: #374151; }
.role-legend {
  display: flex; gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--reverb-text-muted);
  flex-wrap: wrap;
}
.role-legend__item { display: flex; align-items: center; gap: 6px; }

/* ───── 12. CANVAS — Peça interativa principal ─────────────────────────── */
.canvas {
  margin: 32px 0;
  background: var(--reverb-bg);
  border: 1px solid var(--reverb-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.canvas__header {
  padding: 24px 28px 20px;
  background: linear-gradient(180deg, rgba(138,43,226,0.04), transparent);
  border-bottom: 1px solid var(--reverb-border);
  display: flex; align-items: flex-start; gap: 16px;
}
.canvas__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--reverb-gradient);
  color: white;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.canvas__badge::before {
  content: ''; width: 6px; height: 6px;
  background: white; border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.canvas__heading { flex: 1; }
.canvas__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--reverb-text);
  line-height: 1.25;
  margin-bottom: 6px;
}
.canvas__subtitle {
  font-size: 14px;
  color: var(--reverb-text-muted);
  line-height: 1.5;
}
.canvas__progress { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.canvas__progress-ring { width: 48px; height: 48px; position: relative; }
.canvas__progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.canvas__progress-ring circle {
  fill: none; stroke-width: 4;
  cx: 24; cy: 24; r: 20;
}
.canvas__progress-ring .bg { stroke: var(--reverb-surface-2); }
.canvas__progress-ring .fill {
  stroke: url(#canvasGrad);
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.canvas__progress-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--reverb-violet-deep);
}
.canvas__toolbar {
  padding: 12px 28px;
  background: var(--reverb-surface);
  border-bottom: 1px solid var(--reverb-border);
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.canvas__tool {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--reverb-text-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--tr-fast);
  background: transparent;
  border: 1px solid transparent;
}
.canvas__tool:hover {
  background: var(--reverb-bg);
  color: var(--reverb-violet-bright);
  border-color: var(--reverb-border);
}
.canvas__tool svg { width: 13px; height: 13px; }
.canvas__tool--save-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--reverb-text-faint);
  cursor: default;
}
.canvas__tool--save-status:hover {
  background: transparent;
  color: var(--reverb-text-faint);
  border-color: transparent;
}
.canvas__tool--save-status.saved { color: var(--reverb-success); }
.canvas__tool--save-status.saving { color: var(--reverb-warning); }
.canvas__body { padding: 24px 28px 28px; }

/* ───── 13. FIELDS ─────────────────────────────────────────────────────── */
.field { margin-bottom: 22px; position: relative; }
.field__head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.field__label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--reverb-text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.field__hint {
  font-size: 12px;
  color: var(--reverb-text-faint);
  flex: 1;
}
.field__example-btn {
  font-size: 11px; font-weight: 600;
  color: var(--reverb-violet-bright);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  transition: var(--tr-fast);
}
.field__example-btn:hover { background: rgba(138,43,226,0.08); }
.field__guide {
  font-size: 13px;
  color: var(--reverb-text-muted);
  margin-bottom: 8px;
  line-height: 1.55;
}
.field__input,
.field__textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--reverb-surface);
  border: 1.5px solid var(--reverb-border);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--reverb-text);
  transition: var(--tr-fast);
  resize: vertical;
  line-height: 1.55;
}
.field__textarea { min-height: 80px; }
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--reverb-violet-bright);
  background: var(--reverb-bg);
  box-shadow: 0 0 0 4px rgba(138,43,226,0.10);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--reverb-text-faint);
  font-style: italic;
}
.field__example {
  margin-top: 8px;
  padding: 0;
  background: var(--reverb-gradient-soft);
  border: 1px dashed rgba(138,43,226,0.25);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--reverb-text-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  line-height: 1.6;
}
.field__example.open {
  padding: 14px 16px;
  max-height: 600px;
}
.field__example::before {
  content: 'EXEMPLO PREENCHIDO';
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--reverb-violet-bright);
  margin-bottom: 6px;
}

/* Variantes especiais */
.field--quote .field__textarea {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  background: var(--reverb-gradient-soft);
  border-color: rgba(138,43,226,0.2);
  color: var(--reverb-text);
}
.field--quote .field__textarea::placeholder {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--reverb-text-faint);
}
.field--quote .field__textarea:focus { background: var(--reverb-bg); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ───── 14. FIELDSETS (agrupamentos visuais) ───────────────────────────── */
.fieldset { margin: 28px 0; position: relative; }
.fieldset__title {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--reverb-violet-bright);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.fieldset__title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--reverb-border);
}

/* ───── 15. PERSONA AVATAR ─────────────────────────────────────────────── */
.persona-id {
  display: flex; gap: 20px; align-items: center;
  margin-bottom: 26px;
  padding: 20px;
  background: var(--reverb-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--reverb-border);
}
.persona-avatar {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--reverb-gradient);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  position: relative; overflow: hidden;
  box-shadow: var(--reverb-glow-subtle);
  transition: var(--tr);
}
.persona-avatar:hover {
  transform: scale(1.04);
  box-shadow: var(--reverb-glow);
}
.persona-id__fields {
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.persona-id__name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--reverb-text);
  background: transparent; border: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: var(--tr-fast);
  width: 100%;
}
.persona-id__name:focus {
  outline: none;
  border-bottom-color: var(--reverb-violet-bright);
}
.persona-id__name::placeholder { color: var(--reverb-text-faint); }
.persona-id__role {
  font-size: 14px;
  color: var(--reverb-text-muted);
  background: transparent; border: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: var(--tr-fast);
  width: 100%;
}
.persona-id__role:focus {
  outline: none;
  border-bottom-color: var(--reverb-violet-bright);
}
.persona-id__role::placeholder {
  color: var(--reverb-text-faint);
  font-style: italic;
}

/* ───── 16. BUTTONS ────────────────────────────────────────────────────── */
.btn {
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--tr);
  border: 1.5px solid transparent;
  letter-spacing: 0.01em;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary {
  background: var(--reverb-gradient);
  color: white;
}
.btn--primary:hover {
  box-shadow: var(--reverb-glow);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--reverb-violet-bright);
  border-color: var(--reverb-violet-bright);
}
.btn--secondary:hover {
  background: rgba(138,43,226,0.06);
  border-color: var(--reverb-violet-deep);
  color: var(--reverb-violet-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--reverb-text-muted);
}
.btn--ghost:hover {
  background: var(--reverb-surface);
  color: var(--reverb-text);
}
.btn--danger {
  background: transparent;
  color: var(--reverb-error);
  border-color: rgba(239,68,68,0.3);
}
.btn--danger:hover {
  background: rgba(239,68,68,0.06);
  border-color: var(--reverb-error);
}

/* ───── 17. FOOTER ACTIONS ─────────────────────────────────────────────── */
.footer-actions {
  display: flex; gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--reverb-border);
  align-items: center;
  flex-wrap: wrap;
}
.footer-actions__spacer { flex: 1; }

/* ───── 18. BRIDGE ─────────────────────────────────────────────────────── */
.bridge {
  margin: 64px 0 0;
  padding: 32px;
  background: var(--reverb-gradient-soft);
  border: 1px solid var(--reverb-border);
  border-left: 4px solid var(--reverb-violet-bright);
  border-radius: var(--r-md);
}
.bridge__label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--reverb-violet-bright);
  margin-bottom: 8px;
}
.bridge__text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  color: var(--reverb-text);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   19. PROGRESSO — RELÓGIO CENTRAL + SUB-ANÉIS
   ═══════════════════════════════════════════════════════════════════════ */

.progress-page {
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero do progresso */
.progress-hero {
  text-align: center;
  margin-bottom: 64px;
  padding: 32px 0;
}

/* RELÓGIO CENTRAL */
.clock-wrap {
  position: relative;
  width: 360px; height: 360px;
  margin: 0 auto 48px;
}
.clock-wrap__svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 8px 24px rgba(75,0,130,0.15));
}
.clock-wrap__bg {
  fill: none;
  stroke: var(--reverb-surface-2);
  stroke-width: 14;
}
.clock-wrap__fill {
  fill: none;
  stroke: url(#clockGrad);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 1005.31;  /* 2 * π * 160 */
  stroke-dashoffset: 1005.31;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Marcações de tick (12 marcas como num relógio) */
.clock-wrap__ticks line {
  stroke: var(--reverb-text-faint);
  stroke-width: 1.5;
  opacity: 0.5;
}
.clock-wrap__ticks line.major {
  stroke: var(--reverb-violet-bright);
  stroke-width: 2;
  opacity: 1;
}

/* Centro do relógio — número grande */
.clock-center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.clock-center__num {
  font-family: var(--font-mono);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  background: var(--reverb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.clock-center__num::after {
  content: '%';
  font-size: 36px;
  color: var(--reverb-violet-bright);
  -webkit-text-fill-color: var(--reverb-violet-bright);
  margin-left: 4px;
  font-weight: 600;
}
.clock-center__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--reverb-text-muted);
  margin-top: 8px;
}
.clock-center__detail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--reverb-text-soft);
  margin-top: 14px;
  font-weight: 500;
}

/* Pulse animation quando completa um canvas */
@keyframes reverb-pulse-strong {
  0% {
    box-shadow: 0 0 0 0 rgba(138,43,226, 0.5);
  }
  70% {
    box-shadow: 0 0 0 40px rgba(138,43,226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138,43,226, 0);
  }
}
.clock-wrap.pulsing {
  border-radius: 50%;
  animation: reverb-pulse-strong 1.6s ease-out;
}

/* Onda de reverberação que sai do relógio */
.clock-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.clock-ripple::before,
.clock-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--reverb-violet-bright);
  opacity: 0;
}
@keyframes ripple-out {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.clock-ripple.active::before {
  animation: ripple-out 1.8s ease-out;
}
.clock-ripple.active::after {
  animation: ripple-out 1.8s ease-out 0.4s;
}

/* SUB-ANÉIS — 6 etapas REVERB ao redor do relógio */
.stage-rings {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .stage-rings { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .stage-rings { grid-template-columns: repeat(2, 1fr); }
}

.stage-ring {
  background: var(--reverb-bg);
  border: 1px solid var(--reverb-border);
  border-radius: var(--r-md);
  padding: 20px 12px;
  text-align: center;
  transition: var(--tr);
  cursor: pointer;
}
.stage-ring:hover {
  border-color: var(--reverb-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.stage-ring__svg-wrap {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 12px;
}
.stage-ring__svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.stage-ring__bg {
  fill: none;
  stroke: var(--reverb-surface-2);
  stroke-width: 6;
}
.stage-ring__fill {
  fill: none;
  stroke: url(#clockGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226.19;  /* 2 * π * 36 */
  stroke-dashoffset: 226.19;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.stage-ring__letter {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  background: var(--reverb-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.stage-ring__name {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: var(--reverb-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.stage-ring__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--reverb-text-muted);
  font-weight: 500;
}

/* CANVAS LIST — lista de todos os 19 canvases */
.canvas-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.canvas-list__item {
  background: var(--reverb-bg);
  border: 1px solid var(--reverb-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  transition: var(--tr-fast);
  cursor: pointer;
}
.canvas-list__item:hover {
  border-color: var(--reverb-border-hover);
  background: var(--reverb-surface);
  transform: translateX(2px);
}
.canvas-list__item--done {
  background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(16,185,129,0.08));
  border-color: rgba(16,185,129,0.2);
}
.canvas-list__status {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--reverb-surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.canvas-list__status svg { width: 18px; height: 18px; color: var(--reverb-text-faint); }
.canvas-list__item--partial .canvas-list__status {
  background: var(--reverb-gradient);
}
.canvas-list__item--partial .canvas-list__status svg { color: white; }
.canvas-list__item--done .canvas-list__status {
  background: var(--reverb-success);
}
.canvas-list__item--done .canvas-list__status svg { color: white; }
.canvas-list__info { flex: 1; min-width: 0; }
.canvas-list__title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--reverb-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.canvas-list__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--reverb-text-muted);
}
.canvas-list__pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--reverb-violet-bright);
  flex-shrink: 0;
}
.canvas-list__item--done .canvas-list__pct { color: var(--reverb-success); }

/* Group label entre os items */
.canvas-list__group-label {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--reverb-violet-bright);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--reverb-border);
  display: flex; align-items: center; gap: 10px;
}
.canvas-list__group-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.canvas-list__group-label-letter {
  width: 20px; height: 20px;
  background: var(--reverb-gradient);
  color: white;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ───── 20. TOAST ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  padding: 14px 20px;
  background: var(--reverb-surface-deep);
  color: white;
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg), var(--reverb-glow-subtle);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--tr);
  z-index: 300;
  max-width: 380px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast__icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--reverb-gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast__icon svg { width: 12px; height: 12px; color: white; }

/* ───── 21. ANIMATIONS HELPERS ─────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───── 22. RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .main__inner { padding: 32px 24px 80px; }
  .stage-hero, .page-hero { margin: -32px -24px 32px; padding: 56px 24px 48px; }
}
