﻿/* ===================================================================
   ProgresLab AI Quiz — Design System
   Mobile-first | Dark theme | Glassmorphism
   Based on ProgresLab brand tokens
   =================================================================== */

/*
 * Fonts loaded via Google Fonts CDN (linked in index.html).
 * For production: self-host WOFF2 files for better performance.
 * Fallback: system-ui / Georgia if fonts don't load.
 */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand */
  --primary: #0a3c1b;
  --primary-light: #0f5a29;
  --primary-dark: #062a12;
  --accent: #1ed760;
  --accent-hover: #1db954;
  --gold: #d4af37;

  /* Neutrals */
  --bg-dark: #050505;
  --bg-card: #0d0d0d;
  --bg-section: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #717171;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);

  /* Layout */
  --container-max: 720px;
  --border-radius: 16px;
  --border-radius-sm: 10px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(30, 215, 96, 0.15);

  /* Tier colors */
  --tier-start: #EF4444;
  --tier-experimenter: #F97316;
  --tier-practitioner: #EAB308;
  --tier-expert: #22C55E;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 0; left: 0;
  width: auto; height: auto;
  margin: 0; padding: 1rem 2rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  z-index: 9999;
}

.text-accent { color: var(--accent); }
.full-width { width: 100%; }

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  min-height: 48px;
  min-width: 48px;
  text-align: center;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(10, 60, 27, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(30, 215, 96, 0.05);
}

.btn-outline:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

/* Sound icon toggle */
.icon-sound-on {
  display: none;
}

/* ---------- Spinner ---------- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Screens ---------- */
.screen {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
  position: relative;
  isolation: isolate;
}

.screen--active {
  display: block;
}

.screen::before,
.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen::before {
  inset: -2%;
  background:
    linear-gradient(180deg, rgba(4, 7, 5, 0.18) 0%, rgba(5, 5, 5, 0.42) 56%, rgba(5, 5, 5, 0.76) 100%),
    url('/assets/img/hero-bg-vertical.webp') center center / cover no-repeat;
  filter: brightness(0.33) saturate(0.86);
  transform: scale(1.02);
  z-index: 0;
}

.screen::after {
  background:
    radial-gradient(circle at 50% 34%, rgba(30, 215, 96, 0.14) 0%, rgba(30, 215, 96, 0.05) 18%, rgba(30, 215, 96, 0) 42%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.42) 48%, rgba(5, 5, 5, 0.84) 100%);
  z-index: 0;
}

.screen > * {
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   HERO SCREEN
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: -2%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 18%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(3, 6, 4, 0.08) 0%, rgba(5, 5, 5, 0.22) 58%, rgba(5, 5, 5, 0.5) 100%);
  transform: scale(1.02);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 38%, rgba(30, 215, 96, 0.16) 0%, rgba(30, 215, 96, 0.08) 18%, rgba(5, 5, 5, 0) 42%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.58) 50%, rgba(5, 5, 5, 0.88) 100%);
}

.hero__glow {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.1) 0%, rgba(30, 215, 96, 0.04) 28%, transparent 68%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 1.25rem;
}

.hero__logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero__logo a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero__logo a:focus-visible {
  outline: 2px solid rgba(30, 215, 96, 0.9);
  outline-offset: 6px;
  border-radius: 12px;
}

.hero__logo img {
  height: 100px;
  width: auto;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  max-width: 600px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.hero__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: left;
  margin: 0.5rem 0;
}

.hero__benefits li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero__benefits li svg {
  flex-shrink: 0;
}

.hero__time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__microcopy {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 0.6rem;
  line-height: 1.7;
}

.hero__quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.88rem;
  margin-top: 1rem;
  align-items: center;
}

.hero__quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #dce4df;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  min-height: 40px;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.hero__quick-links a:hover {
  color: var(--text-primary);
  border-color: rgba(30, 215, 96, 0.58);
  background: linear-gradient(145deg, rgba(30, 215, 96, 0.24), rgba(30, 215, 96, 0.08));
  transform: translateY(-1px);
}

.hero__quick-links a:focus-visible {
  outline: none;
  border-color: rgba(30, 215, 96, 0.86);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.24);
}

