/* /features. Colours come from shows-ui.css (--ev-*), which switches with html.night-mode.
   Selectors are scoped to .features-page so night-mode.css's global p and heading colours don't apply. */

.features-page {
  --fx-tint: #fff6ee;
  --fx-hero: radial-gradient(900px 440px at 50% -160px, rgba(223, 100, 15, 0.18), transparent 70%),
    radial-gradient(520px 320px at 100% 100%, rgba(124, 58, 237, 0.07), transparent 70%),
    var(--ev-bg);
  --fx-green: #15803d;
  --fx-blue: #1d4ed8;
  --fx-purple: #7c3aed;
  --fx-orange: #c2410c;
  --fx-red: #b91c1c;
  --fx-yellow: #a16207;
  --fx-teal: #0f766e;
  --fx-pink: #be185d;
  --fx-star: #f59e0b;
  flex: 1 0 auto;
  /* Clears the fixed site header, like .wrapper on other pages. */
  margin-top: var(--ev-header-h);
  background: var(--ev-bg);
  color: var(--ev-text);
}

html.night-mode .features-page {
  --fx-tint: #17191c;
  --fx-hero: radial-gradient(900px 440px at 50% -160px, rgba(244, 123, 40, 0.2), transparent 70%),
    radial-gradient(520px 320px at 100% 100%, rgba(167, 139, 250, 0.08), transparent 70%),
    var(--ev-bg);
  --fx-green: #4ade80;
  --fx-blue: #60a5fa;
  --fx-purple: #a78bfa;
  --fx-orange: #fb923c;
  --fx-red: #f87171;
  --fx-yellow: #facc15;
  --fx-teal: #2dd4bf;
  --fx-pink: #f472b6;
}

.features-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.fx-hero {
  padding: 72px 0 64px;
  background: var(--fx-hero);
  border-bottom: 1px solid var(--ev-border);
  text-align: center;
}

.fx-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-page .fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--ev-brand) 30%, transparent);
  border-radius: 999px;
  background: var(--ev-brand-soft);
  color: var(--ev-brand);
  font-size: 14px;
  font-weight: 500;
}

.fx-badge i {
  font-size: 16px;
}

.features-page .fx-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ev-text);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.fx-hero h1 span {
  color: var(--ev-brand);
}

.features-page .fx-hero__lead {
  max-width: 640px;
  margin: 0;
  color: var(--ev-muted);
  font-size: 17px;
  line-height: 1.7;
}

.fx-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px !important;
}

.fx-hero__tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 500;
}

.fx-hero__tags i {
  color: var(--fx-green);
  font-size: 18px;
}

.fx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.fx-btn i {
  font-size: 18px;
}

.fx-btn:focus-visible {
  outline: 2px solid var(--ev-brand);
  outline-offset: 3px;
}

.fx-btn--primary {
  background: var(--ev-brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(223, 100, 15, 0.8);
}

.fx-btn--primary:hover {
  background: var(--ev-brand-strong);
  color: #fff;
  transform: translateY(-1px);
}

html.night-mode .fx-btn--primary:hover {
  color: #111315;
}

.fx-btn--ghost {
  border-color: var(--ev-border);
  background: var(--ev-surface);
  color: var(--ev-text);
}

.fx-btn--ghost:hover {
  border-color: var(--ev-brand);
  color: var(--ev-brand);
}

.fx-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 28px !important;
  color: var(--ev-muted);
  font-size: 14px;
}

.fx-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fx-proof > li > i {
  color: var(--ev-brand);
  font-size: 18px;
}

.fx-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--fx-star);
  font-size: 15px;
}

/* ---------- Sections ---------- */

.fx-section {
  padding: 72px 0;
}

.fx-section--tinted {
  background: var(--fx-tint);
  border-top: 1px solid var(--ev-border);
  border-bottom: 1px solid var(--ev-border);
}

.fx-section__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.fx-section__head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.features-page .fx-section__head h2 {
  margin: 0;
  color: var(--ev-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.features-page .fx-section__head p {
  margin: 10px 0 0;
  color: var(--ev-muted);
  font-size: 16px;
  line-height: 1.7;
}

.features-page .fx-section__head strong {
  color: var(--ev-brand);
  font-weight: 600;
}

/* ---------- Search and categories ---------- */

.fx-filter {
  position: sticky;
  top: calc(var(--ev-header-h) + 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: color-mix(in srgb, var(--ev-surface) 92%, transparent);
  box-shadow: var(--ev-shadow);
  backdrop-filter: blur(10px);
}

.fx-search {
  position: relative;
  display: block;
  margin: 0;
}

.fx-search > i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--ev-muted);
  font-size: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.fx-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 44px;
  border: 1px solid var(--ev-border);
  border-radius: 12px;
  background: var(--ev-bg);
  color: var(--ev-text);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-search input::placeholder {
  color: var(--ev-muted);
  font-size: 16px;
}

.fx-search input:focus {
  border-color: var(--ev-brand);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-brand) 20%, transparent);
}

.fx-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.fx-categories::-webkit-scrollbar {
  display: none;
}

