/* ============================================================
   Products page — scoped styles.
   Built on the existing Capstone design system (style.css).
   Reuses base tokens: navy #14326B, blue #4A96F8, ink #1F1F1F,
   tint #F5F8FF, amber #FFAE42, muted rgba(31,31,31,.5-.8).
   No global overrides; every rule is namespaced under .prod-*.
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:root {
  --prod-navy: #14326B;
  --prod-blue: #4A96F8;
  --prod-ink: #1F1F1F;
  --prod-tint: #F5F8FF;
  --prod-amber: #FFAE42;
  --prod-line: #E6E6E6;
  --prod-card-radius: 32px;
}

/* ---- Active nav item (Products) ---- */
.nav__list a.is-active {
  color: #14326B;
  position: relative;
}
.nav__list a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #4A96F8;
}
.dropdown__item.is-active {
  color: #14326B;
  background: #FFF;
  border-radius: 6px;
}

/* ---- Generic secondary button used across the page ---- */
.btn-getaccess.prod-outline {
  border: 1px solid var(--prod-line);
  background: #FFF;
}
.btn-getaccess.prod-outline:hover {
  border-color: var(--prod-blue);
}

/* Buttons need a hover cue consistent with the site's motion feel. */
.button {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn__bookacall:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 50, 107, 0.28);
}
.btn-getaccess:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 50, 107, 0.12);
}

/* ---- Hero visual: four connected product systems ---- */
.prod-hero__visual {
  width: 100%;
  max-width: 560px;
  height: auto;
}
.prod-hero__visual .node rect,
.prod-hero__visual .hub rect {
  fill: rgba(255, 255, 255, 0.92);
  stroke: #E6ECF7;
  stroke-width: 1.5;
}
.prod-hero__visual .hub rect {
  fill: #14326B;
  stroke: rgba(255, 255, 255, 0.15);
}
.prod-hero__visual .link {
  stroke: #93CCFD;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 6;
  animation: prod-dash 2.4s linear infinite;
}
@keyframes prod-dash {
  to { stroke-dashoffset: -24; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-hero__visual .link { animation: none; }
}

/* ---- Ecosystem overview: four-product responsive grid ---- */
.prod-eco__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-self: stretch;
}
.prod-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  border-radius: var(--prod-card-radius);
  border: 5px solid #FFF;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.prod-card:hover,
.prod-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(20, 50, 107, 0.12);
  outline: none;
}
.prod-card:focus-visible {
  outline: 3px solid #4A96F8;
  outline-offset: 3px;
}
.prod-card__icon {
  display: flex;
  width: 64px;
  height: 64px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(56.32% 88.64% at 50% 11.36%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%), #4A96F8;
}
.prod-card__icon.is-navy { background: radial-gradient(56.32% 88.64% at 50% 11.36%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%), #14326B; }
.prod-card__icon.is-deep { background: radial-gradient(56.32% 88.64% at 50% 11.36%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%), #2D58A7; }
.prod-card__icon.is-amber { background: radial-gradient(56.32% 88.64% at 50% 11.36%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%), #FFAE42; }
.prod-card__icon svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); }
.prod-card__cat {
  color: #2D58A7;
  font-family: Inter;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.prod-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-card__body h3 {
  color: #1F1F1F;
  font-family: "Inter Display", Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.48px;
}
.prod-card__body p {
  color: #4C4C4C;
  font-family: Inter;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}
.prod-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #14326B;
  font-family: Inter;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.prod-card__cta svg { transition: transform 0.18s ease; }
.prod-card:hover .prod-card__cta svg { transform: translateX(4px); }

/* ---- Product deep-dive sections ---- */
.prod-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  align-self: stretch;
}
.prod-section.is-reversed .prod-section__media { order: -1; }
.prod-section__copy { display: flex; flex-direction: column; gap: 24px; }
.prod-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2D58A7;
  font-family: Inter;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.prod-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4A96F8;
}
.prod-section__copy h2 { font-size: 44px; }
@media (max-width: 992px) { .prod-section__copy h2 { font-size: 36px; } }
.prod-section__copy > p {
  color: #4C4C4C;
  font-family: Inter;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.2px;
}
.prod-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.prod-caps li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1F1F1F;
  font-family: Inter;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}
