/* pym. for Mac: the landing page (/photo-book-app-for-mac and the other languages) and the "coming soon" block on the homepage.
   Loaded only on those pages (shell(mac=True)). Colours, radii and type come from base.css; the only dark object is the film itself. */

/* the promo film: a 16:9 card. The poster shows until mac.js starts the film (preload="none"). */
.mac-vid{position:relative;aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;background:var(--pym-navy);box-shadow:0 30px 60px -36px rgba(16,14,52,.45),0 0 0 1px var(--border)}
.mac-vid video,.mac-vid img{display:block;width:100%;height:100%;object-fit:cover}
.mac-toggle{position:absolute;right:16px;bottom:16px;z-index:3;width:44px;height:44px;border-radius:50%;background:rgba(16,14,52,.78);color:#fff;display:flex;align-items:center;justify-content:center}
.mac-toggle[hidden]{display:none}
.mac-toggle::before{content:"";width:12px;height:14px;border-left:4px solid #fff;border-right:4px solid #fff}
.mac-toggle.is-paused::before{border:0;border-left:13px solid #fff;border-top:8px solid transparent;border-bottom:8px solid transparent;width:0;height:0;margin-left:3px}
.mac-toggle:focus-visible{outline-color:#fff}

/* "Coming soon": a status tag, not a button (no coral fill, no hover) */
.mac-soon{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 18px;border-radius:var(--r-md);border:1.5px solid var(--border);background:var(--pym-white);font-size:15px;font-weight:500;line-height:1.3;color:var(--pym-navy)}
.mac-soon::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--pym-red)}
.mac-icon{display:block;width:72px;height:72px}

/* homepage block: copy left, film right, white like the hero above it */
.mac-home{padding:120px 0}
.mac-home-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,5vw,72px);align-items:center}
.mac-home-copy h2{margin-top:22px}
.mac-home-copy .lead{margin-top:16px;color:var(--muted-light);max-width:46ch}
.mac-act{display:flex;align-items:center;gap:20px 24px;flex-wrap:wrap;margin-top:28px}

/* Mac page hero: centred copy like the homepage hero, the film as the stage below it */
.mac-hero{padding-bottom:88px}
.mac-hero .hero-copy .lead{max-width:680px}
.mac-req{margin-top:18px;font-size:14px;color:var(--muted-light)}
.mac-stage{margin:44px auto 0;width:min(var(--container),calc(100% - 2*var(--gutter)))}

/* rows: words beside a still from the app */
.mac-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(36px,5vw,72px);align-items:center}
.mac-split.rev{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.mac-split.rev .mac-copy{order:2}
.mac-copy .lead{margin-top:18px;color:rgba(16,14,52,.72);max-width:52ch}
.mac-copy .points{margin-top:28px}
.mac-shot{margin:0;border-radius:var(--r-lg);overflow:hidden;background:var(--pym-dark-surface);box-shadow:0 30px 60px -36px rgba(16,14,52,.45)}
.mac-shot img{display:block;width:100%;height:auto}

/* final: icon above the line, the phone app as a quiet second door */
.final-inner .mac-icon{margin-bottom:4px}
.mac-phone{margin-top:6px;font-size:16px;color:rgba(16,14,52,.72);max-width:44ch}
.mac-phone .link{margin-left:6px;color:var(--pym-navy)}

@media (max-width:900px){
  .mac-home{padding:72px 0}
  .mac-home-grid,.mac-split,.mac-split.rev{grid-template-columns:1fr;gap:32px}
  .mac-split.rev .mac-copy{order:0}
  .mac-hero{padding-bottom:56px}
  .mac-stage{margin-top:28px}
  .mac-vid{border-radius:var(--r-md)}
}
@media (max-width:640px){
  .mac-icon{width:60px;height:60px}
  .mac-toggle{right:10px;bottom:10px}
}
