/* Features detail page */

.features-page-hero {
  padding: calc(var(--section-pad) - 20px) 0 32px;
}

.features-page-hero .section-head {
  max-width: 720px;
}

.features-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.features-toc a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.features-toc a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.feature-detail {
  padding: var(--section-pad) 0;
  scroll-margin-top: 88px;
}

.feature-detail:nth-child(even) {
  background: color-mix(in srgb, var(--card-bg) 50%, var(--bg));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.feature-detail-side {
  position: sticky;
  top: 100px;
}

.feature-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-active);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-detail-side h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-detail-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.feature-detail-body p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.feature-detail-body p strong {
  color: var(--text);
  font-weight: 600;
}

.feature-detail-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 24px 0 28px;
}

.feature-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.feature-detail-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.feature-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.features-cta {
  padding-bottom: var(--section-pad);
}

@media (max-width: 900px) {
  .feature-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-detail-side {
    position: static;
  }

  .feature-detail-list {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] .features-toc a,
:root[data-theme="light"] .features-toc a {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .feature-detail:nth-child(even),
:root[data-theme="light"] .feature-detail:nth-child(even) {
  background: var(--bg-muted);
}

html[data-theme="light"] .feature-detail-icon,
:root[data-theme="light"] .feature-detail-icon {
  background: rgba(214, 255, 63, 0.35);
  border-color: rgba(184, 230, 0, 0.5);
  color: #111111;
}
