/* Mobile stacked layout, v2 "airier" pass (<=600px). Desktop is untouched.
   - Every screen is at least one phone screen tall under the nav; dense ones
     may grow taller instead of shrinking type.
   - Hero keeps phone-left / text-right. Every other phone section stacks:
     phone on top, then eyebrow, heading, body and CTA with generous spacing.
   - Body text >= 15px, small labels >= 12px.
   Stacked headings are sized by mobile-stacked.js (each line stays whole). */
@media (max-width:600px){
  :root{--ms-h:calc(100svh - var(--navh,60px));--ms-pad:24px;--ms-vpad:64px;--ms-hero-pwn:150;--ms-pwn:210;--ms-ge-pwn:200}

  /* ---------- every screen ---------- */
  html body .hero,
  html #pin-root .pin-slide{min-height:var(--ms-h)!important;box-sizing:border-box}
  html #pin-root .pin-slide{display:flex!important;flex-direction:column;justify-content:center;align-items:stretch}
  html #pin-root .pin-slide > *{width:100%;box-sizing:border-box}
  html #pin-root .pin-slide > .sec,
  html #pin-root .pin-slide > .card,
  html #pin-root .pin-slide > .pin-product-title{
    min-height:var(--ms-h)!important;height:auto!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;
    padding-top:var(--ms-vpad)!important;padding-bottom:var(--ms-vpad)!important;margin:0!important;
  }
  html body main .wrap,
  html #pin-root .pin-slide .wrap{width:auto!important;max-width:none!important;margin-left:var(--ms-pad)!important;margin-right:var(--ms-pad)!important;padding-left:0!important;padding-right:0!important}
  html #pin-root .pin-slide > .sec,
  html #pin-root .pin-slide > .pin-product-title{padding-left:0!important;padding-right:0!important}
  html #pin-root .pin-slide > .pin-product-title{padding-left:var(--ms-pad)!important;padding-right:var(--ms-pad)!important}

  /* stacked heading lines */
  .ms-fit{line-height:.92!important;letter-spacing:-.01em}
  .ms-fit > span{display:block!important;white-space:nowrap!important;width:max-content;max-width:none}
  .ms-fit > span::after{content:none!important}
  .ms-fit > span,.ms-fit > span *{font-size:inherit!important;line-height:inherit!important;transition-property:opacity,transform,color!important}
  .ms-fit{transition-property:opacity,transform,color!important}

  /* shared type minimums */
  html body .ps4-eb,html body .rd-eb,html #pin-root .pin-slide > .card .num{font-size:12px!important;letter-spacing:.16em!important;line-height:1.3!important}
  html body .sol-more{font-size:13px!important;padding:12px 20px!important}

  /* ---------- hero: side by side, with air ---------- */
  html body .hero{padding:40px 0 48px!important;display:flex;align-items:center;background:var(--cream)}
  html body .hero .wrap{margin-left:var(--ms-pad)!important;margin-right:var(--ms-pad)!important}
  .hero .hero-g{
    display:grid!important;grid-template-columns:calc(var(--ms-hero-pwn) * 1px) minmax(0,1fr)!important;
    gap:20px!important;align-items:center!important;width:100%;
  }
  .hero .hero-g > .hero-stage{grid-column:1;grid-row:1;width:100%!important;min-width:0;margin:0!important;padding:0!important;display:flex;justify-content:center;align-items:center}
  .hero .hero-g > .hero-copy{grid-column:2;grid-row:1;min-width:0;text-align:left}
  .hero-stage .glow{width:240%!important}
  .hero-stage .dz-hero-phone,.hero-stage .dz-hero-phone-stage,.hero-stage .cov-stage,.hero-stage .hx-stage{width:100%!important;align-items:center!important}
  html .hero-stage .dz-hero-phone .phone{--pw:calc(var(--ms-hero-pwn) * 1px)!important;--u:calc(var(--ms-hero-pwn) / 268 * 1px)!important;width:calc(var(--ms-hero-pwn) * 1px)!important}
  html .hero-stage .dz-hero-phone .phone-screen,
  html .hero-stage .dz-hero-phone .screen.m{--s:calc(var(--ms-hero-pwn) / 268)!important}
  .hero-stage .dz-hero-phone .hx-steps,.hero-stage .illus{display:none!important}
  .hero .hero-copy .hw{container-type:inline-size;width:100%}
  html .hero .h.fit{font-size:clamp(24px,8vw,40px)}
  .hero .hero-sub{font-size:15px!important;line-height:1.45!important;margin-top:20px!important;max-width:none!important}
  .hero .btns{margin-top:28px!important}
  .hero .apply-open{width:auto!important;padding:13px 20px!important;font-size:15px!important;white-space:nowrap!important}
  .hero .apply-open::after{content:' \2192'}

  /* ---------- stacked phone sections: phone on top, text below ---------- */
  html body #people.ps4 .ps4-g,
  html body #pin-root.is-on #people.ps4 .ps4-g,
  html body #fan-chat.ps4 .ps4-g,
  html body #pin-root.is-on #fan-chat.ps4 .ps4-g{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:40px!important;
  }
  html body #people.ps4 .ps4-vis,html body #fan-chat.ps4 .ps4-vis{order:-1;width:100%!important;display:flex!important;justify-content:center!important}
  html body #people.ps4 .ps4-copy,html body #fan-chat.ps4 .ps4-copy{text-align:left;min-width:0}
  /* Fan Chat (mobile): label, headline, subtext and pills first, phone below */
  html body #fan-chat.ps4 .ps4-copy,html body #pin-root.is-on #fan-chat.ps4 .ps4-copy{order:1!important}
  html body #fan-chat.ps4 .ps4-vis,html body #pin-root.is-on #fan-chat.ps4 .ps4-vis{order:2!important}
  html body #pin-root .pin-slide #people.ps4 .ps4-vis .phone.phone,
  html body #pin-root .pin-slide #fan-chat.ps4 .ps4-vis .phone.phone,
  html body #people.ps4 .ps4-vis .phone.phone,
  html body #fan-chat.ps4 .ps4-vis .phone.phone{--pwn:var(--ms-pwn)!important}
  html body #people.ps4 .ps4-eb,html body #fan-chat.ps4 .ps4-eb,html body #complete-platform .ps4-eb{margin-bottom:16px!important}
  html body #people.ps4 .ps4-body,html body #fan-chat.ps4 .ps4-body,html body #complete-platform .ps4-body{font-size:15px!important;line-height:1.5!important;margin-top:20px!important;max-width:34ch!important}
  html body #fan-chat.ps4 .ps4-body + .ps4-body{margin-top:14px!important}
  html.rd13 body #people.ps4 .ps4-switch,
  html body #people.ps4 .ps4-switch,
  html body #fan-chat.ps4 .ps4-switch{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:10px!important;margin-top:28px!important;max-width:none!important}
  html.rd13 body #people.ps4 .ps4-switch-btn,
  html body #fan-chat.ps4 .ps4-switch-btn{flex:0 0 auto!important;width:auto!important;font-size:13px!important;padding:10px 16px!important;white-space:nowrap!important}
  html body #fan-chat.ps4 .sol-more{margin-top:28px!important}

  /* product cards 01-04 */
  html body #pin-root.is-on .pin-slide > .card{
    display:flex!important;flex-direction:column!important;gap:0!important;
    padding-left:var(--ms-pad)!important;padding-right:var(--ms-pad)!important;
  }
  html body #pin-root.is-on .pin-slide > .card .pin-card-visual{order:-1!important;width:100%!important;margin:0 0 40px!important;display:flex!important;justify-content:center!important}
  html body #pin-root.is-on .pin-slide > .card .pin-card-copy{display:block!important;min-width:0}
  html body #pin-root .pin-slide > .card .sol-ph{margin:0!important;width:100%!important;min-height:0!important;justify-content:center!important}
  html body #pin-root .pin-slide > .card .sol-ph .phone.phone{--pwn:var(--ms-pwn)!important}
  html body #pin-root.is-on .pin-slide > .card .ct{font-size:28px!important;line-height:1.1!important;margin-top:14px!important}
  html body #pin-root.is-on .pin-slide > .card .cp{font-size:15px!important;line-height:1.5!important;max-width:34ch!important;margin-top:16px!important}
  html body #pin-root.is-on .pin-slide > .card .sol-more{margin:28px 0 0!important;align-self:flex-start}

  /* ---------- growth engine: clean swipe ---------- */
  html body #growth-engine .ge-wrap{padding-block:0!important;width:100%!important;max-width:none!important;margin:0!important;padding-inline:0!important}
  html body #growth-engine.sec,html body #pin-root .pin-slide > #growth-engine.sec{padding-left:var(--ms-pad)!important;padding-right:var(--ms-pad)!important}
  html body #growth-engine .rd-ge-sub{font-size:15px!important;margin-top:16px!important}
  html body #growth-engine .rd-ge-flow{
    display:flex!important;flex-direction:row!important;gap:14px!important;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
    margin:32px calc(-1 * var(--ms-pad)) 0!important;padding:0 var(--ms-pad)!important;scroll-padding-inline:var(--ms-pad);
  }
  html body #growth-engine .rd-ge-flow::-webkit-scrollbar{display:none}
  html body #growth-engine .rd-ge-arrow{display:none!important}
  html body #growth-engine .rd-ge-flow .rd-ge-card{flex:0 0 84%!important;scroll-snap-align:start;min-height:0!important;padding:22px 20px 0!important}
  html body #growth-engine .rd-ge-num{font-size:12px!important;letter-spacing:.14em!important}
  html body #growth-engine .rd-ge-t{font-size:21px!important;line-height:1.2!important;margin-top:10px!important}
  html body #growth-engine .rd-ge-p{font-size:15px!important;line-height:1.5!important;margin-top:10px!important}
  html body #growth-engine .rd-ge-ph{height:250px!important;margin-top:20px!important}
  html body #growth-engine .rd-ge-flow .rd-ge-card .rd-ge-ph .phone.phone{--pwn:var(--ms-ge-pwn)!important;--pw:calc(var(--ms-ge-pwn) * 1px)!important;width:calc(var(--ms-ge-pwn) * 1px)!important}
  html body #growth-engine .ms-dots{display:flex;justify-content:center;gap:8px;margin-top:20px}
  html body #growth-engine .ms-dots i{width:7px;height:7px;border-radius:50%;background:rgba(245,242,223,.3);transition:background .2s,width .2s}
  html body #growth-engine .ms-dots i.on{background:var(--accent,#fb350d);width:18px;border-radius:4px}
  html body #growth-engine .rd-ge-band{margin-top:28px!important;padding:18px 20px!important}
  html body #growth-engine .rd-ge-band p{font-size:15px!important;line-height:1.4!important}

  /* ---------- complete platform: allowed to be taller ---------- */
  html body #complete-platform.ps4 .ps4-g{display:flex!important;flex-direction:column!important;gap:36px!important}
  html body #complete-platform .cp-cats{margin-top:28px!important;gap:6px 16px!important}
  html body #complete-platform .cp-cat{padding:10px 0 10px 14px!important;font-size:16px!important}
  html body #complete-platform .cp-card{padding:20px 20px 8px!important}
  html body #complete-platform .cp-k{font-size:12px!important;margin-bottom:8px!important}
  html body #complete-platform .cp-row{padding:16px 0!important;gap:14px!important}
  html body #complete-platform .cp-row b{font-size:16px!important}
  html body #complete-platform .cp-row small{font-size:14px!important;margin-top:4px!important;line-height:1.4!important}

  /* ---------- proof / Fan Zone: fewer pieces ---------- */
  html.rd13 body #proof.sec,
  html.rd13 body #pin-root.is-on #proof.sec{padding-top:var(--ms-vpad)!important;padding-bottom:var(--ms-vpad)!important}
  html.rd13 body #proof .pf-head .h{margin-bottom:32px!important;text-align:left!important}
  html.rd13 body #proof .pf-dates,html.rd13 body #proof .pf-date{display:none!important}
  html.rd13 body #proof .pf-visual{margin-bottom:16px!important}
  html.rd13 body #proof .pf-shot{height:220px!important;border-radius:18px!important}
  html.rd13 body #proof .pf-shot img,html body #proof .pf-visual .pf-shot img{height:100%!important;max-height:none!important;width:100%!important;object-fit:cover!important}
  html.rd13 body #proof .pf-copy{gap:14px!important}
  html.rd13 body #proof .rd-fz{padding:18px 20px!important}
  html.rd13 body #proof .rd-fz .pf-banner{width:min(100%,300px)!important}
  html.rd13 body #proof .pf-stats li,
  html.rd13 body #pin-root.is-on #proof .pf-stats li,
  html.rd13 body #pin-root.is-on #proof .pf-stats.deck-stats li{padding:18px 14px!important;gap:8px!important}
  html.rd13 body #proof .pf-stats b,
  html.rd13 body #pin-root.is-on #proof .pf-stats li b,
  html.rd13 body #pin-root.is-on #proof .pf-stats.deck-stats li b{font-size:40px!important}
  html.rd13 body #proof .pf-stats span,
  html.rd13 body #pin-root.is-on #proof .pf-stats li span{font-size:12px!important}
  html.rd13 body #proof .rd-fz-meta{font-size:15px!important;line-height:1.5!important;margin-top:12px!important}
  html.rd13 body #proof .rd-press-eb{font-size:12px!important;margin-top:48px!important}
  html.rd13 body #proof .pf-logos{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:28px 28px!important;align-items:center!important;margin:24px var(--ms-pad) 0!important}
  html.rd13 body #proof .pf-logos img,html.rd13 body #proof .pf-logos img.rd-ktla{height:24px!important;max-width:100%!important;width:auto!important}

  /* ---------- closing: big heading, full width, phone below ---------- */
  html body #get-started .cl-g,
  html body #pin-root.is-on #get-started .cl-g{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:48px!important}
  html body #get-started.sec,html body #pin-root.is-on #get-started.sec{padding-left:0!important;padding-right:0!important}
  html body #get-started .lead{font-size:16px!important;line-height:1.5!important;margin-top:20px!important;max-width:34ch!important}
  html body #get-started .lead + .lead{margin-top:12px!important}
  html body #get-started .btns{margin-top:32px!important}
  html body #get-started .apply-open{width:auto!important;padding:14px 22px!important;font-size:15px!important;white-space:nowrap!important}
  html body #get-started .closing-cycle.closing-cycle,
  html body #pin-root.is-on #get-started .closing-cycle.closing-cycle{display:flex!important;justify-content:center;align-items:center;width:100%;height:auto}
  html body #get-started .cl-ph.cl-ph,
  html body #pin-root.is-on #get-started .cl-ph.cl-ph{display:flex!important;justify-content:center;width:100%}
  html body #get-started .cl-ph::before{width:160%!important}
  html body #pin-root .pin-slide #get-started .cl-ph .phone.phone,
  html body #get-started .cl-ph .phone.phone{--pwn:var(--ms-pwn)!important}

  /* belief + product heading: more air */
  html body #belief .bl-statement p.lead + p.lead{margin-top:28px!important}
}
@media (max-width:380px){:root{--ms-pad:22px;--ms-hero-pwn:140;--ms-pwn:200;--ms-ge-pwn:190;--ms-vpad:56px}}
@media (min-width:415px) and (max-width:600px){:root{--ms-hero-pwn:164;--ms-pwn:220}}
@media (min-width:480px) and (max-width:600px){:root{--ms-hero-pwn:190;--ms-pwn:230;--ms-pad:32px}}

