/* ═══════════════════════════════════════
   SCIENTARI — TEMPORAL DESIGN ANALYSIS
   trialreadiness.com landing page
   ═══════════════════════════════════════ */

:root {
  --purple: #6d5c99;
  --purple-deep: #4a3d6b;
  --purple-dark: #2d2545;
  --purple-light: #8a7db3;
  --amber: #e8a838;
  --amber-light: #f5c96a;
  --amber-dark: #c48a20;
  --teal: #2eb8a6;
  --teal-dark: #259485;
  --white: #ffffff;
  --off-white: #faf9fc;
  --gray-50: #f7f6f9;
  --gray-100: #efedf3;
  --gray-200: #d8d4e0;
  --gray-400: #9b95a8;
  --gray-600: #6b6578;
  --gray-800: #3a3545;
  --gray-900: #1e1a28;
  --font-display: 'Titillium Web', 'Helvetica Neue', sans-serif;
  --font-italic-serif: 'Crimson Pro', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-w: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-dark); }

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

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(45,37,69,0.08); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 98px;
}
.nav-logo { padding: 30px 0 15px; line-height: 0; }
.nav-logo img { height: 53px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
  letter-spacing: 0.02em; transition: color var(--transition);
}
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--purple); color: var(--white) !important;
  border-radius: 6px; font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--purple-deep); color: var(--white) !important; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  padding: 9rem 0 5rem;
  background: linear-gradient(170deg, var(--gray-900) 0%, var(--purple-dark) 45%, var(--purple-deep) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(109,92,153,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(232,168,56,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; margin-bottom: 1.5rem;
  background: rgba(232,168,56,0.15); border: 1px solid rgba(232,168,56,0.3);
  border-radius: 100px; color: var(--amber-light);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  color: var(--white); line-height: 1.15; margin-bottom: 1.25rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-family: var(--font-italic-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--amber);
}
.hero-sub {
  font-size: 1.125rem; color: rgba(255,255,255,0.72); line-height: 1.7;
  max-width: 560px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; background: var(--amber); color: var(--gray-900);
  font-weight: 700; font-size: 0.875rem; border-radius: 6px;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,168,56,0.3); color: var(--gray-900); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; background: transparent;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 0.875rem; border-radius: 6px;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all var(--transition); cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); background: rgba(255,255,255,0.05); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; text-align: center;
}
.stat-number {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--purple); line-height: 1; margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-detail { font-size: 0.875rem; color: var(--gray-400); margin-top: 0.25rem; }

/* ─── SECTIONS ─── */
/* Alternating backgrounds: white (default / .section-light) and gray (.section-dark).
   Keep adjacent sections on opposite shades down each page. */
section { padding: 5rem 0; background: var(--white); }
.section-dark { background: var(--gray-50); }
.section-light { background: var(--white); }

.section-header {
  text-align: center; max-width: 640px; margin: 0 auto 3.5rem;
}
.section-label {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: var(--gray-900); line-height: 1.2; margin-bottom: 1rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.section-header h2 em {
  font-family: var(--font-italic-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--amber-dark);
}
.section-header p { font-size: 1.0625rem; color: var(--gray-600); line-height: 1.7; }

/* ─── PROBLEM ─── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.problem-text h3 {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gray-900);
  margin-bottom: 1rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em;
}
.problem-text p { color: var(--gray-600); margin-bottom: 1.25rem; }
.problem-callout {
  padding: 1.5rem; background: var(--white);
  border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.problem-callout strong { color: var(--purple-deep); }
.problem-visual {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-deep) 100%);
  border-radius: 12px; padding: 2.5rem; color: var(--white);
}
.problem-stat-row { display: flex; gap: 2rem; margin-bottom: 2rem; }
.problem-stat { flex: 1; text-align: center; }
.problem-stat .big {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--amber); line-height: 1; margin-bottom: 0.25rem;
}
.problem-stat .label { font-size: 0.8125rem; color: rgba(255,255,255,0.65); }
.problem-bar {
  background: rgba(255,255,255,0.1); border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: 0.75rem;
  display: flex; justify-content: space-between; align-items: center;
}
.problem-bar .indication { font-size: 0.875rem; font-weight: 500; }
.problem-bar .failure-pct { font-size: 0.875rem; font-weight: 700; color: var(--amber-light); }

/* ─── WHAT WE DELIVER ─── */
.deliver-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.deliver-card {
  padding: 2rem; background: var(--white); border-radius: 10px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.deliver-card:hover { border-color: var(--gray-200); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.deliver-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--white); font-size: 1.125rem; font-weight: 700;
}
.deliver-card h4 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.deliver-card p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }

