/* =============================================================
   RICH PRODUCT PAGE TEMPLATE — shared styles for the 9 products
   using layouts/products/rich.html (all products except Jitsi,
   which has its own dedicated page/stylesheet).
   Scoped under .product-rich so nothing here leaks into the
   generic product-page template used elsewhere.
   ============================================================= */

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

.product-rich .product-hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 3.7rem);
}
.product-rich .product-tagline-h {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 18px;
}
.product-rich .logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-rich .logo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-rich .sec-head { max-width: none; }
.product-rich .sec-head.center { margin: 0 auto 40px; text-align: center; }
.product-rich .sec-head.center .eyebrow { justify-content: center; }
.product-rich .sec-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }

/* ---- Who This Is For ---- */
.product-rich .audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.product-rich .audience-card {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(14, 28, 46, 0.04);
}
.product-rich .audience-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(43, 179, 160, 0.10);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.product-rich .audience-card h4 { font-size: 14.5px; margin-bottom: 6px; }
.product-rich .audience-card p { font-size: 13px; color: var(--ink-muted); margin-bottom: 0; }
.product-rich .audience-callout {
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  font-size: 15.5px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 0;
}

/* ---- Cost comparison ---- */
.product-rich .compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
  background: var(--navy);
  border: 1px solid var(--teal);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(43, 179, 160, 0.15);
}
.product-rich .compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.product-rich .compare-table th,
.product-rich .compare-table td { padding: 16px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-on-dark); }
.product-rich .compare-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft-on-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--line-on-dark);
  padding-top: 22px;
}
.product-rich .compare-table thead th.win-col { color: var(--teal); }
.product-rich .compare-table td.win-col { background: rgba(43, 179, 160, 0.14); font-weight: 600; color: var(--white); }
.product-rich .compare-table tbody th { font-size: 13.5px; color: var(--ink-soft-on-dark); font-weight: 500; white-space: nowrap; }
.product-rich .compare-table tbody tr:last-child td,
.product-rich .compare-table tbody tr:last-child th { border-bottom: none; }
.product-rich .compare-table td { color: var(--ink-soft-on-dark); }
.product-rich .compare-caveat {
  color: var(--ink-soft-on-dark);
  font-size: 12.5px;
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

/* ---- Stat callout (breakeven / cost-multiple / etc.) ---- */
.product-rich .stat-callout {
  text-align: center;
  background: rgba(240, 165, 66, 0.12);
  border: 1px solid rgba(240, 165, 66, 0.3);
  border-radius: 14px;
  padding: 28px;
  max-width: 520px;
  margin: 0 auto;
}
.product-rich .stat-callout .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--amber); display: block; }
.product-rich .stat-callout .lbl { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft-on-dark); margin-top: 6px; display: block; }
.product-rich .stat-callout p { color: var(--ink-soft-on-dark); font-size: 14px; margin-top: 14px; margin-bottom: 0; }

