/* ============================================
   JotPsych Website — Global Styles
   Design: Crew (design firm) + Nate's direction
   Brand: Archivo headings, Inter body
   Colors: Midnight #1C1E85, Warm Light #FFF2F5,
           Sunset Glow #FD96C9, Deep Night #1E125E,
           Afterglow #813FE8, Daylight #FFF3C4
   ============================================ */

:root {
  --midnight: #1C1E85;
  --deep: #1E125E;
  --warm: #FFF2F5;
  --sunset: #FD96C9;
  --afterglow: #813FE8;
  --daylight: #FFF3C4;
  --white: #ffffff;
  --text: #1E125E;
  --text-muted: #6B7280;
  --border: rgba(28,30,133,0.10);
  --border-strong: rgba(28,30,133,0.18);
  --green: #166534;
  --green-bg: #dcfce7;
  --amber: #854D0E;
  --amber-bg: #fef9c3;
  --red: #991B1B;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(30,18,94,0.06);
  --shadow-md: 0 4px 16px rgba(30,18,94,0.08);
  --shadow-lg: 0 8px 32px rgba(30,18,94,0.12);
  --shadow-xl: 0 12px 48px rgba(30,18,94,0.16);
  --shadow-layered: 0 1px 2px rgba(30,18,94,0.04), 0 4px 12px rgba(30,18,94,0.06), 0 12px 40px rgba(30,18,94,0.10);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Type Scale (11 steps) ---- */
  --text-2xs: 0.625rem;  /* 10px — badges, micro labels */
  --text-xs: 0.75rem;    /* 12px — meta, small labels */
  --text-sm: 0.8125rem;  /* 13px — captions, secondary text */
  --text-base: 0.875rem; /* 14px — body text, descriptions */
  --text-md: 1rem;       /* 16px — default body */
  --text-lg: 1.125rem;   /* 18px — large body, subheadings */
  --text-xl: 1.25rem;    /* 20px — card titles, sub-headlines */
  --text-2xl: 1.5rem;    /* 24px — section headings */
  --text-3xl: 1.75rem;   /* 28px — page headings */
  --text-4xl: 2rem;      /* 32px — hero sub-headings */
  --text-5xl: 2.5rem;    /* 40px — hero headlines */

  /* ---- Spacing Scale (4px grid) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 64px;
  --space-12: 80px;
  --space-13: 100px;
  --space-14: 120px;
  --space-15: 140px;
}

/* ---- Selection ---- */
::selection { background: rgba(28,30,133,0.15); color: var(--deep); }
::-moz-selection { background: rgba(28,30,133,0.15); color: var(--deep); }

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: var(--transition); }
input { font-family: inherit; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.875rem;
  padding: 12px 28px; border-radius: 99px; transition: var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--midnight); color: var(--white); }
.btn-primary:hover { background: var(--deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--midnight); border: 1.5px solid var(--midnight); }
.btn-outline:hover { background: rgba(28,30,133,0.05); transform: translateY(-1px); }
.btn-accent { background: var(--sunset); color: var(--deep); }
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--midnight); }
.btn-white:hover { background: var(--warm); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); transform: translateY(-1px); }

/* ---- Pills ---- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; transition: var(--transition); }
.pill-blue { background: rgba(28,30,133,0.08); color: var(--midnight); }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo-img { height: 28px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  transition: var(--transition); position: relative;
}
.nav-link:hover { color: var(--midnight); }

/* ---- Nav Dropdown ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  transition: var(--transition); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; line-height: inherit;
}
.nav-dropdown-toggle:hover { color: var(--midnight); }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px); box-shadow: var(--shadow-lg);
  padding: 8px 0; min-width: 200px; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 8px 20px; font-size: 0.8125rem; font-weight: 500;
  color: var(--text); transition: var(--transition); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--warm, #f8f8fb); color: var(--midnight); }

/* Mobile dropdown */
.mobile-nav-dropdown-items {
  display: none; flex-direction: column; gap: 12px; padding: 8px 0 0 16px;
}
.mobile-nav-dropdown-items.open { display: flex; }
.mobile-nav-dropdown-items a {
  font-family: 'Archivo', sans-serif; font-size: 1.125rem; font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.mobile-nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  font-family: 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 600;
  color: rgba(255,255,255,0.45); cursor: pointer;
}
.mobile-nav-dropdown-toggle svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.45); transition: transform 0.2s ease; }
.mobile-nav-dropdown-toggle.open svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-hipaa-badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.625rem; font-weight: 700; color: var(--green);
  background: var(--green-bg); padding: 4px 12px; border-radius: 99px;
  letter-spacing: 0.04em; white-space: nowrap;
}
.nav-hipaa-badge svg { width: 14px; height: 14px; }
.nav-signin { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; transition: var(--transition); }
.nav-signin:hover { color: var(--midnight); }
.nav-hamburger { display: none; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; }
.nav-hamburger span { display: block; width: 100%; height: 2px; background: var(--midnight); border-radius: 1px; transition: var(--transition); }

