/* =========================================================
   Onemind – Diagnóstico de Liderança
   stylesheet/style.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --roxo:           #8662A7;
  --roxo-light:     #A484C4;
  --roxo-dark:      #6A4D88;
  --roxo-faint:     rgba(134,98,167,0.12);
  --roxo-border:    rgba(134,98,167,0.3);
  --bg:             #0C0C0F;
  --bg2:            #131318;
  --bg3:            #1A1A22;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(134,98,167,0.4);
  --text:           #F0EFF8;
  --text-muted:     #8A8A9A;
  --text-faint:     #4A4A58;
  --danger:         #E24B4A;
  --danger-light:   rgba(226,75,74,0.12);
  --warning-light:  rgba(186,117,23,0.12);
  --success:        #1D9E75;
  --success-light:  rgba(29,158,117,0.12);
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

header img { display: block; height: 32px; width: auto; }

.container {
  width: 100%;
  max-width: 740px;
  padding: 40px 24px 80px;
  flex: 1;
}

footer {
  width: 100%;
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--roxo);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.btn-primary:hover:not(:disabled) { background: var(--roxo-dark); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

/* ── INTRO ───────────────────────────────────────────────── */
.intro-center { text-align: center; padding-top: 24px; }

.badge-pill {
  display: inline-flex;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title em { font-style: normal; color: var(--roxo-light); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 36px;
}

.meta-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.aviso-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: left;
}

.aviso-box strong { color: var(--text); }

/* ── PROGRESS ────────────────────────────────────────────── */
.progress-wrap   { margin-bottom: 40px; }
.progress-top    { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.progress-label  { font-size: 13px; color: var(--text-muted); }
.progress-count  { font-size: 13px; font-weight: 600; color: var(--roxo-light); }
.progress-track  { height: 2px; background: var(--bg3); border-radius: 100px; overflow: hidden; }
.progress-fill   { height: 100%; background: var(--roxo); border-radius: 100px; transition: width 0.4s ease; }

/* ── QUESTION ────────────────────────────────────────────── */
.question-area   { margin-bottom: 32px; }

.question-number {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.question-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 28px;
}

.options-grid { display: flex; flex-direction: column; gap: 10px; }

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 18px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.option-btn:hover    { border-color: var(--border-hover); background: var(--roxo-faint); }
.option-btn.selected { border-color: var(--roxo); background: var(--roxo-faint); }

.option-circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.option-btn.selected .option-circle { border-color: var(--roxo); background: var(--roxo); }
.option-btn.selected .option-circle::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}

.option-label { font-size: 14px; line-height: 1.55; }

.question-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

/* ── FORM ────────────────────────────────────────────────── */
.form-header { text-align: center; margin-bottom: 36px; }

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header p { color: var(--text-muted); font-size: 15px; }

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

input:focus        { border-color: var(--roxo); }
input::placeholder { color: var(--text-faint); }

.input-error { display: none; font-size: 12px; color: var(--danger); margin-top: 5px; }
.form-group.has-error input        { border-color: var(--danger); }
.form-group.has-error .input-error { display: block; }

.privacy-note {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── LOADING ─────────────────────────────────────────────── */
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  min-height: 60vh;
}

.spinner {
  width: 44px; height: 44px;
  border: 2px solid var(--bg3);
  border-top-color: var(--roxo);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: var(--text-muted); }

/* ── RESULT HERO ─────────────────────────────────────────── */
.result-hero { text-align: center; padding: 32px 0 40px; }

.result-para-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.result-para-label strong { color: var(--text); }

.score-ring {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto 28px;
}

.score-ring svg { transform: rotate(-90deg); }

#score-arc { transition: stroke-dashoffset 1.2s ease, stroke 0.5s; }

.score-center {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.score-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.result-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.result-badge.critico     { background: var(--danger-light);  color: #F09595; border: 1px solid rgba(226,75,74,0.25); }
.result-badge.atencao     { background: var(--warning-light); color: #FAC775; border: 1px solid rgba(186,117,23,0.25); }
.result-badge.progresso   { background: var(--roxo-faint);    color: var(--roxo-light); border: 1px solid var(--roxo-border); }
.result-badge.regenerativo{ background: var(--success-light); color: #5DCAA5; border: 1px solid rgba(29,158,117,0.3); }

.result-archetype {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.result-title-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.result-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 36px 0; }

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

/* ── DIMENSIONS ──────────────────────────────────────────── */
.dimensions-section { margin-bottom: 40px; }

.dimension-item   { margin-bottom: 18px; }

.dimension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dimension-name  { font-size: 14px; font-weight: 500; }
.dimension-score { font-size: 14px; font-weight: 700; }
.dimension-track { height: 4px; background: var(--bg3); border-radius: 100px; overflow: hidden; }
.dimension-fill  { height: 100%; border-radius: 100px; transition: width 1s ease; }

/* ── INSIGHTS ────────────────────────────────────────────── */
.insights-section { margin-bottom: 40px; }
.insights-grid    { display: flex; flex-direction: column; gap: 12px; }

.insight-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.insight-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.insight-icon.red   { background: var(--danger-light); }
.insight-icon.amber { background: var(--warning-light); }
.insight-icon.green { background: var(--success-light); }

.insight-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.insight-content p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── COMPARATIVE ─────────────────────────────────────────── */
.comparative-section { margin-bottom: 40px; }

.comparative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.comparative-col {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparative-col--before { border-color: rgba(226,75,74,0.2); }
.comparative-col--after  { border-color: var(--roxo-border); }

.comparative-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparative-col--before .comparative-col-header {
  background: rgba(226,75,74,0.1);
  color: #F09595;
}

.comparative-col--after .comparative-col-header {
  background: var(--roxo-faint);
  color: var(--roxo-light);
}

.comparative-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.comparative-col--before .comparative-icon { background: rgba(226,75,74,0.2); color: #F09595; }
.comparative-col--after  .comparative-icon { background: var(--roxo-faint); color: var(--roxo-light); }

.comparative-list { list-style: none; padding: 8px 0; background: var(--bg2); }

.comparative-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}

.comparative-list li:last-child { border-bottom: none; }
.comparative-col--after .comparative-list li { color: var(--text); }

/* ── DOWNLOAD CARD ───────────────────────────────────────── */
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg2);
  border: 1px solid var(--roxo-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.download-card-icon {
  width: 52px; height: 52px;
  background: var(--roxo-faint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--roxo-light);
}

.download-card-body { flex: 1; min-width: 180px; }
.download-card-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.download-card-body p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.download-card-body strong { color: var(--roxo-light); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--roxo-faint);
  color: var(--roxo-light);
  border: 1px solid var(--roxo-border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.btn-download:hover   { background: var(--roxo); color: #fff; border-color: var(--roxo); }
.btn-download:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── DISCLAIMER ──────────────────────────────────────────── */
.disclaimer {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--text-faint);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── CTA CARD ────────────────────────────────────────────── */
.cta-card {
  background: var(--bg2);
  border: 1px solid var(--roxo-border);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 40px;
}

.cta-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── ERROR PAGE ──────────────────────────────────────────── */
.error-wrap {
  text-align: center;
  padding: 80px 24px;
}

.error-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.error-wrap p { color: var(--text-muted); margin-bottom: 28px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 16px 20px; }
  .container { padding: 28px 16px 60px; }
  .comparative-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 28px 20px; }
  .download-card { flex-direction: column; align-items: flex-start; padding: 20px; }
  .btn-download { width: 100%; justify-content: center; }
  .btn-primary  { width: 100%; }
}