/* v3: every phone keeps the real iPhone frame proportion (70.6 x 146.6, about 9:19.5),
   with width driving height so bezel, radius and island scale together. */
@media (max-width:600px){
  html body .hero-stage .phone.phone,
  html body #pin-root .phone.phone,
  html body #people .phone.phone,
  html body #fan-chat .phone.phone,
  html body #get-started .phone.phone{aspect-ratio:70.6/146.6!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:none!important;flex:none!important}
  html body #people .people-cycle .phone.phone,
  html body #pin-root .pin-slide > .card .sol-ph .phone.phone,
  html body #fan-chat.ps4 .ps4-vis .phone.phone,
  html body #get-started .cl-ph .phone.phone{--pwn:var(--ms-pwn)!important;--pw:calc(var(--ms-pwn) * 1px)!important;--u:calc(var(--ms-pwn) / 268 * 1px)!important;width:calc(var(--ms-pwn) * 1px)!important;margin-inline:auto!important}
}

/* v4: hero Apply form opens downward. The button row keeps its closed height,
   and the expanding form overlays the space below it, so the headline, subtext
   and phone never move when it opens. */
@media (max-width:600px){
  html body .hero .hero-copy .btns{position:relative!important;height:47px!important;min-height:0!important}
  html body .hero .hero-copy .btns > .apply-box{position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:6!important;margin:0!important}
  html body .hero .hero-copy .apply-open{box-sizing:border-box!important;height:47px!important}
  html body .hero .hero-copy .apply-row{gap:8px!important}
  html body .hero .hero-copy .apply-phone{height:42px!important;box-sizing:border-box!important}
  html body .hero .hero-copy .apply-submit{height:40px!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;box-sizing:border-box!important}
  html body .hero .hero-copy .apply-consent{margin-top:10px!important;line-height:1.35!important}
  html body .hero .hero-copy .apply-form,html body .hero .hero-copy .apply-slot{scroll-margin-top:calc(var(--navh,60px) + 16px)}
}
/* Short phones (667pt class): sit the hero a little higher in both states so the open form clears the fold. */
@media (max-width:600px) and (max-height:700px){
  html body .hero{padding-bottom:88px!important}
}

