/* ============================================================
   EpiphanyMade — Styles
   All layout + component styles. Imports brand.css for tokens.
   ============================================================ */

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

/* ---- Global ---- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-body);
  line-height: var(--leading-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--leading-heading);
}

h1 { font-size: var(--text-h1); font-weight: var(--weight-bold); letter-spacing: var(--tracking-h1); }
h2 { font-size: var(--text-h2); font-weight: var(--weight-bold); letter-spacing: var(--tracking-h2); }
h3 { font-size: var(--text-h3); font-weight: var(--weight-semibold); }

a { color: var(--color-teal); text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { color: var(--color-teal-light); }

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

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-section-x); }

.section { padding: var(--space-section) 0; position: relative; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-lime); color: var(--color-lime-text);
  border: none; border-radius: var(--radius-md);
  padding: 16px 36px;
  font-family: var(--font-body); font-size: var(--text-button);
  font-weight: var(--weight-semibold); letter-spacing: var(--tracking-button);
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  position: relative;
}
.btn-primary:hover {
  background: var(--color-lime-hover); color: var(--color-lime-text);
  transform: translateY(-1px); box-shadow: var(--glow-lime-sm);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hero-ghost-bg); color: rgba(255,255,255,0.7);
  border: 1px solid var(--hero-ghost-border);
  border-radius: var(--radius-md); padding: 16px 36px;
  font-family: var(--font-body); font-size: var(--text-button);
  font-weight: var(--weight-semibold); letter-spacing: var(--tracking-button);
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: all var(--duration-fast) ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.25); }

.btn-ghost-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--color-teal);
  border: 1px solid var(--color-teal);
  border-radius: var(--radius-md); padding: 14px 28px;
  font-family: var(--font-body); font-size: var(--text-button);
  font-weight: var(--weight-semibold); letter-spacing: var(--tracking-button);
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: all var(--duration-fast) ease;
}
.btn-ghost-outline:hover { background: var(--color-teal); color: white; border-color: var(--color-teal); }

.btn-small { padding: 10px 20px; font-size: var(--text-small); border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-link {
  background: none; border: none; color: var(--color-teal); font-family: var(--font-body);
  font-size: var(--text-small); cursor: pointer; padding: 0; text-decoration: underline;
  transition: color var(--duration-fast) ease;
}
.btn-link:hover { color: var(--color-teal-light); }

/* ============================================================
   SECTION LABELS (pill badges)
   ============================================================ */
.section-label {
  display: inline-block;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.18);
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.section-label--light {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section-label--lime {
  color: var(--color-lime);
  background: rgba(132,204,22,0.08);
  border-color: rgba(132,204,22,0.2);
}

/* ============================================================
   GRADIENT BORDER PATTERN
   Uses background-clip technique (reliable across browsers).
   Usage: add class="gradient-border" to the element.
   ============================================================ */
.gradient-border {
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) ease;
}
/* On dark sections — use the teal→lime gradient border */
.section--dark .gradient-border {
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-card-border) border-box;
  border: 1px solid transparent;
}
/* Hover effect on light sections */
.section:not(.section--dark) .gradient-border:hover {
  border-color: transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-card-border) border-box;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: var(--space-sm); }

.form-label {
  display: block; font-size: var(--text-small);
  font-weight: var(--weight-medium); color: var(--color-heading); margin-bottom: 6px;
}
.form-label span { color: var(--color-muted); font-weight: var(--weight-regular); }

.form-input {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-body); font-size: var(--text-body);
  color: var(--color-body); background: white;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  outline: none; transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  resize: vertical;
}
.form-input::placeholder { color: var(--color-faint); }
.form-input:focus { border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(8,145,178,0.1); }
.form-input.error { border-color: var(--color-error); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

.form-error { font-size: var(--text-xs); color: var(--color-error); margin-top: 4px; }
.form-hint { font-size: var(--text-xs); color: var(--color-muted); margin-top: 4px; }

.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--text-small); color: var(--color-secondary); cursor: pointer; line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--color-teal);
}
.checkbox-label a { color: var(--color-teal); text-decoration: underline; }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(8,145,178,0.2);
  border-top-color: var(--color-teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
.spinner--lg { width: 40px; height: 40px; border-width: 3px; }

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  transition: background var(--duration-med) ease, box-shadow var(--duration-med) ease, border-color var(--duration-med) ease;
  border-bottom: 1px solid transparent;
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 20px var(--space-section-x);
}

.nav__logo {
  font-family: var(--font-heading); font-size: 20px; font-weight: var(--weight-semibold);
  color: white; text-decoration: none; letter-spacing: -0.3px;
  transition: color var(--duration-fast) ease;
}

.nav__links {
  display: flex; align-items: center; gap: var(--space-lg); list-style: none;
}

.nav__link {
  font-size: var(--text-small); font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color var(--duration-fast) ease;
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px;
  background: var(--color-teal-light);
  transition: width var(--duration-fast) ease;
}
.nav__link:hover { color: white; }
.nav__link:hover::after { width: 100%; }

/* Nav CTA button in nav */
.nav__cta {
  background: var(--color-lime); color: var(--color-lime-text) !important;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: var(--text-small); font-weight: var(--weight-semibold);
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease !important;
  margin-left: var(--space-xs);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--color-lime-hover); transform: translateY(-1px); }

/* Scrolled state — glassmorphism */
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav.scrolled .nav__logo { color: var(--color-navy); }
.nav.scrolled .nav__link { color: var(--color-secondary); }
.nav.scrolled .nav__link:hover { color: var(--color-heading); }
.nav.scrolled .nav__link::after { background: var(--color-teal); }

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
  padding: 0; position: relative; z-index: 110; gap: 5px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px; background: white; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.scrolled .nav__hamburger span { background: var(--color-heading); }

/* Mobile nav dropdown */
.nav__dropdown {
  display: flex; /* overridden on mobile */
}

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__links.nav__dropdown {
    display: none; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7,30,43,0.97); backdrop-filter: blur(16px);
    padding: 100px var(--space-section-x) var(--space-xl);
    gap: var(--space-md); z-index: 105;
  }
  .nav__links.nav__dropdown.open { display: flex; }
  .nav__link {
    font-size: 22px; font-weight: var(--weight-semibold); color: white;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__link:hover { color: var(--color-teal-light); }
  .nav__cta {
    text-align: center; padding: 16px; margin-left: 0 !important; border-radius: var(--radius-md);
  }
  .nav__inner { padding: 16px var(--space-section-x); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding-bottom: 60px;
}

/* High-performance technical grid background */
.hero__bg-grid {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,145,178,0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8,145,178,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  pointer-events: none;
  opacity: 0.4;
}

.hero__photo {
  position: absolute; inset: 0;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

.hero__teal-wash {
  position: absolute; inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse 80% 70% at 50% 45%,
    rgba(8, 145, 178, 0.08) 0%,
    rgba(6, 30, 50, 0.45) 50%,
    rgba(8, 22, 40, 0.80) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 8; text-align: center;
  max-width: 800px; width: 100%;
  padding: 0 var(--space-section-x);
  padding-top: calc(80px + 4vh);
}


.hero__overline {
  font-size: var(--text-small); font-weight: var(--weight-medium);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-teal-light); margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.hero__headline {
  color: var(--hero-text); margin-bottom: var(--space-md);
  line-height: 1.05; font-size: var(--text-h1); font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h1);
  text-shadow: 0 2px 24px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.5);
}

.hero__sub {
  font-size: var(--text-body-lg); color: rgba(255,255,255,0.95);
  margin-bottom: var(--space-xl); line-height: var(--leading-relaxed);
  max-width: 640px; margin-left: auto; margin-right: auto;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

.hero__ctas {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: var(--space-sm);
}

.hero__scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 7; color: rgba(255,255,255,0.4);
  text-decoration: none; animation: scroll-bounce 2s ease-in-out infinite;
  transition: color var(--duration-fast) ease;
}
.hero__scroll-indicator:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .hero__headline { font-size: 32px; letter-spacing: -1.5px; }
  .hero__sub { font-size: 17px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn-primary, .hero__ctas .btn-ghost { width: 100%; max-width: 320px; }
  .hero__scroll-indicator { display: none; }
}

/* ============================================================
   SECTION BACKGROUNDS & VARIANTS
   ============================================================ */
.section--dark {
  background: var(--gradient-dark-section);
  color: white;
}
.section--dark h2, .section--dark h3 { color: white; }
.section--dark p { color: rgba(255,255,255,0.75); }

.section--teal { background: var(--bg-section-teal); }
.section--light { background: var(--bg-section-light); }
.section--white { background: white; }
.section--intake { background: var(--gradient-intake); }
.section--approach { background: white; }

/* Section header layout */
.section__header {
  text-align: center; margin-bottom: var(--space-2xl);
}
.section__header h2 { margin-bottom: 12px; }
.section__sub {
  font-size: var(--text-body-lg); color: var(--color-secondary);
  max-width: 600px; margin: 0 auto; line-height: var(--leading-relaxed);
}

.section__header--light h2 { color: white; }
.section__header--light .section__sub { color: rgba(255,255,255,0.65); }

/* Dot grid overlay */
.section__dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(8,145,178,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}
.section__dot-grid + .container { position: relative; z-index: 1; }

/* Line grid overlay */
.section__line-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(226,232,240,0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226,232,240,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}
.section__line-grid + .container { position: relative; z-index: 1; }