.landing-sections {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2.3rem 1.35rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.landing-intro {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(8, 20, 13, 0.88), rgba(8, 14, 11, 0.68)),
    radial-gradient(circle at 85% 18%, rgba(30, 215, 96, 0.18), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: clamp(1.3rem, 2.6vw, 2.1rem);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.24);
}

.landing-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.1), transparent 32%);
  pointer-events: none;
}

.landing-intro__eyebrow {
  margin: 0;
  color: rgba(30, 215, 96, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 700;
}

.landing-intro__title {
  margin: 0.55rem 0 0.72rem;
  font-size: clamp(1.36rem, 3vw, 2.25rem);
  max-width: 20ch;
}

.landing-intro__lead {
  margin: 0;
  max-width: 82ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.82;
}

.landing-signals {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.landing-signal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.78rem 0.86rem;
}

.landing-signal__value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
}

.landing-signal__label {
  margin: 0.32rem 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.landing-section {
  display: grid;
  gap: 1.1rem;
}

.landing-section--split {
  grid-template-columns: 1fr;
}

.landing-section__head {
  padding: 0.35rem 0.15rem;
}

.landing-section__eyebrow {
  margin: 0;
  color: rgba(30, 215, 96, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.landing-section__head h2 {
  margin: 0.46rem 0 0.58rem;
  font-size: clamp(1.32rem, 2.8vw, 2.08rem);
  max-width: 22ch;
}

.landing-section__head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.84;
  max-width: 78ch;
}

.landing-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(8, 13, 10, 0.92), rgba(11, 13, 12, 0.78)),
    radial-gradient(circle at 12% 14%, rgba(30, 215, 96, 0.13) 0%, transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: clamp(1.2rem, 2.25vw, 1.72rem);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.landing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.8), rgba(30, 215, 96, 0));
}

.landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 215, 96, 0.34);
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.3);
}

.landing-card h2 {
  margin-bottom: 0.74rem;
  font-size: clamp(1.33rem, 2.6vw, 1.96rem);
  letter-spacing: 0.01em;
  max-width: 24ch;
}

.landing-card h3 {
  margin: 0;
  font-family: 'Lexend', sans-serif;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.landing-card p {
  margin: 0.82rem 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.86;
  text-wrap: pretty;
  max-width: 72ch;
}

.landing-inline-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 215, 96, 0.4);
  background: rgba(30, 215, 96, 0.1);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
}

.landing-inline-cta:hover {
  color: var(--text-primary);
  border-color: rgba(30, 215, 96, 0.62);
}

.landing-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.72rem;
}

