/* =============================================================
   features.css — AsterCTI Features page
   Scoped, additive layout for /features only. Reuses the existing
   design tokens from style.css (--ink, --wire, --signal, --border,
   --shadow-*, --radius-*, --font-*) — no tokens are redefined here.
   Every selector below is namespaced with "ft-" so nothing here can
   collide with or override the shared theme.
============================================================= */

/* -------------------------------------------------------------
   Quick nav — capability overview strip under the hero
------------------------------------------------------------- */
.ft-quicknav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.ft-quicknav-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.ft-quicknav-track::-webkit-scrollbar { display: none; }
.ft-quicknav-track a {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ft-quicknav-track a:hover {
  color: var(--white);
  background: var(--wire);
  border-color: var(--wire);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
   Split layout — spotlight rows (left) + capability panel (right)
------------------------------------------------------------- */
.ft-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.ft-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ft-spotlight-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
}
.ft-spotlight-item:first-child { padding-top: 4px; }
.ft-spotlight-item:last-child { border-bottom: none; }
.ft-spotlight-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-light);
  padding-top: 4px;
}
.ft-spotlight-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(18,199,168,0.12), rgba(61,90,254,0.12));
  color: var(--wire);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-spotlight-icon .icon-svg { width: 1.25rem; height: 1.25rem; }
.ft-spotlight-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.ft-spotlight-copy p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

/* Capability panel — single card holding a compact list, replaces a
   grid of many identical small cards. */
.ft-panel {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
}
.ft-panel--accent { background: var(--white); box-shadow: var(--shadow-sm); }
.ft-panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.ft-row-grid { display: grid; gap: 4px; }
.ft-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.ft-row:last-child { border-bottom: none; }
.ft-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--signal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-row-icon .icon-svg { width: 0.95rem; height: 0.95rem; }
.ft-row-copy { display: flex; flex-direction: column; gap: 2px; }
.ft-row-copy strong { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.ft-row-copy small { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

/* -------------------------------------------------------------
   Duo panels — comparison-style side-by-side blocks
   (PBX Features / Call Recording)
------------------------------------------------------------- */
.ft-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}
.ft-duo .ft-panel { height: 100%; }

.ft-icon-list { display: flex; flex-direction: column; gap: 4px; }
.ft-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.ft-icon-row:last-child { border-bottom: none; }
.ft-icon-row-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18,199,168,0.14), rgba(61,90,254,0.14));
  color: var(--wire);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-icon-row-mark .icon-svg { width: 1rem; height: 1rem; }
.ft-icon-row-copy { display: flex; flex-direction: column; gap: 3px; }
.ft-icon-row-copy strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.ft-icon-row-copy small { color: var(--muted); font-size: 0.83rem; line-height: 1.55; }

/* -------------------------------------------------------------
   Quad — Agent Productivity: a single grouped panel, four rows
------------------------------------------------------------- */
.ft-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ft-quad-item {
  background: var(--white);
  padding: clamp(22px, 2.6vw, 28px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ft-quad-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--cloud);
  color: var(--wire);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-quad-icon .icon-svg { width: 1.15rem; height: 1.15rem; }
.ft-quad-item strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--ink); display: block; margin-bottom: 6px; }
.ft-quad-item p { color: var(--muted); font-size: 0.87rem; line-height: 1.55; margin: 0; }

/* -------------------------------------------------------------
   Metric list — Reporting: a clean two-column data list,
   not a grid of stat cards
------------------------------------------------------------- */
.ft-metric-list {
  columns: 2;
  column-gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
.ft-metric-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
}
.ft-metric-list .ft-metric-row:nth-last-child(-n+2) { border-bottom: none; }
.ft-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--signal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-metric-icon .icon-svg { width: 1rem; height: 1rem; }
.ft-metric-copy { display: flex; flex-direction: column; gap: 3px; }
.ft-metric-copy strong { font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.ft-metric-copy small { color: var(--muted); font-size: 0.83rem; line-height: 1.55; }

/* -------------------------------------------------------------
   Administration — narrow intro + compact list, side by side
------------------------------------------------------------- */
.ft-admin-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.ft-admin-intro .section-head { margin-bottom: 0; max-width: none; }
.ft-admin-list { display: flex; flex-direction: column; gap: 2px; }

/* -------------------------------------------------------------
   Logo wall — Supported CRM: flat pills, no bordered card grid
------------------------------------------------------------- */
.ft-logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ft-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ft-logo-pill:hover {
  border-color: color-mix(in srgb, var(--crm-color, var(--wire)) 45%, var(--border));
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.ft-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crm-color, var(--wire));
  background: color-mix(in srgb, var(--crm-color, var(--wire)) 14%, transparent);
}
.ft-logo-mark .icon-svg { width: 0.85rem; height: 0.85rem; }

/* -------------------------------------------------------------
   Supported PBX — compact two-column list with dividers
------------------------------------------------------------- */
.ft-pbx-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
.ft-pbx-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.ft-pbx-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--wire);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-pbx-icon .icon-svg { width: 1rem; height: 1rem; }
.ft-pbx-copy { display: flex; flex-direction: column; gap: 3px; }
.ft-pbx-copy strong { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.ft-pbx-copy small { color: var(--muted); font-size: 0.83rem; line-height: 1.55; }

/* -------------------------------------------------------------
   Bento — Why Choose AsterCTI: one large tile + smaller tiles,
   instead of a uniform icon-card grid
------------------------------------------------------------- */
.ft-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 14px;
}
.ft-bento-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.ft-bento-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(18,199,168,0.3);
}
.ft-bento-item--lg { grid-column: span 2; grid-row: span 2; justify-content: center; }
.ft-bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18,199,168,0.18), rgba(61,90,254,0.18));
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ft-bento-item--lg .ft-bento-icon { width: 54px; height: 54px; }
.ft-bento-icon .icon-svg { width: 1.15rem; height: 1.15rem; }
.ft-bento-item--lg .ft-bento-icon .icon-svg { width: 1.4rem; height: 1.4rem; }
.ft-bento-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin: 0;
}
.ft-bento-item--lg h3 { font-size: 1.35rem; }
.ft-bento-item p {
  color: rgba(255,255,255,0.62);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.ft-bento-item--lg p { font-size: 0.95rem; }

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 991.98px) {
  .ft-split { grid-template-columns: 1fr; }
  .ft-duo { grid-template-columns: 1fr; }
  .ft-admin-wrap { grid-template-columns: 1fr; }
  .ft-bento { grid-template-columns: repeat(2, 1fr); }
  .ft-bento-item--lg { grid-column: span 2; grid-row: span 1; }
  .ft-metric-list { columns: 1; max-width: 640px; }
  .ft-pbx-list { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 575.98px) {
  .ft-quicknav-track { padding: 12px 0; }
  .ft-spotlight-item { grid-template-columns: auto 1fr; }
  .ft-spotlight-num { display: none; }
  .ft-quad { grid-template-columns: 1fr; }
  .ft-bento { grid-template-columns: 1fr; }
  .ft-bento-item--lg { grid-column: span 1; }
}
