/*
   HeadingNow Font Family
   The primary display font for the OLI brand identity.
 */
@font-face {
  font-family: "HeadingNow-56BoldItalic";
  src: url("../assets/fonts/HeadingNowTrial-56BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}



@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-02Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-02LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-44Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-44RegularItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-55Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-55MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-46Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HeadingNow";
  src: url("../assets/fonts/HeadingNowTrial-46BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* Gradient Background Overlays using ::before pseudo-elements */
.gradient-bg {
  position: relative;
  z-index: 0;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;
}

.gradient-normal::before {
  background-image: url("../assets/images/gradient.png");
}

.gradient-reverse::before {
  background-image: url("../assets/images/gradient_reverse_bg.png");
}

/* ============================================
   TRAVEINSTEIN-STYLE HEADER
   - Default: Full width, integrated with hero section
   - Scrolled: Floating pill with green bg + animated bubbles
   - Responsive: Adapts smoothly across all screen sizes
   ============================================ */

/* Default header state (at top of page - integrated with hero) */
.header-default {
  width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner-default {
  background-color: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  max-width: 100%;
  box-sizing: border-box;
  transition:
    all 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .header-inner-default {
    max-width: 1440px;
  }
}

/*
   Scrolled header state
   Triggers pill-shaped floating navigation with smaller footprint.
 */
.header-scrolled {
  padding: 6px 12px;
  background-color: transparent;
  box-sizing: border-box;
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile pill styling */
@media (min-width: 640px) {
  .header-scrolled {
    padding: 8px 16px;
  }
}

/* Tablet pill styling */
@media (min-width: 768px) {
  .header-scrolled {
    padding: 10px 20px;
  }
}

/* Desktop pill styling */
@media (min-width: 1024px) {
  .header-scrolled {
    padding: 12px 24px;
  }
}

/* Navigation link colors - Default state (black text) */
.header-inner-default nav a {
  color: #000000 !important;
}

.header-inner-default nav a:hover {
  color: #56a031 !important;
}

.header-inner-default nav a::after {
  background-color: #56a031 !important;
}

/* Navigation link colors - Scrolled state (white text) */
.header-inner-scrolled nav a {
  color: #ffffff !important;
}

.header-inner-scrolled nav a:hover {
  color: #ffe25e !important;
}

.header-inner-scrolled nav a::after {
  background-color: #ffe25e !important;
}

/* Subtle bubble float animation - Traveinstein style */


/* ============================================
   HOW OLI WORKS SECTION – 768px RESPONSIVE FIX
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  /* Ensure the section stays as a row and both halves are equal */
  #how_oli_works_section {
    align-items: center;
    padding-top: 60px;
  }

  /* Both columns: equal 50/50 split */
  #how_oli_works_section>div:first-of-type,
  #how_oli_works_section>div:last-of-type {
    width: 50% !important;
  }

  /* Left panel inner wrapper: take full width of its half */
  #how_oli_works_section>div:first-of-type>div {

    padding: 1.5rem 1.25rem !important;
  }



  /* Right image: fill its half without overflowing */
  #how_oli_works_section>div:last-of-type>img {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Speech bubble: scale down and reposition for the smaller half */
  #how_oli_works_section .hidden.sm\:block.absolute {
    width: 200px;
    top: -20px;
    right: 12px;
  }
}

/* ============================================
   HOW OLI WORKS SECTION – 1024px RESPONSIVE FIX
   ============================================ */
@media (min-width: 1024px) and (max-width: 1279px) {


  /* Left column vertical padding */
  #how_oli_works_section>div:first-of-type {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Section heading */
  #how_oli_works_section h2 {
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  /* Step gap tighter at 1024px */
  #how_oli_works_steps {
    gap: 10px;
  }

  /* Step card text sizes */
  #how_oli_works_steps>div p {
    font-size: 20px;
    line-height: 26px;
  }

  /* Step card padding tighter */
  #how_oli_works_steps>div {
    padding: 10px 16px;
  }

  /* Speech bubble */


  /* "How OLI WORKS" text inside the speech bubble */
  #how_oli_works_section .hidden.sm\:block.absolute p {
    font-size: 28px;
    line-height: 34px;
  }
}

