/* Avaliação de maturidade — landing syndara.pt */
:root {
  --maturity-accent: #01031a;
  --maturity-green: #8fb27d;
  --maturity-border: #e2e8f0;
}

.maturity-page-hero {
  background: linear-gradient(145deg, #01031a 0%, #1e293b 42%, #0f4c5c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.maturity-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(143, 178, 125, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(59, 130, 246, 0.15), transparent 50%);
  pointer-events: none;
}
.maturity-page-hero-inner {
  position: relative;
  z-index: 1;
}
.maturity-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}
.maturity-hero-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
.maturity-domains-section {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 45%, #ecfdf5 100%);
}
.maturity-domain-card {
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -12px rgba(1, 3, 26, 0.25);
  border-left: 4px solid var(--domain-accent, #01031a);
}
.maturity-domain-card h3 { color: var(--maturity-accent); }
.maturity-domain-card--emerald { --domain-accent: #059669; background: linear-gradient(135deg, #fff 0%, #ecfdf5 100%); }
.maturity-domain-card--blue { --domain-accent: #2563eb; background: linear-gradient(135deg, #fff 0%, #eff6ff 100%); }
.maturity-domain-card--violet { --domain-accent: #7c3aed; background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%); }
.maturity-domain-card--amber { --domain-accent: #d97706; background: linear-gradient(135deg, #fff 0%, #fffbeb 100%); }
.maturity-domain-card--rose { --domain-accent: #e11d48; background: linear-gradient(135deg, #fff 0%, #fff1f2 100%); }
.maturity-domain-card--teal { --domain-accent: #0d9488; background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%); }
.maturity-domain-card--slate { --domain-accent: #475569; background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); }

.maturity-quiz-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.maturity-quiz-shell {
  background: linear-gradient(160deg, #f1f5f9 0%, #fff 35%, #f0fdfa 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 28px 64px -32px rgba(1, 3, 26, 0.4);
}
@media (min-width: 640px) {
  .maturity-quiz-shell { padding: 2rem 2.25rem; }
}

.maturity-app {
  max-width: 48rem;
  margin: 0 auto;
}

.maturity-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.maturity-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #01031a, #0d9488, #8fb27d);
  width: 0%;
  transition: width 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .maturity-progress__bar { transition: none; }
}

.maturity-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--badge-fg, #0f172a);
  background: var(--badge-bg, #f1f5f9);
  border: 1px solid var(--badge-border, #e2e8f0);
}
.maturity-domain-badge--emerald { --badge-bg: #d1fae5; --badge-fg: #065f46; --badge-border: #6ee7b7; }
.maturity-domain-badge--blue { --badge-bg: #dbeafe; --badge-fg: #1e40af; --badge-border: #93c5fd; }
.maturity-domain-badge--violet { --badge-bg: #ede9fe; --badge-fg: #5b21b6; --badge-border: #c4b5fd; }
.maturity-domain-badge--amber { --badge-bg: #fef3c7; --badge-fg: #92400e; --badge-border: #fcd34d; }
.maturity-domain-badge--rose { --badge-bg: #ffe4e6; --badge-fg: #9f1239; --badge-border: #fda4af; }
.maturity-domain-badge--teal { --badge-bg: #ccfbf1; --badge-fg: #115e59; --badge-border: #5eead4; }
.maturity-domain-badge--slate { --badge-bg: #f1f5f9; --badge-fg: #334155; --badge-border: #cbd5e1; }

.maturity-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 2px solid var(--maturity-border);
  border-radius: 0.875rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}
.maturity-option:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 18px -10px rgba(1, 3, 26, 0.35);
}
.maturity-option.is-selected {
  border-color: var(--maturity-accent);
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
  box-shadow: 0 0 0 1px var(--maturity-accent), 0 10px 24px -16px rgba(1, 3, 26, 0.45);
}
.maturity-option:focus-visible {
  outline: 2px solid var(--maturity-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .maturity-option { transition: none; }
}

.maturity-option__marker {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-top: 0.15rem;
}
.maturity-option.is-selected .maturity-option__marker {
  border-color: #0d9488;
  background: #0d9488;
  box-shadow: inset 0 0 0 3px #fff;
}

.maturity-chart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.875rem;
}
.maturity-chart-bar-wrap {
  grid-column: 1 / -1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.maturity-chart-bar {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
  background: linear-gradient(90deg, #01031a, #0d9488);
}
.maturity-chart-bar--emerald { background: linear-gradient(90deg, #059669, #34d399); }
.maturity-chart-bar--blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.maturity-chart-bar--violet { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.maturity-chart-bar--amber { background: linear-gradient(90deg, #d97706, #fbbf24); }
.maturity-chart-bar--rose { background: linear-gradient(90deg, #e11d48, #fb7185); }
.maturity-chart-bar--teal { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.maturity-chart-bar--slate { background: linear-gradient(90deg, #475569, #94a3b8); }

.maturity-panel {
  border: 1px solid var(--maturity-border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 32px -20px rgba(1, 3, 26, 0.35);
}
.maturity-panel--intro {
  background: linear-gradient(135deg, #fff 0%, #ecfdf5 55%, #eff6ff 100%);
  border-color: #a7f3d0;
}
.maturity-panel--result {
  background: linear-gradient(160deg, #01031a 0%, #1e293b 55%, #134e4a 100%);
  color: #f8fafc;
  border: none;
}
.maturity-panel--result .text-damascode { color: #fff !important; }
.maturity-panel--result p { color: #e2e8f0; }
.maturity-score-ring {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.maturity-convert-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 50%, #f0fdfa 100%);
  border: 1px solid #e2e8f0;
}

.home-maturity-section {
  background: linear-gradient(165deg, #f8fafc 0%, #fff 42%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.home-maturity-diagnostic {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 50px -24px rgba(1, 3, 26, 0.35);
}
.home-maturity-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  margin-top: 0.75rem;
}
.home-maturity-bar span {
  flex: 1;
  border-radius: 4px;
  background: #e2e8f0;
}
.home-maturity-bar span:nth-child(1) { background: #059669; opacity: 0.95; }
.home-maturity-bar span:nth-child(2) { background: #2563eb; opacity: 0.85; }
.home-maturity-bar span:nth-child(3) { background: #7c3aed; opacity: 0.75; }
.home-maturity-bar span:nth-child(4) { background: #d97706; opacity: 0.55; }
.home-maturity-bar span:nth-child(5) { background: #e11d48; opacity: 0.45; }
.home-maturity-bar span:nth-child(6) { background: #0d9488; opacity: 0.4; }
.home-maturity-bar span:nth-child(7) { background: #cbd5e1; }
@media (prefers-reduced-motion: reduce) {
  .home-maturity-section * { animation: none !important; transition: none !important; }
}

@media print {
  body.maturity-print-mode #header,
  body.maturity-print-mode #footer,
  body.maturity-print-mode #cookie-consent-modal,
  body.maturity-print-mode #ral-info-modal,
  body.maturity-print-mode .maturity-page-hero,
  body.maturity-print-mode .maturity-domains-section,
  body.maturity-print-mode .maturity-quiz-section > h2,
  body.maturity-print-mode .maturity-quiz-section > p,
  body.maturity-print-mode .maturity-no-print {
    display: none !important;
  }
  body.maturity-print-mode main {
    padding: 0 !important;
  }
  body.maturity-print-mode .maturity-quiz-shell {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  body.maturity-print-mode .maturity-panel--result {
    background: #01031a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
