/* SkillBridge — shared design system (UX Architect + UI Designer) */

:root {
  --green-50: #eafaf1;
  --green-500: #0a8f4a;
  --green-600: #087a3f;
  --green-700: #065e31;
  --blue-500: #1b4d8f;
  --blue-600: #143c70;
  --ink-900: #12181b;
  --ink-700: #3a4750;
  --ink-500: #66737b;
  --ink-300: #a9b3b8;
  --surface-0: #fffdf9;
  --surface-50: #faf7f0;
  --surface-100: #f2ede1;
  --border: #e8e1d2;
  --accent-gold: #d9a441;

  --radius-md: 12px;
  --radius-lg: 18px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --max-width: 1120px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #0f1416;
  --surface-50: #141a1d;
  --surface-100: #1b2226;
  --border: #2a3338;
  --ink-900: #f2f5f4;
  --ink-700: #cbd3d5;
  --ink-500: #93a0a5;
  --ink-300: #5c686d;
  --green-50: #0e2a1c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-0: #0f1416;
    --surface-50: #141a1d;
    --surface-100: #1b2226;
    --border: #2a3338;
    --ink-900: #f2f5f4;
    --ink-700: #cbd3d5;
    --ink-500: #93a0a5;
    --ink-300: #5c686d;
    --green-50: #0e2a1c;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--surface-50);
  color: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink-900);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--green-600);
  border-bottom-color: var(--green-500);
}
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--ink-700);
  width: 36px; height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-0);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink-900); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-600); }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
  padding: var(--space-5) 0 var(--space-4);
  background:
    radial-gradient(1200px 500px at 20% -10%, var(--green-50), transparent),
    radial-gradient(900px 420px at 88% 8%, color-mix(in srgb, var(--accent-gold) 12%, transparent), transparent),
    var(--surface-0);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-50);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-700);
  max-width: 46ch;
  margin: 0 0 var(--space-3);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.stat-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.25);
}
.stat-card .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-card .stat-row:last-child { border-bottom: none; }
.stat-card .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--green-600); }
.stat-card .stat-label { color: var(--ink-500); font-size: 0.88rem; }
.stat-card .note {
  margin-top: var(--space-2);
  font-size: 0.78rem;
  color: var(--ink-500);
  border-top: 1px dashed var(--border);
  padding-top: var(--space-1);
}

/* Sections */
section { padding: var(--space-5) 0; }
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.5rem; }
.section-head p { color: var(--ink-700); margin: 0; }
.alt { background: var(--surface-0); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(0,0,0,0.28);
}
.card h3 { margin: 0.6rem 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-700); font-size: 0.95rem; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--green-50), color-mix(in srgb, var(--accent-gold) 14%, var(--surface-0)));
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--ink-700);
  margin-right: 0.35rem;
}
.tag.green { background: var(--green-50); color: var(--green-700); }
.tag.blue { background: color-mix(in srgb, var(--blue-500) 12%, transparent); color: var(--blue-600); }
.tag.gold { background: color-mix(in srgb, var(--accent-gold) 18%, transparent); color: #8a611f; }
.tag.fail { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }

/* Opportunity / resource listing */
.listing {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
}
.listing-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: flex-start;
}
.listing h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.listing .org { color: var(--ink-500); font-size: 0.85rem; margin-bottom: 0.5rem; }
.listing p.desc { color: var(--ink-700); margin: 0.5rem 0; font-size: 0.95rem; }
.listing .meta { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-500); margin-top: 0.5rem; }
.listing-cta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
.listing-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.listing-cta:hover { background: var(--green-700); }
.listing-cta.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-700);
}
.listing-cta.secondary:hover { border-color: var(--green-500); color: var(--green-600); }
/* Path chooser (job seeker vs small business) */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.path-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.path-card:hover { border-color: var(--green-500); transform: translateY(-2px); }
.path-card .path-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.path-card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.path-card p { color: var(--ink-700); margin: 0 0 1rem; }
.path-card .path-cta { color: var(--green-600); font-weight: 700; font-size: 0.92rem; }
.path-card.business .path-cta { color: var(--blue-500); }
.path-card.business:hover { border-color: var(--blue-500); }

