/* ==========================================================================
   beViral Landing — /become-viral
   Match 1:1 avec ux-design-specification.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /*
   * Design tokens — Impeccable-compliant
   * Neutrals tinted toward brand hue (red ~15°) for cohesion.
   * No gradient text. No pure grays. OKLCH-derived hex values.
   */

  /* Backgrounds — tinted toward brand red (warm dark) */
  --bg-primary: #100D0E;
  --bg-secondary: #1C1719;
  --bg-tertiary: #292325;

  /* Text — warm neutrals, not dead gray */
  --text-primary: #F5F0F1;
  --text-secondary: #ADA4A7;
  --text-tertiary: #6E6366;

  /* Accent — single color, not gradient. Gradient only on buttons. */
  --accent: #FF2D55;
  --accent-light: #FF6B6B;
  --accent-muted: #CC2444;
  --gradient-accent: linear-gradient(135deg, #FF2D55 0%, #FF6B6B 100%);

  /* Feature universe colors */
  --color-ideas: #0f3460;
  --color-ideas-light: #1a4d7a;
  --color-sounds: #4a1c6e;
  --color-sounds-light: #6d2a9e;
  --color-academy: #1a4d3e;
  --color-academy-light: #2a7a5e;

  /* Shape */
  --radius-card: 14px;
  --radius-button: 28px;
  --radius-small: 8px;

  /* Sizing */
  --btn-height: 54px;
  --container-width: 1120px;
  --container-padding: 20px;

  /* Type — modular scale (major third 1.25) from 16px base.
     5 sizes max + 2 display sizes via clamp().
     xs:12 / sm:14 / base:16 / md:18 / lg:clamp / xl:clamp / 2xl:clamp */
  --font-family: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: clamp(22px, 2.5vw, 28px);
  --text-xl: clamp(28px, 4.5vw, 40px);
  --text-2xl: clamp(34px, 6vw, 52px);
}

/* --------------------------------------------------------------------------
   RESET & BASE
   (doublon partiel avec critical CSS, volontaire pour garantir la cascade)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

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

.container--narrow {
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   BUTTONS (matche l'app : hauteur 56px, radius 28px)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-height);
  padding: 0 32px;
  border: none;
  border-radius: var(--radius-button);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 45, 85, 0.2);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.28);
}

.btn--primary:active {
  transform: scale(0.97);
}

.btn--large {
  min-height: 60px;
  font-size: var(--text-md);
  padding: 0 40px;
}

/* --------------------------------------------------------------------------
   SECTION TITLES
   -------------------------------------------------------------------------- */
.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: var(--text-base);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   SECTION 1 : HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
  background: radial-gradient(ellipse at top, var(--bg-secondary) 0%, var(--bg-primary) 60%);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

/* No gradient text — Impeccable flags it as AI tell #1.
   Solid accent color with subtle text-shadow for depth. */
.hero__title--accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.65;
}

.hero__sub-cta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 12px;
}

.hero__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone frame — real screenshots */
.phone-frame {
  position: relative;
  max-width: 280px;
  width: 100%;
  background: #000;
  border-radius: 40px;
  border: 3px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-frame__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-frame__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
}

.phone-frame--small {
  max-width: 240px;
}

/* --------------------------------------------------------------------------
   SECTION 2 : CREATOR MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
  padding: 40px 0;
  background: var(--bg-secondary);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.marquee__label {
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee__viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-slide 35s linear infinite;
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* Avatars (photos réelles) */
.avatar-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Testimonial avatars */
.testimonial__avatar-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   SECTION 3 : PAIN POINTS
   -------------------------------------------------------------------------- */
.pain {
  padding: 96px 0;
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pain__card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform 0.2s ease;
}

.pain__card:hover {
  transform: translateY(-2px);
}

.pain__icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}

.pain__card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 10px;
}

.pain__card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   SECTION 4 : HOW IT WORKS
   -------------------------------------------------------------------------- */
.how {
  padding: 96px 0;
  background: var(--bg-secondary);
}

.how__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.how__step:last-child {
  margin-bottom: 0;
}

.how__step--reverse {
  direction: rtl;
}

.how__step--reverse > * {
  direction: ltr;
}

.how__visual {
  display: flex;
  justify-content: center;
}

.how__visual .phone-frame {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.how__copy {
  max-width: 440px;
}

.how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.how__copy h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.15;
}

.how__copy p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   SECTION 5 : FEATURES
   -------------------------------------------------------------------------- */
.features {
  padding: 96px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature {
  border-radius: var(--radius-card);
  padding: 32px 28px;
  min-height: 220px;
  color: #fff;
  position: relative;
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
}

.feature__icon {
  font-size: 32px;
  margin-bottom: 18px;
  line-height: 1;
}

.feature h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.feature--ideas {
  background: linear-gradient(135deg, var(--color-ideas) 0%, var(--color-ideas-light) 100%);
}

.feature--sounds {
  background: linear-gradient(135deg, var(--color-sounds) 0%, var(--color-sounds-light) 100%);
}

.feature--academy {
  background: linear-gradient(135deg, var(--color-academy) 0%, var(--color-academy-light) 100%);
}

.feature--score {
  background: var(--gradient-accent);
}

.features__cta {
  text-align: center;
}

.features__sub-cta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   SECTION 5b : WE WORK FOR YOU (Epic 17)
   -------------------------------------------------------------------------- */
.we-work {
  padding: 96px 0 112px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.we-work > .container {
  position: relative;
}

.we-work__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 45, 85, 0.08);
  border: 1px solid rgba(255, 45, 85, 0.2);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin: 0 auto 20px;
  text-align: center;
}

.we-work > .container {
  text-align: center;
}

.we-work > .container > .section-title,
.we-work > .container > .section-intro {
  text-align: center;
}

