/* Product pages for the in-development tools (Handoff, Scene Lock, Set Control, Sound Driver).
   Loads after ss-page.css and reuses its whole system (hero, film, workflow, split, spec sheet,
   FAQ, tools grid, MacBook frame, phone frame). This file only adds what those pages need that
   Stock Shredder doesn't have: the "Be first to know" form in place of downloads/pricing, and
   one-screen feature sections with a framed screenshot. */

/* ---- hero: room for the notify form under the screenshot ---- */
.pp .hero { --hero-text: clamp(420px, 48vh, 500px); }
.pp .hero .badge { margin-top: 14px; }
@media (min-width: 900px) and (min-height: 600px) {
  .pp main > section.hero { --hero-text: clamp(520px, 56vh, 600px); }
}

/* ---- notify form (same Worker + script as the old in-development pages) ---- */
.pp-notify { margin-top: clamp(22px, 3.2vh, 36px); }
.pp-notify .notify-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 0 auto; }
.pp-notify .notify-input { flex: 1 1 180px; min-width: 0; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 16px/1.4 var(--sans); }
.pp-notify .notify-input::placeholder { color: var(--ink-3); }
.pp-notify .notify-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pp-notify .notify-name { flex: 0 1 170px; }
.pp-notify .notify-submit { flex: 0 0 auto; min-height: 46px; border-radius: 999px; }
.pp-notify .notify-submit:disabled { opacity: .5; cursor: not-allowed; }
.pp-notify .notify-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pp-notify .notify-status { flex-basis: 100%; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.pp-notify .notify-status-bad { color: #B3261E; }
.pp-notify .notify-status-good { color: var(--green); }
.tone-dark .pp-notify .notify-status-good { color: #8FD687; }
.tone-dark .pp-notify .notify-status-bad { color: #F08A80; }
.pp-notify-note { margin-top: 14px; color: var(--ink-3) !important; }
@media (max-width: 560px) {
  .pp-notify .notify-name, .pp-notify .notify-input { flex: 1 1 100%; }
  .pp-notify .notify-submit { flex: 1 1 100%; }
}

/* ---- film band from a still photo (tools without a film yet) ---- */
img.film-video { filter: grayscale(.15) contrast(1.04); }

/* ---- feature sections: number, headline, one line, then the real screen ---- */
.feat .feat-num { margin-bottom: 14px; }
.feat .section-sub { max-width: 54ch; margin-left: auto; margin-right: auto; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--ink-2); }
.feat-shot { width: min(100%, 1040px); margin: clamp(28px, 4vh, 44px) auto 0; }
.feat-shot.is-flat img { width: 100%; border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 30px 60px -24px rgba(20,20,18,.45), 0 12px 24px -12px rgba(20,20,18,.3); }
.feat-shot.is-small { width: min(100%, 720px); }
.tone-dark .feat-shot.is-flat img { box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); }
@media (min-width: 900px) and (min-height: 600px) {
  .feat-shot { width: min(100%, 1040px, calc((100svh - var(--sh-h) - 15vh - 230px) * 1.55)); }
  .feat-shot.is-small { width: min(100%, 720px, calc((100svh - var(--sh-h) - 15vh - 230px) * 1.2)); }
}

/* two screens side by side (e.g. SAFE / FAILED) */
.feat-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); width: min(100%, 1200px); margin: clamp(28px, 4vh, 44px) auto 0; }
.feat-duo img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(20,20,18,.45); }
.feat-duo figcaption { margin-top: 12px; }
@media (min-width: 900px) and (min-height: 600px) {
  .feat-duo { width: min(100%, 1200px, calc((100svh - var(--sh-h) - 15vh - 240px) * 3.2)); }
}
@media (max-width: 719px) { .feat-duo { grid-template-columns: 1fr; } }

