/* partners.html (site-src/build.mjs partners()), designed with the design-taste-frontend skill.
   Design read: B2B landing page for medical purchasing teams, bold but trust-first, native CSS on the static site.
   Dials: variance 7, motion 5, density 4.
   Locks: light theme only (matches the site chrome). One accent: brand blue (--blue). Radius scale: buttons are
   full pills, cards and panels 20px, inner chips 12px. No eyebrows, gradient text, glows or infinite loops. */

:root {
  --pt-tint: #EEF2FD;
  --pt-surface: #F6F7FA;
  --pt-r-card: 20px;
  --pt-r-chip: 12px;
  --pt-ease: cubic-bezier(.16, 1, .3, 1);
  --pt-shadow: 0 24px 48px -28px rgba(18, 44, 120, .35);
}

/* ── type & buttons ───────────────────────────────────────────────────── */
.pt-h1 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 22px 0 22px; }
.pt-h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.pt-lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0; }
.pt-sub { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 65ch; margin: 14px 0 0; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 16px; white-space: nowrap; text-decoration: none;
  transition: transform .3s var(--pt-ease), background .2s, border-color .2s, box-shadow .3s var(--pt-ease); }
.pt-btn:hover { transform: translateY(-2px); }
.pt-btn:active { transform: scale(.98); }
.pt-btn-solid { background: var(--blue); color: #fff; }
.pt-btn-solid:hover { background: var(--blue-dark); box-shadow: 0 14px 28px -14px rgba(30, 80, 224, .7); }
.pt-btn-line { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.pt-btn-line:hover { border-color: var(--ink); }
.pt-btn-white { background: #fff; color: var(--blue); }
.pt-btn-white:hover { box-shadow: 0 14px 28px -14px rgba(6, 20, 60, .6); }

/* ── hero: copy left, product lineup right ────────────────────────────── */
.pt-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.pt-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.pt-stage { position: relative; container-type: inline-size; height: 480px; border-radius: var(--pt-r-card); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #fff 0%, var(--pt-tint) 60%);
  display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 0 6% 40px; }
.pt-stage::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 34px; height: 14px; border-radius: 50%;
  background: rgba(18, 44, 120, .12); filter: blur(8px); }
.pt-tube { position: relative; z-index: 1; width: auto; mix-blend-mode: multiply; flex: none;
  animation: pt-rise .9s var(--pt-ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
/* All four at one height, so the line reads as one even set; capped by the panel width (cqw) so they never clip. */
.pt-tube { height: min(80%, 62cqw); }

@keyframes pt-rise { from { opacity: 0; transform: translateY(40px); } }

/* ── routes bento: blue lead cell, tinted GPO cell, full-width DME cell with photo ── */
.pt-routes { padding: 104px 0; background: var(--pt-surface); }
.pt-routes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.pt-chooser { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-chooser span { font-size: 15px; color: var(--muted); margin-right: 4px; }
.pt-chooser button { font: 600 15px var(--sans); height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pt-chooser button:hover { border-color: var(--ink); }
.pt-chooser button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pt-bento { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.pt-cell { position: relative; border-radius: var(--pt-r-card); padding: 36px; transition: transform .4s var(--pt-ease), box-shadow .4s var(--pt-ease), opacity .3s; }
.pt-cell h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 12px; max-width: 22ch; }
.pt-cell p { margin: 0; line-height: 1.55; max-width: 48ch; }
.pt-cell-tag { font-size: 14px; font-weight: 600; }
.pt-cell-dist { background: var(--blue); color: #fff; display: flex; flex-direction: column; min-height: 340px; }
.pt-cell-dist p { color: rgba(255, 255, 255, .86); }
.pt-cell-dist .pt-cell-tag { color: rgba(255, 255, 255, .8); }
.pt-cell-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; padding-top: 32px; }
.pt-cell-logos span { height: 88px; display: flex; align-items: center; justify-content: center; padding: 16px 22px; background: #fff; border-radius: var(--pt-r-chip); }
.pt-cell-logos img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.pt-cell-gpo { background: var(--pt-tint); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.pt-cell-gpo .pt-cell-tag, .pt-cell-dme .pt-cell-tag { color: var(--blue); }
.pt-cell-gpo p, .pt-cell-dme p { color: var(--muted); }
.pt-gpo-logo { height: 64px; display: flex; align-items: center; }
.pt-gpo-logo img { height: 40px; width: auto; }
.pt-cell-dme { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding-right: 0; overflow: hidden; }
.pt-cell-logos-sm { margin-top: 28px; padding-top: 0; max-width: 420px; }
.pt-cell-logos-sm span { height: 72px; background: var(--pt-surface); }
.pt-dme-shot { width: 100%; height: 340px; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--pt-ease); }
.pt-cell:hover, .pt-cell.is-pick { transform: translateY(-4px); box-shadow: var(--pt-shadow); }
.pt-cell-dme:hover .pt-dme-shot { transform: scale(1.04); }
.pt-bento.has-pick .pt-cell:not(.is-pick) { opacity: .35; }
.pt-cell.is-pick { outline: 3px solid var(--blue); outline-offset: 3px; }

/* DME cell holds four partners in a 2x2 grid; government and credentials share the last row. */
.pt-cell-logos-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
.pt-cell-gov { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.pt-gov-logo { height: 72px; display: flex; align-items: center; }
.pt-gov-logo img { height: 64px; width: auto; }
.pt-cell-cred { background: var(--pt-tint); display: flex; flex-direction: column; gap: 22px; }
.pt-cell-cred .pt-cell-tag { color: var(--blue); }
.pt-cred-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; }
.pt-cred-logos figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px 16px; background: #fff; border-radius: var(--pt-r-chip); text-align: center; }
.pt-cred-logos img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.pt-cred-logos figcaption { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* ── SKUs ─────────────────────────────────────────────────────────────── */
.pt-skus { padding: 104px 0; background: #fff; }
.pt-sku-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pt-sku { display: flex; flex-direction: column; border-radius: var(--pt-r-card); overflow: hidden; border: 1px solid var(--line); background: #fff;
  transition: transform .4s var(--pt-ease), box-shadow .4s var(--pt-ease); }
.pt-sku:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow); }
.pt-sku-shot { height: 200px; display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--pt-surface); border-bottom: 3px solid var(--line-c, var(--blue)); }
.pt-sku-shot img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--pt-ease); }
.pt-sku:hover .pt-sku-shot img { transform: scale(1.06); }
.pt-sku-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; flex: 1; }
.pt-sku-name { font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.pt-sku-name:hover { color: var(--blue); }
.pt-sku-meta { font-size: 14px; color: var(--muted); }
.pt-sku-meta + .pt-sku-meta { margin-bottom: 18px; }
.pt-copy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 0 14px; height: 46px; border-radius: var(--pt-r-chip); border: 1px dashed var(--line-strong); background: var(--pt-surface);
  cursor: pointer; font: 500 15px var(--mono); color: var(--ink); transition: border-color .2s, background .2s; }
.pt-copy b { font: 600 13px var(--sans); color: var(--blue); }
.pt-copy:hover { border-style: solid; border-color: var(--blue); }
.pt-copy:active { transform: scale(.98); }
.pt-copy.is-copied { border-style: solid; border-color: var(--blue); background: var(--pt-tint); }
.pt-fine { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* ── closing panel ────────────────────────────────────────────────────── */
.pt-close { padding: 0 0 104px; background: #fff; }
.pt-close-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 56px; border-radius: var(--pt-r-card); background: var(--blue); color: #fff; }
.pt-close-h { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 18ch; }
.pt-close-panel p { margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.6; max-width: 54ch; }
.pt-close-act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pt-close-mail { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; user-select: all; }

/* ── reveal on scroll (IntersectionObserver adds .in) ─────────────────── */
.pt-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--pt-ease) var(--d, 0ms), transform .7s var(--pt-ease) var(--d, 0ms), box-shadow .4s var(--pt-ease); }
.pt-rv.in { opacity: 1; transform: none; }
.pt-rv.in:hover, .pt-cell.pt-rv.in.is-pick { transform: translateY(-4px); transition-delay: 0ms; }
.pt-bento.has-pick .pt-cell.pt-rv.in:not(.is-pick) { opacity: .35; }

/* ── responsive: everything collapses to one column under 768px ───────── */
@media (max-width: 1100px) {
  .pt-sku-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pt-hero-in { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; padding-bottom: 56px; }
  .pt-stage { height: 340px; }
  .pt-bento { grid-template-columns: 1fr; }
  .pt-cell-dme { grid-template-columns: 1fr; padding-right: 36px; }
  .pt-dme-shot { height: 220px; }
  .pt-close-panel { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .pt-routes, .pt-skus { padding: 72px 0; }
  .pt-close { padding-bottom: 72px; }
}
@media (max-width: 767px) {
  .pt-stage { gap: 3%; padding: 0 4% 32px; }
  .pt-tube { height: min(66%, 62cqw); }
  .pt-sku-grid { grid-template-columns: 1fr; }
  .pt-cell { padding: 28px 22px; }
  .pt-cell-dme { padding-right: 22px; }
  .pt-cell-logos span { height: 72px; padding: 12px 14px; }
  .pt-close-panel { padding: 28px 22px; }
  .pt-btn { flex: 1; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-tube { animation: none; }
  .pt-rv { opacity: 1; transform: none; transition: none; }
  .pt-btn, .pt-cell, .pt-sku, .pt-sku-shot img, .pt-dme-shot, .pt-logo-row img { transition: none; }
  .pt-btn:hover, .pt-cell:hover, .pt-sku:hover, .pt-rv.in:hover { transform: none; }
}
