/* Mobile-first: base rules live in the other files; these progressively enhance. */
@media (min-width: 480px) {
  .chat-launcher__label { display: inline; }
  .chat-launcher { padding: 0 1.25rem 0 1.1rem; }
}
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cred-strip { grid-template-columns: repeat(2, 1fr); }
  .cred { border-bottom: 1px solid var(--color-border); }
  .cred:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .cred:nth-last-child(-n+2) { border-bottom: 0; }
  .leader { grid-template-columns: minmax(12rem, 1fr) 2.2fr; gap: 1.5rem; align-items: start; }
  /* Chat window becomes a floating panel above the WhatsApp button and launcher */
  .chat-window {
    inset: auto; right: var(--float-right); border-radius: 18px; width: min(24.5rem, calc(100vw - 2rem)); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28); border: 1px solid var(--color-border);
    bottom: calc(var(--float-bottom) + var(--fab-size) + var(--launcher-height) + var(--fab-gap) * 2);
    height: min(38rem, calc(100dvh - var(--float-bottom) - var(--fab-size) - var(--launcher-height) - var(--fab-gap) * 2 - 1.25rem));
  }
  .chat-window__head { padding-top: 0.9rem; }
  body.chat-open { overflow: auto; }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1.6fr auto; align-items: center; }
  .gold-feature { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .ecosystem__row { grid-template-columns: 14rem 1fr; align-items: start; gap: 1.5rem; }
  .cred-strip { grid-template-columns: repeat(4, 1fr); }
  .cred, .cred:nth-child(odd), .cred:nth-last-child(-n+2) { border-right: 1px solid var(--color-border); border-bottom: 0; }
  .cred:last-child { border-right: 0; }
}
@media (min-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: transparent; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav__list { display: flex; align-items: center; gap: 0.1rem; padding: 0; }
  .site-nav__link { padding: 0.5rem 0.62rem; border: 0; border-radius: 8px; font-size: 0.9rem; white-space: nowrap; }
  .site-nav__link:hover { background: var(--color-surface-muted); color: var(--color-primary); }
  .site-nav__link[aria-current="page"] { background: var(--color-accent-soft); }
  .nav-more { position: relative; }
  .nav-more__list { position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 17rem; padding: 0.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-card-hover); }
  .nav-more__list .site-nav__link { font-size: 0.92rem; white-space: normal; }
  .site-nav__cta { display: none; }
}
@media (min-width: 1280px) {
  .site-nav__link { font-size: 0.95rem; padding-inline: 0.7rem; }
}
@media (min-width: 1400px) {
  .site-nav__cta { display: block; margin-left: 0.5rem; }
  .site-nav__cta .btn { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9rem; white-space: nowrap; }
  .brand__role { display: block; white-space: nowrap; }
}
@media (min-width: 1700px) { :root { --container-width: 1280px; } }
@media (max-width: 479px) {
  .btn { width: 100%; }
  .btn--inline { width: auto; }
  .chat-launcher { padding: 0; width: var(--launcher-height); }
  .whatsapp-fab, .chat-launcher { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25); }
}
/* On phones the chat window is full-screen: hide the floating buttons behind it. */
@media (max-width: 639px) {
  body.chat-open .whatsapp-fab, body.chat-open .chat-launcher { visibility: hidden; }
}
@media print {
  .floating-actions, .site-header, .site-footer, .skip-link { display: none !important; }
}
