/* ============================================================
   Resync Bootcamp — Design System
   Applying: impeccable + taste-skill principles
   Fonts: Geist (display) + Instrument Sans (body)
   ============================================================ */

/* ── Google Fonts: Geist via bunny.net (GDPR-safe) ── */
@import url('https://fonts.bunny.net/css?family=instrument-sans:400,500,600|inter-tight:600,700&display=swap');

/* ── Skip navigation link (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1.2rem;
  background: var(--teal-1);
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:root {
  /* ── Brand colours (OKLCH-informed, teal-tinted neutrals) ── */
  --bg:        #03080f;
  --bg-2:      #080f1d;
  --bg-3:      #0d1a2e;
  --bg-card:   rgba(255,255,255,0.028);
  --bg-card-h: rgba(126,240,255,0.055);
  --bg-glass:  rgba(8,15,29,0.82);

  --ink:       #edf2f7;
  --ink-2:     #b8c5d3;
  --ink-3:     #6b7f96;
  --ink-4:     #3d4f62;

  /* Teal family — brand primary */
  --teal-1:    #00d4ff;
  --teal-2:    #38e8cd;
  --teal-3:    #00a8cc;
  --teal-4:    #006d8a;
  --teal-5:    #004b5e;
  --teal-glow: rgba(0,212,255,0.18);

  /* Semantic */
  --good:      #10d488;
  --bad:       #f04060;
  --warn:      #f5a623;
  --accent:    #d85927;

  /* Level colours */
  --grad:      #38e8cd;
  --junior:    #7ef0ff;
  --senior:    #10d488;
  --test-lead: #f5a623;

  /* Surfaces */
  --line:      rgba(56,232,205,0.1);
  --line-2:    rgba(56,232,205,0.06);

  /* Shadows (tinted, not pure black) */
  --shadow-sm: 0 2px 8px rgba(0,12,30,0.5);
  --shadow-md: 0 8px 32px rgba(0,12,30,0.6);
  --shadow-lg: 0 20px 60px rgba(0,12,30,0.7);
  --glow-card: 0 0 0 1px var(--line), 0 8px 32px rgba(0,0,0,0.4);

  /* Spacing (4pt base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;

  /* Type */
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;
  --font-mono:    ui-monospace, "Cascadia Code", Menlo, monospace;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Motion (impeccable) */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  120ms;
  --dur-mid:   240ms;
  --dur-slow:  480ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,212,255,0.08) 0%, transparent 70%),
    radial-gradient(circle at 10% 20%, rgba(168,85,247,0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(56,232,205,0.03) 0%, transparent 40%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 var(--sp-4); color: var(--ink-2); }
a { color: var(--teal-2); text-decoration: none; transition: color var(--dur-fast) var(--ease-out-quart); }
a:hover { color: var(--teal-1); }
code { font-family: var(--font-mono); font-size: 0.875em; background: rgba(0,0,0,0.4); padding: 0.1em 0.45em; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--teal-2); }
pre { font-family: var(--font-mono); font-size: 0.875em; background: rgba(0,0,0,0.5); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5); overflow-x: auto; }

/* ── Layout ── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-5); }
.container-narrow { max-width: 740px;  margin: 0 auto; padding: 0 var(--sp-5); }

/* ── Header placeholder (prevents layout shift while nav.html loads) ── */
#site-header-placeholder {
  height: 57px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: var(--sp-3) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-2);
  transition: border-color var(--dur-mid) var(--ease-out-quart);
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: flex-start; gap: var(--sp-4);
  padding-left: 0;
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
  margin-right: auto;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img.logo  { height: 2.2rem; width: auto; display: block; max-width: 240px; object-fit: contain; border-radius: 0; transform: translateY(-9px); }