/* Mobile: no section-2 belief statement (Eddie, Nov 17). Desktop keeps it. */
@media (max-width:600px){
  html body #pin-root .pin-slide[data-slide="belief"],
  html body #belief{display:none!important}
}

/* Mobile Growth Engine: one left edge (site gutter) for heading, subtext,
   cards, dots and the Real people band; card and band text share 20px inset. */
@media (max-width:600px){
  html body #growth-engine .ge-wrap.ge-wrap,
  html body #pin-root .pin-slide > #growth-engine .ge-wrap.ge-wrap{margin:0!important;padding-inline:0!important;width:100%!important;max-width:none!important}
  html body #growth-engine .rd-ge-flow .rd-ge-card{text-align:left!important}
  html body #growth-engine .ms-dots{justify-content:flex-start!important}
  html body #growth-engine .rd-ge-band,
  html body #growth-engine .rd-ge-band p{text-align:left!important;justify-content:flex-start!important}
  html body #growth-engine .rd-ge-band{padding:18px 20px!important;margin-left:0!important;margin-right:0!important;width:auto!important}
}

/* PREVIEW: product steps 01-04 side by side like the hero (phone left ~40%, copy right). */
@media (max-width:600px){
  :root{--ms-step-pwn:150}
  html body #pin-root.is-on .pin-slide > .card.sol{
    display:grid!important;grid-template-columns:calc(var(--ms-step-pwn) * 1px) minmax(0,1fr)!important;
    column-gap:20px!important;row-gap:0!important;align-items:center!important;align-content:center!important;
    min-height:var(--ms-h)!important;padding-top:32px!important;padding-bottom:32px!important;
  }
  html body #pin-root.is-on .pin-slide > .card.sol .pin-card-visual{grid-column:1!important;grid-row:1!important;order:0!important;width:100%!important;margin:0!important;display:flex!important;justify-content:center!important;align-items:center!important}
  html body #pin-root.is-on .pin-slide > .card.sol .pin-card-copy{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;text-align:left!important;min-width:0}
  html body #pin-root .pin-slide > .card.sol .sol-ph .phone.phone{--pwn:var(--ms-step-pwn)!important;--pw:calc(var(--ms-step-pwn) * 1px)!important;width:calc(var(--ms-step-pwn) * 1px)!important}
  html body #pin-root.is-on .pin-slide > .card.sol .num{font-size:11px!important;letter-spacing:.14em!important}
  html body #pin-root.is-on .pin-slide > .card.sol .ct{font-size:22px!important;line-height:1.15!important;margin-top:12px!important}
  html body #pin-root.is-on .pin-slide > .card.sol .cp{font-size:15px!important;line-height:1.45!important;max-width:none!important;margin-top:12px!important}
  html body #pin-root.is-on .pin-slide > .card.sol .sol-more{margin:20px 0 0!important;align-self:flex-start!important;font-size:13px!important;padding:11px 16px!important;white-space:nowrap!important}
}
@media (max-width:380px){
  :root{--ms-step-pwn:138}
  html body #pin-root.is-on .pin-slide > .card.sol{column-gap:16px!important}
  html body #pin-root.is-on .pin-slide > .card.sol .ct{font-size:20px!important}
  html body #pin-root.is-on .pin-slide > .card.sol .cp{font-size:14px!important}
}

