/* Variáveis de Cores e Estilo */
:root {
  --primary-color: #2563eb;
  --secondary-color: #16a34a; /* Verde oficial do projeto */
  --bg-page: #f5f5dc; /* Bege padrão */
  --surface-color: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
  background-color: var(--bg-page); 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  color: var(--text-main); 
  line-height: 1.6; 
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Cabeçalho e Logo */
.hero { background: white; padding: 40px 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.hero-title-wrap { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }

/* LOGO REDUZIDA */
.logo-img { max-height: 45px; width: auto; object-fit: contain; } 

h1 { font-size: 2rem; color: #1e293b; }
.lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }
.sub { color: var(--text-muted); margin-bottom: 20px; }
.tag { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-color); font-weight: bold; }

/* Botões */
.btn { padding: 10px 20px; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; color: white; text-decoration: none; display: inline-block; }
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(2px); }
.btn.green { background-color: var(--secondary-color); }
.btn.blue { background-color: var(--primary-color); }
.btn.dark { background-color: #1e293b; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.btn.outline-blue { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn.outline-blue:hover { background-color: var(--primary-color); color: white; }

.hero-actions { display: flex; justify-content: center; gap: 15px; margin-top: 25px; flex-wrap: wrap; }

/* Layout e Cards */
.main-layout { padding: 30px 0; display: flex; flex-direction: column; gap: 25px; }
.card { background: var(--surface-color); padding: 25px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.destaque { border-left: 5px solid var(--primary-color); }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #e0f2fe; color: #0369a1; padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }

.formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 15px 0; }
.formula-box { background: #f8fafc; padding: 15px; text-align: center; font-size: 1.2rem; border-radius: var(--radius); border: 1px solid var(--border-color); }

.graph-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.selector-grid { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.selector { flex: 1; min-width: 120px; background: white; border: 2px solid var(--border-color); border-radius: var(--radius); padding: 15px; cursor: pointer; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.selector:hover { border-color: var(--primary-color); }
.selector.active { border-color: var(--primary-color); background: #eff6ff; }
.selector-title { font-weight: bold; color: #1e293b; }

.chart-wrap { width: 100%; height: 350px; position: relative; background: white; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 10px; }
.explanation { margin-top: 20px; padding: 15px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); color: #166534; display: none; }

.example { background: #f8fafc; padding: 20px; border-radius: var(--radius); margin-bottom: 15px; border-left: 4px solid var(--primary-color); }
.example h3 { font-size: 1.1rem; margin-bottom: 15px; }

/* Passo a Passo */
.passos-container { margin-bottom: 15px; }
.passo { display: none; margin-bottom: 8px; padding: 12px; background-color: #ffffff; border-radius: 6px; border: 1px solid var(--border-color); animation: deslizarBaixo 0.3s ease-out forwards; }
@keyframes deslizarBaixo { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.actions-passo { display: flex; gap: 10px; flex-wrap: wrap; }

/* Exercícios */
.exercise-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.exercise { background: #f8fafc; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.exercise-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.resposta-oculta { display: none; margin-top: 15px; padding: 15px; background: #f0fdfa; border-left: 4px solid var(--secondary-color); border-radius: 0 var(--radius) var(--radius) 0; color: #115e59; }
.note { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 15px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 20px; color: #92400e; }

/* RODAPÉ VERDE */
.footer { text-align: center; padding: 30px; background-color: var(--secondary-color) !important; color: white; margin-top: 0; }