/* ==========================================================================
   Features page
   ========================================================================== */

/* hero -------------------------------------------------------------------- */
.vc-feat-hero { padding-bottom: 88px; }
.vc-feat-hero .vc-lead p span { display: block; margin-top: 4px; }
.vc-feat-hero__glyphs { display: none; }

@media (min-width: 1100px) {
  .vc-feat-hero > .vc-container { display: grid; grid-template-columns: 1fr 360px; column-gap: 64px; align-items: center; }
  .vc-feat-hero .vc-h1, .vc-feat-hero .vc-lead { grid-column: 1; }
  .vc-feat-hero__glyphs {
    grid-column: 2; grid-row: 1 / span 2;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
    transform: rotate(-6deg);
  }
  .vc-feat-hero__glyph {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; font-size: 26px; color: var(--vc-blue);
    background: rgba(255, 255, 255, .04); border: 1px solid var(--vc-line-dark);
  }
  .vc-feat-hero__glyph:nth-child(3n+2) { background: rgba(68, 138, 255, .14); border-color: rgba(68, 138, 255, .3); color: var(--vc-white); }
  .vc-feat-hero__glyph:nth-child(7) { background: var(--vc-gradient); border-color: transparent; color: var(--vc-white); box-shadow: 0 14px 30px -12px rgba(68, 138, 255, .9); }
}

/* layout ------------------------------------------------------------------ */
.vc-feat-layout { position: relative; background: var(--vc-white); }
.vc-feat-layout__grid { display: block; }

/* rail / chip bar (mobile first: horizontal chips) -------------------------- */
.vc-feat-rail {
  position: sticky; top: calc(var(--vc-header-h) + 20px); z-index: 20;
  margin: -28px calc(var(--vc-gutter) * -1) 0;
  padding: 10px 0;
}
.vc-feat-rail__nav {
  margin: 0 var(--vc-gutter);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--vc-line); border-radius: 16px; box-shadow: var(--vc-shadow);
}
.vc-feat-rail__list {
  position: relative; list-style: none; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; padding: 6px; scroll-snap-type: x proximity;
}
.vc-feat-rail__list::-webkit-scrollbar { display: none; }
.vc-feat-rail__list > li { flex: 0 0 auto; scroll-snap-align: center; }
.vc-feat-rail__link {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 11px;
  max-width: 240px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--vc-slate);
  transition: background .2s, color .2s;
}
.vc-feat-rail__label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.vc-feat-rail__icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vc-blue-tint); color: var(--vc-blue-700); font-size: 16px;
  transition: background .2s, color .2s;
}
.vc-feat-rail__num { display: none; }
.vc-feat-rail__link:hover { color: var(--vc-blue-800); background: var(--vc-light-hover); }
.vc-feat-rail__link:active { background: var(--vc-light-active); }
.vc-feat-rail__link.is-active:hover { color: var(--vc-white); background: var(--vc-navy); }
.vc-feat-rail__link.is-active { background: var(--vc-navy); color: var(--vc-white); }
.vc-feat-rail__link.is-active .vc-feat-rail__icon { background: var(--vc-blue); color: var(--vc-white); }

/* feature blocks ---------------------------------------------------------- */
.vc-feat-list { padding: 40px 0 24px; }
.vc-feat {
  position: relative; padding: 48px 0;
  scroll-margin-top: calc(var(--vc-header-h) + 100px);
}
.vc-feat + .vc-feat { border-top: 1px solid var(--vc-line); }

.vc-feat__head { position: relative; margin-bottom: 22px; }
.vc-feat__mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.vc-feat__num {
  font-size: 64px; font-weight: 900; line-height: .85; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--vc-blue);
  font-variant-numeric: tabular-nums;
}
.vc-feat__icon { margin-top: 4px; }
.vc-feat__title { max-width: 760px; }
.vc-feat__lead { max-width: 720px; margin-top: 12px; font-weight: 500; color: var(--vc-ink); }

.vc-feat__prose { max-width: 780px; font-size: 16px; line-height: 1.75; }
.vc-feat__prose p:first-child::first-line { color: var(--vc-ink); }

.vc-feat__card {
  margin-top: 30px; display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--vc-line); border-radius: var(--vc-radius-lg);
  background: var(--vc-white); box-shadow: var(--vc-shadow); overflow: hidden;
}
.vc-feat__media {
  margin: 0; padding: 28px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(68, 138, 255, .14), rgba(68, 138, 255, 0) 60%),
    var(--vc-light);
  border-bottom: 1px solid var(--vc-line);
}
.vc-feat__media img { width: 100%; max-width: 300px; }
.vc-feat__checks { padding: 26px 22px; gap: 14px; font-size: 15px; }

