/* BODYSCULPT marketing — layout rhythm, scroll & organization */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bs-header, 76px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.marketing {
  overflow-x: clip;
}

body.marketing main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Consistent section rhythm */
body.marketing .k-section,
body.marketing .k-hero,
body.marketing .k-stats-strip,
body.marketing .k-steps,
body.marketing .k-bento,
body.marketing .k-brand,
body.marketing .k-product,
body.marketing .k-showcase,
body.marketing .k-more,
body.marketing .k-testimonials,
body.marketing .k-pricing,
body.marketing .k-founder,
body.marketing .k-stats-band,
body.marketing .k-portals,
body.marketing .k-faq,
body.marketing .k-newsletter,
body.marketing .k-final-cta,
body.marketing .hp-section,
body.marketing .hp-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

body.marketing .k-hero {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

body.marketing .k-stats-strip {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-top: -0.5rem;
}

body.marketing .k-container {
  width: min(100% - 2.5rem, var(--bs-container, 1180px));
  margin-inline: auto;
  padding-inline: 0.25rem;
}

body.marketing .k-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

body.marketing .k-section-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bs-accent-dark);
}

body.marketing .k-section-head h2 {
  margin-bottom: 0.65rem;
}

body.marketing .k-section-head p {
  margin: 0;
  color: var(--bs-muted);
  line-height: 1.65;
}

/* Product block — rail + showcases feel like one unit */
body.marketing .k-product {
  scroll-margin-top: calc(var(--bs-header, 76px) + 16px);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 0;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--bs-bg-card) 40%, transparent) 12%,
    transparent
  );
}

body.marketing .k-product .k-showcase {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

body.marketing .k-product .k-showcase:first-of-type {
  padding-top: 1.5rem;
}

body.marketing .k-product .k-showcase:last-of-type {
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

/* Feature rail styling lives in marketing-redesign.css (sticky + tokens) */

/* Showcase grids — aligned, even columns */
body.marketing .k-showcase-grid {
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

body.marketing .k-brand-grid {
  gap: clamp(2rem, 4vw, 3.5rem);
}

body.marketing .k-more-grid {
  gap: 1rem;
}

body.marketing .k-pricing-grid {
  gap: 1.25rem;
  align-items: stretch;
}

/* Hero visual containment */
body.marketing .k-hero-visual {
  position: relative;
  margin-inline: auto;
  max-width: 100%;
}

body.marketing .k-hero-phone {
  position: relative;
  z-index: 2;
}

body.marketing .k-video-pill {
  bottom: 4%;
}

/* Header */
body.marketing .k-header-inner {
  position: relative;
}

/* Scroll affordances */
body.marketing .k-scroll-top {
  bottom: 1.25rem;
  right: 1.25rem;
}

/* Content always readable — animations are enhancement only */
body.marketing:not(.motion-enhanced) .reveal,
body.marketing:not(.motion-enhanced) .k-more-card,
body.marketing:not(.motion-enhanced) .k-quote {
  opacity: 1 !important;
  transform: none !important;
}

body.marketing.motion-enhanced .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

body.marketing.motion-enhanced .k-more-card:not(.is-visible),
body.marketing.motion-enhanced .k-quote:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* Footer breathing room */
body.marketing .k-footer {
  padding-bottom: 2.5rem;
}

@media (max-width: 768px) {
  body.marketing .k-container {
    width: min(100% - 1.5rem, var(--bs-container, 1180px));
  }

  body.marketing .k-float-card {
    display: none;
  }

  body.marketing .k-avatar-dot {
    display: none;
  }

  body.marketing .k-hero-visual {
    min-height: 360px;
  }

  body.marketing .k-showcase-grid,
  body.marketing .k-brand-grid,
  body.marketing .k-newsletter-inner {
    grid-template-columns: 1fr;
  }

  body.marketing .k-showcase-grid.reverse .k-showcase-copy,
  body.marketing .k-showcase-grid.reverse .k-showcase-visual {
    order: unset;
  }
}

@media (min-width: 1024px) {
  body.marketing .k-more-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
