/* ============================================================
   ForgeLaunchLabs page canvas — FORGE SYSTEM v2
   (formerly "cosmic" photo scenes; the data-cosmic-scene hooks
   are preserved, but pages now render on the clean ambient
   canvas defined in /DESIGN.md — no photo backplates.)
   ============================================================ */

body[data-cosmic-scene] {
  position: relative;
  color: var(--fll-paper, #040063);
  background:
    radial-gradient(1100px 520px at 82% -8%, color-mix(in oklch, var(--fll-ember, #1d4ed8) 8%, transparent), transparent 62%),
    radial-gradient(900px 480px at -12% 30%, color-mix(in oklch, var(--fll-aqua, #0222af) 5%, transparent), transparent 60%),
    var(--fll-ink, #ffffff) !important;
  overflow-x: hidden;
}

/* photo layers retired — keep the pseudo-elements inert */
body[data-cosmic-scene]::before,
body[data-cosmic-scene]::after {
  content: none;
}

body[data-cosmic-scene] .site-shell,
body[data-cosmic-scene] .fll-site-shell {
  background: color-mix(in oklch, var(--fll-ink, #ffffff) 78%, transparent) !important;
  border-bottom-color: var(--fll-line, #e2e8f0) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body[data-cosmic-scene] .page-hero,
body[data-cosmic-scene] .hero,
body[data-cosmic-scene] main > section:first-of-type {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* hero ambient: one soft ember field instead of a photo */
body[data-cosmic-scene] .page-hero::before,
body[data-cosmic-scene] .hero::before,
body[data-cosmic-scene] main > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 340px at 80% 0%, color-mix(in oklch, var(--fll-ember, #1d4ed8) 10%, transparent), transparent 65%);
}

body[data-cosmic-scene] .page-hero::after,
body[data-cosmic-scene] .hero::after,
body[data-cosmic-scene] main > section:first-of-type::after {
  content: none;
}

body[data-cosmic-scene] .hero-visual,
body[data-cosmic-scene] .visual-card,
body[data-cosmic-scene] .price-card,
body[data-cosmic-scene] .metric-card,
body[data-cosmic-scene] .form-panel,
body[data-cosmic-scene] .final-panel {
  border-color: var(--fll-line, #e2e8f0) !important;
  background-color: var(--fll-charcoal-2, #ffffff) !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-cosmic-scene] .page-title,
body[data-cosmic-scene] .page-section-title,
body[data-cosmic-scene] h1,
body[data-cosmic-scene] h2 {
  text-shadow: none;
}

@media (max-width: 760px) {
  body[data-cosmic-scene] .page-hero,
  body[data-cosmic-scene] .hero,
  body[data-cosmic-scene] main > section:first-of-type {
    padding-top: clamp(2rem, 7vw, 3rem);
    padding-bottom: clamp(3.5rem, 12vw, 5rem);
  }

  body[data-cosmic-scene] .page-title {
    max-width: 12.5ch;
    font-size: clamp(1.96rem, 8.8vw, 2.82rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  body[data-cosmic-scene] .page-title.wide {
    max-width: 12.75ch;
    font-size: clamp(1.96rem, 8.8vw, 2.82rem);
  }

  body[data-cosmic-scene] .page-lede {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.58;
    max-width: min(100%, 34rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-cosmic-scene] .page-actions {
    gap: .72rem;
    margin-top: 1.15rem;
    padding-right: 4.9rem; /* clears the floating chat widget */
  }

  body[data-cosmic-scene] .page-actions .page-btn {
    min-height: 48px;
    padding-block: .82rem;
  }
}

@media (max-width: 420px) {
  body[data-cosmic-scene] .page-actions {
    padding-right: 4.4rem; /* clears the floating chat widget */
  }

  body[data-cosmic-scene] .page-title,
  body[data-cosmic-scene] .page-title.wide {
    max-width: 12.25ch;
    font-size: clamp(1.92rem, 8.6vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-cosmic-scene] *,
  body[data-cosmic-scene] *::before,
  body[data-cosmic-scene] *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