/* Section background accent (radial gradient decorations on dark sections) */
.section__bg-accent {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,0.12) 0%, transparent 70%);
}
.section__bg-accent--quiz {
  width: 600px; height: 600px; top: -200px; right: -150px; z-index: 0;
}

/* Top line accent (dark sections) */
.section__top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(8,145,178,0.4) 50%, transparent 100%);
}

/* ============================================================
   WORKFLOWS SECTION — Premium Dark Glassmorphism
   ============================================================ */
.section--workflows {
  /* Subtle dot grid texture layered on the dark gradient */
  background:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px),
    var(--gradient-dark-section);
  background-size: 24px 24px, 100% 100%;
  overflow: visible;
}

/* Gradient text on section heading */
.section--workflows .section__header h2 {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--color-teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Workflow stack layout ---- */
.workflows__stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

/* Golden thread — vertical connector between cards */
.workflows__stack::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(8,145,178,0.4) 0%,
    rgba(132,204,22,0.35) 50%,
    rgba(8,145,178,0.4) 100%);
  border-radius: 1px;
  opacity: 0.3;
  z-index: 0;
}

/* ---- Flow card base — glassmorphism ---- */
.wf-flow {
  border-radius: var(--radius-xl);
  padding: 32px 36px 28px;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.wf-flow:hover {
  transform: translateY(-2px);
}

/* Border beam — animated gradient ring on card border (hover) */
.wf-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--beam-angle, 0deg), transparent 0%, transparent 70%, rgba(8,145,178,0.5) 80%, rgba(132,204,22,0.3) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wf-flow:hover::before {
  opacity: 1;
  animation: border-beam 4s linear infinite;
}

.wf-flow__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wf-flow__industry {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal-light);
  background: rgba(8,145,178,0.12);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(8,145,178,0.25);
}
.wf-flow__industry--lime {
  color: var(--color-lime);
  background: rgba(132,204,22,0.1);
  border-color: rgba(132,204,22,0.25);
}
.wf-flow__industry--light {
  color: var(--color-teal-light);
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.3);
}
.wf-flow__context {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.wf-flow__headline {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: white;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  max-width: 640px;
}

/* ---- Flow track (horizontal node strip) ---- */
.wf-flow__track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0 8px;
}

