/* ================================================================
   dragIT — Design System (Phase 4)
   ================================================================
   Principles:
   - Single source of truth for tokens
   - No inline styles in HTML
   - Generous whitespace, not lines/gradients
   - 3 type sizes max per section
   - Components are reusable
   ================================================================ */

/* ── TOKENS ── */
:root {
  /* Type */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Size scale (rem) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.75rem;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color */
  --ink: #0A0A2E;
  --navy: #0E0067;
  --navy-deep: #020031;
  --accent: #0B63FF;
  --accent-hover: #0852CC;
  --surface: #F5F6FA;
  --surface-alt: #EBEDF5;
  --white: #FFFFFF;
  --text: #1A1D2E;
  --text-muted: #5B5E6E;
  --border: #E4E6EF;
  --success: #0E9F6E;
  --error: #E23E57;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 10, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 10, 46, 0.10);
  --shadow-lg: 0 12px 40px rgba(10, 10, 46, 0.14);

  /* Layout */
  --container: 1120px;
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

/* Anchor jump targets: leave room for the sticky nav (O18) */
[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

/* ── LAYOUT ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy-deep); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.75); }

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: var(--space-2) 0;
}
.btn-ghost:hover { color: var(--accent-hover); }

/* ── METRIC GRID (Track Record) ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  padding: var(--space-8) 0;
}
.metric {
  text-align: center;
}
.metric-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.metric-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── NICHE ROWS ── */
.niche-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.niche-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  cursor: pointer;
  background: var(--white);
}
.niche-row:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.niche-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.niche-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.niche-content p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.niche-arrow {
  font-size: var(--text-xl);
  color: var(--accent);
  transition: transform 0.2s;
}
.niche-row:hover .niche-arrow { transform: translateX(4px); }

/* ── CASE CARDS ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.25s;
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.case-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.case-card .case-metric {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.case-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.case-card .case-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto var(--space-8);
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--navy);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  padding: var(--space-2) 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
/* Mobile hamburger (injected by js/site.js, kept in CSS only) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: var(--space-16) 0 var(--space-8);
  font-size: var(--text-sm);
}
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer h3,
.footer h4 {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--space-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── FORMS ── */
.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 99, 255, 0.1);
}

/* ── HERO ── */
.hero {
  padding: 9rem 0 7rem;
  background: var(--white);
}
.hero-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
  border: 3px solid var(--accent);
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-name {
  font-size: var(--text-4xl);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero-byline {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin: -6px 0 14px;
  letter-spacing: -0.01em;
}
.hero-tag {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ── PROOF STRIP ── */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.proof-item {
  text-align: center;
}
.proof-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.proof-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
}

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 5rem 2.5rem;
  text-align: center;
  color: var(--white);
}
.cta-block h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-block .cta-lead {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-calendly {
  max-width: 600px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-calendly iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}
.cta-alt-hint {
  font-size: var(--text-sm);
  opacity: 0.6;
  margin-bottom: 16px;
}
.cta-alt-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-invert-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-invert-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-icon { display: inline-block; margin-right: 8px; }

/* ── FOOTER EXTRAS ── */
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--white);
  margin: 0 0 12px;
}
.footer-blurb {
  max-width: 280px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer-links { display: flex; gap: 24px; }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel[hidden] { display: none; }

/* ── REGION GATE (two faces: EN / SR, routed by geolocation, no visible switch) ── */
html.region-gate body { visibility: hidden; }
.region-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: none; /* shown only while html.region-gate is set */
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
html.region-gate .region-loading { display: flex; }
.region-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rg-spin 0.8s linear infinite;
}
@keyframes rg-spin { to { transform: rotate(360deg); } }

/* Language switching is intentionally NOT a visible control:
   the EN/SR face is resolved by geolocation (js/site.js region gate).
   ?lang=en / ?lang=sr remain as URL bypasses for testing only. */