.brand .pipe     { color: var(--line); font-weight: 300; font-size: 1.5rem; line-height: 1; margin: 0 -2px; }
.brand small {
  display: inline-flex; align-items: center;
  font-weight: 900; font-size: 1.5rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-display);
  line-height: 1;
  background: linear-gradient(135deg, #1cd4a7 0%, #38e8cd 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(28,212,167,0.4));
  position: relative;
}

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a {
  color: var(--ink-3); font-size: 0.875rem; font-weight: 500;
  position: relative; padding: var(--sp-1) 0;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--teal-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.nav a:hover        { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  color: var(--ink-3); font-size: 0.875rem; font-weight: 500;
  background: none; border: none; padding: var(--sp-1) 0;
  cursor: pointer; font-family: var(--font-body);
  transition: color var(--dur-fast) var(--ease-out-quart);
  position: relative;
}
.nav-dropdown-toggle::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 18px;
  height: 1px; background: var(--teal-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.nav-dropdown-toggle:hover { color: var(--ink); }
.nav-dropdown-toggle:hover::after { transform: scaleX(1); }
.nav-dropdown-toggle svg {
  width: 10px; height: 10px; stroke: currentColor;
  transition: transform var(--dur-fast) var(--ease-out-quart);
  flex-shrink: 0;
}
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--teal-2); outline-offset: 4px; border-radius: var(--r-sm);
}

.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 170px;
  background: #080f1d;
  border: 1px solid rgba(56,232,205,0.15);
  border-radius: var(--r-lg);
  padding: var(--sp-2);
  box-shadow: 0 8px 32px rgba(0,12,30,0.8);
  z-index: 200;
  animation: fadeUp 0.15s var(--ease-out-expo);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--ink-2); font-size: 0.875rem; font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { background: var(--bg-card-h); color: var(--ink); }
.nav-dropdown-menu a .dd-icon { font-size: 1rem; line-height: 1; }

/* ── Mobile Nav Toggle ── */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  color: var(--teal-2); padding: 8px; border-radius: var(--r-md);
  cursor: pointer; position: relative; z-index: 110;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; background: var(--bg-glass);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    padding: 100px var(--sp-6) var(--sp-6);
    flex-direction: column; align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--dur-mid) var(--ease-out-expo);
    z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; width: 100%; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-2); }
  .nav a:last-child { border-bottom: none; }

  /* Dropdown in mobile nav — expand inline */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    font-size: 1.1rem; width: 100%; padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--line-2); justify-content: space-between;
  }
  .nav-dropdown-toggle::after { display: none; }
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none;
    background: transparent; padding: 0 0 0 var(--sp-4);
    border-left: 2px solid var(--line);
    animation: none;
  }
  .nav-dropdown-menu a {
    font-size: 1rem; padding: var(--sp-2) var(--sp-2);
    border-bottom: none;
  }
}

/* ── View Transitions ── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: var(--ease-out-quart);
}

::view-transition-old(root) {
  animation-name: fade-out;
}
::view-transition-new(root) {
  animation-name: fade-in-up;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; filter: blur(4px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Hero ── */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(0,168,204,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--teal-2); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px; background: var(--teal-2);
  opacity: 0.7;
}
.hero h1 { color: var(--ink); margin-bottom: var(--sp-5); }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-2); max-width: 600px;
  line-height: 1.7; margin-bottom: var(--sp-6);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.65rem 1.25rem;
  background: var(--teal-4); color: var(--ink);
  border: 1px solid var(--teal-3);
  border-radius: var(--r-md); font-weight: 600; font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer; text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.btn:hover {
  background: var(--teal-3); color: var(--ink);
  border-color: var(--teal-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,168,204,0.3);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--teal-1); outline-offset: 3px; }

.btn-ghost {
  background: transparent; color: var(--teal-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(56,232,205,0.07);
  border-color: var(--teal-2); color: var(--teal-1);
  box-shadow: none;
}

.btn-group { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition:
    background var(--dur-mid) var(--ease-out-quart),
    border-color var(--dur-mid) var(--ease-out-quart),
    transform var(--dur-mid) var(--ease-out-quart),
    box-shadow var(--dur-mid) var(--ease-out-quart);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,232,205,0.3), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out-quart);
}
a.card { display: block; color: inherit; cursor: pointer; }
a.card:hover {
  background: var(--bg-card-h);
  border-color: var(--teal-2);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.1);
  text-decoration: none;
  color: inherit;
}
a.card:hover::before { opacity: 1; }
a.card:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: var(--r-lg); }

