/* ═══════════════════════════════════════════════════════════
   ELVN:11 — Marketing Velocity Score Styles
   Uses tokens.css design system
═══════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────── */
.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

/* ── Score Hero ──────────────────────────────────────────── */
.score-hero {
  padding: 160px 0 var(--sp-48);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(78, 205, 196, 0.06) 0%, transparent 70%),
    var(--clr-bg);
}

.score-hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--sp-16);
}

.score-hero-sub {
  font-size: 1.05rem;
  color: var(--clr-white-55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.accent { color: var(--clr-accent); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
  margin-bottom: var(--sp-12);
}

/* ── Score Section ───────────────────────────────────────── */
.score-section {
  padding: var(--sp-64) 0 var(--sp-120);
  background: var(--clr-bg);
  min-height: 60vh;
}

/* ── Progress Bar ────────────────────────────────────────── */
.score-progress {
  margin-bottom: var(--sp-40);
}

.score-progress-track {
  width: 100%;
  height: 4px;
  background: var(--clr-white-08);
  border-radius: 2px;
  overflow: hidden;
}

.score-progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-progress-text {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--clr-white-45);
  margin-top: var(--sp-8);
  letter-spacing: 0.05em;
}

/* ── Steps ───────────────────────────────────────────────── */
.score-step {
  display: none;
}

.score-step.is-active {
  display: block;
  animation: stepFadeIn 0.4s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-cat-label {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-32);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--clr-white-08);
}

/* ── Form Fields ─────────────────────────────────────────── */
.score-field {
  margin-bottom: var(--sp-24);
}

.score-label {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--clr-white-70);
  margin-bottom: var(--sp-8);
}

.score-input {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  background: var(--clr-white-05);
  border: 1px solid var(--clr-white-10);
  border-radius: var(--radius-md);
  color: var(--clr-white);
  font-family: var(--font-base);
  font-size: 0.95rem;
  transition: border-color var(--ease-fast), background var(--ease-fast);
  outline: none;
}

.score-input:focus {
  border-color: var(--clr-accent);
  background: rgba(78, 205, 196, 0.05);
}

.score-input::placeholder {
  color: var(--clr-white-20);
}

.score-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.score-select option {
  background: var(--clr-navy-light);
  color: var(--clr-white);
}

.score-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-white-45);
  margin-top: var(--sp-4);
}

/* ── Questions ───────────────────────────────────────────── */
.score-question {
  border: none;
  padding: 0;
  margin: 0 0 var(--sp-40);
}

.q-text {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-white-90);
  margin-bottom: var(--sp-16);
  line-height: 1.5;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.q-option {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
  padding: var(--sp-12) var(--sp-16);
  background: var(--clr-white-05);
  border: 1px solid var(--clr-white-08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--ease-fast), border-color var(--ease-fast);
}

.q-option:hover {
  background: var(--clr-white-08);
  border-color: var(--clr-white-20);
}

.q-option.is-selected {
  background: rgba(78, 205, 196, 0.08);
  border-color: rgba(78, 205, 196, 0.35);
}

.q-option input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--clr-white-20);
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color var(--ease-fast), background var(--ease-fast);
}

.q-option input[type="radio"]:checked {
  border-color: var(--clr-accent);
  background: var(--clr-accent);
  box-shadow: inset 0 0 0 3px var(--clr-bg);
}

.q-option-label {
  font-size: 0.9rem;
  color: var(--clr-white-70);
  line-height: 1.5;
}

.q-option.is-selected .q-option-label {
  color: var(--clr-white);
}

/* ── Error ───────────────────────────────────────────────── */
.score-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: var(--sp-24);
  animation: stepFadeIn 0.3s ease;
}

/* ── Navigation Buttons ──────────────────────────────────── */
.score-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-32);
  border-top: 1px solid var(--clr-white-08);
  margin-top: var(--sp-16);
}

.score-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-32);
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: none;
  transition: background var(--ease-fast), transform var(--ease-fast);
  text-decoration: none;
}

.score-btn:active {
  transform: scale(0.97);
}

.score-btn--next {
  background: var(--clr-accent);
  color: #040d18;
  margin-left: auto;
}

.score-btn--next:hover {
  background: #3dbdb5;
}

.score-btn--final {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  padding: var(--sp-16) var(--sp-40);
  font-size: 1rem;
}

.score-btn--back {
  background: transparent;
  color: var(--clr-white-55);
  border: 1px solid var(--clr-white-10);
}

.score-btn--back:hover {
  background: var(--clr-white-05);
  color: var(--clr-white);
}

/* ═══════════════════════════════════════════════════════════
   RESULTS
═══════════════════════════════════════════════════════════ */
.score-results {
  animation: stepFadeIn 0.6s ease;
}

/* ── Overall Score Hero ──────────────────────────────────── */
.result-hero {
  text-align: center;
  padding: var(--sp-48) 0 var(--sp-64);
}

.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-white-45);
  margin-bottom: var(--sp-24);
}

.result-score-ring {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--sp-8);
}

.result-score-num {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-score-max {
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  color: var(--clr-white-20);
  margin-left: var(--sp-4);
}

.result-score-label {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-24);
}

.result-summary {
  font-size: 0.95rem;
  color: var(--clr-white-55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

.result-summary strong {
  color: var(--clr-white);
}

/* ── Category Bars ───────────────────────────────────────── */
.result-bars-section {
  padding-bottom: var(--sp-64);
}

.result-heading {
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  margin-bottom: var(--sp-32);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--clr-white-08);
}

.result-category {
  margin-bottom: var(--sp-40);
}

.result-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-12);
}

.result-cat-name {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--clr-white-90);
}

.result-cat-score {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}

.result-cat-score small {
  font-size: 0.7rem;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: var(--sp-4);
  opacity: 0.7;
}

.result-bar-track {
  width: 100%;
  height: 6px;
  background: var(--clr-white-08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--sp-16);
}

.result-bar-fill {
  height: 100%;
  width: 0;
  background: var(--bar-color);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-feedback {
  font-size: 0.88rem;
  color: var(--clr-white-55);
  line-height: 1.7;
  padding-left: var(--sp-16);
  border-left: 2px solid var(--clr-white-10);
}

/* ── Results CTA ─────────────────────────────────────────── */
.result-cta-section {
  text-align: center;
  padding: var(--sp-64) 0 var(--sp-32);
  border-top: 1px solid var(--clr-white-08);
}

.result-cta-title {
  font-size: 1.6rem;
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  margin-bottom: var(--sp-12);
}

.result-cta-sub {
  font-size: 0.95rem;
  color: var(--clr-white-55);
  margin-bottom: var(--sp-32);
}

/* ── Footer (shared) ─────────────────────────────────────── */
.footer {
  padding: var(--sp-48) 0;
  border-top: 1px solid var(--clr-white-05);
  background: var(--clr-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-16);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: var(--sp-24);
}

.footer-link {
  font-size: 0.8rem;
  color: var(--clr-white-45);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer-link:hover {
  color: var(--clr-accent);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--clr-white-20);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .score-hero {
    padding: 130px 0 var(--sp-32);
  }

  .score-nav {
    flex-direction: column-reverse;
    gap: var(--sp-12);
  }

  .score-btn--next {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .score-btn--back {
    width: 100%;
    justify-content: center;
  }

  .result-cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--sp-8);
  }
}
