/* ─── FEATURES PAGE ─── */
.page-features {
  --feat-sidebar-w: 260px;
  --feat-sticky-top: 104px;
  background: var(--cream);
}

/* Progress + sticky jump bar */
.feat-progress-wrap {
  position: sticky;
  top: var(--feat-sticky-top);
  z-index: 180;
  background: var(--white);
  border-bottom: 1px solid #e8e4dc;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.feat-progress {
  height: 3px;
  background: #ebe6dc;
}
.feat-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-accent), var(--gold));
  transition: width 0.12s ease-out;
}
.feat-jump-scroll {
  display: none;
  overflow-x: auto;
  padding: 10px 20px 12px;
  gap: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.feat-jump-scroll::-webkit-scrollbar { display: none; }
.feat-jump-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-mid);
  background: var(--cream);
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.feat-jump-pill:hover,
.feat-jump-pill.is-active {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

/* Hero */
.page-hero--features .page-hero-content { max-width: 720px; }
.feat-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.feat-hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px 22px;
  min-width: 120px;
}
.feat-hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.feat-hero-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  display: block;
}

/* Overview grid */
.feat-overview {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding-top: 64px;
  padding-bottom: 64px;
}
.feat-overview-intro {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}
.feat-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--site-max);
  margin: 0 auto;
}
.feat-mini {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 18px 18px;
  border: 1px solid #e8e4dc;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-margin-top: 140px;
}
.feat-mini:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-accent);
}
.feat-mini.is-active {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 2px rgba(71, 89, 41, 0.15), var(--shadow-md);
}
.feat-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.feat-mini-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(71, 89, 41, 0.2);
}
.feat-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.feat-mini h3 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  line-height: 1.45;
}
.feat-mini-arrow {
  font-size: 14px;
  color: var(--green-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.feat-mini:hover .feat-mini-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Shell: sidebar + content */
.feat-shell {
  display: grid;
  grid-template-columns: var(--feat-sidebar-w) 1fr;
  gap: 48px;
  width: min(var(--site-max), calc(100vw - 2 * var(--site-side)));
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 56px var(--site-gutter) 80px;
  align-items: start;
  box-sizing: border-box;
}
.feat-sidebar {
  position: sticky;
  top: calc(var(--feat-sticky-top) + 48px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.feat-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.feat-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feat-sidebar-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.feat-sidebar-list a span {
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(71, 89, 41, 0.35);
  min-width: 22px;
}
.feat-sidebar-list a:hover {
  background: var(--cream);
  color: var(--green-dark);
}
.feat-sidebar-list a.is-active {
  background: var(--cream);
  color: var(--green-dark);
  border-left-color: var(--green-accent);
}
.feat-sidebar-list a.is-active span { color: var(--green-dark); }

.feat-content { min-width: 0; }

/* Feature cards */
.feature-card {
  scroll-margin-top: 130px;
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.feature-card:last-child { margin-bottom: 0; }
.feature-card.is-visible { box-shadow: var(--shadow-md); }
.feature-card-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ebe6dc;
}
.feature-card-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--green-dark);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card-meta { flex: 1; min-width: 0; }
.feature-card-tag {
  display: inline-block;
  background: rgba(106, 171, 40, 0.15);
  color: var(--green-mid);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.feature-card-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}
.feature-card-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 68ch;
}
.feature-card-body p { margin-bottom: 16px; }
.feature-card-body p:last-child { margin-bottom: 0; }
.feature-card-body strong { color: var(--text-dark); font-weight: 700; }

.feat-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
  max-width: 100%;
}
.feat-hl {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
}
.feat-hl::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green-accent);
}
.feat-callout {
  background: linear-gradient(135deg, var(--green-dark) 0%, #3a4a22 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 22px 26px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 100%;
  border-left: 4px solid var(--gold);
}
.feat-callout strong { color: var(--gold-light); }

.feature-card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ebe6dc;
  flex-wrap: wrap;
}
.feat-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.feat-card-link:hover { color: var(--green-dark); gap: 10px; }
.feat-card-link--next { margin-left: auto; }

/* Mobile accordion */
.feat-accordion-wrap {
  display: none;
  padding: 48px var(--site-side) 64px;
  background: var(--cream);
}
.feat-accordion-wrap .section-title { margin-bottom: 8px; }
.feat-accordion {
  max-width: 720px;
  margin: 28px auto 0;
}
.feat-accordion .accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.feat-accordion .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.feat-accordion .accordion-item {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feat-accordion .accordion-item.open {
  border-color: var(--green-accent);
  box-shadow: var(--shadow-md);
}
.feat-accordion .accordion-btn {
  padding: 18px 20px;
  gap: 14px;
}
.feat-accordion .accordion-btn-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-dark);
  font-size: 14px;
}
.feat-accordion .accordion-btn-title {
  font-size: 14px;
  line-height: 1.35;
}
.feat-accordion .accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feat-accordion .accordion-item.open .accordion-icon {
  background: var(--green-accent);
  color: var(--white);
}
.feat-accordion .accordion-body-inner {
  padding: 0 20px 22px 74px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* CTA on features page */
.page-features .cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

@media (max-width: 1024px) {
  .feat-overview-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-shell {
    grid-template-columns: 1fr;
    padding: 40px 28px 60px;
  }
  .feat-sidebar { display: none; }
  .feat-jump-scroll { display: flex; }
}

@media (max-width: 768px) {
  .feat-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .desktop-features { display: none !important; }
  .feat-accordion-wrap { display: block; }
  .feat-progress-wrap { top: 0; }
  .feat-hero-stats { gap: 10px; }
  .feat-hero-stat { min-width: calc(50% - 8px); flex: 1; }
  .feature-card { padding: 28px 22px; }
  .feat-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .feat-overview-grid { grid-template-columns: 1fr; }
  .feat-hero-stat { min-width: 100%; }
}