.card h3 { color: var(--ink); margin-bottom: var(--sp-2); }
.card p  { color: var(--ink-2); margin: 0; font-size: 0.92rem; }

/* ── Level tags ── */
.level-tag {
  display: flex; width: fit-content; align-items: center; gap: var(--sp-1);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 999px; border: 1px solid currentColor;
  margin-bottom: var(--sp-3); opacity: 0.9;
  font-family: var(--font-display);
}
.level-tag.grad      { color: var(--grad); }
.level-tag.junior    { color: var(--junior); }
.level-tag.senior    { color: var(--senior); }
.level-tag.test-lead { color: var(--test-lead); }

/* ── Grid ── */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ── Section ── */
.section { padding: var(--sp-8) 0; }
.section-sm { padding: var(--sp-6) 0; }
.section-title { margin-bottom: var(--sp-2); }
.section-sub   { color: var(--ink-3); font-size: 0.95rem; margin-bottom: var(--sp-5); }

/* ── Stat / feature strip ── */
.stat-strip {
  display: flex; gap: var(--sp-6); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}
.stat-item { display: flex; flex-direction: column; gap: var(--sp-1); }
.stat-num  {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  line-height: 1; color: var(--ink);
  background: linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl  { color: var(--ink-3); font-size: 0.82rem; font-weight: 500; }

/* ── Progress bar ── */
.progress-bar {
  height: 4px; background: var(--bg-3);
  border-radius: 999px; overflow: hidden;
  margin-top: var(--sp-3);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-3), var(--teal-2));
  border-radius: 999px;
  transition: width var(--dur-slow) var(--ease-out-expo);
}

/* ── Path strip (how it works) ── */
.path-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.path-step {
  padding: var(--sp-5) var(--sp-5);
  border-right: 1px solid var(--line-2);
  position: relative;
}
.path-step:last-child { border-right: none; }
.path-num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--bg-3); line-height: 1; margin-bottom: var(--sp-2);
  user-select: none;
}
.path-step h3 { color: var(--ink); margin-bottom: var(--sp-1); }
.path-step p  { color: var(--ink-3); font-size: 0.88rem; margin: 0; }