/* ---- Mobile Nav Overlay ---- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 2000; background: var(--midnight);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.mobile-nav-header .nav-logo-img { height: 26px; }
.mobile-nav-close { font-size: 2rem; color: white; }
.mobile-nav-links { padding: 40px 24px; display: flex; flex-direction: column; gap: 24px; }
.mobile-nav-link { font-family: 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 600; color: white; }
.mobile-nav-link:first-child { color: white; }
.mobile-nav-link:not(:first-child) { color: rgba(255,255,255,0.45); }
.mobile-nav-actions { padding: 24px; margin-top: auto; }
.mobile-nav-signin { display: block; text-align: center; margin-top: 12px; color: rgba(255,255,255,0.45); font-size: 0.875rem; }

/* ---- Hero ---- */
.hero {
  padding: 120px 0 40px;
  background: linear-gradient(180deg, var(--warm) 0%, var(--white) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-centered { text-align: center; }
.hero-eyebrow { display: flex; }
.hero-eyebrow-icon { width: 40px; margin-bottom: 16px; }
.hero-headline {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--midnight);
  margin-bottom: 16px; line-height: 1.15;
}
.hero-headline em { font-style: italic; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
/* Centered hero variant (index, about) */
.hero-centered .hero-eyebrow { justify-content: center; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-ctas { justify-content: center; }
.hero-centered .hero-trust { justify-content: center; }

/* Hero video / product screen */
.hero-video-wrapper { padding: 40px 0 0; }
.hero-video-container { max-width: 1380px; margin: 0 auto; }
.hero-video-frame {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.hero-video-browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  background: #f8f8fa; border-bottom: 1px solid var(--border);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }
.browser-url {
  margin-left: 12px; font-size: 0.72rem; color: var(--text-muted);
  background: var(--white); padding: 4px 12px; border-radius: 4px;
  border: 1px solid var(--border); flex: 1; max-width: 200px;
}
.hero-video-content { padding: 0; }
.hero-product-screen { display: flex; min-height: 420px; }
.product-sidebar {
  width: 180px; background: var(--deep); color: white; padding: 16px 0;
  display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
}
.sidebar-logo {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.9rem;
  padding: 8px 16px 16px; color: var(--sunset);
}
.sidebar-item {
  padding: 8px 16px; font-size: 0.78rem; color: rgba(255,255,255,0.5);
  cursor: default; transition: var(--transition);
}
.sidebar-item.active { background: rgba(255,255,255,0.08); color: white; }
.product-main { flex: 1; padding: 0; display: flex; flex-direction: column; }
.product-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid var(--border); font-size: 0.78rem;
}
.product-breadcrumb { color: var(--text-muted); font-size: 0.75rem; }
.product-note-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.product-note-body { padding: 20px; flex: 1; }
.note-section-label {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.78rem;
  color: var(--midnight); margin-bottom: 4px; margin-top: 14px;
}
.note-section-label:first-child { margin-top: 0; }
.note-section-text { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; }
.product-note-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--border); background: #fafafa;
}
.hero-trust { display: flex; align-items: center; gap: 8px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700; color: var(--midnight);
  letter-spacing: 0.03em;
}

/* Hero visual — layered card depth */
.hero-visual {
  position: relative; min-height: 400px;
  perspective: 1200px;
}
.hero-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-layered);
  padding: 16px; position: relative;
  transition: var(--transition);
}
.hero-card:hover { box-shadow: var(--shadow-xl); }
.hero-card-main {
  max-width: 380px; margin-left: auto;
  transform: rotateY(-2deg) rotateX(1deg);
  transform-style: preserve-3d;
}
.hero-card-recording {
  position: absolute; top: -10px; right: -20px;
  background: var(--white); border-radius: var(--radius-sm); padding: 16px 16px;
  box-shadow: var(--shadow-layered); text-align: center; width: 180px;
  transform: translateZ(30px);
}
.hero-card-check {
  position: absolute; bottom: 20px; left: -30px;
  background: var(--white); border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow-layered); display: flex; align-items: center; gap: 12px;
  max-width: 320px;
  transform: translateZ(20px);
}

/* Hero overlay cards — payment & appointment */
.hero-card-payment {
  position: absolute; top: 50%; right: -10px;
  background: var(--white); border-radius: var(--radius-sm); padding: 16px 16px;
  box-shadow: var(--shadow-layered);
  transform: translateZ(40px) translateY(-50%);
  min-width: 160px; z-index: 3;
}
.hero-card-appointment {
  position: absolute; bottom: -10px; left: 20px;
  background: var(--white); border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow-layered);
  transform: translateZ(25px);
  font-size: 0.8125rem; z-index: 2;
}
.hero-card-appointment .appt-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--afterglow); margin-right: 6px;
}