/* variant b: dark navy card */
.vc-feat--b .vc-feat__card { background: var(--vc-gradient-dark); border-color: transparent; box-shadow: var(--vc-shadow-lg); color: var(--vc-gray-1); }
.vc-feat--b .vc-feat__media {
  margin: 10px; border-radius: 16px; border-bottom: 0;
  background:
    radial-gradient(circle at 70% 25%, rgba(68, 138, 255, .18), rgba(68, 138, 255, 0) 60%),
    var(--vc-light);
}
.vc-feat--b .vc-feat__checks > li strong { color: var(--vc-white); }
.vc-feat--b .vc-feat__checks > li::before { background: rgba(68, 138, 255, .22); color: var(--vc-blue); }
.vc-feat--b .vc-feat__num { -webkit-text-stroke-color: var(--vc-navy); }

/* CTA */
.vc-feat-cta { padding-top: 0; }

/* tablet+ ----------------------------------------------------------------- */
@media (min-width: 720px) {
  .vc-feat__num { font-size: 80px; }
  .vc-feat__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .vc-feat__media { border-bottom: 0; border-right: 1px solid var(--vc-line); padding: 32px; }
  .vc-feat__media img { position: sticky; top: calc(var(--vc-header-h) + 60px); }
  .vc-feat__checks { padding: 30px 30px 30px 28px; align-content: center; }
  .vc-feat--b .vc-feat__card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .vc-feat--b .vc-feat__media { order: 2; border-right: 0; margin: 12px; }
  .vc-feat--b .vc-feat__checks { padding: 30px 12px 30px 32px; }
}

/* desktop: vertical rail --------------------------------------------------- */
@media (min-width: 1100px) {
  .vc-feat-layout__grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
  .vc-feat-rail {
    top: calc(var(--vc-header-h) + 32px); margin: 0; padding: 56px 0 40px;
  }
  .vc-feat-rail__nav {
    margin: 0; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .vc-feat-rail__list {
    display: grid; gap: 1px; padding: 0 4px 0 0; overflow: visible auto;
    max-height: calc(100vh - var(--vc-header-h) - 70px);
    scrollbar-width: thin; scrollbar-color: var(--vc-line) transparent;
    border-left: 2px solid var(--vc-line);
  }
  .vc-feat-rail__link {
    position: relative; gap: 10px; padding: 6px 10px 6px 14px; margin-left: -2px; border-radius: 0 10px 10px 0;
    max-width: none; font-size: 13.5px; font-weight: 500; border-left: 2px solid transparent;
  }
  .vc-feat-rail__label { display: block; overflow: visible; }
  .vc-feat-rail__icon { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; background: none; color: var(--vc-gray-2); }
  .vc-feat-rail__num { display: inline; flex: 0 0 auto; width: 18px; font-size: 11px; font-weight: 700; color: var(--vc-gray-1); font-variant-numeric: tabular-nums; order: -1; }
  .vc-feat-rail__label { flex: 1 1 auto; }
  .vc-feat-rail__link:hover { background: var(--vc-light-hover); }
  .vc-feat-rail__link:hover .vc-feat-rail__icon { color: var(--vc-blue-800); }
  .vc-feat-rail__link.is-active:hover { color: var(--vc-ink); background: var(--vc-light-active); }
  .vc-feat-rail__link.is-active { background: var(--vc-blue-tint); color: var(--vc-ink); font-weight: 700; border-left-color: var(--vc-blue); }
  .vc-feat-rail__link.is-active .vc-feat-rail__icon { background: var(--vc-blue); color: var(--vc-white); }
  .vc-feat-rail__link.is-active .vc-feat-rail__num { color: var(--vc-blue-700); }

  .vc-feat-list { padding: 24px 0 40px; }
  .vc-feat { padding: 64px 0; scroll-margin-top: calc(var(--vc-header-h) + 24px); }
  .vc-feat__head { display: grid; grid-template-columns: 124px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; margin-bottom: 12px; }
  .vc-feat__lead { margin-bottom: 14px; }
  .vc-feat__mark { grid-row: 1 / -1; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
  .vc-feat__num { font-size: 92px; }
  .vc-feat__title { grid-column: 2; }
  .vc-feat__lead { grid-column: 2; }
  .vc-feat__prose { margin-left: 152px; }
  .vc-feat__card { margin-top: 36px; }
}
