/* ============================================================
   RESPONSIVE — Breakpoints
   ============================================================ */

/* =============================================
   1024px tablet: pull floating images into
   normal flow so they don't overlap incorrectly
   ============================================= */

@media (max-width: 1024px) {

  /* ========== HERO ========== */

  .hero {
    height: auto;
    overflow: visible;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px var(--space-md);
  }

  .hero__product {
    flex: none;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero__product-rotate {
    width: 60%;
    max-width: 500px;
    height: auto;
  }

  .hero__product-img {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
  }

  .hero__btns {
    flex-wrap: wrap;
  }

  /* ========== COMPARE ========== */

  .compare__table {
    flex-wrap: wrap;
    justify-content: center;
  }

  .compare__col--labels {
    display: none;
  }

  .compare__col {
    flex: 1 1 200px;
    max-width: 280px;
  }

  .compare-card__cta .btn {
    font-size: 14px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
  }

  /* ========== CAMERA / LENS FEATURES ========== */

  /* Camera / Lens product images: switch out of absolute to relative */
  .camera-features__body,
  .lens-features__body {
    padding-top: 0;
    padding-inline: 24px;
    margin-top: -50px;
  }

  .camera-features__product-img,
  .lens-features__product-img {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 80%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: -100px;
    z-index: 2;
  }

  .bullets-card,
  .bullets-card--lens {
    padding: 120px 40px 60px;
    width: 100%;
  }

  .accessory__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .accessory__product-img {
    order: -1;
    width: 400px;
    height: 400px;
  }

  .accessory__text {
    align-items: center;
    text-align: center;
  }

  .accessory__title {
    text-align: center;
    max-width: 100%;
  }
}

/* =============================================
   768px mobile — matches Figma 375px layout
   ============================================= */

@media (max-width: 768px) {

  /* ========== HERO ========== */

  .hero {
    height: auto;
    overflow: visible;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    max-width: 100%;
    padding: 40px 24px;
  }

  /*
   * display:contents collapses .hero__content as a layout box —
   * its children join hero__inner's flex and can be ordered.
   */
  .hero__content {
    display: contents;
  }

  .hero__text-top {
    order: 1;
    width: 100%;
  }

  .hero__product {
    order: 2;
    flex: none;
    align-self: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* On mobile, remove rotation and show camera naturally */
  .hero__product-rotate {
    transform: none;
    width: 100%;
    max-width: 420px;
    height: auto;
    position: relative;
    overflow: visible;
  }

  .hero__product-img {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    max-width: none;
  }

  .hero__text-bottom {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__supertitle {
    font-size: 20px;
  }

  .hero__subtitle {
    font-size: 28px;
  }

  .hero__btns {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero__pricing {
    flex-direction: column;
    gap: 8px;
  }

  .hero__new-flag {
    top: 16px;
    right: 16px;
  }

  /* ========== CAMERA FEATURES ========== */

  .camera-features__title {
    padding: 0 24px;
    font-size: 44px;
    text-align: left;
  }

  .camera-features__body,
  .lens-features__body {
    padding-top: 0;
    padding-inline: 16px;
    align-items: center;
  }

  .camera-features__product-img,
  .lens-features__product-img {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: -80px;
    z-index: 2;
  }

  .bullets-card,
  .bullets-card--lens {
    padding: 100px 16px 40px;
    width: 100%;
  }

  .camera-features__cta,
  .lens-features__cta {
    margin-top: 0;
  }

  /* ========== VIDEO BANNER ========== */

  .video-banner {
    height: auto;
  }

  .video-banner__bg-gradient {
    display: none;
  }

  .video-banner__bg-img {
    opacity: 0.4;
    overflow: hidden;
  }

  .video-banner__bg-img img {
    width: 244%;
    left: -67.51%;
    top: 0;
    height: 125.61%;
  }

  .video-banner__inner {
    padding: 40px 16px;
    gap: 40px;
  }

  .video-banner__title {
    font-size: 44px;
  }

  .video-banner__body {
    font-size: 20px;
    line-height: 27px;
  }

  /* ========== USE CASES / PERSONAS ========== */

  .use-cases__personas {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 16px;
  }

  .persona {
    width: 100%;
    max-width: 343px;
    align-items: center;
  }

  .persona__title {
    font-size: 44px;
  }

  .persona__icon-wrap {
    width: 120px;
    height: 120px;
  }

  .use-cases__video {
    padding: 0 16px;
  }

  /* ========== COMPARE ========== */

  /* On mobile: hide the label column, stack checkmarks compactly */
  .compare__table--grid {
    flex-direction: row;
    gap: 4px;
    padding: 0 8px;
    align-items: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare__col--labels {
    display: none; /* labels shown inline in mobile Figma; hide the desktop label column */
  }

  .compare__col {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .compare-card {
    padding: 8px 4px 12px;
    gap: 8px;
  }

  .compare-card__image-wrap {
    aspect-ratio: 1;
  }

  .compare-card__name {
    font-size: 14px;
    line-height: 1.2;
  }

  .compare-card__row {
    padding: 10px 0;
  }

  .compare-card__cta {
    padding-inline: 4px;
    padding-top: 8px;
  }

  .compare-card__cta .btn {
    font-size: 11px;
    padding: 8px 4px;
    width: 100%;
    border-radius: 4px;
  }

  /* ========== LENS FEATURES ========== */

  .lens-features__title {
    font-size: 44px;
    text-align: left;
    padding: 0 16px;
  }

  /* ========== ACCESSORY ========== */

  .accessory {
    padding: 0;
  }

  .accessory__inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .accessory__product-img {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: 375px;
    object-fit: cover;
  }

  .accessory__text {
    order: 1;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    gap: var(--space-lg);
  }

  .accessory__title {
    font-size: 44px;
    text-align: center;
    max-width: 100%;
  }

  .accessory__body {
    text-align: center;
  }

  /* ========== FOOTER ========== */

  .footer {
    padding: 40px 0;
  }

  .footer__title {
    font-size: 60px;
  }

  .footer__subtitle {
    font-size: 28px;
  }

  .footer__actions {
    flex-direction: column;
    align-items: stretch;
    width: 343px;
    gap: 24px;
  }

  .footer__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ========== MODAL ========== */

  .modal {
    padding: 40px 24px;
  }

  .modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