/* ---- Node base ---- */
.wf-flow__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.wf-flow__node-label {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* Node hover glow */
.wf-flow__node:hover {
  filter: brightness(1.15);
  transform: translateY(-2px) !important;
}

.wf-flow__node-icon {
  width: 24px;
  height: 24px;
  color: var(--color-teal-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-flow__node-icon svg {
  width: 24px;
  height: 24px;
}

.wf-flow__node-label {
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: white;
}
.wf-flow__node-detail {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ---- Tooltip on hover ---- */
.wf-flow__node[data-tooltip] {
  cursor: default;
}
.wf-flow__node[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.wf-flow__node[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Healthcare nodes: glass with teal left border ---- */
.wf-flow--healthcare .wf-flow__node {
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.25);
  border-left: 3px solid rgba(8,145,178,0.6);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  width: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wf-flow--healthcare .wf-flow__node:hover {
  box-shadow: 0 0 20px rgba(8,145,178,0.2);
}

/* ---- Service Providers nodes: glass pill with icon ---- */
.wf-flow--services .wf-flow__node--pill {
  background: rgba(132,204,22,0.05);
  border: 1px solid rgba(132,204,22,0.25);
  border-radius: var(--radius-lg);
  padding: 12px 8px 10px;
  width: 88px;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(132,204,22,0.06);
}
.wf-flow--services .wf-flow__node--pill:hover {
  box-shadow: 0 0 24px rgba(132,204,22,0.18);
  border-color: rgba(132,204,22,0.4);
}
.wf-flow--services .wf-flow__node-icon {
  width: 18px;
  height: 18px;
  color: var(--color-lime);
  margin-bottom: 0;
  opacity: 0.7;
}
.wf-flow--services .wf-flow__node-icon svg {
  width: 18px;
  height: 18px;
}
.wf-flow--services .wf-flow__node-label {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  line-height: 1.3;
}

/* ---- Data Pipeline nodes: glass with teal glow ---- */
.wf-flow--data .wf-flow__node {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(8,145,178,0.35);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  width: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wf-flow--data .wf-flow__node:hover {
  box-shadow: 0 0 24px rgba(8,145,178,0.25);
}
.wf-flow--data .wf-flow__node--circle {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  justify-content: center;
  padding: 10px;
  border-width: 2px;
  border-color: rgba(8,145,178,0.5);
  box-shadow: 0 0 30px rgba(8,145,178,0.12), inset 0 0 20px rgba(8,145,178,0.06);
}
.wf-flow--data .wf-flow__node--circle .wf-flow__node-icon {
  width: 28px;
  height: 28px;
}
.wf-flow--data .wf-flow__node--circle .wf-flow__node-icon svg {
  width: 28px;
  height: 28px;
}
.wf-flow--data .wf-flow__node--circle .wf-flow__node-label {
  font-size: 14px;
}
.wf-flow--data .wf-flow__node--circle .wf-flow__node-detail {
  font-size: 11px;
}
/* Knowledge Base — the payoff node, slightly larger + brighter glow */
.wf-flow--data .wf-flow__node--knowledge {
  width: 110px;
  border-color: rgba(8,145,178,0.5);
  background: rgba(8,145,178,0.1);
  box-shadow: 0 0 20px rgba(8,145,178,0.1);
}

/* ---- Data Pipeline branch: slanted SVG fan-out ---- */
.wf-flow__branch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(10px) scale(0.95);
}
.wf-flow__branch-lines {
  flex-shrink: 0;
  display: block;
}
.wf-flow__branch-nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Branch output cards — match data pipeline node style */
.wf-flow__node--branch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(8,145,178,0.35);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  width: 120px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
  /* Override .wf-flow__node base opacity — parent .wf-flow__branch handles animation */
  opacity: 1;
  transform: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.wf-flow__node--branch-item:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 24px rgba(8,145,178,0.25);
  transform: translateY(-2px) !important;
}
.wf-flow__node--branch-item .wf-flow__node-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: var(--color-teal-light);
}
.wf-flow__node--branch-item .wf-flow__node-icon svg {
  width: 22px;
  height: 22px;
}
.wf-flow__node--branch-item .wf-flow__node-label {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}

/* ---- Connector base ---- */
.wf-flow__connector {
  flex: 1;
  min-width: 16px;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Connector type 1: Solid + arrow + glow (Healthcare) */
.wf-flow__connector--solid {
  height: 2px;
  background: rgba(8,145,178,0.4);
  box-shadow: 0 0 8px rgba(8,145,178,0.3);
}
.wf-flow__connector--solid .wf-flow__connector-arrow {
  position: absolute;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 7px solid rgba(8,145,178,0.5);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Connector type 2: Dashed + traveling dot + glow (Service Providers) */
.wf-flow__connector--dashed {
  height: 0;
  border-top: 2px dashed rgba(132,204,22,0.4);
  background: none;
}
.wf-flow__connector--dashed .wf-flow__connector-dot {
  position: absolute;
  top: -4px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 8px rgba(132,204,22,0.5);
  opacity: 0;
}
.wf-flow.in-view .wf-flow__connector--dashed .wf-flow__connector-dot {
  animation: flow-dot-travel 1.8s ease-in-out 3.2s infinite;
}

/* Connector type 3: Gradient + data packet + glow (Data Pipeline) */
.wf-flow__connector--gradient {
  height: 3px;
  background: linear-gradient(90deg, rgba(8,145,178,0.3), rgba(8,145,178,0.6));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(8,145,178,0.2);
}
.wf-flow__connector--gradient .wf-flow__connector-packet {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal-light);
  box-shadow: 0 0 12px rgba(6,182,212,0.6);
  opacity: 0;
}
.wf-flow.in-view .wf-flow__connector--gradient .wf-flow__connector-packet {
  animation: data-packet-flow 1.8s ease-in-out 2.5s infinite;
}

/* Connector badge (count indicator) */
.wf-flow__connector-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--color-teal-light);
  white-space: nowrap;
  opacity: 0;
}

/* ---- Per-card accent differentiation ---- */
.wf-flow--healthcare {
  border-color: rgba(8,145,178,0.15);
}
.wf-flow--healthcare:hover {
  box-shadow: 0 8px 40px rgba(8,145,178,0.12), 0 0 30px rgba(8,145,178,0.08);
}

.wf-flow--services {
  border-color: rgba(132,204,22,0.12);
}
.wf-flow--services:hover {
  box-shadow: 0 8px 40px rgba(132,204,22,0.1), 0 0 30px rgba(132,204,22,0.06);
}

.wf-flow--data {
  border-color: rgba(8,145,178,0.2);
}
.wf-flow--data:hover {
  box-shadow: 0 8px 40px rgba(8,145,178,0.15), 0 0 30px rgba(8,145,178,0.1);
}

/* Data pipeline icon color — brighter on its card */
.wf-flow--data .wf-flow__node-icon { color: var(--color-teal-light); }

/* ---- Animation triggers: Healthcare (6 nodes, connectors at child 2,4,6,8,10) ---- */
.wf-flow--healthcare.in-view .wf-flow__node[data-step="1"] { animation: wf-node-reveal 0.5s var(--ease-out-expo) 0.1s forwards, wf-trigger-pulse 2s ease-in-out 2.8s infinite; }
.wf-flow--healthcare.in-view .wf-flow__track > :nth-child(2)  { animation: wf-connector-draw 0.35s ease 0.5s forwards; }
.wf-flow--healthcare.in-view .wf-flow__node[data-step="2"] { animation: wf-node-reveal 0.5s var(--ease-out-expo) 0.75s forwards; }
.wf-flow--healthcare.in-view .wf-flow__track > :nth-child(4)  { animation: wf-connector-draw 0.35s ease 1.15s forwards; }
.wf-flow--healthcare.in-view .wf-flow__node[data-step="3"] { animation: wf-node-reveal 0.5s var(--ease-out-expo) 1.4s forwards; }
.wf-flow--healthcare.in-view .wf-flow__track > :nth-child(6)  { animation: wf-connector-draw 0.35s ease 1.8s forwards; }
.wf-flow--healthcare.in-view .wf-flow__node[data-step="4"] { animation: wf-node-reveal 0.5s var(--ease-out-expo) 2.05s forwards; }
.wf-flow--healthcare.in-view .wf-flow__track > :nth-child(8)  { animation: wf-connector-draw 0.35s ease 2.45s forwards; }
.wf-flow--healthcare.in-view .wf-flow__node[data-step="5"] { animation: wf-node-reveal 0.5s var(--ease-out-expo) 2.7s forwards; }
.wf-flow--healthcare.in-view .wf-flow__track > :nth-child(10) { animation: wf-connector-draw 0.35s ease 3.1s forwards; }
.wf-flow--healthcare.in-view .wf-flow__node[data-step="6"] { animation: wf-node-reveal 0.5s var(--ease-out-expo) 3.35s forwards; }

/* ---- Animation triggers: Service Providers (7 nodes, connectors at child 2,4,6,8,10,12) ---- */
.wf-flow--services.in-view .wf-flow__node[data-step="1"] { animation: wf-node-reveal 0.4s ease 0.1s forwards; }
.wf-flow--services.in-view .wf-flow__track > :nth-child(2)  { animation: wf-connector-draw 0.3s ease 0.4s forwards; }
.wf-flow--services.in-view .wf-flow__node[data-step="2"] { animation: wf-node-reveal 0.4s ease 0.6s forwards; }
.wf-flow--services.in-view .wf-flow__track > :nth-child(4)  { animation: wf-connector-draw 0.3s ease 0.9s forwards; }
.wf-flow--services.in-view .wf-flow__node[data-step="3"] { animation: wf-node-reveal 0.4s ease 1.1s forwards; }
.wf-flow--services.in-view .wf-flow__track > :nth-child(6)  { animation: wf-connector-draw 0.3s ease 1.4s forwards; }
.wf-flow--services.in-view .wf-flow__node[data-step="4"] { animation: wf-node-reveal 0.4s ease 1.6s forwards; }
.wf-flow--services.in-view .wf-flow__track > :nth-child(8)  { animation: wf-connector-draw 0.3s ease 1.9s forwards; }
.wf-flow--services.in-view .wf-flow__node[data-step="5"] { animation: wf-node-reveal 0.4s ease 2.1s forwards; }
.wf-flow--services.in-view .wf-flow__track > :nth-child(10) { animation: wf-connector-draw 0.3s ease 2.4s forwards; }
.wf-flow--services.in-view .wf-flow__node[data-step="6"] { animation: wf-node-reveal 0.4s ease 2.6s forwards; }
.wf-flow--services.in-view .wf-flow__track > :nth-child(12) { animation: wf-connector-draw 0.3s ease 2.9s forwards; }
.wf-flow--services.in-view .wf-flow__node[data-step="7"] { animation: wf-node-reveal 0.4s ease 3.1s forwards; }

/* Last connector before branch — same flex as others for equal spacing */
.wf-flow--data .wf-flow__track > :nth-child(8) {
  flex: 1;
}

/* ---- Animation triggers: Data Pipeline (4 nodes + 4 connectors + branch) ---- */
/* Track: 1=circle, 2=conn, 3=node, 4=conn, 5=node, 6=conn, 7=knowledge, 8=conn, 9=branch */
.wf-flow--data.in-view .wf-flow__node[data-step="1"] { animation: wf-node-reveal 0.5s ease 0.1s forwards; }
.wf-flow--data.in-view .wf-flow__track > :nth-child(2) { animation: wf-connector-draw 0.4s ease 0.5s forwards; }
.wf-flow--data.in-view .wf-flow__node[data-step="2"] { animation: wf-node-reveal 0.5s ease 0.8s forwards; }
.wf-flow--data.in-view .wf-flow__track > :nth-child(4) { animation: wf-connector-draw 0.4s ease 1.2s forwards; }
.wf-flow--data.in-view .wf-flow__node[data-step="3"] { animation: wf-node-reveal 0.5s ease 1.5s forwards; }
.wf-flow--data.in-view .wf-flow__track > :nth-child(6) { animation: wf-connector-draw 0.4s ease 1.9s forwards; }
.wf-flow--data.in-view .wf-flow__node[data-step="4"] { animation: wf-node-reveal 0.5s ease 2.2s forwards; }
.wf-flow--data.in-view .wf-flow__track > :nth-child(8) { animation: wf-connector-draw 0.4s ease 2.5s forwards; }
.wf-flow--data.in-view .wf-flow__branch { animation: wf-branch-reveal 0.6s ease 2.8s forwards; }

/* ---- Workflow mobile ---- */
@media (max-width: 768px) {
  /* Hide golden thread on mobile */
  .workflows__stack::before {
    display: none;
  }

  .wf-flow {
    padding: 24px 20px 20px;
  }
  .wf-flow__headline {
    font-size: 16px;
  }
  .wf-flow__label {
    flex-wrap: wrap;
  }

  /* Hide tooltips on mobile (no hover) */
  .wf-flow__node[data-tooltip]::after {
    display: none;
  }

  /* All tracks: allow scroll on mobile */
  .wf-flow__track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .wf-flow__track::-webkit-scrollbar { display: none; }

  /* Healthcare: compress */
  .wf-flow--healthcare .wf-flow__node {
    width: 90px;
    padding: 10px;
  }
  .wf-flow--healthcare .wf-flow__node-detail {
    display: none;
  }
  .wf-flow--healthcare .wf-flow__connector {
    flex: 0 0 18px;
  }

  /* Service Providers: vertical stack on mobile */
  .wf-flow--services .wf-flow__track {
    flex-direction: column;
    align-items: flex-start;
  }
  .wf-flow--services .wf-flow__node--pill {
    width: auto;
    flex-direction: row;
    padding: 8px 14px;
    border-radius: 100px;
  }
  .wf-flow--services .wf-flow__node-icon {
    display: none;
  }
  .wf-flow--services .wf-flow__connector {
    flex: 0 0 auto;
    width: 0;
    height: 16px;
  }
  .wf-flow--services .wf-flow__connector--dashed {
    width: 0;
    height: 16px;
    border-top: none;
    border-left: 2px dashed rgba(132,204,22,0.4);
    margin-left: 20px;
  }

  /* Data Pipeline: compress */
  .wf-flow--data .wf-flow__node {
    width: 70px;
    padding: 8px 6px;
  }
  .wf-flow--data .wf-flow__node--circle {
    width: 80px;
    height: 80px;
  }
  .wf-flow--data .wf-flow__node--knowledge {
    width: 76px;
  }
  .wf-flow--data .wf-flow__connector {
    flex: 0 0 12px;
  }
  .wf-flow--data .wf-flow__node-detail {
    display: none;
  }
  .wf-flow__branch-lines {
    width: 16px;
    height: auto;
  }
  .wf-flow__branch-nodes {
    gap: 6px;
  }
  .wf-flow__node--branch-item {
    padding: 8px 6px;
    width: 64px;
  }
  .wf-flow__node--branch-item .wf-flow__node-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
  }
  .wf-flow__node--branch-item .wf-flow__node-icon svg {
    width: 18px;
    height: 18px;
  }
  .wf-flow__node--branch-item .wf-flow__node-label {
    font-size: 10px;
  }
}

/* ============================================================
   DEMO TABS & PANELS
   Tabbed container for the 4 interactive demos
   ============================================================ */
.section--demos {
  /* dark bg set by .section--dark */
}

/* Tab bar */
.demo-tabs {
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 4px;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.demo-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: none; background: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}
.demo-tab:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04);
}
.demo-tab--active {
  color: white;
  background: var(--color-teal);
  box-shadow: 0 2px 8px rgba(8,145,178,0.4);
}
.demo-tab--active:hover {
  background: var(--color-teal);
  color: white;
}

.demo-tab__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.demo-tab__label {}

/* Tab panels */
.demo-panel-wrap {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-panel-wrap--active {
  opacity: 1;
  transform: translateY(0);
}

/* Dark section overrides for form elements in voice/textback */
.section--demos .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.section--demos .form-input::placeholder { color: rgba(255,255,255,0.35); }
.section--demos .form-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}
.section--demos .form-label { color: rgba(255,255,255,0.7); }

