/* mockups.css - pure-CSS device frames (laptop, tablet, handheld) for Plant5+ product screenshots.
 *
 * No images, fonts or scripts: frames are borders, gradients and pseudo-elements around a plain <img>.
 * Colours follow Website/products.css (ink #20313f, muted #53636d, line #d9e5df, green #10734f,
 * orange #d77b19, page #f7faf9, mint #83e0b6). Light by default (the host pages are light-only); an explicit
 * [data-theme="dark"] on <html> switches the frames dark. Scales to phone width.
 * Published at Website/mockups.css; linked from index.html and the product pages that show a framed still or clip.
 *
 *   <figure class="p5-device p5-device--laptop">            (or --tablet, --tablet p5-device--portrait, --tablet p5-device--wide, --handheld)
 *     <div class="p5-device__screen"><img src="..." alt="..." width="2880" height="1800" loading="lazy"></div>
 *     <figcaption class="p5-device__caption">...</figcaption>
 *   </figure>
 *   <div class="p5-device-stack"> laptop figure + handheld figure </div>   (handheld overlaps the laptop)
 */

.p5-device {
  /* tokens */
  --p5d-ink: #20313f;
  --p5d-muted: #53636d;
  --p5d-line: #d9e5df;
  --p5d-green: #10734f;
  --p5d-accent: #d77b19;
  --p5d-screen-bg: #ffffff;
  --p5d-bezel: #1b2228;
  --p5d-bezel-edge: #2e3942;
  --p5d-metal-1: #e3e8ea;
  --p5d-metal-2: #c4ccd0;
  --p5d-metal-edge: #aab4b9;
  --p5d-rugged: #2b3a33;
  --p5d-rugged-edge: #3d5047;
  --p5d-shadow: 0 24px 48px -18px rgba(32, 49, 63, .35), 0 8px 18px -10px rgba(32, 49, 63, .25);

  box-sizing: border-box;
  margin: 24px auto 40px;
  padding: 0;
  max-width: 100%;
  color: var(--p5d-ink);
}
.p5-device *, .p5-device *::before, .p5-device *::after { box-sizing: border-box; }

/* Dark frames are opt-in only ([data-theme="dark"] on <html>). The host pages (index.html, products.css) are
   light-only, so following prefers-color-scheme here would put light-grey captions on a white page. */
:root[data-theme="dark"] .p5-device {
  --p5d-ink: #e6eef2;
  --p5d-muted: #a9b8c1;
  --p5d-line: #2c3a44;
  --p5d-screen-bg: #0f171d;
  --p5d-bezel: #0b1014;
  --p5d-bezel-edge: #26323b;
  --p5d-metal-1: #4a555c;
  --p5d-metal-2: #343d43;
  --p5d-metal-edge: #5d6a72;
  --p5d-rugged: #1f2b25;
  --p5d-rugged-edge: #34463d;
  --p5d-shadow: 0 24px 48px -18px rgba(0, 0, 0, .7), 0 8px 18px -10px rgba(0, 0, 0, .6);
}

/* the glass: every frame crops its screenshot to the frame's aspect ratio, anchored top-left.
   No overflow:hidden here - the camera, scan window and home key sit on the bezel outside the glass. */
.p5-device__screen {
  position: relative;
  background: var(--p5d-screen-bg);
}
.p5-device__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 3px;
}

.p5-device__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--p5d-muted);
}

