﻿@import './chat-demo.css';

.home-page { container-type: inline-size; max-width: 1280px; margin-inline: auto; padding-top: 24px; }
.home-page ::selection { background: #cfe0f0; color: var(--color-text); }
.home-page .home-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-page .home-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.home-page .button:hover .home-arrow { transform: translateX(3px); }
.home-page .button { transition: background .2s, box-shadow .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.home-page .button-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -8px #335572aa; }

/* Hero */
.home-page .home-hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 64px 48px 56px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-panel); overflow: hidden; }
.home-page .home-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--color-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 74% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 85% at 74% 45%, #000 30%, transparent 75%); }
.home-page .home-intro, .home-page .home-network { position: relative; min-width: 0; }
.home-page h1 { font-size: 46px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 18px; }
.home-page h1 em { font-style: normal; color: var(--color-primary); }
.home-page .home-nowrap { white-space: nowrap; }
.home-page .home-lead { color: var(--color-muted); font-size: 16px; line-height: 1.85; max-width: 34em; margin-bottom: 26px; }
.home-page .home-lead strong { color: var(--color-text); font-weight: 650; }
.home-page .home-facts { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; border-block: 1px solid var(--color-border); }
.home-page .home-facts li { padding: 12px 20px 12px 0; margin-right: 20px; border-right: 1px solid var(--color-border); font-size: 13px; color: var(--color-muted); }
.home-page .home-facts li:last-child { border-right: 0; margin-right: 0; }
.home-page .home-facts strong { display: block; font-size: 20px; line-height: 1.35; color: var(--color-text); font-variant-numeric: tabular-nums; }
.home-page .home-facts { margin-bottom: 28px; }
.home-page .home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-page .home-actions .button { padding: 11px 20px; font-weight: 600; }
.home-page .home-actions .button:not(.button-primary) { border-color: var(--color-primary); }