/* ============================================
   REAL TIME RESULTS SECTION – 1024px FIX
   ============================================ */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Each column takes 50% */
  #real_time_results_section>div:first-of-type,
  #real_time_results_section>div:last-of-type {
    width: 50%;
  }

  /* Right panel: scale down the blue diagonal SVG background */
  #real_time_results_section>div:last-of-type>div {
    min-height: 460px;
    height: auto;
    background-size: contain !important;
    background-position: center right !important;
  }

  /* Speech bubble container */


  /* Text inside the speech bubble */
  #real_time_results_section p[data-type-speed="40"] {
    font-size: 18px;
    line-height: 26px;
    margin-top: -60px;
  }

  /* "All of this happens" heading */
  #real_time_results_section h2 {
    font-size: 24px;
    line-height: 32px;
    max-width: 300px;
  }
}

/* ============================================
   REMAINING SECTIONS – 1024px RESPONSIVE FIXES
   ============================================ */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* ── SCORE SUMMARY SECTION ───────────────────────────── */
  #score_summary_section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #score_summary_section h2 {
    font-size: 44px;
    line-height: 56px;
    margin-bottom: 32px;
  }

  #score_summary_section p[data-type-loop="false"] {
    font-size: 22px;
    line-height: 32px;
    max-width: 680px;
  }

  /* ── SCORE EXPLANATION SECTION ───────────────────────── */
  #score_explanation_section>.w-full {
    padding-left: 2rem;
    padding-right: 2rem;
  }



  #score_explanation_section .bg-\[\#56a031\] p {
    font-size: 18px;
    line-height: 26px;
  }

  #score_explanation_section .absolute.bottom-\[618px\] {
    bottom: 400px;
  }

  /* ── PEEK INSIDE APP SECTION ─────────────────────────── */
  #peek_inside_app_section h2 {
    font-size: 44px;
    line-height: 52px;
    margin-bottom: 16px;
  }

  #peek_inside_app_section .bg-\[\#B45EFF\] p {
    font-size: 17px;
    line-height: 24px;
  }

  #app_features_list p {
    font-size: 16px;
    line-height: 22px;
  }

  /* ── APP SCREENSHOTS SECTION ─────────────────────────── */
  #app_screenshots_section {
    padding-top: 48px;
  }

  #app_screenshots_section h2 {
    font-size: 38px;
    line-height: 48px;
  }

  #app_screenshots_section .hidden.lg\:block.absolute {
    left: 0%;
  }

  #app_screenshots_section .hidden.lg\:block.absolute p {
    font-size: 15px;
    white-space: nowrap;
  }

  #app_screenshots_section .hidden.lg\:block.absolute .px-5 {
    padding: 8px 14px;
  }

  /* ── LEARNING SECTION ────────────────────────────────── */
  #learning_section p.text-sm {
    font-size: 20px;
    line-height: 28px;
  }

  #learning_section h2 {
    font-size: 32px;
    line-height: 36px;
  }

  /* ── DOWNLOAD SECTION ────────────────────────────────── */
  #download_section p.text-xl {
    font-size: 22px;
    line-height: 30px;
  }
}

.newsletter-vector-bg {
  clip-path: polygon(93% 6%, 85% 34%, 99% 41%, 85% 71%, 95% 80%, 86% 100%, 0 100%, 0 0);
}

@media (max-width: 639px) {
  .newsletter-vector-bg {
    clip-path: none !important;
  }
}

/* ============================================
   NEWSLETTER SECTION – 1280px–1350px FIX
   Forces correct bg height between lg and xl
   ============================================ */
@media (min-width: 1280px) and (max-width: 1350px) {
  .newsletter-vector-bg {
    min-height: 628px !important;
  }
}