.mission-band {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.mission-band .eyebrow { margin-bottom: var(--space-2); }
.mission-band p { font-size: 1.2rem; line-height: 1.5; color: var(--ink-900); margin: 0; font-weight: 500; }

/* Upload / CV mining */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  background: var(--surface-0);
  cursor: pointer;
}
.upload-box:hover { border-color: var(--green-500); }
.upload-box .upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-box input[type="file"] { display: none; }
.or-divider { display: flex; align-items: center; gap: 0.8rem; margin: var(--space-3) 0; color: var(--ink-500); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.scan-status { display: none; align-items: center; gap: 0.7rem; padding: var(--space-2) var(--space-3); background: var(--green-50); border-radius: var(--radius-md); color: var(--green-700); font-weight: 600; font-size: 0.92rem; margin-top: var(--space-2); }
.scan-status.active { display: flex; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--green-500); border-top-color: transparent; animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.skill-tag { display: inline-block; background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: 0.82rem; padding: 0.3rem 0.8rem; border-radius: 999px; margin: 0.2rem; }
.match-card { background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); margin-bottom: var(--space-2); }
.match-card .match-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.match-score { font-weight: 800; color: var(--green-600); font-size: 1.1rem; }

.diagnostic-result { display: none; }
.diagnostic-result.active { display: block; }

.res-link {
  color: var(--green-600);
  font-weight: 700;
  text-decoration: none;
}
.res-link:hover { text-decoration: underline; }

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface-0);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-700);
}
.filter-chip.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.placeholder-banner {
  background: color-mix(in srgb, var(--accent-gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 40%, transparent);
  color: #6b4d16;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: 0.88rem;
  margin-bottom: var(--space-3);
}
:root[data-theme="dark"] .placeholder-banner { color: #f0d9a6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .placeholder-banner { color: #f0d9a6; }
}

.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--blue-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto var(--space-3); }
.cta-band .btn-primary { background: #fff; color: var(--green-700); }
.cta-band .btn-primary:hover { background: #f0f0f0; }

form.stack { display: grid; gap: var(--space-2); max-width: 520px; }
label { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.3rem; display: block; }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 0.95rem;
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-500); }

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer h4 { color: var(--ink-900); margin: 0 0 0.6rem; font-size: 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.4rem; }
.footer a { text-decoration: none; color: var(--ink-500); }
.footer a:hover { color: var(--green-600); }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
}

/* ============================================================================
   Business Owner track — assessment, directory, dashboard, kit
   Added for the SkillBridge business growth prototype (built from
   data/SkillBridge_Data_and_Intake.xlsx). Reuses the existing tokens above.
   ========================================================================= */

