/* ============================================================
   Outstage — design system
   Inspired by Stripe, Linear, Vercel, Ramp, Attio
   ============================================================ */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-tint: #fafbfc;
  --ink: #0a2540;
  --ink-2: #1a3a5c;
  --muted: #425466;
  --muted-2: #697386;
  --line: #e6e8eb;
  --line-soft: #eef0f3;
  --accent: #635bff;
  --accent-2: #00d4ff;
  --accent-3: #7a73ff;
  --success: #00875a;
  --warm: #ffb648;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing / scale */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04), 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow: 0 4px 12px rgba(10, 37, 64, 0.06), 0 2px 4px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(10, 37, 64, 0.12), 0 8px 16px -4px rgba(10, 37, 64, 0.06);

  /* Gradients */
  --grad-hero: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
  --grad-accent: linear-gradient(135deg, #635bff 0%, #00d4ff 100%);
  --grad-soft: linear-gradient(135deg, #f0f4ff 0%, #fdf5ff 100%);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ink);
}

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

p {
  margin: 0 0 1em;
  color: var(--muted);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* ============================================================
   Layout
   ============================================================ */

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--grad-accent);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: #fff;
  opacity: 0.95;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 60%, 60% 100%, 0 100%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: var(--ink-2);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--ink-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
}

.btn-ghost:hover { color: var(--accent); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.arrow-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.arrow-link:hover::after { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--grad-hero);
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .hero { padding: 80px 0 64px; }
  .hero-sub { font-size: 1.05rem; }
}

/* ============================================================
   Logo strip
   ============================================================ */

.logo-strip {
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.logo-strip-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 36px;
  align-items: center;
  justify-items: center;
}

.logo-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted-2);
  opacity: 0.85;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.logo-item:hover {
  color: var(--ink);
  opacity: 1;
}

@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Section heads
   ============================================================ */

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 56px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.category-head h3 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.category-head .count {
  font-size: 0.85rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Case study cards (portfolio grid)
   ============================================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1000px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
  color: var(--ink);
}

.case-card:hover::before { opacity: 1; }

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.case-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.case-card-meta {
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.case-card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line);
}

.case-card-challenge {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.case-card-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.case-card-metric {
  font-size: 0.85rem;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.case-card-metric::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.case-card-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-card-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.case-card:hover .case-card-link::after { transform: translateX(3px); }

/* Featured card variant */
.case-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  color: #fff;
  border-color: transparent;
  min-height: 360px;
}

.case-card-featured .case-card-name,
.case-card-featured .case-card-metric {
  color: #fff;
}

.case-card-featured .case-card-meta,
.case-card-featured .case-card-challenge {
  color: rgba(255, 255, 255, 0.75);
}

.case-card-featured .case-card-tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.case-card-featured .case-card-metrics {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.case-card-featured .case-card-link {
  color: var(--accent-2);
}

@media (max-width: 1000px) { .case-card-featured { grid-column: span 2; } }
@media (max-width: 640px) { .case-card-featured { grid-column: span 1; } }

/* ============================================================
   Problems grid
   ============================================================ */

.problems-section {
  background: var(--bg-alt);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .problems-grid { grid-template-columns: 1fr; } }

.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.problem-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.problem-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* ============================================================
   Methodology
   ============================================================ */

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

@media (max-width: 1000px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .method-grid { grid-template-columns: 1fr; } }

.method-step {
  padding: 32px 24px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}

.method-grid > .method-step:last-child { border-right: none; }

@media (max-width: 1000px) {
  .method-step:nth-child(even) { border-right: none; }
  .method-step { border-bottom: 1px solid var(--line-soft); }
  .method-step:nth-last-child(-n+1) { border-bottom: none; }
}

.method-step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.method-step-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.method-step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   Event feature cards
   ============================================================ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) { .feature-row { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.feature-card-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-bottom: 28px;
}

.feature-card-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.feature-card-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.feature-card-stat-label {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-top: 2px;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: var(--grad-soft);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.feature-card > * { position: relative; z-index: 1; }

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 60%, #2d4f7a 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(99, 91, 255, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band > * { position: relative; }

.cta-band h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-primary:hover { background: #f1f3f6; color: var(--ink); }

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 0.92rem; }

.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--muted-2);
}

@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   Portfolio page filters
   ============================================================ */

.portfolio-header {
  padding: 96px 0 48px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line-soft);
}

.portfolio-header h1 { margin-bottom: 16px; }

.portfolio-header p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

.filters {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}

.filters-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 600;
  margin-right: 4px;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23425466' stroke-width='1.6' d='M3 5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.search-box {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  margin-left: auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder { color: var(--muted-2); }

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.search-box::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23697386' stroke-width='1.6'><circle cx='6' cy='6' r='4.5'/><path d='M9.5 9.5L13 13'/></svg>") no-repeat;
}

.results-meta {
  margin: 32px 0 16px;
  font-size: 0.9rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

/* ============================================================
   Case study page
   ============================================================ */

.cs-header {
  padding: 80px 0 56px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line-soft);
}

