/*
 * Features highlights (/features-highlights): hero, a sticky jump bar, feature rows with a
 * screenshot beside the text, compact cards for the smaller features, and a closing call to
 * action. Loaded by html/com_content/article/default.php when the article carries the .sr-fh
 * wrapper. Colours are the template's tokens (both schemes follow), and each plan's badge in
 * that plan's tier colour, as on the plans page (pricing.css), so a plan looks the same on both
 * pages. The page's own --sr-fh-* names stay, each set from a template token: brand is a fill,
 * link is brand as text (they part in the dark scheme).
 */

.sr-fh {
  --sr-fh-ink: var(--sr-ink);
  --sr-fh-text: var(--sr-text);
  --sr-fh-muted: var(--sr-muted);
  --sr-fh-brand: var(--sr-brand);
  --sr-fh-brand-dark: var(--sr-brand-strong);
  --sr-fh-brand-deep: var(--sr-brand-deep);
  --sr-fh-link: var(--sr-link);
  --sr-fh-link-hover: var(--sr-link-hover);
  --sr-fh-heading: var(--sr-brand-deep);
  --sr-fh-accent: var(--sr-accent);
  --sr-fh-accent-text: var(--sr-accent-text);
  --sr-fh-line: var(--sr-line);
  --sr-fh-line-soft: var(--sr-line-soft);
  --sr-fh-surface: var(--sr-surface);
  --sr-fh-tint: var(--sr-tint);
  --sr-fh-radius: 10px;
  --sr-fh-shadow: var(--sr-shadow);
  --sr-fh-shadow-hover: var(--sr-shadow-raised);
  --sr-fh-focus: var(--sr-focus);
  --sr-fh-nav-height: 56px;
  color: var(--sr-fh-text);
  font-size: 16px;
  line-height: 1.65;
}
[data-bs-theme="dark"] .sr-fh {
  --sr-fh-heading: var(--sr-ink);
}
.sr-fh *,
.sr-fh *::before,
.sr-fh *::after {
  box-sizing: border-box;
}
/* Anchors land below the sticky jump bar. */
.sr-fh [id] {
  scroll-margin-top: calc(var(--sr-fh-nav-height) + 16px);
}
.sr-fh__anchor {
  display: block;
  height: 0;
}
.sr-fh__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sr-fh p {
  margin: 0 0 14px;
}
.sr-fh a {
  color: var(--sr-fh-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sr-fh a:hover {
  color: var(--sr-fh-link-hover);
}
/* The theme removes the focus outline from links; put a visible one back. */
.sr-fh a:focus-visible {
  outline: 3px solid var(--sr-fh-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The theme greys out em; keep it the text colour, only italic. */
.sr-fh em {
  color: inherit;
  font-style: italic;
}

/* Buttons */
.sr-fh .sr-fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid var(--sr-fh-brand);
  border-radius: 6px;
  background: var(--sr-fh-brand);
  color: #fff;
  font-family: var(--sr-font-heading);
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sr-fh .sr-fh-btn:hover,
.sr-fh .sr-fh-btn:focus {
  border-color: var(--sr-fh-brand-dark);
  background: var(--sr-fh-brand-dark);
  color: #fff;
}
.sr-fh .sr-fh-btn--outline {
  background: transparent;
  color: var(--sr-fh-link-hover);
}
.sr-fh .sr-fh-btn--outline:hover,
.sr-fh .sr-fh-btn--outline:focus {
  background: var(--sr-fh-brand);
  color: #fff;
}
.sr-fh .sr-fh-btn--accent {
  border-color: var(--sr-fh-accent);
  background: var(--sr-fh-accent);
  color: #2b1600;
}
.sr-fh .sr-fh-btn--accent:hover,
.sr-fh .sr-fh-btn--accent:focus {
  border-color: #ffa040;
  background: #ffa040;
  color: #2b1600;
}
.sr-fh .sr-fh-btn--light {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.sr-fh .sr-fh-btn--light:hover,
.sr-fh .sr-fh-btn--light:focus {
  background: #fff;
  color: var(--sr-fh-brand-deep);
}
.sr-fh-cta .sr-fh-btn:focus-visible {
  outline-color: #fff;
}

/* Hero */
.sr-fh-hero {
  margin: 0 0 24px;
  padding: 44px 48px 40px;
  border: 1px solid var(--sr-fh-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf4f7 0%, #f7fbfc 55%, #fff6ec 100%);
}
[data-bs-theme="dark"] .sr-fh-hero {
  background: linear-gradient(135deg, var(--sr-tint) 0%, var(--sr-surface) 55%, #2a2118 100%);
}
.sr-fh-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--sr-fh-accent-text);
  font-family: var(--sr-font-heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sr-fh h2.sr-fh-hero__title {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--sr-fh-heading);
  font-family: var(--sr-font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
}
.sr-fh-hero__lead {
  max-width: 780px;
  font-size: 17px;
}
.sr-fh-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}
.sr-fh-hero__facts li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--sr-fh-line);
  border-radius: var(--sr-fh-radius);
  background: color-mix(in srgb, var(--sr-fh-surface) 85%, transparent);
  color: var(--sr-fh-text);
  font-size: 14px;
  line-height: 1.4;
}
.sr-fh-hero__facts strong {
  display: block;
  margin-bottom: 2px;
  color: var(--sr-fh-link-hover);
  font-family: var(--sr-font-heading);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}
.sr-fh .sr-fh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* Jump bar */
.sr-fh-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--sr-fh-line);
  background: color-mix(in srgb, var(--sr-bg) 96%, transparent);
}
.sr-fh-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 8px 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}
.sr-fh-nav li {
  flex: none;
  margin: 0;
}
.sr-fh .sr-fh-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--sr-fh-ink);
  font-family: var(--sr-font-heading);
  font-size: 15px;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}
