/* ============================================================================
   RPACPC — Products hub (/products/)
   The catalogue is rendered from the shared suite catalog in js/app.js.
   Product tiles reuse .suite-prod* from styles.css (colour comes from --sa / --st).
   ============================================================================ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ph-hero {
  position: relative;
  padding: 24px 0 44px;
  background:
    radial-gradient(760px 440px at 12% -10%, var(--primary-tint) 0%, transparent 62%),
    radial-gradient(620px 420px at 96% 0%, var(--green-tint) 0%, transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.ph-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}

.ph-crumb a { color: var(--muted); transition: color .15s; }
.ph-crumb a:hover { color: var(--primary); }
.ph-crumb .sep { opacity: .5; }
.ph-crumb .here { color: var(--ink); }

.ph-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

.ph-title {
  margin-top: 14px;
  max-width: 880px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.ph-hl { color: var(--primary); }

.ph-lead {
  margin-top: 20px;
  max-width: 640px;
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
}

.ph-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.ph-stat { display: flex; flex-direction: column; gap: 4px; }

.ph-stat-v {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.ph-stat-k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Search + quick-jump chips ────────────────────────────────────────── */
.ph-tools {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.ph-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  padding: 0 18px;
  height: 54px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}

.ph-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.ph-search svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }

.ph-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
}

.ph-search input::placeholder { color: var(--faint); }

.ph-search-count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.ph-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s;
}

.ph-chip:hover {
  border-color: var(--sa);
  background: color-mix(in oklab, var(--sa) 7%, white);
  transform: translateY(-1px);
}

.ph-chip-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--st);
  color: var(--sa);
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 600;
}

/* ── Catalogue ────────────────────────────────────────────────────────── */
.ph-main { padding: 56px 0 40px; }

.ph-catalog { display: flex; flex-direction: column; gap: 22px; }

.ph-suite {
  scroll-margin-top: 110px;
  padding: 28px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.ph-suite[hidden], .ph-suite [hidden] { display: none !important; }

.ph-suite-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}

.ph-suite-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--st);
  color: var(--sa);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.ph-suite-tx { min-width: 0; }

.ph-suite-tx h2 {
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -.02em;
}

.ph-suite-tx p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.ph-suite-count {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--st);
  color: var(--sa);
  font-size: 12.5px;
  white-space: nowrap;
}

.ph-suite-count b { font-family: var(--f-mono); font-weight: 600; }

.ph-suite-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sa);
  white-space: nowrap;
}

.ph-suite-link svg { width: 14px; height: 14px; transition: transform .15s; }
.ph-suite-link:hover svg { transform: translateX(3px); }

.ph-suite .suite-prod-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ph-suite .suite-prod { background: var(--bg); }
.ph-suite .suite-prod:hover { background: color-mix(in oklab, var(--sa) 6%, white); }

.ph-empty {
  padding: 72px 20px;
  text-align: center;
}

.ph-empty h2 { font-size: 26px; }
.ph-empty p { margin-top: 12px; color: var(--body); }
.ph-empty a { color: var(--primary); font-weight: 600; }

.ph-noscript { columns: 2; padding-left: 18px; line-height: 2; }

/* ── Solutions strip ──────────────────────────────────────────────────── */
.ph-solutions { background: var(--surface); border-top: 1px solid var(--line); }

.ph-head-wide { max-width: 860px; }

.ph-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ph-sol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--st), var(--bg) 70%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.ph-sol:hover {
  transform: translateY(-3px);
  border-color: var(--sa);
  box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--sa) 40%, transparent);
}

.ph-sol-blue { --sa: #0369A1; --st: #E0F2FE; }
.ph-sol-purple { --sa: #6B43C7; --st: #F3E8FF; }
.ph-sol-amber { --sa: #B96A12; --st: #FEF3C7; }

.ph-sol-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sa);
}

.ph-sol h3 { font-size: 21px; letter-spacing: -.02em; }
.ph-sol p { font-size: 14.5px; line-height: 1.6; color: var(--body); }

.ph-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sa);
}

.ph-more svg { width: 14px; height: 14px; transition: transform .15s; }
.ph-sol:hover .ph-more svg { transform: translateX(3px); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ph-sol-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-suite { padding: 22px 20px 24px; }
  .ph-suite-head { flex-wrap: wrap; }
  .ph-suite-count { margin-left: 0; }
  .ph-suite-link { margin-left: auto; }
}

@media (max-width: 560px) {
  .ph-hero { padding-bottom: 32px; }
  .ph-stats { gap: 14px 28px; }
  .ph-search-count { display: none; }
  .ph-suite .suite-prod-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-noscript { columns: 1; }
}
