/* ============================================================
   responsive.css — Chedders Wallet V3
   320px · xs · sm · md · lg · xl · xxl · print
   Footer: 4 columns locked — gap only changes, no collapse
   ============================================================ */


/* ══════════════════════════════════════════
   320px — Minimum supported width
══════════════════════════════════════════ */
@media (max-width: 320px) {

  .container { padding-left: 12px; padding-right: 12px; }

  .section-padding     { padding-top: 40px; padding-bottom: 40px; }
  .section-padding--sm { padding-top: 28px; padding-bottom: 28px; }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  .navbar-custom { min-height: 52px; }
  .navbar-brand__logo { width: 24px; height: 24px; font-size: 11px; }
  .navbar-custom .navbar-brand { font-size: 14px; }

  .hero { padding-top: 72px; }
  .hero__headline  { font-size: 22px; }
  .hero__subheading { font-size: 14px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero__cta .btn-primary-custom,
  .hero__cta .btn-secondary-custom { width: 100%; justify-content: center; padding: 12px 16px; font-size: 13px; }

  .card-custom  { padding: 16px; }
  .status-card  { padding: 16px 14px; }
  .founder__card { padding: 20px 16px; }
  .founder__quote { font-size: 14px; }

  /* Footer — gap only, still 4 cols */
  .footer { padding-top: 28px; padding-bottom: 20px; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 8px;
  }
  .footer__logo { font-size: 13px; }
  .footer__logo-mark { width: 22px; height: 22px; font-size: 10px; }
  .footer__tagline { font-size: 11px; }
  .footer__nav-title { font-size: 9px; margin-bottom: 8px; }
  .footer__nav-link  { font-size: 11px; }
  .footer__nav-list  { gap: 5px; }
  .footer__copyright,
  .footer__meta-item { font-size: 10px; }

  .early-access { padding-top: 40px; padding-bottom: 40px; }
  .early-access__input-group {
    flex-direction: column;
    border: none;
    background: transparent;
    overflow: visible;
    gap: 8px;
  }
  .early-access__input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
  }
  .early-access__input-group .btn-primary-custom {
    width: 100%;
    border-radius: var(--radius-md);
    height: 44px;
  }
  .early-access__benefits { flex-direction: column; align-items: center; gap: 8px; }
}


/* ══════════════════════════════════════════
   XS — MOBILE  (321px – 575px)
══════════════════════════════════════════ */
@media (min-width: 321px) and (max-width: 575px) {

  .container { padding-left: 16px; padding-right: 16px; }

  .section-padding     { padding-top: 56px; padding-bottom: 56px; }
  .section-padding--sm { padding-top: 40px; padding-bottom: 40px; }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }

  .navbar-custom { min-height: 56px; }
  .navbar-brand__logo { width: 26px; height: 26px; font-size: 12px; }

  /* Hero — text first, image above on mobile (order: -1) */
  .hero { padding-top: 82px; }
  .hero__headline   { font-size: 26px; max-width: 100%; }
  .hero__subheading { font-size: 15px; max-width: 100%; }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero__cta .btn-primary-custom,
  .hero__cta .btn-secondary-custom { width: 100%; justify-content: center; }

  /* V3 §7.2 — visual stacks ABOVE copy on mobile */
  .hero__media { order: -1; margin-bottom: 24px; }
  .hero__image { max-height: 340px; border-radius: var(--radius-lg); }

  .card-custom   { padding: 18px; }
  .status-card   { padding: 20px 16px; }
  .founder__card { padding: 24px 18px; }
  .founder__quote { font-size: 14px; }

  /* Footer — 4 cols locked, gap 12px */
  .footer { padding-top: 32px; padding-bottom: 20px; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }
  .footer__logo      { font-size: 13px; margin-bottom: 6px; }
  .footer__logo-mark { width: 22px; height: 22px; font-size: 10px; }
  .footer__tagline   { font-size: 11px; }
  .footer__nav-title { font-size: 10px; margin-bottom: 8px; letter-spacing: 0.06em; }
  .footer__nav-link  { font-size: 11px; }
  .footer__nav-list  { gap: 6px; }
  .footer__bottom    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__copyright { font-size: 11px; }
  .footer__meta      { display: none; }

  .section-subtext { max-width: 100%; font-size: 15px; }

  .early-access { padding-top: 56px; padding-bottom: 56px; }
  .early-access__input-group {
    flex-direction: column;
    border: none;
    background: transparent;
    overflow: visible;
    gap: 10px;
  }
  .early-access__input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
  }
  .early-access__input-group .btn-primary-custom {
    width: 100%;
    border-radius: var(--radius-md);
    height: 48px;
  }
  .early-access__benefits { flex-direction: column; align-items: center; gap: 10px; }

  .about__stat { padding: 14px 12px; }
  .about__stat-value { font-size: 14px; }
  .security-card { padding: 16px 14px; }

  .ecosystem-card { gap: 12px; padding: 14px; }
  .ecosystem-card__icon { width: 34px; height: 34px; font-size: 15px; }
  .ecosystem-card__title { font-size: 13px; }
  .ecosystem-card__text  { font-size: 12px; }
}