/* ── Level hub header ── */
.level-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
  padding: var(--sp-9) 0 var(--sp-7);
}
@media (max-width: 700px) { .level-hero { grid-template-columns: 1fr; } }
.level-hero-meta {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.level-hero-meta h4 { color: var(--ink-3); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; font-family: var(--font-display); }
.meta-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.meta-pill {
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.8rem; color: var(--ink-2);
}

/* ── Practice page chrome ── */
.practice-chrome {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-6) 0 var(--sp-5);
}
.practice-chrome-bar {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
.practice-chrome h1 { font-size: 1.3rem; margin: 0 0 var(--sp-1); }
.practice-meta { color: var(--ink-3); font-size: 0.82rem; display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.practice-meta span { display: flex; align-items: center; gap: var(--sp-1); }

/* ── Mode toggle ── */
.mode-toggle {
  display: inline-flex;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
}
.mode-toggle button {
  background: transparent; border: 0;
  color: var(--ink-3); padding: 6px 14px;
  border-radius: 7px; cursor: pointer;
  font-size: 0.82rem; font-weight: 600;
  font-family: var(--font-body);
  transition:
    background var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
}
.mode-toggle button.active {
  background: var(--teal-4); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.mode-toggle button:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 2px; }

/* ── Score badge ── */
.score-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 5px 12px;
  background: rgba(16,212,136,0.1);
  border: 1px solid rgba(16,212,136,0.25);
  color: var(--good);
  border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  font-family: var(--font-display);
  transition: background var(--dur-mid) var(--ease-out-quart);
}
.score-badge.perfect {
  background: rgba(16,212,136,0.2);
  border-color: var(--good);
  box-shadow: 0 0 20px rgba(16,212,136,0.2);
}

/* ── Target app (the buggy content) ── */
.target-app {
  background: #fff; color: #1a1a2e;
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  margin: var(--sp-4) 0;
  box-shadow: var(--shadow-lg);
  font-family: Georgia, "Times New Roman", serif;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
.target-app::before {
  content: 'PRODUCT UNDER TEST';
  position: absolute; top: -10px; left: var(--sp-5);
  background: var(--bg-2);
  color: var(--ink-3); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
}
.target-app h2, .target-app h3 { font-family: Georgia, serif; color: #1a1a2e; font-weight: 700; }
.target-app h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.target-app h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.target-app p  { color: #3a3a5c; font-size: 1rem; line-height: 1.65; margin-bottom: 0.75rem; }
.target-app a  { color: #0057cc; }
.target-app ul { color: #3a3a5c; padding-left: 1.25rem; }
.target-app li { margin-bottom: 0.35rem; }

/* ── Findings panel ── */
.findings {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-top: var(--sp-5);
}
.findings-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap; margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-2);
}
.findings h2 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-2); margin: 0;
}
.findings ul { list-style: none; padding: 0; margin: 0; }
.findings li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-2);
  transition: opacity var(--dur-fast) var(--ease-out-quart);
}
.findings li:last-child { border-bottom: none; }
.findings li input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px;
  accent-color: var(--teal-2); cursor: pointer; flex-shrink: 0;
}
.findings li label { color: var(--ink-2); font-size: 0.92rem; cursor: pointer; line-height: 1.5; }
.findings li.found label { color: var(--ink-3); text-decoration: line-through; }
.findings li:focus-within { background: rgba(56,232,205,0.03); border-radius: var(--r-sm); }

/* ── Blind mode textarea ── */
.blind-input {
  width: 100%; min-height: 150px;
  background: rgba(0,0,0,0.4); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4);
  font-family: var(--font-mono); font-size: 0.88rem;
  resize: vertical; line-height: 1.6;
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}
.blind-input:focus {
  outline: none;
  border-color: var(--teal-3);
  box-shadow: 0 0 0 3px rgba(0,168,204,0.12);
}
.blind-input::placeholder { color: var(--ink-4); }

/* ── Reveal section ── */
.reveal-section { margin-top: var(--sp-4); }
.reveal-section[hidden] { display: none; }
.reveal-section ol {
  padding-left: 1.25rem; margin: var(--sp-3) 0;
  color: var(--ink-2);
}
.reveal-section li { margin-bottom: var(--sp-2); font-size: 0.92rem; }

/* ── Prose (intro / techniques) ── */
.prose { font-size: 1rem; max-width: 65ch; }
.prose h2 { margin-top: var(--sp-7); color: var(--ink); }
.prose h3 { margin-top: var(--sp-5); color: var(--teal-2); }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--ink-2); }
.prose li { margin-bottom: var(--sp-2); }
.prose blockquote {
  border-left: 3px solid var(--teal-4);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-5) 0;
  color: var(--ink-2); font-style: italic;
  background: rgba(0,168,204,0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose strong { color: var(--ink); }
.prose a { color: var(--teal-2); }
.prose a:hover { color: var(--teal-1); }

/* ── Coming soon card ── */
.coming-soon {
  border: 1px dashed var(--ink-4);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  background: rgba(255,255,255,0.01);
}
.coming-soon p { color: var(--ink-3); font-size: 0.9rem; margin: var(--sp-2) 0 var(--sp-4); }

/* ── Footer ── */
.site-footer {
  margin-top: var(--sp-9);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line-2);
  color: var(--ink-4); font-size: 0.82rem;
}
.site-footer .container {
  display: flex; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap; align-items: center;
}
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--teal-2); }

/* ── Utility ── */
.text-gradient {
  background: linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.muted { color: var(--ink-3); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-3); }