.fx-chip {
  flex-shrink: 0;
  min-height: 38px;
  padding: 7px 16px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fx-chip:hover {
  border-color: var(--ev-brand);
  color: var(--ev-brand);
}

.fx-chip.is-active {
  border-color: var(--ev-brand);
  background: var(--ev-brand);
  color: #fff;
}

html.night-mode .fx-chip.is-active {
  color: #111315;
}

.fx-chip:focus-visible,
.fx-card__toggle:focus-visible,
.fx-card__link:focus-visible {
  outline: 2px solid var(--ev-brand);
  outline-offset: 2px;
}

/* ---------- Feature cards ---------- */

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.fx-card {
  --tone: var(--ev-brand);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-card:hover,
.fx-card.is-open {
  border-color: color-mix(in srgb, var(--tone) 45%, var(--ev-border));
  box-shadow: var(--ev-shadow);
}

.fx-card--ticketing { --tone: var(--ev-brand); }
.fx-card--payments { --tone: var(--fx-green); }
.fx-card--analytics { --tone: var(--fx-blue); }
.fx-card--marketing { --tone: var(--fx-pink); }
.fx-card--support { --tone: var(--fx-teal); }
.fx-card--platform { --tone: var(--fx-purple); }
.fx-card--communication { --tone: var(--fx-blue); }
.fx-card--security { --tone: var(--fx-red); }
.fx-card--video { --tone: var(--fx-purple); }

.fx-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fx-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
  font-size: 23px;
}

.fx-emoji {
  font-size: 22px;
  line-height: 1;
}

.fx-tag {
  --tag: var(--ev-muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag) 13%, transparent);
  color: var(--tag);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.fx-tag--green { --tag: var(--fx-green); }
.fx-tag--blue { --tag: var(--fx-blue); }
.fx-tag--purple { --tag: var(--fx-purple); }
.fx-tag--orange { --tag: var(--fx-orange); }
.fx-tag--red { --tag: var(--fx-red); }
.fx-tag--yellow { --tag: var(--fx-yellow); }

.features-page .fx-card__title {
  margin: 0;
  color: var(--ev-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.fx-card__category {
  margin-top: 4px;
  color: var(--tone);
  font-size: 13px;
  font-weight: 500;
}

.features-page .fx-card__text {
  margin: 10px 0 0;
  color: var(--ev-muted);
  font-size: 14px;
  line-height: 1.65;
}

.fx-card__detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--ev-border);
}

.features-page .fx-card__detail-title {
  margin: 0 0 10px;
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 600;
}

.fx-card__detail li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  color: var(--ev-text);
  font-size: 14px;
  line-height: 1.55;
}

.fx-card__detail li i {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--tone);
  font-size: 16px;
}

.fx-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fx-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  color: var(--ev-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.fx-card__link:hover {
  border-color: var(--tone);
  color: var(--tone);
}

.fx-card__toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-top: 14px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--tone);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.fx-card__toggle i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.fx-card__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.fx-empty {
  padding: 48px 20px;
  border: 1px dashed var(--ev-border);
  border-radius: var(--ev-radius);
  text-align: center;
}

.fx-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ev-surface-muted);
  color: var(--ev-muted);
  font-size: 22px;
}

.features-page .fx-empty p {
  margin: 0;
  color: var(--ev-muted);
  font-size: 14px;
}

.features-page .fx-empty .fx-empty__title {
  margin-bottom: 4px;
  color: var(--ev-text);
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Reviews ---------- */

.fx-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fx-review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
}

.fx-review__mark {
  position: absolute;
  top: 20px;
  right: 20px;
  color: color-mix(in srgb, var(--ev-brand) 35%, transparent);
  font-size: 28px;
}

.fx-review blockquote {
  flex: 1;
  margin: 0;
  color: var(--ev-text);
  font-size: 15px;
  line-height: 1.7;
}

.fx-review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ev-border);
}

.fx-review__avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ev-brand), #e8336d);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.fx-review__name,
.fx-review__role {
  display: block;
}

.fx-review__name {
  color: var(--ev-text);
  font-size: 15px;
  font-weight: 600;
}

.fx-review__role {
  color: var(--ev-muted);
  font-size: 13px;
}

/* ---------- Call to action ---------- */

.fx-section--cta {
  padding-top: 64px;
}

.fx-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 44px 48px;
  border-radius: 24px;
  background: linear-gradient(120deg, #ff7a45 0%, var(--ev-brand) 45%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 24px 50px -28px rgba(223, 100, 15, 0.9);
}

html.night-mode .fx-cta {
  background: linear-gradient(120deg, #b8461f 0%, #9a3412 55%, #7c2d12 100%);
  box-shadow: none;
}

.fx-cta::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.fx-cta__copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.features-page .fx-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.features-page .fx-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
}

.features-page .fx-cta strong {
  color: #fff;
  font-weight: 600;
}

.fx-btn--light {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: #fff;
  color: #9a3412;
}

.fx-btn--light:hover {
  background: #fff7ed;
  color: #7c2d12;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .fx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .fx-hero {
    padding: 48px 0;
  }

  .features-page .fx-hero h1 {
    font-size: 30px;
  }

  .fx-section {
    padding: 56px 0;
  }

  .fx-reviews {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

@media (max-width: 575px) {
  .features-page .fx-hero h1 {
    font-size: 26px;
  }

  .features-page .fx-hero__lead {
    font-size: 16px;
  }

  .features-page .fx-section__head h2,
  .features-page .fx-cta h2 {
    font-size: 20px;
  }

  .fx-hero__actions,
  .fx-hero__actions .fx-btn {
    width: 100%;
  }

  .fx-filter {
    top: calc(var(--ev-header-h) + 4px);
    margin-right: -6px;
    margin-left: -6px;
    padding: 10px;
  }

  .fx-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-cta {
    padding: 28px 22px;
  }

  .fx-btn--light {
    width: 100%;
  }
}

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