/* ══════════════════════════════════════════
   SM — LARGE MOBILE  (576px – 767px)
══════════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767px) {

  .container { padding-left: 20px; padding-right: 20px; }
  .section-padding { padding-top: 64px; padding-bottom: 64px; }

  .hero { padding-top: 90px; }
  .hero__headline { font-size: 28px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }

  /* V3 §7.2 — image above copy */
  .hero__media { order: -1; margin-bottom: 28px; }
  .hero__image { max-height: 400px; }

  /* Footer — 4 cols, gap 12px */
  .footer { padding-top: 36px; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }
  .footer__tagline   { font-size: 12px; }
  .footer__nav-title { font-size: 10px; }
  .footer__nav-link  { font-size: 12px; }
  .footer__bottom    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__meta      { display: none; }

  .early-access__input-group { max-width: 100%; }
}


/* ══════════════════════════════════════════
   MD — TABLET  (768px – 991px)
══════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {

  .container { padding-left: 24px; padding-right: 24px; }
  .section-padding { padding-top: 72px; padding-bottom: 72px; }

  .hero { padding-top: 96px; }
  .hero__headline  { font-size: 30px; max-width: 100%; }
  .hero__subheading { max-width: 100%; }

  /* V3 §7.2 — image above copy on tablet-portrait */
  .hero__media { order: -1; margin-bottom: 32px; }
  .hero__image { max-height: 440px; }

  .status-card { padding: 22px 18px; }

  /* Footer — 4 cols, gap 20px */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }
  .footer__tagline   { font-size: 12px; }
  .footer__nav-link  { font-size: 12px; }

  .early-access__input-group { max-width: 500px; }
}


/* ══════════════════════════════════════════
   LG — LAPTOP  (992px – 1199px)
══════════════════════════════════════════ */
@media (min-width: 992px) and (max-width: 1199px) {

  .section-padding { padding-top: 88px; padding-bottom: 88px; }

  /* Hero back to side-by-side — reset order */
  .hero { padding-top: 104px; }
  .hero__media { order: 0; }
  .hero__headline { font-size: 36px; }
  .hero__image    { max-height: 520px; }

  /* Footer — 4 cols, gap 24px */
  .footer-grid { gap: 24px; }
}


/* ══════════════════════════════════════════
   XL — DESKTOP  (1200px +)
══════════════════════════════════════════ */
@media (min-width: 1200px) {

  .section-padding { padding-top: 96px; padding-bottom: 96px; }

  .hero { padding-top: 112px; }
  .hero__media { order: 0; }
  .hero__headline   { font-size: 42px; max-width: 580px; }
  .hero__subheading { font-size: 17px; }
  .hero__image      { max-height: 580px; }

  .section-subtext { font-size: 16px; }

  /* Footer — full 32px gap */
  .footer-grid { gap: 32px; }
}


/* ══════════════════════════════════════════
   XXL — WIDE  (1400px +)
══════════════════════════════════════════ */
@media (min-width: 1400px) {

  .container      { max-width: 1320px; }
  .hero__headline { font-size: 44px; }
  .hero__image    { max-height: 600px; }
  .footer-grid    { gap: 40px; }
}


/* ══════════════════════════════════════════
   PRINT
══════════════════════════════════════════ */
@media print {
  .navbar-custom, .hero__cta, .early-access, .footer { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  h1, h2, h3 { color: #000; }
  .section-padding { padding-top: 20px; padding-bottom: 20px; }
}
