/* Global & Base Styles */
html, body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { text-decoration: none; color: inherit; }
* { transition: all 0.3s ease; }

    /* Fade-In Utility */
    .fade-in {
      opacity: 0;
      transform: translateY(30px);
    }
    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* HERO Section */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      background: var(--hero-gradient);
      color: var(--bg-card);
    }
  .hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--c-e9f5ff);
  }
  .hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: var(--c-e9f5ff);
  }
    .cta-btn {
      background-color: var(--bg-card);
      color: var(--color-primary);
      font-size: 1.25rem;
      padding: 1rem 3rem;
      border: none;
      border-radius: 50px;
      font-weight: 600;
      box-shadow: 0 6px 10px rgba(0,0,0,0.1);
      cursor: pointer;
    }
    .cta-btn:hover {
      background-color: var(--bg-light);
      transform: scale(1.05);
    }
    .cta-btn:focus {
      outline: 2px solid var(--color-primary-dark);
      outline-offset: 2px;
    }

    .cta-group {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }
    .cta-btn.secondary {
      background-color: var(--bg-card);
      border: 2px solid var(--color-white);
      color: var(--color-primary);
    }
    .cta-btn.secondary:hover {
      background-color: var(--bg-light);
    }

    .hero-benefits {
      list-style: none;
      padding-left: 0;
      max-width: 600px;
      margin: 1rem auto 0;
      text-align: left;
      color: var(--color-white);
    }
    .hero-benefits li {
      margin-bottom: 0.5rem;
      position: relative;
      padding-left: 1.5rem;
    }
    .hero-benefits li::before {
      content: "\2713";
      position: absolute;
      left: 0;
      color: var(--color-white);
    }

    /* Counters */
    .counters {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-top: 2rem;
      flex-wrap: wrap;
    }
    .counter-box {
      text-align: center;
    }
    .counter {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--color-white);
    }
    .counter-label {
      font-size: 1rem;
      color: var(--color-white);
    }

    /* FEATURES Section */
    .features-section {
      padding: 4rem 2rem;
      background-color: var(--bg-light);
    }
    .section-title {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--color-primary);
      margin: 3rem 0 2rem;
      text-align: center;
    }
    .feature-card {
      background-color: var(--bg-color);
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 2rem;
      text-align: center;
      margin-bottom: 2rem;
    }
    .feature-icon {
      font-size: 3rem;
      color: var(--color-primary);
      margin-bottom: 1rem;
    }
    .feature-card h5 {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--color-primary);
    }
.feature-card p {
  font-size: 1rem;
  color: var(--text-color);
}

/* Additional Features Section */
.extra-features {
  padding: 4rem 2rem;
  background-color: var(--bg-color);
}
.extra-features .feature-card {
  height: 100%;
}

/* Screenshot Carousel */
.screenshot-carousel {
  max-width: 900px;
  margin: 0 auto;
}
.screenshot-carousel img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.carousel-slide-caption {
  position: static;
  color: var(--text-color);
  font-weight: 500;
}

