/* ============================================================
   remio aApp Challenge — Responsive Breakpoints
   Desktop-first: 1200px → Tablet 1024px → Mobile 767px → XS 374px
   ============================================================ */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
  :root {
    --pad-x: 28px;
  }

  .hero-content {
    padding: 0 var(--pad-x) 60px var(--pad-x);
    max-width: 100%;
  }

  /* tablet: natural clamp already good; slight cap to avoid overflow */
  .title-l1,
  .title-l2 { font-size: clamp(36px, 5.5vw, 68px); }

  .deco-cone { width: 110px; bottom: 40px; right: 24px; }
  .deco-header { width: 100%; }

  .prizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }
  .footer-legal { justify-self: start; grid-column: 1 / -1; }
}

/* ── Mobile: ≤ 767px ── */
@media (max-width: 767px) {
  :root {
    --nav-h: 56px;
    --pad-x: 20px;
  }

  /* Nav */
  .nav-inner {
    padding: 0 var(--pad-x);
  }

  /* ── Hero ── */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 48px; }
  .hero-content {
    padding: 0 var(--pad-x);
  }

  .hero-tagline { font-size: 16px; }

  .title-l1,
  .title-l2 { font-size: clamp(32px, 5.5vw, 50px); }

  .date-badge { font-size: 16px; }

  .btn-img { width: 280px; }
  .credits-link { font-size: 16px; }

  /* Decorations — scale down on mobile */
  .deco-cone { width: 80px; bottom: 24px; right: 16px; }

  /* ── Sections ── */
  .section { padding: 60px 0; }
  .s-inner  { padding: 0 var(--pad-x); }

  .s-title {
    font-size: clamp(20px, 3.5vw, 26px);
    margin-bottom: 28px;
  }

  /* About */
  .about-cards { grid-template-columns: 1fr; max-width: 100%; }

  /* Timeline */
  .tl-track {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding-bottom: 0;
  }
  .tl-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-width: unset;
    flex: none;
    padding: 16px 0;
  }
  .tl-dot { flex-shrink: 0; }
  .tl-label { text-align: left; }
  .tl-line {
    width: 2px;
    height: 32px;
    min-width: unset;
    margin-top: 0;
    margin-left: 8px; /* align with dot center */
    align-self: stretch;
    flex: none;
  }

  /* Steps */
  .step-card { grid-template-columns: 52px 1fr; }
  .step-num  { font-size: 20px; }
  .step-body { padding: 18px 20px; }

  /* Prizes */
  .prizes-grid { grid-template-columns: repeat(2, 1fr); }
  .prize-amount { font-size: 25px; }

  /* Social */
  .social-cards { grid-template-columns: 1fr; max-width: 100%; }

  /* Resources */
  .resource-grid { grid-template-columns: 1fr; }

  /* Countdown */
  .cd-val { font-size: clamp(20px, 6vw, 32px); }

  /* Footer */
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-logo   { justify-self: center; }
  .footer-social { justify-content: center; }
  .footer-legal  { justify-self: center; grid-column: auto; flex-wrap: wrap; justify-content: center; }

  /* Modal */
  .modal-box { padding: 32px 24px; }
}

/* ── Extra-small: ≤ 374px ── */
@media (max-width: 374px) {
  .title-l1,
  .title-l2 { font-size: 27px; }
  .vol1 { font-size: 27px; }
  .date-badge { font-size: 16px; padding: 8px 12px; }
  .prizes-grid { grid-template-columns: 1fr; }
}

/* ── Prefer reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
