/* ==========================================================================
   Products overview (products/index.html)
   Builds on css/home-sgcui.css (the .uix-* visual language of the sgcUI
   front page). Every class here is namespaced .po-* and is loaded only by
   the products overview page.
   ========================================================================== */

.po-page { --po-radius: 16px; }

/* Hero tweaks ------------------------------------------------------------- */
.po-hero { padding-top: 28px; }
.po-crumb {
  display: flex; align-items: center; gap: 6px; font-size: .875rem; color: #8FA3C0;
  margin-bottom: 28px;
}
.po-crumb a { color: #C9D6EA; text-decoration: none; }
.po-crumb a:hover { color: #fff; text-decoration: underline; }
.po-crumb span { color: #fff; font-weight: 600; }

/* Jump bar + facts --------------------------------------------------------- */
.po-bar { background: #fff; border-bottom: 1px solid var(--uix-line); position: relative; z-index: 3; }
.po-bar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
  flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.po-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.po-jump a {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .875rem;
  color: var(--uix-ink); text-decoration: none; background: var(--uix-mist);
  transition: background-color .2s, color .2s;
}
.po-jump a:first-child { background: var(--uix-ink); color: #fff; }
.po-jump a:hover { background: var(--uix-blue); color: #fff; text-decoration: none; }
.po-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.po-facts li { display: flex; align-items: baseline; gap: 8px; }
.po-facts b { font-size: 1.25rem; font-weight: 900; letter-spacing: -.03em; color: var(--uix-blue); }
.po-facts span { font-size: .8125rem; color: var(--uix-slate); }

/* Section heads ------------------------------------------------------------ */
.po-kicker {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--uix-blue); margin-bottom: 14px;
}
.po-kicker--light { color: var(--uix-amber); }
.po-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px;
  align-items: end; margin-bottom: 48px;
}
.po-head .uix-h2 { margin-bottom: 0; }
.po-head-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.po-head-links .uix-btn { min-height: 46px; padding: 0 22px; font-size: .9375rem; }
.po-label {
  font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--uix-slate); margin: 0 0 14px;
}

/* sgcUI clips -------------------------------------------------------------- */
.po-clips {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 56px;
}
.po-clip { margin: 0; }
.po-clip video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--uix-ink);
  border-radius: 12px; box-shadow: 0 0 0 1px var(--uix-line), 0 24px 48px -28px rgba(7,22,48,.55);
}
.po-clip figcaption { font-size: .875rem; font-weight: 700; color: var(--uix-ink); margin-top: 10px; }

/* sgcUI edition tiers ----------------------------------------------------- */
.po-tier {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--uix-line);
}
.po-tier-head h3 { font-size: 1.375rem; font-weight: 900; letter-spacing: -.02em; color: var(--uix-ink); margin: 0 0 6px; }
.po-tier-head h3::before {
  content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; margin-bottom: 14px;
  background: var(--po-tier, var(--uix-blue));
}
.po-tier-head p { font-size: .9375rem; color: var(--uix-slate); margin: 0; line-height: 1.5; }
.po-tier--std { --po-tier: var(--uix-std); }
.po-tier--pro { --po-tier: var(--uix-pro); }
.po-tier--ent { --po-tier: var(--uix-ent); }

.po-ui-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.po-ui {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--po-radius);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 0 0 1px var(--uix-line), 0 1px 2px rgba(7,22,48,.04);
  transition: transform .25s var(--uix-ease), box-shadow .25s;
}
.po-ui:hover {
  transform: translateY(-4px); text-decoration: none;
  box-shadow: 0 0 0 1px var(--po-tier, var(--uix-blue)), 0 24px 48px -24px rgba(7,22,48,.35);
}
.po-ui-media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F3F6FA;
  border-bottom: 1px solid var(--uix-line);
}
.po-ui-media img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  transition: transform .5s var(--uix-ease);
}
.po-ui:hover .po-ui-media img { transform: scale(1.04); }
.po-ui-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.po-ui-body strong { font-size: 1.0625rem; font-weight: 800; color: var(--uix-ink); letter-spacing: -.01em; }
.po-ui:hover .po-ui-body strong { color: var(--uix-blue); }
.po-ui-body > span { font-size: .875rem; line-height: 1.5; color: var(--uix-slate); }

