/* Tru OS website: PHONE ONLY. Everything here sits inside one max-width: 640px query, loaded last
   on every site page, so nothing in this file can reach tablet or desktop. Desktop is proven
   unchanged by site-snapshot.mjs (pixel + element fingerprint vs .baseline/desktop).
   The rule on phone: headline, one short line, the proof (a demo or a photo), one button.
   Long stacks of cards become swipe rows; secondary paragraphs and bullet lists go. */
/* The one rule outside the phone query: phone-only copy never renders on tablet or desktop.
   (Shorter phone lines are separate elements, so desktop text runs stay exactly as they were;
   wrapping part of a sentence in a span shifted a glyph's anti-aliasing on desktop.) */
.m-only { display: none; }

@media (max-width: 640px) {

  /* ---------- Shared ---------- */
  .m-only { display: block; }
  .hx-sub:not(.m-only), .pp-hero-sub:not(.m-only), .page-company .co-sub:not(.m-only) { display: none; }
  /* A swipe row: one card in view, the next one peeking so it's obvious there's more. */
  .m-swipe { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -18px; padding: 4px 18px 14px; scroll-padding-inline: 18px; }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }

  /* ---------- Home ---------- */
  /* Hero: headline, one line, one button, then the product. */
  .hx { padding-top: 104px; }
  .hx-pill { display: none; }
  .hx h1 { margin-top: 0; }
  .hx-sub { margin-top: 16px; font-size: 16px; }
  .hx-actions { margin-top: 22px; }
  .hx-actions .btn-ghost { display: none; }
  .hx-stage { margin-top: 32px; }
  /* The screenshot's height attribute beats aspect-ratio, so on a 390px screen it rendered 358x900
     and "cover, left top" showed only the sidebar. Size it by width and crop to the main panel:
     the morning brief, the money, and the Needs you queue. */
  .hx-shot { max-height: 300px; }
  .hx-shot img { width: 174%; max-width: none; height: auto; aspect-ratio: auto; object-fit: fill; margin-left: -31.6%; }
  .hx-job { display: none; }
  /* The live toast lands on the faded bottom edge of the screen, not over the morning brief. */
  .toasts { width: 236px; right: -6px; top: auto; bottom: 22px; }
  .toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Differentiators: tag, headline, the live demo. The demo tells the story. */
  .feat { gap: 20px; }
  .feat-copy > p:not(.feat-tag), .feat-points { display: none; }
  .ds-health, .db-brief { display: none; }
  .db-msg.m5, .db-msg.m6 { display: none; }

  /* Built by contractors: the claim and the link. */
  .built-facts { display: none; }
  .basics .sample-note { margin-top: 14px; }

  /* Closing band: one line, one button. */
  .cta-band p, .cta-band .btn-ghost { display: none; }
  .block { padding: 48px 18px; }
  .basics { padding-top: 44px; padding-bottom: 44px; }

  /* ---------- Product ---------- */
  .pp-hero .hero-actions .btn-ghost { display: none; }
  .pp-thesis { display: none; }
  .pp-vs { padding-top: 56px; padding-bottom: 48px; }
  /* Old way / Tru way: one swipe row, alternating, each card labeled. Art + headline only. */
  .vs-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 28px -18px 0; padding: 4px 18px 14px; scroll-padding-inline: 18px; }
  .vs-grid::-webkit-scrollbar { display: none; }
  .vs-grid > .vs-card { flex: 0 0 82%; scroll-snap-align: start; min-width: 0; margin: 0; }
  .vs-card > p { display: none; }
  .vs-new { margin-bottom: 0; }
  /* Speed to lead: step number, headline and its scene. The long explanations go. */
  .ps-step > p:not(.ps-num), .ps-small { display: none; }
  .ps-step { padding: 26px 0 12px; }
  .sc-rules, .sc-quiet, .sc-hnote { display: none; }
  /* Text your business: the questions and the live phone. */
  .pb-lead, .pb-brief { display: none; }
  .pb-grid { gap: 28px; }
  /* Five tools: headline, one line, the visual. Fact lists and secondary panels go. */
  .ch-facts { display: none; }
  .ch { padding: 44px 0 36px; }
  .ch-head p { font-size: 15px; }
  .ads-meta, .ads-pipe { display: none; }
  .qt-mats, .qt-cap { display: none; }
  .rd-plan { display: none; }
  .pp-flow .fl-span > span { display: none; }
  /* The basics: names only, two across. Anchors from Home still land here. */
  .bx { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bx li { padding: 12px 14px; }
  .bx li span { display: none; }
  .pp-close .pc-light { display: none; }
  /* Section rhythm: the desktop gaps are too tall for one thumb-scroll. */
  .pp-dark-in, .pp-flow-in { padding: 60px 18px; }
  .pp-brain .pp-dark-in { padding-top: 56px; padding-bottom: 64px; }
  .pp-chapters { padding-top: 64px; padding-bottom: 24px; }
  .pp-more { margin-bottom: 8px; }
  .pp-basics { padding-top: 56px; padding-bottom: 24px; gap: 24px; }
  .pp-close { padding-top: 56px; padding-bottom: 56px; }
  /* The chat keeps a steady height between questions, just less of it. */
  .pb-thread { min-height: 280px; }
  /* How it connects: six named steps are enough. */
  .fl-row li span { display: none; }
  .fl-row { row-gap: 22px; }
  /* Sub Base: the scored applicant and the paperwork; crew scheduling has its own section. */
  .sb-board { display: none; }

  /* ---------- Pricing (its styles are scoped to body.page-pricing, so these are too) ---------- */
  /* Plans: swipe between them inside the same card instead of scrolling past all three. */
  body.page-pricing .pr-cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  body.page-pricing .pr-cols::-webkit-scrollbar { display: none; }
  body.page-pricing .pr-plan { flex: 0 0 86%; scroll-snap-align: start; min-width: 0; }
  body.page-pricing .pr-plan + .pr-plan, body.page-pricing .pr-plan-crew + .pr-plan { box-shadow: inset 1px 0 0 var(--pr-line); }
  /* The plan cards already list what's in each plan; the full grid is a desktop read. */
  body.page-pricing .pr-compare { display: none; }
  body.page-pricing .pr-six-copy > p:not(.pr-label), body.page-pricing .pr-six .pr-stage { display: none; }
  body.page-pricing .pr-block { padding-top: 48px; padding-bottom: 48px; }
  body.page-pricing .pr-close .pr-card:not(.pr-card-dark) { display: none; }

  /* ---------- Company (styles scoped to .page-company, so these are too) ---------- */
  .page-company .co-toc { display: none; }
  .page-company .co-sub { margin-top: 20px; }
  .page-company .co-story { padding-bottom: 32px; }
  .page-company .co-act { gap: 28px; padding: 44px 0; }
  .page-company .co-lede { font-size: 17px; }
  /* The chats read in a shorter phone; the bottom fades out rather than scrolling on and on. */
  .page-company .phone { height: 540px; }
  .page-company .co-psub { display: none; }
  .page-company .co-principles-in { padding: 56px 18px 60px; }
  .page-company .co-plist li { padding: 22px 0 24px; }
  .page-company .co-close { padding: 56px 18px 56px; gap: 24px; }
  .page-company .co-links span { display: none; }

  /* ---------- Demo ---------- */
  .demo-page .pill, .demo-points { display: none; }
}