.header-inner-scrolled {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;

  /* Green background with animated SVG bubbles */
  background-color: #56a031;
  background-image: url("../assets/images/header-bubbles.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 40px;
  max-width: 1600px;
  border: none;
  padding: 10px 20px !important;

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    all 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .header-inner-scrolled {
    max-width: 1360px;
    width: 100%;
  }
}

/* Ensure content stays above background */
.header-inner-scrolled>* {
  position: relative;
  z-index: 1;
}

/* Tablet scrolled header */
@media (min-width: 768px) {
  .header-inner-scrolled {
    padding: 12px 24px !important;
    border-radius: 45px;
  }
}

/* Desktop scrolled header */
@media (min-width: 1024px) {
  .header-inner-scrolled {
    padding: 14px 20px !important;
    border-radius: 50px;
  }
}

/* Large desktop scrolled header */
@media (min-width: 1536px) {
  .header-inner-scrolled {
    padding: 16px 40px !important;
    max-width: 1800px;
  }
}

/* Hidden state (scrolling down) */
.header-hidden {
  transform: translateY(-120%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.3s ease-out;
}

/* Visible state with animation (scrolling up) */
.header-visible {
  transform: translateY(0);
  opacity: 1;
  animation: headerSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bounce animation when header appears */
@keyframes headerSlideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  60% {
    transform: translateY(5%);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Performance optimizations */
#main-header {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-sizing: border-box;
}

/* Body padding - removed for seamless header integration */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding-top: 0 !important;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body {
    padding-top: 0 !important;
  }
}



/* ============================================
   TRAVEINSTEIN STYLE SLIDER
   Center iPhone frame overlay, screens slide behind
   Non-active screens in grayscale
   ============================================ */

/* Screens track */
#screens-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual screen slide */
.screen-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: transparent;
  /* Grayscale by default for non-active */
  filter: grayscale(100%);
}

.screen-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Screen sizes - responsive (NON-ACTIVE - proper phone ratio ~1:2.16) */
.screen-slide {
  width: 175px;
  height: 380px;
}

@media (min-width: 640px) {
  .screen-slide {
    width: 210px;
    height: 455px;
    border-radius: 28px;
  }
}

@media (min-width: 768px) {
  .screen-slide {
    width: 250px;
    height: 540px;
    border-radius: 32px;
  }
}

@media (min-width: 1024px) {
  .screen-slide {
    width: 305px;
    height: 660px;
    border-radius: 38px;
  }
}

@media (min-width: 1280px) {
  .screen-slide {
    width: 370px;
    height: 800px;
    border-radius: 44px;
  }
}

/* Position states */
/* Active - center (inside iPhone frame) - FULL COLOR - NO GAPS */
.screen-slide.active,
.screen-slide[data-position="0"] {
  transform: translate(-50%, -50%);
  opacity: 1;
  z-index: 20;
  filter: grayscale(0%);
  /* Size to EXACTLY fit inside iPhone frame - no gaps */
  width: 170px;
  height: 366px;
  border-radius: 30px;
}

/* Ensure slide images fill top-anchored so no white gap at top */
.screen-slide.active img,
.screen-slide[data-position="0"] img {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 100%;
}

@media (min-width: 640px) {

  .screen-slide.active,
  .screen-slide[data-position="0"] {
    width: 238px;
    height: 516px;
    border-radius: 36px;
  }
}

@media (min-width: 768px) {

  .screen-slide.active,
  .screen-slide[data-position="0"] {
    width: 238px;
    height: 516px;
    border-radius: 36px;
  }
}

@media (min-width: 1024px) {

  .screen-slide.active,
  .screen-slide[data-position="0"] {
    width: 294px;
    height: 634px;
    border-radius: 42px;
  }
}

@media (min-width: 1280px) {

  .screen-slide.active,
  .screen-slide[data-position="0"] {
    width: 350px;
    height: 756px;
    border-radius: 44px;
  }
}

/* Left position 1 - Grayscale - WITH SPACE FROM FRAME */
.screen-slide[data-position="-1"] {
  transform: translate(-170%, -50%) scale(0.88);
  opacity: 0.95;
  z-index: 15;
  filter: grayscale(100%);
}

@media (min-width: 768px) {
  .screen-slide[data-position="-1"] {
    transform: translate(-165%, -50%) scale(0.88);
  }
}

@media (min-width: 1024px) {
  .screen-slide[data-position="-1"] {
    transform: translate(-155%, -50%) scale(0.88);
  }
}

/* Left position 2 - Grayscale - WITH SPACE */
.screen-slide[data-position="-2"] {
  transform: translate(-250%, -50%) scale(0.75);
  opacity: 0.8;
  z-index: 10;
  filter: grayscale(100%);
}

@media (min-width: 768px) {
  .screen-slide[data-position="-2"] {
    transform: translate(-280%, -50%) scale(0.75);
  }
}

@media (min-width: 1024px) {
  .screen-slide[data-position="-2"] {
    transform: translate(-270%, -50%) scale(0.75);
  }
}

/* Right position 1 - Grayscale - WITH SPACE FROM FRAME */
.screen-slide[data-position="1"] {
  transform: translate(70%, -50%) scale(0.88);
  opacity: 0.95;
  z-index: 15;
  filter: grayscale(100%);
}

@media (min-width: 768px) {
  .screen-slide[data-position="1"] {
    transform: translate(65%, -50%) scale(0.88);
  }
}

@media (min-width: 1024px) {
  .screen-slide[data-position="1"] {
    transform: translate(55%, -50%) scale(0.88);
  }
}

/* Right position 2 - Grayscale - WITH SPACE */
.screen-slide[data-position="2"] {
  transform: translate(150%, -50%) scale(0.75);
  opacity: 0.8;
  z-index: 10;
  filter: grayscale(100%);
}

@media (min-width: 768px) {
  .screen-slide[data-position="2"] {
    transform: translate(180%, -50%) scale(0.75);
  }
}

@media (min-width: 1024px) {
  .screen-slide[data-position="2"] {
    transform: translate(170%, -50%) scale(0.75);
  }
}

/* Hidden slides */
.screen-slide[data-position="hidden"] {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(100%);
}

/* iPhone frame overlay */
#iphone-frame-overlay {
  pointer-events: none;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}

