/* ============================================================
   MiTax features page
   ============================================================ */

/* ---------- Hero (quiet, snow) ---------- */
.features-hero {
  background: var(--snow);
  padding-block: clamp(72px, 9vw, 120px) clamp(40px, 5vw, 64px);
}
.features-hero-inner {
  display: grid;
  gap: 20px;
  max-width: 1040px;
}
.features-hero .display { max-width: 20ch; }
.features-hero .lede { max-width: 60ch; }

/* ---------- Sticky jumpnav ---------- */
.features-jumpnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: color-mix(in oklab, var(--snow) 92%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border-block: 1px solid var(--ink-200);
  padding-block: 12px;
}
.features-jumpnav-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.features-jumpnav-list::-webkit-scrollbar { display: none; }
.features-jumpnav-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative;
}
.features-jumpnav-list a:hover {
  background: var(--ink-100);
  color: var(--ink);
}
.features-jumpnav-list a.is-active {
  background: var(--primary-050);
  color: var(--primary-700);
}
.features-jumpnav-list a.is-active::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- Section ---------- */
.features-section {
  border-top: 1px solid var(--ink-200);
  padding-block: clamp(72px, 9vw, 120px);
  scroll-margin-top: calc(var(--nav-h) + 64px);
}
.features-section:nth-of-type(even) { background: var(--snow); }
.features-section:first-of-type { border-top: 0; }

.features-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 56ch;
  position: relative;
}
.features-section-index {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.features-section-head .h2 { margin: 0; }
.features-section-head .lede { margin-top: 4px; }

/* ---------- Feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1080px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-300);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary-050);
  color: var(--primary);
  margin-bottom: 4px;
}
.feature-icon img {
  width: 22px;
  height: 22px;
  display: block;
  /* tint stock-line svgs roughly toward primary; svgs are ink-on-transparent */
  filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2543%) hue-rotate(213deg) brightness(98%) contrast(99%);
}
.feature-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0;
  max-width: none;
}
.feature-card p:not(.feature-pill) { flex: 1; }
.feature-pill {
  margin-top: 8px;
  display: inline-block;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--primary-050);
  color: var(--primary-700);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- Closing CTA ---------- */
.features-cta-section {
  border-top: 1px solid var(--ink-200);
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--snow);
}
.features-cta {
  display: grid;
  gap: 18px;
  max-width: 800px;
}
.features-cta .h2 { max-width: 22ch; margin: 0; }
.features-cta-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