/* --- Progress + stepping --- */
.progress {
  height: 6px;
  background: var(--surface-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  transition: width 0.25s ease;
}

.assess-section {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.assess-step-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.assess-section h3 { margin: 0.3rem 0 0.2rem; font-size: 1.35rem; }
.assess-blurb { color: var(--ink-500); margin: 0 0 var(--space-3); font-size: 0.92rem; }

.assess-q { padding: var(--space-2) 0; border-top: 1px solid var(--border); }
.assess-q:first-of-type { border-top: none; }
.assess-q-text { font-weight: 600; margin-bottom: 0.7rem; font-size: 0.98rem; }
.assess-q-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 0.4rem;
}

.scale { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.scale-opt {
  flex: 1 1 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.4rem;
  text-align: center;
  cursor: pointer;
  background: var(--surface-0);
  display: block;
  margin: 0;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.scale-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale-num { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink-700); }
.scale-word { display: block; font-size: 0.72rem; color: var(--ink-500); }
.scale-opt:hover { border-color: var(--green-500); }
.scale-opt:has(input:checked) {
  background: var(--green-50);
  border-color: var(--green-500);
}
.scale-opt:has(input:checked) .scale-num { color: var(--green-700); }
.scale-opt:has(input:focus-visible) { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.chip-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-choice {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface-0);
  margin: 0;
}
.chip-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-choice:hover { border-color: var(--green-500); }
.chip-choice:has(input:checked) {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.chip-choice:has(input:focus-visible) { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.field-visibility {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--ink-500);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--surface-50);
  display: inline-block;
}
.field-visibility.is-private {
  background: color-mix(in srgb, var(--blue-500) 10%, transparent);
  color: var(--blue-600);
}
:root[data-theme="dark"] .field-visibility.is-private { color: #9dc0ef; }

.assess-nav {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-3);
}
.step-warning {
  margin-top: var(--space-2);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent-gold) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 40%, transparent);
  color: #6b4d16;
  font-size: 0.88rem;
}
:root[data-theme="dark"] .step-warning { color: #f0d9a6; }

.assess-foot {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
  color: var(--ink-500);
  font-size: 0.88rem;
}
.assess-foot h4 { margin: 0 0 0.4rem; color: var(--ink-900); font-size: 0.95rem; }
.assess-foot code {
  background: var(--surface-100);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  font-size: 0.85em;
}

.demo-bar {
  background: var(--surface-0);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
}
.demo-bar label { color: var(--ink-500); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.demo-bar select { max-width: 420px; }

/* --- Results --- */
.result-head { margin-bottom: var(--space-3); }
.result-eyebrow {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-600);
}
.result-head h2 { margin: 0.3rem 0 0.4rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.result-sub { color: var(--ink-700); margin: 0; max-width: 62ch; }

.result-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.result-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
.result-grid .result-card { margin-bottom: 0; }
.result-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 0.6rem;
}
.result-card h4 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.result-card p { color: var(--ink-700); font-size: 0.94rem; }
.result-primary { border-left: 4px solid var(--green-500); }
.result-constraint { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.result-reading { color: var(--ink-500); font-size: 0.9rem; }
.result-note { font-size: 0.8rem; color: var(--ink-500); }
.result-meta { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.3rem; }
.result-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

.score-ring {
  --pct: 0;
  width: 132px; height: 132px;
  border-radius: 50%;
  margin: 0.5rem auto;
  display: grid; place-items: center;
  background:
    conic-gradient(var(--green-500) calc(var(--pct) * 1%), var(--surface-100) 0);
}
.score-ring span {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--surface-0);
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; color: var(--ink-900);
}
.score-ring small { font-size: 0.7rem; color: var(--ink-500); font-weight: 600; }

.bars { display: grid; gap: 0.6rem; }
.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 40px;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
}
.bar-label { color: var(--ink-700); font-weight: 600; }
.bar-flag {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--green-600); color: #fff;
  padding: 0.1rem 0.4rem; border-radius: 999px; font-weight: 800;
}
.bar-track { background: var(--surface-100); height: 10px; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink-300); border-radius: 999px; }
.bar-primary .bar-fill { background: var(--green-500); }
.bar-val { text-align: right; font-weight: 700; color: var(--ink-500); }

.action-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; }
.action-list li { color: var(--ink-700); font-size: 0.96rem; }
.indicator-list { margin: 0 0 0.8rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.indicator-list li { color: var(--ink-700); font-size: 0.94rem; }
.ext-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.kit-picks { display: grid; gap: var(--space-2); }
.kit-pick { display: flex; gap: 0.8rem; align-items: flex-start; }
.kit-pick-n {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
}
.kit-pick p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--ink-500); }
.kit-pick-meta { font-size: 0.76rem; color: var(--ink-300); margin-top: 0.2rem; }