/* ---- laptop: dark bezel with camera, aluminium base with a thumb notch ---------------------------------- */
.p5-device--laptop { width: 920px; display: flex; flex-direction: column; }
.p5-device--laptop::after { order: 1; }                  /* base under the screen, caption under the base */
.p5-device--laptop .p5-device__caption { order: 2; }
.p5-device--laptop .p5-device__screen {
  aspect-ratio: 16 / 10;
  border: 14px solid var(--p5d-bezel);
  border-top-width: 22px;
  border-bottom-width: 18px;
  border-radius: 16px 16px 4px 4px;
  box-shadow: 0 0 0 1px var(--p5d-bezel-edge), var(--p5d-shadow);
  margin: 0 5.5%;
}
.p5-device--laptop .p5-device__screen::before {          /* camera */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #34424c;
  box-shadow: 0 0 0 2px #0e1418;
  z-index: 1;
}
.p5-device--laptop::after {                              /* base */
  content: "";
  display: block;
  height: 16px;
  margin: 0 0 0;
  border-radius: 2px 2px 14px 14px;
  background:
    radial-gradient(60px 7px at 50% 0, var(--p5d-metal-edge) 0 48%, transparent 52%),
    linear-gradient(180deg, var(--p5d-metal-1), var(--p5d-metal-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 18px -10px rgba(32, 49, 63, .45);
}
.p5-device--laptop .p5-device__caption { margin-top: 18px; }

/* ---- tablet: even bezel, rounded, landscape by default --------------------------------------------------- */
.p5-device--tablet { width: 760px; }
.p5-device--tablet .p5-device__screen {
  aspect-ratio: 1180 / 820;
  border: 22px solid var(--p5d-bezel);
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px var(--p5d-bezel-edge), 0 0 0 1px var(--p5d-bezel-edge), var(--p5d-shadow);
}
.p5-device--tablet .p5-device__screen::before {          /* camera on the long edge */
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #34424c;
  z-index: 1;
}
.p5-device--tablet.p5-device--portrait { width: 520px; }
.p5-device--tablet.p5-device--portrait .p5-device__screen { aspect-ratio: 820 / 1180; }
.p5-device--tablet.p5-device--portrait .p5-device__screen::before { top: -14px; left: 50%; margin: 0 0 0 -3px; }

/* ---- handheld: rugged scanner, thick bezel, side trigger keys, scan window -------------------------------- */
.p5-device--handheld { width: 300px; position: relative; }
.p5-device--handheld .p5-device__screen {
  aspect-ratio: 400 / 764;
  border: 14px solid var(--p5d-bezel);
  border-top-width: 34px;
  border-bottom-width: 52px;
  border-radius: 34px;
  box-shadow:
    0 0 0 6px var(--p5d-rugged),
    0 0 0 7px var(--p5d-rugged-edge),
    var(--p5d-shadow);
}
.p5-device--handheld .p5-device__screen::before {        /* scan window */
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 64px;
  height: 10px;
  margin-left: -32px;
  border-radius: 5px;
  background: linear-gradient(180deg, #5a1d14, #a8321f);
  opacity: .85;
  z-index: 1;
}
.p5-device--handheld .p5-device__screen::after {         /* home key */
  content: "";
  position: absolute;
  bottom: -36px;
  left: 50%;
  width: 54px;
  height: 18px;
  margin-left: -27px;
  border-radius: 9px;
  background: var(--p5d-bezel-edge);
  z-index: 1;
}
.p5-device--handheld::before,
.p5-device--handheld::after {                            /* side trigger keys */
  content: "";
  position: absolute;
  top: 34%;
  width: 6px;
  height: 64px;
  border-radius: 3px;
  background: var(--p5d-accent);
  opacity: .9;
}
.p5-device--handheld::before { left: -11px; }
.p5-device--handheld::after { right: -11px; }

/* ---- composition: laptop with a handheld overlapping its lower right ------------------------------------- */
.p5-device-stack {
  position: relative;
  max-width: 1000px;
  margin: 24px auto 48px;
  padding-bottom: 40px;
}
.p5-device-stack > .p5-device--laptop { margin: 0; }
.p5-device-stack > .p5-device--handheld {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  min-width: 170px;
  margin: 0;
}
.p5-device-stack > .p5-device--handheld .p5-device__caption { display: none; }

/* ---- responsive --------------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .p5-device--laptop { width: 100%; }
  .p5-device--tablet { width: 100%; max-width: 640px; }
  .p5-device--laptop .p5-device__screen { border-width: 18px 11px 14px; }
}
@media (max-width: 760px) {
  .p5-device { margin: 16px auto 28px; }
  .p5-device--laptop .p5-device__screen { border-width: 12px 7px 9px; border-radius: 10px 10px 3px 3px; margin: 0 4%; }
  .p5-device--laptop .p5-device__screen::before { top: -8px; width: 4px; height: 4px; margin-left: -2px; }
  .p5-device--laptop::after { height: 10px; border-radius: 2px 2px 10px 10px; }
  .p5-device--tablet .p5-device__screen { border-width: 13px; border-radius: 20px; }
  .p5-device--tablet .p5-device__screen::before { left: -9px; width: 4px; height: 4px; margin-top: -2px; }
  .p5-device--tablet.p5-device--portrait { width: 100%; max-width: 360px; }
  .p5-device--handheld { width: 64%; max-width: 240px; }
  .p5-device--handheld .p5-device__screen { border-width: 26px 10px 40px; border-radius: 26px; }
  .p5-device--handheld .p5-device__screen::before { top: -18px; }
  .p5-device--handheld .p5-device__screen::after { bottom: -28px; }
  .p5-device-stack { padding-bottom: 0; }
  .p5-device-stack > .p5-device--handheld { position: relative; right: auto; bottom: auto; width: 64%; max-width: 240px; margin: 24px auto 0; }
  .p5-device-stack > .p5-device--handheld .p5-device__caption { display: block; }
  .p5-device__caption { font-size: 13px; }
}

/* ---- additions for the published site (2026-10-25) ----------------------------------------------------- */

/* tablet showing a 16:10 capture (e.g. the 1280x800 Terminal): keeps the whole screen instead of cropping
   its right edge to the default 1180/820 glass */
.p5-device--tablet.p5-device--wide .p5-device__screen { aspect-ratio: 16 / 10; }

/* a hero frame on a product page: sits where .product-image used to, caption left-aligned like it */
.p5-hero-device { margin: 8px auto 48px; }
.p5-hero-device .p5-device__caption { text-align: left; }

/* index.html #screens "What's new": a laptop+handheld stack, then a row of two frames */
.p5-new { margin-top: 56px; }
.p5-new-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
.p5-new-grid > .p5-device { width: 100%; margin: 0; }
.p5-new-grid > .p5-device--handheld { width: 260px; max-width: 100%; margin: 0 auto; }
.p5-new-note {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #53636d;
  max-width: 720px;
  margin: 0 auto 8px;
}

/* a clip on a product page: plain 16:9 video, no frame (the clips are full-screen recordings) */
.p5-clip { margin: 8px 0 48px; max-width: 920px; }
.p5-clip h2 { margin: 0 0 8px; }
.p5-clip > p { color: #53636d; margin: 0 0 16px; }
.p5-clip figure { margin: 0; }
.p5-clip figure.p5-device { margin: 8px 0 36px; }
.p5-clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid #d9e5df;
  background: #0e171f;
}
.p5-clip figcaption { font-size: 13px; color: #53636d; margin-top: 10px; }

@media (max-width: 760px) {
  .p5-new { margin-top: 40px; }
  .p5-new-grid { grid-template-columns: 1fr; gap: 24px; }
  .p5-new-grid > .p5-device--handheld { width: 64%; max-width: 240px; }
  .p5-hero-device { margin: 4px auto 32px; }
  .p5-clip figure.p5-device { margin: 4px auto 28px; }
}

/* index.html #clips: the three new explainer clips sit three across above the original four (two across) */
.clip-grid--new { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clip-grid--more { margin-top: 22px; }
@media (max-width: 900px) {
  .clip-grid--new { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

/* index.html #meat: one large explainer above the clip grids, its scene list in two columns */
.meat { margin-top: 44px; }
.meat-clip { max-width: 960px; margin: 0 auto; }
.meat-points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.meat-points li { font-size: 14.5px; line-height: 1.5; color: #53636d; }
.clip figcaption .meat-points li b { display: inline; font-size: inherit; margin: 0; }
.clip figcaption .meat-note { font-size: 13px; margin-top: 14px; }
@media (max-width: 760px) {
  .meat { margin-top: 36px; }
  .meat-points { grid-template-columns: 1fr; }
}

/* index.html "Built for your kind of plant": #meat stays full width; the four other films sit two-up
   below it (one column on a phone), each with its heading above the player and its scene list under it */
.plants { margin-top: 44px; }
.plants > .meat { margin-top: 26px; }
.clips-h.plant-h { font-size: 20px; }
.plant-films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 26px;
  margin-top: 44px;
}
.plant-film { display: flex; flex-direction: column; }
.plant-film > .clip { flex: 1; }
.plant-film__h { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); margin: 0 0 12px; }
.plant-film__h .kick { display: block; margin-bottom: 4px; letter-spacing: .1em; }
.plant-film .clip figcaption > p:first-child { color: var(--ink2); }
.plant-points { grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 760px) {
  .plants { margin-top: 36px; }
  .plant-films { grid-template-columns: 1fr; gap: 34px; margin-top: 34px; }
}

/* #meat and the four other film blocks are divs inside #screens with no top padding, so section[id]'s
   188/66px would land their headings under the sticky nav + .mqband (247px; nav only, 63px, on a phone).
   These clear them with ~25px to spare, even when the .reveal 24px slide-in is still applied as the jump
   is computed. */
#meat, #hummus, #soup, #pasta, #sauce { scroll-margin-top: 296px; }
@media (max-width: 560px) { #meat, #hummus, #soup, #pasta, #sauce { scroll-margin-top: 112px; } }

/* index.html hero: "Ready for your plant", five small cards each linking to its film (#meat, #hummus,
   #soup, #pasta, #sauce). Desktop: above the hero visual in the right column (the left column, and its
   CTAs, do not move). Phone: first thing in the hero, as a row that scrolls sideways and snaps per card. */
.plant-cards { min-width: 0; }
.plant-cards__h {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0 0 10px;
}
.plant-cards__h span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 13.5px; }
.plant-cards__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.plant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 4px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--pc);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9ded4; border-top-color: var(--pc); }
.plant-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.plant-card__icon {
  width: 60px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #e7f5ef;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plant-card__name { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.plant-card__go { font-size: 12px; font-weight: 700; color: var(--green); white-space: nowrap; }
@media (min-width: 901px) {
  .hero-grid { row-gap: 20px; }
  .hero-grid > div:first-child { grid-row: 1 / span 2; }
  .hero-grid > .plant-cards { grid-column: 2; grid-row: 1; align-self: end; }
  .hero-grid > .visual { grid-column: 2; grid-row: 2; align-self: start; }
}
@media (max-width: 900px) {
  .hero-grid > .plant-cards { order: -1; margin-bottom: -28px; max-width: 620px; }
}
@media (max-width: 560px) {
  /* the one-column hero grid is wider than the phone (pre-existing); keep the row inside the gutter
     and let it scroll on its own, so the page itself never scrolls sideways */
  .hero-grid > .plant-cards { margin-bottom: -32px; max-width: calc(100vw - 36px); }
  .plant-cards__row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    padding: 4px 4px 10px;
    margin: -4px -4px 0;
    -webkit-overflow-scrolling: touch;
  }
  /* icon beside the label, so the row is no taller than the single card it replaced */
  .plant-card {
    flex: 0 0 138px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 9px;
    row-gap: 1px;
    align-items: center;
    padding: 8px 10px 8px 8px;
    text-align: left;
  }
  .plant-card__icon { grid-row: 1 / span 2; width: 48px; height: 40px; margin: 0; border-radius: 10px; }
  .plant-card__icon svg { width: 42px; height: 31px; }
  .plant-card__name { align-self: end; font-size: 15px; line-height: 1.2; }
  .plant-card__go { align-self: start; font-size: 11.5px; }
}