/* phone screenshot (static image inside ss-page.css's phone frame) */
.phone-body .phone-shot { display: block; width: 100%; border-radius: 38px; padding-top: 36px; background: #0a0a09; }

/* final call to action */
.pp-cta .section-title { margin-bottom: 6px; }
.pp-cta .pp-notify { margin-top: 26px; }

/* ---- six features (same grid as the Loadout page) ---- */
.pp-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; margin: 12px auto 0; border-top: 1px solid var(--line-2); text-align: left; }
.pp-feat-grid li { padding: 30px clamp(18px, 2.4vw, 34px) 34px; border-bottom: 1px solid var(--line-2); }
.pp-feat-grid li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line-2); }
.pp-feat-n { display: block; font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.pp-feat-h { margin-top: 14px; font: 600 clamp(19px, 1.5vw, 22px)/1.2 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.pp-feat-grid p { margin-top: 10px; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pp-plat { grid-template-columns: repeat(var(--plat-n, 3), minmax(0, 260px)) !important; }
@media (max-width: 767px) {
  .pp-feat-grid { grid-template-columns: 1fr; }
  .pp-feat-grid li:not(:nth-child(3n + 1)) { border-left: 0; }
  .pp-plat { grid-template-columns: 1fr !important; }
}

/* hero still (tools without screens yet) and a wide crop of a tall photo */
/* same box as Stock Shredder's hero strip (.strip in ss-page.css with SS's --hero-text, 2.39:1 from ss-hero.css) */
.shot-hero.pp-hero-flat { width: min(100%, 1120px, calc((100vh - clamp(470px, 50vh, 560px)) * 2.3)); width: min(100%, 1120px, calc((100svh - clamp(470px, 50vh, 560px)) * 2.3)); margin: clamp(22px, 3.4vh, 40px) auto 0; }
.pp-hero-flat img { display: block; width: 100%; height: auto; aspect-ratio: 2.39 / 1; object-fit: cover; object-position: 50% 50%; border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(20,20,18,.45); }
@media (max-width: 719px) { .shot-hero.pp-hero-flat { width: 100%; } }
.feat-shot.is-crop img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }

/* Handoff's mark is nearly square, so it reads small at the shared logo height */
[data-product="handoff"] .hero-logo { height: clamp(64px, 9.6vh, 96px); }

/* two phones in one image (iPhone + Android side by side) */
.feat-shot.is-phones { width: min(100%, 640px); }
.feat-shot.is-phones img { border-radius: 18px; }
@media (min-width: 900px) and (min-height: 600px) {
  .feat-shot.is-phones { width: min(100%, 640px, calc((100svh - var(--sh-h) - 15vh - 230px) * 0.92)); }
}

/* Sound Driver: the artists and the work they've delivered sound for. Dark band because the
   client marks are bone-on-transparent, made for a dark ground. */
main > section.credits { min-height: 0 !important; padding-top: clamp(56px, 8vh, 88px) !important; padding-bottom: clamp(56px, 8vh, 88px) !important; }
.credits .artist-avatars { display: flex; justify-content: center; margin-bottom: 18px; }
.credits .avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); background: #000; }
.credits .artist-avatars { gap: 12px; }
/* The source portraits are circles on a white square, not centered -- zoom each in on its own
   circle so no white shows at the edge. */
.credits .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.credits .avatar img[src*="artist-01.png"] { transform-origin: 50% 38%; transform: scale(1.35); }
.credits .avatar img[src*="artist-02.png"] { transform-origin: 49% 50.7%; transform: scale(1.36); }
.client-logo-grid { --cg: clamp(24px, 4vw, 56px); --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 3.5vw, 48px) var(--cg); max-width: 1100px; margin: clamp(28px, 4vh, 44px) auto 0; padding: 0; list-style: none; }
.client-logo-grid li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--cg)) / var(--cols)); display: flex; justify-content: center; }
.client-logo-grid img { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; opacity: .7; transition: opacity .18s ease; }
.client-logo-grid img:hover { opacity: 1; }
/* Round/badge marks carry less ink than a wordmark of the same height, so they get a bit more. */
.client-logo-grid img[src$="bmw.png"], .client-logo-grid img[src$="spitfire-audio.png"] { height: 44px; }
.client-logo-grid img[src$="nfl.png"], .client-logo-grid img[src$="paramount.png"] { height: 50px; }
.client-logo-grid img[src$="alfa-romeo.png"], .client-logo-grid img[src$="john-deere.png"], .client-logo-grid img[src$="nhl.png"] { height: 44px; }
.client-logo-grid img[src$="nba.png"] { height: 50px; }
/* heavy solid wordmarks read bigger than the rest at the same height */
.client-logo-grid img[src$="hulu.png"], .client-logo-grid img[src$="kia.png"] { height: 24px; }
.client-logo-grid img[src$="new-york-knicks.png"], .client-logo-grid img[src$="kansas-city-chiefs.png"], .client-logo-grid img[src$="mercedes-benz.png"], .client-logo-grid img[src$="warner-bros.png"], .client-logo-grid img[src$="history.png"], .client-logo-grid img[src$="jack-daniels.png"], .client-logo-grid img[src$="on-running.png"], .client-logo-grid img[src$="new-balance.png"], .client-logo-grid img[src$="corona.png"], .client-logo-grid img[src$="xyz-films.png"] { height: 44px; }
@media (max-width: 760px) {
  .client-logo-grid { --cols: 3; --cg: 20px; row-gap: 28px; }
  .client-logo-grid img { height: 24px; }
  .client-logo-grid img[src$="bmw.png"], .client-logo-grid img[src$="spitfire-audio.png"] { height: 36px; }
  .client-logo-grid img[src$="nfl.png"], .client-logo-grid img[src$="paramount.png"] { height: 40px; }
  .client-logo-grid img[src$="alfa-romeo.png"], .client-logo-grid img[src$="john-deere.png"], .client-logo-grid img[src$="nhl.png"] { height: 36px; }
  .client-logo-grid img[src$="nba.png"] { height: 40px; }
  .client-logo-grid img[src$="hulu.png"], .client-logo-grid img[src$="kia.png"] { height: 19px; }
  .client-logo-grid img[src$="new-york-knicks.png"], .client-logo-grid img[src$="kansas-city-chiefs.png"], .client-logo-grid img[src$="mercedes-benz.png"], .client-logo-grid img[src$="warner-bros.png"], .client-logo-grid img[src$="history.png"], .client-logo-grid img[src$="jack-daniels.png"], .client-logo-grid img[src$="on-running.png"], .client-logo-grid img[src$="new-balance.png"], .client-logo-grid img[src$="corona.png"], .client-logo-grid img[src$="xyz-films.png"] { height: 36px; }
}