/* ---- Value framing (no comparable paid competitor) ---- */
.product-rich .value-intro {
  color: var(--ink-soft-on-dark);
  font-size: 16.5px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
.product-rich .value-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.product-rich .value-point {
  background: var(--navy);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(43, 179, 160, 0.12);
}
.product-rich .value-point h4 { color: var(--white); font-size: 15.5px; margin-bottom: 8px; }
.product-rich .value-point p { color: var(--ink-soft-on-dark); font-size: 14px; margin-bottom: 0; }

/* ---- Why self-hosted ---- */
.product-rich .why-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.product-rich .why-chip { background: var(--white); border: 1px solid var(--line-on-light); border-radius: 10px; padding: 18px; text-align: center; }
.product-rich .why-chip .glyph { color: var(--teal-dark); margin-bottom: 10px; display: flex; justify-content: center; }
.product-rich .why-chip .glyph svg { width: 22px; height: 22px; }
.product-rich .why-chip p { font-size: 13px; color: var(--ink-muted); margin-bottom: 0; }

/* ---- Time badge ---- */
.product-rich .time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 179, 160, 0.10);
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  margin-top: 28px;
  font-weight: 600;
}
.product-rich .time-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---- Direct comparison pairing ---- */
.product-rich .pair-list {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
  background: var(--navy);
  border: 1px solid var(--teal);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(43, 179, 160, 0.18);
}
.product-rich .pair-header { display: grid; grid-template-columns: 1fr 44px 1fr; border-bottom: 1px solid var(--teal); background: rgba(43, 179, 160, 0.08); }
.product-rich .pair-header-col {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 24px;
}
.product-rich .pair-header-without { color: var(--amber); border-right: 1px solid var(--line-on-dark); }
.product-rich .pair-header-with { color: var(--teal); }
.product-rich .pair-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; border-bottom: 1px solid var(--line-on-dark); }
.product-rich .pair-row:last-child { border-bottom: none; }
.product-rich .pair-challenge { padding: 22px 24px; border-right: 1px solid var(--line-on-dark); }
.product-rich .pair-challenge p { font-size: 14px; color: var(--ink-soft-on-dark); margin-bottom: 0; }
.product-rich .pair-arrow { text-align: center; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.product-rich .pair-arrow svg { width: 18px; height: 18px; }
.product-rich .pair-solution { padding: 22px 24px; background: rgba(43, 179, 160, 0.14); }
.product-rich .pair-solution p { font-size: 14px; color: var(--white); font-weight: 500; margin-bottom: 0; }

/* ---- What You'll Need ---- */
.product-rich .requirements-list { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.product-rich .requirement-item {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(14, 28, 46, 0.04);
}
.product-rich .req-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(43, 179, 160, 0.12);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-rich .req-icon svg { width: 16px; height: 16px; }
.product-rich .requirement-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.product-rich .requirement-item p { font-size: 14px; color: var(--ink-muted); margin-bottom: 0; }

/* ---- Credibility block ---- */
.product-rich .credibility-block { display: flex; gap: 32px; align-items: center; max-width: 820px; margin: 0 auto; flex-wrap: wrap; }
.product-rich .cred-badge {
  width: 76px; height: 76px; border-radius: 16px; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px;
  text-align: center; flex-shrink: 0; line-height: 1.3;
}
.product-rich .credibility-block p { color: var(--ink-muted); font-size: 16px; flex: 1; min-width: 260px; margin-bottom: 0; }
.product-rich .credibility-block strong { color: var(--ink); }

/* ---- Getting Started — horizontal with dashed connecting line ---- */
.product-rich .steps-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.product-rich .steps-horizontal::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 11%;
  right: 11%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line-on-light) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.product-rich .gs-step-h { position: relative; z-index: 1; text-align: center; }
.product-rich .gs-step-h .gs-num { margin: 0 auto 16px; }
.product-rich .gs-step-h p { font-size: 14.5px; color: var(--ink-muted); margin-bottom: 0; }

/* ---- Support included ---- */
.product-rich .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 0 auto; }
.product-rich .support-card {
  background: var(--white); border: 1px solid var(--line-on-light); border-radius: 12px; padding: 26px;
  display: flex; gap: 16px; align-items: flex-start; box-shadow: 0 1px 2px rgba(14, 28, 46, 0.04);
}
.product-rich .support-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(43, 179, 160, 0.10); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.product-rich .support-card h4 { font-size: 15px; margin-bottom: 6px; }
.product-rich .support-card p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 0; }

/* ---- Keyboard focus states ---- */
.product-rich .btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 900px) {
  .product-rich .audience-grid,
  .product-rich .why-chips,
  .product-rich .support-grid,
  .product-rich .value-points { grid-template-columns: 1fr 1fr; }
  .product-rich .steps-horizontal { grid-template-columns: 1fr 1fr; }
  .product-rich .steps-horizontal::before { display: none; }
}

@media (max-width: 760px) {
  .product-rich .pair-header { display: none; }
  .product-rich .pair-row { grid-template-columns: 1fr; }
  .product-rich .pair-challenge { border-right: none; border-bottom: 1px solid var(--line-on-dark); }
  .product-rich .pair-arrow { padding: 8px 0; transform: rotate(90deg); }
  .product-rich .pair-tag {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 6px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.03em;
  }
  .product-rich .pair-tag-without { color: var(--amber); }
  .product-rich .pair-tag-with { color: var(--teal); }
}

@media (max-width: 640px) {
  .product-rich .audience-grid,
  .product-rich .why-chips,
  .product-rich .support-grid,
  .product-rich .steps-horizontal,
  .product-rich .value-points { grid-template-columns: 1fr; }
}
