/* ================================================================
   1. BASE / GLOBAL
   ================================================================ */

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--ink-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 18px;
  line-height: var(--leading-relaxed);
  color: var(--ink-600);
}

.microcopy {
  font-size: var(--text-body-sm);
  color: var(--ink-400);
}

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

.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: var(--white);
  font-weight: var(--weight-bold);
  z-index: var(--z-tooltip);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ================================================================
   2. LAYOUT UTILITIES
   ================================================================ */

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

.section {
  padding: var(--section-padding-y) 0;
  border-bottom: 2px solid var(--ink-800);
}

.section--bg {
  background: var(--white);
}

.section--surface {
  background: var(--paper);
}

.section--dark {
  background: var(--ink-800);
  border-bottom-color: var(--ink-900);
}

.section-header {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.section-header .section-label {
  margin-bottom: 0.875rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header h2:last-child {
  margin-bottom: 0;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--weight-medium);
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--green-700);
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--green-700);
  flex-shrink: 0;
}

.section--dark .section-eyebrow {
  color: var(--green-400);
}

.section--dark .section-eyebrow::before {
  background: var(--green-400);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

/* ================================================================
   3. COMPONENT STYLES
   ================================================================ */

/* ── Buttons ─────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-bold);
  color: var(--accent-contrast);
  background: var(--accent);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}

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

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink-800);
}

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

.btn-primary--glow:hover {
  animation: none;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--shadow-hard); }
  50%      { box-shadow: var(--shadow-hard-lg); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.btn-secondary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink-800);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-600);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}

.btn-ghost:hover {
  color: var(--ink-800);
  background: var(--sand);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 18px;
}

/* ── Card ────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--illus-cream);
  border-radius: var(--radius-md);
}

/* ── Badge ───────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: 0.025em;
  border-radius: var(--radius-pill);
  border: var(--border);
  text-transform: uppercase;
}

.badge--green {
  color: var(--white);
  background: var(--green-500);
}

.badge--blue {
  color: var(--ink-800);
  background: var(--sand);
}

.badge--amber {
  color: var(--ink-800);
  background: var(--yellow);
}

/* ── Section Label ───────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--green-700);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--green-700);
  flex-shrink: 0;
}

/* ── Stat Number ─────────────────────────────────────── */

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

/* ── Logo ────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  user-select: none;
}

.logo-full {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

.logo-dark { display: none; }

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  letter-spacing: var(--tracking-snug);
}

/* ================================================================
   4. HEADER + STICKY NAV
   ================================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--white);
  border-bottom: 2px solid var(--ink-800);
  transition: background var(--dur-fast) var(--ease-standard);
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 0 var(--ink-800);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.header-nav {
  display: none;
}

.header-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
  padding: 0.5rem 1.125rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  min-height: unset;
}

.header-login {
  display: none;
  padding: 0.5rem 1rem;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-600);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}

.header-login:hover {
  color: var(--ink-800);
  background: var(--sand);
}

/* ── Navigation dropdown ───────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--ink-800);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--white);
  padding: 5rem var(--container-padding-x) 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  border-bottom: 2px solid var(--line-soft);
  text-decoration: none;
}

.mobile-nav .btn-primary {
  margin-top: 1.5rem;
  text-align: center;
}

.mobile-nav-section {
  border-bottom: 2px solid var(--line-soft);
}

.mobile-nav-label {
  display: block;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
}

.mobile-nav-section a {
  padding: 0.875rem 1rem 0.875rem 2rem;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  border-bottom: none;
}

/* ================================================================
   5. HERO SECTION
   ================================================================ */

.hero {
  background: var(--white);
  border-bottom: 2px solid var(--ink-800);
}

/* Legacy hero layout (specialty / hopkin pages): elements sit directly
   inside .hero > .container, so restore the vertical rhythm the global
   heading/margin reset removes. */
.hero .container > .section-label {
  margin-bottom: 1rem;
}

.hero:not(.hero--audit) .container > h1 {
  max-width: 60rem;
  margin-bottom: 1.25rem;
}

.hero .container > .lead {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.hero .container > .microcopy {
  margin-top: 0.875rem;
  margin-bottom: 0;
}

.hero .container > .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 40px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.hero-illus-card {
  width: min(380px, 100%);
  aspect-ratio: 1/1;
  background: var(--illus-cream);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: pedalBob 3.4s ease-in-out infinite;
}

.hero-illus-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--illus-cream);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
}

.hero-float-chip--bottom {
  bottom: -22px;
  left: 4px;
  animation: floatChip 3.8s ease-in-out infinite;
}

.hero-float-chip--top {
  top: -10px;
  right: 0;
  animation: floatY 3.8s ease-in-out infinite;
}

