/* =========================================================
   2. GLOBAL BASICS & RESET
========================================================= */

html, body{
  height: 100%;
}

html{
  /* prevents layout jump when scrollbar appears */
  scrollbar-gutter: stable;
  /* smoother anchor jumps (nice for nav links) */
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: var(--font-sans);
  background: #0b0c0f;
  color: rgba(255,255,255,.92);

  /* ✅ keep parallax / transforms from causing sideways bleed */
  overflow-x: clip;           /* better than hidden on modern browsers */
}

/* Fallback for older browsers */
@supports not (overflow: clip){
  body{ overflow-x: hidden; }
}

/* Make media predictable */
img, video{
  max-width: 100%;
  height: auto;
  display: block;
}

    /* =========================================================
      3. LAYOUT WRAPPERS
    ========================================================= */
    .restricted-container{
      padding-left: var(--wrap-x);
      padding-right: var(--wrap-x);
    }

    .margin-container{
      width: min(1200px, calc(100% - 40px));
      margin-inline: auto;
    }

    @media (min-width: 768px){
      :root{
        /* gives you a visibly wider frame on md, but capped so it never gets silly */
        --wrap-x: clamp(20px, 6vw, 110px);
        --head-py: 25px;
        --logo-h: 30px;
      }
    }
    @media (min-width: 992px){
      :root{
        /* “large screen should be ~40px+ each side” vibe (and still fluid) */
        --wrap-x: clamp(28px, 4vw, 140px);
        --head-py: 30px;
        --logo-h: var(--logo-h-lg);
      }
    }
    @media (min-width: 1200px){
      :root{
        /* wide desktops: gently increases, hard capped */
        --wrap-x: clamp(36px, 5vw, 160px);
        --head-py: 35px;
      }
    }
    @media (min-width: 1400px){
      :root{
        /* “xxl”: still capped; avoids the over-wide margins you disliked */
        --wrap-x: clamp(40px, 6vw, 180px);
        --head-py: 40px;
      }
    }

/* =========================================================
   4. HEADER & NAVIGATION
========================================================= */

/* -----------------------------------------
   4.1 Offcanvas Theming (Frosted)
------------------------------------------ */
.offcanvas.frosted{
  background: rgba(18,20,24,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--b-soft);
  color: rgba(255,255,255,.92);
}

.offcanvas .btn-outline-light{
  border-color: rgba(255,255,255,.22);
}


/* -----------------------------------------
   4.2 A11y Modes
------------------------------------------ */

/* Dyslexic font: Atkinson (swap to hosted file later if needed) */
body.is-dyslexic{
  font-family: "Atkinson Hyperlegible", var(--font-sans);
  letter-spacing: .01em;
}

/* High Contrast Mode: force core surfaces & controls */
body.is-high-contrast{
  background: #000 !important;
  color: #fff !important;
}

body.is-high-contrast .site-header.is-frosted{
  background: rgba(0,0,0,.92) !important;
  border-bottom-color: rgba(255,255,0,.35) !important;
}

body.is-high-contrast .icon-btn,
body.is-high-contrast .theme-switch{
  background: #000 !important;
  border-color: rgba(255,255,0,.55) !important;
  color: #fff !important;
}

body.is-high-contrast .navlink{
  color: rgba(255,255,0,.92) !important;
}

body.is-high-contrast .navlink:hover{
  border-bottom-color: rgba(255,255,0,.55) !important;
}

body.is-high-contrast .offcanvas.frosted{
  background: rgba(0,0,0,.95) !important;
  border-color: rgba(255,255,0,.45) !important;
  color: #fff !important;
}


/* =========================================================
   5. FOOTER — SPACING + CONSISTENCY + PARALLAX LAYER
   (Paste into main.css)
========================================================= */

/* -----------------------------------------
   5.1 Footer layout & spacing
------------------------------------------ */
.site-footer{
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
  position: relative;            /* ✅ needed for parallax layer */
  overflow: hidden;              /* ✅ keeps glow contained */
}

.site-footer .restricted-container{
  display: block;
  position: relative;            /* ✅ content above parallax */
  z-index: 1;                    /* ✅ content above parallax */
}