/* Voice demo dark overrides */
.section--demos .voice-demo__info h3 { color: white; }
.section--demos .voice-demo__info p { color: rgba(255,255,255,0.6); }
.section--demos .voice-demo__features li { color: rgba(255,255,255,0.5); }
.section--demos .voice-demo__features li::before { color: var(--color-teal-light); }
.section--demos .voice-status { color: rgba(255,255,255,0.5); }
.section--demos .voice-timer { color: white; }
.section--demos .voice-cta { border-top-color: rgba(255,255,255,0.1); }
.section--demos .voice-cta p { color: rgba(255,255,255,0.5); }

/* Text-back demo dark overrides */
.section--demos .textback-demo__right h3 { color: white; }
.section--demos .textback-demo__right p { color: rgba(255,255,255,0.6); }
.section--demos .textback-consent { color: rgba(255,255,255,0.5); }
.section--demos .textback-consent a { color: var(--color-teal-light); }
.section--demos .textback-status { color: rgba(255,255,255,0.5); }
.section--demos .textback-otp__label { color: rgba(255,255,255,0.6); }
.section--demos .textback__otp-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.section--demos .textback__otp-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}
.section--demos .textback-cooldown { color: rgba(255,255,255,0.4); }

/* Tab bar mobile: horizontal scroll */
@media (max-width: 640px) {
  .demo-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { padding: 8px 14px; font-size: 13px; }
}

/* Icons-only below 480px */
@media (max-width: 480px) {
  .demo-tab__label { display: none; }
  .demo-tab { padding: 10px 14px; }
}

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-wrapper {
  max-width: 720px; margin: 0 auto;
}

.quiz-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-card-strong);
}

.quiz__progress {
  height: 3px; background: var(--color-border);
  border-radius: 2px; margin-bottom: var(--space-lg); overflow: hidden;
}
.quiz__progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--color-teal), var(--color-lime));
  border-radius: 2px; transition: width 0.3s ease; width: 0;
}

.quiz__start { text-align: center; }
.quiz__start-icon {
  width: 64px; height: 64px; margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, rgba(8,145,178,0.1), rgba(132,204,22,0.08));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-teal);
}
.quiz__start h3 { font-size: 26px; margin-bottom: 8px; }
.quiz__start p { color: var(--color-secondary); margin-bottom: var(--space-lg); max-width: 400px; margin-left: auto; margin-right: auto; }

.quiz__count { font-size: var(--text-small); color: var(--color-muted); margin-bottom: var(--space-xs); }
.quiz__text { font-size: var(--text-body-lg); font-weight: var(--weight-semibold); color: var(--color-heading); margin-bottom: var(--space-md); line-height: var(--leading-tight); }
.quiz__options { display: flex; flex-direction: column; gap: 10px; }

/* quiz__option created dynamically by quiz.js */
.quiz__option {
  display: block; width: 100%; text-align: left; padding: 14px 18px;
  background: var(--color-bg-alt); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); font-family: var(--font-body);
  font-size: var(--text-body); color: var(--color-body); cursor: pointer;
  transition: all var(--duration-fast) ease; line-height: 1.4;
}
.quiz__option:hover { border-color: var(--color-teal); background: var(--color-teal-bg); color: var(--color-heading); }
.quiz__option:focus { outline: 2px solid var(--color-teal); outline-offset: 2px; }

.quiz__score-display { text-align: center; margin-bottom: var(--space-lg); }
.quiz__score-top { line-height: 1; margin-bottom: 4px; }
.quiz__score-num {
  font-family: var(--font-heading); font-size: 72px; font-weight: var(--weight-bold);
  color: var(--color-teal);
}
.quiz__score-max {
  font-family: var(--font-heading); font-size: 28px; font-weight: var(--weight-medium);
  color: var(--color-muted); vertical-align: baseline;
}
.quiz__score-band {
  font-size: var(--text-body-lg); font-weight: var(--weight-bold);
  color: var(--color-heading); margin-top: 2px; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quiz__score-context {
  font-size: var(--text-body); color: var(--color-secondary);
  margin-top: 8px; max-width: 440px; margin-left: auto; margin-right: auto;
  line-height: var(--leading-relaxed);
}
/* Opportunity callout */
.quiz__opportunity {
  background: rgba(8,145,178,0.06);
  border-left: 3px solid var(--color-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}
.quiz__opportunity strong { color: var(--color-heading); }

/* Category progress bars */
.quiz__bars { margin-bottom: var(--space-sm); }
.quiz__bar-row { margin-bottom: 18px; }
.quiz__bar-row:last-child { margin-bottom: 0; }
.quiz__bar-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.quiz__bar-label {
  font-size: var(--text-body); font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
.quiz__bar-value {
  font-family: var(--font-heading); font-weight: var(--weight-bold);
  color: var(--color-teal); font-size: var(--text-body);
}
.quiz__bar-track {
  height: 8px; background: var(--color-border);
  border-radius: 4px; overflow: hidden;
}
.quiz__bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-lime));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

/* CTA block */
.quiz__cta-block {
  margin-top: var(--space-lg); padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.quiz__cta-pitch {
  font-size: var(--text-body); color: var(--color-body);
  line-height: var(--leading-relaxed); margin-bottom: var(--space-md);
  text-align: center;
}
.quiz__suggest-wrap { margin-bottom: var(--space-md); }
.quiz__suggest-wrap .form-label { font-size: var(--text-small); color: var(--color-secondary); margin-bottom: 6px; display: block; }

/* Discovery call CTA — warm, inviting teal (not the aggressive lime) */
.btn-discovery {
  display: block; width: 100%; text-align: center;
  background: var(--color-teal);
  color: #fff;
  border: none; border-radius: var(--radius-md);
  padding: 18px 32px;
  font-family: var(--font-body); font-size: var(--text-body-lg); font-weight: var(--weight-semibold);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(8,145,178,0.25);
}
.btn-discovery:hover {
  background: var(--color-teal-light);
  box-shadow: 0 4px 20px rgba(8,145,178,0.35);
  transform: translateY(-1px);
}
.btn-discovery:active {
  background: var(--color-teal-muted);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(8,145,178,0.2);
}
.quiz__cta-sub {
  text-align: center; margin-top: 10px;
  font-size: var(--text-small); color: var(--color-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .quiz-card { padding: 28px 20px; }
}

/* ============================================================
   EMAIL AI DEMO
   ============================================================ */
.email-demo {
  display: grid; grid-template-columns: 260px 1fr;
  gap: var(--space-md); align-items: start;
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.email-demo__types {
  padding: var(--space-md); background: var(--bg-section-light);
  border-right: 1px solid var(--color-border); min-height: 420px;
  display: flex; flex-direction: column; gap: var(--space-xs);
}

.email-demo__types-label {
  font-size: var(--text-small); font-weight: var(--weight-medium);
  color: var(--color-muted); margin-bottom: 4px; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 11px;
}

.email-type-btn {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; background: white;
  cursor: pointer; text-align: left; width: 100%;
  transition: all var(--duration-fast) ease;
}
.email-type-btn:hover { border-color: rgba(8,145,178,0.25); background: rgba(8,145,178,0.04); }
.email-type-btn.active {
  border-color: var(--color-teal); background: rgba(8,145,178,0.06);
  box-shadow: 0 0 0 1px rgba(8,145,178,0.1);
}

.email-type-btn__icon {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: var(--radius-sm); background: rgba(8,145,178,0.1);
  color: var(--color-teal);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast) ease;
}
.email-type-btn.active .email-type-btn__icon { background: rgba(8,145,178,0.15); }

.email-type-btn__name {
  display: block; font-size: 13px; font-weight: var(--weight-semibold);
  color: var(--color-heading); line-height: 1.3;
}
.email-type-btn__desc {
  display: block; font-size: var(--text-xs); color: var(--color-muted);
  margin-top: 2px; line-height: 1.4;
}

.email-demo__compose-area { padding: var(--space-md); }

/* Compose form */
.email-compose { display: flex; flex-direction: column; }
.email-compose__header {
  border: 1px solid var(--color-border); border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden; background: var(--bg-section-light);
}
.email-compose__row {
  display: flex; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--color-border); gap: 10px;
}
.email-compose__row:last-child { border-bottom: none; }
.email-compose__field-label { font-size: var(--text-small); color: var(--color-muted); flex-shrink: 0; width: 60px; }
.email-compose__field-value { font-size: 14px; color: var(--color-body); }
.email-compose__subject-hint { font-style: italic; color: var(--color-muted); }

.email-compose__body {
  border: 1px solid var(--color-border); border-top: none;
}
.email-compose__textarea {
  width: 100%; padding: 16px 14px;
  font-family: var(--font-body); font-size: var(--text-body);
  color: var(--color-body); background: white; border: none; outline: none;
  resize: none; min-height: 140px; line-height: var(--leading-body);
  border-radius: 0;
  transition: box-shadow var(--duration-fast) ease;
}
.email-compose__textarea:focus { box-shadow: 0 0 0 2px rgba(8,145,178,0.12) inset; }
.email-compose__textarea::placeholder { color: var(--color-faint); }

.email-compose__footer {
  border: 1px solid var(--color-border); border-top: none;
  padding: 12px 14px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-section-light);
}

/* Loading state */
.email-loading {
  text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--color-muted);
}
.email-loading .spinner { margin-bottom: var(--space-sm); }
.email-loading p { font-size: var(--text-small); color: var(--color-muted); margin-top: var(--space-sm); }