@keyframes pedalBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 2px solid var(--line-soft);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-body-sm);
  color: var(--ink-600);
}

/* ================================================================
   6. SOCIAL PROOF STRIP
   ================================================================ */

.proof-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.proof-stat-caption {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--ink-600);
  margin-top: 0.5rem;
}

.proof-affiliation {
  text-align: center;
  margin-bottom: 2rem;
  font-size: var(--text-body);
  color: var(--ink-600);
}

.proof-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ================================================================
   7. PAIN POINTS SECTION
   ================================================================ */

.pain-bridge {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 18px;
  color: var(--ink-600);
}

/* ================================================================
   8. WHY PEDAL SECTION
   ================================================================ */

.why-narrative {
  max-width: 48rem;
  font-size: 18px;
  color: var(--ink-600);
  margin-bottom: 3rem;
}

/* ================================================================
   9. SERVICES SECTION
   ================================================================ */

.card-outcome {
  color: var(--green-700);
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
  margin-bottom: 0.75rem;
}

.inline-cta {
  text-align: center;
  margin-top: 3rem;
}

.inline-cta p {
  color: var(--ink-600);
  margin-bottom: 1rem;
}

/* ================================================================
   10. RESULTS / CASE STUDIES SECTION
   ================================================================ */

.case-card {
  border-left: 3px solid var(--green-500);
}

.case-card h3 {
  font-size: 18px;
  margin: 1.25rem 0 0.5rem;
}

.result-highlight {
  background: var(--green-50);
  border: 2px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.25rem;
}

.result-highlight p {
  color: var(--green-700);
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
}

.attribution {
  font-size: var(--text-body-sm);
  font-style: italic;
  color: var(--ink-400);
  margin-top: 1rem;
}

/* ================================================================
   11. TESTIMONIALS SECTION
   ================================================================ */

.stars {
  color: var(--green-500);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-800);
  margin-bottom: 1.5rem;
}

.testimonial-name {
  display: block;
  font-weight: var(--weight-bold);
  color: var(--ink-800);
}

.testimonial-role {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--ink-600);
}

/* ================================================================
   12. PRICING SECTION
   ================================================================ */

.pricing-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing-card--featured {
  border: 3px solid var(--green-500);
  box-shadow: 6px 6px 0 var(--green-500);
  position: relative;
}

.pricing-label {
  margin-bottom: 0.75rem;
}

.pricing-range {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.pricing-features {
  border-top: 2px dashed var(--line-soft);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-800);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--green-600);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.trust-line {
  text-align: center;
  font-size: var(--text-body);
  color: var(--ink-600);
  margin-top: 3rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   13. FAQ SECTION
   ================================================================ */

.faq-list {
  border-top: 2px solid var(--ink-800);
}

.faq-item {
  border-bottom: 2px solid var(--ink-800);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.1vw, 20px);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 20px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink-800);
  background: var(--white);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  line-height: 1;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.faq-item.open .faq-icon {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
}

.faq-question::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink-800);
  background: var(--white);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  line-height: 1;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}

.faq-item.open .faq-question::after {
  content: '\2212';
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-standard);
}

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

.faq-answer-inner {
  padding: 0 4px 24px;
  font-size: 16.5px;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 720px;
}

/* ================================================================
   14. FINAL CTA SECTION
   ================================================================ */

.final-cta {
  text-align: center;
}

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

.final-cta .lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.final-cta .btn-primary {
  margin-bottom: 1rem;
}

.secondary-contact {
  font-size: var(--text-body-sm);
  color: var(--ink-400);
  margin-top: 1.5rem;
}

.secondary-contact a {
  color: var(--green-700);
  text-decoration: underline;
}

.secondary-contact a:hover {
  color: var(--ink-800);
}

/* ================================================================
   15. FOOTER
   ================================================================ */

.footer {
  padding: 48px 0;
  background: var(--paper);
  border-top: 2px solid var(--ink-800);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  padding: 6px 12px;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-600);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.footer-nav a:hover {
  color: var(--ink-800);
  background: var(--sand);
}

.footer-divider {
  border: none;
  border-top: 2px solid var(--line-soft);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--ink-400);
}

.footer-legal ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  font-size: var(--text-body-sm);
  color: var(--ink-400);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--ink-800);
}

/* ================================================================
   16. ANIMATIONS
   ================================================================ */

/* Only hide reveal-on-scroll content when JS is running (theme.js adds
   the `js` class synchronously in <head>) — without JS, content stays
   visible instead of being stuck at opacity 0. */
.fade-in {
  transition: opacity 500ms ease, transform 500ms ease;
}

html.js .fade-in:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  html.js .fade-in:not(.visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary--glow {
    animation: none;
  }
}