.gap-note {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent-gold) 14%, transparent);
  color: #6b4d16;
}
:root[data-theme="dark"] .gap-note { color: #f0d9a6; }

.band {
  display: inline-block;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.band-ready { background: var(--green-50); color: var(--green-700); }
.band-prepare { background: color-mix(in srgb, var(--accent-gold) 20%, transparent); color: #7a5718; }
.band-not { background: var(--surface-100); color: var(--ink-700); }
:root[data-theme="dark"] .band-prepare { color: #f0d9a6; }

.privacy-card {
  background: color-mix(in srgb, var(--blue-500) 7%, var(--surface-0));
  border: 1px solid color-mix(in srgb, var(--blue-500) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
.privacy-card h4 { margin: 0 0 var(--space-2); }
.privacy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.privacy-h { font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); margin-bottom: 0.4rem; }
.privacy-cols ul { margin: 0; padding-left: 1.1rem; }
.privacy-cols li { font-size: 0.88rem; color: var(--ink-700); margin-bottom: 0.3rem; }
.privacy-status {
  margin-top: var(--space-2); padding-top: var(--space-2);
  border-top: 1px dashed var(--border); font-size: 0.88rem; color: var(--ink-700);
}

/* --- Directory --- */
.dir-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: end;
  margin-bottom: var(--space-2);
}
.dir-count { color: var(--ink-500); font-size: 0.88rem; margin-bottom: var(--space-3); }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.biz-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}
.biz-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.biz-type { color: var(--ink-500); font-size: 0.82rem; margin-bottom: 0.6rem; }
.biz-summary { color: var(--ink-700); font-size: 0.92rem; margin: 0 0 0.8rem; flex-grow: 1; }
.biz-meta { font-size: 0.82rem; color: var(--ink-500); display: grid; gap: 0.25rem; margin-bottom: 0.8rem; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.8rem; }
.verify {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.verify-verified { background: var(--green-50); color: var(--green-700); }
.verify-basic { background: color-mix(in srgb, var(--blue-500) 12%, transparent); color: var(--blue-600); }
.verify-unverified { background: var(--surface-100); color: var(--ink-500); }
:root[data-theme="dark"] .verify-basic { color: #9dc0ef; }

/* --- Dashboard --- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-2); margin-bottom: var(--space-3); }
.kpi {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.kpi-num { font-size: 2rem; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.kpi-label { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.25rem; }
.kpi-sub { font-size: 0.75rem; color: var(--ink-300); margin-top: 0.4rem; }

.chart-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.chart-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.chart-card .chart-note { color: var(--ink-500); font-size: 0.84rem; margin: 0 0 var(--space-2); }
.hbars { display: grid; gap: 0.75rem; }
.hbar-row { display: grid; grid-template-columns: 150px 1fr 34px; gap: 0.7rem; align-items: center; font-size: 0.88rem; }
.hbar-label { color: var(--ink-700); }
.hbar-track { background: var(--surface-100); height: 20px; border-radius: 6px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 6px; }
.hbar-val { text-align: right; font-weight: 700; color: var(--ink-700); }
.legend { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--space-2); font-size: 0.8rem; color: var(--ink-500); }
.legend-item { display: flex; align-items: center; gap: 0.35rem; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data th {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-500); font-weight: 800;
}
table.data tr:last-child td { border-bottom: none; }
table.data td strong { color: var(--ink-900); }

.pill-public { background: var(--green-50); color: var(--green-700); }
.pill-private { background: color-mix(in srgb, var(--blue-500) 12%, transparent); color: var(--blue-600); }
:root[data-theme="dark"] .pill-private { color: #9dc0ef; }

/* --- Kit / step lists --- */
.step-flow { display: grid; gap: var(--space-2); counter-reset: step; }
.step-item {
  display: flex; gap: var(--space-2); align-items: flex-start;
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-3);
}
.step-n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}
.step-item h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.step-item p { margin: 0; color: var(--ink-700); font-size: 0.92rem; }

@media (max-width: 860px) {
  .result-grid, .privacy-cols { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 120px 1fr 34px; font-size: 0.8rem; }
  .hbar-row { grid-template-columns: 110px 1fr 30px; font-size: 0.8rem; }
  .dir-toolbar { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .footer, .result-actions, .demo-bar, .assess-nav { display: none !important; }
  body { background: #fff; }
  .result-card, .privacy-card { break-inside: avoid; border-color: #ccc; }
  section { padding: 0; }
}

/* ============================================================================
   Mobile-first pass + WhatsApp + School
   Client requirement (product discovery, 1 Aug): the target market is
   mobile-dependent and WhatsApp-first. Phones are the primary device here,
   not the fallback — so touch targets, tap-friendly scales and one-column
   layouts are treated as the real design, and desktop as the wide variant.
   ========================================================================= */

/* --- WhatsApp --- */
.btn-whatsapp, .cta-whatsapp {
  background: #1f9d55;
  color: #fff;
  border-color: transparent;
}
.btn-whatsapp:hover, .cta-whatsapp:hover { background: #178044; color: #fff; }
.cta-whatsapp { display: inline-flex; text-decoration: none; }

/* --- School --- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.course-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}
.course-card.is-done { border-color: var(--green-500); background: var(--green-50); }
.course-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.course-provider { font-size: 0.78rem; color: var(--ink-500); font-weight: 600; }
.course-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.course-for { font-size: 0.88rem; color: var(--ink-700); margin: 0 0 0.7rem; }
.course-outcome {
  background: var(--surface-50);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-bottom: 0.9rem;
  flex-grow: 1;
}
.course-outcome-h {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--ink-500);
  margin-bottom: 0.2rem;
}
.course-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.course-done { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; margin: 0; cursor: pointer; }
.course-done input { width: 20px; height: 20px; }
.track-intro { color: var(--ink-700); font-size: 0.95rem; margin: 0 0 var(--space-3); max-width: 70ch; }
.from-plan {
  background: var(--green-50);
  border: 1px solid var(--green-500);
  color: var(--green-700);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.92rem;
}
:root[data-theme="dark"] .from-plan { color: #8fdcb4; }

/* --- Strength badges --- */
.strengths { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; }
.strength {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-50);
  border: 1px solid var(--border);
  color: var(--ink-700);
}

/* --- Phone layout: the primary case --- */
@media (max-width: 700px) {
  :root { --space-4: 1.75rem; --space-5: 2.5rem; }

  /* Full-width tap targets — thumbs, not cursors. */
  .btn, .listing-cta { min-height: 46px; }
  .hero-actions .btn,
  .result-actions .btn,
  .assess-nav .btn { width: 100%; justify-content: center; }
  .assess-nav { flex-direction: column-reverse; }
  .listing-cta, .cta-whatsapp { width: 100%; justify-content: center; }

  /* The 1-5 scale is the most-tapped control in the product. On a phone it
     becomes a 5-across row of large squares rather than wrapping boxes. */
  .scale { gap: 0.3rem; }
  .scale-opt { flex: 1 1 0; min-width: 0; padding: 0.7rem 0.15rem; min-height: 58px; }
  .scale-num { font-size: 1.15rem; }
  .scale-word { font-size: 0.58rem; line-height: 1.15; }

  .chip-choice { min-height: 46px; display: flex; align-items: center; }

  .assess-section { padding: var(--space-2); border-radius: var(--radius-md); }
  .assess-section h3 { font-size: 1.15rem; }
  .assess-q-text { font-size: 0.95rem; }

  .result-card, .privacy-card, .chart-card, .course-card, .biz-card {
    padding: var(--space-2);
  }
  .result-constraint { font-size: 1.25rem; }
  .bar-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .bar-val { text-align: left; }
  .bar-track { height: 8px; }
  .hbar-row { grid-template-columns: 1fr 44px; }
  .hbar-row .hbar-label { grid-column: 1 / -1; }

  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi { padding: var(--space-2); }
  .kpi-num { font-size: 1.5rem; }

  .course-grid, .biz-grid { grid-template-columns: 1fr; }
  .dir-toolbar { grid-template-columns: 1fr; }
  .demo-bar select { max-width: 100%; }

  /* Horizontal scrollers instead of cramped wrapping. */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; min-height: 46px; }

  .score-ring { width: 116px; height: 116px; }
  .score-ring span { width: 88px; height: 88px; font-size: 1.6rem; }

  .cta-band { padding: var(--space-3) var(--space-2); }
  .section-head { margin-bottom: var(--space-3); }
}

/* Stop iOS zooming the page when a field is focused — inputs must be >= 16px. */
@media (max-width: 700px) {
  input, select, textarea { font-size: 16px; }
}