/* Hero FAB */
.hero-fab {
  position: absolute; bottom: 40px; right: 10px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--afterglow); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; box-shadow: var(--shadow-lg);
  z-index: 4; cursor: pointer;
  transition: var(--transition);
}
.hero-fab:hover { transform: scale(1.08); box-shadow: var(--shadow-xl); }

.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hero-card-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--afterglow);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}
.hero-card-name { font-weight: 600; font-size: 0.875rem; }
.hero-card-meta { font-size: 0.75rem; color: var(--text-muted); }
.hero-card-section { margin-bottom: 12px; }
.hero-card-title { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.875rem; margin-bottom: 4px; }
.hero-card-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.hero-card-text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.hero-card-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.hero-recording-badge { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.hero-recording-timer { font-family: 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--midnight); }
.hero-recording-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.recording-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s infinite; }
.recording-btn { width: 28px; height: 28px; border-radius: 6px; background: var(--midnight); color: white; font-size: 0.625rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.recording-btn:hover { background: var(--deep); }

.check-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; flex-shrink: 0;
}

/* Trust bar */
.trust-bar { text-align: center; padding: 48px 0 0; }
.trust-bar-label { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; }
.trust-bar-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-logo { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text-muted); opacity: 0.9; transition: var(--transition); }
.trust-logo:hover { opacity: 0.9; }

/* Press logos bar */
.press-section { background: #F7F7F8; border-top: 1px solid var(--border); }
.press-logos-bar { text-align: center; padding: 40px 0; }
.press-logos-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 16px; opacity: 0.6; }
.press-logos { display: flex; align-items: center; justify-content: center; gap: 32px 48px; flex-wrap: wrap; }
.press-logo-img { height: 28px; max-width: 140px; width: auto; object-fit: contain; opacity: 0.8; filter: grayscale(100%) brightness(0) invert(0.45); pointer-events: none; }

/* ---- Metrics ---- */
.metrics { padding: 80px 0; background: var(--warm); }
.metrics-inner { text-align: center; }
.metrics-headline { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--midnight); margin-bottom: 40px; }
.metrics-grid { display: flex; justify-content: center; gap: 80px; }
.metric { display: flex; flex-direction: column; align-items: center; }
.metric-number {
  font-family: 'Archivo', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--afterglow); line-height: 1;
}
.metric-unit { font-family: 'Archivo', sans-serif; font-size: 1rem; font-weight: 500; color: var(--afterglow); }
.metric-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Benefits ---- */
.benefit { padding: 80px 0; }
.benefit-light { background: var(--white); }
.benefit-light:nth-child(even) { background: var(--warm); }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.benefit-grid-reverse { direction: rtl; }
.benefit-grid-reverse > * { direction: ltr; }
.benefit-headline { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--midnight); margin-bottom: 8px; }
.benefit-sub { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 12px; }
.benefit-text { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* Benefit mockups */
.benefit-mockup { display: flex; justify-content: center; }
.mockup-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-layered);
  padding: 20px; max-width: 380px; width: 100%;
  transition: var(--transition);
}
.mockup-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.mockup-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mockup-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--afterglow); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.mockup-icon-check { width: 32px; height: 32px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; flex-shrink: 0; }
.mockup-name { font-weight: 600; font-size: 0.8125rem; }
.mockup-meta { font-size: 0.75rem; color: var(--text-muted); }
.mockup-section { margin-bottom: 12px; }
.mockup-label { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.8125rem; }
.mockup-sublabel { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.mockup-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.mockup-divider { height: 1px; background: var(--border); margin: 12px 0; }
.mockup-flag { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text); padding: 8px 0; }
.flag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.flag-dot.amber { background: var(--amber); }
.flag-dot.green { background: var(--green); }
.text-line { height: 8px; background: rgba(28,30,133,0.06); border-radius: 4px; margin-bottom: 8px; }

/* Audio waveform player mockup */
.mockup-waveform {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 8px 12px;
  background: rgba(28,30,133,0.04); border-radius: var(--radius-xs);
}
.mockup-waveform .bar {
  width: 3px; border-radius: 2px; background: var(--midnight);
  transition: var(--transition);
}
.mockup-waveform .bar:nth-child(1) { height: 8px; }
.mockup-waveform .bar:nth-child(2) { height: 16px; }
.mockup-waveform .bar:nth-child(3) { height: 24px; }
.mockup-waveform .bar:nth-child(4) { height: 12px; }
.mockup-waveform .bar:nth-child(5) { height: 20px; }
.mockup-waveform .bar:nth-child(6) { height: 10px; }
.mockup-waveform .bar:nth-child(7) { height: 18px; }
.mockup-waveform .bar:nth-child(8) { height: 14px; }
.mockup-waveform .bar:nth-child(9) { height: 22px; }
.mockup-waveform .bar:nth-child(10) { height: 8px; }
.mockup-waveform .bar.played { background: var(--afterglow); }
.mockup-waveform .bar.unplayed { background: rgba(28,30,133,0.15); }

