/* =========================================================
   RESPONSIVE — base layout primitives only
   Breakpoints:
     sm = 480px   (small phones)
     md = 768px   (tablet portrait)
     lg = 1024px  (tablet landscape)
     xl = 1280px  (large desktop)
   Component-specific responsive rules live in their
   respective components/*.css files.
   ========================================================= */

/* ---------------------------------------------------------
   TABLET LANDSCAPE AND SMALLER (<= 1024px)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .container { padding-inline: 24px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------
   TABLET PORTRAIT (<= 768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 36px; }

  /* Typography scale-down */
  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.1; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  h3 { font-size: 1.15rem; }
  .lede { font-size: 1rem; line-height: 1.6; }

  .card { padding: 28px 24px; }
}

/* ---------------------------------------------------------
   SMALL PHONES (<= 480px)
   --------------------------------------------------------- */
@media (max-width: 480px) {
  .container { padding-inline: 18px; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }

  .section { padding: 48px 0; }
  .sec-head { margin-bottom: 32px; }

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

/* ---------------------------------------------------------
   LARGE DESKTOP (>= 1280px)
   --------------------------------------------------------- */
@media (min-width: 1280px) {
  .container { max-width: 1240px; }
}
