/*rh*/
h1, h2{color:white;}
/* Capability browser — Call accounting features
   Reuses site shell; self-contained tokens under --cf-* */
:root {
    --cf-bg: #0b1220;
    --cf-bg-2: #0f1a30;
    --cf-panel: #101a2e;
    --cf-panel-2: #142340;
    --cf-line: rgba(255,255,255,0.08);
    --cf-line-2: rgba(255,255,255,0.14);
    --cf-fg: #e8eefc;
    --cf-fg-dim: #9fb0ce;
    --cf-fg-mute: #6f7f9f;
    --cf-accent: #4ade80;
    --cf-accent-2: #60a5fa;
    --cf-warn: #fbbf24;
    --cf-pill: rgba(96,165,250,0.12);
    --cf-pill-fg: #cfe1ff;
    --cf-radius: 14px;
}

/* HERO */
.cf-hero {
    background: radial-gradient(1200px 500px at 20% -20%, rgba(96,165,250,0.18), transparent 60%),
                radial-gradient(900px 500px at 100% 0%, rgba(74,222,128,0.12), transparent 55%),
                var(--cf-bg);
    color: var(--cf-fg);
    padding: 64px 0 32px;
    border-bottom: 1px solid var(--cf-line);
}
.cf-hero .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
/*.cf-eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
    color: var(--cf-fg-dim); margin: 0 0 12px;
}
*/
.cf-eyebrow{
  display:inline-block; text-transform:uppercase; letter-spacing:.14em;
  font-size:.75rem; font-weight:700;
  color:#9ec0ff; background:rgba(31,78,216,.18);
  padding:.35rem .6rem; border-radius:999px;
}
.cf-hero h1 {
    font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.02em;
}
.cf-accent { color: var(--cf-accent); }
.cf-hero .cf-lede { color: var(--cf-fg-dim); font-size: 17px; max-width: 760px; margin: 0 0 26px; }

/* Search */
.cf-search {
    position: relative; display: flex; align-items: center; gap: 10px;
    background: var(--cf-panel); border: 1px solid var(--cf-line-2);
    border-radius: 999px; padding: 10px 16px; max-width: 720px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.cf-search-ico { width: 18px; height: 18px; fill: var(--cf-fg-dim); flex: 0 0 18px; }
.cf-search input {
    flex: 1; background: transparent; border: 0; outline: 0;
    color: var(--cf-fg); font-size: 16px; padding: 4px 0; min-width: 0;
}
.cf-search input::placeholder { color: var(--cf-fg-mute); }
.cf-clear {
    background: transparent; border: 0; color: var(--cf-fg-dim);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.cf-clear[hidden] { display: none; }
.cf-count { color: var(--cf-fg-mute); font-size: 13px; padding-left: 4px; white-space: nowrap; }

/* Filter chips */
.cf-filters { margin-top: 22px; display: grid; gap: 12px; }
.cf-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cf-filter-label {
    color: var(--cf-fg-mute); font-size: 12px; text-transform: uppercase;
    letter-spacing: .12em; margin-right: 6px;
}
.cf-chip {
    background: transparent; color: var(--cf-fg-dim);
    border: 1px solid var(--cf-line-2); border-radius: 999px;
    padding: 6px 12px; font-size: 13px; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cf-chip:hover { color: var(--cf-fg); border-color: var(--cf-fg-dim); }
.cf-chip.is-on {
    background: var(--cf-accent); color: #0b1220;
    border-color: var(--cf-accent); font-weight: 600;
}

/* Top tasks */
.cf-tasks { background: var(--cf-bg-2); color: var(--cf-fg); padding: 40px 0; border-bottom: 1px solid var(--cf-line); }
.cf-tasks .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cf-h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 18px; font-weight: 700; letter-spacing: -0.01em; }
.cf-tasks-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}
.cf-task {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--cf-panel); border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius); padding: 14px 16px;
    color: var(--cf-fg); text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.cf-task:hover { transform: translateY(-2px); border-color: var(--cf-accent-2); background: var(--cf-panel-2); }