/* Carousel dots */
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(86, 160, 49, 0.3);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot:hover {
  background: rgba(86, 160, 49, 0.5);
  transform: scale(1.15);
}

.carousel-dot.active {
  background: #56a031;
  transform: scale(1.25);
  box-shadow: 0 0 15px rgba(86, 160, 49, 0.5);
}

@media (min-width: 1024px) {
  .carousel-dot {
    width: 12px;
    height: 12px;
  }
}

/* ============================================
   RESPONSIVE FIXES (MOBILE + TABLET)
   Keep desktop visuals intact while fixing layout overlap/overflow
   ============================================ */
@media (max-width: 1023px) {

  #oli_reads_stories_container {
    height: auto !important;
    /* min-height: 380px !important; */
    background-size: 100% auto !important;
    background-position: center top !important;
  }

  #oli_reads_stories_container>div {
    padding-right: 1rem !important;
    align-items: center !important;
  }

  #oli_reads_stories_container>div>div {
    padding: 2rem 1rem !important;
  }

  /* How OLI Works */
  #how_oli_works_section>div {
    width: 100% !important;
  }

  #how_oli_works_section>div:first-of-type {
    background-size: cover !important;
    background-position: center !important;
  }



  #how_oli_works_section>div:last-of-type img {
    margin: 0 auto !important;
  }



  /* Peek Inside App */
  #peek_inside_app_section>div {
    min-height: 0 !important;
    /* padding-top: 2rem;
    padding-bottom: 2rem; */
  }

  #peek_inside_app_section div[style*="clip-path"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    clip-path: none !important;
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
  }

  #peek_inside_app_section div[style*="clip-path"] br {
    display: none;
  }

  #peek_inside_app_section>div>div {
    gap: 1rem;
  }

  #peek_inside_app_section>div>div>div:last-of-type img {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  /* Learning section heading bubble */
  #learning_section div[style*="img_group_645.svg"] {
    position: absolute !important;
    /* top: 5rem !important; aligns with `top-20` */
    right: auto !important;
    width: min(100%, 360px) !important;
    height: auto !important;
    min-height: 240px;
    margin: 0 auto 1rem;
  }

  /* Newsletter text width clamp */
  /* #newsletter_section .w-\[315px\] {
    width: min(97%, 640px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem;
    padding-right: 1rem;
  } */
}