.prod-caps svg { flex-shrink: 0; margin-top: 3px; }
.prod-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prod-users span {
  padding: 6px 14px;
  border-radius: 100px;
  background: #F5F8FF;
  border: 1px solid #E6ECF7;
  color: #2D58A7;
  font-family: Inter;
  font-size: 13px;
  font-weight: 600;
}
.prod-section__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Product media panel — abstract dashboard composition */
.prod-media {
  border-radius: var(--prod-card-radius);
  border: 5px solid #FFF;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(20, 50, 107, 0.10);
  overflow: hidden;
}
.prod-media__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid #EEF2FA;
  background: #FBFCFE;
}
.prod-media__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E2E8F2; }
.prod-media__bar i:nth-child(1) { background: #FF6058; }
.prod-media__bar i:nth-child(2) { background: #FFBD2E; }
.prod-media__bar i:nth-child(3) { background: #28C840; }
.prod-media__bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: #667085; font-family: Inter; }
.prod-media__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.prod-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prod-stat {
  border: 1px solid #EEF2FA;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.prod-stat .k { display: block; font-size: 11px; color: #667085; font-family: Inter; font-weight: 600; }
.prod-stat .v { display: block; font-size: 22px; font-weight: 800; color: #1F1F1F; margin-top: 4px; font-family: "Inter Display", Inter; }
.prod-stat.is-fill { background: #14326B; border-color: #14326B; }
.prod-stat.is-fill .k { color: #A9C2EE; }
.prod-stat.is-fill .v { color: #fff; }
.prod-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding: 14px; border: 1px solid #EEF2FA; border-radius: 14px; }
.prod-bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #4A96F8, #bcd8ff); }
.prod-bars i:last-child { background: linear-gradient(180deg, #FFAE42, #ffd778); }
.prod-rows { display: flex; flex-direction: column; gap: 8px; }
.prod-line-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid #EEF2FA; border-radius: 10px; background: #fff;
  font-family: Inter; font-size: 12.5px; color: #4C4C4C; font-weight: 500;
}
.prod-line-item b { color: #14326B; font-weight: 700; }
.prod-pill { padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.prod-pill.ok { background: #E3F5E9; color: #0A7A32; }
.prod-pill.info { background: #E8F1FE; color: #2D58A7; }
.prod-pill.warn { background: #FCEFD0; color: #8A5A0F; }

/* ---- Comparison table ---- */
.prod-compare { align-self: stretch; overflow-x: auto; }
.prod-compare table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 820px;
}
.prod-compare th, .prod-compare td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #EEF2FA;
  font-family: Inter;
}
.prod-compare thead th {
  position: sticky;
  top: 0;
  background: #14326B;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.prod-compare thead th:first-child { border-top-left-radius: 16px; }
.prod-compare thead th:last-child { border-top-right-radius: 16px; }
.prod-compare thead th span { display: block; font-size: 12px; font-weight: 500; color: #A9C2EE; margin-top: 2px; }
.prod-compare tbody th {
  color: #1F1F1F;
  font-size: 14px;
  font-weight: 700;
  background: #F5F8FF;
  width: 180px;
}
.prod-compare tbody td {
  color: #4C4C4C;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.prod-compare tbody tr:hover td, .prod-compare tbody tr:hover th { background: #FAFBFF; }
.prod-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.prod-tag.core { background: #E3F5E9; color: #0A7A32; }
.prod-tag.config { background: #E8F1FE; color: #2D58A7; }
.prod-tag.integration { background: #EEF0F5; color: #4C4C4C; }
.prod-tag.optional { background: #FCEFD0; color: #8A5A0F; }
.prod-tag.na { background: #EFEFEF; color: #5F6673; }

/* Stacked mobile comparison cards */
.prod-compare__cards { display: none; }
.prod-compare__card {
  border-radius: 20px;
  border: 1px solid #E6ECF7;
  background: #fff;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(20, 50, 107, 0.05);
}
.prod-compare__card > h3 {
  font-family: "Inter Display", Inter;
  font-size: 20px;
  font-weight: 800;
  color: #14326B;
  margin-bottom: 12px;
}
.prod-compare__card dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.prod-compare__card .row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #F0F3F9; }
.prod-compare__card dt { font-size: 12px; font-weight: 700; color: #5F6673; text-transform: uppercase; letter-spacing: 0.5px; }
.prod-compare__card dd { margin: 0; font-size: 14px; color: #4C4C4C; font-weight: 500; }

/* ---- Connected architecture ---- */
.prod-arch {
  align-self: stretch;
  border-radius: var(--prod-card-radius);
  border: 5px solid #FFF;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
  padding: 40px;
}
.prod-arch__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-arch__node {
  border-radius: 18px;
  border: 1px solid #E6ECF7;
  background: #F5F8FF;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prod-arch__node h3 { font-family: "Inter Display", Inter; font-size: 17px; font-weight: 800; color: #14326B; }
.prod-arch__node p { font-size: 13.5px; color: #4C4C4C; font-weight: 500; line-height: 20px; }
.prod-arch__node .step { font-size: 12px; font-weight: 700; color: #2D58A7; }
.prod-arch__bus {
  margin-top: 22px;
  border-radius: 14px;
  background: #14326B;
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Inter;
  font-size: 14.5px;
  font-weight: 600;
}
.prod-arch__bus svg { flex-shrink: 0; }

/* ---- Delivery model ---- */
.prod-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-self: stretch;
  counter-reset: step;
}
.prod-step {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid #E6ECF7;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prod-step__num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #F5F8FF;
  color: #14326B;
  font-family: "Inter Display", Inter;
  font-weight: 900;
  font-size: 20px;
}
.prod-step h3 { font-family: "Inter Display", Inter; font-size: 19px; font-weight: 800; color: #1F1F1F; }
.prod-step p { font-size: 14.5px; color: #4C4C4C; font-weight: 500; line-height: 22px; }

/* ---- Final CTA (reuses homepage tone) ---- */
.prod-final {
  align-self: stretch;
  border-radius: 40px;
  background: linear-gradient(135deg, #1B3E7E, #14326B);
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.prod-final h2 { color: #fff; font-size: 48px; max-width: 18ch; }
.prod-final p { color: rgba(255, 255, 255, 0.72); font-family: Inter; font-size: 18px; font-weight: 500; max-width: 60ch; line-height: 28px; }
.prod-final .btn__group-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prod-final .btn__bookacall { background: #FFF; color: #14326B; border-color: #FFF; }
.prod-final .btn__bookacall:hover { background: #EAF1FF; }
.prod-final .btn-getaccess { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.prod-final .btn-getaccess:hover { background: rgba(255, 255, 255, 0.18); }

/* ---- Section intro block (badge + heading + copy) ---- */
.prod-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
/* Centered headings must stretch to the container so their text wraps
   instead of taking max-content width (which overflows on small screens). */
.prod-intro .section__heading { align-items: center; align-self: stretch; width: 100%; }
.prod-intro .section__heading-container { align-self: stretch; justify-content: center; flex-wrap: wrap; }
.prod-intro .section__heading h2 { text-align: center; }
.prod-intro > p { color: #4C4C4C; font-family: Inter; font-size: 18px; font-weight: 500; line-height: 28px; }

/* ---- FAQ (detail pages) ---- */
.prod-faq { align-self: stretch; display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; width: 100%; }
.prod-faq details {
  border: 1px solid #E6ECF7;
  border-radius: 16px;
  background: #fff;
  padding: 4px 24px;
}
.prod-faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-family: "Inter Display", Inter;
  font-size: 18px;
  font-weight: 700;
  color: #1F1F1F;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.prod-faq summary::-webkit-details-marker { display: none; }
.prod-faq summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: #4A96F8;
  transition: transform 0.2s ease;
}
.prod-faq details[open] summary::after { content: "\2212"; }
.prod-faq p { color: #4C4C4C; font-family: Inter; font-size: 15.5px; font-weight: 500; line-height: 24px; padding: 0 0 20px; }

/* ---- Breadcrumb (detail pages) ---- */
.prod-crumb { display: flex; align-items: center; gap: 8px; font-family: Inter; font-size: 13px; font-weight: 600; color: #5F6673; margin-bottom: 8px; }
.prod-crumb a { color: #2D58A7; text-decoration: none; }
.prod-crumb a:hover { text-decoration: underline; }

/* ---- Reveal-on-scroll (progressive enhancement).
   Content is visible by default; only hidden once JS confirms it can
   reveal it (html.prod-js). No-JS, failed-JS, or reduced-motion users
   always see the content. ---- */
.prod-js .prod-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.prod-js .prod-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .prod-js .prod-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Overflow safety: let grid/flex children shrink and wrap ---- */
.prod-section, .prod-section__copy, .prod-section__media,
.prod-caps li, .prod-arch__node, .prod-step, .prod-card__body { min-width: 0; }
.prod-section__copy > p, .prod-caps li, .prod-card__body p,
.prod-arch__node p, .prod-step p { overflow-wrap: anywhere; }
.prod-users span { overflow-wrap: anywhere; max-width: 100%; }
.prod-media, .prod-media img, .prod-media svg { max-width: 100%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .prod-eco__grid { grid-template-columns: repeat(2, 1fr); }
  .prod-section { grid-template-columns: 1fr; gap: 32px; }
  .prod-section.is-reversed .prod-section__media { order: 0; }
  .prod-arch__grid { grid-template-columns: repeat(2, 1fr); }
  .prod-steps { grid-template-columns: repeat(2, 1fr); }
  .prod-final { padding: 48px 32px; }
  .prod-final h2 { font-size: 36px; }
}

@media (max-width: 767px) {
  .prod-compare { display: none; }
  .prod-compare__cards { display: block; align-self: stretch; }
}

@media (max-width: 680px) {
  .prod-eco__grid { grid-template-columns: 1fr; }
  .prod-caps { grid-template-columns: 1fr; }
  .prod-arch__grid { grid-template-columns: 1fr; }
  .prod-steps { grid-template-columns: 1fr; }
  .prod-section__copy h2 { font-size: 30px; }
  .prod-final { padding: 40px 20px; }
  .prod-final h2 { font-size: 28px; }
  .prod-final p { font-size: 15px; }
  .prod-arch { padding: 24px; }
}