/* Response */
.email-response {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
}
.email-response__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: linear-gradient(135deg, rgba(8,145,178,0.06), rgba(132,204,22,0.04));
  border-bottom: 1px solid var(--color-border);
}
.email-response__badge {
  font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-teal);
  background: rgba(8,145,178,0.1); border: 1px solid rgba(8,145,178,0.2);
  padding: 3px 10px; border-radius: 100px;
}
.email-response__type-label { font-size: var(--text-small); color: var(--color-muted); }
.email-response__body {
  padding: var(--space-md) 20px; font-size: 15px;
  color: var(--color-body); line-height: 1.7; max-height: 360px; overflow-y: auto;
}
.email-response__body ol, .email-response__body ul { padding-left: 20px; margin: 8px 0; }
.email-response__body li { margin-bottom: 4px; }
.email-response__body strong { color: var(--color-heading); }
.email-response__actions {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 14px 20px; border-top: 1px solid var(--color-border);
  background: var(--bg-section-light);
}

/* slide-up animation class (added by JS on response show) */
.email-response.slide-up { animation: slide-up 0.4s var(--ease-out-expo) both; }

@media (max-width: 900px) {
  .email-demo { grid-template-columns: 1fr; }
  .email-demo__types {
    border-right: none; border-bottom: 1px solid var(--color-border);
    min-height: auto; display: flex; flex-direction: row; flex-wrap: wrap;
    gap: var(--space-xs); padding: 14px;
  }
  .email-demo__types-label { width: 100%; margin-bottom: 0; }
  .email-type-btn { flex: 1; min-width: 160px; }
}

@media (max-width: 640px) {
  .email-type-btn { min-width: 100%; }
  .email-response__actions { flex-direction: column; }
  .email-response__actions .btn-ghost-outline,
  .email-response__actions .btn-primary { width: 100%; }
}

/* Email error and validation */
.email-error {
  font-size: var(--text-small); color: #dc2626; margin: var(--space-xs) 0 0;
}
.email-input--error {
  border-color: #dc2626 !important;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
/* CTA banner above demo */
/* "Try it for real" CTA — inside demo card, secondary */
.email-demo__try-it {
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(8,145,178,0.06), rgba(132,204,22,0.06));
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.email-demo__try-it-text {
  font-size: 14px; color: var(--color-secondary); margin: 0;
}
.email-demo__try-it-text a { color: var(--color-teal); text-decoration: none; }
.email-demo__try-it-text a:hover { text-decoration: underline; }

/* ============================================================
   DATA ENRICHMENT DEMO
   ============================================================ */
.enrichment-demo {
  background: white; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card-strong);
}

/* Step indicators */
.enrichment-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: var(--space-md) var(--space-md) var(--space-xs);
}
.enrichment-step {
  display: flex; align-items: center; gap: 8px;
}
.enrichment-step__num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: var(--weight-semibold);
  border: 2px solid var(--color-border); color: var(--color-muted);
  transition: all 0.3s ease;
}
.enrichment-step__label {
  font-size: 13px; color: var(--color-muted); transition: color 0.3s ease;
}
.enrichment-step--active .enrichment-step__num {
  border-color: var(--color-teal); background: var(--color-teal); color: white;
}
.enrichment-step--active .enrichment-step__label {
  color: var(--color-heading); font-weight: var(--weight-medium);
}
.enrichment-step--completed .enrichment-step__num {
  border-color: var(--color-success); background: var(--color-success); color: white;
  font-size: 0;
}
.enrichment-step--completed .enrichment-step__num::after {
  content: '\2713'; font-size: 13px;
}
.enrichment-step__connector {
  width: 40px; height: 2px; background: var(--color-border);
  margin: 0 8px; transition: background 0.3s ease;
}
.enrichment-step__connector--filled { background: var(--color-success); }

/* Document cards */
.enrichment-stage {
  display: flex; gap: var(--space-md); align-items: stretch;
  padding: var(--space-sm) var(--space-md) var(--space-md);
}
.enrichment-docs {
  display: flex; flex-direction: column; gap: var(--space-xs);
  flex-shrink: 0;
}
.enrichment-doc-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 18px; background: white;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  cursor: grab; transition: all var(--duration-fast) ease;
  user-select: none; position: relative; min-width: 120px;
}
.enrichment-doc-card:hover {
  border-color: var(--color-teal-light);
  box-shadow: 0 4px 12px rgba(8,145,178,0.1);
  transform: translateY(-2px);
}
.enrichment-doc-card:active { cursor: grabbing; }
.enrichment-doc-card--dragging { opacity: 0.4; transform: scale(0.95); }
.enrichment-doc-card--loaded {
  opacity: 0.45; border-color: var(--color-success);
  cursor: default; pointer-events: none;
}
.enrichment-doc-card--loaded::after {
  content: '\2713'; position: absolute; top: 6px; right: 8px;
  color: var(--color-success); font-weight: bold; font-size: 14px;
}
.enrichment-doc-card__icon {
  width: 40px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); position: relative;
}
.enrichment-doc-card__ext {
  position: absolute; bottom: 2px; font-size: 9px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.enrichment-doc-card__icon--csv .enrichment-doc-card__ext { color: #16a34a; }
.enrichment-doc-card__icon--xlsx .enrichment-doc-card__ext { color: var(--color-teal); }
.enrichment-doc-card__icon--json .enrichment-doc-card__ext { color: #d97706; }
.enrichment-doc-card__name {
  font-size: 13px; font-weight: var(--weight-semibold); color: var(--color-heading);
  text-align: center; line-height: 1.2;
}
.enrichment-doc-card__meta {
  font-size: 11px; color: var(--color-muted);
}

/* Touch hint */
.enrichment-docs--touch .enrichment-doc-card::before {
  content: 'tap to add'; position: absolute; bottom: -2px;
  font-size: 9px; color: var(--color-muted); opacity: 0.6;
}
.enrichment-docs--touch .enrichment-doc-card--loaded::before { display: none; }

/* Drop zone */
.enrichment-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px; flex: 1; min-height: 120px;
  border: 2px dashed var(--color-border); border-radius: var(--radius-lg);
  background: var(--bg-section-light);
  cursor: pointer; transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.enrichment-dropzone > span { font-size: var(--text-small); color: var(--color-secondary); }
.enrichment-dropzone__formats { font-size: var(--text-xs) !important; color: var(--color-muted) !important; }
.enrichment-dropzone--active {
  border-color: var(--color-teal); background: rgba(8,145,178,0.04);
  transform: scale(1.01);
}
.enrichment-dropzone:hover { border-color: var(--color-teal-light); }
.enrichment-dropzone--has-files { border-style: solid; border-color: var(--color-teal-light); }

/* Badges inside drop zone */
.enrichment-dropzone__badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; justify-content: center;
}
.enrichment-dropzone__badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(8,145,178,0.08); color: var(--color-teal);
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500;
}
.enrichment-dropzone__badge em { font-style: normal; opacity: 0.7; }
.enrichment-dropzone__badge-x {
  background: none; border: none; color: var(--color-muted);
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0 2px;
  transition: color var(--duration-fast) ease;
}
.enrichment-dropzone__badge-x:hover { color: var(--color-error); }

/* Merge button in dedup */
.enrich-merge-btn {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: rgba(8, 145, 178, 0.08); color: var(--color-teal);
  border: 1px solid rgba(8, 145, 178, 0.2); cursor: pointer;
  transition: background var(--duration-fast) ease;
}
.enrich-merge-btn:hover { background: rgba(8, 145, 178, 0.15); }

/* Button pulse glow */
.btn--pulse {
  animation: btn-pulse 1.5s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8,145,178,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(8,145,178,0); }
}

.enrichment-toolbar {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: var(--bg-section-light);
}
.enrichment-status {
  font-size: var(--text-small); color: var(--color-secondary);
  transition: opacity var(--duration-fast) ease;
}

/* Table */
.enrichment-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.enrichment-table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px;
}
.enrichment-table thead th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-muted);
  border-bottom: 1px solid var(--color-border); white-space: nowrap;
}
.enrichment-table thead th:last-child { width: 80px; }

.enrich-row {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-fast) ease;
}
.enrich-row:last-child { border-bottom: none; }
.enrich-row:hover { background: rgba(8,145,178,0.025); }
.enrich-row.enriched { border-left: 3px solid var(--color-teal); }

.enrich-cell {
  padding: 14px 16px; color: var(--color-body);
  vertical-align: middle; line-height: 1.4;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.enrich-cell--empty {
  color: var(--color-faint); font-style: italic; font-size: 13px;
}
.enrich-cell--filling {
  animation: cell-fill 0.5s ease-out forwards;
}
.enrich-cell--filled {
  color: var(--color-heading); font-style: normal;
}

.enrich-action-cell { padding: 12px 16px; text-align: right; }
.enrich-btn {
  padding: 6px 14px; font-size: 12px; font-weight: var(--weight-semibold);
  background: rgba(8,145,178,0.08); color: var(--color-teal);
  border: 1px solid rgba(8,145,178,0.2); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--duration-fast) ease;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 60px;
}
.enrich-btn:hover { background: var(--color-teal); color: white; border-color: var(--color-teal); }
.enrich-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.enrich-btn--done {
  background: rgba(22,163,74,0.1); color: var(--color-success);
  border-color: rgba(22,163,74,0.2);
}
.enrich-btn--done:hover { background: var(--color-success); color: white; border-color: var(--color-success); }
.enrich-btn--merged {
  background: rgba(132,204,22,0.1); color: #166534;
  border-color: rgba(132,204,22,0.2); font-size: 11px;
}

