.page-features-template {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2ff;
  --ink: #10233e;
  --ink-2: #44556f;
  --line: #dbe4f0;
  --primary: #10233e;
  --accent: #6f6bff;
  --accent-2: #8b5cf6;
  --shadow: 0 20px 60px rgba(16,35,62,.08);
  --shadow-sm: 0 4px 12px rgba(16,35,62,.04);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

.page-features-template .container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-features-template main a {
  text-decoration: none;
  color: inherit;
  transition: color .18s ease;
}

.page-features-template h1,
.page-features-template h2,
.page-features-template h3,
.page-features-template h4 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.page-features-template .wp-block-group,
.page-features-template .wp-block-columns,
.page-features-template .wp-block-buttons,
.page-features-template .wp-block-image {
  margin-bottom: 0;
}

.page-features-template .section {
  padding: 76px 0;
  position: relative;
}

.page-features-template .section.soft {
  background: var(--bg-soft);
  position: relative;
}

.page-features-template .section.soft::before,
.page-features-template .section.soft::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.page-features-template .section.soft::before {
  top: 0;
}

.page-features-template .section.soft::after {
  bottom: 0;
}

.page-features-template .page-hero {
  padding: 62px 0 24px;
  background: var(--bg);
}

.page-features-template .page-hero h1 {
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 18px 0 14px;
  color: var(--ink);
  max-width: 1100px;
}

.page-features-template .page-hero p.lead {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 760px;
  margin-bottom: 0;
  line-height: 1.5;
}

.page-features-template .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.page-features-template .wp-block-columns.card-grid {
  display: grid;
  margin-bottom: 0;
}

.page-features-template .wp-block-column {
  min-width: 0;
}

.page-features-template .card-grid {
  display: grid;
  gap: 18px;
}

.page-features-template .card-grid.three,
.page-features-template .features-page__grid {
  grid-template-columns: repeat(3, 1fr);
}

.page-features-template .card,
.page-features-template .wp-block-column.card {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 34px rgba(16,35,62,.04);
  transition: all .28s cubic-bezier(.22,1,.36,1);
  height: 100%;
  cursor: pointer;
}

.page-features-template .card:hover,
.page-features-template .wp-block-column.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(16,35,62,.08), 0 0 0 1px rgba(111,107,255,.08);
  border-color: rgba(111,107,255,.15);
}

.page-features-template .card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.page-features-template .card p,
.page-features-template .wp-block-column.card p,
.page-features-template .wp-block-column.card > p,
.page-features-template .wp-block-column.card > .wp-block-paragraph,
.page-features-template .wp-block-column.card p {
  position: relative;
  z-index: 1;
}

.page-features-template .card h3 a,
.page-features-template .wp-block-column.card h3 a {
  color: inherit;
}

.page-features-template .card h3 a::after,
.page-features-template .wp-block-column.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.page-features-template .card h3 a:hover {
  color: var(--accent);
}

.page-features-template .card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.features-page {
  background: var(--bg);
}

.features-page__hero {
  padding-bottom: 18px;
}

.features-page__overview {
  margin-bottom: 0;
}

.features-page__grid {
  align-items: stretch;
}

.features-page__card {
  height: 100%;
}

.features-page + .site-footer,
.page-features-template .site-footer {
  margin-top: 0;
}

@media (max-width: 840px) {
  .page-features-template .section {
    padding: 56px 0;
  }

  .page-features-template .page-hero h1 {
    font-size: 44px;
  }

  .page-features-template .card-grid.three,
  .page-features-template .features-page__grid,
  .page-features-template .wp-block-columns.card-grid.three {
    grid-template-columns: 1fr;
  }

  .page-features-template .features-page__grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .page-features-template .container {
    width: calc(100% - 32px);
  }

  .page-features-template .page-hero h1 {
    font-size: 32px;
  }

  .page-features-template .page-hero p.lead,
  .page-features-template .card p {
    font-size: 17px;
  }

  .page-features-template .features-page__grid {
    gap: 14px;
  }
}