.footer-top{
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* -----------------------------------------
   5.2 Footer links (rhythm + alignment)
------------------------------------------ */
.footer-nav{
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.footer-nav--right{
  align-items: flex-start;
}

@media (min-width: 768px){
  .footer-nav--right{ align-items: flex-end; }
}

/* Link look */
.footer-link{
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

.footer-link:hover{
  color: rgba(255,255,255,0.95);
}

/* -----------------------------------------
   5.3 Logo sizing
------------------------------------------ */
.footer-logo{
  max-width: 240px;
  width: min(240px, 70%);
  height: auto;
  opacity: .95;
}

/* -----------------------------------------
   5.4 Subfooter spacing
------------------------------------------ */
.subfooter{
  padding-top: 1.1rem;
}

.subfooter-row{
  margin-bottom: .85rem;
}

.subfooter-left{
  color: rgba(255,255,255,0.70);
}

.subfooter-right{
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px){
  .subfooter-right{ justify-content: flex-end; }
}

/* -----------------------------------------
   5.5 Payment pills
------------------------------------------ */
.pay-icons{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-start;
}

@media (min-width: 768px){
  .pay-icons{ justify-content: flex-end; }
}

.pay-pill{
  font-size: .75rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
}

/* -----------------------------------------
   5.6 Credit line
------------------------------------------ */
.footer-credit{
  text-align: center;
}

.footer-link--muted{
  color: rgba(255,255,255,0.62);
}

.footer-link--muted:hover{
  color: rgba(255,255,255,0.90);
}


/* -----------------------------------------
   5.7 Footer parallax layer (glassy nebula)
   NOTE: Requires the HTML div:
   <div class="footer-parallax-layer" data-parallax="0.18" ...></div>
------------------------------------------ */
.footer-parallax-layer{
  position: absolute;
  inset: -30% -10% -30% -10%;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(60% 50% at 20% 30%, rgba(157,150,239,.22), transparent 60%),
    radial-gradient(55% 45% at 80% 70%, rgba(79,172,254,.14), transparent 60%),
    radial-gradient(45% 40% at 60% 20%, rgba(86,240,193,.10), transparent 65%);

  filter: blur(18px);
  opacity: .9;
  transform: translateZ(0);
}

	/* =========================================================
   5. HERO SECTION (Adjusted: less vertical gap)
========================================================= */

.hero-space {
  position: relative;
  width: 100vw;

  /* ✅ Instead of forcing 100vh always */
  min-height: 70vh;                  /* still big */
  height: clamp(520px, 78vh, 860px); /* responsive, but capped */
  overflow: hidden;
  background: #000;

  /* optional: helps avoid accidental extra space */
  margin-bottom: 0;
}

/* Media */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 3000ms ease-in-out;
  will-change: opacity;
}

.hero-media.active {
  opacity: 1;
  z-index: 2;
}

/* ================================
   HERO TEXT SETS — FIXED STACK
   (single source of truth)
   - centered safely (no left-cropping)
   - keeps your blur/lift “active” system
   - responsive type kept as-is
================================ */

/* Text Sets */
.hero-text-set{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(10px);

  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);

  text-align: center;

  opacity: 0;
  visibility: hidden;
  filter: blur(6px);

  z-index: 10;

  transition:
    opacity .9s ease,
    transform .9s ease,
    filter .9s ease,
    visibility .9s ease;

  will-change: opacity, transform, filter;
}

.hero-text-set.active{
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: translate(-50%, -50%) translateY(0);
  z-index: 15;
}

/* tighten vertical rhythm */
.hero-text-set .layer-headline{
  margin: 0 0 .35rem;
}

.hero-text-set .layer-sentence{
  margin: 0;
  opacity: .92;
}

/* Typography */
.layer-headline{
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-size: 2.5rem; /* Mobile base */
}

.layer-sentence{
  line-height: 1.5;
  margin-inline: auto;
  opacity: 0.9;
  font-size: 1.1rem; /* Mobile base */
  max-width: min(90%, 38rem);
}

/* Responsive Typography */
@media (min-width: 768px){
  .layer-headline{ font-size: 3.5rem; margin-bottom: 1.25rem; }
  .layer-sentence{ font-size: 1.25rem; max-width: 600px; }
}

@media (min-width: 992px){
  .layer-headline{ font-size: 4.5rem; }
  .layer-sentence{ font-size: 1.35rem; max-width: 700px; }

  /* ✅ Keep the hero from eating the whole screen on desktop */
  .hero-space{ height: clamp(560px, 74vh, 860px); }
}

@media (min-width: 1200px){
  .layer-headline{ font-size: 5.5rem; }
  .layer-sentence{ font-size: 1.5rem; max-width: 800px; }

  /* ✅ Slightly tighter still on huge displays */
  .hero-space{ height: clamp(580px, 70vh, 880px); }
}
/* =========================================================
   ⬇️ HERO SCROLL DOWN BUTTON (matches Back-to-Top styling)
========================================================= */

/* Make sure the hero wrapper is positioned */
.hero,
.hero-space,
.hero-wrap,
.hero-shell { position: relative; }

/* If your back-to-top class is different, keep your original
   and only use these additions */
.backtop.backtop--down{
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3.2vh, 26px);
  transform: translateX(-50%);
  z-index: 20;

  /* more visible than back-to-top */
  background: rgba(10, 14, 22, .72);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 14px 40px rgba(0,0,0,.55),
    0 0 0 1px rgba(86, 240, 193, .18);
}