/* ================================================================
   17. MOBILE STICKY CTA BAR
   ================================================================ */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--white);
  border-top: 2px solid var(--ink-800);
  padding: 0.75rem var(--container-padding-x);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-standard);
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mobile-cta-bar .btn-primary {
  width: 100%;
}

/* ================================================================
   18. RESPONSIVE OVERRIDES
   ================================================================ */

/* Scroll offset for anchor links */
section[id] {
  scroll-margin-top: 5rem;
}

/* ── Tablet (>= 768px) ──────────────────────────────── */

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .proof-stats { grid-template-columns: repeat(3, 1fr); }

  .trust-strip li {
    padding-left: 1.5rem;
    border-left: 2px solid var(--line-soft);
  }
  .trust-strip li:first-child {
    padding-left: 0;
    border-left: none;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .header-cta { display: inline-flex; }
  .header-login { display: inline-flex; }
}

/* ── Desktop (>= 1024px) ────────────────────────────── */

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* The full nav only fits comfortably at desktop widths — tablets
     (768-1023px) keep the hamburger so the header never wraps. */
  .header-nav { display: block; }
  .nav-toggle { display: none; }
}

/* ── Mobile only (< 768px) ──────────────────────────── */

@media (max-width: 767px) {
  .mobile-cta-bar { display: block; }

  .logo-full { max-width: 160px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 20px 56px;
    gap: 40px;
  }

  .hero-image-col { display: none; }

  .container { padding: 0 20px; }

  /* New DS sections — collapse inline grids */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1.4fr 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }

  /* Method row — stack cards vertically */
  [style*="display:flex;align-items:stretch;gap:0;flex-wrap:wrap"] > div[style*="width:56px"] {
    display: none !important;
  }
  [style*="display:flex;align-items:stretch"] > .card[style*="flex:1"] {
    flex-basis: 100% !important;
    min-width: 100% !important;
  }

  /* Section inner padding */
  [style*="padding:96px 40px"] {
    padding: 56px 20px !important;
  }
  [style*="padding:56px 40px"] {
    padding: 40px 20px 24px !important;
  }
  [style*="padding:36px 40px"] {
    padding: 28px 20px !important;
  }
  [style*="padding:20px 40px"] {
    padding: 16px 20px !important;
  }

  .pricing-card {
    min-width: 100%;
  }

  .faq-question {
    font-size: 16px;
    padding: 18px 4px;
  }
}

/* ================================================================
   SPECIALTY CARDS
   ================================================================ */

.specialty-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

.specialty-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-lg);
}

.specialty-card h3 {
  margin-bottom: 0.75rem;
}

.specialty-link {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 15px;
  font-weight: var(--weight-bold);
  color: var(--green-700);
}

/* 4-column grid at wide viewports */
@media (min-width: 1280px) {
  .grid-4--full {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Breadcrumb for category pages */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: var(--text-body-sm);
  color: var(--ink-600);
}

.breadcrumb a {
  color: var(--green-700);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.375rem;
}

/* Nav dropdown */
.nav-dropdown { position: relative; }

.dropdown-toggle { cursor: pointer; }
.dropdown-caret {
  font-size: 0.7rem;
  transition: transform var(--dur-fast) var(--ease-standard);
}
.nav-dropdown.open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 15rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 0.5rem;
  z-index: var(--z-modal);
  list-style: none;
}
.nav-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-600);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.dropdown-menu a:hover {
  background: var(--sand);
  color: var(--ink-800);
}

/* Nested flyout submenu (Specialties → Healthcare & Medical → verticals) */
.dropdown-menu .submenu-parent { position: relative; }
.dropdown-menu .submenu-parent > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.submenu-caret {
  font-size: 0.7rem;
  color: var(--ink-400);
}
.dropdown-submenu {
  display: none;
  position: absolute;
  top: -0.5rem;
  left: calc(100% + 0.25rem);
  min-width: 15rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 0.5rem;
  z-index: var(--z-modal);
  list-style: none;
}
.submenu-parent:hover > .dropdown-submenu,
.submenu-parent:focus-within > .dropdown-submenu { display: block; }

/* Mobile dropdown */
.mobile-dropdown-group { border-bottom: 2px solid var(--line-soft); }

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown-items {
  display: none;
  padding: 0 0 0.5rem;
}
.mobile-dropdown-items.open { display: block; }

.mobile-dropdown-items a.mobile-subitem { padding-left: 2.25rem; }

.mobile-dropdown-items a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-body);
  color: var(--ink-600);
  border-bottom: none;
}

/* ================================================================
   FORM COMPONENTS
   ================================================================ */

