/* Products — /products/ only. Built from site.css tokens. */

/* product index under the hero */
.pidx {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 28px);
  margin-top: clamp(48px, 6vw, 80px);
}
.pidx a {
  display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 18px 0 4px;
  border-top: 1px solid var(--line-strong); text-decoration: none;
  transition: border-color .3s var(--ease);
}
.pidx a:hover { border-top-color: var(--charcoal); }
.pidx-name { font-weight: 500; font-size: 1.0625rem; letter-spacing: -.01em; }
.pidx-name span { color: var(--muted); }
.pidx-job { color: var(--muted); font-size: var(--fs-small); text-wrap: balance; }
@media (max-width: 1100px) { .pidx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pidx { grid-template-columns: 1fr; } }

/* product band: head and detail on one side, media on the other (P-2, P-4) */
.prod { --band-bg: var(--ivory); }
.prod.band-white { --band-bg: var(--white); }
.prod.band-charcoal { --band-bg: var(--charcoal); }
.prod.band-mist { --band-bg: var(--mist); }
.prod-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head media" "detail media";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(32px, 6vw, 88px); align-items: start;
}
.prod-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "media head" "media detail"; }
.prod-head { grid-area: head; }
.prod-media { grid-area: media; }
.prod-detail { grid-area: detail; }
@media (max-width: 900px) {
  .prod-grid, .prod-rev { grid-template-columns: 1fr; grid-template-areas: "head" "media" "detail"; grid-template-rows: auto; }
  .prod-media { margin: 36px 0 8px; }
}
.prod-head .lede { margin-top: 20px; }
.prod-lbl { font-size: var(--fs-kicker); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.band-charcoal .prod-lbl { color: var(--muted-dark); }
.prod-meta { margin: 32px 0 36px; }
/* who uses it: plain text, not chips (they aren't tappable) */
.who { color: var(--charcoal); max-width: 46ch; }
.band-charcoal .who { color: var(--ivory); }
.prod-cta { margin-top: 20px; }
.prod-detail .steps > li { padding: 16px 0; }
.prod-detail .steps h3 { margin-bottom: 4px; }
.prod-detail .steps p { color: var(--muted); font-size: var(--fs-small); }
.band-charcoal .prod-detail .steps p { color: var(--muted-dark); }
.repl { margin-top: 28px; padding: 20px 0 0; border-top: 1px solid var(--line-strong); }
.band-charcoal .repl { border-top-color: var(--line-dark); }
.repl p:last-child { color: var(--muted); font-size: var(--fs-small); max-width: 56ch; }
.band-charcoal .repl p:last-child { color: var(--muted-dark); }

/* media column: the desktop shot shows whole when it has room, a crop when it doesn't */
@media (min-width: 761px) and (max-width: 900px), (min-width: 1101px) {
  .shot-frame.zoom.z-wide-full { aspect-ratio: auto; }
  .shot-frame.zoom.z-wide-full img { position: static; inset: auto; width: 100%; height: auto; transform: none; }
  .shot-frame.zoom.z-wide-full::after { display: none; }
}
.prod-media { display: grid; gap: clamp(24px, 3vw, 36px); }
@media (min-width: 901px) { .prod-media { position: sticky; top: calc(var(--hdr-h) + 32px); } }
.prod-media > .shot:first-child:has(+ .prod-phone) .cap { padding-right: 230px; }
.prod-phone { width: 200px; margin: -160px 0 0 auto; position: relative; }
.prod-phone .phone { width: 100%; box-shadow: 0 0 0 6px var(--band-bg); }
/* PC-4: the screen sits on white inside the bezel, so the rounded corners don't cut its edges */
.prod-phone .phone img { background: var(--white); padding: 14px 7px 10px; object-fit: contain; }
.band-charcoal .prod-phone .phone { box-shadow: 0 0 0 6px var(--band-bg), inset 0 0 0 1px var(--line-dark); }
@media (max-width: 1100px) and (min-width: 901px) {
  .prod-phone { width: 160px; margin-top: -120px; }
  .prod-media > .shot:first-child:has(+ .prod-phone) .cap { padding-right: 180px; }
}
@media (max-width: 900px) {
  .prod-phone { width: 170px; margin-top: -110px; }
  .prod-media > .shot:first-child:has(+ .prod-phone) .cap { padding-right: 190px; }
}
@media (max-width: 520px) {
  .prod-phone { width: 200px; margin: 0; }
  .prod-media > .shot:first-child:has(+ .prod-phone) .cap { padding-right: 0; }
}

/* related tools (pos) */
.prod-rel { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-strong); }
.prod-rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-bottom: 24px; }
.prod-rel-head .prod-lbl { margin: 0; }

/* service gallery: three close-ups under the board */
.svc-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 640px) { .svc-gal { grid-template-columns: 1fr; } }

/* one family: four CSS phones (P-3) */
.phone-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: start; }
.phone-row .phone { width: 100%; --phone-bezel: 7px; --r-phone: 26px; }
.phone-row .phone:nth-child(even) { margin-top: 32px; }
@media (max-width: 640px) {
  .phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .phone-row .phone:nth-child(even) { margin-top: 24px; }
}
.inside { max-width: 60ch; }
.inside .link-arrow { min-height: 0; margin-top: 6px; display: inline-flex; padding: 10px 0; }

.fw { font-weight: 500; color: var(--charcoal); }