/* ── UTILITIES ── */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-840 { max-width: 840px; }
.maxw-hero { max-width: 820px; }
.maxw-640 { max-width: 640px; }

/* ── 404 / ERROR PAGE ── */
.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.error-sub {
  max-width: 540px;
}

/* ── CASE DETAIL (full case article on cases.html) ── */
.case-detail {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.case-detail-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.case-detail-metric {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.case-detail-metric-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}
.case-detail h2 {
  font-size: var(--text-xl);
  margin-bottom: 16px;
}
.case-detail p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.case-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 20px;
}

/* ── NAV ACTIVE ── */
.nav-links a.nav-active {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

/* ── COMPACT HERO + FLUSH SECTION ── */
.hero-compact {
  padding: 5rem 0 3rem;
}
.section--flush-top {
  padding-top: 0;
}

/* ── DARK-OVERLAY OVERRIDES (on section--dark) ── */
.section--dark .section-title,
.section--dark .section-subtitle {
  color: var(--white);
}
.section--dark .section-subtitle {
  opacity: 0.75;
}
.section--dark .section-label {
  color: #7DA9FF;
}

/* ── ALIGN UTILITIES ── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── FEATURE GRID (approach pillars) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.feature-grid.center {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.25s;
}
.feature-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-tile h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--navy);
}
.feature-tile p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
/* Tiles with two paragraphs (the "three steps" row) read as one block; the second
   paragraph carries the concrete outcome and gets its own breathing room. */
.feature-tile p + p {
  margin-top: var(--space-4);
}
.section-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: var(--space-4) 0 0;
}
.section-note a {
  color: var(--primary);
  text-decoration: underline;
}
.feature-tile .ft-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
}
.feature-grid.center .feature-tile {
  text-align: center;
}
.feature-grid.center .feature-tile .ft-icon {
  justify-self: center;
}

/* ── SPLIT (two-column section: text + figure) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.split figure {
  margin: 0;
}
.split figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.split figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
  font-style: italic;
}
@media (max-width: 768px) {
  /* Two columns plus the gap do not fit a phone: the text column keeps its
     min-content width, the figure shrinks to ~100px and the section overflows
     the viewport. Stack it instead. Measured 2026-10-02 (d365-fo at 360px). */
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
.bullets {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
}
.bullets li {
  position: relative;
  padding: 0 0 0 28px;
  margin-bottom: var(--space-3);
  color: var(--text);
  line-height: 1.6;
}
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-12);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── MARGIN UTILITIES ── */
.mt-8 { margin-top: var(--space-8); }

/* ── DOCUMENT PAGES (privacy, legal) ── */
body.page-doc { padding: var(--space-16) 0; }
.doc-wrap { max-width: 680px; margin: 0 auto; }
.doc-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}
.doc-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}
.doc-wrap h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}
.doc-wrap p {
  line-height: 1.7;
  margin-bottom: var(--space-4);
  color: var(--text);
}
.doc-back {
  margin-top: var(--space-12);
}
.mt-12 { margin-top: var(--space-12); }
.text-center { text-align: center; }