.sr-fh .sr-fh-nav a:hover,
.sr-fh .sr-fh-nav a:focus {
  background: var(--sr-fh-tint);
  color: var(--sr-fh-link-hover);
}
.sr-fh .sr-fh-nav a:focus-visible {
  outline-offset: -3px;
}

/* Plan legend and badges */
.sr-fh .sr-fh-legend {
  margin: 16px 0 0;
  color: var(--sr-fh-muted);
  font-size: 14px;
  line-height: 2;
}
.sr-fh-badge {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sr-font-heading);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  white-space: nowrap;
}
.sr-fh-badge--free {
  background: #4f7591;
  color: #fff;
}
.sr-fh-badge--single {
  background: #f9c454;
  color: #3b2a00;
}
.sr-fh-badge--bundle {
  background: #3e7f3d;
  color: #fff;
}
.sr-fh-badge--hub {
  background: #c34258;
  color: #fff;
}
/* These two keep their light ground in both schemes, so their text is fixed too. */
.sr-fh-badge--service {
  border-color: var(--sr-fh-brand);
  background: #fff;
  color: #0f5a6c;
}
.sr-fh-badge--new {
  border-color: var(--sr-fh-accent);
  background: #fff4e8;
  color: #a35100;
}
.sr-fh .sr-fh-feature__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

/* Groups */
.sr-fh-group {
  margin: 72px 0 0;
}
.sr-fh-group__head {
  max-width: 760px;
  margin: 0 0 8px;
}
.sr-fh .sr-fh-group__num {
  margin: 0 0 4px;
  color: var(--sr-fh-accent-text);
  font-family: var(--sr-font-heading);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.sr-fh h2.sr-fh-group__title {
  margin: 0 0 10px;
  color: var(--sr-fh-link);
  font-family: var(--sr-font-heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}
.sr-fh .sr-fh-group__lead {
  margin: 0;
  font-size: 17px;
}

/* Feature rows: text beside a screenshot, alternating sides */
.sr-fh-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "body media";
  gap: 44px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--sr-fh-line-soft);
}
.sr-fh-feature--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "media body";
}
.sr-fh-feature--wide {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "body" "media";
  gap: 24px;
}
.sr-fh-feature--wide .sr-fh-feature__body {
  max-width: 780px;
}
.sr-fh-feature__body {
  grid-area: body;
  min-width: 0;
}
.sr-fh-feature__media {
  grid-area: media;
  min-width: 0;
}
.sr-fh h3.sr-fh-feature__title {
  margin: 0 0 12px;
  color: var(--sr-fh-ink);
  font-family: var(--sr-font-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}
.sr-fh .sr-fh-feature__more,
.sr-fh .sr-fh-card__more {
  margin: 16px 0 0;
  font-weight: 600;
}

/* Lists with a tick instead of a bullet */
.sr-fh .sr-fh-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.sr-fh .sr-fh-list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 28px;
  line-height: 1.55;
}
.sr-fh .sr-fh-list li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sr-fh-tint);
  box-shadow: inset 0 0 0 1px var(--sr-fh-line);
}
.sr-fh .sr-fh-list li::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 4px;
  height: 7px;
  border: solid var(--sr-fh-link);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Screenshots */
