/* ==========================================================================
   LeadershipHQ — Leadership Readiness Assessment
   Brand: #090B16 → #0F1524 gradient · accent #00E6BF
   Headings: Playfair Display · Body: DM Sans
   ========================================================================== */

:root {
  --bg-0: #090B16;
  --bg-1: #0F1524;
  --accent: #00E6BF;
  --accent-soft: rgba(0, 230, 191, 0.12);
  --accent-border: rgba(0, 230, 191, 0.35);
  --ink-on-accent: #06251f;

  --text: #EDF2F9;
  --text-dim: #9AA8BF;
  --text-faint: #6B7890;

  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);

  --danger: #FF7A8A;
  --radius: 18px;
  --radius-sm: 12px;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(0, 230, 191, 0.07), transparent 60%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Decorative glows */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-a { width: 420px; height: 420px; top: -160px; right: -120px; background: rgba(0, 230, 191, 0.10); }
.glow-b { width: 380px; height: 380px; bottom: -180px; left: -140px; background: rgba(38, 80, 190, 0.14); }

/* ---------------------------------------------------------------- Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(9, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { height: 34px; width: auto; display: block; }
.topbar-progress { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.topbar-progress[hidden] { display: none; }
.topbar-step {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00b89a, var(--accent));
  box-shadow: 0 0 12px rgba(0, 230, 191, 0.45);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------- Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 32px) 56px;
}

.screen { display: none; }
.screen.is-active { display: block; animation: screenIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ Typography */
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin: 0 0 26px;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--text-dim);
}
.hero-fineprint { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }

.screen-welcome { padding-top: clamp(12px, 6vh, 48px); }

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}
.meta-chips li {
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
}

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: var(--ink-on-accent);
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 230, 191, 0.28);
}
.btn-primary:hover { background: #2cf0d0; box-shadow: 0 10px 34px rgba(0, 230, 191, 0.4); }
.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-faint);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }

.btn-lg { padding: 16px 34px; font-size: 17px; }

/* --------------------------------------------------------- Dimension step */
.dim-head { margin-bottom: 26px; }
.dim-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.dim-name {
  margin: 6px 0 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.15;
}
.dim-sub { margin: 0; color: var(--text-dim); font-size: 15.5px; }

.q-card {
  margin: 0 0 14px;
  padding: 22px clamp(16px, 3vw, 26px) 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.q-card.is-answered { border-color: var(--accent-border); background: rgba(0, 230, 191, 0.045); }

.q-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.q-text {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0 0 16px;
  font-size: clamp(15.5px, 2.2vw, 17px);
  font-weight: 500;
  line-height: 1.45;
}
.q-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.q-card.is-answered .q-num {
  color: var(--ink-on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

/* The 0–10 scale */
.scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}
.scale label { position: relative; display: block; }
.scale input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s ease;
}
.scale label:hover span { border-color: var(--accent-border); color: var(--text); }
.scale input:checked + span {
  color: var(--ink-on-accent);
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 230, 191, 0.35);
  transform: translateY(-1px);
}
.scale input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-faint);
}

/* Step footer nav */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}
.step-nav .answered-count { font-size: 13.5px; color: var(--text-faint); }
.step-nav-buttons { display: flex; gap: 12px; }

