/* Phone: short version of the app pages (body.m-simple). Desktop is not touched.
   "Show all details" adds body.m-all and brings every detail back. */
.m-note{display:none}
@media (max-width:640px){
  .m-simple .m-note{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef3ee;border:1px solid #d5e2d6;border-radius:10px;padding:10px 12px;margin:0 0 14px;font-size:.88rem;line-height:1.35}
  .m-note .m-toggle{flex:none;border:1px solid #b9cdbb;background:#fff;color:var(--accent,#1f5f45);font-weight:700;font-size:.85rem;border-radius:8px;padding:9px 12px;min-height:40px;cursor:pointer}
  .m-simple .m-long,.m-simple.m-all .m-short{display:none}
  .m-simple.m-all .m-long{display:inline}

  /* everything below only while the short version is on */
  .m-simple:not(.m-all) .m-more,
  .m-simple:not(.m-all) .crumbs,
  .m-simple:not(.m-all) .head h1 + .muted{display:none!important}

  /* Dashboard: plan = name + documents left; module stats in one compact row */
  .m-simple:not(.m-all) .plan-now .pn-status,
  .m-simple:not(.m-all) .plan-now .pn-actions,
  .m-simple:not(.m-all) .plan-now .meter ~ .meter,
  .m-simple:not(.m-all) .plan-now .pn-meters > .small{display:none}
  .m-simple:not(.m-all) .card .grid.g3.mb{grid-template-columns:repeat(3,1fr);gap:8px}
  .m-simple:not(.m-all) .card .grid.g3.mb .stat{padding:10px}
  .m-simple:not(.m-all) .card .grid.g3.mb .stat .v{font-size:1.25rem}
  .m-simple:not(.m-all) .card .grid.g3.mb .stat .l{font-size:.74rem;line-height:1.25}
  .m-simple:not(.m-all) .stat-link{display:none}
  .m-simple:not(.m-all) .card > .btn{display:block;text-align:center}

  /* Upload: only the two big buttons */
  .m-simple:not(.m-all) .pg-upload .more-uploads,
  .m-simple:not(.m-all) .pg-upload > p.small,
  .m-simple:not(.m-all) .pg-upload .drop > .small.muted{display:none}

  /* Report: the money first, the rest in small boxes, no extra explanations */
  .m-simple:not(.m-all) .stat .h{display:none}
  .m-simple:not(.m-all) .grid.g4{grid-template-columns:1fr 1fr;gap:10px}
  .m-simple:not(.m-all) .grid.g4 .stat.dark{grid-column:1/-1}
  .m-simple:not(.m-all) .grid.g4 .stat:not(.dark) .v{font-size:1.2rem}
  .m-simple:not(.m-all) .finding .small.muted,
  .m-simple:not(.m-all) .finding .badge.high,
  .m-simple:not(.m-all) .finding .badge.medium,
  .m-simple:not(.m-all) .finding .badge.low,
  .m-simple:not(.m-all) .finding .top + .f-step{display:none}
  .m-simple:not(.m-all) .finding .top + .f-step + .f-step{display:none}

  /* Radar: list only */
  .m-simple:not(.m-all) .legend,
  .m-simple:not(.m-all) .opp-orig,
  .m-simple:not(.m-all) .results-head .small,
  .m-simple:not(.m-all) .pager-top{display:none}
}

/* Home page on a phone: the hook, the clear benefits and the buttons. The full presentation stays on the computer. */
.m-only{display:none}
@media (max-width:640px){
  .m-home .m-only{display:block}
  .m-home .hero .lead:not(.m-only),
  .m-home .hero .kicker,
  .m-home .hero .cta + .small,
  .m-home .module .lead-dark,
  .m-home .module .quote-ex,
  .m-home .module-tag,
  .m-home .module-body > div > p.small,
  .m-home .rd .module-body > .card,
  .m-home .proof-row,
  .m-home .proof > p,
  .m-home .steps p,
  .m-home .explore,
  .m-home .explore ~ *,
  .m-home section.band.alt:has(.explore){display:none}
  /* benefits: only the bold promise of each line */
  .m-home .benefits li{font-size:0;padding-top:4px;padding-bottom:4px}
  .m-home .benefits li b{font-size:1rem}
  .m-home .proof{padding:16px 18px}
  .m-home .proof-total{margin-top:6px}
  .m-home .steps{gap:8px}
  .m-home .steps > div{padding:12px 14px}
  .m-home .module-body .btn{display:block;text-align:center}
  .m-home .m-web{padding:22px 0}
  .m-home .m-web p{margin:0 0 14px;font-size:.98rem}
}

/* Report on a phone: one short card per document, so a clean receipt still shows what was read */
.m-docs{display:none}
@media (max-width:640px){
  .m-simple:not(.m-all) .m-docs{display:block;margin:4px 0 18px}
  .m-docs h2{font-size:1.15rem;margin:0 0 10px}
  .m-doc{background:#fff;border:1px solid var(--line,#e5e2da);border-radius:10px;padding:12px 14px;margin-bottom:10px}
  .m-doc.bad{border-left:3px solid var(--bad,#b33)}
  .m-doc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
  .m-doc-top strong{word-break:break-word}
  .m-doc-kind{margin-top:2px}
  .m-doc-nums{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:8px}
  .m-doc-nums div{display:flex;flex-direction:column}
  .m-doc-nums span{font-size:.75rem;color:var(--muted,#667)}
  .m-doc-nums b{font-size:1.02rem}
}