/* ─── EVIDENCE ─── */
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.evidence-chart {
  background: var(--white); border-radius: 12px; border: 1px solid var(--gray-100);
  padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.evidence-chart h4 {
  font-size: 0.875rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 1.5rem; text-align: center;
}
.bar-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: flex; align-items: center; gap: 0.75rem; }
.bar-label { width: 100px; font-size: 0.8125rem; font-weight: 500; color: var(--gray-600); text-align: right; flex-shrink: 0; }
.bar-track { flex: 1; height: 24px; background: var(--gray-100); border-radius: 4px; position: relative; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-light) 100%);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; color: var(--white);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.amber { background: linear-gradient(90deg, var(--amber-dark) 0%, var(--amber) 100%); }
.bar-n { font-size: 0.8125rem; color: var(--gray-400); width: 60px; flex-shrink: 0; }

.evidence-points h3 {
  font-family: var(--font-display); font-size: 1.375rem; color: var(--gray-900); font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em;
}
.evidence-item {
  display: flex; gap: 1rem; margin-bottom: 0.85rem;
  padding-bottom: 0;
}
.evidence-item:last-child { margin-bottom: 0; }
.evidence-marker {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700;
}
.evidence-item h5 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.evidence-item p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* ─── PROCESS ─── */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 16.67%; right: 16.67%;
  height: 2px; background: var(--gray-200);
}
.process-step { text-align: center; position: relative; padding: 0 1.5rem; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  margin: 0 auto 1.25rem; position: relative; z-index: 1;
  box-shadow: 0 4px 12px rgba(109,92,153,0.25);
}
.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }
.process-timeline {
  text-align: center; margin-top: 2.5rem;
  font-size: 0.9375rem; color: var(--gray-600);
}
.process-timeline strong { color: var(--purple); }

/* ─── TRIAL EXAMPLES ─── */
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.example-card {
  background: var(--white); border-radius: 10px; padding: 2rem;
  border: 1px solid var(--gray-100); position: relative;
}
.example-badge {
  position: absolute; top: -12px; right: 1.5rem;
  padding: 0.3rem 0.875rem; border-radius: 4px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.03em;
}
.example-badge-good { background: var(--green); color: var(--white); }
.example-badge-risk { background: var(--red); color: var(--white); }
.example-trs-score {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1; font-weight: 700;
  margin-bottom: 0.75rem; letter-spacing: -0.02em;
}
.example-trs-score span { font-size: 1.5rem; opacity: 0.4; }
.example-trs-good { color: var(--green); }
.example-trs-risk { color: var(--red); }
.example-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.375rem; }
.example-meta { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 1.25rem; }
.example-why {
  padding: 1.125rem; border-radius: 6px;
  background: rgba(39,174,96,0.04); border-left: 3px solid var(--green);
}
.example-why-risk {
  background: rgba(192,57,43,0.04); border-left-color: var(--red);
}
.example-why h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.375rem; color: var(--gray-600); }
.example-why p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }

