/* ===== RESET & CUSTOM PROPERTIES ===== */
:root {
  --primary-teal: #00a892;
  --primary-teal-dark: #008f7c;
  --primary-blue: #3d83df;
  --blue-hover: #1662c6;
  --text-dark: #333333;
  --text-secondary: #667070;
  --text-light: #888f8f;
  --bg-light: #f6f8f8;
  --bg-lighter: #eef2f2;
  --white: #ffffff;
  --accent-light: #e6f7f4;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --threat-high-bg: #fef2f2;
  --threat-high: #dc2626;
  --threat-medium-bg: #fffbeb;
  --threat-medium: #d97706;
  --threat-low-bg: #ecfdf5;
  --threat-low: #059669;
  --border: #e0e4e4;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow: 0 5px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-sm: 4px;
  --container: 960px;
  --container-wide: 1100px;
}

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

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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVIGATION ===== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
}

.nav-brand {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.nav-brand svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-teal);
  background: var(--accent-light);
  text-decoration: none;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #f0faf8 0%, #e4f0f6 50%, #eef5f0 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,146,0.06) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 3.25rem;
}

.hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-teal);
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.hero-byline {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===== SECTIONS ===== */
.task-section {
  padding: 3.5rem 0;
  display: none;
}

.task-section.active {
  display: block;
}

.task-section:nth-child(even) {
  background: var(--bg-light);
}

.task-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: -3.5rem -1.5rem 2.5rem;
  padding: 2.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, #1a2e35 0%, #0d3d3a 100%);
  position: relative;
  overflow: hidden;
}

.task-header::before {
  content: attr(data-number);
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Work Sans', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.task-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary-teal);
  color: var(--white);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0,168,146,0.25);
}

.task-header h2 {
  color: var(--white);
  font-size: 1.75rem;
}

.task-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  display: block;
  margin-bottom: 0.15rem;
}