/* Mobile: shorter 03 GROW step body (Eddie, Nov 17). Desktop keeps the full line. */
@media (max-width:600px){ html body .ms-desk-only{display:none!important} }

/* Growth Engine 02 title breaks "Insights and / Projections." on mobile only. */
html body br.ms-mob-only{display:none}
@media (max-width:600px){ html body br.ms-mob-only{display:inline} html body .ms-mob-sp{display:none} }

/* Mobile: REAL PEOPLE pills on one row, slightly smaller (Eddie, Nov 17). */
@media (max-width:600px){
  html.rd13 body #people.ps4 .ps4-switch,
  html body #people.ps4 .ps4-switch{flex-wrap:nowrap!important;gap:6px!important}
  html.rd13 body #people.ps4 .ps4-switch-btn,
  html body #people.ps4 .ps4-switch-btn{font-size:12px!important;padding:8px 12px!important;white-space:nowrap!important;flex:0 0 auto!important}
}
@media (max-width:360px){
  html.rd13 body #people.ps4 .ps4-switch-btn,
  html body #people.ps4 .ps4-switch-btn{font-size:11px!important;padding:7px 10px!important}
}
/* Mobile: closing section ends at the Apply button, no phone above the footer. */
@media (max-width:600px){
  html body #get-started .closing-cycle.closing-cycle,
  html body #pin-root.is-on #get-started .closing-cycle.closing-cycle,
  html body #pin-root .pin-slide #get-started .closing-cycle{display:none!important}
}
@media (max-width:600px){
  html body #get-started.sec,
  html body #pin-root.is-on #get-started.sec,
  html body #pin-root .pin-slide > #get-started.sec{min-height:0!important;height:auto!important;padding-bottom:72px!important}
  html body #pin-root .pin-slide[data-slide="get-started"]{min-height:0!important;height:auto!important}
}