.landing-checklist li {
  position: relative;
  padding: 0.82rem 0.92rem 0.82rem 1.94rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.landing-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0.72rem;
  top: 0.68rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.landing-role-grid {
  display: grid;
  gap: 0.86rem;
  grid-template-columns: 1fr;
}

.landing-role-card {
  padding: 1rem 1.02rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.landing-role-card h3 {
  margin: 0;
  font-size: 0.96rem;
  font-family: 'Lexend', sans-serif;
}

.landing-role-card p {
  margin: 0.56rem 0 0;
  font-size: 0.95rem;
  line-height: 1.76;
}

.landing-timeline {
  list-style: none;
  padding-left: 0;
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.62rem;
  counter-reset: timeline;
}

.landing-timeline li {
  counter-increment: timeline;
  position: relative;
  padding: 0.86rem 0.9rem 0.86rem 2.48rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.landing-timeline li::before {
  content: counter(timeline);
  position: absolute;
  left: 0.66rem;
  top: 0.74rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(30, 215, 96, 0.45);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-timeline__title {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.landing-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-faq details {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1rem;
}

.landing-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.54rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq summary::before {
  content: '+';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  color: var(--accent);
  flex-shrink: 0;
}

.landing-faq details[open] summary::before {
  content: '−';
}

.landing-faq details p {
  margin-top: 0.72rem;
  padding-left: 1.54rem;
  line-height: 1.76;
}

.landing-links {
  list-style: none;
  padding-left: 0;
  margin-top: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 0.54rem;
}

.landing-links li a {
  display: block;
  color: var(--text-primary);
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.86rem 0.94rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.landing-links li a:hover {
  border-color: rgba(30, 215, 96, 0.45);
  background: rgba(30, 215, 96, 0.08);
  transform: translateX(2px);
}

@media (min-width: 760px) {
  .landing-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .landing-section--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .landing-card--timeline {
    align-self: start;
  }

  .landing-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===================================================================
   QUIZ SCREEN
   =================================================================== */
.quiz {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.quiz__header {
  margin-bottom: 2rem;
}

.quiz__progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.quiz__progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz__progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question area */
.quiz__question-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz__question {
  animation: slideIn 0.35s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz__question-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(30, 215, 96, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.quiz__question-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

/* Answer cards */
.quiz__answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.answer-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
  min-height: 56px;
  width: 100%;
}

.answer-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.answer-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.answer-card--selected {
  background: rgba(30, 215, 96, 0.08);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.1);
}

.answer-card__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--glass-border-hover);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-base);
}

.answer-card--selected .answer-card__marker {
  border-color: var(--accent);
  background: var(--accent);
}

.answer-card--selected .answer-card__marker::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.answer-card__text {
  flex: 1;
}

/* Custom input for "Inna branża" */
.answer-custom-input {
  margin-top: 0.75rem;
  width: 100%;
}

.answer-custom-input input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.answer-custom-input input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Navigation */
.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

/* ===================================================================
   RESULT SCREEN
   =================================================================== */
.result {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.result__card {
  width: 100%;
  max-width: 680px;
  text-align: center;
  padding: 2.75rem 1.5rem 2.5rem;
}

.result__title {
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  margin-bottom: 1.75rem;
}

/* Gauge */
.result__gauge-wrap {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 500px;
}

.result__gauge-shell {
  position: relative;
  padding: 0 0.2rem;
}

.result__gauge-shell::before {
  content: '';
  position: absolute;
  inset: 9% 10% 2%;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 32%, rgba(255, 255, 255, 0) 66%);
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
}

.result__gauge {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.result__gauge-meta {
  margin-top: 1.05rem;
  text-align: center;
}

.result__gauge-title {
  color: rgba(255,255,255,0.94);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.result__gauge-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.result__gauge-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  color: rgba(255,255,255,0.42);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.result__gauge-label.is-active {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.result__gauge-label[data-tier="start"].is-active {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

.result__gauge-label[data-tier="experimenter"].is-active {
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.08));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

.result__gauge-label[data-tier="practitioner"].is-active {
  border-color: rgba(234, 179, 8, 0.34);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.18), rgba(234, 179, 8, 0.08));
  box-shadow: 0 12px 24px rgba(234, 179, 8, 0.12);
}

.result__gauge-label[data-tier="expert"].is-active {
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08));
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.gauge-track {
  stroke: rgba(255,255,255,0.075);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.38));
}

.gauge-range {
  stroke: transparent;
  opacity: 0;
}

.gauge-range.is-active {
  opacity: 0;
}

.gauge-ring {
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.05));
}

.gauge-needle {
  will-change: transform;
}

.gauge-needle__glow {
  opacity: 0.8;
}

.gauge-needle__line {
  stroke: url(#gauge-needle-gradient);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 3px 14px rgba(255,255,255,0.14));
}

.gauge-needle__tip {
  fill: rgba(255,255,255,0.98);
  filter: drop-shadow(0 2px 10px rgba(255,255,255,0.14));
}

.gauge-needle__tail {
  stroke: rgba(255,255,255,0.44);
  stroke-width: 4;
  stroke-linecap: round;
}

.gauge-needle__hub-shadow {
  fill: rgba(0,0,0,0.34);
  filter: blur(6px);
}

.gauge-needle__hub {
  fill: rgba(8, 12, 20, 0.96);
  stroke: rgba(255,255,255,0.84);
  stroke-width: 2.25;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.42));
}

.gauge-needle__dot {
  fill: rgba(255,255,255,0.98);
}

/* Score */
.result__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.result__score-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.1rem, 8vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
}