.cs-back {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-back:hover { color: var(--ink); }
.cs-back::before { content: "←"; }

.cs-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.cs-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 20px;
  max-width: 880px;
}

.cs-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
}

.cs-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 80px 0;
  align-items: start;
}

@media (max-width: 900px) {
  .cs-body { grid-template-columns: 1fr; gap: 40px; }
}

.cs-main h2 {
  font-size: 1.5rem;
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
}

.cs-main h2:first-child { margin-top: 0; }

.cs-main p, .cs-main li {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.65;
}

.cs-main ul {
  padding-left: 20px;
  margin: 0 0 1em;
}

.cs-main li { margin-bottom: 6px; }

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.cs-metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.cs-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-accent);
}

.cs-metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.cs-metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Sidebar */
.cs-side {
  position: sticky;
  top: 90px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cs-side h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 20px;
}

.cs-side dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-side dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 4px;
}

.cs-side dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cs-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .cs-side { position: static; }
}

/* Related */
.cs-related {
  background: var(--bg-alt);
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
}

.cs-related h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

/* ============================================================
   Generic page header (Contact, Problems)
   ============================================================ */

.page-header {
  padding: 120px 0 64px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line-soft);
}

.page-header h1 { margin-bottom: 20px; }

.page-header p {
  font-size: 1.2rem;
  max-width: 720px;
  color: var(--muted);
}

/* ============================================================
   Contact form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.field textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  padding: 36px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.contact-info-card h3 { font-size: 1.2rem; margin-bottom: 16px; }

.contact-info-card .info-row {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.contact-info-card .info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-card .info-row strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   Hidden state
   ============================================================ */

.hidden { display: none !important; }

/* ============================================================
   Utility
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-lg { gap: 32px; }

/* Smooth fade-in for filtered content */
.case-card {
  animation: fadeIn 0.3s ease-out;
}

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

.muted { color: var(--muted); }

.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.category-blurb {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -8px 0 24px;
  max-width: 720px;
}

/* ============================================================
   Approach page
   ============================================================ */

.approach-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.approach-stage {
  padding: 32px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
}

.approach-stage:last-child { border-bottom: none; }

.approach-stage-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.approach-stage h3 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.approach-stage p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .approach-stage { grid-template-columns: 1fr; gap: 8px; }
}

.approach-bridge {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.approach-bridge h2 { font-size: 1.6rem; margin: 8px 0 16px; }
.approach-bridge p { font-size: 1.05rem; }
.approach-bridge-cta { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 800px) {
  .approach-bridge { grid-template-columns: 1fr; padding: 32px; }
  .approach-bridge-cta { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   Playbook design tokens — maturity bands
   ============================================================ */

:root {
  --band-foundation:  #6b7588;
  --band-building:    #2d6cdf;
  --band-scaling:     #1f8f7a;
  --band-compounding: #0a2540;
  --band-foundation-bg:  #f1f3f6;
  --band-building-bg:    #eaf1fc;
  --band-scaling-bg:     #e6f4f1;
  --band-compounding-bg: #e8edf3;
}

/* ============================================================
   Playbook intro page
   ============================================================ */

.pb-hero {
  background: var(--grad-hero);
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.pb-hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,91,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pb-hero h1 {
  max-width: 880px;
  margin-bottom: 24px;
}

.pb-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) { .pb-how { grid-template-columns: 1fr; } }

.pb-how-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.pb-how-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.pb-how-card h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.pb-how-card p { font-size: 0.95rem; margin: 0; color: var(--muted); }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 720px) { .levels-grid { grid-template-columns: 1fr; } }

.level-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.level-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
  border-color: var(--line);
}

.level-card-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.level-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.level-card-line {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

.level-card-link {
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}

.level-card-link::after { content: " →"; }

@media (max-width: 480px) {
  .level-card { grid-template-columns: 50px 1fr; }
  .level-card-link { grid-column: 1 / -1; padding-top: 4px; }
}

/* ============================================================
   Playbook audit
   ============================================================ */

.audit-header {
  padding: 64px 0 32px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line-soft);
}

.audit-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }

.audit-progress {
  margin-top: 24px;
}

