/* ============================================================
   PRODUCTS PAGE
   (The shared page header lives in page-hero.css)
============================================================ */

/* ── Product list (boxed rows, flip to dark on hover) ── */
.plist-section { background: var(--white); padding-top: clamp(56px, 7vw, 104px); }
.plist {
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
}

.pitem {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(36px, 4.5vw, 68px) clamp(24px, 3.4vw, 52px);
  background: var(--white); color: var(--text);
  border-bottom: 1px solid var(--line-dark);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.pitem::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}

.pitem__no { padding-top: 6px; font: 500 12px var(--font-mono); letter-spacing: .2em; color: var(--accent); transition: color .3s; }

.pitem__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pitem__name { font-size: clamp(40px, 4.6vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.pitem__domain { font: 400 12px var(--font-mono); letter-spacing: .08em; color: var(--subtle); transition: color .3s; }

.pitem__body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.pitem__body p { max-width: 560px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.8; color: var(--muted); transition: color .3s; }

/* Hover / keyboard focus: dark navy row */
.pitem:hover,
.pitem:focus-within { background: var(--ink); color: var(--white); }
.pitem:hover::before,
.pitem:focus-within::before { transform: scaleX(1); }
.pitem:hover .pitem__no,
.pitem:focus-within .pitem__no { color: var(--accent-soft); }
.pitem:hover .pitem__domain,
.pitem:focus-within .pitem__domain { color: rgba(var(--white-rgb), .5); }
.pitem:hover .pitem__body p,
.pitem:focus-within .pitem__body p { color: rgba(var(--white-rgb), .7); }
.pitem:hover .tag--dark,
.pitem:focus-within .tag--dark { color: var(--accent-soft); border-color: rgba(var(--accent-soft-rgb), .4); background: rgba(var(--accent-soft-rgb), .08); }

/* Button flips to white so it stays visible on the dark row,
   then fills with royal blue when the button itself is hovered */
.pitem .btn--dark { transition: background .3s, color .3s; }
.pitem:hover .btn--dark,
.pitem:focus-within .btn--dark { background: var(--white); color: var(--ink); }
.pitem:hover .btn--dark .btn__icon,
.pitem:focus-within .btn--dark .btn__icon { border-left-color: rgba(var(--ink-rgb), .15); }
.pitem:hover .btn--dark:hover,
.pitem:focus-within .btn--dark:hover,
.pitem:hover .btn--dark:focus-visible,
.pitem:focus-within .btn--dark:focus-visible { background: var(--accent); color: var(--white); }
.pitem:hover .btn--dark:hover .btn__icon,
.pitem:focus-within .btn--dark:hover .btn__icon,
.pitem:hover .btn--dark:focus-visible .btn__icon,
.pitem:focus-within .btn--dark:focus-visible .btn__icon { border-left-color: rgba(var(--white-rgb), .28); }

/* ── Closing band (image background, compact) ── */
.products-cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--band-y) 0;
  border-top: 1px solid var(--line-light);
}
.products-cta__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.products-cta__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.04);
}
.products-cta__media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--overlay-band);
}
.products-cta::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -45%; right: -8%; width: 55vw; height: 55vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .32), transparent 62%);
  filter: blur(40px);
}
.products-cta::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--gradient-brand-fade);
}
.products-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.products-cta .eyebrow { margin-bottom: 20px; }
.products-cta .h2 { max-width: 16ch; font-size: clamp(30px, 3.8vw, 54px); text-shadow: 0 2px 30px rgba(var(--ink-rgb), .4); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pitem { grid-template-columns: 1fr; gap: 20px; }
  .pitem__no { padding-top: 0; }
  .pitem__body { gap: 28px; }
  .products-cta__media::after { background: var(--overlay-band-mobile); }
}
@media (max-width: 640px) {
  .pitem__body .btn, .products-cta .btn { width: 100%; justify-content: space-between; }
}