/* ============================================================================
   Diagnóstico GPR — estilos
   Paleta extraída do site oficial metodogpr.com.br (cores reais do CSS de produção)
   ========================================================================= */

:root {
  --navy: #052934;
  --navy-2: #0a3a48;
  --teal: #009688;
  --teal-dark: #00756a;
  --orange: #EF4E23;
  --bg: #FFFFFF;
  --bg-alt: #F3F5FA;
  --text: #191C1F;
  --text-2: #707780;
  --white: #FFFFFF;
  --border: #E1E5EB;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(5, 41, 52, 0.08);
  --max-w: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { line-height: 1.6; margin: 0 0 1em; }

.container { padding: 0 20px; }
.container.narrow { max-width: var(--max-w); margin: 0 auto; }
.container.wide { max-width: 980px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { font-size: 14px; letter-spacing: 0.06em; opacity: 0.85; }
.brand strong { color: var(--teal); }
.topbar-tag { font-size: 13px; color: #b9c4c8; }

/* ---------- screens ---------- */
.screen {
  display: none;
  padding: 56px 0 64px;
  min-height: calc(100vh - 56px);
}
.screen.active { display: block; }
.screen-dark {
  background: var(--navy);
  color: var(--white);
}
.screen-dark h1, .screen-dark h2, .screen-dark h3 { color: var(--white); }

/* ---------- hero ---------- */
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 18px;
}
.hero-quote {
  font-size: 21px;
  font-style: italic;
  font-weight: 500;
  color: #cfe9e5;
  border-left: 3px solid var(--teal);
  padding-left: 16px;
  margin: 0 0 28px;
}
.hero-title { font-size: 34px; margin-bottom: 18px; }
.hero-sub { font-size: 17px; color: #c7d2d5; max-width: 620px; }
.hero-foot { font-size: 13px; color: #92a3a8; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 20px rgba(0,150,136,0.35); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-accent { background: var(--orange); color: var(--white); box-shadow: 0 6px 20px rgba(239,78,35,0.35); }
.btn-accent:hover { opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); padding: 12px 22px; }
.screen-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- quiz ---------- */
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.stage-pill {
  background: var(--bg-alt);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.q-counter { font-size: 13px; color: var(--text-2); font-weight: 600; }

.progress-track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
  width: 0%;
  transition: width 0.3s ease;
}

.q-card { animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.q-text { font-size: 23px; margin-bottom: 16px; }
.q-evidence {
  background: var(--bg-alt);
  border-left: 3px solid var(--orange);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  margin: 0 0 14px;
}
.q-evidence strong { color: var(--orange); }
.q-instruction { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }

.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.q-option:hover { border-color: var(--teal); background: #f4fbfa; }
.q-option.selected { border-color: var(--teal); background: #eafaf7; }
.q-option-label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.q-option-scene { font-size: 13.5px; color: var(--text-2); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.quiz-nav-hint { font-size: 13px; color: var(--text-2); }

/* ---------- loading ---------- */
.spinner {
  width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 17px; color: #cfe9e5; }

/* ---------- score / mandala ---------- */
.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 14px;
}
.score-badge-sm { background: transparent; border: 1.5px solid var(--border); padding: 6px 16px; }
.score-number { font-size: 26px; font-weight: 800; color: var(--orange); }
.score-of { font-size: 13px; color: var(--text-2); font-weight: 600; }

.level-name { font-size: 28px; color: var(--navy); }
.level-tagline { font-size: 16px; color: var(--text-2); max-width: 540px; margin: 0 auto 24px; }

.mandala { width: 100%; max-width: 320px; height: auto; margin: 8px auto 20px; display: block; }
.mandala-round { max-width: 420px; filter: drop-shadow(0 4px 10px rgba(5, 41, 52, 0.18)); }
.radar-dot { cursor: pointer; transition: r 0.1s ease; }
.radar-dot:hover { r: 7; }
.mandala-hover { cursor: pointer; transition: opacity 0.15s ease; }
.mandala-hover:hover { opacity: 1 !important; }

.mandala-caption { font-size: 14px; color: var(--text-2); max-width: 480px; margin: 0 auto 28px; }

/* ---------- gatilho mental antes da captura (Tela 4) ---------- */
.next-step-box {
  background: #fff4f0;
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 28px;
}
.next-step-eyebrow { font-size: 12px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 10px; }
.next-step-text { font-size: 14.5px; color: var(--text); margin: 0 0 10px; }
.next-step-text:last-child { margin-bottom: 0; }

/* ---------- floating chart tooltip ---------- */
.chart-tooltip {
  position: fixed;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.1s ease;
  white-space: nowrap;
  max-width: 260px;
}
.chart-tooltip.visible { opacity: 1; }

/* ---------- result dashboard ---------- */
.result-view { display: none; }
.result-view.active { display: block; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 28px 0;
}
@media (min-width: 760px) {
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
}

.dash-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.dash-card-wide { margin: 28px 0 36px; text-align: center; }
.dash-card-title { font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.dash-card-hint { font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dash-card-head .dash-card-title { margin-bottom: 0; }

.dash-card-journey {
  display: flex;
  flex-direction: column;
  padding: 22px 0 0;
  overflow: hidden;
}
.dash-card-journey .dash-card-head { padding: 0 22px; margin-bottom: 0; }
.dash-card-journey #maturity-ladder { flex: 1; display: flex; }

.info-btn {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--navy); background: transparent; color: var(--navy);
  font-style: italic; font-weight: 800; font-size: 13px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.info-btn:hover { background: var(--navy); color: var(--white); }

/* stage list */
.stage-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stage-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color 0.15s ease;
}
.stage-item:hover { border-color: var(--teal); }
.stage-item-name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.stage-item-score { font-size: 13px; font-weight: 700; color: var(--teal); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.stage-item-arrow { color: var(--text-2); font-size: 15px; }

/* jornada de maturidade — imagem fixa com indicador de posição atual */
.journey-image-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.journey-image-inner { position: relative; width: 100%; line-height: 0; }

.journey-image { display: block; width: 100%; height: auto; }

.journey-image-pin {
  position: absolute;
  transform: translate(-50%, -130%);
  background: var(--navy);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(5, 41, 52, 0.3);
}
.journey-image-pin::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 41, 52, 0.55);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px 26px;
  max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative;
}
.modal-box h3 { font-size: 18px; color: var(--navy); padding-right: 20px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--text-2); line-height: 1;
}
.modal-close:hover { color: var(--navy); }
.modal-levels-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.modal-level-item { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.modal-level-item:last-child { border-bottom: none; padding-bottom: 0; }
.modal-level-item.current { background: #eafaf7; border-radius: var(--radius-sm); padding: 12px; border-bottom: none; }
.modal-level-name { font-size: 14.5px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.modal-level-tagline { font-size: 13px; color: var(--text-2); margin: 0; }

/* ---------- stage detail view ---------- */
.back-link {
  background: none; border: none; color: var(--teal); font-weight: 700; font-size: 14px;
  cursor: pointer; padding: 0; margin-bottom: 24px; font-family: inherit;
}
.back-link:hover { color: var(--teal-dark); }

.stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.stage-tab {
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-2);
  font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.stage-tab:hover { border-color: var(--teal); }
.stage-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.stage-detail-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.stage-detail-head h2 { font-size: 22px; color: var(--navy); margin: 0; }

.stage-detail-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin-bottom: 36px; }
@media (min-width: 760px) { .stage-detail-grid { grid-template-columns: 300px 1fr; } }

.stage-bars { display: flex; flex-direction: column; gap: 12px; }
.stage-bar-row { display: flex; flex-direction: column; gap: 5px; }
.stage-bar-label { font-size: 12.5px; color: var(--text-2); display: flex; justify-content: space-between; font-weight: 600; }
.stage-bar-track { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.stage-bar-fill { height: 100%; background: var(--teal); border-radius: 999px; }

.stage-answers { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 14px; }
.stage-answer-item { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 16px; }
.stage-answer-q { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.stage-answer-a { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 10px; }
.stage-answer-pts { font-size: 12px; font-weight: 800; color: var(--teal); white-space: nowrap; }
.stage-answer-scene { font-size: 13px; color: var(--text-2); margin: 0; }

/* ---------- capture ---------- */
.capture-title { font-size: 26px; margin-bottom: 18px; }
.capture-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capture-bullets li {
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  color: #d6e4e6;
}
.capture-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}
.capture-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.capture-form label { font-size: 13px; font-weight: 600; color: #cfe9e5; display: flex; flex-direction: column; gap: 6px; }
.capture-form input {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.capture-form input::placeholder { color: #6f8589; }
.capture-form input:focus { outline: none; border-color: var(--teal); }
.capture-form .btn { margin-top: 6px; align-self: flex-start; }
.capture-privacy { font-size: 12px; color: #8aa0a4; margin-top: 16px; max-width: 440px; }

/* ---------- result ---------- */
.result-header { text-align: center; margin-bottom: 8px; }
.level-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--teal);
  padding-left: 16px;
  margin: 28px 0;
}
.result-body p { font-size: 15.5px; }
.result-note {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-2);
  margin: 20px 0;
}
.result-note:empty { display: none; }
.result-subhead { font-size: 18px; margin-top: 32px; color: var(--navy); }
.result-signs { padding-left: 20px; }
.result-signs li { margin-bottom: 8px; font-size: 15px; }

.priority-box {
  background: #fff4f0;
  border: 1.5px solid #fbd9cc;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.priority-box .result-subhead { margin-top: 0; color: var(--orange); }
.priority-box p { margin: 0; font-size: 15px; }

.result-actions { padding-left: 22px; display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.result-actions li { font-size: 15px; }
.result-actions strong { display: block; color: var(--navy); margin-bottom: 3px; font-size: 15.5px; }

.no-print { text-align: center; margin: 36px 0 0; }

/* ---------- cta band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: 56px 0; margin-top: 48px; }
.cta-roma { font-size: 19px; font-style: italic; color: var(--teal); margin-bottom: 14px; }
.cta-title { font-size: 24px; max-width: 560px; margin: 0 auto 14px; }
.cta-body { color: #c7d2d5; max-width: 540px; margin: 0 auto 26px; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { padding: 28px 0; color: var(--text-2); font-size: 13px; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .hero-title { font-size: 42px; }
  .q-text { font-size: 26px; }
  .level-name { font-size: 34px; }
  .capture-title { font-size: 30px; }
  .cta-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .screen { padding: 40px 0 48px; }
  .hero-title { font-size: 28px; }
  .btn-lg { width: 100%; text-align: center; padding: 15px 20px; }
  .quiz-nav { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- print ---------- */
@media print {
  .topbar, .site-footer, .cta-band, .no-print, #screen-hero, #screen-quiz, #screen-loading, #screen-mandala, #screen-capture,
  #result-stage-detail, .modal-overlay, .chart-tooltip, .info-btn, .dash-card-hint { display: none !important; }
  body { background: var(--white); }
  .screen { padding: 0; min-height: 0; }
}