/* Journal Carousel */
.journal-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-weight: 600;
  color: var(--color-primary);
}

    /* HOW IT WORKS Section */
    .how-it-works {
      padding: 4rem 2rem;
      background-color: var(--bg-color);
    }
    .step-card {
      background-color: var(--bg-light);
      border-radius: 12px;
      padding: 1.5rem;
      margin: 1rem;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    .step-icon {
      font-size: 2.5rem;
      color: var(--color-primary);
      margin-bottom: 1rem;
    }
    .step-card h5 {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--color-primary);
    }
    .step-card p {
      font-size: 0.95rem;
      color: var(--text-color);
    }
    .share-btn {
      background-color: var(--color-primary);
      color: var(--bg-card);
      padding: 0.8rem 2rem;
      border-radius: 50px;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .share-btn:hover { transform: scale(1.05); }

    /* WHY IT MATTERS Section */
    .why-matters {
      padding: 4rem 2rem;
      background-color: var(--bg-light);
      text-align: center;
    }
    .why-matters h2 {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--color-primary);
      margin-bottom: 1.5rem;
    }
    .why-matters p {
      font-size: 1.1rem;
      max-width: 800px;
      margin: 0 auto 2rem;
      color: var(--text-color);
      line-height: 1.6;
    }
    .why-matters ul {
      list-style: none;
      padding-left: 0;
      max-width: 600px;
      margin: 0 auto;
    }
    .why-matters li {
      font-size: 1rem;
      margin: 0.5rem 0;
      position: relative;
      padding-left: 1.8rem;
    }
    .why-matters li::before {
      content: "\2713";
      position: absolute;
      left: 0;
      font-size: 1.2rem;
      color: var(--color-primary);
    }

    /* PRICING Section */
    .pricing-section {
      padding: 4rem 2rem;
      background-color: var(--bg-color);
    }
    .pricing-header {
      text-align: center;
      margin-bottom: 2rem;
    }
    .pricing-header h2 {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--color-primary);
    }
    .pricing-accordion .accordion-item {
      border: none;
      border-bottom: 1px solid var(--c-ddd);
    }
    .accordion-button {
      background-color: var(--bg-color);
      color: var(--color-primary);
      font-weight: 600;
    }
    .accordion-button:not(.collapsed) {
      background-color: var(--c-e9f5ff);
      color: var(--c-0051a8);
    }

    /* FAQ Section */
    .faq-section {
      padding: 4rem 2rem;
      background-color: var(--bg-color);
    }
    .faq-title {
      font-size: 2.2rem;
      font-weight: 600;
      color: var(--color-primary);
      text-align: center;
      margin-bottom: 2rem;
    }
    .faq-accordion .accordion-item {
      border: none;
      border-bottom: 1px solid var(--c-eee);
    }
    .accordion-button {
      background-color: var(--bg-color);
      color: var(--color-primary);
      font-weight: 600;
    }
    .accordion-button:not(.collapsed) {
      background-color: var(--bg-light);
      color: var(--c-0051a8);
    }

    /* TESTIMONIALS Section */
    .testimonials-section {
      padding: 4rem 2rem;
      background-color: var(--bg-light);
      text-align: center;
    }
    .testimonial-card {
      background-color: var(--bg-color);
      border-radius: 16px;
      padding: 1.5rem;
      margin: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .testimonial-text {
      font-size: 1rem;
      color: var(--text-color);
      margin-bottom: 1rem;
      line-height: 1.5;
    }
    .testimonial-author {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--c-777);
    }

    /* Responsive Adjustments */
    @media (max-width: 767.98px) {
      .hero h1 { font-size: 2.8rem; }
      .hero p { font-size: 1.2rem; }
      .cta-btn, .share-btn { font-size: 1rem; padding: 0.8rem 2rem; }
      .section-title { font-size: 2rem; }
      .feature-icon, .step-icon { font-size: 2rem; }
      .counters { flex-direction: column; }
    }

    /* ───── 1 · rename tokens (fallback keeps old names working) ───── */
    :root{
      --clr-primary: var(--color-primary, var(--c-006ad4));
      --clr-primary-dark: var(--color-primary-dark, var(--c-004e9c));
    }
    [data-bs-theme="dark"],
    [data-theme="dark"]{
      --clr-primary: var(--c-4dabf7);
      --clr-primary-dark:var(--c-1a67c8);
    }

    /* ───── 2 · fade helper used by new JS ───── */
    .fade{opacity:0;transform:translateY(2rem);transition:opacity .6s,transform .6s}
    .fade.show{opacity:1;transform:none}

    /* ───── 3 · screenshot carousel / light-box ───── */
    .screenshot-carousel-wrapper img{border-radius:.75rem;box-shadow:0 6px 16px rgba(0,0,0,.18)}
    .small-thumb{cursor:pointer;opacity:.7;transition:opacity .2s}
    .small-thumb:hover,.small-thumb.active{opacity:1}
    .modal-content{background:rgba(0,0,0,.85)}

    /* ───── 4 · limit universal transition to safe properties ───── */
    *{transition:opacity .3s,transform .3s}

    /* ───── 5 · optional: update hero gradient for better contrast ───── */
    .hero{
      background: var(--hero-gradient);
    }

  /* ─── Impact cards ─────────────────────────────── */
  .impact-card{
    background:var(--bg-card);
    border:1px solid var(--c-e5e5e5);
    border-radius:1rem;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:transform .2s;
  }
  .impact-card:hover{
    transform:translateY(-3px);
  }

.impact-section{
  background-color: var(--bg-light);
}
[data-theme='dark'] .impact-section{
  background-color: var(--bg-card);
}
[data-theme='dark'] .impact-section p,
[data-theme='dark'] .impact-section small{
  color: var(--color-white);
}

  /* progress dots now below the carousel frame */
  .carousel-indicators{
    position:static;            /* pulled out of absolute flow          */
    margin-top:0;               /* .mt-3 already set in HTML wrapper    */
  }
  .carousel-indicators [data-bs-target]{
    width:12px;
    height:12px;
    margin:0 4px;
    border-radius:50%;
    border:none;
    box-sizing:border-box;
    background:var(--c-ced4da);
    opacity:1;
    transition:background-color .3s;
  }
  .carousel-indicators .active{
    background:var(--color-primary,var(--c-0078d4));
  }

  /* arrow hit-zone (keeps dots clickable) */
  .carousel-control-prev,
  .carousel-control-next{
    width:3rem;
  }

  /* dark-grey arrow icons (override Bootstrap’s white SVG) */
  .carousel-control-prev-icon,
  .carousel-control-next-icon{
    width:2.5rem;height:2.5rem;        /* slightly larger icon */
    background-size:100% 100%;
  }

  /* left arrow */
  .carousel-control-prev-icon{
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 8l4.647 5.646a.5.5 0 0 1-.708.708l-5-6a.5.5 0 0 1 0-.708l5-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
  }

  /* right arrow */
  .carousel-control-next-icon{
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 6a.5.5 0 0 1 0 .708l-5 6a.5.5 0 0 1-.708-.708L9.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  }
