/* iPhone SE (375×667px) Final Fix - EXACT specifications */
@media screen and (max-width: 375px) and (max-height: 667px) {
  /* Hero content container */
  html body .hero .hero-content {
    padding: 15px 20px 10px 20px !important;
    height: 100vh !important;
    max-height: 667px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  /* Remove ALL top margins/padding from inner containers */
  html body .hero .hero-content .hero-main {
    margin-top: 0px !important;
    padding-top: 0px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  html body .hero .hero-content .hero-text-section {
    margin-top: 0px !important;
    padding-top: 0px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  /* Headline - 42px font, 40px line height, 8px margin bottom */
  html body .hero .hero-headline {
    font-size: 42px !important;
    line-height: 40px !important;
    margin-top: 0px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
  }
  
  /* Subheadline - 14px font, 18px line height, 15px margin bottom */
  html body .hero .hero-subheadline {
    font-size: 14px !important;
    line-height: 18px !important;
    margin-top: 0px !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
  }
  
  /* App badges container - 12px margin bottom */
  html body .hero .hero-app-badges {
    margin-top: 0px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    gap: 8px !important;
    display: flex !important;
    justify-content: flex-start !important;
  }
  
  /* Both app badges - identical size */
  html body .hero .app-badge {
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  
  /* Force ALL app badge images to exact same dimensions */
  html body .hero .app-badge img,
  html body .hero-app-badges .app-badge img,
  html body .app-badge img,
  .hero-app-badges img,
  .app-badge img {
    height: 36px !important;
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    max-height: 36px !important;
    min-height: 36px !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Extra specificity for both badges */
  img[alt*="App Store"],
  img[alt*="Google Play"],
  img[src*="app-store"],
  img[src*="google-play"],
  img[src*="apple"],
  img[src*="google"] {
    height: 36px !important;
    width: 120px !important;
  }
  
  /* "Free to download" text - 8px margin bottom */
  html body .hero .download-subtitle {
    margin-top: 0px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    font-size: 11px !important;
  }
  
  /* Brand section container */
  html body .hero .hero-brands-inline {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding: 0 !important;
  }
  
  /* "DISCOVER STYLES" text - 6px margin bottom */
  html body .hero .brands-intro {
    margin-top: 0px !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    font-size: 9px !important;
  }
  
  /* Brand logos rows */
  html body .hero .hero-brands-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-top: 0px !important;
    margin-bottom: 6px !important; /* 6px between rows */
    padding: 0 !important;
  }
  
  /* Remove margin from last row */
  html body .hero .hero-brands-row:last-of-type {
    margin-bottom: 0px !important;
  }
  
  /* Brand logos - 15px height */
  html body .hero .brand-logo {
    height: 15px !important;
    width: auto !important;
    max-width: 60px !important;
  }
  
  /* Credibility section - 11px font, 10px margin top */
  html body .hero .credibility-row {
    font-size: 11px !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
    padding: 0 !important;
    gap: 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
  
  /* Hide scroll CTA on iPhone SE */
  html body .hero .scroll-cta {
    display: none !important;
  }
}

/* Force same size badges on ALL devices */
@media screen and (min-width: 376px) {
  /* Both badges same height */
  .app-badge img {
    height: 48px !important;
    object-fit: contain !important;
  }
  
  /* Make both badges same visual size */
  .app-badge img[alt="Download on the App Store"],
  .app-badge img[src*="app-store"],
  .app-badge img[src*="App Store"] {
    height: 48px !important;
    width: 160px !important;
  }
  
  .app-badge img[alt="Get it on Google Play"],
  .app-badge img[src*="google-play"],
  .app-badge img[src*="Google Play"] {
    height: 48px !important;
    width: 160px !important;
  }
}

/* Tablet and mobile (except iPhone SE) */
@media screen and (max-width: 768px) and (min-width: 376px) {
  .app-badge img {
    height: 44px !important;
  }
  
  .app-badge img[alt="Download on the App Store"],
  .app-badge img[src*="app-store"],
  .app-badge img[src*="App Store"] {
    height: 44px !important;
    width: 147px !important;
  }
  
  .app-badge img[alt="Get it on Google Play"],
  .app-badge img[src*="google-play"],
  .app-badge img[src*="Google Play"] {
    height: 44px !important;
    width: 147px !important;
  }
}