.subsection {
  margin-bottom: 3rem;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection > h3 {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.subsection > h4 {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-teal {
  border-left: 3px solid var(--primary-teal);
}

.card-amber {
  border-left: 3px solid var(--warning);
}

.card h4 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Bet cards */
.bet-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid;
  border-image: linear-gradient(to bottom, var(--primary-teal), var(--primary-blue)) 1;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.bet-card::before {
  content: attr(data-bet);
  position: absolute;
  right: 1rem;
  top: -0.25rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0,168,146,0.06);
  line-height: 1;
  pointer-events: none;
}

.bet-card .bet-number {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

.bet-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.bet-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== KEY TAKEAWAY ===== */
.takeaway {
  background: var(--accent-light);
  border: none;
  border-left: 5px solid var(--primary-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  position: relative;
}

.takeaway p {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.97rem;
  margin: 0;
  line-height: 1.7;
}

.takeaway-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.table-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.table-controls select {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
}

.table-controls label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg-light);
  position: sticky;
  top: 0;
}

thead th {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

thead th:hover {
  color: var(--primary-teal);
}

thead th .sort-icon {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.4;
}

thead th.sorted .sort-icon {
  opacity: 1;
  color: var(--primary-teal);
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:hover {
  background: var(--bg-light);
}

tbody tr:last-child td {
  border-bottom: none;
}

.threat-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.threat-badge.high {
  background: var(--threat-high-bg);
  color: var(--threat-high);
}

.threat-badge.medium {
  background: var(--threat-medium-bg);
  color: var(--threat-medium);
}

.threat-badge.low {
  background: var(--threat-low-bg);
  color: var(--threat-low);
}

/* ===== FUNNEL CALCULATOR ===== */
.calculator {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calc-inputs {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.calc-field .range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-field input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-lighter);
  border-radius: 3px;
  outline: none;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-teal);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-teal);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calc-field .range-value {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-teal);
  min-width: 48px;
  text-align: right;
}

.calc-outputs {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.calc-output-item {
  text-align: center;
}

.calc-output-item .output-value {
  font-family: 'Work Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-teal);
  line-height: 1.2;
}

.calc-output-item .output-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-phases {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeline-phase {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.timeline-phase:hover {
  box-shadow: var(--shadow);
}

.phase-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.phase-header::-webkit-details-marker,
.phase-header::marker {
  display: none;
  content: '';
}

.phase-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phase-1 .phase-indicator { background: var(--primary-blue); }
.phase-2 .phase-indicator { background: var(--primary-teal); }
.phase-3 .phase-indicator { background: var(--warning); }

.phase-1 { border-top: 3px solid var(--primary-blue); }
.phase-2 { border-top: 3px solid var(--primary-teal); }
.phase-3 { border-top: 3px solid var(--warning); }

.phase-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.phase-weeks {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.phase-chevron {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: transform 0.2s;
}

details.timeline-phase[open] .phase-chevron {
  transform: rotate(90deg);
}

.phase-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.phase-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.75rem;
}

.phase-content li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.phase-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.phase-target {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-teal);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}

/* ===== ORG CHART ===== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.org-top {
  text-align: center;
}

.org-node {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.org-node:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-teal);
}

.org-node.lead {
  background: var(--primary-teal);
  color: var(--white);
  border-color: var(--primary-teal);
}

.org-node .org-role {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.org-node .org-count {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.org-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
}

.org-branch {
  position: relative;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.org-branch::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: var(--border);
}

.org-detail {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  width: 280px;
  z-index: 10;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

.org-node.expanded .org-detail {
  display: block;
}

/* ===== DETAILS / ACCORDION ===== */
details.expandable {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

details.expandable summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

details.expandable summary::-webkit-details-marker {
  display: none;
}

details.expandable summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
  transition: transform 0.2s;
}

details.expandable[open] summary::after {
  content: '\2212';
}

details.expandable .detail-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

details.expandable.risk-card {
  border-left: 3px solid var(--warning);
}

details.expandable.risk-card summary {
  color: var(--text-dark);
}

/* ===== KPI CARDS ===== */
/* North Star */
.kpi-north-star {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #F0F9F6 0%, #E8F5F1 100%);
  border: 1px solid #00A387;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.kpi-north-star-icon {
  font-size: 2rem;
  color: #00A387;
  flex-shrink: 0;
}
.kpi-north-star-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00A387;
  margin-bottom: 0.25rem;
}
.kpi-north-star-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
.kpi-north-star-why {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* KPI Dashboard Grid */
.kpi-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.kpi-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.kpi-card-wide {
  grid-column: 1 / -1;
}

/* Card Headers */
.kpi-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
.kpi-card-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
}
.kpi-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.kpi-card-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  margin-top: 1px;
}

/* Header color variants */
.kpi-header-blue { background: #3B82F6; }
.kpi-header-purple { background: #8B5CF6; }
.kpi-header-teal { background: #00A387; }
.kpi-header-green { background: #10B981; }
.kpi-header-amber { background: #F59E0B; }
.kpi-header-dark { background: #1A1A2E; }

/* Card Body */
.kpi-card-body {
  padding: 0.5rem 0;
}
.kpi-body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid #F3F4F6;
}
.kpi-row:last-child,
.kpi-body-grid .kpi-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.kpi-body-grid .kpi-row {
  border-bottom: 1px solid #F3F4F6;
}
.kpi-body-grid .kpi-row:nth-child(odd) {
  border-right: 1px solid #F3F4F6;
}
.kpi-name {
  font-size: 0.85rem;
  color: var(--dark);
}
.kpi-unit {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: #F3F4F6;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.kpi-section {
  margin-bottom: 2rem;
}

.kpi-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.kpi-list {
  list-style: none;
  padding: 0;
}

.kpi-list li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.kpi-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-teal);
}

/* Volume milestones */
.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.milestone {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.milestone .milestone-period {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.milestone .milestone-value {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.milestone .milestone-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== FUNNEL TABLE ===== */
.funnel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.funnel-table thead th {
  background: var(--bg-lighter);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}

.funnel-table thead th:nth-child(n+2) {
  text-align: center;
}

.funnel-table tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.funnel-table tbody td:nth-child(n+2) {
  text-align: center;
}

.funnel-table tbody tr:last-child td {
  border-bottom: none;
}

/* Stage name with color dot */
.ft-stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

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

.ft-dot-1 { background: var(--primary-blue); }
.ft-dot-2 { background: #2ea8c7; }
.ft-dot-3 { background: var(--primary-teal); }
.ft-dot-4 { background: var(--primary-teal-dark); }
.ft-dot-5 { background: #005a4d; }

.ft-pct {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.ft-muted {
  color: var(--text-light);
}

/* Conversion arrow rows */
.ft-conv-row td {
  padding: 0.2rem 0.75rem 0.2rem 2.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  border-bottom: none;
}

.ft-conv-arrow {
  color: var(--primary-teal);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Editable input fields */
.ft-input {
  width: 60px;
  padding: 0.25rem 0.35rem;
  border: 1.5px solid var(--primary-teal);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-teal-dark);
  text-align: center;
  background: var(--accent-light);
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
}

.ft-input::-webkit-inner-spin-button,
.ft-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ft-input:focus {
  outline: none;
  border-color: var(--primary-teal-dark);
  box-shadow: 0 0 0 3px rgba(0, 168, 135, 0.15);
}

.ft-input-sm {
  width: 48px;
  font-size: 0.82rem;
  padding: 0.2rem 0.25rem;
}

/* Total row */
.ft-total-row td {
  background: var(--accent-light);
  border-top: 2px solid var(--primary-teal);
  font-weight: 700;
  padding: 0.65rem 0.75rem;
}

/* Summary pills */
.fc-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.fc-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.fc-pill-value {
  font-weight: 700;
  color: var(--primary-teal-dark);
  font-size: 0.9rem;
}

.fc-pill-note {
  font-size: 0.75rem;
  color: var(--text-light);
  border: none;
  background: none;
  padding-left: 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .funnel-table {
    font-size: 0.78rem;
  }
  .funnel-table thead th,
  .funnel-table tbody td {
    padding: 0.4rem 0.4rem;
  }
  .ft-stage {
    font-size: 0.75rem;
  }
  .ft-input {
    width: 48px;
    font-size: 0.78rem;
  }
  .ft-input-sm {
    width: 40px;
    font-size: 0.75rem;
  }
  .fc-summary-row {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ===== FEEDBACK DIAGRAM ===== */
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.feedback-side {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feedback-side h4 {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.feedback-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 3rem;
}

.feedback-arrow {
  width: 40px;
  height: 2px;
  background: var(--primary-teal);
  position: relative;
}

.feedback-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 6px solid var(--primary-teal);
}

.feedback-synthesis {
  background: var(--accent-light);
  border: 2px solid var(--primary-teal);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
}

.feedback-layer {
  margin-bottom: 1.25rem;
}

.feedback-layer:last-child {
  margin-bottom: 0;
}

.feedback-layer h5 {
  font-size: 0.85rem;
  color: var(--primary-teal);
  margin-bottom: 0.4rem;
}

.feedback-layer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PHONE MOCKUP ===== */
.mockup-container {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.mockup-wrapper {
  text-align: center;
}

.mockup-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.phone-frame {
  width: 280px;
  height: 560px;
  border: 3px solid var(--text-dark);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--text-dark);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 0.75rem 1rem;
  height: calc(100% - 24px);
  overflow-y: auto;
  font-size: 0.78rem;
}

.phone-screen h5 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.phone-screen p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Patient check-in mockup elements */
.mock-greeting {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.mock-date {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.mock-mood-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.mock-mood {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: default;
}

.mock-mood.selected {
  border-color: var(--primary-teal);
  background: var(--accent-light);
}

.mock-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0.5rem 0;
  background: var(--bg-light);
  min-height: 60px;
}

.mock-voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0.25rem;
  padding: 0.75rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-teal), #009e8a);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 168, 135, 0.3);
}

.mock-mic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
}

.mock-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background: var(--primary-teal);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

/* Therapist brief mockup elements */
.mock-patient-card {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
}

.mock-patient-name {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.mock-patient-meta {
  font-size: 0.7rem;
  color: var(--text-light);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin: 0.5rem 0;
}

.mock-bar {
  flex: 1;
  background: var(--primary-teal);
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
}

.mock-bar.highlight {
  opacity: 1;
}

.mock-flag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: var(--warning-light);
  border-radius: 4px;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  color: var(--warning);
}

.mock-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin: 0.75rem 0 0.35rem;
}

/* ===== PRICING COMPARISON ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: var(--primary-teal);
  border-width: 2px;
  box-shadow: var(--shadow);
}

.pricing-card .pricing-name {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.pricing-card .pricing-price {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
}

.pricing-card .pricing-unit {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.pricing-card .pricing-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== PHASING ROADMAP ===== */
.phasing {
  display: flex;
  gap: 0;
  margin: 2rem 0;
}

.phasing-step {
  flex: 1;
  padding: 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  position: relative;
}

.phasing-step:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.phasing-step:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.phasing-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left: 10px solid var(--border);
  z-index: 1;
}

.phasing-step .phasing-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.phasing-step .phasing-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.phasing-step .phasing-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.phasing-step.current {
  background: var(--accent-light);
  border-color: var(--primary-teal);
}

/* ===== ICE TABLE ===== */
.ice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.ice-card h5 {
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

/* ===== WORKING CADENCE ===== */
.cadence-category-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin: 1.5rem 0 0.25rem;
}
.cadence-category-label:first-of-type {
  margin-top: 0.5rem;
}

.cadence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}

.cadence-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}

.cadence-name {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.cadence-meta {
  font-size: 0.78rem;
  color: var(--primary-teal);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.cadence-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== PROBLEM SPLIT VISUAL ===== */
.split-bar {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  height: 38px;
  margin: 1rem 0 0.75rem;
}

.split-bar .split-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--white);
}

.split-bar .split-primary {
  background: var(--primary-teal);
}

.split-bar .split-secondary {
  background: var(--primary-blue);
}

/* ===== VERTICALS ===== */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.vertical-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.vertical-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.vertical-card h5 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.vertical-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ===== PROCESS FLOW ===== */
.process-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.process-step {
  background: var(--accent-light);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-teal-dark);
  white-space: nowrap;
}

.process-step:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.process-step:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.process-arrow {
  color: var(--primary-teal);
  font-size: 1rem;
  padding: 0 0.25rem;
}

/* ===== LEVER CARDS ===== */
.lever-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

/* ===== HOME NAV CARDS ===== */
.home-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 0 1rem;
}

.home-nav-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary-teal);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.home-nav-card:hover {
  box-shadow: 0 8px 25px rgba(0,168,146,0.15);
  border-color: var(--primary-teal);
  transform: translateY(-3px);
  text-decoration: none;
}

.home-nav-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-teal);
  color: var(--white);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-nav-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.home-nav-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.home-nav-arrow {
  font-size: 1.25rem;
  color: var(--primary-teal);
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.home-nav-card:hover .home-nav-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-family: 'Work Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-teal);
  line-height: 1.1;
}

/* ===== UTILITIES ===== */
.text-teal { color: var(--primary-teal); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.font-heading { font-family: 'Work Sans', sans-serif; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html { scroll-padding-top: 60px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2.25rem; }

  .task-header { margin: -3.5rem -1.5rem 2rem; padding: 2rem 1.5rem; }
  .task-header::before { font-size: 5rem; right: 1rem; }
  .task-header h2 { font-size: 1.35rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem;
  }
  .nav-mobile-toggle { display: block; }

  .calc-inputs { grid-template-columns: 1fr; }
  .calc-outputs { grid-template-columns: 1fr; gap: 1rem; }

  .timeline-phases { flex-direction: column; }

  .org-branch { flex-direction: column; align-items: center; }

  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-center { flex-direction: row; padding-top: 0; }

  .mockup-container { flex-direction: column; align-items: center; }

  .kpi-dashboard { grid-template-columns: 1fr; }
  .kpi-card-wide { grid-column: 1; }
  .kpi-body-grid { grid-template-columns: 1fr; }
  .kpi-body-grid .kpi-row:nth-child(odd) { border-right: none; }
  .kpi-north-star { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.25rem; }

  .pricing-grid { grid-template-columns: 1fr; }
  .verticals { grid-template-columns: 1fr; }
  .cadence-grid { grid-template-columns: 1fr; }
  .ice-grid { grid-template-columns: 1fr; }
  .lever-grid { grid-template-columns: 1fr; }
  .phasing { flex-direction: column; }
  .phasing-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .phasing-step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .phasing-step:not(:last-child)::after { display: none; }

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

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

  .home-nav-card { padding: 1.25rem; gap: 1rem; }
  .home-nav-arrow { display: none; }
}

/* ===== PRINT ===== */
@media print {
  .top-bar { display: none; }
  .nav-mobile-toggle { display: none; }

  html { scroll-behavior: auto; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }

  .hero { background: none; border: none; padding: 1rem 0; }
  .task-section { padding: 1.5rem 0; background: none !important; display: block !important; }
  #home .home-nav { display: none; }

  .card, .bet-card, details.expandable, .timeline-phase,
  .org-node, .pricing-card, .calculator {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  details.expandable[open] .detail-content,
  details.timeline-phase[open] .phase-content {
    display: block;
  }

  details.expandable { break-inside: avoid; }
  .subsection { break-inside: avoid; }

  .calc-field input[type="range"] { display: none; }

  a { color: #000; text-decoration: none; }
  .threat-badge { border: 1px solid currentColor; }
}