/* ─── PATHWAY CARDS ─── */
.validation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.validation-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px;
  padding: 1.75rem; border-top: 3px solid var(--purple);
}
.validation-card h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.validation-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }
.pathway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.pathway-card {
  padding: 2rem; background: var(--white); border-radius: 10px;
  border: 1px solid var(--gray-100); position: relative;
  transition: all 0.3s ease;
}
.pathway-card:hover { border-color: var(--gray-200); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.pathway-badge {
  position: absolute; top: -10px; right: 1.5rem;
  background: var(--amber); color: var(--gray-900);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 4px;
}
.pathway-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pathway-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.pathway-desc { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 1.25rem; line-height: 1.65; }
.pathway-details { margin-bottom: 1rem; }
.pathway-detail {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: var(--gray-600); padding: 0.25rem 0;
}
.pathway-check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pathway-fit {
  font-size: 0.8125rem; color: var(--gray-400); font-style: italic;
  padding-top: 0.75rem; border-top: 1px solid var(--gray-100);
}
.pathway-custom {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-deep) 100%);
  border-radius: 10px; padding: 2rem; color: var(--white);
}
.pathway-custom h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--amber); }
.pathway-custom p { font-size: 0.9375rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ─── AUDIENCE ─── */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.audience-card {
  padding: 1.75rem; background: var(--white); border-radius: 10px;
  border: 1px solid var(--gray-100); text-align: center;
}
.audience-card h4 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }

/* ─── CTA ─── */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(170deg, var(--purple-dark) 0%, var(--purple-deep) 60%, var(--gray-900) 100%);
  position: relative;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,168,56,0.06) 0%, transparent 60%);
}
.cta-inner {
  position: relative; z-index: 1; text-align: center; max-width: 600px; margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--white); margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cta-inner h2 em {
  font-family: var(--font-italic-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--amber);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-section h2 em {
  font-family: var(--font-italic-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--amber);
}
.cta-inner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.0625rem; line-height: 1.7; }
.cta-form {
  max-width: 480px; margin: 0 auto 1rem;
}
.cta-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-bottom: 0.625rem;
}
.cta-form .form-row.full { grid-template-columns: 1fr; }
.cta-form input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; color: var(--white); font-size: 0.875rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.cta-form input::placeholder { color: rgba(255,255,255,0.35); }
.cta-form input:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,0.12); }
.cta-form input.error { border-color: #e74c3c; }
.cta-form button {
  width: 100%; padding: 0.875rem 1.75rem; margin-top: 0.25rem;
  background: var(--amber); color: var(--gray-900);
  border: none; border-radius: 6px; font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  font-family: var(--font-body); transition: all var(--transition);
}
.cta-form button:hover { background: var(--amber-light); }
.cta-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.cta-form .form-msg {
  text-align: center; font-size: 0.8125rem; margin-top: 0.5rem;
  min-height: 1.25rem;
}
.cta-form .form-msg.success { color: #2ecc71; }
.cta-form .form-msg.error { color: #e74c3c; }
.consent-row { margin-top: 0.25rem; }
.consent-label {
  display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer;
  font-size: 0.8125rem; color: rgba(255,255,255,0.55); line-height: 1.4;
}
.consent-label input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--amber); cursor: pointer;
}
.method-row { margin-top: 0.375rem; }
.method-label {
  font-size: 0.8125rem; color: rgba(255,255,255,0.55); margin-bottom: 0.375rem;
}
.method-optional { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
.method-options { display: flex; gap: 1.25rem; }
.method-check {
  display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
  font-size: 0.8125rem; color: rgba(255,255,255,0.6);
}
.method-check input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--amber); cursor: pointer;
}
.cta-fine { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }
.cta-note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.cta-note p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* ─── FOOTER ─── */
footer {
  background: var(--gray-900); padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
}
.footer-brand a { display: inline-block; line-height: 0; transition: opacity 0.2s ease; }
.footer-brand a:hover { opacity: 0.85; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.8125rem; color: rgba(255,255,255,0.4); max-width: 280px; line-height: 1.6; }
.footer-links h5 {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.75rem;
}
.footer-links a {
  display: block; font-size: 0.8125rem; color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem; transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem; color: rgba(255,255,255,0.3); text-align: center;
}