.mt-3 { margin-top: var(--sp-4); } .mt-4 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--sp-4); }
.gap-3 { gap: var(--sp-3); }

/* ── Entrance animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.animate-fade-up  { animation: fade-up  var(--dur-slow) var(--ease-out-expo) both; }
.animate-fade-in  { animation: fade-in  var(--dur-slow) var(--ease-out-quart) both; }
[style*="--delay"] { animation-delay: var(--delay, 0ms); }

/* ── Library layout (sidebar + main content) ── */
.library-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-7);
  align-items: start;
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-9);
}
@media (max-width: 900px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-sidebar { position: static !important; }
}

.library-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-4) transparent;
}
.library-sidebar::-webkit-scrollbar { width: 4px; }
.library-sidebar::-webkit-scrollbar-thumb { background: var(--teal-4); border-radius: 4px; }

.sidebar-section { margin-bottom: var(--sp-5); }
.sidebar-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-4);
  font-family: var(--font-display);
  padding: 0 var(--sp-3); margin-bottom: var(--sp-2);
  display: block;
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin: 0; }
.sidebar-nav a {
  display: block;
  padding: 6px var(--sp-3);
  border-radius: var(--r-sm);
  font-size: 0.875rem; color: var(--ink-3);
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease-out-quart),
              color var(--dur-fast) var(--ease-out-quart);
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover {
  background: rgba(56,232,205,0.06);
  color: var(--ink);
  text-decoration: none;
}
.sidebar-nav a.active {
  background: rgba(56,232,205,0.1);
  color: var(--teal-2);
  border-left-color: var(--teal-2);
}
.sidebar-nav .level-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: var(--sp-2); vertical-align: middle;
  flex-shrink: 0;
}
.sidebar-nav .dot-grad      { background: var(--grad); }
.sidebar-nav .dot-junior    { background: var(--junior); }
.sidebar-nav .dot-senior    { background: var(--senior); }
.sidebar-nav .dot-lead      { background: var(--test-lead); }

/* ── Sidebar submenu (collapsible) ── */
.sidebar-submenu-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none;
  padding: 6px var(--sp-3);
  font: inherit; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-3); cursor: pointer; text-align: left;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
}
.sidebar-submenu-toggle:hover { background: rgba(56,232,205,0.06); color: var(--ink); }
.sidebar-submenu-toggle svg { width: 10px; height: 6px; transition: transform .2s; flex-shrink: 0; margin-left: var(--sp-2); }
.sidebar-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sidebar-submenu { list-style: none; padding: 0 0 0 var(--sp-4); margin: var(--sp-2) 0 0; border-left: 2px solid var(--line-2); display: none; }
.sidebar-submenu.open { display: block; }
.sidebar-submenu li { margin: var(--sp-1) 0; }
.sidebar-submenu a { font-size: 0.85rem; color: var(--ink-3); text-decoration: none; display: block; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); }
.sidebar-submenu a:hover, .sidebar-submenu a.active { color: var(--teal-2); background: var(--bg-2); }

/* ── On-this-page TOC ── */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.toc-box-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-4);
  font-family: var(--font-display);
  margin-bottom: var(--sp-3); display: block;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: var(--sp-1); }