/* Source column */
.enrich-cell--source {
  font-size: 12px; color: var(--color-muted); font-style: italic;
  background: rgba(0,0,0,0.015);
}

/* Duplicate row indicators */
.enrich-row--duplicate { background: rgba(251,191,36,0.04); }
.enrich-row--duplicate td { border-top: 1px dashed rgba(251,191,36,0.3) !important; }

.enrich-dup-badge {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-weight: var(--weight-semibold);
  padding: 1px 6px; border-radius: 3px;
  background: rgba(251,191,36,0.12); color: #b45309;
  border: 1px solid rgba(251,191,36,0.3); vertical-align: middle;
  font-style: normal; white-space: nowrap; letter-spacing: 0;
}
.enrich-dup-badge--merged {
  background: rgba(132,204,22,0.12); color: #166534;
  border-color: rgba(132,204,22,0.3);
}
.enrich-row--merged { background: rgba(132,204,22,0.04); }

.enrichment-cta {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
  background: var(--bg-section-light); text-align: center;
  font-size: var(--text-small); color: var(--color-secondary);
}
.enrichment-cta__link { color: var(--color-teal); font-weight: var(--weight-medium); }

@media (max-width: 768px) {
  .enrichment-stage { flex-direction: column; }
  .enrichment-docs { flex-direction: row; justify-content: center; }
  .enrichment-doc-card { min-width: 0; flex: 1; padding: 10px 12px; }
  .enrichment-step__label { display: none; }
  .enrichment-toolbar { flex-wrap: wrap; }
  .enrichment-table { min-width: 600px; }
}

/* ============================================================
   AI VOICE DEMO
   ============================================================ */
.voice-demo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
  max-width: 960px; margin: 0 auto;
}

.voice-demo__info h3 { color: var(--color-heading); font-size: 22px; margin-bottom: var(--space-xs); }
.voice-demo__info p { color: var(--color-secondary); margin-bottom: var(--space-md); line-height: var(--leading-relaxed); }
.voice-demo__features {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.voice-demo__features li {
  font-size: var(--text-small); color: var(--color-secondary);
  padding-left: 20px; position: relative;
}
.voice-demo__features li::before {
  content: '→'; position: absolute; left: 0; color: var(--color-teal); font-size: 12px;
}

/* Waveform bars */
.waveform {
  display: flex; align-items: center; gap: 4px;
  height: 36px; margin-top: var(--space-md);
}
.waveform__bar {
  width: 4px; border-radius: 2px; background: var(--color-teal);
  height: 8px; opacity: 0.3; transform-origin: center;
  transition: height 0.2s ease, opacity 0.2s ease;
}
/* Animated waveform when active — controlled by secretary.js adding .active class */
.waveform.active .waveform__bar {
  animation: waveform-bar 1s ease-in-out infinite;
  opacity: 0.7;
}
.waveform.active .waveform__bar:nth-child(1) { animation-delay: 0s; }
.waveform.active .waveform__bar:nth-child(2) { animation-delay: 0.1s; }
.waveform.active .waveform__bar:nth-child(3) { animation-delay: 0.2s; }
.waveform.active .waveform__bar:nth-child(4) { animation-delay: 0.3s; }
.waveform.active .waveform__bar:nth-child(5) { animation-delay: 0.15s; }
.waveform.active .waveform__bar:nth-child(6) { animation-delay: 0.25s; }
.waveform.active .waveform__bar:nth-child(7) { animation-delay: 0.05s; }

/* Voice right panel */
.voice-demo__right { text-align: center; }

.voice-demo__phone {
  font-size: 20px; font-weight: var(--weight-bold); margin-bottom: 4px;
}
.voice-demo__phone a {
  color: var(--color-teal); text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.voice-demo__phone a:hover { color: var(--color-teal-light); }
.voice-demo__or {
  font-size: var(--text-small); color: var(--color-muted);
  margin-bottom: var(--space-md); letter-spacing: 1px;
}

.voice-demo__stage {
  position: relative; width: 180px; height: 180px;
  margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center;
}

.voice-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(8,145,178,0.2);
}
.voice-ring--1 { inset: 10px; }
.voice-ring--2 { inset: 0; opacity: 0.5; }
.voice-ring--3 { inset: -16px; opacity: 0.25; }

.voice-mic-btn {
  position: relative; z-index: 1;
  width: 88px; height: 88px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  box-shadow: 0 8px 32px rgba(8,145,178,0.35);
}
.voice-mic-btn:hover { transform: scale(1.06); box-shadow: 0 12px 40px rgba(8,145,178,0.45); }
.voice-mic-btn:active { transform: scale(0.97); }
.voice-mic-btn.active { animation: mic-pulse 1.5s ease-in-out infinite; }

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8,145,178,0.4), 0 8px 32px rgba(8,145,178,0.35); }
  50% { box-shadow: 0 0 0 18px rgba(8,145,178,0), 0 8px 32px rgba(8,145,178,0.35); }
}

.voice-status { font-size: var(--text-small); color: var(--color-muted); margin-bottom: 6px; }
.voice-timer {
  font-family: var(--font-heading); font-size: var(--text-h3);
  font-weight: var(--weight-bold); color: var(--color-heading); margin-bottom: 6px;
}
.voice-error { font-size: var(--text-small); color: var(--color-error); margin-top: var(--space-xs); }
.voice-cta { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.voice-cta p { font-size: var(--text-small); color: var(--color-secondary); margin-bottom: var(--space-xs); }
.voice-end-btn { display: block; margin: var(--space-xs) auto 0; }

@media (max-width: 768px) {
  .voice-demo { grid-template-columns: 1fr; }
  .voice-demo__left { order: 2; }
  .voice-demo__right { order: 1; }
}

/* ============================================================
   TEXT-BACK DEMO
   ============================================================ */
.textback-demo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
  max-width: 900px; margin: 0 auto;
}

/* Phone mockup */
.phone-mockup {
  display: flex; justify-content: center;
}

.phone-mockup__screen {
  width: 220px; background: #1C1C1E;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  padding-bottom: 20px;
}

.phone-mockup__bar {
  background: #2C2C2E; padding: 14px 16px;
  text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-mockup__contact { font-size: 14px; font-weight: 600; color: white; }

/* Form area */
.textback-demo__right {}

/* Call-in option */
.textback-callin { text-align: center; padding-bottom: var(--space-sm); }
.textback-callin__title {
  font-size: var(--text-small); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-secondary); margin-bottom: 6px;
}
.textback-callin__number { font-size: 24px; font-weight: var(--weight-bold); }
.textback-callin__number a {
  color: var(--color-teal); text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.textback-callin__number a:hover { color: var(--color-teal-light); }
.textback-callin__desc { font-size: var(--text-small); color: var(--color-secondary); margin-top: 4px; }

/* Divider */
.textback-divider {
  display: flex; align-items: center; gap: var(--space-sm);
  margin: var(--space-md) 0; color: var(--color-muted); font-size: var(--text-small);
}
.textback-divider::before,
.textback-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border);
}

/* Option 2 header */
.textback-option2__title {
  font-size: var(--text-small); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-secondary); margin-bottom: var(--space-sm);
  text-align: center;
}


/* Auto-playing mockup messages */
.mockup-messages {
  padding: 16px 12px; display: flex; flex-direction: column; gap: 8px;
  min-height: 280px; max-height: 340px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.mockup-messages::-webkit-scrollbar { width: 4px; }
.mockup-messages::-webkit-scrollbar-track { background: transparent; }
.mockup-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.mockup-msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.4; color: white;
  animation: mockup-fade-in 0.3s ease both;
}
.mockup-msg--incoming {
  background: #3A3A3C; align-self: flex-start; border-bottom-left-radius: 4px;
}
.mockup-msg--outgoing {
  background: #0A84FF; align-self: flex-end; border-bottom-right-radius: 4px;
}
.mockup-msg--system {
  align-self: center; background: rgba(255,255,255,0.1);
  font-size: 11px; color: rgba(255,255,255,0.5);
  padding: 4px 12px; border-radius: 12px;
}
@keyframes mockup-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.textback-form-wrap .form-group { margin-bottom: var(--space-sm); }
.textback-consent { margin: var(--space-sm) 0; }
.textback-status { display: block; font-size: var(--text-small); color: var(--color-secondary); margin-top: var(--space-xs); min-height: 20px; }

.textback-otp-wrap {}
.textback-otp__label { font-size: var(--text-small); color: var(--color-secondary); margin-bottom: var(--space-sm); }
.textback-otp__inputs { display: flex; gap: 8px; justify-content: flex-start; margin-bottom: var(--space-sm); }