/* ─── MOBILE ─── */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--gray-600); margin: 4px 0; transition: all var(--transition); }

@media (max-width: 768px) {
  .nav-logo img { height: 34px; width: auto; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 98px; left: 0; right: 0; background: var(--white);
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .hero { padding: 7rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .problem-grid, .evidence-grid { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps::before { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .validation-grid { grid-template-columns: 1fr; }
  .method-options { flex-direction: column; gap: 0.5rem; }
  .cta-form .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .stat-number { font-size: 2rem; }
}

/* ─── TRIAGE CARDS ─── */
.triage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.triage-card {
  background: var(--white); border-radius: 10px; padding: 1.75rem;
  border: 1px solid var(--gray-100); position: relative; padding-top: 2.5rem;
}
.triage-tier {
  position: absolute; top: -1px; left: 1.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: 0 0 6px 6px;
  color: var(--white);
}
.triage-1 { border-top: 3px solid #27AE60; }
.triage-1 .triage-tier { background: #27AE60; }
.triage-2 { border-top: 3px solid #F39C12; }
.triage-2 .triage-tier { background: #F39C12; }
.triage-3 { border-top: 3px solid #C0392B; }
.triage-3 .triage-tier { background: #C0392B; }
.triage-card h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.triage-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }
.triage-examples {
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem; color: var(--gray-400); line-height: 1.65;
}
.triage-examples strong { color: var(--gray-600); }

/* ─── TDS COMPONENT CARDS (evidence page) ─── */
.tds-component-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tds-component-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem 1.25rem 1.5rem;
  border: 1px solid var(--gray-100);
  position: relative;
}
.tds-component-tag {
  position: absolute;
  top: -1px;
  left: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 6px 6px;
  color: var(--white);
}
.tds-c-alignment    { border-top: 3px solid var(--purple); }
.tds-c-alignment    .tds-component-tag { background: var(--purple); }
.tds-c-coverage     { border-top: 3px solid var(--teal); }
.tds-c-coverage     .tds-component-tag { background: var(--teal); }
.tds-c-extensibility{ border-top: 3px solid var(--purple-deep); }
.tds-c-extensibility .tds-component-tag { background: var(--purple-deep); }
.tds-c-velocity     { border-top: 3px solid var(--amber); }
.tds-c-velocity     .tds-component-tag { background: var(--amber); color: var(--gray-900); }
.tds-component-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.tds-component-card p {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .tds-component-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tds-component-grid { grid-template-columns: 1fr; }
}

/* ─── DCT SECTION ─── */
.dct-problem {
  max-width: 780px; margin: 0 auto 3rem;
}
.dct-problem h3 {
  font-family: var(--font-display); font-size: 1.375rem; color: var(--gray-900); font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.dct-problem p {
  font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.75rem;
}
.dct-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem;
}
.dct-card {
  background: var(--white); border-radius: 10px; padding: 1.75rem;
  border: 1px solid var(--gray-100);
}
.dct-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.dct-card h4 {
  font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem;
}
.dct-item {
  font-size: 0.8125rem; color: var(--gray-600); padding: 0.375rem 0 0.375rem 1.5rem;
  position: relative; line-height: 1.5;
}
.dct-item::before {
  position: absolute; left: 0; font-weight: 700; font-size: 0.875rem;
}
.dct-gain::before { content: '+'; color: #27AE60; }
.dct-loss::before { content: '\2212'; color: #C0392B; }
.dct-neutral::before { content: '\2022'; color: var(--gray-400); }
.dct-score {
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem; color: var(--gray-600);
}
.dct-solution {
  max-width: 780px; margin: 0 auto 2.5rem;
}
.dct-solution h3 {
  font-family: var(--font-display); font-size: 1.375rem; color: var(--gray-900); font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.dct-solution > p {
  font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.5rem;
}
.dct-approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.dct-approach {
  background: var(--white); border-radius: 10px; padding: 1.5rem;
  border: 1px solid var(--gray-100); border-top: 3px solid var(--purple);
}
.dct-approach h5 {
  font-size: 0.875rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem;
}
.dct-approach p {
  font-size: 0.8125rem; color: var(--gray-600); line-height: 1.65;
}
.dct-cta {
  max-width: 780px; margin: 0 auto; text-align: center;
  padding: 2rem; background: var(--white); border-radius: 10px;
  border: 1px solid var(--gray-100);
}
.dct-cta p {
  font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7;
}

@media (max-width: 768px) {
  .triage-grid { grid-template-columns: 1fr; }
  .dct-grid { grid-template-columns: 1fr; }
  .dct-approach-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   CAMPAIGN MONITOR EMBEDDED FORM
   Targets the .cm-form-wrap container on contact.html
   ═══════════════════════════════════════ */
.cm-form-wrap {
  max-width: 640px; margin: 1.5rem auto 0;
}
.cm-form-wrap form {
  display: block;
}
/* Each field is wrapped in <div><label>…</label><input></div> */
.cm-form-wrap form > div > div {
  margin-bottom: 1.25rem;
}
.cm-form-wrap label {
  display: block; font-family: var(--font-body); font-size: 0.875rem;
  font-weight: 600; color: var(--gray-800); margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.cm-form-wrap input[type="text"],
.cm-form-wrap input[type="email"],
.cm-form-wrap input:not([type]) {
  width: 100%; padding: 0.7rem 0.85rem;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cm-form-wrap input:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 92, 153, 0.15);
}
/* Interest fieldset */
.cm-form-wrap fieldset {
  border: none; margin: 1.5rem 0; padding: 1.25rem;
  background: var(--gray-50); border-radius: 8px;
  border-left: 3px solid var(--purple);
}
.cm-form-wrap fieldset > label {
  font-size: 0.95rem; color: var(--purple-deep); margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}
.cm-form-wrap fieldset > div {
  display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.5rem;
}
.cm-form-wrap fieldset > div label {
  font-weight: 400; font-size: 0.875rem; color: var(--gray-800); margin-bottom: 0;
  cursor: pointer; line-height: 1.45;
}
.cm-form-wrap input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15rem; cursor: pointer;
  accent-color: var(--purple);
}
/* Privacy consent */
.cm-form-wrap input#cm-privacy-consent + label {
  font-weight: 400; font-size: 0.8125rem; color: var(--gray-600);
}
.cm-form-wrap div:has(> #cm-privacy-consent) {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-top: 1.5rem; padding: 0.85rem;
  background: var(--gray-50); border-radius: 6px;
}
/* Submit button */
.cm-form-wrap button[type="submit"] {
  display: block; width: 100%; margin-top: 1.5rem;
  padding: 0.95rem 1.5rem; border: none; border-radius: 6px;
  background: var(--purple); color: var(--white);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cm-form-wrap button[type="submit"]:hover {
  background: var(--purple-deep); transform: translateY(-1px);
}
.cm-form-wrap button[type="submit"]:active {
  transform: translateY(0);
}

/* ═══ TIMEPOINT MISMATCH CARDS (evidence page #mismatches) ═══ */
.tpm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.tpm-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.35rem;
  transition: border-color var(--transition), transform var(--transition);
}
.tpm-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}
.tpm-ctx {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.6rem;
}
.tpm-card h4 {
  font-size: 1.0625rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--purple-dark);
}
.tpm-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.tpm-flag {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
  border-left: 3px solid var(--teal);
  padding: 0.15rem 0 0.15rem 0.75rem;
}
.tpm-flag strong { color: var(--teal-dark); font-weight: 700; }
@media (max-width: 720px) {
  .tpm-grid { grid-template-columns: 1fr; }
}