.sr-fh figure {
  margin: 0;
}
.sr-fh .sr-fh-feature__media a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--sr-fh-line);
  border-radius: var(--sr-fh-radius);
  background: var(--sr-fh-surface);
  box-shadow: var(--sr-fh-shadow);
  transition: box-shadow 0.2s ease;
}
.sr-fh .sr-fh-feature__media a:hover {
  box-shadow: var(--sr-fh-shadow-hover);
}
/* The screenshot fills its card, which is its frame. */
.sr-fh .sr-fh-feature__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.sr-fh figcaption {
  margin: 10px 2px 0;
  color: var(--sr-fh-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Cards for the smaller features */
.sr-fh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 0 0;
}
.sr-fh-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sr-fh-cards--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sr-fh-card {
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--sr-fh-line);
  border-top: 4px solid var(--sr-fh-brand);
  border-radius: var(--sr-fh-radius);
  background: var(--sr-fh-surface);
  box-shadow: var(--sr-fh-shadow);
}
.sr-fh h3.sr-fh-card__title {
  margin: 0 0 8px;
  color: var(--sr-fh-ink);
  font-family: var(--sr-font-heading);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
}
.sr-fh-card p {
  font-size: 15px;
  line-height: 1.6;
}
.sr-fh-card p:last-child {
  margin-bottom: 0;
}

/* Closing call to action */
.sr-fh-cta {
  margin: 80px 0 0;
  padding: 40px 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sr-fh-brand-deep) 0%, var(--sr-fh-brand) 100%);
  color: #e8f3f6;
  text-align: center;
}
.sr-fh h2.sr-fh-cta__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--sr-font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}
.sr-fh .sr-fh-cta p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}
.sr-fh .sr-fh-cta .sr-fh-hero__actions {
  justify-content: center;
  max-width: none;
  margin-top: 22px;
}

/* Tablet: the screenshot goes under its text. */
@media (max-width: 959px) {
  .sr-fh-feature,
  .sr-fh-feature--flip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "body" "media";
    gap: 22px;
  }
  .sr-fh-hero__facts,
  .sr-fh-cards--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone */
@media (max-width: 639px) {
  .sr-fh {
    font-size: 15px;
  }
  .sr-fh-hero {
    padding: 28px 20px 24px;
  }
  .sr-fh h2.sr-fh-hero__title {
    font-size: 30px;
  }
  .sr-fh-hero__lead,
  .sr-fh .sr-fh-group__lead,
  .sr-fh-cta p {
    font-size: 16px;
  }
  .sr-fh-hero__facts strong {
    font-size: 22px;
  }
  .sr-fh .sr-fh-hero__actions .sr-fh-btn {
    flex: 1 1 100%;
  }
  .sr-fh-group {
    margin-top: 56px;
  }
  .sr-fh h2.sr-fh-group__title {
    font-size: 28px;
  }
  .sr-fh h3.sr-fh-feature__title {
    font-size: 24px;
  }
  .sr-fh-feature {
    padding: 32px 0;
  }
  .sr-fh-cards,
  .sr-fh-cards--two,
  .sr-fh-cards--four {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }
  .sr-fh-cta {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-fh * {
    transition: none !important;
  }
}

@media print {
  .sr-fh-nav,
  .sr-fh .sr-fh-hero__actions {
    display: none;
  }
  .sr-fh-hero,
  .sr-fh-cta {
    background: none;
    color: #000;
  }
  .sr-fh h2.sr-fh-cta__title {
    color: #000;
  }
  .sr-fh-feature,
  .sr-fh-card {
    break-inside: avoid;
  }
  .sr-fh .sr-fh-feature__media a,
  .sr-fh-card {
    box-shadow: none;
  }
}
