/* ============================================
   n1.care
   Integrated Biosciences-inspired design system
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg:        #f7f7f5;
  --bg-alt:    #efeee9;
  --text:      #222f30;
  --text-muted: #5a6a6b;
  --accent:    #0d7377;
  --accent-light: #0d737712;
  --white:     #ffffff;
  --black:     #1a1a1a;
  --border:    #d8d8d4;
  --radius:    6px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  animation: pageIn 0.5s ease both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* --- Typography (Fluid) --- */
h1 {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
}

p {
  max-width: 640px;
  overflow-wrap: break-word;
}

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

.text-lg {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.6;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 3rem);
}

section {
  padding: clamp(4rem, 3rem + 5vw, 9rem) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(247, 247, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

/* Transparent nav over hero (light hero) */
.nav.nav-transparent {
  background: transparent;
}

.nav.nav-transparent .nav-logo,
.nav.nav-transparent .nav-links a:not(.btn) {
  color: var(--text-muted);
}

.nav.nav-transparent .nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav.nav-transparent .nav-toggle span {
  background: var(--text);
}

.nav.nav-transparent.scrolled {
  background: rgba(247, 247, 245, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(3.5rem, 3rem + 2vw, 4.5rem);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links a.active:not(.btn) {
  color: var(--text);
  position: relative;
}

.nav-links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Body scroll lock when nav is open */
body.nav-open {
  overflow: hidden;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: #0a5f62;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.3);
}

/* Ensure all buttons meet 44px touch target */
.btn {
  min-height: 44px;
}

.btn-outline {
  border: 1.5px solid var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  color: var(--accent);
  padding: 0.5rem 0;
  font-weight: 600;
  position: relative;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  bottom: 0.35rem;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.btn-ghost:hover::before {
  width: calc(100% - 1.5rem);
}

.btn-ghost::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f3ebe0;
}

/* --- Hero Background Layer (shared) --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-bg.active {
  opacity: 1;
}

/* --- Hero Grid (2-column) --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

/* Visual items (shared) */
.hero-vis {
  display: none;
  width: 100%;
  max-width: 400px;
  animation: vis-fade-in 0.5s ease;
}

.hero-vis.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes vis-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Visual Selector (right edge, matches old bg selector) */
/* (Removed: Visual selector dots, Ripples, Orbs, Cream, Sage, Sunset, Glacier backgrounds) */

/* ============================================
   7. Tide — animated wave shapes
   ============================================ */
.hero-bg--tide {
  background: #f3ebe0;
}

.tide-wave {
  position: absolute;
  width: 200%;
  height: 40%;
  left: -50%;
  border-radius: 45%;
  will-change: transform;
}

.tide-wave--1 {
  bottom: -18%;
  background: rgba(200, 180, 150, 0.06);
  animation: tide-1 12s ease-in-out infinite;
}

.tide-wave--2 {
  bottom: -25%;
  background: rgba(210, 190, 160, 0.05);
  animation: tide-2 16s ease-in-out infinite;
}

.tide-wave--3 {
  bottom: -32%;
  background: rgba(190, 170, 140, 0.04);
  animation: tide-3 20s ease-in-out infinite;
}

@keyframes tide-1 {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50%      { transform: translateX(5%) rotate(2deg); }
}

@keyframes tide-2 {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50%      { transform: translateX(-4%) rotate(-1.5deg); }
}

@keyframes tide-3 {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50%      { transform: translateX(3%) rotate(1deg); }
}

/* (Removed: Lava, Fireflies, Magnetic backgrounds) */

/* ============================================
   Hero Responsive & Reduced Motion
   ============================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: clamp(5rem, 4rem + 3vw, 7rem);
    padding-bottom: 3rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-vis {
    max-width: 300px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: row;
    align-items: center;
  }

  .process-stage-area {
    min-height: 260px;
  }

  .process-doc,
  .process-extract,
  .process-report {
    min-height: 250px;
    max-width: 280px;
  }
}

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

  .tide-wave,
  .ring-fill,
  .node-pulse,
  .globe-dot,
  .float-badge,
  .rf-gears svg,
  .gradient-orb-inner,
  .process-extract-spinner,
  .subpage-wave {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #3a6b6d;
}

.hero p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  color: var(--text-muted);
}

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

/* ============================================
   Hero Right-Side Visuals (10 options)
   ============================================ */

/* --- 1. App Preview --- */
.app-preview-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 340px;
  overflow: hidden;
  transform: rotate(-2deg);
}

.app-preview-header {
  background: #3a6b6d;
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-preview-logo {
  font-weight: 800;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.2);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.app-preview-title {
  font-size: 0.8rem;
  font-weight: 600;
}

.app-preview-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f0f0ee;
  font-size: 0.78rem;
  align-items: center;
}

.app-preview-row:last-child {
  border-bottom: none;
}

.app-preview-label {
  font-weight: 500;
  color: var(--text);
}

.app-preview-val {
  font-weight: 700;
  font-size: 0.85rem;
}

.app-preview-range {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- 2. Data Cards --- */
.hero-vis--data-cards {
  flex-direction: column;
  gap: 0.75rem;
}

.data-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.data-card--bio  { border-left-color: #0d7377; }
.data-card--diag { border-left-color: #6366f1; }
.data-card--proc { border-left-color: #f59e0b; }

.data-card-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  min-width: 50px;
}

.data-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.data-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* --- 3. Process Animation (Upload → Extract → Report) --- */
.hero-vis--process {
  flex-direction: column;
}

.process-anim {
  width: 100%;
  max-width: 360px;
}

/* Step indicators */
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.process-step-ind {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.process-step-ind.active {
  opacity: 1;
}

.process-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3a6b6d;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3a6b6d;
}

.process-step-line {
  width: 32px;
  height: 2px;
  background: #d8d8d4;
  margin: 0 0.5rem;
  position: relative;
  overflow: hidden;
}

.process-step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #3a6b6d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.process-step-line.filled::after {
  transform: scaleX(1);
}

/* Stage area */
.process-stage-area {
  position: relative;
  min-height: 300px;
}

.process-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.process-stage.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Upload card */
.process-doc {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 1.25rem;
  width: 100%;
  max-width: 300px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.process-doc-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.process-doc-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.process-doc-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.process-doc-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.process-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.process-doc-lines span {
  display: block;
  height: 6px;
  background: #f0f0ee;
  border-radius: 3px;
}

.process-doc-progress {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}

/* Content fades out after progress bar fills */
.process-doc-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: docContentOut 0.35s ease forwards;
  animation-delay: 2s;
}

@keyframes docContentOut {
  to { opacity: 0; transform: scale(0.96); }
}

/* Checkmark replaces content */
.process-doc-done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  animation: docDoneIn 0.4s ease forwards;
  animation-delay: 2.2s;
}

.process-doc-done svg {
  width: 44px;
  height: 44px;
}

.process-doc-done span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
  letter-spacing: 0.02em;
}

.process-doc-done-circle {
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  animation: docCircleDraw 0.5s ease forwards;
  animation-delay: 2.3s;
}

.process-doc-done-tick {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: docTickDraw 0.3s ease forwards;
  animation-delay: 2.6s;
}

@keyframes docDoneIn {
  to { opacity: 1; }
}

@keyframes docCircleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes docTickDraw {
  to { stroke-dashoffset: 0; }
}

.process-doc-progress-bar {
  height: 100%;
  background: #3a6b6d;
  border-radius: 2px;
  width: 0%;
  animation: progress-fill 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Extract card */
.process-extract {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 1.25rem;
  width: 100%;
  max-width: 300px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.process-extract-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3a6b6d;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f0f0ee;
}

.process-extract-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: #3a6b6d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.process-data-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid #f8f8f6;
  opacity: 0;
  transform: translateX(-8px);
  animation: data-row-in 0.4s ease forwards;
}

.process-data-row--1 { animation-delay: 0.3s; }
.process-data-row--2 { animation-delay: 0.9s; }
.process-data-row--3 { animation-delay: 1.5s; }
.process-data-row--4 { animation-delay: 2.1s; }

@keyframes data-row-in {
  0% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

.process-data-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.process-data-dot--green { background: #16a34a; }
.process-data-dot--amber { background: #f59e0b; }
.process-data-dot--red { background: #ef4444; }

.process-data-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.process-data-row strong {
  font-weight: 700;
  font-size: 0.82rem;
}

.process-extract-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0ee;
}

/* Report card */
.process-report {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 300px;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.process-report-header {
  background: #3a6b6d;
  color: #fff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-report-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.process-report-badge {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.process-report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid #f0f0ee;
}

.process-report-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid #f0f0ee;
}

.process-report-stat:last-child {
  border-right: none;
}

.process-report-stat-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.process-report-stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process-report-summary {
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.process-report-line {
  height: 5px;
  background: #f0f0ee;
  border-radius: 3px;
}

.process-report-footer {
  padding: 0.6rem 1.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid #f0f0ee;
}

/* Report card animations */
.report-anim {
  opacity: 0;
}

.process-stage--report.active .report-anim--badge {
  animation: report-badge-in 0.4s ease forwards 0.2s;
}

.process-stage--report.active .report-anim--stat1 {
  animation: report-stat-in 0.35s ease forwards 0.35s;
}

.process-stage--report.active .report-anim--stat2 {
  animation: report-stat-in 0.35s ease forwards 0.55s;
}

.process-stage--report.active .report-anim--stat3 {
  animation: report-stat-in 0.35s ease forwards 0.75s;
}

.process-stage--report.active .report-anim--line1 {
  animation: report-line-grow 0.6s ease forwards 1.0s;
  --line-width: 100%;
}

.process-stage--report.active .report-anim--line2 {
  animation: report-line-grow 0.6s ease forwards 1.2s;
  --line-width: 90%;
}

.process-stage--report.active .report-anim--line3 {
  animation: report-line-grow 0.6s ease forwards 1.4s;
  --line-width: 75%;
}

.process-stage--report.active .report-anim--footer {
  animation: report-fade-in 0.4s ease forwards 1.7s;
}

@keyframes report-badge-in {
  0% { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes report-stat-in {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes report-line-grow {
  0% { opacity: 1; width: 0%; background: #3a6b6d; }
  100% { opacity: 1; width: var(--line-width); background: #e8e8e4; }
}

@keyframes report-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --- Success Stage --- */
.process-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  opacity: 0;
}

.process-stage--success.active .process-success {
  animation: report-fade-in 0.3s ease forwards;
}

.process-success-check {
  width: 72px;
  height: 72px;
}

.process-success-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  fill: none;
}

.process-stage--success.active .process-success-circle {
  animation: successCircleDraw 0.6s ease forwards 0.2s;
}

.process-success-tick {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  fill: none;
}

.process-stage--success.active .process-success-tick {
  animation: successTickDraw 0.4s ease forwards 0.6s;
}

.process-success-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #16a34a;
  opacity: 0;
}

.process-stage--success.active .process-success-text {
  animation: report-fade-in 0.4s ease forwards 0.8s;
}

@keyframes successCircleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes successTickDraw {
  to { stroke-dashoffset: 0; }
}

/* --- 4. Metric Rings --- */
.ring-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.metric-ring {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.ring-fill {
  transition: stroke-dashoffset 1s ease;
}

.ring-fill--1 { animation: ring-anim-1 3s ease-out forwards; }
.ring-fill--2 { animation: ring-anim-2 3s ease-out 0.3s forwards; }
.ring-fill--3 { animation: ring-anim-3 3s ease-out 0.6s forwards; }

@keyframes ring-anim-1 {
  from { stroke-dashoffset: 440; }
  to { stroke-dashoffset: 88; }
}

@keyframes ring-anim-2 {
  from { stroke-dashoffset: 352; }
  to { stroke-dashoffset: 105; }
}

@keyframes ring-anim-3 {
  from { stroke-dashoffset: 264; }
  to { stroke-dashoffset: 132; }
}

.ring-labels {
  display: flex;
  gap: 1rem;
}

.ring-label {
  font-size: 0.7rem;
  font-weight: 600;
}

.ring-label--green { color: #10b981; }
.ring-label--amber { color: #f59e0b; }
.ring-label--red { color: #ef4444; }

/* --- 5. Health Grid --- */
.health-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.health-grid-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.health-grid-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.25rem;
}

.hg-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hg-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

/* --- 6. Floating Badges --- */
.hero-vis--floating-badges {
  position: relative;
  height: 300px;
  width: 100%;
}

.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3a6b6d;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.float-badge--1 { top: 10%; left: 15%; animation: float-drift 6s ease-in-out infinite; }
.float-badge--2 { top: 30%; right: 10%; animation: float-drift 7s ease-in-out 0.5s infinite; }
.float-badge--3 { top: 55%; left: 8%; animation: float-drift 8s ease-in-out 1s infinite; }
.float-badge--4 { top: 45%; right: 5%; animation: float-drift 6.5s ease-in-out 1.5s infinite; }
.float-badge--5 { bottom: 10%; left: 30%; animation: float-drift 7.5s ease-in-out 2s infinite; }

@keyframes float-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -12px); }
  50% { transform: translate(-5px, -6px); }
  75% { transform: translate(4px, 8px); }
}

/* --- 7. Abstract Nodes --- */
.nodes-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.node-pulse {
  animation: node-glow 3s ease-in-out infinite;
}

.node-pulse--1 { animation-delay: 0s; }
.node-pulse--2 { animation-delay: 0.5s; }
.node-pulse--3 { animation-delay: 1s; }
.node-pulse--4 { animation-delay: 1.5s; }
.node-pulse--5 { animation-delay: 2s; }

@keyframes node-glow {
  0%, 100% { opacity: 0.6; r: 8; }
  50% { opacity: 1; r: 12; }
}

/* Override r via transform for wider compat */
.node-pulse--1 { animation: node-glow-lg 3s ease-in-out infinite; }
.node-pulse--2 { animation: node-glow-md 3s ease-in-out 0.5s infinite; }
.node-pulse--3 { animation: node-glow-md 3s ease-in-out 1s infinite; }
.node-pulse--4 { animation: node-glow-sm 3s ease-in-out 1.5s infinite; }
.node-pulse--5 { animation: node-glow-sm 3s ease-in-out 2s infinite; }

@keyframes node-glow-lg {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes node-glow-md {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes node-glow-sm {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}

/* --- 8. Document Stack --- */
.doc-stack {
  position: relative;
  width: 260px;
  height: 300px;
}

.doc-page {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.doc-page--back2 {
  width: 230px;
  height: 270px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  opacity: 0.4;
}

.doc-page--back1 {
  width: 240px;
  height: 280px;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  opacity: 0.65;
}

.doc-page--front {
  width: 250px;
  height: 290px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 1.25rem;
  animation: doc-float 4s ease-in-out infinite;
}

@keyframes doc-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.doc-page-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3a6b6d;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #3a6b6d;
  margin-bottom: 0.75rem;
}

.doc-page-row {
  font-size: 0.75rem;
  color: var(--text);
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0ee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-hl {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doc-hl--green { background: #16a34a; }
.doc-hl--red { background: #ef4444; }
.doc-hl--amber { background: #f59e0b; }

/* --- 9. Globe Dots --- */
.globe-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-svg {
  width: 260px;
  height: 260px;
}

.globe-dot {
  animation: globe-blink 4s ease-in-out infinite;
}

.globe-dot--1 { animation-delay: 0s; }
.globe-dot--2 { animation-delay: 0.6s; }
.globe-dot--3 { animation-delay: 1.2s; }
.globe-dot--4 { animation-delay: 1.8s; }
.globe-dot--5 { animation-delay: 2.4s; }
.globe-dot--6 { animation-delay: 3s; }
.globe-dot--7 { animation-delay: 3.6s; }

@keyframes globe-blink {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); }
}

/* --- 10. Gradient Orb --- */
.gradient-orb {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(58,107,109,0.15);
}

.gradient-orb-inner {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0d7377,
    #16a34a,
    #6366f1,
    #f59e0b,
    #ef4444,
    #0d7377
  );
  opacity: 0.4;
  filter: blur(30px);
  animation: orb-rotate 10s linear infinite;
}

@keyframes orb-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Visual Placeholder --- */
.visual-block {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.visual-block .placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--bg-alt) 0%, #d8d8d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visual-block .placeholder-img.tall {
  aspect-ratio: 4 / 3;
}

.visual-block .placeholder-img.square {
  aspect-ratio: 1 / 1;
}

/* --- Pillar Card with Icon --- */
.pillar-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  color: var(--accent);
  display: block;
}

/* --- Full-width Image Band --- */
.image-band {
  padding: 0;
}

.image-band img {
  width: 100%;
  height: clamp(250px, 25vw, 450px);
  object-fit: cover;
  display: block;
}

/* --- Teaser with Image --- */
.teaser-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.teaser-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* --- Numbered Pillar --- */
.pillar-number {
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Pillars Grid --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.pillar-card {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pillar-card h3 {
  margin-bottom: 1rem;
}

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

/* --- Section Headers --- */
.section-header {
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-header p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Chapter Cards --- */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.chapter-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.chapter-card .btn-ghost {
  margin-top: auto;
}

.chapter-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 115, 119, 0.08);
}

.chapter-card .pillar-number {
  margin-bottom: 0.75rem;
}

.chapter-card h4 {
  margin-bottom: 0.5rem;
}

.chapter-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* --- Mini Snapshots (homepage report cards) --- */
.mini-snapshot {
  background: #f8fafc;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.mini-snapshot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.mini-sbar {
  font-size: 0.6rem;
  color: #475569;
  line-height: 1.35;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.mini-sbar strong {
  font-weight: 700;
  color: var(--text-primary);
}

.mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.mini-dot--red { background: #DC2626; }
.mini-dot--amber { background: #D97706; }
.mini-dot--green { background: #16A34A; }
.mini-dot--teal { background: var(--accent); }

.mini-metrics {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e8ecf0;
}

.mini-metric {
  font-size: 0.58rem;
  color: #64748b;
}

.mini-metric em {
  font-style: normal;
  margin-right: 0.2rem;
}

.mini-metric strong {
  font-weight: 700;
}

/* Mini sparkline charts */
.mini-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.mini-chart {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 5px;
  padding: 0.35rem 0.5rem;
}

.mini-chart-label {
  font-size: 0.55rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.mini-chart-label strong {
  font-weight: 700;
}

.mini-sparkline {
  width: 100%;
  height: 18px;
  display: block;
}

/* Mini PDF snapshot */
.mini-snapshot--pdf {
  position: relative;
  background: #f1f5f9;
}

.mini-snapshot--pdf .snapshot-badge-pdf {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.mini-pdf-page {
  background: #fff;
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mini-pdf-heading {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.1rem;
  margin-top: 0.4rem;
}

.mini-pdf-heading:first-child {
  margin-top: 0;
}

.mini-pdf-page p {
  font-size: 0.55rem;
  line-height: 1.45;
  color: #475569;
  margin: 0;
}

/* --- Company Teaser --- */
.teaser {
  background: var(--bg-alt);
}

.teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  align-items: center;
}

.teaser-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-svg {
  width: 100%;
  max-width: 480px;
}

.teaser-svg text {
  font-family: var(--font);
}

.teaser-layer {
  stroke-width: 1.5;
}

.teaser-layer--clinicians { fill: #0d737710; stroke: var(--accent); opacity: 0.8; }
.teaser-layer--engineers { fill: #6366f108; stroke: #6366f1; opacity: 0.7; }
.teaser-layer--scientists { fill: #16a34a08; stroke: #16a34a; opacity: 0.7; }
.teaser-layer--optimisation { fill: #f59e0b08; stroke: #f59e0b; opacity: 0.7; }

.teaser-axis {
  stroke: #22303015;
  stroke-width: 1;
  stroke-dasharray: 4;
}

.teaser-dot {
  fill: var(--accent);
  opacity: 0.7;
}

.teaser-connector {
  stroke-width: 1;
}

.teaser-connector--clinicians { stroke: #0d737740; }
.teaser-connector--engineers { stroke: #6366f140; }
.teaser-connector--scientists { stroke: #16a34a40; }
.teaser-connector--optimisation { stroke: #f59e0b40; }

.teaser-label {
  font-size: 14px;
  font-weight: 600;
}

.teaser-label--clinicians { fill: var(--accent); }
.teaser-label--engineers { fill: #6366f1; }
.teaser-label--scientists { fill: #16a34a; }
.teaser-label--optimisation { fill: #f59e0b; }

.teaser-dot--1 { animation: teaserFloat 6s ease-in-out infinite; }
.teaser-dot--2 { animation: teaserFloat 7s ease-in-out 1s infinite; }
.teaser-dot--3 { animation: teaserFloat 5s ease-in-out 2s infinite; }
.teaser-dot--4 { animation: teaserFloat 6.5s ease-in-out 0.5s infinite; }

@keyframes teaserFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.teaser blockquote {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.teaser blockquote cite {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner--visual {
  background: var(--text);
  color: var(--white);
}

.cta-banner--visual .cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner--visual .cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.cta-banner--visual .container {
  position: relative;
  z-index: 1;
}

.cta-banner--visual h2 {
  color: var(--white);
}

.cta-banner--visual p {
  color: rgba(255, 255, 255, 0.7);
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.cta-banner--dark {
  background: #131f20;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner--dark::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(13, 115, 119, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner--dark h2 {
  color: var(--white);
}

.cta-banner--dark p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 auto 2.5rem;
}

/* --- Chapter Card Thumbnails --- */
.chapter-card-thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.chapter-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.chapter-card:hover .chapter-card-thumb img {
  transform: scale(1.05);
}

/* --- Report Section with Image (alternating layout) --- */
.chapter-section--image {
  grid-template-columns: 120px 1fr 340px;
}

.chapter-section--image-reverse {
  grid-template-columns: 340px 120px 1fr;
}

.chapter-section-img {
  border-radius: var(--radius);
  overflow: hidden;
  align-self: center;
}

.chapter-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

/* --- Image Band with overlay text --- */
.image-band--overlay {
  background: linear-gradient(135deg, #1a1a2e 0%, #4a2c6e 30%, #6b3fa0 60%, #3d2066 100%);
  padding: 0;
}

.image-band--overlay .image-band-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 30vw, 500px);
}

.image-band--overlay .image-band-text {
  padding: 0 clamp(2rem, 1rem + 4vw, 6rem);
  max-width: 550px;
  text-align: center;
}

.image-band--overlay .image-band-text h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.image-band--overlay .image-band-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

/* --- Subpage Header (warm) --- */
.subpage-header {
  background: #f3ebe0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5rem, 4rem + 3vw, 7rem);
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
  position: relative;
  overflow: hidden;
}

.subpage-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(200, 180, 150, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Subpage waves */
.subpage-wave {
  position: absolute;
  width: 200%;
  height: 40%;
  left: -50%;
  border-radius: 45%;
  will-change: transform;
  pointer-events: none;
}

.subpage-wave--1 {
  bottom: -20%;
  animation: tide-1 14s ease-in-out infinite;
}

.subpage-wave--2 {
  bottom: -28%;
  animation: tide-2 18s ease-in-out infinite;
}

/* Variations per page */

/* How It Works — cool sage tint, waves drift right */
.subpage-header--how .subpage-wave--1 { background: rgba(120, 160, 140, 0.08); left: -40%; }
.subpage-header--how .subpage-wave--2 { background: rgba(100, 145, 125, 0.06); left: -45%; }
.subpage-header--how::before { background: radial-gradient(ellipse, rgba(120, 160, 140, 0.10) 0%, transparent 70%); }

/* Reports — warm rose tint */
.subpage-header--reports .subpage-wave--1 { background: rgba(190, 140, 130, 0.08); bottom: -16%; }
.subpage-header--reports .subpage-wave--2 { background: rgba(175, 125, 115, 0.06); bottom: -24%; }
.subpage-header--reports::before { background: radial-gradient(ellipse, rgba(190, 140, 130, 0.10) 0%, transparent 70%); }

/* Pricing — golden/amber tint, waves sit higher */
.subpage-header--pricing .subpage-wave--1 { background: rgba(200, 170, 100, 0.08); bottom: -14%; }
.subpage-header--pricing .subpage-wave--2 { background: rgba(185, 155, 85, 0.06); bottom: -22%; }
.subpage-header--pricing::before { background: radial-gradient(ellipse, rgba(200, 170, 100, 0.10) 0%, transparent 70%); right: -5%; }

/* About — muted teal, waves lower */
.subpage-header--about .subpage-wave--1 { background: rgba(80, 140, 145, 0.07); bottom: -24%; }
.subpage-header--about .subpage-wave--2 { background: rgba(65, 125, 130, 0.05); bottom: -34%; }
.subpage-header--about::before { background: radial-gradient(ellipse, rgba(80, 140, 145, 0.08) 0%, transparent 70%); top: -30%; left: -10%; right: auto; }

/* Contact — warm amber, centered */
.subpage-header--contact .subpage-wave--1 { background: rgba(210, 160, 100, 0.08); left: -55%; }
.subpage-header--contact .subpage-wave--2 { background: rgba(195, 145, 85, 0.06); left: -48%; }
.subpage-header--contact::before { background: radial-gradient(ellipse, rgba(210, 160, 100, 0.10) 0%, transparent 70%); top: -50%; right: -15%; }

/* FAQ — cool taupe/lavender tint */
.subpage-header--faq .subpage-wave--1 { background: rgba(150, 140, 170, 0.07); }
.subpage-header--faq .subpage-wave--2 { background: rgba(135, 125, 155, 0.05); }
.subpage-header--faq::before { background: radial-gradient(ellipse, rgba(150, 140, 170, 0.08) 0%, transparent 70%); }

/* Legal — very subtle neutral, barely there */
.subpage-header--legal .subpage-wave--1 { background: rgba(180, 170, 160, 0.04); bottom: -26%; }
.subpage-header--legal .subpage-wave--2 { background: rgba(165, 155, 145, 0.03); bottom: -34%; }
.subpage-header--legal::before { background: radial-gradient(ellipse, rgba(180, 170, 160, 0.06) 0%, transparent 70%); }

/* Staggered reveal for subpage header children */
.subpage-header .reveal:nth-child(1) { transition-delay: 0s; }
.subpage-header .reveal:nth-child(2) { transition-delay: 0.15s; }
.subpage-header .reveal:nth-child(3) { transition-delay: 0.3s; }

.subpage-header .section-label {
  color: var(--text-muted);
  border: 1px solid var(--border);
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
}

.subpage-header h1 {
  color: #3a6b6d;
  margin-bottom: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.subpage-header p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  max-width: 560px;
}

/* --- Data Category Cards with Images --- */
.pillar-card-img {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.pillar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Mission Image Split --- */
.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  align-items: start;
}

.mission-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.mission-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Founder Avatar --- */
.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Values Section Image --- */
.values-image-band {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-radius: var(--radius);
  overflow: hidden;
}

.values-image-band img {
  width: 100%;
  height: clamp(200px, 20vw, 350px);
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* --- Contact Image Side --- */
.contact-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.contact-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .nav-logo {
  margin-bottom: 0.75rem;
}

.footer-brand .nav-logo img {
  height: 24px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-social {
  margin-top: 1rem;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer-social .social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social .social-link svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: flex;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color var(--transition);
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

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

.footer-col a:hover::after {
  width: 100%;
}

.footer-bottom {
  margin-top: clamp(2rem, 1.5rem + 1vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: clamp(8rem, 6rem + 8vw, 12rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  max-width: 600px;
}

/* --- Chapter Sections (report page) --- */
.chapter-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  padding: clamp(2.5rem, 2rem + 1.5vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}

.chapter-section:last-child {
  border-bottom: none;
}

.chapter-num {
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.chapter-content h3 {
  margin-bottom: 0.75rem;
}

.chapter-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.chapter-content ul {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chapter-content ul li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* --- Report Snapshot (inline) --- */
.chapter-section--with-example {
  border-bottom: none;
}

.snapshot-inline {
  display: block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.snapshot-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.snapshot-inline:hover .snapshot-card {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Browser chrome */
.snapshot-chrome {
  background: #e8e8e6;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.snapshot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.snapshot-url {
  margin-left: 12px;
  background: #fff;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1;
}

/* Report header */
.snapshot-header {
  background: var(--accent);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.snapshot-title {
  font-size: 1rem;
  font-weight: 700;
}

.snapshot-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 2px;
}

.snapshot-date {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Report body */
.snapshot-body {
  padding: 1.25rem 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.snapshot-body > * + * {
  margin-top: 0.75rem;
}

/* SBAR cards */
.snapshot-sbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.snapshot-sbar-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.snapshot-sbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.snapshot-sbar-card strong {
  font-size: 0.72rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.snapshot-sbar-card p {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Key Metrics */
.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

.snapshot-metric {
  text-align: center;
  padding: 0.5rem 0.3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.snapshot-metric-name {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.snapshot-metric-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.snapshot-metric-unit {
  display: block;
  font-size: 0.58rem;
  color: var(--text-muted);
}

.snapshot-red { color: #DC2626; }
.snapshot-amber { color: #D97706; }
.snapshot-green { color: #16A34A; }
.snapshot-indigo { color: #6366f1; }

/* Executive Summary text */
.snapshot-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.snapshot-text strong {
  color: var(--text);
}

/* Sparkline charts */
.snapshot-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.snapshot-chart-card {
  padding: 0.5rem 0.6rem 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.snapshot-chart-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.snapshot-chart-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
}

.snapshot-sparkline {
  width: 100%;
  height: 36px;
  display: block;
}

.snapshot-chart-val {
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Key findings list */
.snapshot-findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.snapshot-finding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.snapshot-finding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Category tags */
.snapshot-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.snapshot-cat {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}

/* More sections teaser */
.snapshot-more {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- PDF Document Snapshot --- */
.snapshot-pdf {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  margin-top: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.snapshot-inline:hover .snapshot-pdf {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.snapshot-pdf-stack {
  position: relative;
  padding: 2rem 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.snapshot-pdf-page {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.snapshot-pdf-page--front {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 380px;
  padding: 1.75rem 1.5rem 1.25rem;
}

.snapshot-pdf-page--back1 {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  width: calc(100% - 6rem);
  max-width: 370px;
  height: 92%;
  opacity: 0.6;
}

.snapshot-pdf-page--back2 {
  position: absolute;
  z-index: 1;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: calc(100% - 7rem);
  max-width: 360px;
  height: 88%;
  opacity: 0.35;
}

.snapshot-pdf-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.snapshot-pdf-section {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
  margin-top: 0.75rem;
}

.snapshot-pdf-para {
  font-size: 0.62rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.snapshot-pdf-para strong {
  color: var(--text-primary);
  font-weight: 600;
}

.snapshot-pdf-pagenum {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.6rem;
  color: #94a3b8;
}

.snapshot-pdf-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.snapshot-badge-pdf {
  padding: 0.15rem 0.45rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 3px;
  flex-shrink: 0;
}

.snapshot-pdf .snapshot-footer {
  border-top: 1px solid #e2e8f0;
}

/* Footer */
.snapshot-footer {
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}

/* --- Report Generation Flow --- */
.report-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.report-flow-step {
  flex: 1;
  text-align: center;
  padding: 0 clamp(1rem, 0.5rem + 1vw, 1.5rem);
}

.report-flow-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.report-flow-step h3 {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  margin-bottom: 0.5rem;
}

.report-flow-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.report-flow-connector {
  width: 40px;
  min-width: 40px;
  height: 2px;
  background: var(--border);
  margin-top: 23px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--bg-alt);
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.team-member:hover .team-member-photo img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-member h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.team-member p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

/* --- About Page --- */
.mission-text {
  max-width: 700px;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.founder-card {
  padding: clamp(2rem, 1.5rem + 1vw, 3rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.founder-card .pillar-number {
  margin-bottom: 0.5rem;
}

.founder-card h3 {
  margin-bottom: 0.25rem;
}

.founder-card .role {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.founder-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- How It Works Page --- */
.pipeline-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.pipeline-step-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  flex: 0 1 140px;
}

.pipeline-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.pipeline-step-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pipeline-step-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
  line-height: 1.5;
}

.pipeline-arrow {
  flex: 0 0 auto;
  color: var(--border);
  width: 28px;
  height: 28px;
}

.pipeline-arrow svg {
  width: 100%;
  height: 100%;
}

.hiw-stage {
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
}

.hiw-stage--alt {
  background: var(--bg-alt);
}

.hiw-stage-header {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.hiw-stage-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.hiw-stage-header h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
}

.hiw-stage-content > .text-lg {
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.hiw-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.hiw-feature {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hiw-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hiw-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hiw-data-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.hiw-data-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  transition: border-color var(--transition);
}

.hiw-data-card:hover {
  border-color: var(--accent);
}

.hiw-data-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.hiw-data-card h4 {
  margin-bottom: 0.5rem;
}

.hiw-data-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.value-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.value-item h4 {
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem; /* 16px prevents iOS zoom on focus */
  transition: border-color var(--transition);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 1rem;
  color: var(--text);
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-response-note {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-response-note p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* --- Contact form inside subpage header --- */
.subpage-header--contact .contact-grid {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.subpage-header--contact .form-group input,
.subpage-header--contact .form-group textarea,
.subpage-header--contact .form-group select {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-color: rgba(0, 0, 0, 0.08);
}

.subpage-header--contact .form-group input:focus,
.subpage-header--contact .form-group textarea:focus,
.subpage-header--contact .form-group select:focus {
  background: var(--white);
  border-color: var(--accent);
}

/* --- Honeypot (hidden from humans) --- */
.form-honeypot {
  position: absolute;
  left: -9999px;
}

/* --- Form Error State --- */
.form-error {
  display: none;
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--color-error-bg, #fef2f2);
  border: 1px solid var(--color-error-border, #e8b4b4);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.form-error.show {
  display: block;
}

.form-error p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-error-text, #7f2d2d);
}

.form-error a {
  color: var(--color-error-text, #7f2d2d);
  font-weight: 600;
}

/* --- Form Success State --- */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.6s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.7s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.8s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  /* When menu is open, nav becomes full-screen overlay */
  .nav.nav-open,
  .nav.nav-open.nav-transparent,
  .nav.nav-open.nav-transparent.scrolled {
    bottom: 0;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.nav-open .nav-inner {
    height: 100%;
    flex-wrap: wrap;
    align-content: flex-start;
  }

  /* Nav collapses at 900px */
  .nav-links {
    display: none;
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    order: 1;
  }

  .nav-links.open {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
  }

  .nav-links a:not(.btn) {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-links .btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1;
  }

  .pillars-grid,
  .chapters-grid {
    grid-template-columns: 1fr;
  }

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

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hiw-features {
    grid-template-columns: 1fr;
  }

  .hiw-data-categories {
    grid-template-columns: 1fr;
  }

  .pipeline-arrow {
    display: none;
  }

  .pipeline-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    justify-items: center;
  }

  .pipeline-step-card {
    flex: none;
    width: 100%;
  }

  .report-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .report-flow-step {
    flex: 0 0 calc(50% - 2rem);
  }

  .report-flow-connector {
    display: none;
  }

  .snapshot-sbar {
    grid-template-columns: 1fr;
  }

  .snapshot-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .snapshot-charts {
    grid-template-columns: repeat(2, 1fr);
  }

  .snapshot-pdf-stack {
    padding: 1.5rem 1.5rem 1rem;
  }

  .snapshot-pdf-page--front {
    padding: 1.25rem 1rem 1rem;
  }

  .snapshot-findings {
    grid-template-columns: 1fr;
  }

  .teaser-inner,
  .founders-grid,
  .contact-grid,
  .mission-split {
    grid-template-columns: 1fr;
  }

  .chapter-section {
    grid-template-columns: 80px 1fr;
  }

  .chapter-section--image,
  .chapter-section--image-reverse {
    grid-template-columns: 80px 1fr;
  }

  .chapter-section--image .chapter-section-img,
  .chapter-section--image-reverse .chapter-section-img {
    grid-column: 1 / -1;
    max-height: 240px;
  }

  .chapter-section--image-reverse .chapter-section-img {
    order: -1;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  /* Full-width CTAs on mobile (forms only) */
  #contact-form .btn {
    width: 100%;
    justify-content: center;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .pipeline-overview {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .report-flow-step {
    flex: 0 0 100%;
  }

  .chapter-section {
    grid-template-columns: 1fr;
  }

  .chapter-section--image,
  .chapter-section--image-reverse {
    grid-template-columns: 1fr;
  }

  .chapter-num {
    font-size: 2rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .image-band img {
    height: 200px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pricing-features-grid,
  .pricing-features-grid--4 {
    grid-template-columns: 1fr;
  }

  .snapshot-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-quick-actions {
    grid-template-columns: 1fr;
  }

  .platform-report-marketplace {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Platform in Action (Tabbed)
   ============================================ */
.platform-section {
  padding: clamp(4rem, 3rem + 5vw, 9rem) 0;
  background: var(--bg-alt);
}

.platform-section .section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.platform-section .section-header p {
  margin: 1rem auto 0;
}

/* Tabs */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  flex-wrap: wrap;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.platform-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.platform-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.platform-tab svg {
  flex-shrink: 0;
}

/* Panels */
.platform-panels {
  max-width: 920px;
  margin: 0 auto;
}

.platform-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.platform-panel.active {
  display: block;
  animation: panelFadeIn 0.4s ease forwards;
}

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

/* Browser frame */
.platform-browser {
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.platform-chrome {
  background: #f0f0ee;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.platform-chrome-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.platform-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.platform-chrome-dots span:nth-child(1) { background: #ff5f57; }
.platform-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.platform-chrome-dots span:nth-child(3) { background: #28c840; }

.platform-chrome-url {
  flex: 1;
  background: var(--white);
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
}

/* App layout (sidebar + main) */
.platform-app {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 460px;
}

/* Sidebar */
.platform-sidebar {
  background: #fafaf9;
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.platform-sidebar-logo {
  padding: 2px 14px 12px;
}

.platform-sidebar-section {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 14px 4px;
  opacity: 0.7;
}

.platform-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
}

.platform-sidebar-item.active {
  background: var(--accent);
  color: var(--white);
}

.platform-sidebar-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.platform-sidebar-spacer { flex: 1; }

.platform-sidebar-user {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-sidebar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.platform-sidebar-user-info { display: flex; flex-direction: column; }
.platform-sidebar-name { font-size: 0.7rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.platform-sidebar-balance { font-size: 0.6rem; color: var(--text-muted); line-height: 1.2; }

/* Collapsed sidebar */
.platform-sidebar--collapsed {
  width: 48px;
  padding: 10px 0;
  align-items: center;
}

.platform-sidebar--collapsed .platform-sidebar-logo {
  padding: 2px 0 10px;
  display: flex;
  justify-content: center;
}

.platform-sidebar--collapsed .platform-sidebar-item {
  justify-content: center;
  padding: 7px;
  margin: 0 4px;
  gap: 0;
}

.platform-app:has(.platform-sidebar--collapsed) {
  grid-template-columns: 48px 1fr;
}

/* Main content */
.platform-main {
  padding: 16px 20px;
  background: var(--white);
  overflow-x: auto;
  overflow-y: hidden;
}

.platform-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.platform-main-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.platform-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.platform-patient-name {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.platform-main-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.platform-btn {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: default;
  white-space: nowrap;
}

.platform-btn--primary { background: var(--accent); color: var(--white); }
.platform-btn--outline { border: 1px solid var(--border); color: var(--text-muted); background: var(--white); }
.platform-btn--sm { font-size: 0.62rem; padding: 3px 8px; background: var(--accent); color: var(--white); border-radius: 4px; }

.platform-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--white);
}

.platform-filter-pill {
  font-size: 0.65rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--white);
}

/* Stat cards */
.platform-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.platform-stat {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.platform-stat-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.platform-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Platform stat color variants */
.platform-stat--blue { background: #dbeafe; }
.platform-stat--blue .platform-stat-label,
.platform-stat--blue .platform-stat-value { color: #1e40af; }

.platform-stat--purple { background: #f3e8ff; }
.platform-stat--purple .platform-stat-label,
.platform-stat--purple .platform-stat-value { color: #9333ea; }

.platform-stat--green { background: #d1fae5; }
.platform-stat--green .platform-stat-label,
.platform-stat--green .platform-stat-value { color: #059669; }

.platform-stat--red { background: #fee2e2; }
.platform-stat--red .platform-stat-label,
.platform-stat--red .platform-stat-value { color: #dc2626; }

.platform-stat--yellow { background: #fef3c7; }
.platform-stat--yellow .platform-stat-label,
.platform-stat--yellow .platform-stat-value { color: #d97706; }

.platform-stat--indigo { background: #e0e7ff; }
.platform-stat--indigo .platform-stat-label,
.platform-stat--indigo .platform-stat-value { color: #4f46e5; }

/* Quick actions */
.platform-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.platform-quick-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.platform-quick-card small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.platform-quick-card svg { color: var(--text-muted); flex-shrink: 0; }

.platform-quick-card--purple {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7c3aed;
}

.platform-quick-card--purple svg { color: #7c3aed; }

/* Section headers */
.platform-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

/* Recent list */
.platform-recent-list {
  display: flex;
  flex-direction: column;
}

.platform-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0ee;
  font-size: 0.75rem;
}

.platform-recent-item:last-child { border-bottom: none; }
.platform-recent-name { font-weight: 600; color: var(--text); flex: 1; }
.platform-recent-date { color: var(--text-muted); font-size: 0.68rem; }

/* Mock table */
.platform-mock-table {
  width: 100%;
  border-collapse: collapse;
}

.platform-mock-table th {
  text-align: left;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
}

.platform-mock-table td {
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text);
  border-bottom: 1px solid #f0f0ee;
  vertical-align: middle;
}

.platform-mock-table tr:last-child td { border-bottom: none; }
.platform-td-name { font-weight: 600; }
.platform-td-muted { color: var(--text-muted); font-size: 0.68rem; }

/* Badges */
.platform-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 600;
}

.platform-badge--green { background: #f0fdf4; color: #16a34a; }
.platform-badge--yellow { background: #fffbeb; color: #d97706; }
.platform-badge--blue { background: #eff6ff; color: #2563eb; }
.platform-badge--purple { background: #faf5ff; color: #9333ea; }
.platform-badge--red { background: #fef2f2; color: #dc2626; font-size: 0.5rem; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.platform-badge--muted { background: #f1f5f9; color: #64748b; }

.platform-link {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  cursor: default;
}

.platform-source-badge {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Expanded biomarker row */
.platform-expanded-row {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.platform-expanded-header {
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: #fafaf9;
}

/* Chart mock */
.platform-chart-mock {
  overflow: hidden;
}

.platform-chart-area {
  padding: 10px 10px 0;
  display: flex;
  gap: 0.4rem;
}

.platform-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-muted);
  min-width: 20px;
  text-align: right;
}

.platform-chart-svg {
  flex: 1;
  height: 140px;
}

.platform-chart-x-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-muted);
  padding: 4px 10px 0 2rem;
}

.platform-chart-latest {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: #fafaf9;
}

.platform-chart-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.platform-chart-delta {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Report marketplace cards */
.platform-report-marketplace {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.platform-report-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-report-card svg {
  color: var(--text-muted);
  margin-bottom: 2px;
}

.platform-report-card strong {
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.3;
}

.platform-report-card p {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.platform-report-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .platform-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-report-marketplace {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .platform-tabs {
    gap: 0.35rem;
  }

  .platform-tab {
    font-size: 0.72rem;
    padding: 0.45rem 0.85rem;
  }

  .platform-tab svg {
    display: none;
  }

  .platform-browser {
    /* zoom (not transform: scale) so the layout box shrinks — no margin hacks.
       Standardised in CSS since Interop 2024; supported in all evergreen browsers. */
    zoom: 0.55;
  }
}

@media (max-width: 600px) {
  .platform-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-quick-actions {
    grid-template-columns: 1fr;
  }

  .platform-report-marketplace {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FAQ Page
   ============================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition), background 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
  background: rgba(13, 115, 119, 0.03);
  border-radius: 4px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: none;
}

.faq-link {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: none;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-section ul li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0.15rem 0;
  list-style: disc;
}

.legal-contact {
  margin-top: 0.75rem;
  color: var(--text) !important;
  font-weight: 500;
}

.legal-contact a {
  color: var(--accent);
  font-weight: 500;
}

.legal-contact a:hover {
  text-decoration: underline;
}

/* ============================================
   Pricing Page
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 115, 119, 0.08);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.1);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-amount {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.pricing-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pricing-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: none;
}

.pricing-details {
  max-width: 860px;
  margin: clamp(3rem, 2rem + 3vw, 5rem) auto 0;
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--border);
}

.pricing-details-header {
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.pricing-details-header h3 {
  margin-bottom: 0.5rem;
}

.pricing-details-header p {
  max-width: 560px;
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.pricing-features-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-feature {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pricing-feature-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.pricing-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pricing-feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .pricing-features-grid,
  .pricing-features-grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .pricing-features-grid,
  .pricing-features-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Trust & Security Section (Homepage)
   ============================================ */
.trust-section {
  background: var(--bg-alt);
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.trust-badge {
  text-align: center;
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-4px);
}

.trust-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  color: var(--accent);
  overflow: visible;
}

.trust-badge-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trust-badge h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trust-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: none;
}

.trust-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.trust-detail {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-detail h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.trust-detail p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .trust-details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .trust-details {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }
.text-center { text-align: center; }
.bg-alt { background: var(--bg-alt); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Sidebar logo in collapsed state */
.platform-sidebar-logo img {
  height: 20px;
  width: auto;
}

.platform-sidebar--collapsed .platform-sidebar-logo img {
  object-fit: cover;
  object-position: left;
  max-width: 24px;
}

.platform-sidebar-avatar--centered {
  margin: 0 auto;
}

/* Inline badge spacing */
.platform-badge--inline {
  margin-left: 4px;
  font-size: 0.55rem;
}

/* ============================================
   Overflow & Scroll Protection
   ============================================ */

/* Scrollable table wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent nowrap overflow on small screens */
@media (max-width: 600px) {
  .platform-badge,
  .snapshot-cat,
  .pricing-popular {
    white-space: normal;
  }

  .snapshot-chart-val {
    white-space: normal;
  }
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
  .float-badge {
    animation-duration: 10s !important;
  }

  .tide-wave {
    animation-duration: 20s !important;
  }

  .reveal {
    transition-duration: 0.5s;
  }

  .reveal-stagger > * {
    transition-duration: 0.4s;
  }
}

/* Disable heavy animations on touch devices */
@media (pointer: coarse) {
  .float-badge {
    animation: none;
  }

  .node-pulse {
    animation: none;
    opacity: 0.8;
  }
}

/* Text containers word-break safety */
.chapter-content,
.legal-section,
.faq-answer,
.snapshot-body {
  overflow-wrap: break-word;
  word-break: break-word;
}