.cf-task-ico {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--cf-pill); color: var(--cf-pill-fg); border-radius: 8px; font-size: 16px; flex: 0 0 32px;
}
.cf-task strong { display: block; font-size: 14px; }
.cf-task em { color: var(--cf-fg-dim); font-style: normal; font-size: 13px; display: block; margin-top: 2px; }

/* Browser layout */
.cf-browser { background: var(--cf-bg); color: var(--cf-fg); padding: 40px 0 56px; }
.cf-browser-grid {
    display: grid; grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.cf-toc-inner {
    position: sticky; top: 24px;
    background: var(--cf-panel); border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius); padding: 18px;
}
.cf-toc-title { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--cf-fg-mute); }
.cf-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: cf; }
.cf-toc-list li { counter-increment: cf; }
.cf-toc-list a {
    display: block; padding: 6px 10px; border-radius: 8px;
    color: var(--cf-fg-dim); text-decoration: none; font-size: 13.5px;
    border-left: 2px solid transparent;
}
.cf-toc-list a::before { content: counter(cf, decimal-leading-zero); color: var(--cf-fg-mute); margin-right: 8px; font-variant-numeric: tabular-nums; }
.cf-toc-list a:hover { color: var(--cf-fg); background: rgba(255,255,255,0.03); }
.cf-toc-list a.is-active { color: var(--cf-accent); border-left-color: var(--cf-accent); background: rgba(74,222,128,0.06); }
.cf-toc-actions { margin-top: 14px; font-size: 13px; color: var(--cf-fg-mute); display: flex; gap: 8px; }
.cf-link { background: transparent; border: 0; color: var(--cf-accent-2); cursor: pointer; padding: 0; font: inherit; }
.cf-link:hover { text-decoration: underline; }

/* Category & cards */
.cf-cat { margin-bottom: 36px; }
.cf-cat[hidden] { display: none; }
.cf-cat-head { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--cf-line); }
.cf-cat-head h2 { margin: 0; font-size: 20px; }
.cf-cat-head p { margin: 4px 0 0; color: var(--cf-fg-dim); font-size: 14px; }

