/* =========================================================
   responsive.css : breakpoints
   1440+ large desktop · 1200 laptop · 1024 tablet landscape
   860 tablet · 640 mobile · 400 small mobile
   ========================================================= */

@media (min-width: 1600px) {
  .container { max-width: 1440px; }
  .gpanel--rank { right: 33%; }
}

@media (max-width: 1280px) {
  .gpanel--rank { right: 30%; top: 15%; }
  .gpanel--insight { right: 33%; }
  .nav__link { padding: 8px 13px; }
}

@media (max-width: 1100px) {
  .nav__links, .nav__indicator, .nav__cta { display: none; }
  .burger { display: block; }

  .hero__vignette { background: linear-gradient(90deg, rgba(5, 8, 22, .9) 0%, rgba(5, 8, 22, .5) 50%, transparent 75%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
  .gpanel--rank, .gpanel--insight { display: none; }
  .gpanel--call { top: 22%; right: var(--gutter); }
  .gpanel--book { bottom: 18%; right: var(--gutter); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  /* bottom bar: copyright full width, then legal (left) + powered-by (right) */
  .footer__bottom { grid-template-columns: 1fr auto; }
  .footer__copy { grid-column: 1 / -1; }
  .footer__legal { justify-content: flex-start; }
}

@media (max-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .section-head--split .eyebrow { padding-top: 0; }

  .about__top { grid-template-columns: 1fr; }
  .territory { max-width: 560px; width: 100%; margin-inline: auto; }
  .territory__card { transform: none; }
  .audience__grid { grid-template-columns: repeat(3, 1fr); }
  .mva { grid-template-columns: 1fr; gap: 36px; }

  .eco__wrap { grid-template-columns: 1fr; }
  .eco__diagram { max-width: 560px; }

  .bento { grid-template-columns: repeat(6, 1fr); }
  .svc--seo, .svc--coach, .svc--custom { grid-column: span 6; }
  .svc--rec, .svc--twin, .svc--call, .svc--lead { grid-column: span 3; }

  .why__grid { grid-template-columns: 1fr; }
  .why__sticky { position: relative; top: 0; }
  .radar { display: none; }
  .pillar { position: relative; top: 0; }
  .why__list { gap: 16px; padding-bottom: 0; }
  .pillar__card { min-height: 0; }

  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan__for { min-height: 0; }
  .pfaq { grid-template-columns: 1fr; }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }

  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }

  /* Hero (tablet/mobile): text first, then the 3D stage, then the two panels */
  .hero {
    --vis: clamp(260px, 42vw, 380px);
    display: flex; flex-direction: column; align-items: stretch;
    min-height: 0; padding: calc(var(--nav-h) + 28px) 0 56px;
  }
  .hero__content { order: 1; }
  .hero__stage { display: block; order: 2; height: var(--vis); }
  .hero__vignette { background: linear-gradient(180deg, rgba(5, 8, 22, .92) 0%, rgba(5, 8, 22, .6) 40%, transparent 62%), linear-gradient(0deg, var(--bg) 0%, transparent 14%); }
  .hero__grid { mask-image: radial-gradient(80% 45% at 50% 78%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(80% 45% at 50% 78%, #000 20%, transparent 75%); }
  .hero__glow--a { width: 90vw; height: 90vw; right: 5%; top: auto; bottom: 0; }
  .scroll-cue { display: none; }

  /* Panels: one aligned two-column row on the page gutters, under the 3D stage */
  .hero__panels {
    order: 3; position: relative; inset: auto; z-index: 3;
    margin: -36px var(--gutter) 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch;
  }
  .gpanel, .gpanel--call, .gpanel--book {
    position: relative; inset: auto; width: auto; min-width: 0; height: 68px;
    padding: 10px 14px; font-size: .74rem;
    transform: translate3d(0, var(--iy, 0px), 0); animation: none;
  }
  .gpanel--call { display: flex; flex-direction: column; justify-content: center; }
  .gpanel--call .gpanel__head { margin-bottom: 6px; }
  .gpanel--call .wave { height: 18px; }
  .gpanel--book { display: flex; align-items: center; gap: 10px; order: -1; }
  .gpanel--book .gpanel__icon { width: 34px; height: 34px; flex: none; }
  .gpanel--book .gpanel__title { font-size: .8rem; line-height: 1.25; }
  .gpanel--book .gpanel__sub { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gpanel--book > div { min-width: 0; }
  .gpanel--book .gpanel__check { display: none; }
  .gpanel__head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gpanel__foot { display: none; }
  .hero__eyebrow { font-size: .66rem; letter-spacing: .06em; padding: 7px 12px 7px 10px; gap: 8px; }
  /* How it works: steps are readable before they light up (the long single column made the dim state feel like a delay) */
  .tstep__card { opacity: .85; }
  .hero__title { margin-top: 20px; }
  .hero__lead { margin-top: 20px; }
  .hero__meta { margin-top: 36px; }

  .timeline__line { left: 9px; }
  .tstep { grid-template-columns: 1fr; padding-left: 44px; gap: 0; }
  .tstep__dot { left: 9px; top: 40px; }
  .tstep:nth-child(even) .tstep__card, .tstep:nth-child(odd) .tstep__card { grid-column: 1; }

  .sdialog__cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section: 88px; }

  .hero__title { letter-spacing: -.04em; }
  .gpanel__extra, .gpanel--book .gpanel__sub { display: none; }
  .gpanel--book .gpanel__title { white-space: normal; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; font-size: .74rem; line-height: 1.3; }
  .hero__meta li { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 10px; }
  .hero__meta li + li { padding-left: 12px; }
  .hero__meta b { font-size: 1.3rem; line-height: 1; }
  .scroll-cue { display: none; }

  .audience__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aud { min-height: 120px; padding: 16px; font-size: .95rem; }
  .aud:last-child { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
  .territory__card { padding: 10px; }
  .territory__chip--b { display: none; }
  .tpin__tag { font-size: .66rem; }
  .territory__stat b { font-size: 1.4rem; }
  .about__title { max-width: none; }

  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento > .svc { grid-column: auto; }
  .svc__visual--map { height: 140px; }
  .flow { flex-wrap: wrap; gap: 8px; }
  .flow__line { display: none; }

  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { min-height: 230px; padding: 20px; }
  .stat__label { font-size: .85rem; }
  .viz--ring { width: 64px; height: 64px; }

  .ctable th, .ctable td { padding: 14px 16px; }
  .ctable { min-width: 560px; }
  /* comparison table: say it scrolls, fade the cut-off edge, keep the feature names pinned */
  .compare__hint { display: flex; justify-content: flex-end; gap: 6px; padding: 0 20px 10px; margin: 0; color: var(--cyan); font-size: .68rem; }
  .compare__hint span { animation: nudge 1.6s ease-in-out infinite; }
  .compare__inner { position: relative; }
  .compare__inner::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(10, 16, 36, .95)); }
  .ctable th[scope=row], .ctable thead th:first-child { position: sticky; left: 0; z-index: 1; background: #0C1430; min-width: 150px; box-shadow: 1px 0 0 var(--line); }
  /* service popup: stacked full-width buttons */
  .sdialog__ctas { flex-direction: column; }
  .sdialog__ctas .btn { width: 100%; }
  .compare__toggle { padding: 20px; }
  .compare__body .footnote { padding: 0 20px; }

  .acc summary { padding: 18px 20px; }
  .acc__body { padding: 0 20px 20px; }

  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .formwrap { padding: 22px 18px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__bottom { grid-template-columns: 1fr; }
  .poweredby { justify-self: start; }
  .totop { right: 16px; bottom: 16px; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .footer__top { grid-template-columns: 1fr; }
}

/* Touch devices: no hover-only effects that hide content */
@media (hover: none) {
  .footer__col a, .footer__legal a, .cdetails a { display: inline-block; padding-block: 6px; }
  .footer__col ul { gap: 4px; }
  .svc__more::after { transform: scaleX(1); }
}