/* Make arrow clearer + a little “alive” */
.backtop.backtop--down .backtop-ico{
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 14px rgba(86,240,193,.25);
  transform: translateY(-1px);
}

/* Gentle pulse without being obnoxious */
@keyframes pitDownPulse{
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .95; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
.backtop.backtop--down{
  animation: pitDownPulse 1.6s ease-in-out infinite;
}

/* Hover/focus: brighter ring */
.backtop.backtop--down:hover,
.backtop.backtop--down:focus-visible{
  background: rgba(14, 18, 28, .86);
  border-color: rgba(255,255,255,.32);
  box-shadow:
    0 18px 55px rgba(0,0,0,.62),
    0 0 0 1px rgba(79, 172, 254, .22);
  outline: none;
}

/* If you want it hidden on very small height viewports */
@media (max-height: 520px){
  .backtop.backtop--down{ display:none; }
}



/* =========================================================
   ROUND ICON BUTTON — shared by hamburger + accessibility
========================================================= */

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);

  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .15s ease;
}

.icon-btn:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.icon-btn:active{
  transform: translateY(0);
}

/* =========================================================
   6. ANIMATIONS (Keyframes & Classes)
========================================================= */

@keyframes blurFade {
  from { filter: blur(15px); opacity: 0; }
  to   { filter: blur(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes wipeIn {
  to { background-position: 0% 0; }
}

@keyframes zoomFade {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes simpleFade {
  to { opacity: 0.8; }
}

@keyframes pricing-gradient-shimmer{
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================================================
   7. TYPOGRAPHY HELPERS
========================================================= */
.text-lavender{ color: var(--lavender) !important; }

.pit-h{
  color: var(--ink);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
  margin: 0 0 10px;
}

.pit-p{
  color: var(--muted);
  font-size: var(--fs-base);
  max-width: var(--measure-base);
  margin: 0 0 12px;
  line-height: 1.6;
}

.pit-ul{
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.pit-ul li{ margin: 0.35rem 0; }

/* =========================================================
   8. ANIMATION UTILITIES
========================================================= */
.active .blur-in {
  animation: blurFade 2.5s ease forwards;
}

.active .slide-up {
  animation: slideUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.active .wipe-in {
  animation: wipeIn 3s ease forwards;
  background: linear-gradient(to right, #fff 50%, rgba(255,255,255,0) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.active .zoom-fade {
  animation: zoomFade 3s ease-out forwards;
}

/* =========================================================
   9. COMPONENTS
========================================================= */

/* --- Cards --- */
.pit-card{
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--bs-body-bg, #0b0f14) 80%, #ffffff 20%);
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 16px 60px rgba(0,0,0,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}
.pit-card .icon{
  width: 1em;
  height: 1em;
}

/* --- Icon Box --- */
.icon-box-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}
.icon-box-icon .icon {
  width: 64px;
  height: 64px;
  fill: currentColor;
}
.icon-box-content {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.icon-box-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.icon-box-desc {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.55;
}
[data-bs-theme="dark"] .icon-box-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* --- BV Quote --- */
.bv-quote{
  width: min(980px, 92vw);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bs-body-bg, #0b0f14) 70%, #ffffff 30%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 70px rgba(0,0,0,0.35);
}
.bv-quote-inner{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}
.bv-quote-logo{
  display: flex;
  justify-content: center;
  align-items: center;
}

.bv-quote-logo img{
  width: clamp(120px, 18vw, 150px);
  height: auto;
  border-radius: 16px;
}
.bv-quote h4{
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  color: var(--bs-body-color, #e8eef7);
}
.pit-highlight{
  display: inline-block;
  color: var(--bs-primary, #7cf0c8);
}
@media (max-width: 700px){
  .bv-quote-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bv-quote-logo img{
    max-width: 140px;
    margin-inline: auto;
  }
}


/* =========================================================
   10. SECTIONS
========================================================= */

/* --- Pitstop Panels (Parallax) --- */
.pitstop-panels{
  background: transparent;
}
.parallax-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--panel-gap);
  align-items: stretch;
  margin-bottom: clamp(26px, 6vw, 54px);
}
@media (min-width: 992px){
  .parallax-row{
    grid-template-columns: 1fr 1fr;
  }
  .parallax-row.row-reverse{
    direction: rtl;
  }
  .parallax-row.row-reverse > *{
    direction: ltr;
  }
}
.parallax-box{
  position: relative;
  border-radius: var(--panel-radius);
  overflow: hidden;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.box-inner{
  height: 100%;
}
.full-stretch{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.text-box .box-inner{
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
}
.content-edge{
  max-width: 62ch;
}

/* --- GSAP Horizontal --- */
.gsap-horizontal-section{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bs-body-bg, #0b0f14);
}
.gsap-horizontal-track{
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}
.gsap-panel{
  flex: 0 0 100vw;
  min-width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.gsap-panel .panel-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
}
.gsap-panel:nth-child(odd){
  background: color-mix(in srgb, var(--bs-body-bg, #0b0f14) 92%, #ffffff 8%);
}
.gsap-panel:nth-child(even){
  background: color-mix(in srgb, var(--bs-body-bg, #0b0f14) 86%, #ffffff 14%);
}

/* --- Clinical Lead Panel --- */
.panel-clinical-lead{
  width: min(1220px, 94vw);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}
.panel-2-media{
  position: relative;
  min-height: min(70vh, 640px);
}
.panel-1-image,
.panel-2-image{
  margin: 0;
  position: relative;
}
.panel-1-image-large{
  width: min(640px, 88%);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
}
.panel-1-image-large img{
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0);
}
.panel-2-image-small{
  position: absolute;
  right: 0;
  bottom: 6%;
  width: min(360px, 55%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.12);
  transform: translateZ(0);
}
.panel-2-image-small img{
  display: block;
  width: 100%;
  height: auto;
}
.panel-2-copy{
  width: 100%;
}
.panel-2-heading{
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin-bottom: 14px;
  color: var(--bs-body-color, #e8eef7);
}
.panel-2-copy p{
  margin: 0 0 12px;
  opacity: 0.92;
  line-height: var(--lh-base);
  font-size: var(--fs-base);
  max-width: var(--measure-base);
  color: var(--bs-body-color, #e8eef7);
}
@media (max-width: 900px){
  .panel-clinical-lead{
    grid-template-columns: 1fr;
  }
  .panel-2-media{
    min-height: auto;
  }
  .panel-2-image-small{
    position: relative;
    width: min(420px, 100%);
    right: auto;
    bottom: auto;
    margin-top: 14px;
  }
}

/* --- Pricing Section --- */
.pricing-section{
  position: relative;
}
.pricing-card{
  border-radius: 20px;
  background: var(--pricing-bg);
  border: 1px solid var(--pricing-border);
  box-shadow: var(--pricing-shadow);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.pricing-card:hover{
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--pricing-accent) 70%, transparent);
  box-shadow: var(--pricing-shadow-hover);
}
.pricing-card-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  transform: translateZ(0);
  transition: transform .6s ease;
}
.pricing-card:hover .pricing-card-img{
  transform: scale(1.05);
}
.pricing-price{
  color: var(--pricing-accent);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: .02em;
}
.reveal-block .inner{
  background: var(--pricing-bg-inner);
  border-color: rgba(255,255,255,.10) !important;
  border-radius: 15px;
}
.reveal-block{
  will-change: height;
}
.btn-purchase{
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform .25s ease, filter .25s ease;
}
.btn-purchase.is-disabled{
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.35) !important;
  opacity: .55;
  pointer-events: none;
}
.btn-purchase.is-ready{
  background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 45%, #4ecdc4 75%, #21c55d 100%) !important;
  border-color: transparent !important;
  background-size: 200% auto;
  filter: saturate(1.05) contrast(1.05);
  box-shadow: 0 4px 15px rgba(91,134,229,.35), 0 0 20px rgba(78,205,196,.18);
  animation: pricing-gradient-shimmer 4s ease infinite;
}

/* --- Newsletter --- */
.newsletter-section{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
[data-bs-theme="dark"] .newsletter-section{
  border-top-color: rgba(255,255,255,0.10);
  border-bottom-color: rgba(255,255,255,0.10);
}
.newsletter-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/art1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.05);
}
.newsletter-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.55));
  pointer-events:none;
}
[data-bs-theme="dark"] .newsletter-overlay{
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.65));
}
.newsletter-section .z-index-2{
  position: relative;
  z-index: 2;
}
.up-to-date-form{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
}
[data-bs-theme="dark"] .up-to-date-form{
  background: rgba(20,20,20,0.52);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 52px rgba(0,0,0,0.35);
}
.newsletter-section .form-control{
  min-height: 52px;
  border-radius: 14px 0 0 14px;
  border: 1px solid rgba(0,0,0,0.12);
}
[data-bs-theme="dark"] .newsletter-section .form-control{
  border-color: rgba(255,255,255,0.18);
}
.newsletter-section .btn{
  min-height: 52px;
  border-radius: 0 14px 14px 0;
  padding-left: 18px;
  padding-right: 18px;
}
.newsletter-section .form-control:focus,
.newsletter-section .btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.18);
}
.newsletter-section .form-check{
  gap: 6px;
}
.newsletter-section .form-check-input{
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}
.mint-link{
  color: inherit;
  opacity: 0.9;
}
.mint-link:hover{
  opacity: 1;
}
.newsletter-status{
  font-size: var(--fs-sm);
  opacity: 0.9;
}
.newsletter-section .btn.is-disabled{
  opacity: 0.55;
  pointer-events: none;
}

/* =========================================
   A11Y FLOATING ACTION BUTTON (FIXED)
========================================= */

.a11y-fab{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;

  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 28px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.10) inset;

  cursor: pointer;
  z-index: 1055; /* Above content, below offcanvas */

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

/* Fixed placement */
.a11y-fab--fixed{
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
}

/* Icon sizing */
.a11y-fab i{
  font-size: 1.6rem;
  line-height: 1;
}

/* Hover / focus */
.a11y-fab:hover,
.a11y-fab:focus-visible{
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(0,0,0,.55),
    0 0 0 2px rgba(255,255,255,.20) inset;
}

/* Keyboard focus ring */
.a11y-fab:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(157,150,239,.85),
    0 14px 34px rgba(0,0,0,.55);
}

/* Optional: hide on very small screens if needed */
@media (max-width: 360px){
  .a11y-fab{
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   🔤 FONT LAB FLOAT — UI ONLY
   Purpose: select typography profile (data-font)
========================================================= */

.font-lab-float{
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1055; /* above offcanvas backdrop */
  pointer-events: auto;
}

/* Glass container */
.font-lab-control{
  display: flex;
  flex-direction: column;
  gap: .4rem;

  padding: .65rem .75rem .75rem;
  min-width: 240px;

  border-radius: 14px;
  background: rgba(15,18,28,.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14);

  box-shadow:
    0 18px 40px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.04) inset;
}

/* Label */
.font-lab-label{
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* Select */
.font-lab-select{
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  padding: .55rem 2.2rem .55rem .6rem;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));

  color: #fff;
  font-size: .9rem;
  cursor: pointer;

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

/* Custom dropdown arrow */
.font-lab-select{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%),
    linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) 55%,
    calc(100% - .9rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Hover / focus */
.font-lab-select:hover{
  border-color: rgba(255,255,255,.35);
}

.font-lab-select:focus-visible{
  outline: none;
  border-color: rgba(157,150,239,.9);
  box-shadow:
    0 0 0 2px rgba(157,150,239,.6),
    0 12px 30px rgba(0,0,0,.45);
}

/* Options (browser-dependent support) */
.font-lab-select option{
  background: #0b0c12;
  color: #fff;
}

/* Compact mode on small screens */
@media (max-width: 575px){
  .font-lab-float{
    right: .75rem;
    bottom: .75rem;
  }

  .font-lab-control{
    min-width: 200px;
    padding: .55rem .65rem .65rem;
  }

  .font-lab-select{
    font-size: .85rem;
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  .font-lab-select{
    transition: none;
  }
}
/* =========================================================
   🌗 Calm Theme Toggle — NO ANIMATION
========================================================= */

.theme-toggle{
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.theme-toggle__track{
  position: relative;
  width: 58px;
  height: 30px;
  border-radius: 999px;

  background: #2a2b30; /* neutral grey */
  border: 1px solid rgba(255,255,255,0.15);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 6px 18px rgba(0,0,0,0.35);
}

.theme-toggle__icon{
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1;
  pointer-events: none;
}

/* Thumb */
.theme-toggle__thumb{
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;

  background: #e6e6e6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Light mode */
html[data-bs-theme="light"] .theme-toggle__track{
  background: #dcdcdc;
  border-color: rgba(0,0,0,0.15);
}

html[data-bs-theme="light"] .theme-toggle__icon{
  color: rgba(0,0,0,0.6);
}

html[data-bs-theme="light"] .theme-toggle__thumb{
  left: 31px;
  background: #ffffff;
}

/* Dark mode */
html[data-bs-theme="dark"] .theme-toggle__thumb{
  left: 3px;
  background: #e6e6e6;
}

/* Keyboard focus (subtle, no flash) */
.theme-toggle:focus-visible .theme-toggle__track{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(157,150,239,0.6),
    0 6px 18px rgba(0,0,0,0.35);
}

/* =========================================================
   HERO — FINAL OVERRIDE (fills viewport beneath fixed header)
   Put this at the END of main.css
========================================================= */

#headerSpacer{
  height: var(--header-height) !important;
}

/* Use dynamic viewport units to avoid iOS address-bar issues */
.hero-space{
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: #000;
}

@supports (height: 100dvh){
  .hero-space{
    height: calc(100dvh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
  }
}

/* =========================================================
   🌀 PARALLAX FEATURE — Working block for YOUR markup
   Matches: .parallax-bg, .parallax-copy, .para-layer.layer-1/2/3
========================================================= */

.parallax-feature{
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;

  /* clean stacking context */
  isolation: isolate;
  background: #000;
}

/* Background image layer */
.parallax-feature{
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.parallax-bg{
  position: absolute;
  left: 0; right: 0;
  top: -12%;
  height: 124%;                 /* ✅ oversized so movement is visible */
  z-index: 1;

  background-image: url("https://images.unsplash.com/photo-1491553895911-0055eca6402d?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Safety contrast overlay */
.parallax-feature::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.05)
  );
  z-index: 2;
  pointer-events:none;
}

/* Right-side stack container */
.parallax-copy{
  position: relative;
  z-index: 5;

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;

  gap: 2.25rem;
  padding: clamp(2rem, 6vw, 6rem);
  text-align: right;
  max-width: 560px;
  margin-left: auto;
}

/* Individual layers (YOUR classes) */
.para-layer{
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.85;
  will-change: transform;
}

/* Depth styling (maps to layer-1/2/3) */
.para-layer.layer-1{
  font-size: clamp(2rem, 4vw, 3.2rem);
  opacity: 0.92;
}

.para-layer.layer-2{
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  opacity: 0.72;
}

.para-layer.layer-3{
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.56;
}

/* Basic text polish */
.para-layer h3{ margin: 0 0 .35rem; }
.para-layer p{ margin: 0; opacity: .85; }

/* Mobile safety */
@media (max-width: 767px){
  .parallax-copy{
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
}

/* ================================
   PARALLAX TEXT — PREMIUM STYLE
================================ */

.parallax-copy{
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: auto;        /* pushes it to the right side */
  padding: clamp(18px, 3vw, 34px);
  text-align: right;

  /* initial state for JS reveal */
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}

/* kicker chip */
.pc-kicker{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .75rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

/* title */
.pc-title{
  margin: .9rem 0 1.2rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.0rem, 5vw, 3.6rem);
  color: rgba(255,255,255,.92);
  text-shadow: 0 18px 48px rgba(0,0,0,.55);
}

/* title emphasis */
.pc-title span{
  background: linear-gradient(90deg, #4facfe, #56f0c1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 24px rgba(86,240,193,.18));
}

/* points stack */
.pc-points{
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.pc-point{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);

  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
}

.pc-label{
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .95rem;
  color: rgba(255,255,255,.92);
}

.pc-desc{
  margin-top: 6px;
  font-size: 1.02rem;
  color: rgba(255,255,255,.72);
  line-height: 1.35;
}

/* mobile: align center so it doesn’t feel cramped */
@media (max-width: 768px){
  .parallax-copy{
    margin: 0 auto;
    text-align: center;
  }
}

/* =========================================
   PAYMENTS MODAL — Glass calm style
========================================= */

.payments-modal{
  background: linear-gradient(
    180deg,
    rgba(20,22,30,0.95),
    rgba(10,12,18,0.95)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink, #fff);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.payments-modal .modal-title{
  font-weight: 700;
  letter-spacing: -0.02em;
}

.payments-modal .lead{
  opacity: 0.85;
  margin-bottom: 2rem;
}

.payments-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;
}

.payment-card{
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.payment-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.payment-card h4{
  margin-bottom: .25rem;
}

.payment-card strong{
  font-size: 1.25rem;
}

/* ===== PSP → NEBULA aliases (so your existing markup picks up the new look) ===== */
.psp{
  --nebula-mint: #7CB7A0;
  --nebula-stroke: rgba(255,255,255,0.18);
  --nebula-stroke-hover: rgba(255,255,255,0.30);
  --nebula-panel-bg: rgba(255,255,255,0.035);

  --nebula-max: 520px;
  --nebula-pad: 1.75rem;
  --nebula-radius: 20px;
  --nebula-media-radius: 14px;

  --nebula-title: 1.7rem;
  --nebula-body: 1rem;
  --nebula-price: 1.25rem;

  --nebula-reveal-pad: 1.25rem;
  --nebula-hover-lift: -10px;
  --nebula-img-hover: 1.05;

  --nebula-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* map psp classnames to nebula styles */
.psp .psp-card{ /* copy nebula-card look */
  position: relative;
  border-radius: var(--nebula-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .4s var(--nebula-ease), border-color .4s var(--nebula-ease), box-shadow .4s var(--nebula-ease);
  overflow: hidden;
  padding: var(--nebula-pad);
  text-align: center;
  height: 100%;
}
.psp .psp-card:hover{
  transform: translateY(var(--nebula-hover-lift));
  border-color: var(--nebula-mint);
  box-shadow: 0 25px 55px rgba(0,0,0,0.62), inset 0 1px 0 rgba(255,255,255,0.09);
}

.psp .psp-title-gradient{ /* use nebula gradient */
  display:inline-block;
  background: linear-gradient(90deg, #9d96ef 0%, #4facfe 35%, #56f0c1 70%, #00ff88 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  filter: drop-shadow(0 2px 10px rgba(86,240,193,0.14));
}

.psp .psp-media-wrap{
  border-radius: var(--nebula-media-radius);
  overflow:hidden;
  margin-bottom: .85rem;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
.psp .psp-img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius: var(--nebula-media-radius);
  transition: transform .6s ease;
}
.psp .psp-card:hover .psp-img{ transform: scale(var(--nebula-img-hover)); }

.psp .psp-price{ color: var(--nebula-mint); font-weight: 800; }
.psp .psp-toggle{
  font-weight:800;
  border-radius:12px;
  border-color: var(--nebula-stroke) !important;
  background: rgba(255,255,255,0.015);
}
.psp .psp-toggle:hover{ border-color: var(--nebula-stroke-hover) !important; background: rgba(255,255,255,0.04); }

.psp .psp-reveal-inner{
  background: var(--nebula-panel-bg);
  border-radius: calc(var(--nebula-radius) - 5px);
  padding: var(--nebula-reveal-pad);
  border: 1px solid var(--nebula-stroke) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.psp .psp-pay.is-ready{ /* if you use is-ready */
  background: linear-gradient(135deg,#5b86e5 0%,#36d1dc 45%,#4ecdc4 75%,#21c55d 100%) !important;
  background-size: 200% auto;
  animation: nebulaShimmer 4s ease infinite;
  border: none !important;
}

/* =========================================================
   SECTION RHYTHM — preview stabiliser
   Keeps vertical spacing consistent without markup changes
========================================================= */

.nebula{
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.pro-wrap--row1{
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Section headings stack cleanly */
.pit-kicker{
  margin-bottom: 0.75rem;
}

.pit-h{
  margin-bottom: 1rem;
}

.pit-impact-line{
  margin-bottom: 0;
}

/* Card grids breathe evenly */
.nebula .row.g-4{
  margin-top: 0;
}

/* Cards align visually */
.psp-card{
  padding: 1.5rem;
}

/* Neutralise ad-hoc spacing utilities */
.padding-bottom-10{
  padding-bottom: 0.75rem !important;
}

:root{
  --sec-y: clamp(3rem, 5vw, 5rem);
  --intro-gap: clamp(.75rem, 1.5vw, 1.25rem);
  --card-pad: clamp(1rem, 2vw, 1.4rem);
  --grid-gap: clamp(1rem, 2vw, 1.5rem);
}

/* consistent section breathing room */
.nebula{
  padding-block: var(--sec-y) !important;
}

/* consistent intro stack */
.pro-wrap--row1 .pit-kicker{ margin-bottom: .75rem !important; }
.pro-wrap--row1 .pit-h,
.pro-wrap--row1 .pit-h.mb-3{ margin-bottom: var(--intro-gap) !important; }
.pro-wrap--row1 .pit-p{ margin-bottom: 0 !important; }

/* consistent grid spacing */
.nebula .row.g-4{ --bs-gutter-y: var(--grid-gap); --bs-gutter-x: var(--grid-gap); }

/* consistent card spacing */
.psp-card{
  padding: var(--card-pad) !important;
}
.psp-card h3{ margin-bottom: .75rem; }
.psp-media-wrap{ margin: .75rem 0 1rem; }
.psp-desc{ margin-bottom: .85rem; }
.psp-price{ margin-bottom: 1rem; }

/* =========================================================
   ✅ GLOBAL SPACING SYSTEM (predictable across breakpoints)
========================================================= */

.main-stack{
  padding-block: clamp(22px, 3.2vw, 54px);
}

/* every major section uses the same vertical rhythm */
.stack-section{
  padding-block: clamp(28px, 4vw, 72px);
}

/* tighten on small screens (less “scroll fatigue”) */
@media (max-width: 575px){
  .stack-section{
    padding-block: 22px;
  }
}

/* your “inset row” wrapper can stop fighting bootstrap */
.pitstop-slab__row--inset{
  margin-inline: 0;
  padding-inline: 0;
}

/* pricing blocks: consistent top/bottom */
.nebula-pricing-lab{
  padding-block: clamp(30px, 4.2vw, 84px);
}

/* stop random extra margin stacking */
.pro-wrap{ margin: 0; }
.pro-wrap--row1{ padding-block: clamp(24px, 3.5vw, 64px) !important; }

