.features-page {
  background: #fff;
  color: var(--ink);
}

.features-page .topbar,
.features-page .topbar.scrolled {
  position: sticky;
  top: 0;
  height: 88px;
  background: rgba(217, 245, 232, .97);
  border-bottom: 1px solid rgba(11, 92, 63, .1);
  box-shadow: none;
}

.features-page .navlinks > a[aria-current="page"]::after {
  right: 0;
}

.features-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 55px 24px 48px;
  text-align: center;
}

.back-pricing {
  width: max-content;
  margin: 0 auto 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4c6258;
  font-size: 13px;
  font-weight: 700;
}

.back-pricing span {
  transition: transform .2s;
}

.back-pricing:hover span {
  transform: translateX(-4px);
}

.features-kicker {
  color: var(--deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.features-hero h1 {
  margin: 14px 0 16px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -2.3px;
}

.features-hero > p {
  max-width: 700px;
  margin: 0 auto;
  color: #52675e;
  font-size: 17px;
  line-height: 1.55;
}

.features-status {
  width: max-content;
  margin: 22px auto 0;
  padding: 7px 11px;
  border: 1px solid #c7dacf;
  border-radius: 18px;
  background: #f6faf8;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f645a;
  font-size: 10px;
  font-weight: 700;
}

.features-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 163, 110, .12);
}

.plan-overview {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #cdd8d2;
  border-radius: 22px;
  background: #fff;
}

.plan-overview article {
  min-height: 235px;
  padding: 23px 18px 18px;
  border-left: 1px solid #d8e1dc;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-overview article:first-child {
  border-left: 0;
}

.plan-overview article.recommended {
  outline: 2px solid var(--deep);
  border-radius: 20px;
  z-index: 2;
}

.plan-overview article.active-plan {
  background: #f2faf6;
}

.plan-overview em {
  position: absolute;
  left: 50%;
  top: -13px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 13px;
  background: var(--deep);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.plan-overview article > span {
  color: var(--deep);
  font-size: 17px;
  font-weight: 800;
}

.plan-overview strong {
  margin-top: 18px;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -.8px;
}

.plan-overview small {
  margin-top: 5px;
  color: #66776f;
  font-size: 9px;
}

.plan-overview a {
  width: 100%;
  min-height: 39px;
  margin-top: auto;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
}

.plan-overview .recommended a {
  background: #171918;
  color: #fff;
}

.features-comparison {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 100px;
}

.comparison-intro {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.comparison-intro h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -1px;
}

.comparison-intro > div {
  display: flex;
  gap: 8px;
}

.comparison-intro button {
  padding: 8px 11px;
  border: 1px solid #c2d0c9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.comparison-intro button:hover {
  border-color: var(--deep);
  color: var(--deep);
}

.feature-group {
  border-top: 1px solid #a9bab1;
}

.feature-group:last-of-type {
  border-bottom: 1px solid #a9bab1;
}

.feature-group > summary {
  min-height: 82px;
  padding: 21px 4px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 21px;
  font-weight: 800;
}

.feature-group > summary::-webkit-details-marker {
  display: none;
}

.feature-group > summary i {
  width: 34px;
  height: 34px;
  border: 1px solid #aebfb6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
}

.feature-table-scroll {
  margin-bottom: 22px;
  border: 1px solid #d1dcd6;
  border-radius: 15px;
  overflow-x: auto;
}

.feature-table-scroll:focus-visible {
  outline: 3px solid rgba(16, 163, 110, .22);
  outline-offset: 3px;
}

.feature-table-scroll table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.feature-table-scroll th,
.feature-table-scroll td {
  padding: 16px 12px;
  border-bottom: 1px solid #e0e7e3;
  border-left: 1px solid #edf1ef;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.feature-table-scroll tr:last-child th,
.feature-table-scroll tr:last-child td {
  border-bottom: 0;
}

.feature-table-scroll th:first-child,
.feature-table-scroll td:first-child {
  border-left: 0;
}

.feature-table-scroll thead th {
  position: sticky;
  top: 88px;
  z-index: 2;
  background: #f7faf8;
  color: var(--deep);
  font-size: 13px;
}

.feature-table-scroll thead th:first-child {
  width: 29%;
  color: var(--ink);
  text-align: left;
}

.feature-table-scroll tbody th {
  width: 29%;
  text-align: left;
  font-weight: 700;
}

.feature-table-scroll tbody th small {
  display: block;
  margin-top: 4px;
  color: #6b7d74;
  font-size: 9px;
  font-weight: 500;
}

.feature-table-scroll .standard-col {
  background: #eef9f3;
}

.comparison-legal {
  max-width: 800px;
  margin: 25px auto 0;
  color: #62736b;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

.features-final {
  width: min(1120px, calc(100% - 48px));
  min-height: 285px;
  margin: 0 auto 90px;
  padding: 52px 24px;
  border-radius: 70px;
  background: var(--mint-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.features-final h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -1px;
}

.features-final p {
  max-width: 660px;
  margin: 13px auto 24px;
  color: #41594e;
}

.features-final > div {
  display: flex;
  align-items: center;
  gap: 22px;
}

.features-final > div > a:last-child {
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.features-primary {
  padding: 13px 23px;
  border-radius: 10px;
  background: #171918;
  border-color: #171918;
  color: #fff;
}

@media (max-width: 900px) {
  .features-page .topbar,
  .features-page .topbar.scrolled {
    height: 68px;
  }

  .features-hero {
    padding-top: 38px;
  }

  .features-hero h1 {
    font-size: 40px;
  }

  .plan-overview {
    width: calc(100% - 40px);
    padding: 14px 20px 22px 0;
    border: 0;
    border-radius: 0;
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
  }

  .plan-overview article {
    flex: 0 0 220px;
    min-height: 220px;
    border: 1px solid #d3ddd8;
    border-radius: 17px;
    scroll-snap-align: start;
  }

  .features-comparison {
    width: calc(100% - 40px);
    padding-bottom: 72px;
  }

  .feature-table-scroll thead th {
    top: 68px;
  }

  .features-final {
    width: calc(100% - 40px);
    margin-bottom: 70px;
    border-radius: 40px;
  }
}

@media (max-width: 560px) {
  .features-hero {
    padding-inline: 20px;
  }

  .back-pricing {
    margin-bottom: 27px;
  }

  .features-hero h1 {
    font-size: 35px;
  }

  .features-hero > p {
    font-size: 15px;
  }

  .comparison-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-group > summary {
    font-size: 17px;
  }

  .features-final h2 {
    font-size: 30px;
  }

  .features-final > div {
    flex-direction: column;
    gap: 18px;
  }
}