/* Transcript mockup */
.mockup-transcript { padding: 12px 0; }
.mockup-transcript-line {
  display: flex; gap: 8px; font-size: 0.8125rem; line-height: 1.6;
  padding: 4px 0;
}
.mockup-transcript-line + .mockup-transcript-line { margin-top: 4px; }
.mockup-transcript-speaker {
  font-weight: 700; color: var(--midnight); white-space: nowrap;
  min-width: 52px; flex-shrink: 0;
}
.mockup-transcript-speaker.patient { color: var(--afterglow); }
.mockup-transcript-text { color: var(--text-muted); }

/* ---- Testimonials ---- */
/* ---- Testimonial Marquee Wall ---- */
.testimonials { padding: 100px 0 80px; background: var(--warm); overflow: hidden; }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.stars { font-size: 1.5rem; color: var(--midnight); margin-bottom: 12px; }
.testimonials-headline { font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--midnight); }
.testimonials-sub { font-size: var(--text-base); color: var(--text-muted); margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; }

.marquee-wall { display: flex; flex-direction: column; gap: 16px; width: 100vw; margin-left: calc(-50vw + 50%); }

.marquee-row { overflow: hidden; position: relative; }
.marquee-row::before,
.marquee-row::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-row::before { left: 0; background: linear-gradient(to right, var(--warm) 0%, transparent 100%); }
.marquee-row::after  { right: 0; background: linear-gradient(to left, var(--warm) 0%, transparent 100%); }

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-left 80s linear infinite;
  will-change: transform;
}
.marquee-row.reverse .marquee-track { animation: marquee-right 90s linear infinite; }
.marquee-row:nth-child(3) .marquee-track { animation-duration: 70s; }

/* wall never pauses — always moving */

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.mq-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.mq-card:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
  z-index: 3;
  position: relative;
}
/* ---- Card color variants (palette) ---- */
.mq-card.v-midnight  { background: var(--midnight); color: white; }
.mq-card.v-deep      { background: var(--deep); color: white; }
.mq-card.v-afterglow { background: var(--afterglow); color: white; }
.mq-card.v-sunset    { background: var(--sunset); color: var(--deep); }
.mq-card.v-daylight  { background: var(--daylight); color: var(--deep); }
.mq-card.v-warm      { background: #FFE4EC; color: var(--deep); }
.mq-card.v-lavender  { background: #EDE5FF; color: var(--deep); }

.mq-card.v-midnight .mq-quote,
.mq-card.v-deep .mq-quote,
.mq-card.v-afterglow .mq-quote { color: rgba(255,255,255,0.92); }
.mq-card.v-midnight .mq-role,
.mq-card.v-deep .mq-role,
.mq-card.v-afterglow .mq-role { color: rgba(255,255,255,0.55); }
.mq-card.v-midnight .mq-name,
.mq-card.v-deep .mq-name,
.mq-card.v-afterglow .mq-name { color: white; }

.mq-card.v-sunset .mq-quote,
.mq-card.v-daylight .mq-quote,
.mq-card.v-warm .mq-quote,
.mq-card.v-lavender .mq-quote { color: var(--deep); }
.mq-card.v-sunset .mq-role,
.mq-card.v-daylight .mq-role,
.mq-card.v-warm .mq-role,
.mq-card.v-lavender .mq-role { color: rgba(30,18,94,0.5); }

.mq-card.v-midnight .mq-author,
.mq-card.v-deep .mq-author,
.mq-card.v-afterglow .mq-author { border-top-color: rgba(255,255,255,0.12); }
.mq-card.v-sunset .mq-author { border-top-color: rgba(30,18,94,0.12); }
.mq-card.v-daylight .mq-author { border-top-color: rgba(30,18,94,0.10); }
.mq-card.v-warm .mq-author { border-top-color: rgba(30,18,94,0.10); }
.mq-card.v-lavender .mq-author { border-top-color: rgba(30,18,94,0.10); }

.mq-card.v-midnight .mq-quote .hl,
.mq-card.v-deep .mq-quote .hl,
.mq-card.v-afterglow .mq-quote .hl { background: rgba(255,255,255,0.12); }
.mq-card.v-sunset .mq-quote .hl { background: rgba(30,18,94,0.08); }
.mq-card.v-daylight .mq-quote .hl { background: rgba(30,18,94,0.08); }
.mq-card.v-warm .mq-quote .hl { background: rgba(30,18,94,0.06); }
.mq-card.v-lavender .mq-quote .hl { background: rgba(129,63,232,0.10); }

.mq-card.v-midnight .mq-av,
.mq-card.v-deep .mq-av,
.mq-card.v-afterglow .mq-av { background: rgba(255,255,255,0.18); }
.mq-card.v-sunset .mq-av { background: var(--deep); }
.mq-card.v-daylight .mq-av { background: var(--midnight); }
.mq-card.v-warm .mq-av { background: var(--sunset); }
.mq-card.v-lavender .mq-av { background: var(--afterglow); }

.mq-card.v-midnight:hover,
.mq-card.v-deep:hover { box-shadow: 0 8px 32px rgba(30,18,94,0.3); }
.mq-card.v-afterglow:hover { box-shadow: 0 8px 32px rgba(129,63,232,0.3); }
.mq-card.v-sunset:hover { box-shadow: 0 8px 32px rgba(253,150,201,0.25); }

/* legacy alias */
.mq-card.feat { background: var(--midnight); color: white; }
.mq-card.feat .mq-quote { color: rgba(255,255,255,0.92); }
.mq-card.feat .mq-role { color: rgba(255,255,255,0.55); }
.mq-card.feat .mq-name { color: white; }
.mq-card.feat .mq-author { border-top-color: rgba(255,255,255,0.12); }
.mq-card.feat .mq-quote .hl { background: rgba(255,255,255,0.12); }
.mq-card.feat .mq-av { background: rgba(255,255,255,0.18); }
.mq-card.feat:hover { box-shadow: 0 8px 32px rgba(30,18,94,0.3); }

.mq-quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.mq-quote .hl {
  background: linear-gradient(120deg, rgba(253,150,201,0.18) 0%, rgba(129,63,232,0.12) 100%);
  padding: 1px 4px;
  border-radius: 3px;
}
.mq-card.feat .mq-quote .hl {
  background: rgba(255,255,255,0.12);
}
.mq-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mq-card.feat .mq-author { border-top-color: rgba(255,255,255,0.12); }
.mq-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--afterglow) 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 700; flex-shrink: 0;
}
.mq-card.feat .mq-av {
  background: linear-gradient(135deg, var(--afterglow) 0%, var(--sunset) 100%);
}
.mq-name { font-weight: 600; font-size: 0.75rem; }
.mq-role { font-size: 0.6875rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .mq-card { width: 290px; padding: 18px; }
  .marquee-row::before, .marquee-row::after { width: 48px; }
  .marquee-wall { gap: 12px; }
}