@media (max-width: 767px) {
  #app_screenshots_slider #slider-container {
    min-height: 470px !important;
  }

  #iphone-frame-overlay img {
    width: 190px !important;
  }

  .screen-slide.active,
  .screen-slide[data-position="0"] {
    width: 174px !important;
    height: 376px !important;
    border-radius: 28px !important;
  }

  .screen-slide[data-position="-1"] {
    transform: translate(-155%, -50%) scale(0.82);
  }

  .screen-slide[data-position="1"] {
    transform: translate(55%, -50%) scale(0.82);
  }

  .screen-slide[data-position="-2"],
  .screen-slide[data-position="2"] {
    opacity: 0.55;
  }
}


@media (min-width: 1900px) {
  .right_position {
    right: 250px;
  }
}



@media (max-width: 767px) {
  #newsletter_copy_block {
    bottom: 1.2rem !important;
    /* Raised up for better centering in the full box */
  }

  /* #newsletter_copy_block>div {
    width: 100% !important;
  } */

  #newsletter_copy_block p {
    /* width: 100% !important;
    padding-top: 2.75rem !important;
    padding: 0px 0px;
    padding-left: 12rem; */
    /* font-size: 1rem !important; */
    line-height: 1.55 !important;

  }
}

/* ============================================
   MACBOOK AIR (1280–1439px) RESPONSIVE FIX
   Ensures the layout matches the 1440px design
   for 13" MacBook Air displays (~1280–1350px)
   ============================================ */
