/* All features */

html { scroll-behavior: smooth; }

/* ---------- Hero + search ---------- */
.f-hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.f-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #D5DBE3 1px, transparent 0); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
}
.f-hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.f-hero .eyebrow { margin: 0; }
.f-hero h1 { font-size: 58px; line-height: 1.03; margin: 0; max-width: 820px; animation-delay: .06s; }
.f-hero .lead { text-align: center; animation-delay: .12s; }
.f-search { width: 100%; max-width: 640px; animation-delay: .18s; }
.f-search label { position: relative; display: block; }
.f-search svg { position: absolute; inset-inline-start: 16px; top: 17px; pointer-events: none; }
.f-search .inp {
  min-height: 56px; padding-inline: 50px 16px; border-radius: 16px; font-size: 17px;
  box-shadow: 0 20px 40px -32px rgba(26, 36, 51, .5);
}
.f-search .inp:focus { box-shadow: 0 0 0 4px rgba(44, 56, 76, .12); }
.f-count { margin: 0; font-size: 14px; color: var(--slate-2); font-weight: 600; }
@media (max-width: 900px) { .f-hero h1 { font-size: 40px; } }
@media (max-width: 480px) { .f-search .inp { font-size: 15px; } }

/* ---------- Side nav + groups ---------- */
.f-list-sec { padding: 24px 0 96px; }
.f-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.f-side {
  flex: 1 1 220px; min-width: 0; max-width: 260px;
  position: sticky; top: 86px; align-self: flex-start; display: flex; flex-direction: column; gap: 2px;
}
.sl {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; line-height: 1.3;
  border-radius: 12px; color: var(--slate); text-decoration: none; font-weight: 700; font-size: 15px;
  border-inline-start: 3px solid transparent; transition: all .2s;
}
.sl:hover { background: var(--mist); color: var(--ink); }
.sl[aria-current="location"] {
  background: #fff; color: var(--ink); border-inline-start-color: var(--red);
  box-shadow: 0 10px 24px -18px rgba(26, 36, 51, .5);
}
.sl.empty { opacity: .4; }
.f-groups { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }

.grp { scroll-margin-top: 90px; }
.grp.hide { display: none; }
.grp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.grp-ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.grp-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.grp-intro { margin: -4px 0 18px; padding-inline-start: 56px; max-width: 760px; font-size: 15px; line-height: 1.65; color: var(--slate); }
@media (max-width: 480px) { .grp-intro { padding-inline-start: 0; } }
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 12px; }

/* A card collapses smoothly when the search hides it */
.feat { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .35s ease, opacity .3s ease; }
.feat.hide { grid-template-rows: 0fr; opacity: 0; }
.feat > div { overflow: hidden; min-height: 0; }
.fcard {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; margin: 0 0 12px; text-decoration: none; color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.fcard:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -26px rgba(26, 36, 51, .55); border-color: #C9D1DC; color: var(--ink); }
.fcard .ic { width: 40px; height: 40px; border-radius: 11px; transition: all .25s; }
.fcard:hover .ic { background: var(--red); color: #fff; }
/* keep the focus ring visible inside the overflow:hidden wrapper */
.fcard:focus-visible { outline-offset: -3px; }
.fc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fc-top b { font-size: 16px; }
.fc-d { font-size: 14px; line-height: 1.55; color: var(--slate); }

.f-none {
  background: #fff; border: 1px dashed #C9D1DC; border-radius: 18px; padding: 32px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.f-none[hidden] { display: none; }
.f-none b { font-size: 18px; overflow-wrap: anywhere; }
.f-none span { color: var(--slate); }
.f-none-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }

/* Search matches */
mark.hl { background: #FDEBCF; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Phones: the side nav becomes a row of chips that sticks under the header and scrolls sideways */
@media (max-width: 900px) {
  .f-side {
    top: 63px; z-index: 5; max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: nowrap; gap: 6px;
    margin-inline: -24px; padding: 10px 24px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    background: rgba(246, 247, 249, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .f-side::-webkit-scrollbar { display: none; }
  .sl { flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; min-height: 44px; padding-block: 0; background: #fff; }
  .sl[aria-current="location"] { border-color: var(--red); box-shadow: none; }
  .f-layout { gap: 20px; }
  /* header + chip row, so a tapped group's heading isn't hidden behind them */
  .grp { scroll-margin-top: 140px; }
}
@media (max-width: 480px) {
  .f-side { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 480px) {
  .grp-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.f-cta { padding: 0 24px 96px; }
.f-cta-box {
  position: relative; overflow: hidden; max-width: 1152px; margin: 0 auto; border-radius: 30px; padding: 64px 32px;
  text-align: center; color: #fff; background: var(--navy-deep); display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.f-cta-box > * { position: relative; }
.f-cta-glow {
  position: absolute !important; width: 700px; height: 700px; left: 50%; top: -380px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(224, 20, 44, .35), rgba(224, 20, 44, 0) 62%);
}
.f-cta-ecg { position: absolute !important; left: 0; right: 0; bottom: 14px; width: 100%; height: 80px; }
.f-cta-box .h2 { color: #fff; max-width: 720px; margin: 0; }
.f-cta-box .lead { color: var(--on-dark); text-align: center; }
.f-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 40px; }
@media (max-width: 480px) { .f-cta { padding: 0 16px 72px; } .f-cta-box { padding: 48px 20px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