.form-card {
  background: var(--white);
  border: var(--border);
  border-top: 3px solid var(--green-500);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-hard);
  max-width: 40rem;
  margin: 0 auto;
}

.section--surface .form-card {
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.form-field label {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-800);
}

.form-field .required {
  color: #DC2626;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 0.75rem 1rem;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink-800);
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}

.form-field input.invalid,
.form-field textarea.invalid,
.form-field select.invalid {
  border-color: var(--danger);
}

.form-error {
  font-size: var(--text-body-sm);
  color: var(--danger);
  min-height: 1.25rem;
}

.form-error-banner {
  background: var(--danger-surface);
  border: 2px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--danger);
  font-size: var(--text-body-sm);
  margin-bottom: 1rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success-icon {
  display: block;
  font-size: 2.5rem;
  color: var(--green-500);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--ink-600);
  font-size: var(--text-body);
}

/* Full-width submit button inside form cards */
.form-card .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

/* Custom select dropdown arrow */
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Placeholder styling */
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* Honeypot -- hidden from humans, visible to bots */
.form-field--honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Submit button loading state */
.btn-primary[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Responsive: two-column rows on tablet+ */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   25. THANK-YOU PAGE
   Conversion confirmation page reached after form submission or
   Cal.com booking. Styles are scoped to elements only used there.
   ================================================================ */

.thank-you-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-pill);
  border: var(--border);
  background: var(--green-500);
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-hard);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.next-step {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-hard);
}

.next-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: var(--border);
  background: var(--ink-800);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
  margin-bottom: 1rem;
}

.next-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  margin-bottom: 0.5rem;
}

.next-step p {
  color: var(--ink-600);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.specialty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .next-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================
   26. REDESIGNED HERO
   ================================================================ */




/* ================================================================
   27. ACCORDION / EXPANDABLE CARDS
   ================================================================ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 64rem;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-margin-top: 5rem;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--ink-800);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-standard);
}

.accordion-trigger:hover {
  background: var(--sand);
}

.accordion-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  border: var(--border);
  background: var(--green-500);
  color: var(--white);
}

.accordion-icon svg { fill: var(--white); }

.accordion-title { flex: 1; }

.accordion-caret {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  transition: transform var(--dur-base) var(--ease-standard);
}

.accordion-caret::before,
.accordion-caret::after {
  content: '';
  position: absolute;
  background: var(--ink-600);
  border-radius: 1px;
}

.accordion-caret::before {
  width: 100%; height: 2px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}

.accordion-caret::after {
  width: 2px; height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%);
  transition: transform var(--dur-base) var(--ease-standard);
}

.accordion-item.open .accordion-caret::after {
  transform: translateX(-50%) scaleY(0);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.open .accordion-panel {
  max-height: 200rem;
}

.accordion-panel-inner {
  padding: 0 1.5rem 2rem;
}

.accordion-panel-inner .grid-2,
.accordion-panel-inner .grid-3 {
  margin-top: 1.5rem;
}

.accordion-panel-inner .card { text-align: left; }
.accordion-panel-inner .lead { margin-bottom: 0.5rem; }

/* ================================================================
   28. OUTBOUND LP (audit/)
   ================================================================ */

/* Slim header — logo only, no nav */
.header--minimal .container {
  justify-content: center;
}

.header--minimal .header-nav,
.header--minimal .header-actions,
.header--minimal .nav-toggle {
  display: none;
}

/* Hero for audit LP */
.hero--audit {
  padding: 6rem 0 var(--section-padding-y-sm);
  text-align: center;
}

.hero--audit h1 {
  max-width: 40rem;
  margin: 0 auto 1rem;
}

.hero--audit .hero-sub {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: var(--text-lg);
  line-height: 1.7;
}

.hero--audit #hero-greeting {
  margin-bottom: 1rem;
  font-size: 18px;
  color: var(--ink-600);
}

/* Cal.com embed wrapper with skeleton to prevent layout shift */
.cal-embed-wrapper {
  min-height: 500px;
  margin: 0 auto 3rem;
}

.cal-embed-skeleton {
  min-height: 500px;
  background: var(--sand);
  border-radius: var(--radius-md);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Final CTA section */
.cta-final {
  text-align: center;
  padding: var(--section-padding-y) 0;
}

.cta-final h2 {
  margin-bottom: 1.5rem;
}

.cta-final .btn-primary {
  margin: 0 auto;
}

/* Mobile optimization for audit LP */
@media (max-width: 767px) {
  .hero--audit {
    padding: 5rem 0 var(--section-padding-y-sm);
  }

  .cal-embed-wrapper {
    min-height: 400px;
  }

  .cal-embed-skeleton {
    min-height: 400px;
  }
}