/* ------------------------------------------------------------ Contact step */
.contact-card {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .span-2 { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.field label .opt { font-weight: 400; color: var(--text-faint); }
.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA8BF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field select option { color: #111; background: #fff; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 191, 0.15);
}
.field input::placeholder { color: var(--text-faint); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: var(--danger); }
.field.has-error .field-error { display: block; }

/* Role-level pills */
.pill-group { display: flex; flex-wrap: wrap; gap: 9px; }
.pill-group label { position: relative; margin: 0; }
.pill-group input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-group span {
  display: inline-block;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-group label:hover span { border-color: var(--accent-border); color: var(--text); }
.pill-group input:checked + span {
  color: var(--ink-on-accent);
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent);
}
.pill-group input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Consent checkbox */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent span { font-size: 14px; color: var(--text-dim); }
.consent a { color: var(--accent); text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.consent.has-error { border-color: var(--danger); }

.form-feedback {
  display: none;
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--danger);
  background: rgba(255, 122, 138, 0.08);
  border: 1px solid rgba(255, 122, 138, 0.3);
  border-radius: var(--radius-sm);
}
.form-feedback.is-visible { display: block; }

/* Honeypot — visually gone, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(6, 37, 31, 0.3);
  border-top-color: var(--ink-on-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- Results */
.results-hero { text-align: center; padding: clamp(8px, 3vh, 28px) 0 8px; }

.score-ring { position: relative; width: 190px; height: 190px; margin: 0 auto 22px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg { stroke: rgba(255, 255, 255, 0.08); }
.score-ring .ring-val {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(0, 230, 191, 0.5));
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-ring .ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring .ring-num strong {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}
.score-ring .ring-num small { margin-top: 2px; font-size: 13px; color: var(--text-dim); }

.tier-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 99px;
}
.tier-name {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
}
.tier-read { max-width: 560px; margin: 0 auto; color: var(--text-dim); font-size: clamp(16px, 2.2vw, 18px); }

.results-section { margin-top: clamp(36px, 6vh, 56px); }
.results-section > h2 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
}
.section-sub { margin: 0 0 22px; font-size: 15px; color: var(--text-dim); }

.chart-card {
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.chart-wrap { position: relative; max-width: 520px; margin: 0 auto; }

/* Dimension bars */
.dim-bars { display: grid; gap: 12px; }
.dim-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.dim-bar-name { font-size: 14.5px; font-weight: 500; }
.dim-bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dim-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #00b89a, var(--accent));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.dim-bar-meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.dim-bar-pct { font-weight: 700; font-size: 14.5px; min-width: 42px; text-align: right; }
.band-chip {
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 99px;
}
.band-strength   { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.band-solid      { color: #7DD3FC; background: rgba(125, 211, 252, 0.10); border: 1px solid rgba(125, 211, 252, 0.3); }
.band-developing { color: #FCD34D; background: rgba(252, 211, 77, 0.10); border: 1px solid rgba(252, 211, 77, 0.3); }
.band-focus      { color: var(--danger); background: rgba(255, 122, 138, 0.10); border: 1px solid rgba(255, 122, 138, 0.3); }

/* Strengths / focus cards */
.card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insight-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.insight-card.is-strength { border-color: var(--accent-border); background: rgba(0, 230, 191, 0.05); }
.insight-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.insight-card.is-strength .insight-kicker { color: var(--accent); }
.insight-pct { font-size: 15px; }
.insight-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
}
.insight-card p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.insight-services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.insight-services a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.insight-services a:hover { background: var(--accent); color: var(--ink-on-accent); }

/* Next steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.step-card:hover { border-color: var(--accent-border); background: var(--card-strong); transform: translateY(-3px); }
.step-card strong { font-size: 16.5px; margin-bottom: 6px; }
.step-card p { margin: 0 0 14px; font-size: 14px; color: var(--text-dim); flex: 1; }
.step-card .step-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Final CTA */
.cta-block {
  margin-top: clamp(40px, 7vh, 64px);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(0, 230, 191, 0.12), transparent 70%),
    var(--card);
}
.cta-block h2 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(26px, 4.5vw, 36px);
}
.cta-block p { max-width: 520px; margin: 0 auto 24px; color: var(--text-dim); }
.retake { margin-top: 26px; text-align: center; }
.retake button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-faint);
  text-decoration: underline;
  cursor: pointer;
}
.retake button:hover { color: var(--text-dim); }

/* -------------------------------------------------------------- Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 26px 16px 34px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--text-faint); text-decoration: none; }
.footer a:hover { color: var(--text-dim); }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 720px) {
  .card-pair, .steps-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .dim-bar-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name meta" "track track";
    row-gap: 9px;
  }
  .dim-bar-name { grid-area: name; }
  .dim-bar-track { grid-area: track; }
  .dim-bar-meta { grid-area: meta; }
}

@media (max-width: 480px) {
  .scale { gap: 4px; }
  .scale span { height: 42px; font-size: 13px; border-radius: 8px; }
  .topbar { gap: 14px; }
  .topbar-logo { height: 27px; }
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav-buttons { flex-direction: row; }
  .step-nav-buttons .btn { flex: 1; }
  .answered-count { text-align: center; }
  .score-ring { width: 160px; height: 160px; }
  .score-ring .ring-num strong { font-size: 42px; }
  .btn-lg { width: 100%; }
}