.toc-list a {
  font-size: 0.82rem; color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.toc-list a:hover { color: var(--teal-2); }

/* ── Technique card grid ── */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.technique-card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: block; color: inherit;
  transition:
    background var(--dur-mid) var(--ease-out-quart),
    border-color var(--dur-mid) var(--ease-out-quart),
    transform var(--dur-mid) var(--ease-out-quart),
    box-shadow var(--dur-mid) var(--ease-out-quart);
  position: relative; overflow: hidden;
}
.technique-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out-quart);
}
.technique-card:hover {
  background: var(--bg-card-h);
  border-color: var(--teal-4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  text-decoration: none; color: inherit;
}
.technique-card:hover::before { opacity: 1; }
.technique-card.bb::before  { background: linear-gradient(90deg, var(--teal-2), var(--teal-1)); }
.technique-card.wb::before  { background: linear-gradient(90deg, var(--good), #7ee0a8); }
.technique-card.xb::before  { background: linear-gradient(90deg, var(--warn), #f5c84a); }
.technique-card.exp::before { background: linear-gradient(90deg, var(--accent), #f07a27); }
.technique-card.mgmt::before{ background: linear-gradient(90deg, var(--test-lead), #f5c84a); }
.technique-card.scrum::before{ background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.technique-card.kanban::before{ background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.technique-card.xp::before  { background: linear-gradient(90deg, #34d399, #10b981); }
.technique-card.planning::before{ background: linear-gradient(90deg, #fb923c, #f97316); }
.technique-card.testing::before{ background: linear-gradient(90deg, #f472b6, #ec4899); }
.technique-card.scaling::before{ background: linear-gradient(90deg, #94a3b8, #64748b); }

.tc-category {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: var(--sp-3);
  font-family: var(--font-display);
}
.tc-category.bb   { color: var(--teal-2); }
.tc-category.wb   { color: var(--good); }
.tc-category.xb   { color: var(--warn); }
.tc-category.exp  { color: var(--accent); }
.tc-category.mgmt { color: var(--test-lead); }
.tc-category.scrum   { color: #60a5fa; }
.tc-category.kanban  { color: #a78bfa; }
.tc-category.xp      { color: #34d399; }
.tc-category.planning{ color: #fb923c; }
.tc-category.testing { color: #f472b6; }
.tc-category.scaling { color: #94a3b8; }

.technique-card h3 { color: var(--ink); margin-bottom: var(--sp-2); font-size: 1.05rem; }
.technique-card p  { color: var(--ink-2); margin: 0; font-size: 0.875rem; line-height: 1.55; }

.tc-levels {
  display: flex; gap: var(--sp-1); flex-wrap: wrap;
  margin-top: var(--sp-3);
}
.tc-level-pill {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; font-family: var(--font-display);
  border: 1px solid currentColor; opacity: 0.8;
}
.tc-level-pill.grad      { color: var(--grad); }
.tc-level-pill.junior    { color: var(--junior); }
.tc-level-pill.senior    { color: var(--senior); }
.tc-level-pill.test-lead { color: var(--test-lead); }

/* ── Mini-Hunt (Interactive) ── */
.mini-hunt {
  background: var(--bg-3);
  border: 1px solid var(--teal-4);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin: var(--sp-4) 0;
  position: relative;
}
.mini-hunt-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-2);
  margin-bottom: var(--sp-2); display: block;
}
.mini-hunt-box {
  background: #fff; color: #1a1a2e;
  padding: var(--sp-3); border-radius: var(--r-sm);
  margin-bottom: var(--sp-3); font-family: system-ui, sans-serif;
}
.mini-hunt-result {
  font-size: 0.85rem; color: var(--good);
  display: none; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.mini-hunt.solved .mini-hunt-result { display: flex; }
.mini-hunt.solved .mini-hunt-btn { display: none; }
.technique-header {
  padding: var(--sp-8) 0 var(--sp-6);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: var(--sp-7);
}
.technique-header .eyebrow { margin-bottom: var(--sp-3); }
.technique-header h1 { margin-bottom: var(--sp-4); }
.technique-meta-row {
  display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
  margin-top: var(--sp-4);
}

.callout {
  border-left: 3px solid var(--teal-3);
  background: rgba(0,168,204,0.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.callout.good  { border-color: var(--good);  background: rgba(16,212,136,0.05); }
.callout.warn  { border-color: var(--warn);  background: rgba(245,166,35,0.05); }
.callout.info  { border-color: var(--teal-3); }
.callout p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.callout strong { color: var(--ink); }

.example-box {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-5) 0;
}
.example-box-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--teal-2);
  font-family: var(--font-display); margin-bottom: var(--sp-3);
}
.example-box table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.example-box th {
  background: rgba(56,232,205,0.07);
  color: var(--teal-2); font-weight: 600; text-align: left;
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.05em;
}
.example-box td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2); vertical-align: top;
}
.example-box tr:last-child td { border-bottom: none; }
.pass { color: var(--good); font-weight: 600; }
.fail { color: var(--bad); font-weight: 600; }

/* ── ISTQB badge / mapping ── */
.istqb-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 4px 12px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--warn);
  font-family: var(--font-display); letter-spacing: 0.05em;
}
.istqb-badge::before {
  content: '✓';
  font-weight: 700;
}

.istqb-map-table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; }
.istqb-map-table th {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line);
  text-align: left; font-family: var(--font-display);
  background: rgba(255,255,255,0.02);
}
.istqb-map-table td {
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 0.875rem; vertical-align: top;
}
.istqb-map-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.istqb-map-table tr:last-child td { border-bottom: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.8rem; color: var(--ink-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--teal-2); }
.breadcrumb .sep { color: var(--ink-4); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Header: stack nav below logo on tablets */
  .site-header .container { flex-wrap: wrap; gap: var(--sp-2); }
  .nav { gap: var(--sp-3); flex-wrap: wrap; }
  .nav a { font-size: 0.8rem; }

  /* Landing hero: single column */
  section.hero.container[style*="grid-template-columns"] {
    display: block !important;
  }
  section.hero.container > div + div { margin-top: var(--sp-6); }

  /* Grids: collapse to 1–2 col */
  .grid.grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-2 { grid-template-columns: 1fr; }

  /* Level hero: single column */
  .level-hero { grid-template-columns: 1fr !important; padding-top: var(--sp-7); }
  .level-hero-meta { margin-top: var(--sp-4); }

  /* Stat strip: column */
  .stat-strip { flex-direction: column !important; gap: var(--sp-4); padding: var(--sp-4); }
}

@media (max-width: 600px) {
  /* Header: hide "Bootcamp" label, keep logo */
  .brand .pipe, .brand small { display: none; }
  .brand img.logo { height: 44px; }

  /* Nav: wrap tightly */
  .nav { gap: var(--sp-2); }
  .nav a:last-child { display: none; } /* hide external resync.nz link */

  /* Grids: single column */
  .grid.grid-5,
  .grid.grid-4,
  .grid.grid-3 { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: var(--sp-6) 0 var(--sp-5); }
  h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }

  /* Path strip */
  .path-strip { grid-template-columns: 1fr; }
  .path-step  { border-right: none; border-bottom: 1px solid var(--line-2); }
  .path-step:last-child { border-bottom: none; }

  /* Practice chrome */
  .practice-chrome-bar { flex-direction: column; gap: var(--sp-3); }
  .mode-toggle { width: 100%; }
  .mode-toggle button { flex: 1; }

  /* Findings */
  .findings-header { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }

  /* Target app tables: scroll horizontally */
  .target-app table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Buttons: full width on small screens */
  .btn-group { flex-direction: column; }
  .btn-group .btn, .btn-group a { width: 100%; text-align: center; justify-content: center; }

  /* Container padding */
  .container, .container-narrow { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}

@media (max-width: 640px) {
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
}

/* ── Ask the Guru button ─────────────────────────────────────── */
.guru-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--teal-2);
  color: #fff;
  font-size: 0.75em;
  font-weight: 800;
  font-family: inherit;
  line-height: 1;
  border: none;
  cursor: pointer;
  margin-left: 0.4em;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
  position: relative;
  top: -0.05em;
  padding: 0;
}
.guru-btn:hover {
  background: #0ac99a;
  transform: scale(1.15);
}
.guru-btn:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 2px;
}

/* ── Pricing table (tool pages) ─────────────────────────────────────────────── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.9rem;
}
.pricing-table th,
.pricing-table td {
  border: 1px solid var(--line-2);
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: top;
}
.pricing-table th {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-table td { background: var(--bg-card); }
.pricing-table td:first-child { white-space: nowrap; font-weight: 500; }
.pricing-table td:nth-child(2) { white-space: nowrap; }