.result__score-max {
  font-size: 1.35rem;
  color: var(--text-muted);
}

/* Tier badge */
.result__tier-badge {
  display: inline-block;
  padding: 0.375rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

/* Description */
.result__description {
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.result__weakest {
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--tier-experimenter);
  line-height: 1.7;
}

/* Recommendations */
.result__recommendations {
  text-align: left;
  margin-bottom: 2rem;
}

.result__recommendations h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.result__recommendations ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result__recommendations li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.result__cta {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: left;
}

.result__cta-title {
  font-family: 'Lexend', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result__cta-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.result__brand {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.result__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.94;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.result__brand-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.result__brand-logo img {
  width: 168px;
  height: auto;
}

.result__brand-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.result__brand-link:hover {
  color: var(--text-primary);
}

/* ===================================================================
   FORM ELEMENTS
   =================================================================== */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.1);
}

.form-input--error {
  border-color: var(--tier-start);
}

.form-error {
  font-size: 0.8rem;
  color: var(--tier-start);
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.form-global-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--border-radius-sm);
  color: var(--tier-start);
  font-size: 0.85rem;
  text-align: center;
}

/* Checkboxes */
.form-group--checkbox {
  margin-bottom: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--glass-border-hover);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-mark {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.required-star {
  color: var(--tier-start);
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.form-privacy a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ===================================================================
   SUCCESS SCREEN
   =================================================================== */
.success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.success__card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: 3rem 2rem;
}

.success__icon {
  margin-bottom: 1.5rem;
}

.success__icon svg {
  margin: 0 auto;
}

.success__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.success__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.success__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* ===================================================================
   QUIZ FOOTER
   =================================================================== */
.quiz-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.quiz-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.25rem 1.25rem 1.4rem;
}

.quiz-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.quiz-footer__logo-link img {
  width: 140px;
  height: auto;
  opacity: 0.92;
}

.quiz-footer__site-link {
  color: var(--text-secondary);
  font-size: 0.86rem;
  text-decoration: none;
}

.quiz-footer__site-link:hover {
  color: var(--accent);
}