@media (min-width: 1280px) and (max-width: 1439px) {

  /* ── HERO INTRODUCTION SECTION ──────────────────────── */
  #hero_introduction_section {
    min-height: 750px;
  }

  #hero_introduction_section h1 {
    font-size: 160px !important;
    line-height: 220px !important;
  }

  #hero_introduction_section h2.text-\[28px\] {
    font-size: 72px !important;
    line-height: 90px !important;
  }

  #hero_introduction_section p {
    font-size: 22px !important;
    line-height: 34px !important;
  }

  /* Right section: scale up to match 1440 */
  #hero_right_section {
    max-width: 760px;
  }

  #hero_right_section>div {
    min-height: 750px !important;
    height: 750px !important;
    padding-bottom: 4.5rem !important;
    padding-right: 3rem !important;
  }

  /* ── STORIES SECTION ─────────────────────────────────── */
  #stories_section .text-\[74px\] {
    font-size: 68px !important;
    line-height: 80px !important;
  }

  #stories_section .text-\[30px\] {
    font-size: 28px !important;
    line-height: 36px !important;
  }

  /* ── OLI READS STORIES SECTION ───────────────────────── */
  #oli_reads_stories_section h2 {
    font-size: 68px !important;
    line-height: 80px !important;
  }

  #oli_reads_stories_section p {
    font-size: 22px !important;
    line-height: 34px !important;
  }



  /* ── ANALYSIS PROCESS SECTION ────────────────────────── */
  #analysis_process_section .text-\[74px\] {
    font-size: 66px !important;
    line-height: 80px !important;
  }

  #analysis_process_section .stagger-blur-container {
    width: 20% !important;
  }

  /* ── HOW OLI WORKS SECTION ───────────────────────────── */
  #how_oli_works_section {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  #how_oli_works_section h2 {
    font-size: 32px !important;
    line-height: 40px !important;
  }

  #how_oli_works_steps>div p {
    font-size: 26px !important;
    line-height: 30px !important;
  }

  /* ── REAL TIME RESULTS SECTION ───────────────────────── */

  #real_time_results_section p[data-type-speed="40"] {
    font-size: 22px !important;
    line-height: 30px !important;
  }

  #real_time_results_section h2 {
    font-size: 32px !important;
    line-height: 40px !important;
  }

  /* ── SCORE SUMMARY SECTION ───────────────────────────── */
  #score_summary_section h2 {
    font-size: 58px !important;
    line-height: 72px !important;
  }

  #score_summary_section p[data-type-loop="false"] {
    font-size: 30px !important;
    line-height: 40px !important;
  }

  /* ── SCORE EXPLANATION SECTION ───────────────────────── */
  #score_explanation_section .bg-\[\#56a031\] p {
    font-size: 22px !important;
    line-height: 36px !important;
  }

  /* ── PEEK INSIDE APP SECTION ─────────────────────────── */
  #peek_inside_app_section h2 {
    font-size: 68px !important;
    line-height: 78px !important;
  }

  #peek_inside_app_section .bg-\[\#B45EFF\] p {
    font-size: 20px !important;
    line-height: 28px !important;
  }

  #app_features_list p {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  /* ── APP SCREENSHOTS SECTION ─────────────────────────── */
  #app_screenshots_section h2 {
    font-size: 58px !important;
    line-height: 72px !important;
  }

  #app_screenshots_section .hidden.lg\:block.absolute p {
    font-size: 18px !important;
  }

  /* ── LEARNING SECTION ────────────────────────────────── */
  #learning_section p {
    font-size: 26px !important;
    line-height: 34px !important;
  }

  /* ── DOWNLOAD SECTION ────────────────────────────────── */
  #download_section h2 {
    font-size: 68px !important;
    line-height: 96px !important;
  }

  #download_section p {
    font-size: 26px !important;
    line-height: 34px !important;
  }

  /* ── SLIDER ──────────────────────────────────────────── */
  .screen-slide {
    width: 350px !important;
    height: 758px !important;
    border-radius: 44px !important;
  }

  .screen-slide.active,
  .screen-slide[data-position="0"] {
    width: 350px !important;
    height: 756px !important;
    border-radius: 44px !important;
  }

  /* ── RIGHT POSITION (oli reads text overlay) ─────────── */
  .right_position {
    right: 120px !important;
  }

  /* ── NEWSLETTER SECTION ──────────────────────────────── */
  #newsletter_section .text-\[28px\] {
    font-size: 48px !important;
    line-height: 56px !important;
  }
}

.page-texture-bg {
  /* Common body styles for content pages */
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: #1b1b1b;
  background-color: #fffbe8;
  background-image: radial-gradient(#ddd4be 1px, transparent 1px);
  background-size: 10px 10px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #56a031;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   WHAT OLI CAN – SECTION 6 – 1280px to 1350px FONT FIX
   Tailwind xl: kicks in at 1280px with text-[54px] which is
   too large for the narrower end of the xl range.
   This narrows the heading and body text until 1350px.
   ============================================ */
@media (min-width: 1280px) and (max-width: 1350px) {

  /* H2 headings ("OLI Remembers…" and "When You're Curious…") */
  #what-oli-can-6 h2 {
    font-size: 42px !important;
    line-height: 58px !important;
  }

  /* Body paragraph text (font-caveat block) */
  #what-oli-can-6 .font-caveat {
    font-size: 22px !important;
    line-height: 28px !important;
  }

  /* ── NEWSLETTER HERO COPY TEXT ──────────────────────────
     Force font-size to 24px between 1280px and 1350px.
     Overrides Tailwind's xl:text-[32px] in this range.
  */
  .newsletter-copy-text {
    font-size: 24px !important;
  }
}

/* ============================================
   STORY BUBBLES: SEQUENTIAL GLOW EFFECT
   ============================================ */
