/* 2026-10-02 phone length cut for the interior pages (LEVI, same option B as the homepage). 860px and under.
   Desktop is untouched. The FAQ folds to its questions, multi-card rows become a sideways swipe with a
   "1 of 3" counter, and the closing note that repeats a line already on the page is dropped. Two-item rows stay
   side by side instead (Levi, 2026-10-04): the reach arms in css/reach.css, the fit-column pairs in css/pages.css.
   phone-fold-pages.js adds the toggles, marks the swipe rows and adds the counters; without it everything
   stays open and stacked. The how-it-works phases become one-panel tabs in pages-motion.js. */
.swipe-count, .faq-mark { display: none; }

@media (max-width: 860px) {
  /* Each one repeats a line the page already says: the questionnaire (FAQ), the hero pills, the hero note. */
  .page-cta .cta-note { display: none; }
  body.compare .comparison-detail .table-note { display: none; }

  /* Card rows: one row, swiped sideways, each card snapping to centre. */
  .pf-swipe {
    display: flex !important; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scroll-padding-inline: var(--gutter);
  }
  .pf-swipe::-webkit-scrollbar { display: none; }
  .pf-swipe > * { flex: 0 0 86%; min-width: 0; scroll-snap-align: center; }
  /* Off-screen cards would otherwise wait for their own reveal and arrive blank when swiped in. */
  html.pages-motion .pf-swipe > .m-reveal, html.pages-motion .pf-swipe.m-reveal { opacity: 1; transform: none; }
  .swipe-count { display: flex; justify-content: space-between; margin-top: .75rem; color: var(--ink-2); }
  .release-timeline--rail .pf-swipe > li { border-top: 1px solid var(--rule-strong); }
  /* How-it-works phases (Levi on his iPhone, 2026-10-04): the three phase panels are the swipe row, one phase
     per slide, and the steps inside each phase stack as a plain list. pages-motion.js shows all three panels
     under 860px (html.phase-swipe) and keeps the tab strip in step with the swipe. */
  /* Bubbles (Levi, 2026-10-04 second pass): each phase is one rounded card the full width of the screen, sized to
     be read whole without scrolling down, then swiped for the next. No peek: the tabs and the "1 of 3" say there
     is more. The inside is tightened to fit a phone screen; no copy is cut, and step text stays at the 13px floor. */
  .phase-panels.pf-swipe { margin-top: .75rem; gap: var(--gutter); }
  .phase-panels.pf-swipe > .phase-panel {
    display: block; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
    padding: 1rem 1.1rem .9rem; background: var(--surface); border: 1px solid var(--rule-strong);
    border-radius: var(--radius-panel); box-shadow: var(--shadow-object);
  }
  .phase-panels.pf-swipe .phase-panel-grid { gap: .6rem; }
  .phase-panels.pf-swipe .phase-intro h3 { font-size: 1.2rem; line-height: 1.2; }
  .phase-panels.pf-swipe .phase-intro > p { margin-top: .4rem; font-size: var(--t-body-sm); line-height: var(--lh-body); }
  .phase-panels.pf-swipe .phase-chain { margin-top: .5rem; }
  .phase-panels.pf-swipe .phase-steps li { grid-template-columns: 1.7rem 1fr; gap: 0 .5rem; padding: .45rem 0; line-height: 1.35; }
  .phase-panels.pf-swipe .phase-steps li:first-child { border-top: 0; padding-top: 0; }
  .phase-panels.pf-swipe .phase-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
  .phase-panels.pf-swipe .phase-steps b { font-size: var(--t-small); }
  .phase-panels.pf-swipe .phase-steps span { font-size: var(--t-note); }
  /* The number sits in its own column beside the title, not on a line above it. */
  .phase-panels.pf-swipe .phase-steps .phase-step-num { grid-column: 1; grid-row: 1 / span 2; padding-top: .15rem; color: var(--magenta-text); }

  /* FAQ: questions only, tap one to open its answer. Same treatment as the homepage. */
  .faq-list.is-folded .faq-item { padding-block: 0; }
  .faq-list.is-folded .faq-item:not(.is-open) > :not(h3) { display: none; }
  .faq-list.is-folded .faq-item.is-open { padding-bottom: 1.2rem; }
  html .faq-list.is-folded h3 { margin: 0; }
  .faq-toggle {
    all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    width: 100%; padding-block: 1rem; cursor: pointer; font: inherit; color: inherit; transition: color 150ms ease-out;
  }
  .faq-toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
  .faq-toggle .faq-mark { display: inline; flex: none; font-weight: 400; color: var(--coral); }
  .faq-item.is-open .faq-toggle { padding-bottom: .6rem; }
}