.textback__otp-input {
  width: 48px; height: 56px; text-align: center;
  font-family: var(--font-heading); font-size: 22px; font-weight: var(--weight-bold);
  color: var(--color-heading); background: white;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  outline: none; transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.textback__otp-input:focus {
  border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}

.textback-resend-wrap { display: flex; align-items: center; gap: 8px; margin-top: var(--space-xs); }
.textback-cooldown { font-size: var(--text-xs); color: var(--color-muted); }

.textback-result { margin-top: var(--space-sm); }
.textback-conversation { display: flex; flex-direction: column; gap: 8px; }

/* Conversation bubbles rendered by demos.js */
.textback__msg {
  max-width: 80%; padding: 10px 14px; border-radius: 14px;
  font-size: var(--text-small); line-height: 1.4;
}
.textback__msg--sent { background: var(--color-teal); color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.textback__msg--received { background: var(--color-bg-alt); color: var(--color-body); border-bottom-left-radius: 4px; }

@media (max-width: 768px) {
  .textback-demo { grid-template-columns: 1fr; }
  .phone-mockup { display: none; } /* hide mockup on mobile, form is enough */
  .textback-otp__inputs { justify-content: center; }
}

/* ============================================================
   IDEA VALIDATOR
   ============================================================ */
.intake-card {
  background: white; border-radius: var(--radius-xl);
  padding: 48px 44px; max-width: 640px; margin: 0 auto;
  box-shadow: 0 8px 40px rgba(8,145,178,0.1);
  min-height: 200px;
}

/* State 1: Initial textarea */
.idea-initial .form-label { margin-bottom: 10px; }
.idea-textarea { margin-bottom: var(--space-sm); min-height: 100px; }
.idea-textarea.error { border-color: var(--color-error); }
.idea-start-btn { margin-top: 4px; }

/* State 2: Chat conversation */
.idea-chat {
  display: flex; flex-direction: column;
  height: 420px;
}

.idea__messages {
  flex: 1; overflow-y: auto; padding: 0 0 var(--space-xs);
  display: flex; flex-direction: column; gap: 10px;
}

.idea__msg {
  max-width: 85%; padding: 12px 16px; border-radius: 16px;
  font-size: var(--text-small); line-height: 1.55;
  animation: slide-up 0.3s cubic-bezier(0.19, 1, 0.22, 1) both;
}
.idea__msg--bot {
  background: var(--color-bg-alt); color: var(--color-body);
  border-bottom-left-radius: 4px;
}
.idea__msg--user {
  background: var(--color-teal); color: white;
  margin-left: auto; border-bottom-right-radius: 4px;
}

/* Typing indicator */
.idea__typing {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 16px;
  background: var(--color-bg-alt); border-radius: 16px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.idea__typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.idea__typing span:nth-child(2) { animation-delay: 0.2s; }
.idea__typing span:nth-child(3) { animation-delay: 0.4s; }

/* Chat input area */
.idea__input-area {
  display: flex; align-items: center; gap: 8px;
  padding-top: var(--space-xs); border-top: 1px solid var(--color-border);
  margin-top: var(--space-xs);
}
.idea__input {
  flex: 1; padding: 12px 16px;
  border: 1px solid var(--color-border); border-radius: 24px;
  font-family: var(--font-body); font-size: var(--text-small);
  color: var(--color-body); background: white; outline: none;
  transition: border-color var(--duration-fast) ease;
}
.idea__input:focus { border-color: var(--color-teal); }
.idea__send {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--color-teal); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--duration-fast) ease;
}
.idea__send:hover { background: var(--color-teal-light, #0891b2); }

/* State 3: Email capture */
.idea-email-capture {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}
.idea-email-capture__prompt {
  font-size: var(--text-small); color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}
.idea-email-capture__row {
  display: flex; gap: 8px;
}
.idea-email-capture__row .form-input { flex: 1; }
.idea-email-capture__row .btn-primary { flex-shrink: 0; white-space: nowrap; }

/* State 4: Success */
.idea-success {
  text-align: center; padding: var(--space-xl) 0;
}
.idea-success__icon {
  width: 64px; height: 64px; margin: 0 auto var(--space-md);
  background: rgba(22,163,74,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-success);
}
.idea-success h3 { font-size: 26px; margin-bottom: 8px; }
.idea-success p { color: var(--color-secondary); }

@media (max-width: 768px) {
  .intake-card { padding: 28px 20px; }
  .idea-chat { height: 380px; }
  .idea-email-capture__row { flex-direction: column; }
}

/* ============================================================
   APPROACH SECTION
   ============================================================ */
.approach__steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; max-width: 900px; margin: 0 auto var(--space-xl);
}

.approach__step {
  flex: 1; text-align: center; padding: 0 var(--space-lg);
  position: relative;
}

.approach__number {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  color: white; font-family: var(--font-heading);
  font-size: 22px; font-weight: var(--weight-bold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
  box-shadow: var(--glow-teal-sm);
}

.approach__step h3 { font-size: 18px; color: var(--color-heading); margin-bottom: 8px; }
.approach__step p { font-size: var(--text-small); color: var(--color-secondary); line-height: 1.6; }

.approach__connector {
  flex-shrink: 0; width: 60px; height: 2px;
  background: linear-gradient(90deg, rgba(8,145,178,0.3), rgba(8,145,178,0.1));
  border-top: 2px dashed rgba(8,145,178,0.3);
  margin-top: 25px; /* align with center of number circles */
  align-self: flex-start;
}

.approach__tagline {
  text-align: center; font-size: var(--text-body-lg);
  font-style: italic; color: var(--color-muted);
  max-width: 480px; margin: 0 auto;
}

@media (max-width: 768px) {
  .approach__steps {
    flex-direction: column; align-items: center; gap: var(--space-lg);
  }
  .approach__connector {
    width: 2px; height: 40px; margin-top: 0; align-self: center;
    background: linear-gradient(180deg, rgba(8,145,178,0.3), rgba(8,145,178,0.1));
    border-top: none; border-left: 2px dashed rgba(8,145,178,0.3);
  }
  .approach__step { padding: 0; max-width: 320px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 720px; margin: 0 auto; }

.faq__item {
  border-bottom: 1px solid rgba(8,145,178,0.15);
}
.faq__item:first-child { border-top: 1px solid rgba(8,145,178,0.15); }

.faq__question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 4px; background: none; border: none;
  cursor: pointer; text-align: left; gap: 16px;
  font-family: var(--font-body); font-size: var(--text-body);
  font-weight: var(--weight-semibold); color: var(--color-heading);
  transition: color var(--duration-fast) ease;
}
.section--teal .faq__question { color: var(--color-heading); }
.faq__question:hover { color: var(--color-teal); }
.faq__question::after {
  content: '+'; font-size: 22px; font-weight: var(--weight-regular);
  color: var(--color-teal); flex-shrink: 0; transition: transform var(--duration-fast) ease;
  line-height: 1;
}
.faq__item.open .faq__question::after { content: '−'; }
.faq__item.open .faq__question { color: var(--color-teal); }

.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--duration-slow) ease, padding var(--duration-fast) ease;
}
.faq__item.open .faq__answer { max-height: 400px; }

.faq__answer p {
  padding: 0 4px var(--space-md); font-size: var(--text-body);
  color: var(--color-secondary); line-height: var(--leading-relaxed);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl); max-width: 960px; margin: 0 auto;
  align-items: center;
}

.contact-left__heading {
  font-size: clamp(32px, 4vw, 44px); font-weight: var(--weight-bold);
  color: white; line-height: 1.15; margin-bottom: var(--space-sm);
}

.contact-left__desc {
  font-size: 18px; color: rgba(255,255,255,0.6);
  line-height: var(--leading-relaxed); margin-bottom: var(--space-lg);
}

.contact-left__or {
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}

.contact-left__or-text {
  font-size: 14px; color: rgba(255,255,255,0.4);
}

.contact-right {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(8px);
}

.section--contact .form-input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
.section--contact .form-input::placeholder { color: rgba(255,255,255,0.3); }
.section--contact .form-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}
.section--contact .form-label { color: rgba(255,255,255,0.6); }

.contact-form .form-group + .form-group { margin-top: var(--space-sm); }

.form-textarea {
  resize: vertical; min-height: 80px; font-family: inherit;
}

.contact__turnstile { margin: var(--space-sm) 0; }
.contact__error { color: var(--color-error); font-size: var(--text-small); text-align: center; margin-top: var(--space-xs); }

.contact-success {
  text-align: center; padding: var(--space-xl) 0;
}
.contact-success__icon {
  width: 72px; height: 72px; margin: 0 auto var(--space-md);
  background: rgba(22,163,74,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-success);
}
.contact-success h3 { font-size: 26px; margin-bottom: 8px; color: white; }
.contact-success p { color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .contact-right { padding: 28px 20px; }
  .contact-left { text-align: center; }
  .contact-left__or { align-items: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-navy-deep);
  position: relative; padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__top-border {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-teal) 30%, var(--color-lime) 70%, transparent 100%);
  opacity: 0.6;
}

.footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; gap: var(--space-xl);
}

.footer__logo {
  font-family: var(--font-heading); font-size: 18px; font-weight: var(--weight-semibold);
  color: white; letter-spacing: -0.3px; display: block; margin-bottom: 8px;
}
.footer__tagline { font-size: var(--text-small); color: rgba(255,255,255,0.4); }

.footer__nav { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer__link {
  font-size: var(--text-small); color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color var(--duration-fast) ease;
}
.footer__link:hover { color: white; }

.footer__right { text-align: right; }
.footer__email { font-size: var(--text-small); color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 8px; }
.footer__email:hover { color: var(--color-teal-light); }
.footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: var(--space-sm); }
  .footer__right { text-align: left; }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
}

.chatbot__toggle {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  border: none; cursor: pointer; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(8,145,178,0.45), 0 0 0 0 rgba(8,145,178,0.2);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  position: relative;
  animation: chatbot-ring 3s ease-in-out infinite;
}
.chatbot__toggle:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(8,145,178,0.55); }