/* Mobile: every phone mockup keeps true iPhone proportions on every browser.
   - Step phones (01-04) use their own scale unit, so the bezel, Dynamic Island
     and screen content match the drawn size instead of the larger 210px phone.
   - Height is set explicitly from the width (70.6 x 146.6) so the frame never
     depends on aspect-ratio support. */
@media (max-width:600px){
  html body #pin-root .pin-slide > .card.sol .sol-ph .phone.phone{--u:calc(var(--ms-step-pwn) / 268 * 1px)!important;height:calc(var(--ms-step-pwn) * 146.6 / 70.6 * 1px)!important}
  html body .hero-stage .dz-hero-phone .phone.phone{height:calc(var(--ms-hero-pwn) * 146.6 / 70.6 * 1px)!important}
  html body #people .people-cycle .phone.phone,
  html body #fan-chat.ps4 .ps4-vis .phone.phone,
  html body #get-started .cl-ph .phone.phone{height:calc(var(--ms-pwn) * 146.6 / 70.6 * 1px)!important}
  html body #growth-engine .rd-ge-flow .rd-ge-card .rd-ge-ph .phone.phone{--u:calc(var(--ms-ge-pwn) / 268 * 1px)!important;height:calc(var(--ms-ge-pwn) * 146.6 / 70.6 * 1px)!important}
}

/* All sizes: the dark iOS screen (01 Launch, Growth Engine card 1) shows the dizee
   logo white like every other dark phone screen (same filter they use). */
html body .imd.m-ios .m-logo,html body .imd.m-ios svg.m-logo{color:#f5f2df!important;fill:#f5f2df!important;filter:brightness(0) invert(1)!important}