/* Legacy testimonial card (other pages) */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-quote {
  font-size: 0.875rem; font-style: italic; color: var(--text); line-height: 1.65;
  flex: 1; margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar-lg {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--afterglow) 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.8125rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Case Study Cards ---- */
.case-study-card {
  background: var(--white); border-radius: var(--radius); padding: 0;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: var(--transition); overflow: hidden;
}
.case-study-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-study-map {
  padding: 16px 24px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.case-study-us-map { width: 80px; height: auto; display: block; opacity: 0.85; }
.case-study-map-label {
  font-size: var(--text-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.case-study-body { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.case-study-title { font-size: var(--text-lg); font-weight: 700; color: var(--text); line-height: 1.3; }
.case-study-bio { font-size: var(--text-base); color: var(--text-muted); line-height: 1.6; }
.case-study-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case-study-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--midnight); line-height: 1.2; }
.case-study-stat-label { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.case-study-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.case-study-tag {
  font-size: var(--text-2xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 4px 10px; border-radius: 100px;
  background: rgba(28, 30, 133, 0.06); color: var(--midnight);
}
@media (max-width: 768px) {
  .case-study-stats { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 1024px) {
  .masonry-wall { columns: 3; }
}
@media (max-width: 768px) {
  .masonry-wall { columns: 2; column-gap: 16px; }
  .masonry-card { padding: 20px; margin-bottom: 16px; }
}

/* ---- Security ---- */
.security { padding: 80px 0; background: var(--midnight); color: white; }
.security-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.security-headline { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.security-headline em { color: var(--sunset); }
.security-sub { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.security-ctas { display: flex; gap: 12px; margin-bottom: 32px; }
.security-steps { display: flex; flex-direction: column; gap: 16px; }
.security-step { display: flex; align-items: flex-start; gap: 16px; }
.step-num { font-family: 'Archivo', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--sunset); min-width: 20px; }
.step-label { font-weight: 600; font-size: 0.875rem; min-width: 100px; }
.step-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

/* Security visual */
.security-mockup {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 24px; text-align: center; position: relative;
}
.security-mockup-header { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.waveform-bars { display: flex; align-items: end; justify-content: center; gap: 4px; height: 40px; margin-bottom: 8px; }
.waveform-bars span {
  width: 4px; border-radius: 2px; background: var(--sunset);
  animation: waveform 1.2s ease-in-out infinite;
}
.waveform-bars span:nth-child(1) { height: 15px; animation-delay: 0s; }
.waveform-bars span:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.waveform-bars span:nth-child(3) { height: 35px; animation-delay: 0.2s; }
.waveform-bars span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.waveform-bars span:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.waveform-bars span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.waveform-bars span:nth-child(7) { height: 28px; animation-delay: 0.6s; }
.waveform-bars span:nth-child(8) { height: 12px; animation-delay: 0.7s; }
.waveform-bars span:nth-child(9) { height: 22px; animation-delay: 0.8s; }
.waveform-bars span:nth-child(10) { height: 32px; animation-delay: 0.9s; }
.waveform-bars span:nth-child(11) { height: 16px; animation-delay: 1s; }
.waveform-bars span:nth-child(12) { height: 26px; animation-delay: 0.15s; }
.waveform-bars span:nth-child(13) { height: 20px; animation-delay: 0.25s; }
.waveform-bars span:nth-child(14) { height: 30px; animation-delay: 0.35s; }
.waveform-bars span:nth-child(15) { height: 14px; animation-delay: 0.45s; }

.security-binary { font-family: monospace; font-size: 0.625rem; color: rgba(255,255,255,0.2); margin: 8px 0; line-height: 1.4; }
.security-mockup-timer { font-family: 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; margin: 12px 0; }
.security-mockup-controls { display: flex; justify-content: center; gap: 8px; }
.recording-btn-dark {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1);
  color: white; display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
  transition: var(--transition);
}
.recording-btn-dark:hover { background: rgba(255,255,255,0.18); }
.security-lock {
  position: absolute; bottom: -16px; right: -16px;
  width: 48px; height: 48px; border-radius: 12px; background: var(--afterglow);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
}

/* ---- Pricing Preview ---- */
.pricing-preview { padding: 80px 0; background: var(--warm); }
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-headline { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--midnight); margin-bottom: 12px; }
.pricing-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-toggle {
  display: inline-flex; background: var(--white); border-radius: 99px;
  padding: 4px; border: 1px solid var(--border);
}
.toggle-btn {
  padding: 8px 20px; border-radius: 99px; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted); transition: var(--transition);
}
.toggle-btn.active { background: var(--midnight); color: white; }
.toggle-btn:hover:not(.active) { color: var(--midnight); }

.pricing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.pricing-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); position: relative;
  transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card-popular { border-color: var(--midnight); border-width: 2px; }
.pricing-card-popular-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--midnight); color: white; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 99px; white-space: nowrap;
}

/* Pricing tier badges with colored dots */
.pricing-card-badge {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.875rem;
  color: var(--midnight); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.pricing-card-badge::before {
  content: '';
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
/* Moonlighting = midnight dot */
.pricing-card:nth-child(1) .pricing-card-badge::before { background: var(--midnight); }
/* Basic = afterglow dot */
.pricing-card:nth-child(2) .pricing-card-badge::before { background: var(--afterglow); }
/* Professional / popular = afterglow dot */
.pricing-card:nth-child(3) .pricing-card-badge::before { background: var(--afterglow); }
/* Everything = sunset dot */
.pricing-card:nth-child(4) .pricing-card-badge::before { background: var(--sunset); }

.pricing-card-subtitle { font-size: 0.75rem; color: var(--text-muted); }
.pricing-card-price {
  font-family: 'Archivo', sans-serif; font-size: 2rem; font-weight: 700; color: var(--midnight);
  margin: 8px 0;
}
.pricing-card-price span { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.pricing-card-desc { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; }
.pricing-card-features { margin-bottom: 20px; }
.pricing-card-features li {
  font-size: 0.8125rem; color: var(--text); padding: 8px 0;
  padding-left: 20px; position: relative;
}
.pricing-card-features li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--midnight); font-weight: 700; font-size: 0.75rem;
}

.pricing-trial-banner {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; transition: var(--transition);
}
.pricing-trial-banner:hover { box-shadow: var(--shadow-sm); }
.trial-banner-content h3 { font-size: 1.125rem; color: var(--midnight); margin-bottom: 4px; }
.trial-banner-content p { font-size: 0.875rem; color: var(--text-muted); }
.pricing-more { text-align: center; }
.link-underline {
  font-size: 0.875rem; color: var(--midnight); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  transition: var(--transition);
}
.link-underline:hover { color: var(--afterglow); }

/* ---- FAQ ---- */
.faq { padding: 80px 0; background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq-headline { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--midnight); margin-bottom: 12px; }
.faq-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 1rem; font-weight: 500; color: var(--text);
  text-align: left; gap: 16px;
}
.faq-q:hover { color: var(--midnight); }
.faq-icon {
  font-size: 0.875rem; color: var(--midnight); flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
}
/* Chevron: use content in HTML as ▾ or set it here */
.faq-icon::after { content: none; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; padding-bottom: 18px; }
.faq-a a { color: var(--midnight); text-decoration: underline; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-a { max-height: 300px; }

/* ---- Final CTA ---- */
.final-cta {
  padding: 100px 0; background: linear-gradient(135deg, var(--midnight) 0%, var(--afterglow) 100%);
  text-align: center; color: white; position: relative; overflow: hidden;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta-headline { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.final-cta-headline em { color: var(--sunset); }
.final-cta-sub { font-size: 1rem; color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.final-cta-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; }
.final-cta-note { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.final-cta-mark { position: absolute; bottom: -20px; right: -20px; z-index: 0; }

/* Helix dots — CSS logomark pattern */
.helix-dots {
  position: absolute; z-index: 0; pointer-events: none;
}
.helix-dots .dot {
  position: absolute; width: 10px; height: 10px; border-radius: 2px;
}
.helix-dots .dot.pink { background: var(--sunset); opacity: 0.5; }
.helix-dots .dot.midnight { background: rgba(255,255,255,0.15); }
/* Positioned at angles to mimic the JotPsych logomark helix */
.helix-dots .dot:nth-child(1) { top: 0; left: 0; transform: rotate(15deg); }
.helix-dots .dot:nth-child(2) { top: 14px; left: 18px; transform: rotate(-10deg); }
.helix-dots .dot:nth-child(3) { top: 30px; left: 6px; transform: rotate(25deg); }
.helix-dots .dot:nth-child(4) { top: 8px; left: 36px; transform: rotate(-20deg); }
.helix-dots .dot:nth-child(5) { top: 44px; left: 22px; transform: rotate(10deg); }
.helix-dots .dot:nth-child(6) { top: 38px; left: 40px; transform: rotate(-5deg); }
.helix-dots .dot:nth-child(7) { top: 56px; left: 12px; transform: rotate(30deg); }
.helix-dots .dot:nth-child(8) { top: 52px; left: 38px; transform: rotate(-15deg); }

/* ---- Footer (Light) ---- */
.footer {
  padding: 60px 0 24px;
  background: var(--warm);
  color: var(--text);
  border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 26px; margin-bottom: 12px; }
.footer-tagline { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; }
.footer-link { display: block; font-size: 0.875rem; color: var(--text-muted); padding: 4px 0; transition: var(--transition); }
.footer-link:hover { color: var(--midnight); }

/* Newsletter form in footer */
.newsletter-form {
  display: flex; gap: 0; margin-top: 16px; max-width: 360px;
}
.newsletter-form input[type="email"] {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border-strong);
  border-right: none; border-radius: 99px 0 0 99px;
  font-size: 0.8125rem; background: var(--white); color: var(--text);
  outline: none; transition: var(--transition);
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--midnight);
}
.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}
.newsletter-form button {
  padding: 12px 20px; border-radius: 0 99px 99px 0;
  background: var(--midnight); color: var(--white);
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--midnight);
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--deep); }

/* Social icons */
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--text-muted);
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--midnight); color: var(--white);
  border-color: var(--midnight);
}
.social-icon svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: var(--text-muted); text-decoration: underline; transition: var(--transition); }
.footer-legal a:hover { color: var(--midnight); }