.chatbot__pulse {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-lime); border: 2.5px solid white;
  animation: chatbot-pulse 1.8s ease-in-out infinite;
}

.chatbot__toggle-icon { width: 26px; height: 26px; }

/* Preview bubble — appears above toggle before first open */
.chatbot__preview {
  position: absolute; bottom: 80px; right: 0;
  background: white; border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12); border: 1px solid var(--color-border);
  padding: 12px 16px; width: 220px;
  font-size: 13px; color: var(--color-body); line-height: 1.4;
  transform: translateY(8px); opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.chatbot__preview.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.chatbot__preview::after {
  content: ''; position: absolute; bottom: -6px; right: 26px;
  width: 12px; height: 12px; background: white;
  border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.chatbot__preview-close {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-border); border: none; cursor: pointer; color: var(--color-muted);
  display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1;
}
.chatbot__preview-close:hover { background: var(--color-faint); }

.chatbot__panel {
  position: absolute; bottom: 80px; right: 0;
  width: 360px; max-height: 520px;
  background: white; border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15); border: 1px solid var(--color-border);
  display: none; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: slide-up 0.25s var(--ease-out-expo) both;
}
.chatbot__panel[aria-hidden="false"],
#chatbot.open .chatbot__panel { display: flex; }

.chatbot__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(8,145,178,0.04), transparent);
}
.chatbot__title { font-weight: var(--weight-semibold); font-size: var(--text-button); color: var(--color-heading); }

.chatbot__close {
  width: 30px; height: 30px; border-radius: 50%; background: none;
  border: 1px solid var(--color-border); cursor: pointer; color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast) ease;
}
.chatbot__close:hover { background: var(--color-error); color: white; border-color: var(--color-error); }

.chatbot__messages {
  flex: 1; overflow-y: auto; padding: var(--space-sm) var(--space-sm);
  display: flex; flex-direction: column; gap: 8px; max-height: 340px;
}

.chatbot__msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.chatbot__msg--bot { background: var(--color-bg-alt); color: var(--color-body); border-bottom-left-radius: 4px; }
.chatbot__msg--user { background: var(--color-teal); color: white; margin-left: auto; border-bottom-right-radius: 4px; }

.typing-indicator {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px;
  background: var(--color-bg-alt); border-radius: 14px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.chatbot__input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 12px var(--space-sm); border-top: 1px solid var(--color-border);
}

.chatbot__input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--color-border);
  border-radius: 20px; font-family: var(--font-body); font-size: 14px;
  color: var(--color-body); background: white; outline: none;
  transition: border-color var(--duration-fast) ease;
}
.chatbot__input:focus { border-color: var(--color-teal); }

.chatbot__send {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--color-teal); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--duration-fast) ease;
}
.chatbot__send:hover { background: var(--color-teal-light); }
.chatbot__send:disabled { opacity: 0.4; cursor: not-allowed; }
.chatbot__send svg { width: 16px; height: 16px; }

.chatbot__limit {
  padding: 12px 20px; text-align: center;
  font-size: var(--text-xs); color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot__panel {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; max-height: 100%; border-radius: 0;
    animation: none;
  }
  .chatbot__messages { max-height: none; flex: 1; }
}

/* ============================================================
   CELL FILL ANIMATION (enrichment demo)
   ============================================================ */
@keyframes cell-fill {
  0% { background: rgba(8,145,178,0.15); color: transparent; }
  30% { background: rgba(8,145,178,0.1); }
  100% { background: transparent; }
}

/* ============================================================
   GLOBAL STATUS MESSAGES
   ============================================================ */
.status-msg { font-size: var(--text-small); text-align: center; padding: var(--space-xs) 0; }
.status-msg--success { color: var(--color-success); }
.status-msg--error { color: var(--color-error); }
.status-msg--loading { color: var(--color-muted); }

/* ============================================================
   MOBILE FINAL OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .section__header { margin-bottom: var(--space-xl); }

  .email-response__body { max-height: 280px; }

  .enrichment-table thead th:nth-child(4),
  .enrichment-table .enrich-cell[data-field="revenue"] { display: none; }

  .phone-mockup { display: none; }

  .approach__connector { display: none; }
}

@media (max-width: 480px) {
  .hero__ctas { gap: var(--space-xs); }
}

/* ============================================================
   IDEA OF THE DAY
   ============================================================ */
.section--ideas { background: var(--bg-section-light); }

.idea-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: white;
}

.idea-card__placeholder {
  color: var(--color-muted);
  text-align: center;
  font-size: var(--text-small);
}

.idea-card__industry {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-teal-bg, #F0FDFA);
  color: var(--color-teal);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.idea-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  margin: 0 0 var(--space-sm);
  letter-spacing: var(--tracking-h2);
}

.idea-card__hook {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-heading);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-sm);
}

.idea-card__body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  margin: 0 0 var(--space-md);
}

.idea-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.idea-card__explore {
  font-size: var(--text-small);
  color: var(--color-teal);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.idea-card__explore:hover { text-decoration: underline; }

.idea-card__archive {
  font-size: var(--text-small);
  color: var(--color-muted);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.idea-card__archive:hover { color: var(--color-teal); }

.idea-card__subscribe {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.idea-card__subscribe-text {
  font-size: var(--text-small);
  color: var(--color-secondary);
  margin: 0 0 var(--space-xs);
}

.idea-card__subscribe-row {
  display: flex;
  gap: var(--space-xs);
}

.idea-card__subscribe-row .form-input {
  flex: 1;
}

.idea-card__subscribe-row .btn-primary {
  padding: 14px 24px;
  white-space: nowrap;
}

.idea-card__subscribe-msg {
  font-size: var(--text-small);
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  .idea-card { padding: var(--space-md); }
  .idea-card__subscribe-row { flex-direction: column; }
  .idea-card__actions { flex-direction: column; gap: var(--space-xs); }
}

/* ============================================================
   NEWSLETTER EXIT INTENT POPUP
   ============================================================ */
.nl-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nl-popup.open {
  opacity: 1;
  visibility: visible;
}

.nl-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 60, 0.6);
  backdrop-filter: blur(4px);
}

.nl-popup__card {
  position: relative;
  max-width: 440px;
  width: calc(100% - 32px);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl-popup.open .nl-popup__card {
  transform: translateY(0);
}

.nl-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.nl-popup__close:hover { color: var(--color-heading); }

.nl-popup__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  margin: 0 0 8px;
  padding-right: 24px;
}

.nl-popup__desc {
  font-size: var(--text-body);
  color: var(--color-secondary);
  line-height: var(--leading-body);
  margin: 0 0 var(--space-md);
}

.nl-popup__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nl-popup__msg {
  font-size: var(--text-small);
  margin: 8px 0 0;
}

.nl-popup__fine {
  font-size: var(--text-xs);
  color: var(--color-faint, #94A3B8);
  margin: var(--space-sm) 0 0;
  text-align: center;
}

/* ============================================================
   IDEAS ARCHIVE PAGE
   ============================================================ */
.archive-header {
  padding: 120px 0 var(--space-xl);
  background: var(--bg-section-dark);
  text-align: center;
}
.archive-header h1 { color: white; margin: 0 0 var(--space-xs); }
.archive-header p { color: rgba(255,255,255,0.7); font-size: var(--text-body); }

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.archive-filter {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: var(--text-small);
  color: var(--color-secondary);
  background: white;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.archive-filter:hover,
.archive-filter.active {
  background: var(--color-teal);
  color: white;
  border-color: var(--color-teal);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.archive-idea {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.archive-idea:hover {
  border-color: transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-card-border) border-box;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.archive-idea__industry {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-teal-bg, #F0FDFA);
  color: var(--color-teal);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.archive-idea__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  margin: 0 0 8px;
}

.archive-idea__hook {
  font-size: var(--text-small);
  color: var(--color-body);
  line-height: var(--leading-body);
  margin: 0;
}

.archive-idea__body {
  font-size: var(--text-small);
  color: var(--color-secondary);
  line-height: var(--leading-body);
  margin: 12px 0 0;
  display: none;
}
.archive-idea.expanded .archive-idea__body { display: block; }

.archive-idea__date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 12px;
}

.archive-load-more {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.archive-empty {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-header { padding: 100px 0 var(--space-lg); }
}

/* ============================================================
   FRACTIONAL CTO PAGE
   ============================================================ */

.fcto-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--hero-bg);
  overflow: hidden;
  padding: 140px 0 80px;
  text-align: center;
}

.fcto-hero__content {
  position: relative; z-index: 8;
  max-width: 800px; width: 100%;
  padding: 0 var(--space-section-x);
}

.fcto-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
}

.fcto-point {
  padding: var(--space-lg);
  text-align: center;
}

.fcto-point__icon {
  margin-bottom: var(--space-sm);
}

.fcto-point__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.fcto-point__desc {
  font-size: var(--text-body);
  color: var(--color-secondary);
  line-height: var(--leading-relaxed);
}

.fcto-covers {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.fcto-covers__heading {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.fcto-covers__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.fcto-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  color: var(--color-body);
  background: var(--color-bg);
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.fcto-tag:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.fcto-covers__tagline {
  font-size: var(--text-body);
  color: var(--color-secondary);
  font-style: italic;
}

@media (max-width: 768px) {
  .fcto-hero { min-height: auto; padding: 120px 0 60px; }
  .fcto-points { grid-template-columns: 1fr; max-width: 500px; }
}

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