.sequential-bubble-glow {
  animation: bubble-glow-pulse 8s infinite;
  transition: all 0.4s ease;
}

@keyframes bubble-glow-pulse {

  0%,
  20%,
  100% {
    box-shadow: 0 0 0 rgba(86, 160, 49, 0);
    background-color: #d6f2c2;
    transform: translateY(0);
  }

  5%,
  15% {
    box-shadow: 0 10px 25px rgba(86, 160, 49, 0.35);
    background-color: #bbefa9;
    transform: translateY(-5px);
  }
}

/* Maintain hover override */
.sequential-bubble-glow:hover {
  background-color: #bbefa9 !important;
  box-shadow: 0 10px 25px rgba(86, 160, 49, 0.45) !important;
  transform: translateY(-5px) !important;
  animation-play-state: paused;
}

/* Global Hover Lift Effect */
.hover-lift {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    background-color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(255, 226, 94, 0.2);
  z-index: 10;
}

/* Specific hover for yellow brand items */
.bg-\[\#ffe25e\].hover-lift:hover {
  background-color: #ffd72e !important;
}

.hover-lift:active {
  transform: translateY(-4px) scale(1.01);
  transition-duration: 0.1s;
}

/* YELLOW SEQUENTIAL GLOW EFFECT (Auto-hover) */
.sequential-yellow-glow {
  animation: yellow-glow-pulse 8s infinite;
  transition: all 0.4s ease;
}

@keyframes yellow-glow-pulse {

  0%,
  20%,
  100% {
    box-shadow: 0 0 0 rgba(255, 226, 94, 0);
    background-color: #ffe25e;
    transform: translateY(0);
  }

  5%,
  15% {
    box-shadow: 0 10px 25px rgba(255, 226, 94, 0.45);
    background-color: #ffd72e;
    transform: translateY(-5px);
  }
}

/* Pause animation on hover to let the manual hover-lift take over */
.sequential-yellow-glow:hover {
  animation-play-state: paused;
}

/* Screenshot Label cards hover effects */
.screenshot-label-card {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  backface-visibility: hidden;
  will-change: transform;
}

.screenshot-label-card:hover {
  background-color: #ffffff;
  z-index: 30;
  border-color: #56a031 !important;
  box-shadow: 15px 20px 45px rgba(0, 0, 0, 0.15);
}

/* Individual tilts for "one by one" effect */
.relative:nth-child(1) .screenshot-label-card:hover {
  transform: scale(1.1) rotate(-4deg) translateY(-10px) !important;
}

.relative:nth-child(2) .screenshot-label-card:hover {
  transform: scale(1.1) rotate(4deg) translateY(-10px) !important;
}

.relative:nth-child(3) .screenshot-label-card:hover {
  transform: scale(1.1) rotate(-3deg) translateY(-10px) !important;
}

.relative:nth-child(4) .screenshot-label-card:hover {
  transform: scale(1.1) rotate(3deg) translateY(-10px) !important;
}

.relative:nth-child(5) .screenshot-label-card:hover {
  transform: scale(1.1) rotate(-5deg) translateY(-10px) !important;
}

.screenshot-label-card:hover p {
  color: #56a031;
  transition: color 0.3s ease;
}


/* 3D Comic Book Text Effect */
.comic-3d-text {
  display: inline-block;
  animation: comic-float 4.5s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
  /* Premium multi-layered comic 3D look */
  text-shadow:
    1px 1px 0px rgba(255, 255, 255, 1),
    2px 2px 0px rgba(0, 0, 0, 0.15),
    3px 3px 6px rgba(0, 0, 0, 0.1);
}

@keyframes comic-float {

  0%,
  100% {
    transform: translate(0, 0) rotate(-1.5deg) skewX(-1deg);
  }

  33% {
    transform: translate(3px, -11px) rotate(1.8deg) skewX(1deg);
  }

  66% {
    transform: translate(-3px, -6px) rotate(-0.8deg) skewX(-0.5deg);
  }
}