/* sgcWebSockets ------------------------------------------------------------ */
.po-ws {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-bottom: 56px;
}
.po-ws-main {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 44px;
  background: var(--uix-ink); color: #B7C6DC;
}
.po-ws-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 100% 0%, rgba(0,87,184,.6), transparent 70%);
}
.po-ws-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.04em; line-height: 1;
  color: #fff; margin: 0 0 18px;
}
.po-ws-main > p { font-size: 1.0625rem; line-height: 1.6; max-width: 56ch; margin: 0 0 24px; }
.po-ws-cta { margin: 28px 0 0; }
.po-ws-addons { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.po-addon, .po-single {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit;
  background: #fff; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 0 0 1px var(--uix-line);
  transition: transform .2s var(--uix-ease), box-shadow .2s;
}
.po-addon { flex: 1; padding: 24px; }
.po-addon:hover, .po-single:hover {
  transform: translateY(-3px); text-decoration: none;
  box-shadow: 0 0 0 1.5px var(--uix-blue), 0 18px 40px -24px rgba(7,22,48,.4);
}
.po-addon > span:last-child, .po-single > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.po-addon strong, .po-single strong { font-size: 1.0625rem; font-weight: 800; color: var(--uix-ink); }
.po-addon:hover strong, .po-single:hover strong { color: var(--uix-blue); }
.po-addon span span, .po-single span span { font-size: .875rem; line-height: 1.5; color: var(--uix-slate); }

.po-mono {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-size: .8125rem; font-weight: 900; letter-spacing: .02em; color: #fff; background: var(--uix-blue);
}
.po-mono--quic   { background: #0E7490; }
.po-mono--rtc    { background: #BE185D; }
.po-mono--html   { background: #EA580C; }
.po-mono--ai     { background: #7C3AED; }
.po-mono--mq     { background: #059669; }
.po-mono--social { background: #16A34A; }
.po-mono--auth   { background: #B45309; }
.po-mono--http   { background: #2563EB; }
.po-mono--rest   { background: #0891B2; }
.po-mono--crypto { background: #334155; }
.po-mono--indy   { background: #4F46E5; }
.po-mono--sign   { background: #0057B8; }
.po-mono--openapi { background: #65A30D; }
.po-mono--bio    { background: #DB2777; }
.po-mono--sgcindy { background: #1E293B; }

.po-singles-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.po-singles-head .po-label { margin: 0; }
.po-singles-head p { font-size: .9375rem; color: var(--uix-slate); margin: 0; max-width: 70ch; }
.po-singles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.po-singles li { display: flex; }
.po-single { flex: 1; }

/* sgcHTML feature ---------------------------------------------------------- */
.po-feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
}
.po-feature-media { margin: 0; }
.po-feature-media img {
  display: block; width: 100%; height: auto; border-radius: var(--po-radius);
  box-shadow: 0 40px 80px -36px rgba(7,22,48,.55);
}

/* Other products ----------------------------------------------------------- */
.po-others {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.po-others li { display: flex; }
.po-other {
  flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px;
  border-radius: var(--po-radius); background: #fff; color: inherit; text-decoration: none;
  box-shadow: 0 0 0 1px var(--uix-line);
  transition: transform .2s var(--uix-ease), box-shadow .2s;
}
.po-other:hover {
  transform: translateY(-4px); text-decoration: none;
  box-shadow: 0 0 0 1.5px var(--uix-blue), 0 24px 48px -28px rgba(7,22,48,.4);
}
.po-other .po-mono { margin-bottom: 6px; }
.po-other strong { font-size: 1.1875rem; font-weight: 800; color: var(--uix-ink); }
.po-other > span:not(.po-mono) { font-size: .9rem; line-height: 1.55; color: var(--uix-slate); flex: 1; }
.po-other em { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--uix-blue); }
.po-other em::after { content: " \2192"; }

/* Closing band ------------------------------------------------------------- */
.po-close-title { max-width: none; margin-bottom: 40px; }
.po-close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.po-close-card {
  position: relative; border-radius: 20px; padding: 36px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: flex-start;
}
.po-close-card--aa {
  background: linear-gradient(135deg, rgba(240,164,0,.16), rgba(0,87,184,.2));
  box-shadow: inset 0 0 0 1px rgba(240,164,0,.45);
}
.po-close-card h3 { font-size: 1.75rem; font-weight: 900; letter-spacing: -.03em; color: #fff; margin: 0 0 12px; }
.po-close-card p { color: #A9BAD3; line-height: 1.6; margin: 0 0 26px; flex: 1; }
.po-close-tag {
  display: inline-block; background: var(--uix-amber); color: #1A1200; border-radius: 999px;
  padding: 3px 10px; font-weight: 800; font-size: .75rem; margin-bottom: 14px;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .po-head, .po-feature, .po-ws { grid-template-columns: minmax(0, 1fr); }
  .po-head { gap: 16px; }
  .po-feature { gap: 36px; }
  .po-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-singles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-ws-addons { flex-direction: row; padding: 0; }
  .po-ws-addons .po-label { display: none; }
}
@media (max-width: 860px) {
  .po-tier { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .po-clips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .po-clips .po-clip:nth-child(3) { display: none; }
  .po-ws-addons { flex-direction: column; }
  .po-close-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .po-bar-in { gap: 14px; }
  .po-facts { gap: 6px 20px; }
  .po-facts b { font-size: 1.25rem; }
  .po-clips { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
  .po-clips .po-clip:nth-child(n+2) { display: none; }
  .po-ui-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .po-ui { flex-direction: row; }
  .po-ui-media { flex: none; width: 112px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--uix-line); }
  .po-ui-body { padding: 14px 16px; }
  .po-singles, .po-others { grid-template-columns: minmax(0, 1fr); }
  .po-ws-main { padding: 28px 22px; }
  .po-close-card { padding: 26px 22px; }
  .po-head-links .uix-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .po-ui, .po-ui-media img, .po-addon, .po-single, .po-other, .po-jump a { transition: none; }
  .po-ui:hover, .po-addon:hover, .po-single:hover, .po-other:hover { transform: none; }
  .po-ui:hover .po-ui-media img { transform: none; }
}

/* ==========================================================================
   Home "Overview" variant (home/v1.html). Everything below is scoped under
   .ph-home so products/index.html is unaffected.
   ========================================================================== */

/* Hero: a three line headline a touch smaller than the sgcUI front page,
   so the soft line stays on one line next to the collage */
.ph-home .uix-h1 { font-size: clamp(2.4rem, 4.1vw, 3.7rem); }

/* Hero proof row: check-marked facts under the CTAs */
.ph-home .ph-proof {
  display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0;
  font-size: .875rem; font-weight: 600; color: #C9D6EA;
}
.ph-home .ph-proof li { display: inline-flex; align-items: center; gap: 8px; }
.ph-home .ph-proof li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--uix-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231A1200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Proof section: numbers band + testimonials */
.ph-home .ph-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 0 32px; padding: 0;
  background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--uix-line), 0 24px 48px -36px rgba(7,22,48,.35);
}
.ph-home .ph-stat { display: flex; flex-direction: column; gap: 4px; padding: 30px 26px; min-width: 0; }
.ph-home .ph-stat + .ph-stat { border-left: 1px solid var(--uix-line); }
.ph-home .ph-stat b {
  font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05;
  color: var(--uix-blue); font-variant-numeric: tabular-nums;
}
.ph-home .ph-stat span { font-size: .9375rem; font-weight: 800; color: var(--uix-ink); }
.ph-home .ph-stat small { font-size: .8125rem; line-height: 1.45; color: var(--uix-slate); }

.ph-home .ph-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ph-home .ph-quote {
  display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 28px 28px 24px;
  background: #fff; border-radius: var(--po-radius); box-shadow: 0 0 0 1px var(--uix-line);
}
.ph-home .ph-quote-mark { color: var(--uix-amber); }
.ph-home .ph-quote blockquote {
  margin: 0; flex: 1; font-size: 1.0625rem; line-height: 1.55; font-weight: 600; color: var(--uix-ink);
}
.ph-home .ph-quote figcaption { display: flex; align-items: center; gap: 12px; }
.ph-home .ph-avatar {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--uix-ink); color: #fff; font-size: .8125rem; font-weight: 800; letter-spacing: .02em;
}
.ph-home .ph-quote figcaption > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ph-home .ph-quote figcaption strong { font-size: .9375rem; font-weight: 800; color: var(--uix-ink); }
.ph-home .ph-quote figcaption span span { font-size: .8125rem; color: var(--uix-slate); }

@media (max-width: 1100px) {
  .ph-home .ph-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-home .ph-stat:nth-child(4) { border-left: 0; }
  .ph-home .ph-stat:nth-child(n+4) { border-top: 1px solid var(--uix-line); }
  .ph-home .ph-quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ph-home .ph-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ph-home .ph-stat { padding: 22px 18px; }
  .ph-home .ph-stat:nth-child(4) { border-left: 1px solid var(--uix-line); }
  .ph-home .ph-stat:nth-child(odd) { border-left: 0; }
  .ph-home .ph-stat:nth-child(n+3) { border-top: 1px solid var(--uix-line); }
  .ph-home .ph-stat:last-child { grid-column: 1 / -1; }
  .ph-home .ph-quote { padding: 24px 22px 20px; }
}

/* sgcHTML block: screenshots, how it works, feature grid -------------------- */
#sgchtml .po-html-more { margin-top: 48px; }
#sgchtml .po-html-shots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  list-style: none; margin: 0 0 40px; padding: 0;
}
#sgchtml .po-html-shots a { display: block; color: inherit; text-decoration: none; }
#sgchtml .po-html-shots img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--uix-line), 0 18px 36px -24px rgba(7,22,48,.45);
  transition: transform .2s var(--uix-ease), box-shadow .2s;
}
#sgchtml .po-html-shots a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1.5px var(--uix-blue), 0 22px 44px -24px rgba(7,22,48,.5);
}
#sgchtml .po-html-shots span { display: block; margin-top: 10px; font-size: .875rem; font-weight: 700; color: var(--uix-ink); }
#sgchtml .po-html-shots a:hover span { color: var(--uix-blue); }
#sgchtml .po-html-how {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 18px 22px; margin-bottom: 24px; border-radius: var(--po-radius);
  background: #fff; box-shadow: 0 0 0 1px var(--uix-line);
}
#sgchtml .po-html-how .po-label { margin: 0; }
#sgchtml .po-html-how ol {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px;
  list-style: none; margin: 0; padding: 0; flex: 1;
}
#sgchtml .po-html-how li { display: flex; align-items: center; gap: 10px; font-size: .875rem; line-height: 1.45; color: var(--uix-ink); }
#sgchtml .po-html-how b {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #EA580C; color: #fff; font-size: .8125rem; font-weight: 900;
}
#sgchtml .po-html-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
#sgchtml .po-html-grid li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px;
  border-radius: var(--po-radius); background: #fff; box-shadow: 0 0 0 1px var(--uix-line);
}
#sgchtml .po-html-ico {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: #FFF1E8; color: #EA580C;
}
#sgchtml .po-html-ico svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
#sgchtml .po-html-grid li > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#sgchtml .po-html-grid strong { font-size: 1rem; font-weight: 800; color: var(--uix-ink); letter-spacing: -.01em; }
#sgchtml .po-html-grid li > span:last-child > span { font-size: .875rem; line-height: 1.5; color: var(--uix-slate); }
#sgchtml .po-html-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  margin: 26px 0 0; font-size: .9375rem; color: var(--uix-slate);
}
#sgchtml .po-html-foot > span { flex: 0 0 100%; }
#sgchtml .po-html-foot a { font-weight: 700; color: var(--uix-blue); }
#sgchtml .po-html-foot a::after { content: " \2192"; }
@media (max-width: 1100px) {
  #sgchtml .po-html-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sgchtml .po-html-how { flex-direction: column; align-items: flex-start; }
  #sgchtml .po-html-how ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  #sgchtml .po-html-more { margin-top: 36px; }
  #sgchtml .po-html-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
  #sgchtml .po-html-how { flex-direction: column; align-items: flex-start; padding: 18px; }
  #sgchtml .po-html-how ol { flex-direction: column; }
  #sgchtml .po-html-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #sgchtml .po-html-grid li { flex-direction: row; padding: 16px; }
  #sgchtml .po-html-foot { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #sgchtml .po-html-shots img { transition: none; }
  #sgchtml .po-html-shots a:hover img { transform: none; }
}