/* ---- Footer Light (unified) ---- */
.footer-light { padding: 60px 0 0; background: var(--warm); color: var(--text); }
.footer-light .footer-newsletter { text-align: center; padding-bottom: 32px; }
.footer-light .footer-newsletter h3 { font-family: 'Archivo', sans-serif; font-size: 1.125rem; color: var(--midnight); margin-bottom: 8px; }
.footer-light .footer-newsletter p { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; }
.footer-light .newsletter-form { display: flex; gap: 8px; justify-content: center; max-width: 400px; margin: 0 auto 8px; }
.footer-light .newsletter-input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border-strong); border-radius: 99px;
  font-size: 0.875rem; font-family: 'Inter', sans-serif; background: var(--white); color: var(--text);
  outline: none; transition: var(--transition);
}
.footer-light .newsletter-input:focus { border-color: var(--midnight); }
.footer-light .newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-privacy { font-size: 0.625rem; color: var(--text-muted); text-align: center; }
.footer-social { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px 0; }
.footer-social a { color: var(--text-muted); transition: var(--transition); display: flex; }
.footer-social a:hover { color: var(--midnight); }
.footer-social svg { width: 20px; height: 20px; }
.footer-divider { height: 1px; background: var(--border); margin: 0; }
.footer-bottom-light {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  padding: 16px 0; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap;
}
.footer-bottom-light a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom-light a:hover { color: var(--midnight); }
.footer-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 24px; flex-wrap: wrap; gap: 12px;
}
.footer-nav-left { display: flex; align-items: center; gap: 24px; }
.footer-nav-left img { height: 24px; }
.footer-nav-links { display: flex; gap: 20px; }
.footer-nav-links a { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; transition: var(--transition); }
.footer-nav-links a:hover { color: var(--midnight); }
.footer-nav-right { display: flex; align-items: center; gap: 12px; }

