/* ── TDA AI Readiness Assessment — Styles ── */
:root {
  --accent: #00E87A;
  --accent-dark: #009950;
  --bg: #09090F;
  --bg-card: #15151E;
  --bg-secondary: #1A1A26;
  --border: #23233A;
  --text-primary: #F0F0F8;
  --text-secondary: #C8C8D8;
  --text-muted: #6B6B80;
  --white: #FFFFFF;
  --danger: #FF6B6B;
  --warning: #F59E0B;
  --radius: 12px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--white); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(9,9,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-badge {
  background: rgba(0,232,122,0.12);
  border: 1px solid rgba(0,232,122,0.3);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-back {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-back:hover { color: var(--text-primary); text-decoration: none; }

/* ── HERO ── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,232,122,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,232,122,0.1);
  border: 1px solid rgba(0,232,122,0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { max-width: 680px; margin: 0 auto 20px; }
.hero p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; color: var(--text-secondary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #09090F;
}
.btn-primary:hover { background: #00c96a; transform: translateY(-1px); text-decoration: none; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── CARDS / PANELS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-accent {
  background: rgba(0,232,122,0.05);
  border-color: rgba(0,232,122,0.2);
}

/* ── SECTION ── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ── DIMENSION BADGE ── */
.dim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.dim-1 { background: rgba(0,232,122,0.12); color: #00E87A; }
.dim-2 { background: rgba(99,102,241,0.12); color: #818CF8; }
.dim-3 { background: rgba(251,191,36,0.12); color: #FCD34D; }
.dim-4 { background: rgba(249,115,22,0.12); color: #FB923C; }
.dim-5 { background: rgba(236,72,153,0.12); color: #F472B6; }
.dim-6 { background: rgba(20,184,166,0.12); color: #2DD4BF; }

/* ── PROGRESS BAR ── */
.progress-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ── ASSESSMENT FORM ── */
.assess-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.step { display: none; }
.step.active { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.step-header .dim-badge { margin-bottom: 12px; }
.step-header h2 { margin-bottom: 8px; font-size: 1.4rem; }
.step-header p { font-size: 0.9rem; }

.question-block {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.question-block:focus-within { border-color: rgba(0,232,122,0.4); }
.question-block.answered { border-color: rgba(0,232,122,0.2); }

.question-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.5;
}
.options { display: flex; flex-direction: column; gap: 8px; }
.option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.option-label:hover {
  border-color: rgba(0,232,122,0.4);
  background: rgba(0,232,122,0.04);
  color: var(--text-primary);
}
.option-label input[type="radio"] { display: none; }
.option-label.selected {
  border-color: var(--accent);
  background: rgba(0,232,122,0.08);
  color: var(--white);
}
.option-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-label.selected .option-indicator {
  border-color: var(--accent);
  background: var(--accent);
}
.option-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #09090F;
  opacity: 0;
  transition: opacity var(--transition);
}
.option-label.selected .option-indicator::after { opacity: 1; }

.option-score {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  text-align: right;
}

/* ── FORM CONTROLS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input, .form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: #15151E; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── STEP NAV ── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.step-nav .btn { min-width: 120px; justify-content: center; }

/* ── RESULTS ── */
.results-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.score-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 24px;
}
.score-ring {
  width: 180px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-ring-track { fill: none; stroke: var(--border); stroke-width: 10; }
.score-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 502;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.34,1.2,0.64,1);
}
.score-ring-number {
  position: relative;
  z-index: 1;
  text-align: center;
}
.score-ring-number .num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.score-ring-number .denom {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tier-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.tier-0 { background: rgba(239,68,68,0.15); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }
.tier-1 { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }
.tier-2 { background: rgba(59,130,246,0.15); color: #93C5FD; border: 1px solid rgba(59,130,246,0.3); }
.tier-3 { background: rgba(0,232,122,0.12); color: var(--accent); border: 1px solid rgba(0,232,122,0.3); }
.tier-4 { background: rgba(168,85,247,0.15); color: #C4B5FD; border: 1px solid rgba(168,85,247,0.3); }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.dim-score-bar {
  margin-bottom: 20px;
}
.dim-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dim-score-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.dim-score-pts {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.dim-score-track {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.dim-score-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 1s cubic-bezier(0.34,1.2,0.64,1);
}
.dim-score-fill.low { background: #EF4444; }
.dim-score-fill.mid { background: #F59E0B; }
.dim-score-fill.high { background: var(--accent); }

/* ── ROADMAP ── */
.roadmap-section { margin-top: 48px; }
.roadmap-week {
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
}
.roadmap-week::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: -24px;
  width: 2px;
  background: var(--border);
}
.roadmap-week:last-child::before { display: none; }
.roadmap-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.roadmap-week h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.roadmap-week p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ── CHART WRAP ── */
.chart-wrap {
  position: relative;
  height: 300px;
  width: 100%;
}

/* ── PRINT ── */
.print-btn-wrap {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

@media print {
  .nav, .print-btn-wrap, .step-nav { display: none !important; }
  body { background: white; color: #111; }
  .card { border: 1px solid #ddd; }
  h1, h2, h3, h4 { color: #111; }
  p { color: #444; }
  .dim-score-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.feature-card h4 { margin-bottom: 6px; font-size: 0.95rem; }
.feature-card p { font-size: 0.82rem; }

/* ── FOOTER ── */
.assess-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.assess-footer a { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .assess-wrap { padding: 24px 16px 60px; }
  .hero { padding: 48px 0 40px; }
}
