/* SteadySelf — mobile layout (phones). Desktop is unchanged. */
.m-only { display: none; }

@media (max-width: 700px) {
  .m-only { display: block; }
  .desk-only { display: none !important; }

  /* Tighter rhythm */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 1.75rem; }
  .section-head p { font-size: 0.95rem; }
  .hero { padding-top: 28px; padding-bottom: 36px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero-ctas .btn { width: 100%; }
  .hero-metrics { margin-top: 22px; }
  .hero-metrics span { font-size: 0.72rem; }
  .portrait-card { max-height: 360px; overflow: hidden; border-radius: 22px; }

  /* Root chain: compact, labels only */
  .chain { gap: 18px; }
  .chain-step { padding: 14px 18px; border-radius: 14px; }
  .chain-step p { display: none; }
  .chain-step strong { margin: 2px 0 0; font-size: 1rem; }
  .chain-step:not(:last-child)::after { bottom: -18px; font-size: 0.9rem; }
  .chain-caption { margin-top: 20px; gap: 12px; }
  .chain-caption div:first-child { display: none; }

  /* Horizontal swipe carousels instead of long stacks */
  #reverse-rule .grid-3,
  .shift-grid,
  .learn-grid,
  .trust-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -24px;
    padding: 0 24px 6px;
    scroll-padding-left: 24px;
    scrollbar-width: none;
  }
  #reverse-rule .grid-3::-webkit-scrollbar,
  .shift-grid::-webkit-scrollbar,
  .learn-grid::-webkit-scrollbar,
  .trust-grid::-webkit-scrollbar { display: none; }
  #reverse-rule .grid-3 > *,
  .shift-grid > *,
  .learn-grid > *,
  .trust-grid > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .swipe-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: -8px 0 12px;
  }
  .section-dark .swipe-hint { color: var(--text-light-muted); }
  .learn-card img { height: 170px; }
  .promise-line { margin-top: 20px; font-size: 0.88rem; }

  /* Who it's for: keep the "for you" list, drop the rest (covered in FAQ/footer) */
  .fit-no { display: none; }
  .fit-card { padding: 22px; }
  .fit-card li { font-size: 0.9rem; }

  /* Course architecture duplicates the curriculum: hide on phones */
  #v-map { display: none; }

  /* Curriculum collapsed behind a button */
  #curriculum .tabs,
  #curriculum #curriculum-panel { display: none; }
  #curriculum.show-all .tabs { display: flex; }
  #curriculum.show-all #curriculum-panel { display: block; }
  .curriculum-toggle { width: 100%; margin-bottom: 14px; }

  .plan-card { padding: 24px; }

  /* Sticky bottom call-to-action */
  .m-cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    gap: 10px;
    align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .m-cta-bar .btn { flex: 1; padding: 12px; }
  .m-cta-alt {
    background: none;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 0.86rem;
    padding: 8px 4px;
    cursor: pointer;
    white-space: nowrap;
  }
  .site-footer { padding-bottom: 90px; }
}
