/* XMPP Chat Platform page — extends styles.css. */

.site-nav a.active { color: var(--fg-strong); }

/* ─── Hero ─────────────────────────────────────────────────── */
.xmpp-hero { padding: 100px 0 70px; }
.xmpp-hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.96;
}
.xmpp-hero .lede { max-width: 640px; }

/* Hero phone mockup — chat-app interior */
.xmpp-hero-mock { display: flex; justify-content: center; }
.xmpp-phone { width: min(100%, 320px); }
.xmpp-chat-screen {
  background: linear-gradient(180deg, #0a0d14 0%, #161e2c 100%);
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #3b6dff);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.chat-title {
  font-size: 14px; font-weight: 700; color: var(--fg-strong);
  margin: 0; letter-spacing: -0.01em;
}
.chat-sub {
  font-size: 11px; color: var(--fg-mute);
  margin: 2px 0 0;
  display: flex; align-items: center; gap: 6px;
}
.chat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 4px;
  overflow: hidden;
}
.chat-bubble {
  max-width: 78%;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  border-radius: 14px;
  word-wrap: break-word;
}
.chat-bubble-them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.chat-bubble-me {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c5cff, #3b6dff);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.chat-typing span {
  width: 5px; height: 5px;
  background: var(--fg-mute);
  border-radius: 50%;
  animation: chat-typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: 0.6; }
}

.chat-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-compose-input {
  flex: 1;
  font-size: 12px;
  color: var(--fg-mute);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
}
.chat-compose-send {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #3b6dff);
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── What's included grid ─────────────────────────────────── */
.xmpp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .xmpp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .xmpp-grid { grid-template-columns: 1fr; } }

.xmpp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.xmpp-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.xmpp-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(59, 109, 255, 0.10));
  border: 1px solid rgba(124, 92, 255, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.xmpp-icon svg { width: 26px; height: 26px; }
.xmpp-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.xmpp-card p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.6;
}
.xmpp-card code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ─── Operator boundary diagram ────────────────────────────── */
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .boundary-grid { grid-template-columns: 1fr; gap: 16px; }
}

.boundary-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
}
.boundary-yours {
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.10), transparent 50%),
    var(--bg-card);
  border-color: rgba(124, 92, 255, 0.3);
}
.boundary-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.boundary-yours h3 { border-bottom-color: rgba(124, 92, 255, 0.45); }
.boundary-sub {
  font-size: 11px;
  color: var(--fg-mute);
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.boundary-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.boundary-col li {
  font-size: 14px;
  color: var(--fg);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.boundary-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.boundary-yours li::before { opacity: 1; }
.boundary-col code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.10);
  padding: 1px 5px;
  border-radius: 4px;
}

/* The vertical divider with "Operator boundary" label */
.boundary-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 60px;
}
.boundary-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong, #2b3450), transparent);
}
.boundary-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
@media (max-width: 880px) {
  .boundary-divider {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
  }
  .boundary-line {
    height: 1px; width: auto; flex: 1;
    background: linear-gradient(90deg, transparent, var(--line-strong, #2b3450), transparent);
  }
}

/* ─── Who this is for ──────────────────────────────────────── */
.xmpp-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .xmpp-who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .xmpp-who-grid { grid-template-columns: 1fr; } }
.xmpp-who-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.18s, transform 0.18s;
}
.xmpp-who-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.xmpp-who-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.xmpp-who-card p {
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 1.55;
}

/* ─── Pricing model ────────────────────────────────────────── */
.xmpp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .xmpp-pricing-grid { grid-template-columns: 1fr; } }

.xmpp-price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.xmpp-price-card-featured {
  border-color: rgba(124, 92, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.10), transparent 60%),
    var(--bg-card);
}
.xmpp-price-cadence {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.xmpp-price-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.xmpp-price-card p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.6;
}
.xmpp-pricing-foot {
  text-align: center;
  font-size: 14px;
  color: var(--fg-mute);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Combo cards (device / chat / both) ───────────────────── */
.xmpp-combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1100px) { .xmpp-combo-grid { grid-template-columns: 1fr; } }

.xmpp-combo {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
}
.xmpp-combo-featured {
  border-color: rgba(124, 92, 255, 0.45);
  background:
    radial-gradient(ellipse at top right, rgba(59, 109, 255, 0.12), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(124, 92, 255, 0.10), transparent 60%),
    var(--bg-card);
}
.xmpp-combo-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 16px;
  align-self: flex-start;
}
.xmpp-combo h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-wrap: balance;
}
.xmpp-combo > p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.6;
  margin-bottom: 18px;
}
.xmpp-combo-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xmpp-combo-list li {
  font-size: 13.5px;
  color: var(--fg);
  padding-left: 22px;
  position: relative;
}
.xmpp-combo-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.4);
}
.xmpp-combo-list li::after {
  content: "";
  position: absolute;
  left: 3px; top: 9px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ─── Final CTA ────────────────────────────────────────────── */
.section-cta { padding: 60px 0 100px; }
.cta-card {
  background:
    radial-gradient(ellipse at top left, rgba(124, 92, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(59, 109, 255, 0.18) 0%, transparent 50%),
    var(--bg-card);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 22px;
  padding: 56px 48px;
  text-align: center;
}
.cta-card h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 14px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.cta-card p {
  color: var(--fg-mute);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
}
.cta-card .cta-row { justify-content: center; }
@media (max-width: 600px) { .cta-card { padding: 36px 24px; } }