/* ── LEAD FORM (4 fields + consent) ── */
.lead-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.lead-form h2 {
  font-size: var(--text-xl);
  margin-bottom: 8px;
}
.lead-form .form-intro {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
}
.lead-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-form .form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 20px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.lead-form .form-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 20px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}
.form-note {
  text-align: center;
  margin-top: 20px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.form-note a { color: var(--accent); }
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  margin-top: 16px;
}
.form-status.ok {
  display: block;
  background: #E7F7EF;
  color: #0E6B48;
  border: 1px solid #B8E6CC;
}
.form-status.err {
  display: block;
  background: #FCECEE;
  color: #B32231;
  border: 1px solid #F3C0C7;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .hero-name { font-size: var(--text-3xl); }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) var(--space-6);
  }
  .nav-burger { display: flex; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .niche-row { grid-template-columns: 1fr; }
  .niche-icon { display: none; }
  .niche-arrow { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--space-16) 0; }
  .hero { padding: 5rem 0 4rem; }
  .proof-strip { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-block { padding: 3rem 1.5rem; }
  .cta-calendly iframe { height: 460px; }
  .lead-form .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
  .hero-name { font-size: var(--text-2xl); }
  .hero-byline { font-size: var(--text-base); margin: -4px 0 12px; }
  .hero-byline { font-size: var(--text-base); margin: -4px 0 12px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section { padding: var(--space-12) var(--space-6); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
}

/* Honeypot anti-spam (hidden from humans) */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- TRUST STRIP / WHY TABLE / HERO PAIN (Phase-4 polish) ---- */
.client-strip-block { padding: 2.2rem 0; background: #f6f8fb;
  border-top: 1px solid var(--border, #e5e8ef); border-bottom: 1px solid var(--border, #e5e8ef); }
.client-label { text-align: center; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted, #5a6472); margin-bottom: 1.1rem; }
.client-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.6rem 2.4rem; }
.client-wordmark { font-family: var(--font-heading, inherit); font-weight: 600; font-size: 1.05rem;
  color: var(--ink, #111); opacity: .62; letter-spacing: .02em; transition: opacity .2s; }
.client-wordmark:hover { opacity: 1; }
.trust-line { text-align: center; color: var(--muted, #5a6472); font-size: .85rem; margin-top: 1.25rem; }
/* Why comparison table */
.why-table { overflow-x: auto; }
.why-cols { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; min-width: 640px;
  border: 1px solid var(--border, #e5e8ef); border-radius: 14px; overflow: hidden; }
.why-row { display: contents; }
.why-cell { padding: .85rem 1rem; border-bottom: 1px solid var(--border, #e5e8ef); font-size: .92rem; color: var(--ink, #111); }
.why-cols .why-row:last-child .why-cell { border-bottom: 0; }
.why-head .why-cell { font-weight: 700; background: #f6f8fb; }
.why-dim { color: var(--muted, #5a6472); font-weight: 500; }
.why-cell.m-yes, .why-cell.m-no, .why-cell.m-mid { font-weight: 500; }
.why-cell.m-yes::before, .why-cell.m-no::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: .35rem; vertical-align: -1px; background: no-repeat center / contain; }
.why-cell.m-yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7d3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.why-cell.m-no::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.why-cell.m-mid::before { content: "\7e "; color: #8a6d00; font-weight: 700; margin-right: .3rem; }
/* Hero pain-mirror line */
.hero-pain { font-size: 1.02rem; line-height: 1.55; color: var(--muted, #5a6472);
  text-align: center; max-width: 42rem; margin: 1rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--border, #e5e8ef); }
.hero-pain strong { color: var(--ink, #111); font-weight: 600; }

/* ---- ABOUT / PERSONAL PROFILE PAGE ---- */
.about-hero { display: flex; gap: var(--space-8, 2.5rem); align-items: flex-start; padding: 4rem 0 3rem; }
.about-hero .hero-avatar { flex: 0 0 220px; width: 220px; height: 220px; margin: 0; }
.about-hero .hero-avatar img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.about-hero-meta { flex: 1; }
.about-hero-meta h1 { font-family: var(--font-heading); font-size: var(--text-3xl); line-height: 1.1;
  margin: .2rem 0 .6rem; }
.about-hero-meta .hero-tag { max-width: 46rem; }
/* Timeline */
.timeline { margin-top: var(--space-8, 2.5rem); border-left: 2px solid var(--border); padding-left: 1.6rem; }
.timeline-item { position: relative; padding-bottom: 1.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -2.25rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline-item .t-role { font-weight: 600; font-size: 1.02rem; }
.timeline-item .t-org { color: var(--muted); font-size: .9rem; margin: .1rem 0 .45rem; }
.timeline-item ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.timeline-item li { margin-bottom: .3rem; font-size: .92rem; line-height: 1.5; }
.timeline-item li::marker { color: var(--accent); }
/* Credentials */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-top: var(--space-8, 2.5rem); }
.cred-card { background: #f6f8fb; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; }
.cred-card .cred-ico { font-size: 1.6rem; margin-bottom: .5rem; }
.cred-card h3 { font-family: var(--font-heading); font-size: 1rem; margin: 0 0 .5rem; min-height: 2.6em; }
.cred-card p { font-size: .85rem; line-height: 1.5; color: var(--muted); margin: 0; }
.cred-card p.form-note { text-align: left; margin: .5rem 0 0; }
.cred-card ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.cred-card li { font-size: .85rem; line-height: 1.55; }
.pub-list { list-style: none; padding: 0; margin: var(--space-6, 1.5rem) 0 0; }
.pub-list li { font-size: .88rem; line-height: 1.5; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.pub-list li:last-child { border-bottom: 0; }
.pub-list .pub-auth { font-weight: 600; }
@media (max-width: 768px) {
  .about-hero { flex-direction: column; align-items: center; text-align: center; }
  .about-hero .hero-avatar { flex: none; width: 160px; height: 160px; }
  .about-hero .hero-avatar img { width: 160px; height: 160px; }
  .about-hero-meta { flex: none; }
  .about-hero-meta .hero-tag { margin: 0 auto; }
}

/* ============================================================
   PHASE 4 — REVIEW 8.1 → 10.0 COMPONENT LAYER
   accessibility · third-party vouch · FAQ · sticky CTA
   ============================================================ */

/* ── Accessibility: visible keyboard focus ring (WCAG 2.4.7) ── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav a:focus-visible,
.btn:focus-visible,
.niche-row:focus-visible,
.case-card:focus-visible,
.tab:focus-visible {
  outline-offset: 3px;
}

/* Skip link — visually hidden until focused (WCAG 2.4.1 bypass blocks) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 99999;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus {
  top: 0;
}

/* ── Contrast bump: ensure muted meets AA on white (4.5:1) ── */
:root {
  --muted: #43465a;
  --ink: #0A0A2E;
}

/* ── Third-party vouch: customer quote + assurance strip ── */
.vouch-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.vouch-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.vouch-quote blockquote {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 var(--space-4);
}
.vouch-quote .vouch-attr {
  font-size: var(--text-sm);
  color: var(--muted);
}
.vouch-quote .vouch-attr strong { color: var(--ink); font-weight: 600; }
.vouch-quotes { display: grid; gap: var(--space-4); }
.vouch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.vouch-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--white);
}
.vouch-stat .vs-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.vouch-stat .vs-lbl {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}
/* Micro-assurance row under CTA (reply time, no drip, GDPR) */
.assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-start;
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--muted);
}
.assurance-row .assr-item { display: inline-flex; align-items: center; gap: 6px; }
.assurance-row .assr-ico { color: var(--success); font-weight: 700; }

/* ── FAQ accordion (details/summary, a11y-friendly) ── */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform .2s;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 20px 18px;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}
.faq-item .faq-body p { margin-bottom: 8px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ── Sticky mobile CTA bar (appears after hero, below 860px) ── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -6px 24px rgba(10,10,46,0.28);
  padding: 12px var(--space-6);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.16,1,.3,1);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .sc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
}
.sticky-cta .sc-text { color: rgba(255,255,255,0.9); font-size: var(--text-sm); line-height: 1.3; }
.sticky-cta .sc-text strong { color: var(--white); display: block; }
.sticky-cta .sc-btn {
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  flex-shrink: 0;
}
.sticky-cta .sc-btn:hover { background: var(--accent-hover); }
@media (max-width: 860px) {
  body.has-sticky-cta .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 74px; }
}

/* ── Desktop exit-intent nudge (single, non-intrusive) ── */
.exit-nudge {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(140%);
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  max-width: 440px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s;
}
.exit-nudge.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.exit-nudge .en-title { font-family: var(--font-heading); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.exit-nudge .en-sub { font-size: var(--text-sm); color: var(--muted); margin-bottom: 14px; }
.exit-nudge .en-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.exit-nudge .en-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
}

/* ── Reduced motion: respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .sticky-cta, .exit-nudge, .case-card, .niche-row, .feature-tile {
    transition: none !important;
  }
  .sticky-cta.show { transform: translateY(0); }
  .exit-nudge.show { transform: translateX(-50%) translateY(0); }
}

/* ── Responsive: vouch + FAQ ── */
@media (max-width: 768px) {
  .vouch-block { grid-template-columns: 1fr; }
  .vouch-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .vouch-grid { grid-template-columns: 1fr; }
}

/* ---- Authority / research components (Phase 4.5) ---- */
.hero-cred-chip { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; justify-content: center; }
.hero-cred-chip span { font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); background: #eef1f7; border: 1px solid var(--border);
  padding: .32rem .7rem; border-radius: 999px; }
.pub-list .pub-doi { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.pub-subhead { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
  margin: var(--space-5, 1.25rem) 0 .35rem; }
.pub-rlink { font-size: .85rem; color: var(--muted); margin-top: 1.1rem; }
.pub-rlink a { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
  .hero-cred-chip { gap: .4rem; }
  .hero-cred-chip span { font-size: .7rem; padding: .28rem .55rem; }
}


/* === Phase H polish (rev3) === */
.scroll-hint { display: none; }
@media (max-width: 768px) {
  .scroll-hint { display: block; font-size: var(--text-xs); color: var(--muted); margin: 0 0 8px; }
}
.footer ul li a, .footer-links a { display: inline-block; padding: 5px 0; }
/* Calendly consent facade — the third-party iframe loads only after a click */
.cta-calendly iframe[hidden] { display: none; }
.cal-facade {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cal-facade svg { width: 32px; height: 32px; color: var(--accent); }
.cal-facade-title { margin: 0; font-family: var(--font-heading); font-size: var(--text-lg);
  font-weight: 600; color: var(--ink); }
.cal-facade-note { margin: 0; max-width: 48ch; font-size: var(--text-sm); color: var(--muted); }
.cal-facade-note a { text-decoration: underline; }
.cta-calendly.cal-loaded .cal-facade { display: none; }

/* ── GA4 CONSENT BANNER (deferred Consent Mode) ── */
/* z-index must stay above .sticky-cta and .exit-nudge (both z-index 200):
   on mobile they are fixed at the bottom and would otherwise cover the
   consent buttons, leaving the visitor unable to accept or decline. */
.consent-banner {
  position: fixed;
  left: var(--space-4, 1rem);
  bottom: var(--space-4, 1rem);
  z-index: 300;
  max-width: 420px;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e5e8ef);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 .75rem; font-size: .85rem; line-height: 1.5; color: var(--text, #1a1d2e); }
.consent-banner a { text-decoration: underline; color: inherit; }
.consent-actions { display: flex; gap: .5rem; }
.consent-actions .btn { flex: 1; justify-content: center; padding: .5rem .75rem; font-size: .85rem; }

/* ── INLINE SVG ICONS (emoji replacement, O8) ── */
.svg-ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ft-icon .svg-ico { width: 28px; height: 28px; color: var(--accent); }
.niche-icon .svg-ico { width: 24px; height: 24px; color: var(--navy); }
.cred-card .cred-ico .svg-ico { width: 26px; height: 26px; color: var(--accent); }
.tab .svg-ico { width: 16px; height: 16px; margin-right: .4rem; position: relative; top: -1px; }

/* Links inside running text: distinguish by more than color (axe link-in-text-block, O17) */
.form-note a, .error-sub a, .section-subtitle a, .doc-back a, .cta-lead a { text-decoration: underline; text-underline-offset: 2px; }
