/* ============================================================
   pages/features.css — Features page (RTG capability directory)
   ------------------------------------------------------------
   Depends on: tokens.css, base.css, chrome.css, compare.css
   (compare.css supplies shared chrome: hero, glance, sx-mast,
   final-cta. This file adds the page-specific feature-list /
   feature-row styles.)
   ============================================================ */


/* ════ HERO + GLANCE OVERRIDES — tighten the vertical rhythm
   (compare.css uses generous padding for the standalone Compare page;
   Features has more sections so the cumulative whitespace was too
   airy). These overrides only apply when features.css is loaded. */
.hero          { padding: 32px 0 16px; }
.glance        { padding: 16px 0 32px; }


/* ════ FEATURE SECTION — capability group with header + list ════ */
.features-section {
  padding: 48px 0;
  background: var(--bg);
}
.features-section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}


/* ════ SECTION HEAD — h2 + intro paragraph, centered ════ */
.features-head {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}
.features-head h2 {
  font-size: 40px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 18px;
}
.features-head h2 .accent {
  color: var(--red);
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
}
.features-head p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) {
  .features-head h2 { font-size: 30px; }
  .features-section { padding: 60px 0; }
}


/* ════ FEATURE LIST — table-shaped, scannable card ════
   Mirrors the compare-table feel: name in left column with a green
   check, description in right column. Bordered rows, tight padding,
   hover highlight. Mobile collapses to stacked rows. */
.features-list {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px -16px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}
.features-section.alt .features-list {
  background: #fff;
}


/* ════ FEATURE ROW — two-column grid (name | description) ════ */
.feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  transition: background-color 0.15s ease;
}
.feature-row:last-child {
  border-bottom: none;
}
.feature-row:hover {
  background: var(--bg-soft);
}

/* Left column — capability name with a green-check badge prefix */
.feature-row h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.35;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.feature-row h3::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  transform: translateY(2px);
}

/* Right column — description */
.feature-row p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  margin: 0;
}
.feature-row p strong {
  color: var(--ink);
  font-weight: 700;
}

/* Mobile — stack name above description */
@media (max-width: 720px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px;
  }
  .feature-row h3 { font-size: 14.5px; }
  .feature-row p { font-size: 13.5px; }
}
