/* Smooth scrolling base */
html { scroll-behavior: smooth; }
:root { --header-offset: 0px; } /* adjust if sticky header */

/* FAQ animation */
.faq-answer { max-height:0; overflow:hidden; transition:max-height 300ms ease; }
.faq-item.open .faq-answer {}
.faq-item .faq-toggle-icon { transition:transform 200ms ease; }
.faq-item.open .faq-toggle-icon { transform:rotate(180deg); }

/* Brand yellow */
.to-yellow { color:#FFE900; }
.to-yellow-hover:hover { color:#ffe100; }


/* === Mobile-first responsive fixes (appended by ChatGPT) === */
@media (max-width: 1024px){
  .container{ padding-left: 16px; padding-right: 16px; }
  .nav-links{ gap: 12px; flex-wrap: wrap; }
  .nav-links a{ font-size: 0.95rem; }
  .hero-left h1{ font-size: 2rem; line-height: 1.15; }
}
@media (max-width: 768px){
  .site-header{ position: relative; }
  .nav-bar{ gap: 12px; }
  .logo{ font-size: 1.1rem; }
  .nav-links{ gap: 10px; flex-wrap: wrap; }
  .nav-links li{ margin: 0; }
  .hero{ padding-top: 32px; padding-bottom: 48px; }
  .hero .container{ display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-left{ width: 100%; max-width: 680px; margin: 0 auto; }
  .hero-right{ position: static; transform: none; margin: 24px auto 0; }
  .hero .phone-mockup{ width: 220px; height: 440px; }
  .hero-left p{ max-width: 100%; }
  .hero-buttons{ justify-content: center; flex-wrap: wrap; }
  .steps{ grid-template-columns: 1fr !important; gap: 16px; }
  .brands-grid, .creators-grid, .call-grid, .insights-grid, .contact-grid{
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .brands-text, .creators-text, .call-text, .insights-text, .contact-text{ text-align: center; }
  .brands-image img, .creators-image img, .call-image img, .insights-image img{
    width: 100%; max-width: 420px; height: auto; border-radius: 16px;
  }
  .contact .info{ grid-template-columns: 1fr !important; }
  footer .container{ flex-direction: column; gap: 8px; text-align: center; }
}

/* Make long words wrap on tiny screens */
@media (max-width: 420px){
  h1, h2, h3, p, a, li{ word-break: break-word; overflow-wrap: anywhere; }
  .hero .phone-mockup{ width: 200px; height: 400px; }
}


/* === Ultra-narrow phone fixes (320px–430px) === */
@media (max-width: 430px){
  /* Prevent horizontal scrollbars entirely */
  html, body { overflow-x: hidden; }

  .hero{ padding-top: 28px; padding-bottom: 28px; overflow: hidden; }
  .hero .container{ padding-left: 16px; padding-right: 16px; }
  .hero-left h1{ font-size: 1.7rem; line-height: 1.2; }
  .hero-left p{ font-size: 0.95rem; opacity: 0.95; }
  .hero-buttons .btn{ padding: 10px 14px; font-size: 0.95rem; }

  /* Keep the phone stack fully inside the viewport */
  .hero-right{ width: 100%; justify-content: center; align-items: center; gap: 10px; }
  .hero .phone-mockup{ width: 120px; height: 240px; flex: 0 0 auto; }
}

@media (max-width: 360px){
  .hero-left h1{ font-size: 1.55rem; }
  .hero .phone-mockup{ width: 110px; height: 220px; }
  .hero-buttons{ gap: 10px; }
  .hero-buttons .btn{ padding: 9px 12px; font-size: 0.9rem; }
}

/* Tighten vertical rhythm for cards & sections on small phones */
@media (max-width: 430px){
  .section-title{ font-size: 1.6rem; margin-bottom: 14px; }
  .steps{ gap: 14px; }
  .step{ padding: 16px; }
  .brands-grid, .creators-grid, .call-grid, .insights-grid, .contact-grid{ gap: 16px; }
  .brands-image img, .creators-image img, .call-image img, .insights-image img{ max-width: 360px; }
}


/* === 40% smaller hero phones on mobile (only) === */
@media (max-width: 430px){
  /* base phones */
  .hero .phone-mockup{ width: 120px !important; height: 240px !important; }
  /* center phone remains slightly larger for depth */
  .hero .phone2{ width: 138px !important; height: 276px !important; }
}
@media (max-width: 360px){
  .hero .phone-mockup{ width: 66px !important; height: 132px !important; }
  .hero .phone2{ width: 76px !important; height: 152px !important; }
}


/* === Tighten hero spacing on mobile & GIF scale-in animation === */
@media (max-width: 430px){
  /* Bring phones closer to buttons/text */
  .hero{ padding-bottom: 16px; }
  .hero-right{ margin-top: 6px; }

  /* Default hidden state for GIFs on mobile; JS toggles .in-view */
  img.gif-scroll{
    transform: scale(0.92);
    opacity: 0;
    transition: transform 600ms ease, opacity 600ms ease;
    will-change: transform, opacity;
  }
  img.gif-scroll.in-view{
    transform: scale(1);
    opacity: 1;
  }
}


/* === Hero section smaller on mobile (phones just under buttons) === */
@media (max-width: 430px){
  .hero{
    padding-top: 20px;
    padding-bottom: 8px;
  }
  .hero-right{
    margin-top: 4px;
    transform: translateY(-12px);
  }
  .hero .phone-mockup{
    width: 80px !important;
    height: 160px !important;
  }
  .hero .phone2{
    width: 92px !important;
    height: 184px !important;
    transform: translateY(-14px) scale(1.02);
  }
}
@media (max-width: 360px){
  .hero .phone-mockup{
    width: 70px !important;
    height: 140px !important;
  }
  .hero .phone2{
    width: 82px !important;
    height: 164px !important;
  }
}


/* === Hero phones fade-in animation base === */
@media (max-width: 430px){
  .hero-right{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
  }
  .hero-right.in-view{
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Adjust hero layout (centered + phones ~20% bigger) === */
@media (max-width: 430px){
  .hero {
    padding-top: 24px;
    padding-bottom: 12px;
    text-align: center;
    overflow: hidden;
  }
  .hero .container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .hero-left {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  .hero-right {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
  }
  .hero .phone-mockup {
    width: 96px !important;
    height: 192px !important;
  }
  .hero .phone2 {
    width: 110px !important;
    height: 220px !important;
    transform: translateY(-12px) scale(1.02);
  }
  .hero .phone1 { transform: rotate(-4deg) translateY(6px); }
  .hero .phone3 { transform: rotate(4deg) translateY(6px); }
}
@media (max-width: 360px){
  .hero .phone-mockup { width: 88px !important; height: 176px !important; }
  .hero .phone2 { width: 100px !important; height: 200px !important; }
}


/* === Failsafe: ensure hero phones never disappear on mobile === */
@media (max-width: 430px){
  .hero-right{ opacity: 1 !important; transform: none !important; }
}


/* === Reduce hero section gap (50% smaller) === */
@media (max-width: 430px){
  .hero-right {
    margin-top: 5px !important; /* smaller gap between buttons & phones */
    transform: translateY(-6px);
  }
  .hero {
    padding-bottom: 6px !important; /* slightly tighter overall spacing */
  }
}
