/* =============================================================
   JITSI PRODUCT PAGE — page-specific styles
   Scoped under .jitsi-page so nothing here leaks into the
   generic product-page template used by the other 9 products.
   ============================================================= */

.jitsi-page .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;
}

.jitsi-page .product-hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 3.7rem);
}
.jitsi-page .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;
}
.jitsi-page .logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}
.jitsi-page .logo-frame img,
.jitsi-page .logo-frame video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.jitsi-page .logo-frame .yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.jitsi-page .logo-frame .yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

/* ---- Who This Is For ---- */
.jitsi-page .audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.jitsi-page .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);
}
.jitsi-page .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;
}
.jitsi-page .audience-card h4 { font-size: 14.5px; margin-bottom: 6px; }
.jitsi-page .audience-card p { font-size: 13px; color: var(--ink-muted); margin-bottom: 0; }
.jitsi-page .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 ---- */
.jitsi-page .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);
}
.jitsi-page .compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.jitsi-page .compare-table th,
.jitsi-page .compare-table td { padding: 16px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-on-dark); }
.jitsi-page .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;
}
.jitsi-page .compare-table thead th.win-col { color: var(--teal); }
.jitsi-page .compare-table td.win-col { background: rgba(43, 179, 160, 0.14); font-weight: 600; color: var(--white); }
.jitsi-page .compare-table tbody th { font-size: 13.5px; color: var(--ink-soft-on-dark); font-weight: 500; white-space: nowrap; }
.jitsi-page .compare-table tbody tr:last-child td,
.jitsi-page .compare-table tbody tr:last-child th { border-bottom: none; }
.jitsi-page .compare-table td { color: var(--ink-soft-on-dark); }
.jitsi-page .compare-caveat {
  color: var(--ink-soft-on-dark);
  font-size: 12.5px;
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}
.jitsi-page .breakeven-stat {
  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;
}
.jitsi-page .breakeven-stat .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--amber); display: block; }
.jitsi-page .breakeven-stat .lbl { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft-on-dark); margin-top: 6px; display: block; }
.jitsi-page .breakeven-stat p { color: var(--ink-soft-on-dark); font-size: 14px; margin-top: 14px; margin-bottom: 0; }

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

/* ---- Time badge ---- */
.jitsi-page .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;
}
.jitsi-page .time-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---- Direct comparison pairing ---- */
.jitsi-page .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);
}
.jitsi-page .pair-header { display: grid; grid-template-columns: 1fr 44px 1fr; border-bottom: 1px solid var(--teal); background: rgba(43, 179, 160, 0.08); }
.jitsi-page .pair-header-col {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 24px;
}
.jitsi-page .pair-header-without { color: var(--amber); border-right: 1px solid var(--line-on-dark); }
.jitsi-page .pair-header-with { color: var(--teal); }
.jitsi-page .pair-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; border-bottom: 1px solid var(--line-on-dark); }
.jitsi-page .pair-row:last-child { border-bottom: none; }
.jitsi-page .pair-challenge { padding: 22px 24px; border-right: 1px solid var(--line-on-dark); }
.jitsi-page .pair-challenge p { font-size: 14px; color: var(--ink-soft-on-dark); margin-bottom: 0; }
.jitsi-page .pair-arrow { text-align: center; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.jitsi-page .pair-arrow svg { width: 18px; height: 18px; }
.jitsi-page .pair-solution { padding: 22px 24px; background: rgba(43, 179, 160, 0.14); }
.jitsi-page .pair-solution p { font-size: 14px; color: var(--white); font-weight: 500; margin-bottom: 0; }

/* ---- What You'll Need ---- */
.jitsi-page .requirements-list { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.jitsi-page .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);
}
.jitsi-page .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;
}
.jitsi-page .req-icon svg { width: 16px; height: 16px; }
.jitsi-page .requirement-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.jitsi-page .requirement-item p { font-size: 14px; color: var(--ink-muted); margin-bottom: 0; }

/* ---- Credibility block ---- */
.jitsi-page .credibility-block { display: flex; gap: 32px; align-items: center; max-width: 820px; margin: 0 auto; flex-wrap: wrap; }
.jitsi-page .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;
}
.jitsi-page .credibility-block p { color: var(--ink-muted); font-size: 16px; flex: 1; min-width: 260px; margin-bottom: 0; }
.jitsi-page .credibility-block strong { color: var(--ink); }

/* ---- Getting Started — horizontal with dashed connecting line ---- */
.jitsi-page .steps-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.jitsi-page .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;
}
.jitsi-page .gs-step-h { position: relative; z-index: 1; text-align: center; }
.jitsi-page .gs-step-h .gs-num { margin: 0 auto 16px; }
.jitsi-page .gs-step-h p { font-size: 14.5px; color: var(--ink-muted); margin-bottom: 0; }

/* ---- Support included ---- */
.jitsi-page .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 0 auto; }
.jitsi-page .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);
}
.jitsi-page .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;
}
.jitsi-page .support-card h4 { font-size: 15px; margin-bottom: 6px; }
.jitsi-page .support-card p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 0; }

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

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

@media (max-width: 760px) {
  .jitsi-page .pair-header { display: none; }
  .jitsi-page .pair-row { grid-template-columns: 1fr; }
  .jitsi-page .pair-challenge { border-right: none; border-bottom: 1px solid var(--line-on-dark); }
  .jitsi-page .pair-arrow { padding: 8px 0; transform: rotate(90deg); }
  .jitsi-page .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;
  }
  .jitsi-page .pair-tag-without { color: var(--amber); }
  .jitsi-page .pair-tag-with { color: var(--teal); }
}

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