/* ===========================
   GLOBAL-ish TWEAKS
   =========================== */

@media (max-width: 900px) {
  .container {
    padding-inline: 1.25rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero__preview {
    justify-content: center;
  }

  .hero__copy {
    text-align: center;
    align-items: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__list {
    align-items: center;
  }

  .tool__stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   MOBILE-FIRST (≤ 480px)
   =========================== */

@media (max-width: 480px) {
  /* GENERAL LAYOUT */
  body {
    font-size: 15px;
  }

  .container {
    padding-inline: 1rem;
  }

  /* HEADER */
  .site-header {
    padding-block: 0.6rem;
  }

  .header__inner {
    gap: 0.6rem;
  }

  .header__cta {
    display: none; /* keep header tight on very small screens */
  }

  /* TOOL SECTION */
  .tool {
    padding-block: 2.2rem 2.6rem;
  }

  .tool__header {
    text-align: center;
    margin-bottom: 1.2rem;
  }

  .tool__header h2 {
    font-size: 1.35rem;
  }

  .tool__header p {
    margin-inline: auto;
    font-size: 0.9rem;
  }

  /* BIG DROPZONE */
  .tool__drop {
    margin-bottom: 0.9rem;
  }

  .dropzone--large {
    max-width: 100%;
    min-height: 170px;
    padding: 1.2rem 1rem;
  }

  .dropzone__title {
    font-size: 0.95rem;
  }

  .dropzone__hint {
    font-size: 0.78rem;
  }

  /* ACTION BUTTONS UNDER DROP */
  .tool__actions {
    margin-top: 0.7rem;
    gap: 0.5rem;
  }

  .tool__actions .btn--sm {
    width: auto;
    min-width: 120px;
    justify-content: center;
  }

  /* FORMAT SELECT + PRIVACY */
  .tool__layout {
    margin-top: 1rem;
    gap: 0.9rem;
  }

  .tool__topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .tool__group {
    width: 100%;
  }

  .tool__select {
    width: 100%;
  }

  .tool__privacy {
    font-size: 0.78rem;
    text-align: center;
  }
 .tool__select {
    font-size: 0.78rem;    /* even smaller on very small screens */
  }
  /* STACK: RESULTS & PREVIEW */
  .tool__stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  /* RESULTS CARD */
  .results {
    padding: 0.8rem 0.8rem;
  }

  .results__list {
    min-height: 140px;
    padding: 0.45rem;
  }

  .result-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.35rem;
  }

  .result-item__badge {
    justify-self: flex-start;
  }

  /* PREVIEW CARD */
  .preview {
    padding: 0.85rem 0.85rem 1rem;
  }

  .preview__frame {
    min-height: 200px;
  }

  .preview__meta {
    font-size: 0.78rem;
  }

  .preview__note {
    font-size: 0.78rem;
  }

  .preview__crop-label-row {
    font-size: 0.78rem;
  }

  /* HERO SECTION UNDER TOOL */
  .hero {
    padding-block: 2.2rem 2.8rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero__copy {
    text-align: center;
    align-items: center;
  }

  .hero__copy h1 {
    font-size: 1.45rem;
  }

  .hero__copy p {
    font-size: 0.9rem;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero__list {
    font-size: 0.85rem;
    align-items: center;
  }

  .hero__preview {
    justify-content: center;
  }

  .phone {
    transform: scale(0.9);
  }

  /* SIZES & FAQ GRIDS: single column */
  .sizes__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sizes__card,
  .faq__item {
    padding: 0.9rem;
  }
}