.cf-card {
    background: var(--cf-panel); border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius); padding: 18px 18px 14px;
    margin: 0 0 12px;
    transition: border-color .15s ease, background .15s ease;
}
.cf-card[hidden] { display: none; }
.cf-card:hover { border-color: var(--cf-line-2); background: var(--cf-panel-2); }
.cf-card h3 { margin: 0 0 6px; font-size: 16.5px; }
.cf-out { margin: 0 0 10px; color: var(--cf-fg); font-size: 14.5px; line-height: 1.5; }
.cf-card details { margin: 0 0 10px; }
.cf-card details summary {
    cursor: pointer; color: var(--cf-accent-2); font-size: 13px;
    list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.cf-card details summary::-webkit-details-marker { display: none; }
.cf-card details summary::before { content: "+"; font-weight: 700; width: 14px; display: inline-block; }
.cf-card details[open] summary::before { content: "−"; }
.cf-card details p { margin: 8px 0 0; color: var(--cf-fg-dim); font-size: 13.5px; line-height: 1.55; }

.cf-tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cf-tags li {
    font-size: 11.5px; color: var(--cf-pill-fg);
    background: var(--cf-pill); border-radius: 999px; padding: 3px 9px;
}

.cf-empty {
    background: var(--cf-panel); border: 1px dashed var(--cf-line-2);
    border-radius: var(--cf-radius); padding: 20px; color: var(--cf-fg-dim); text-align: center;
}

/* vs PBX table */
.cf-vs { background: var(--cf-bg-2); color: var(--cf-fg); padding: 48px 0; border-top: 1px solid var(--cf-line); }
.cf-vs .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cf-vs-lede { color: var(--cf-fg-dim); margin: 0 0 18px; }
.cf-vs-tablewrap { overflow-x: auto; border: 1px solid var(--cf-line); border-radius: var(--cf-radius); }
.cf-vs-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cf-vs-table th, .cf-vs-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--cf-line); font-size: 14px; vertical-align: top; }
.cf-vs-table thead th { background: var(--cf-panel); color: var(--cf-fg); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cf-vs-table tbody th { color: var(--cf-fg); font-weight: 600; width: 30%; }
.cf-vs-table td { color: var(--cf-fg-dim); }
.cf-vs-table td.hi { color: var(--cf-fg); }
.cf-vs-table tbody tr:last-child th, .cf-vs-table tbody tr:last-child td { border-bottom: 0; }

/* What's new */
.cf-whatsnew { background: var(--cf-bg); color: var(--cf-fg); padding: 48px 0; border-top: 1px solid var(--cf-line); }
.cf-whatsnew .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cf-news { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.cf-news li { background: var(--cf-panel); border: 1px solid var(--cf-line); border-radius: var(--cf-radius); padding: 14px; }
.cf-news time { display: inline-block; font-size: 11px; color: var(--cf-accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.cf-news h3 { font-size: 14.5px; margin: 0 0 4px; }
.cf-news p { margin: 0; color: var(--cf-fg-dim); font-size: 13px; line-height: 1.5; }

/* Specs drawer */
.cf-specs { background: var(--cf-bg-2); color: var(--cf-fg); padding: 32px 0 48px; border-top: 1px solid var(--cf-line); }
.cf-specs .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cf-specs-panel {
    background: var(--cf-panel); border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius); padding: 18px 20px;
}
.cf-specs-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cf-specs-panel summary::-webkit-details-marker { display: none; }
.cf-specs-panel summary h2 { display: inline; font-size: 18px; margin: 0; }
.cf-specs-panel summary span { color: var(--cf-fg-mute); font-size: 13px; }
.cf-specs-panel summary::after { content: "+"; color: var(--cf-accent); font-size: 22px; line-height: 1; margin-left: auto; }
.cf-specs-panel[open] summary::after { content: "−"; }
.cf-specs-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.cf-specs-grid h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--cf-accent); }
.cf-specs-grid ul { margin: 0; padding-left: 16px; color: var(--cf-fg-dim); font-size: 13px; line-height: 1.6; }

/* CTA */
.cf-cta { background: linear-gradient(135deg, #102243 0%, #0b1220 100%); color: var(--cf-fg); padding: 48px 0; border-top: 1px solid var(--cf-line); }
.cf-cta-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cf-cta h2 { margin: 0 0 6px; font-size: 24px; }
.cf-cta p { margin: 0; color: var(--cf-fg-dim); }
.cf-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 14px; border: 1px solid transparent; transition: transform .12s ease, background .12s ease; }
.cf-btn-primary { background: var(--cf-accent); color: #0b1220; }
.cf-btn-primary:hover { transform: translateY(-1px); background: #6ee7a0; }
.cf-btn-ghost { background: transparent; color: var(--cf-fg); border-color: var(--cf-line-2); }
.cf-btn-ghost:hover { border-color: var(--cf-fg-dim); }

/* Responsive */
@media (max-width: 960px) {
    .cf-browser-grid { grid-template-columns: 1fr; }
    .cf-toc-inner { position: static; }
    .cf-tasks-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .cf-news { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .cf-specs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .cf-hero { padding: 44px 0 24px; }
    .cf-tasks-grid, .cf-news, .cf-specs-grid { grid-template-columns: 1fr; }
    .cf-filter-group { gap: 6px; }
    .cf-chip { padding: 5px 10px; font-size: 12.5px; }
    .cf-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Print */
@media print {
    .cf-hero, .cf-tasks, .cf-toc-inner, .cf-cta, .cf-search, .cf-filters, .cf-whatsnew { display: none !important; }
    body, .cf-browser, .cf-vs, .cf-specs { background: #fff !important; color: #111 !important; }
    .cf-card, .cf-vs-tablewrap, .cf-specs-panel { background: #fff !important; border-color: #ccc !important; color: #111 !important; }
    .cf-out, .cf-card details p, .cf-tags li, .cf-news p, .cf-vs-table td { color: #333 !important; }
    .cf-card details { display: block !important; }
    .cf-card details[open] summary::before, .cf-card details summary::before { content: "" !important; }
    .cf-card details p { display: block !important; }
    .cf-browser-grid { grid-template-columns: 1fr; }
}