.quiz-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-footer__links a {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.quiz-footer__links a:hover {
  color: var(--accent);
}

.quiz-footer__copy {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: right;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .screen::before {
    background-position: center top;
    filter: brightness(0.29) saturate(0.88);
  }

  .screen::after {
    background:
      radial-gradient(circle at 50% 28%, rgba(30, 215, 96, 0.18) 0%, rgba(30, 215, 96, 0.06) 18%, rgba(30, 215, 96, 0) 42%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.14) 0%, rgba(5, 5, 5, 0.36) 44%, rgba(5, 5, 5, 0.84) 100%);
  }

  .glass-card {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .hero {
    align-items: flex-start;
  }

  .hero__content {
    min-height: 100vh;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem 2.5rem;
  }

  .hero__logo img {
    height: 76px;
  }

  .hero__title {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    max-width: 11ch;
  }

  .hero__subtitle {
    font-size: 0.98rem;
    max-width: 30ch;
    line-height: 1.6;
  }

  .hero__benefits {
    width: 100%;
    max-width: 360px;
    gap: 0.7rem;
    margin: 0.25rem 0;
  }

  .hero__benefits li {
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .hero__time {
    font-size: 0.82rem;
  }

  .hero__microcopy {
    max-width: 34ch;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .hero__quick-links {
    max-width: 360px;
    gap: 0.76rem;
    margin-top: 0.95rem;
  }

  .hero__quick-links a {
    font-size: 0.78rem;
    padding: 0.64rem 0.9rem;
  }

  .landing-sections {
    padding: 1rem 0.2rem 2.9rem;
    gap: 0.9rem;
  }

  .landing-intro {
    border-radius: 14px;
    padding: 1rem 0.9rem;
  }

  .landing-intro__title {
    font-size: 1.24rem;
    max-width: 18ch;
  }

  .landing-intro__lead {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .landing-signals {
    margin-top: 0.85rem;
  }

  .landing-card {
    border-radius: 14px;
    padding: 1.02rem 0.9rem;
  }

  .landing-card p,
  .landing-role-card p,
  .landing-checklist li,
  .landing-links li a,
  .landing-faq summary,
  .landing-timeline li {
    font-size: 0.9rem;
  }

  .landing-role-grid {
    grid-template-columns: 1fr;
  }

  .landing-links li a {
    padding: 0.68rem 0.76rem;
  }

  .quiz {
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .quiz__header {
    margin-bottom: 1.25rem;
  }

  .quiz__progress-text {
    font-size: 0.78rem;
  }

  .quiz__question-text {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.25;
    margin-bottom: 1.1rem;
  }

  .quiz__answers {
    gap: 0.65rem;
  }

  .answer-card {
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    font-size: 0.94rem;
    line-height: 1.45;
    border-radius: 14px;
    min-height: 0;
  }

  .answer-card__marker {
    width: 22px;
    height: 22px;
  }

  .quiz__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .quiz__nav .btn {
    width: 100%;
    padding-inline: 1rem;
  }

  .result {
    align-items: flex-start;
    padding: 1rem 0.75rem 1.5rem;
  }

  .result__card {
    padding: 1.6rem 1rem 1.4rem;
  }

  .result__title {
    font-size: clamp(1.95rem, 10vw, 2.7rem);
    margin-bottom: 1.15rem;
  }

  .result__gauge-wrap {
    margin-bottom: 1.5rem;
  }

  .result__gauge-title {
    font-size: 1.14rem;
  }

  .result__gauge-label {
    min-height: 2.35rem;
    font-size: 0.72rem;
  }

  .result__score-number {
    font-size: clamp(2.9rem, 16vw, 4rem);
  }

  .result__score-max {
    font-size: 1.2rem;
  }

  .result__description,
  .result__weakest,
  .result__recommendations li,
  .result__cta-subtitle,
  .form-input,
  .form-privacy,
  .success__text {
    font-size: 0.92rem;
  }

  .result__recommendations {
    margin-bottom: 1.5rem;
  }

  .result__cta {
    padding-top: 1.5rem;
  }

  .result__cta-title {
    font-size: 1.05rem;
  }

  .result__brand {
    margin-top: 1.5rem;
  }

  .result__brand-logo img {
    width: 148px;
  }

  .success {
    align-items: flex-start;
    padding: 1rem 0.75rem 1.5rem;
  }

  .success__card {
    padding: 2rem 1.1rem;
  }

  .success__title {
    font-size: 1.6rem;
  }

  .success__actions {
    width: 100%;
  }

  .success__actions .btn {
    width: 100%;
  }

  .quiz-footer__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem 1rem 1.2rem;
  }

  .quiz-footer__brand {
    justify-content: flex-start;
  }

  .quiz-footer__logo-link img {
    width: 126px;
  }

  .quiz-footer__links {
    justify-content: flex-start;
    gap: 0.65rem 0.95rem;
  }

  .quiz-footer__copy {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .result__gauge-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 0.875rem;
  }

  .hero__content {
    padding: 1.5rem 0.875rem 2rem;
  }

  .hero__title {
    font-size: clamp(1.95rem, 10.5vw, 2.6rem);
  }

  .hero__subtitle {
    font-size: 0.93rem;
  }

  .quiz__question-text {
    font-size: 1.35rem;
  }

  .answer-card {
    padding: 0.9rem 0.9rem;
    font-size: 0.9rem;
  }

  .quiz__nav {
    grid-template-columns: 1fr;
  }

  .result__gauge-label {
    font-size: 0.7rem;
  }
}

@media (min-width: 640px) {
  .hero__content {
    padding: 4rem 2rem;
  }

  .result__card {
    padding: 3rem 2.5rem;
  }

  .result__gauge-wrap {
    max-width: 520px;
  }

  .success__actions {
    flex-direction: row;
    justify-content: center;
  }

  .quiz__question-text {
    font-size: 1.4rem;
  }

  .answer-card {
    padding: 1.125rem 1.5rem;
  }
}

@media (min-width: 900px) {
  .hero__glow {
    width: 700px;
    height: 700px;
  }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .quiz__question {
    animation: none;
  }

  .screen {
    animation: none;
  }
}
