/* Phone polish: tighter, consistent spacing between sections and a few compact layouts.
   Loaded last on every page (end of <body>) so it settles spacing after each page's own section styles. */
@media (max-width: 600px) {
    /* Section rhythm: 40px top and bottom, so neighbouring sections sit 80px apart instead of 112–150px. */
    html body main .sv-sec, html body main .hp-sec { padding-top: 40px; padding-bottom: 40px; }
    html body main .hp-hero { padding-bottom: 44px; }
    html body main .pp-cta-sec { padding-top: 16px; padding-bottom: 24px; }
    html body main .ms-lh-sec { padding: 28px 0 40px; }

    /* Section headings: less air under the title and intro box. */
    html body main .hp-head { margin-bottom: 26px; }
    html body main .hp-head p { font-size: 15px; line-height: 1.6; }
    html body main .sv-title { margin-bottom: 12px; }
    html body main .sv-intro { margin-bottom: 24px; padding: 14px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.55; }

    /* Homepage solutions: the device mock-up repeats the bullet list, so phones skip it. */
    html body main .hp-sc-device { display: none; }

    /* Contact form: no empty status line taking space before it has a message. */
    html body main .form-status:empty { display: none; margin: 0; }

    /* Mobile app page: approach quiz answers side by side, comparison as one card per row. */
    html body main .ms-ch-opts { grid-template-columns: 1fr 1fr; }
    html body main .ms-ch-opts span { padding: 9px 11px; font-size: 13.5px; }
    html body main .ms-ch-q legend { font-size: 15px; }
    html body main .ms-cmp-wrap { overflow: visible; border: 0; background: none; margin-top: 20px; }
    html body main .ms-cmp { min-width: 0; display: block; }
    html body main .ms-cmp caption { display: block; padding: 0 2px 10px; }
    html body main .ms-cmp thead { display: none; }
    html body main .ms-cmp tbody { display: grid; gap: 10px; }
    html body main .ms-cmp tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ms-line, #e3e8f2); }
    html body main .ms-cmp tbody tr:hover { background: #fff; }
    html body main .ms-cmp th, html body main .ms-cmp td { padding: 0; border: 0; }
    html body main .ms-cmp tbody th { grid-column: 1 / -1; white-space: normal; font-size: 14.5px; }
    html body main .ms-cmp td { font-size: 13px; line-height: 1.45; }
    html body main .ms-cmp td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ms-muted, #5a6585); }

    /* Mobile app page: shorter opening stage. */
    html body main .ms-reel { height: 400px; }

    /* Mobile app page: long card lists become swipe rows (next card peeks in), features a compact two-column grid. */
    html body main :is(.ms-svc, .ms-types-grid, .ms-mod, .ms-work) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 14px 16px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
    html body main :is(.ms-svc, .ms-types-grid, .ms-mod, .ms-work)::-webkit-scrollbar { display: none; }
    html body main :is(.ms-svc, .ms-types-grid, .ms-mod) > li { flex: 0 0 84%; scroll-snap-align: center; }
    html body main .ms-work > li { flex: 0 0 88%; scroll-snap-align: center; }
    html body main .ms-type.is-out { display: none; }
    html body main .ms-work-stage { min-height: 250px; padding-top: 22px; }
    html body main .ms-work-stage img { width: 150px; margin-bottom: -30px; }
    html body main .ms-work-copy { padding: 20px 18px; }
    html body main .ms-work-copy > p { font-size: 14.5px; }
    html body main .ms-svc-card, html body main .ms-mod-card { padding: 20px 18px; }
    html body main .ms-feat { grid-template-columns: 1fr 1fr; gap: 10px; }
    html body main .ms-feat-tile { padding: 16px 14px; }
    html body main .ms-feat-tile h3 { margin-top: 12px; font-size: 15px; }
    html body main .ms-feat-tile p { font-size: 13px; line-height: 1.5; }
    html body main .ms-feat-ic { width: 44px; height: 44px; }
    html body main .ms-jr-steps li { min-height: 0; padding-bottom: 30px; }
    html body main .ms-jr-steps li:last-child { padding-bottom: 0; }
    html body main .ms-jr-steps h3 { font-size: 19px; }
    html body main .ms-factors { margin-top: 18px; padding: 18px 14px; }

    /* Contact form: less space above the form card, roomier tap targets, full-width submit. */
    html body main .sv-contact { gap: 26px; }
    html body main .sv-form { padding: 24px 18px; gap: 12px; border-radius: 18px; }
    html body main .sv-form h3 { font-size: 1.45rem; margin-bottom: 4px; }
    html body main .sv-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { min-height: 46px; font-size: 16px; }
    html body main .sv-form .sv-btn { justify-self: stretch; text-align: center; }
    html body main .sv-contact-h { margin-top: 0; font-size: 1.6rem; }
    html body main .sv-contact-big { font-size: 2.4rem; margin: 4px 0 12px; }

    /* Homepage: the decorative hero graphic is skipped on phones; partner map art kept small. */
    html body main .hp-hero-art { display: none; }
    html body main .hp-hero-foot { margin-top: 28px; }
    html body main .hp-partner-art { margin: 0 auto -6px; }
    html body main .hp-partner-art img { max-height: 150px; }
}