/* ---- Mockup Utility Classes ---- */
/* Row: flex row with items centered, standard gap and padding */
.mockup-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: rgba(28,30,133,0.04); border-radius: var(--radius-xs);
}
.mockup-row-between { justify-content: space-between; }
.mockup-row-bare {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
}
/* Key-value pair row */
.mockup-kv {
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; padding: 8px 0;
}
.mockup-kv-bordered { border-bottom: 1px solid var(--border); }
/* Vertical stack */
.mockup-stack { display: flex; flex-direction: column; gap: 8px; }
.mockup-stack-tight { display: flex; flex-direction: column; gap: 4px; }
/* Text sizes for inline use */
.text-2xs { font-size: 0.625rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.8125rem; }
.text-base { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
/* Weight helpers */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
/* Color helpers */
.color-muted { color: var(--text-muted); }
.color-text { color: var(--text); }
.color-green { color: var(--green); }
.color-amber { color: var(--amber); }
.color-midnight { color: var(--midnight); }
.color-afterglow { color: var(--afterglow); }
/* Spacing helpers */
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
/* Schedule row with colored left border */
.schedule-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.schedule-row-purple { border-left: 3px solid var(--afterglow); background: rgba(129,63,232,0.04); }
.schedule-row-midnight { border-left: 3px solid var(--midnight); background: rgba(28,30,133,0.04); }
.schedule-row-pink { border-left: 3px solid var(--sunset); background: rgba(253,150,201,0.06); }
.schedule-row-green { border-left: 3px solid var(--green); background: rgba(22,101,52,0.04); }
/* Insight card rows */
.insight-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-xs);
}
.insight-row-green { background: rgba(22,101,52,0.06); }
.insight-row-amber { background: rgba(133,77,14,0.06); }
/* AI edit box */
.ai-edit-box {
  background: rgba(129,63,232,0.06); border-radius: var(--radius-xs);
  padding: 12px; margin-bottom: 12px;
}
/* Template builder row */
.template-section-row {
  padding: 8px 12px; border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-xs); font-size: 0.8125rem; color: var(--text-muted);
}
.template-add-row {
  padding: 8px 12px; border: 1.5px dashed rgba(129,63,232,0.3);
  border-radius: var(--radius-xs); font-size: 0.8125rem; color: var(--afterglow); text-align: center;
}
/* Coming soon overlay */
.coming-soon-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--afterglow); color: white; font-size: 0.75rem;
  font-weight: 700; padding: 8px 16px; border-radius: 99px;
}
/* Doc icon row */
.doc-icon-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; background: rgba(28,30,133,0.04); border-radius: var(--radius-xs);
}
/* Extension icon */
.ext-icon {
  width: 28px; height: 28px; border-radius: 8px; background: var(--midnight);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
/* Text align center */
.text-center { text-align: center; }
/* Pointer events none for fake buttons */
.no-pointer { pointer-events: none; }

/* ---- Animations ---- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes waveform { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } }

/* Scroll-triggered */
.anim-target { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-target.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.anim-target:nth-child(2) { transition-delay: 0.1s; }
.anim-target:nth-child(3) { transition-delay: 0.2s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links, .nav-actions, .nav-hipaa-badge { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {

  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-grid .hero-eyebrow { justify-content: center; }
  .hero-grid .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-grid .hero-ctas { justify-content: center; }
  .hero-grid .hero-trust { justify-content: center; }
  .hero-visual { display: none; }
  .product-sidebar { display: none; }
  .hero-product-screen { min-height: 300px; }
  .product-note-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .product-note-footer { flex-direction: column; gap: 8px; align-items: flex-start; }

  .benefit-grid, .benefit-grid-reverse { grid-template-columns: 1fr; gap: 32px; }
  .benefit-grid-reverse { direction: ltr; }
  .benefit-content { text-align: center; }
  .benefit-visual { order: -1; }

  .metrics-grid { flex-direction: column; gap: 32px; }

  /* marquee wall handles its own responsive via card widths */

  .security-grid { grid-template-columns: 1fr; }
  .security-visual { display: none; }

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

  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-trial-banner { flex-direction: column; gap: 16px; text-align: center; }

  .faq-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .newsletter-form { max-width: 100%; }
  .footer-nav-row { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav-left { flex-direction: column; }
  .footer-nav-right { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.75rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; }
  .final-cta-actions { flex-direction: column; align-items: center; }
  .final-cta-actions .btn { width: 100%; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-radius: 99px; border-right: 1px solid var(--border-strong); }
  .newsletter-form button { border-radius: 99px; }
}