.we-work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 16px;
  text-align: left;
}

.we-work__card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.we-work__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.8;
}

.we-work__card--plan::before {
  background: linear-gradient(90deg, transparent 0%, #FF2D55 50%, transparent 100%);
}

.we-work__card--post::before {
  background: linear-gradient(90deg, transparent 0%, #AF52DE 50%, transparent 100%);
}

.we-work__card:hover {
  transform: translateY(-2px);
}

.we-work__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.we-work__tag--gift {
  background: rgba(255, 45, 85, 0.1);
  color: var(--accent-light);
}

.we-work__tag--lifetime {
  background: rgba(175, 82, 222, 0.1);
  color: #C77AE8;
}

.we-work__card-title {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.we-work__card-sub {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: 24px;
}

.we-work__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.we-work__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.we-work__list li:last-child {
  border-bottom: none;
}

.we-work__list li strong {
  color: var(--text-primary);
  font-weight: 700;
}

.we-work__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.we-work__card--post .we-work__check {
  background: #AF52DE;
}

.we-work__proof {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.we-work__proof-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.we-work__footer-note {
  margin-top: 40px;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.we-work__footer-note strong {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   SECTION 6 : TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 96px 0;
  background: var(--bg-secondary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--bg-tertiary);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.testimonial__avatar {
  width: 64px;
  height: 64px;
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonial__head {
  margin-bottom: 16px;
}

.testimonial__head strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial__head span {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.testimonial p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial__stars {
  margin-top: 16px;
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 7 : FAQ
   -------------------------------------------------------------------------- */
.faq {
  padding: 96px 0;
}

.faq__item {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.faq__item:hover {
  background: var(--bg-tertiary);
}

.faq__item[open] {
  background: var(--bg-tertiary);
}

.faq__item summary {
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   SECTION 8 : FINAL CTA
   -------------------------------------------------------------------------- */
.final-cta {
  padding: 120px 0 140px;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.final-cta > * {
  position: relative;
}

.final-cta h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.final-cta p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: var(--text-base);
  line-height: 1.65;
}

.final-cta__proof {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   STICKY BOTTOM BAR (mobile only)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: sticky-in 0.3s ease;
}

.sticky-cta[hidden] {
  display: none;
}

@keyframes sticky-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sticky-cta .btn {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
  padding: 0 20px;
}

.sticky-cta__close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
}

/* Masquer la sticky bar sur desktop */
@media (min-width: 1024px) {
  .sticky-cta {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   EXIT MODAL
   -------------------------------------------------------------------------- */
.exit-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fade-in 0.2s ease;
}

.exit-modal[hidden] {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.exit-modal__card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.exit-modal__card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 12px;
}

.exit-modal__card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: var(--text-sm);
  line-height: 1.65;
}

.exit-modal__card .btn {
  width: 100%;
}

.exit-modal__close {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
}

.exit-modal__close:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer-mini {
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom, 0px) + 80px);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.footer-mini a {
  color: var(--text-tertiary);
  margin: 0 12px;
  transition: color 0.2s ease;
}

.footer-mini a:hover {
  color: var(--text-secondary);
}

@media (min-width: 1024px) {
  .footer-mini {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero {
    padding: 60px 0 120px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__mockup {
    order: 2;
  }

  .hero__mockup .phone-frame {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .pain,
  .how,
  .features,
  .we-work,
  .testimonials,
  .faq {
    padding: 64px 0;
  }

  .we-work__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .we-work__card {
    padding: 32px 24px;
  }

  .final-cta {
    padding: 80px 0 100px;
  }

  .how__step,
  .how__step--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    margin-bottom: 64px;
  }

  .how__copy {
    text-align: center;
    margin: 0 auto;
  }

  .how__num {
    margin-left: auto;
    margin-right: auto;
  }

  .pain__card,
  .feature {
    padding: 28px;
  }

  .feature {
    min-height: 200px;
  }

  .testimonial {
    padding: 28px;
  }

  .btn {
    width: 100%;
    max-width: 360px;
  }

  .btn--large {
    min-height: 56px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .hero__badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .pain__grid,
  .features__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .faq__item {
    padding: 18px 20px;
  }

  .faq__item summary {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   PHOTO INTEGRATIONS
   -------------------------------------------------------------------------- */

/* Hero background image — cinematic behind entire hero */
.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Visual break — full-width cinematic photo strip between sections */
.visual-break {
  position: relative;
  width: 100%;
  height: clamp(200px, 25vw, 360px);
  overflow: hidden;
}

.visual-break__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.visual-break__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    rgba(16, 13, 14, 0.15) 15%,
    rgba(16, 13, 14, 0.15) 85%,
    var(--bg-secondary) 100%
  );
  pointer-events: none;
}

.visual-break--features .visual-break__img {
  object-position: center center;
}

.visual-break--features .visual-break__overlay {
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    rgba(16, 13, 14, 0.2) 25%,
    rgba(16, 13, 14, 0.2) 75%,
    var(--bg-primary) 100%
  );
}

.visual-break--alt .visual-break__img {
  object-position: center 60%;
}

.visual-break--alt .visual-break__overlay {
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    rgba(16, 13, 14, 0.3) 20%,
    rgba(16, 13, 14, 0.3) 80%,
    var(--bg-primary) 100%
  );
}

/* Final CTA background image */
.final-cta__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Responsive photo tweaks */
@media (max-width: 1023px) {
  .hero__bg-image {
    opacity: 0.14;
  }
}

@media (max-width: 768px) {
  .visual-break {
    height: 160px;
  }

  .hero__bg-image {
    opacity: 0.12;
  }
}

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

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

.btn:focus-visible {
  outline-offset: 4px;
}