.audit-progress-bar {
  height: 6px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.audit-progress-fill {
  height: 100%;
  background: var(--grad-accent);
  transition: width 0.25s ease;
}

.audit-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.audit-layer-pips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.audit-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.audit-pip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.audit-pip.is-done { background: var(--success); color: #fff; border-color: var(--success); }

.audit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.audit-card.is-answered {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,91,255,0.08);
}

.audit-card-head {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.audit-card-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
  height: fit-content;
  letter-spacing: 0.04em;
}

.audit-card-head h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.audit-card-probe {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.audit-levels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.audit-level {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.audit-level:hover {
  background: var(--bg-tint);
  border-color: var(--accent);
}

.audit-level.is-selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.audit-level.is-selected .audit-level-num { color: var(--accent-2); }
.audit-level.is-selected .audit-level-text { color: rgba(255,255,255,0.92); }

.audit-level-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.audit-level-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.audit-quant {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.audit-quant label {
  font-size: 0.82rem;
  color: var(--muted-2);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audit-quant-input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  width: 240px;
  max-width: 100%;
}

.audit-footer-row {
  margin: 32px 0 64px;
  justify-content: space-between;
  display: flex;
  width: 100%;
}

/* ============================================================
   Playbook results
   ============================================================ */

.results-header {
  background: var(--grad-hero);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}

.results-header-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 800px) { .results-header-grid { grid-template-columns: 1fr; gap: 32px; } }

.results-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.results-score-num {
  font-size: clamp(3.6rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.results-score-max {
  font-size: 1.2rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.score-band {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.score-band strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.score-band span { font-size: 0.88rem; color: var(--muted); }

.score-band[data-band="foundation"]  { background: var(--band-foundation-bg);  border-color: var(--band-foundation); color: var(--band-foundation); }
.score-band[data-band="building"]    { background: var(--band-building-bg);    border-color: var(--band-building); color: var(--band-building); }
.score-band[data-band="scaling"]     { background: var(--band-scaling-bg);     border-color: var(--band-scaling); color: var(--band-scaling); }
.score-band[data-band="compounding"] { background: var(--band-compounding-bg); border-color: var(--band-compounding); color: var(--band-compounding); }

.score-band strong, .score-band span { color: inherit; }
.score-band span { opacity: 0.8; }

.results-layers { display: grid; gap: 12px; }

.results-layer { }

.results-layer-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.results-layer-name { color: var(--ink); font-weight: 500; }
.results-layer-score { color: var(--muted-2); font-variant-numeric: tabular-nums; }

.results-layer-bar {
  height: 6px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.results-layer-bar > div {
  height: 100%;
  background: var(--grad-accent);
}

.results-actions { margin-top: 32px; }

.results-takeaways {
  padding: 64px 0;
  background: #fff;
}

.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 800px) { .takeaways-grid { grid-template-columns: 1fr; } }

.takeaway-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.takeaway-card h3 {
  font-size: 1.05rem;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.takeaway-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: tw;
}

.takeaway-card ol li {
  counter-increment: tw;
  font-size: 0.95rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}

.takeaway-card ol li::before {
  content: counter(tw, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.takeaway-card ol li strong { color: var(--ink); font-weight: 600; }
.takeaway-card ol li .muted { color: var(--accent); font-weight: 500; margin-left: 6px; }

.dim-probe {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  grid-column: 2;
}

.results-reading {
  padding: 64px 0 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
}

.reading-tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.reading-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.reading-tab.is-active { background: var(--ink); color: #fff; }

.reading-list { display: grid; gap: 10px; }

.reading-path-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.reading-path-row:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
  color: var(--ink);
}

.reading-path-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.reading-path-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.reading-path-line { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

.reading-path-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.reading-path-arrow { color: var(--muted-2); font-size: 1.1rem; }

@media (max-width: 600px) {
  .reading-path-row { grid-template-columns: 50px 1fr auto; }
  .reading-path-arrow { display: none; }
}

/* ============================================================
   Level page
   ============================================================ */

.level-header h1 { font-size: clamp(2rem, 4vw, 3rem); }

.level-inside, .level-outputs, .level-good {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-inside li, .level-outputs li, .level-good li {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}

.level-inside li::before, .level-outputs li::before, .level-good li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.level-inside li strong, .level-good li strong { color: var(--ink); font-weight: 600; }

.level-diagnostic {
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0 32px;
}

.level-diagnostic h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.level-diagnostic p { margin: 0 0 18px; }

.diagnostic-row {
  display: grid;
  grid-template-columns: 50px 1fr 56px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.diagnostic-row:last-child { border-bottom: none; }
.diagnostic-row.is-empty { opacity: 0.5; }

.diagnostic-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.diagnostic-name { font-size: 0.95rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

.diagnostic-bar {
  height: 5px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.diagnostic-bar > div {
  height: 100%;
  background: var(--grad-accent);
  transition: width 0.25s ease;
}

.diagnostic-score {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: right;
  color: var(--ink);
  font-weight: 600;
}

.level-continue-row {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.level-continue {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
}

.level-continue:hover { color: var(--ink); }

/* ============================================================
   Print styles for "Download summary"
   ============================================================ */

@media print {
  .no-print, .nav, .footer, .results-actions { display: none !important; }
  body { background: #fff; }
  section { padding: 24px 0 !important; break-inside: avoid; }
  .results-header { padding: 24px 0 !important; border: none; background: #fff; }
  .results-takeaways, .results-reading { background: #fff; padding: 16px 0 !important; border: none; }
  .takeaway-card, .reading-path-row { box-shadow: none; }
  a { color: var(--ink); text-decoration: none; }
  .reading-path-row { break-inside: avoid; }
}