/* app screens shown without a laptop frame: a hairline edge so dark screens hold their shape on dark sections */
.feat-shot.has-edge img, .shot.has-edge img { box-shadow: 0 0 0 1px rgba(20,20,18,.14), 0 30px 60px -24px rgba(20,20,18,.45), 0 12px 24px -12px rgba(20,20,18,.3); }
.tone-dark .feat-shot.is-flat.has-edge img { box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -24px rgba(0,0,0,.8); }

/* hero with no screenshot (app screens held back): center the title block in the first screen */
@media (min-width: 900px) and (min-height: 600px) {
  .pp main > section.hero.pp-hero-text { justify-content: center; padding-bottom: 8vh !important; }
}
.pp-hero-text h1 { font-size: clamp(44px, 6vw, 92px); }


/* Handoff pricing section */
.hf-pricing { padding: 72px 24px; max-width: 880px; margin: 0 auto; text-align: center; }
.hf-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 24px; }
.hf-plan { border: 1px solid currentColor; padding: 24px 20px; text-align: left; }
.hf-plan-k { margin: 0 0 8px; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.hf-plan-price { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
.hf-plan-price b { font-size: 48px; line-height: 1; }
.hf-plan-note { margin: 0; font-size: 14px; opacity: .8; }
.hf-terms { list-style: none; margin: 0 auto; padding: 0; max-width: 620px; text-align: left; display: grid; gap: 8px; font-size: 15px; }
.hf-pricing-status { margin: 28px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
@media (max-width: 620px) { .hf-plans { grid-template-columns: 1fr; } .hf-plan-price b { font-size: 40px; } }
