/* ==========================================================================
   SkillSprout Design System
   Color palette: warm teal + amber accents on cream/white
   ========================================================================== */

:root {
  color-scheme: light;

  /* Foundations */
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #1c1917;
  --text-secondary: #57534e;
  --muted: #78716c;
  --border: #e7e5e4;
  --border-light: #f5f5f4;

  /* Brand */
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-bg: #f0fdfa;
  --accent-border: #99f6e4;
  --highlight: #f59e0b;
  --highlight-bg: #fffbeb;

  /* Buckets */
  --ready: #15803d;
  --ready-bg: #f0fdf4;
  --ready-border: #86efac;
  --trainable: #b45309;
  --trainable-bg: #fffbeb;
  --trainable-border: #fcd34d;
  --long: #b91c1c;
  --long-bg: #fef2f2;
  --long-border: #fca5a5;

  /* Spacing & Shapes */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

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

/* ==========================================================================
   HEADER / HERO
   ========================================================================== */
.site-header {
  background: linear-gradient(150deg, #0d9488 0%, #0f766e 40%, #115e59 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.75rem;
  text-align: center;
}

.header-content {
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.logo-icon { font-size: 1.3rem; }
.logo-text { font-size: 0.85rem; }

.hero-headline {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--accent-hover);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* ==========================================================================
   STEP PROGRESS BAR
   ========================================================================== */
.step-progress {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-progress-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.3s ease;
}

.step-node.active .step-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.step-node.completed .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.step-node.active .step-label {
  color: var(--accent);
}

.step-node.completed .step-label {
  color: var(--accent-hover);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 30px;
  max-width: 80px;
  margin: 0 0.25rem;
  margin-bottom: 1.2rem;
  transition: background 0.3s ease;
}

.step-connector.filled {
  background: var(--accent);
}

/* ==========================================================================
   HOW-IT-WORKS STRIP
   ========================================================================== */
.how-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem;
}

.how-strip-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 180px;
}

.how-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.how-step p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.how-divider {
  width: 1px;
  height: 2rem;
  background: var(--border);
  flex-shrink: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.layout {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: grid;
  gap: 1.25rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}

.guidance {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* ==========================================================================
   PERSONA PICKER
   ========================================================================== */
.persona-card {
  border-left: 4px solid var(--accent);
  background: linear-gradient(to right, var(--accent-bg), var(--card) 40%);
}

.persona-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.persona-btn {
  padding: 0.55rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
}

.persona-btn:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.persona-btn.active {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.persona-btn .persona-btn-role {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

.persona-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  line-height: 1.5;
}

.persona-description:empty {
  display: none;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
  margin-bottom: 0.5rem;
}

label {
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
}

select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  appearance: auto;
  transition: border-color 0.15s ease;
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ==========================================================================
   SKILL SLIDERS
   ========================================================================== */
.skills-card {
  border-top: 3px solid var(--highlight);
}

.skill-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--highlight-bg);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot-0 { background: #d6d3d1; }
.legend-dot-1 { background: #fdba74; }
.legend-dot-2 { background: #fb923c; }
.legend-dot-3 { background: #14b8a6; }
.legend-dot-4 { background: #0d9488; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
}

.skill-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: #fff;
  transition: border-color 0.15s ease;
}

.skill-item:has(input:focus) {
  border-color: var(--accent);
}

.skill-item label {
  text-transform: capitalize;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.skill-item input[type="range"] {
  width: 100%;
  margin: 0.25rem 0;
  accent-color: var(--accent);
}

.skill-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.skill-level output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.skill-level-label {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #f5f5f4;
  border-color: #d6d3d1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ==========================================================================
   RESULTS / BUCKETS
   ========================================================================== */
.results-card {
  border: 2px solid var(--accent-border);
  background: linear-gradient(to bottom, var(--accent-bg), var(--card) 15%);
}

.bucket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.bucket {
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.85rem;
}

.bucket-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.bucket-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.bucket-ready-card .bucket-icon { color: var(--ready); }
.bucket-trainable-card .bucket-icon { color: var(--trainable); }
.bucket-long-card .bucket-icon { color: var(--long); }

.bucket h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.bucket-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.bucket-ready-card {
  background: var(--ready-bg);
  border: 1px solid var(--ready-border);
}
.bucket-ready-card h3 { color: var(--ready); }

.bucket-trainable-card {
  background: var(--trainable-bg);
  border: 1px solid var(--trainable-border);
}
.bucket-trainable-card h3 { color: var(--trainable); }

.bucket-long-card {
  background: var(--long-bg);
  border: 1px solid var(--long-border);
}
.bucket-long-card h3 { color: var(--long); }

.result-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.result-list li {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.4;
}

.result-title {
  font-weight: 600;
}

.result-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.result-meta .match-pct { color: var(--ready); font-weight: 600; }
.result-meta .gap-pct { color: var(--long); font-weight: 600; }

.result-gaps {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-style: italic;
}

.badge {
  font-size: 0.65rem;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.badge-ready { background: var(--ready); }
.badge-trainable { background: var(--trainable); }
.badge-long { background: var(--long); }

/* Empty states */
.empty-state {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ==========================================================================
   QA TABLE
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.qa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.qa-table th,
.qa-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.qa-table th {
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.qa-table tbody tr:hover {
  background: #fafaf9;
}

/* ==========================================================================
   CTA CARD
   ========================================================================== */
.cta-card {
  background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
  border: none;
  color: #fff;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cta-content p {
  font-size: 0.88rem;
  opacity: 0.88;
  line-height: 1.5;
}

.btn-cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: #fff;
  color: var(--accent-hover);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ==========================================================================
   TECH / UNDER THE HOOD
   ========================================================================== */
.tech-card {
  border-left: 4px solid var(--border);
}

.tech-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.tech-toggle::-webkit-details-marker { display: none; }
.tech-toggle::marker { display: none; content: ""; }

.tech-toggle h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.toggle-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.tech-card[open] .toggle-hint::after { content: " ▲"; }
.tech-card:not([open]) .toggle-hint::after { content: " ▼"; }

.tech-body {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.tech-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: 0.5rem;
}

.tech-section p,
.tech-section li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-section ul {
  padding-left: 1.25rem;
  margin-top: 0.35rem;
}

.tech-section li {
  margin-bottom: 0.3rem;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.arch-item {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.arch-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.arch-item p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.footer-content p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: var(--border);
  margin: 0 0.35rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
  .site-header {
    padding: 2.25rem 1rem 2rem;
  }

  .hero-headline {
    font-size: 1.65rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .how-strip-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .how-divider {
    width: 2rem;
    height: 1px;
    align-self: center;
  }

  .bucket-grid {
    grid-template-columns: 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .persona-btn {
    min-width: 120px;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .step-circle {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .step-connector {
    min-width: 16px;
  }
}

/* ==========================================================================
   SLIDER TARGET MARKERS
   ========================================================================== */
.slider-wrap {
  position: relative;
}

.slider-wrap input[type="range"] {
  width: 100%;
  margin: 0.25rem 0;
  accent-color: var(--accent);
}

.target-marker {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  pointer-events: none;
  transition: left 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.target-marker.target-gap {
  background: var(--long);
  box-shadow: 0 0 6px rgba(185, 28, 28, 0.4);
}

.target-marker.target-gap::after {
  content: "\25BC";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--long);
}

.target-marker.target-met {
  background: var(--ready);
  opacity: 0.5;
}

/* ==========================================================================
   RADAR CHART
   ========================================================================== */
.radar-card {
  border-top: 3px solid var(--accent);
}

.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.radar-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.radar-grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 0.5;
}

.radar-axis {
  stroke: var(--border);
  stroke-width: 0.5;
  stroke-dasharray: 3 3;
}

.radar-label {
  font-size: 9px;
  fill: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
}

.radar-user {
  fill: rgba(13, 148, 136, 0.18);
  stroke: var(--accent);
  stroke-width: 2;
  transition: d 0.3s ease;
}

.radar-target {
  fill: rgba(245, 158, 11, 0.12);
  stroke: var(--highlight);
  stroke-width: 2;
  stroke-dasharray: 6 3;
}

.radar-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}

.radar-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.radar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(13, 148, 136, 0.3);
  border: 2px solid var(--accent);
}

.radar-legend-dot-target {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--highlight);
}

/* ==========================================================================
   PROGRESS RINGS
   ========================================================================== */
.progress-ring {
  flex-shrink: 0;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.progress-ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-ring-text {
  font-size: 11px;
  font-weight: 700;
  fill: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ==========================================================================
   EXPANDABLE RESULT CARDS
   ========================================================================== */
.result-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0;
  background: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  line-height: 1.4;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover {
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.result-item.result-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

.result-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  user-select: none;
}

.result-ring {
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.expand-icon {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.result-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0.75rem;
  border-top: 0 solid var(--border-light);
}

.result-details.open {
  max-height: 500px;
  padding: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.gap-breakdown h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gap-detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.gap-skill-name {
  width: 110px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--text);
}

.gap-skill-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.gap-skill-bar-current {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--accent);
  border-radius: 4px;
  z-index: 2;
  transition: width 0.4s ease;
}

.gap-skill-bar-needed {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--long);
  opacity: 0.2;
  border-radius: 4px;
}

.gap-skill-vals {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}

.gap-none {
  font-size: 0.82rem;
  color: var(--ready);
  font-weight: 500;
  padding: 0.25rem 0;
}

.training-tip {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--highlight-bg);
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.training-tip strong {
  color: var(--trainable);
}

.btn-compare {
  margin-top: 0.6rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-compare:hover {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================================
   QUICK WINS ADVISOR
   ========================================================================== */
.quickwins-card {
  border-left: 4px solid var(--highlight);
  background: linear-gradient(to right, var(--highlight-bg), var(--card) 30%);
}

.quick-win-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quick-win-item:hover {
  border-color: var(--highlight);
  transform: translateX(2px);
}

.quick-win-item.qw-top {
  border-color: var(--highlight);
  background: var(--highlight-bg);
}

.qw-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--highlight);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qw-top .qw-rank {
  background: var(--highlight);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.qw-body {
  flex: 1;
}

.qw-skill {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.qw-impact {
  font-size: 0.78rem;
  color: var(--muted);
}

.qw-unlock {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ready);
  background: var(--ready-bg);
  border: 1px solid var(--ready-border);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.quick-win-empty {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ==========================================================================
   BOOKMARK BUTTON
   ========================================================================== */
.btn-bookmark {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--border);
  padding: 0.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-bookmark:hover {
  color: var(--highlight);
  transform: scale(1.2);
}

.btn-bookmark.bookmarked {
  color: var(--highlight);
}

/* ==========================================================================
   SHORTLIST
   ========================================================================== */
.shortlist-card {
  border-left: 4px solid var(--highlight);
  background: linear-gradient(to right, var(--highlight-bg), var(--card) 20%);
}

.shortlist-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.shortlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s ease;
}

.shortlist-item:hover {
  border-color: var(--highlight);
}

.shortlist-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.shortlist-title {
  font-weight: 600;
  font-size: 0.88rem;
  display: block;
}

.shortlist-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   CONFETTI CELEBRATION
   ========================================================================== */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1000;
  animation: confettiFall 1s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(120px) translateX(var(--dx, 50px)) rotate(720deg) scale(0.3);
  }
}

/* ==========================================================================
   SHARE BUTTON
   ========================================================================== */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-share.copied {
  background: var(--ready-bg);
  border-color: var(--ready-border);
  color: var(--ready);
}

.share-icon {
  font-size: 0.9rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .bucket {
    animation: fadeUp 0.3s ease both;
  }

  .bucket:nth-child(2) { animation-delay: 0.08s; }
  .bucket:nth-child(3) { animation-delay: 0.16s; }

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

  .result-item {
    animation: fadeUp 0.25s ease both;
  }

  .quick-win-item {
    animation: slideIn 0.3s ease both;
  }

  .quick-win-item:nth-child(2) { animation-delay: 0.1s; }
  .quick-win-item:nth-child(3) { animation-delay: 0.2s; }

  @keyframes slideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
  }
}