/* Aggregation diagram */
.home-page .home-net { display: block; width: 100%; height: auto; overflow: visible; }
.home-page .home-wire { fill: none; stroke: #cdd8e5; stroke-width: 1.5; }
.home-page .home-community-identity { display: flex; align-items: center; gap: 8px; height: 44px; padding: 5px 10px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
.home-page .home-community-avatar { position: relative; display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: var(--color-soft); color: var(--color-primary); font-size: 11px; font-weight: 700; }
.home-page .home-community-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-page .home-community-copy { min-width: 0; line-height: 1.35; }
.home-page .home-community-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.home-page .home-community-copy span { display: block; color: var(--color-muted); font-size: 11px; }
.home-page .home-directory-status { color: var(--color-muted); font-size: 14px; padding: 24px 0; }
.home-page .home-directory-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--color-primary); font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.home-page .home-directory-link:hover { text-decoration: underline; }
.home-page .home-directory-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }
.home-page .home-node-more rect { fill: none; stroke: #cdd8e5; stroke-dasharray: 4 4; }
.home-page .home-node-more text { fill: var(--color-muted); font-size: 12px; }
.home-page .home-hub rect { fill: var(--color-primary); }
.home-page .home-hub-title { fill: #fff; font-size: 15px; font-weight: 700; }
.home-page .home-hub-sub { fill: #dbe6f1; font-size: 11px; }
.home-page .home-ring { fill: none; stroke: var(--color-primary); stroke-width: 1.5; opacity: 0; }
.home-page .home-out rect { fill: var(--color-surface); stroke: var(--color-primary); }
.home-page .home-out text { fill: var(--color-primary); font-size: 13px; font-weight: 650; }
.home-page .home-pulse { fill: var(--color-primary); }
.home-page .home-pulse.is-positive { fill: var(--color-positive); }
.home-page .home-kol-chips { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.home-page .home-kol-chips li { min-width: 0; }

/* Channel demo (markup from chat-template.js) */
.home-page .chat-showcase { padding: 56px 0 0; }
.home-page .section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.home-page .section-head h2, .home-page .home-offers-section h2 { font-size: 28px; line-height: 1.35; letter-spacing: -.02em; }
.home-page .section-head p { font-size: 14px; color: var(--color-muted); margin-top: 6px; }
.home-page .chat-tools { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.home-page .chat-tools button { font-size: 13px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-primary); }
.home-page .chat-tools button:hover { background: var(--color-soft); }
.home-page .chat-tools button[aria-pressed=true] { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.home-page .chat-footnote { font-size: 12px; color: var(--color-muted); margin-top: 12px; }
.home-page .dc-server-head svg { width: 16px; height: 16px; }
.home-page .dc-embed-logo { color: var(--color-primary); }
.home-page .dc-server.selected::before { display: none; }
.home-page .dc-image-dialog { margin: auto; }

/* Membership and rebates */
.home-page .home-offers-section { padding-top: 56px; }
.home-page .home-offers-section h2 { margin-bottom: 18px; }
.home-page .home-offers { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-panel); overflow: hidden; }
.home-page .home-offer { display: grid; gap: 14px; align-content: start; padding: 30px; }
.home-page .home-offer h3 { font-size: 20px; }
.home-page .home-offer p { color: var(--color-muted); font-size: 14px; line-height: 1.8; }
.home-page .home-offer-rebate { border-left: 1px solid var(--color-border); background: linear-gradient(180deg, #f3f9f5, var(--color-surface) 65%); scroll-margin-top: 110px; }
.home-page .home-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--color-border); border-radius: 8px; margin: 0; }
.home-page .home-prices div { display: flex; flex-direction: column-reverse; padding: 10px 14px; }
.home-page .home-prices div + div { border-left: 1px solid var(--color-border); }
.home-page .home-prices dt { font-size: 13px; color: var(--color-muted); }
.home-page .home-prices dd { margin: 0; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.home-page .home-offer .home-rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.home-page .home-rate strong { font-size: 46px; line-height: 1; font-weight: 750; color: var(--color-positive); font-variant-numeric: tabular-nums; }
.home-page .home-rate span { font-size: 14px; font-weight: 600; color: var(--color-muted); }

/* FAQ */
.home-page .home-faq { margin-top: 28px; border-top: 1px solid var(--color-border); }
.home-page .home-faq details { border-bottom: 1px solid var(--color-border); }
.home-page .home-faq summary { padding: 15px 4px; font-size: 14px; }
.home-page .home-faq summary { font-weight: 650; }
.home-page .home-faq details p, .home-page .home-faq details ol { color: var(--color-muted); font-size: 14px; line-height: 1.85; padding: 0 4px 16px; max-width: 720px; }
.home-page .home-faq details ol { margin: 0; padding-left: 26px; display: grid; gap: 4px; }
.home-page .home-faq details li::marker { color: var(--color-primary); font-weight: 650; }

@container (max-width: 1100px) {
  .home-page .home-hero { padding: 48px 28px 40px; gap: 28px; }
  .home-page h1 { font-size: 38px; }
  .home-page .home-lead { font-size: 15px; }
}
@container (max-width: 820px) {
  .home-page .home-hero { grid-template-columns: 1fr; }
  .home-page .home-network { max-width: 560px; }
}
@container (max-width: 700px) {
  .home-page { padding-top: 12px; }
  .home-page .home-hero { padding: 32px 18px 26px; gap: 22px; }
  .home-page h1 { font-size: clamp(27px, 8.4cqi, 34px); }
  .home-page .home-facts li { width: 50%; margin-right: 0; padding: 10px 0; border-right: 0; }
  .home-page .home-net { display: none; }
  .home-page .home-kol-chips { display: grid; }
  .home-page .chat-showcase, .home-page .home-offers-section { padding-top: 40px; }
  .home-page .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .home-page .section-head h2, .home-page .home-offers-section h2 { font-size: 23px; }
  .home-page .home-offers { grid-template-columns: 1fr; }
  .home-page .home-offer { padding: 22px 18px; }
  .home-page .home-offer-rebate { border-left: 0; border-top: 1px solid var(--color-border); }
  .home-page .home-prices div { padding: 10px; }
  .home-page .home-prices dd { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .button, .home-page .home-arrow { transition: none; }
  .home-page .button-primary:hover { transform: none; }
}
