﻿/* FileMakr homepage â€” project directory / search-first library */

:root {
  --fm-orange: #F17F23;
  --fm-blue: #2A47FF;
  --fm-navy: #0E1220;
  --fm-muted: #6B7280;
  --fm-bg: #F7F8FC;
  --fm-white: #FFFFFF;
  --fm-border: #E5E7EB;
  --fm-radius: 14px;
  --fm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fm-max: 1240px;
}

.fm-home-page body,
.fm-home {
  background: var(--fm-bg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.fm-home .container,
.fm-dir-hero .container,
.fm-directory .container {
  max-width: var(--fm-max);
}

/* ===== Search hero ===== */

.fm-dir-hero {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px) 0 clamp(16px, 2vw, 22px);
  overflow: hidden;
  border-bottom: 0;
  background: linear-gradient(180deg, #FAFBFE 0%, #FFFFFF 100%);
}

.fm-dir-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 18% 12%, rgba(42, 71, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 78%, rgba(241, 127, 35, 0.07), transparent 52%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(42, 71, 255, 0.04), transparent 60%),
    linear-gradient(180deg, #F4F6FB 0%, #FFFFFF 72%);
}

.fm-dir-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.fm-dir-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.fm-dir-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 16px 9px 11px;
  border-radius: 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fm-dir-hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 0;
}

.fm-dir-hero__trust-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.fm-dir-hero__title {
  margin: 0 auto 12px;
  max-width: 18ch;
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #0B1220;
  text-wrap: balance;
}

@media (min-width: 992px) {
.fm-dir-hero__title {
    max-width: none;
  }
}

.fm-dir-hero__lead {
  margin: 0 auto 22px;
  max-width: 820px;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: #5B6472;
}

/* Search â€” icon + input + orange button */

.fm-dir-search {
  margin: 0 auto 14px;
  max-width: 860px;
  width: 100%;
  text-align: left;
}

.fm-dir-search__field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(14, 18, 32, 0.07);
}

.fm-dir-search__icon {
  display: block;
  color: #9CA3AF;
  flex-shrink: 0;
}

.fm-dir-search__input {
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--fm-navy);
  background: transparent;
}

.fm-dir-search__input::placeholder {
  color: #9CA3AF;
}

.fm-dir-search__field:focus-within {
  border-color: rgba(241, 127, 35, 0.45);
  box-shadow: 0 0 0 4px rgba(241, 127, 35, 0.12), 0 8px 28px rgba(14, 18, 32, 0.07);
}

.fm-dir-search__btn {
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: #F17F23;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--fm-ease), filter 0.2s;
  white-space: nowrap;
}

.fm-dir-search__btn:hover { background: #e0701a; }

.fm-dir-search__btn:focus-visible {
  outline: 2px solid var(--fm-blue);
  outline-offset: 2px;
}

.fm-dir-search__hints {
  margin: 12px 0 0;
  font-size: 13px;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.5;
}

.fm-dir-hint {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: #6B7280;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.fm-dir-hint:hover {
  color: var(--fm-blue);
  text-decoration-color: currentColor;
}

.fm-dir-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.fm-dir-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #111827 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.fm-dir-chip:hover {
  border-color: rgba(42, 71, 255, 0.35);
  color: var(--fm-blue) !important;
}

.fm-dir-chip--active,
.fm-dir-chip--active:hover {
  background: #2A47FF;
  border-color: #2A47FF;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(42, 71, 255, 0.28);
}

@media (max-width: 767.98px) {
  .fm-dir-chips {
    display: none !important;
  }
}

@media (max-width: 575px) {
.fm-dir-hero {
    padding-top: 20px;
  }

.fm-dir-search__field {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 10px;
  }

.fm-dir-search__btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* USP + marketplace share one full-bleed band (20px sides) */

.fm-dir-band {
  width: 100%;
  margin: 0;
  padding: 4px 20px 20px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-usp {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

.fm-dir-usp__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(18px, 2.5vw, 26px) clamp(16px, 2.5vw, 28px);
  border-radius: 14px;
  border: 1px solid #FFD8C2;
  background: #FFF8F1;
  box-shadow: none;
}

@media (min-width: 992px) {
.fm-dir-usp__panel {
    grid-template-columns: 110px minmax(0, 1.1fr) max-content;
    gap: 32px;
    padding: 22px 28px;
  }
}

.fm-dir-usp__visual {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

@media (min-width: 992px) {
.fm-dir-usp__visual {
    margin: 0;
  }
}

.fm-dir-usp__burst {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 127, 35, 0.22), transparent 62%),
    conic-gradient(from 20deg, rgba(241, 127, 35, 0.18), transparent 28%, rgba(42, 71, 255, 0.12), transparent 62%, rgba(241, 127, 35, 0.16));
  filter: blur(0.2px);
}

.fm-dir-usp__doc {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 68px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid #D6DEEA;
  box-shadow: 0 8px 18px rgba(42, 71, 255, 0.12);
  padding: 12px 8px 8px;
  display: grid;
  gap: 5px;
  align-content: start;
}

.fm-dir-usp__doc span {
  display: block;
  height: 3px;
  border-radius: 99px;
  background: #C7D2FE;
}

.fm-dir-usp__doc span:nth-child(1) { width: 78%; }

.fm-dir-usp__doc span:nth-child(2) { width: 100%; }

.fm-dir-usp__doc span:nth-child(3) { width: 92%; }

.fm-dir-usp__doc span:nth-child(4) { width: 64%; }

.fm-dir-usp__badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 2;
  width: 44px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.25));
}

.fm-dir-usp__mid {
  min-width: 0;
  text-align: center;
}

@media (min-width: 992px) {
.fm-dir-usp__mid {
    text-align: left;
  }
}

.fm-dir-usp__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #0E1220;
}

.fm-dir-usp__title-accent {
  color: #F17F23;
}

.fm-dir-usp__title-amp {
  color: #2A47FF;
  margin: 0 0.18em;
}

.fm-dir-usp__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6B7280;
  max-width: 54ch;
}

@media (min-width: 992px) {
.fm-dir-usp__desc {
    max-width: none;
  }
}

.fm-dir-usp__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 22px;
  min-width: 0;
}

@media (min-width: 520px) {
.fm-dir-usp__list {
    grid-template-columns: max-content max-content;
    justify-content: start;
  }
}

.fm-dir-usp__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  font-size: 15px;
  font-weight: 650;
  color: #0E1220;
  line-height: 1.2;
  white-space: nowrap;
}

.fm-dir-usp__list li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2322C55E'/%3E%3Cpath d='M5.8 10.2l2.5 2.5 5.9-6' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (max-width: 519px) {
.fm-dir-usp__list li {
    font-size: 14px;
    white-space: normal;
  }

.fm-dir-usp__list li::before {
    width: 22px;
    height: 22px;
  }
}

/* Sections */

.fm-directory { background: var(--fm-bg); }

.fm-directory > .fm-dir-band {
  background: #FFFFFF;
}

.fm-dir-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.fm-dir-sec__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fm-navy);
}

.fm-dir-sec__head p {
  margin: 0;
  max-width: 62ch;
  color: var(--fm-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Marketplace — breathing room below USP */

.fm-dir-marketplace {
  background: transparent;
  border: 0;
  padding: 28px 0 0;
  margin: 0;
}

.fm-dir-marketplace .fm-dir-sec__head--market {
  margin-bottom: 18px;
  align-items: flex-start;
}

.fm-dir-marketplace .fm-dir-sec__head--market h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.fm-dir-marketplace .fm-dir-sec__head--market p {
  max-width: 52ch;
}

.fm-dir-marketplace .fm-dir-sec__head--market .fm-dir-filter-toggle {
  margin-left: auto;
  flex-shrink: 0;
}

.fm-dir-market {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 992px) {
.fm-dir-market {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

.fm-dir-market__main {
  min-width: 0;
}

.fm-dir-filters {
  display: none;
  padding: 18px 18px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(14, 18, 32, 0.05);
}

@media (min-width: 992px) {
.fm-dir-filters { display: block; position: sticky; top: 88px; }
}

.fm-dir-filters__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fm-navy);
}

.fm-dir-filters__group {
  border-top: 1px solid #EEF0F4;
  padding: 10px 0 8px;
}

.fm-dir-filters__group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.fm-dir-filters__group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fm-navy);
  user-select: none;
}

.fm-dir-filters__group > summary::-webkit-details-marker { display: none; }

.fm-dir-filters__group > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #9CA3AF;
  border-bottom: 2px solid #9CA3AF;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}

.fm-dir-filters__group[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.fm-dir-filters__checks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fm-dir-filters__checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  line-height: 1.3;
}

.fm-dir-filters__checks input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fm-blue);
  flex-shrink: 0;
}

.fm-dir-filters__actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #EEF0F4;
  display: grid;
  gap: 10px;
}

.fm-dir-filters__apply {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #F17F23;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.fm-dir-filters__apply:hover { background: #e0701a; }

.fm-dir-filters__reset {
  border: 0;
  background: transparent;
  color: var(--fm-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.fm-dir-filter-toggle {
  display: none !important;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--fm-border);
  background: var(--fm-white);
  font-size: 13px;
  font-weight: 700;
  color: var(--fm-navy);
  cursor: pointer;
}

@media (min-width: 992px) {
.fm-dir-filter-toggle { display: none !important; }
}

/* Cards */

.fm-dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Marketplace: always 2-up on small screens, compact cards */
.fm-dir-market__main .fm-dir-grid--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 991.98px) {
  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__media {
    aspect-ratio: 16 / 9;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__media-fallback::before {
    width: 48%;
    height: 48%;
    border-radius: 14px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__media-fallback::after {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__badge {
    top: 8px;
    right: 8px;
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
    max-width: calc(100% - 16px);
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__body {
    gap: 6px;
    padding: 10px 10px 12px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__title {
    font-size: 12.5px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__desc {
    display: none;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__features {
    gap: 6px 8px;
    margin: 0;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__features li {
    font-size: 10px;
    gap: 4px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__features li::before {
    width: 12px;
    height: 12px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__foot--media {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 4px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__price {
    font-size: 11px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__price strong {
    font-size: 14px;
  }

  .fm-dir-market__main .fm-dir-card--media .fm-dir-card__cta {
    width: 100%;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    font-size: 11.5px;
  }
}

@media (min-width: 700px) {
.fm-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.fm-dir-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.fm-dir-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
.fm-dir-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fm-dir-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fm-dir-market__main .fm-dir-grid--3 {
  gap: 10px;
}

@media (min-width: 992px) {
  .fm-dir-market__main .fm-dir-grid--3 {
    gap: 18px;
  }
}

@media (min-width: 992px) and (max-width: 1099px) {
.fm-dir-market__main .fm-dir-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
.fm-dir-market__main .fm-dir-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fm-dir-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--fm-radius);
  border: 1px solid var(--fm-border);
  background: var(--fm-white);
  box-shadow: 0 1px 2px rgba(14, 18, 32, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s var(--fm-ease), transform 0.2s var(--fm-ease);
}

.fm-dir-card:hover {
  border-color: rgba(42, 71, 255, 0.25);
  box-shadow: 0 12px 28px rgba(14, 18, 32, 0.06);
  transform: translateY(-2px);
}

.fm-dir-card--soft { background: #FAFBFF; }

.fm-dir-card--media {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.fm-dir-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 22% 28%, rgba(42, 71, 255, 0.16), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(14, 18, 32, 0.08), transparent 48%),
    linear-gradient(160deg, #EEF3FF 0%, #F7F9FF 48%, #E4EBFF 100%);
  overflow: hidden;
}

.fm-dir-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-dir-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.fm-dir-card__media-fallback::before {
  content: '';
  position: absolute;
  width: 58%;
  height: 58%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(42, 71, 255, 0.12);
}

.fm-dir-card__media-fallback::after {
  content: attr(data-letter);
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  color: var(--fm-blue);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(14, 18, 32, 0.08);
}

.fm-dir-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: 0 4px 14px rgba(14, 18, 32, 0.1);
  color: #1F2937;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.fm-dir-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}

.fm-dir-card--media .fm-dir-card__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-height: 0;
  margin: 0;
  line-height: 1.3;
}

.fm-dir-card--media .fm-dir-card__title + .fm-dir-card__chips {
  margin-top: -2px;
}

.fm-dir-card--media .fm-dir-card__desc {
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fm-dir-card__features {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.fm-dir-card__features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: #0E1220;
}

.fm-dir-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2322C55E'/%3E%3Cpath d='M5.8 10.2l2.5 2.5 5.9-6' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.fm-dir-card__features li.is-muted {
  color: #9CA3AF;
}

.fm-dir-card__features li.is-muted::before {
  filter: grayscale(1);
  opacity: 0.55;
}

.fm-dir-card__foot--media {
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  margin-top: auto;
  align-items: center;
}

.fm-dir-card__price {
  margin: 0;
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.fm-dir-card__price strong {
  display: inline;
  margin: 0 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #F17F23;
}

.fm-dir-card__cta--orange {
  background: #F17F23 !important;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff !important;
}

.fm-dir-card__cta--orange:hover {
  background: #e0701a !important;
  color: #fff !important;
}

.fm-dir-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.fm-dir-card__title a {
  color: var(--fm-navy) !important;
  text-decoration: none !important;
}

.fm-dir-card__title a:hover { color: var(--fm-blue) !important; }

.fm-dir-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fm-muted);
}

.fm-dir-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.fm-dir-card__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--fm-navy);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.fm-dir-card__cta:hover { background: #1a2030; color: #fff !important; }

.fm-dir-card__cta.fm-dir-card__cta--orange {
  background: #F17F23 !important;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
}

.fm-dir-card__cta.fm-dir-card__cta--orange:hover {
  background: #e0701a !important;
  color: #fff !important;
}

.fm-dir-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--fm-border);
  border-radius: var(--fm-radius);
  color: var(--fm-muted);
}

/* Enterprise catalog empty / custom-build CTA */
.fm-catalog-empty {
  --fm-empty-blue: #2A47FF;
  --fm-empty-orange: #F17F23;
  --fm-empty-ink: #0E1220;
  --fm-empty-muted: #64748B;
  --fm-empty-line: #E2E8F0;
  --fm-empty-bg: #F8FAFC;
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid var(--fm-empty-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fm-catalog-empty__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--fm-empty-blue), var(--fm-empty-orange));
}

.fm-catalog-empty__hero {
  padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px) 0;
  text-align: center;
}

.fm-catalog-empty__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(42, 71, 255, 0.08);
  color: var(--fm-empty-blue);
}

.fm-catalog-empty__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fm-empty-orange);
}

.fm-catalog-empty__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fm-empty-ink);
}

.fm-catalog-empty__lead {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fm-empty-muted);
}

.fm-catalog-empty__panel {
  margin: 18px clamp(14px, 2.5vw, 22px) 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--fm-empty-bg);
  border: 1px solid var(--fm-empty-line);
}

.fm-catalog-empty__panel-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fm-empty-muted);
}

.fm-catalog-empty__action {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .fm-catalog-empty__action {
    flex-direction: row;
    align-items: stretch;
  }
}

.fm-catalog-empty__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--fm-empty-line);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fm-catalog-empty__field:focus-within {
  border-color: var(--fm-empty-blue);
  box-shadow: 0 0 0 3px rgba(42, 71, 255, 0.12);
}

.fm-catalog-empty__field-ico {
  flex: 0 0 auto;
  color: var(--fm-empty-blue);
}

.fm-catalog-empty__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-empty-ink);
}

.fm-catalog-empty__field input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.fm-catalog-empty__wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  background: #25D366;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.fm-catalog-empty__wa:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.fm-catalog-empty__wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid rgba(37, 211, 102, 0.35);
  animation: fm-catalog-empty-pulse 1.8s infinite;
  pointer-events: none;
}

@keyframes fm-catalog-empty-pulse {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.04); opacity: 0; }
}

.fm-catalog-empty__hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fm-empty-muted);
  text-align: center;
}

.fm-catalog-empty__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 16px clamp(14px, 2.5vw, 22px) clamp(18px, 2.5vw, 22px);
  padding: 0;
}

.fm-catalog-empty__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fm-empty-line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--fm-empty-ink);
}

.fm-catalog-empty__trust svg {
  flex: 0 0 auto;
  color: var(--fm-empty-blue);
}


/* Buttons */

/* Tech / degree cards (degree + other hubs) */

.fm-dir-tech { background: var(--fm-white); border-block: 1px solid var(--fm-border); }

.fm-dir-tech.fm-dir-tech--hub {
  background: #FFFFFF;
  border: 0;
  border-top: 1px solid #EEF0F4;
  margin: 0;
  padding: 12px 20px 14px;
  box-sizing: border-box;
}

.fm-dir-tech__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.fm-dir-tech__head {
  margin: 0 0 14px;
}

.fm-dir-tech__head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-tech__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
.fm-dir-tech__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1100px) {
.fm-dir-tech__row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
}

.fm-dir-tech__tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--fm-ease);
}

@media (max-width: 639.98px) {
  .fm-dir-tech__tile {
    min-height: 64px;
    gap: 8px;
    padding: 10px;
  }

  .fm-dir-tech__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .fm-dir-tech__icon img {
    width: 20px;
    height: 20px;
  }

  .fm-dir-tech__copy strong {
    font-size: 12.5px;
  }

  .fm-dir-tech__copy span {
    font-size: 11px;
  }
}

.fm-dir-tech__tile:hover {
  border-color: rgba(42, 71, 255, 0.28);
  box-shadow: 0 8px 20px rgba(14, 18, 32, 0.06);
  transform: translateY(-1px);
}

.fm-dir-tech__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #F3F6FB;
  border: 1px solid #E8EDF5;
  overflow: hidden;
}

.fm-dir-tech__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.fm-dir-tech__icon-fallback {
  font-size: 14px;
  font-weight: 800;
  color: #2A47FF;
  line-height: 1;
}

.fm-dir-tech__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fm-dir-tech__copy strong {
  color: #1E3A8A;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-dir-tech__copy span {
  color: #9CA3AF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 767.98px) {
  .fm-dir-tech__copy strong {
    font-size: 12px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .fm-dir-tech__copy span {
    font-size: 11px;
  }
}

/* Popular / category strips */

.fm-dir-strip {
  width: 100%;
  margin: 0;
  padding: 12px 20px 8px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-strip__inner {
  width: 100%;
}

.fm-dir-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.fm-dir-strip__head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-strip__all {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #2A47FF !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.fm-dir-strip__all:hover { text-decoration: underline !important; }

.fm-dir-market__main .fm-dir-strip__head {
  margin-bottom: 14px;
}

.fm-dir-market__main .fm-dir-filter-toggle {
  order: 3;
}

.fm-dir-popgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Mobile: show 4 projects (2x2), hide 5th */
@media (max-width: 991.98px) {
  .fm-dir-popgrid--5 > .fm-dir-pop:nth-child(n + 5) {
    display: none;
  }

  .fm-dir-pop--compact .fm-dir-pop__media {
    aspect-ratio: 16 / 9;
  }

  .fm-dir-pop--compact .fm-dir-pop__body {
    gap: 6px;
    padding: 10px;
  }

  .fm-dir-pop--compact .fm-dir-pop__title {
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fm-dir-pop--compact .fm-dir-pop__feats {
    gap: 6px 8px;
  }

  .fm-dir-pop--compact .fm-dir-pop__feats li {
    font-size: 10px;
  }

  .fm-dir-pop--compact .fm-dir-pop__btn {
    min-height: 32px;
    font-size: 11.5px;
    padding: 0 8px;
  }
}

@media (min-width: 640px) {
.fm-dir-popgrid--3,
  .fm-dir-popgrid--4,
  .fm-dir-popgrid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 992px) {
.fm-dir-popgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fm-dir-popgrid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .fm-dir-popgrid--5 > .fm-dir-pop:nth-child(n + 5) {
    display: flex;
  }
}

@media (min-width: 1100px) {
.fm-dir-popgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
.fm-dir-popgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.fm-dir-pop {
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--fm-ease);
}

.fm-dir-pop:hover {
  border-color: rgba(42, 71, 255, 0.25);
  box-shadow: 0 10px 24px rgba(14, 18, 32, 0.06);
  transform: translateY(-2px);
}

.fm-dir-pop__media {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 25% 30%, rgba(42, 71, 255, 0.14), transparent 45%),
    linear-gradient(160deg, #EAF0FF 0%, #F7F9FF 55%, #E4EBFF 100%);
  position: relative;
  overflow: hidden;
}

.fm-dir-pop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.fm-dir-pop__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.fm-dir-pop__fallback::after {
  content: attr(data-letter);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #2A47FF;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(14, 18, 32, 0.08);
}

.fm-dir-pop__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 14px;
  flex: 1;
}

.fm-dir-pop__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: 2.5em;
}

.fm-dir-pop__title a {
  color: #1E3A8A !important;
  text-decoration: none !important;
}

.fm-dir-pop__title a:hover { color: #2A47FF !important; }

.fm-dir-pop__feats {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.fm-dir-pop__feats li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

.fm-dir-pop__feats li svg {
  flex-shrink: 0;
}

.fm-dir-pop__feats li.is-report { color: #EA580C; }

.fm-dir-pop__feats li.is-report svg { color: #F97316; }

.fm-dir-pop__feats li.is-code { color: #1D4ED8; }

.fm-dir-pop__feats li.is-code svg { color: #3B82F6; }

.fm-dir-pop__feats li.is-demo { color: #15803D; }

.fm-dir-pop__feats li.is-demo svg { color: #22C55E; }

.fm-dir-pop__feats li.is-off {
  color: #9CA3AF;
}

.fm-dir-pop__feats li.is-off svg {
  color: #9CA3AF;
}

.fm-dir-pop__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  border: 1.5px solid #F17F23;
  border-radius: 10px;
  background: #FFFFFF;
  color: #F17F23 !important;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.fm-dir-pop__btn:hover {
  background: #F17F23;
  color: #fff !important;
}

.fm-dir-pop--compact .fm-dir-pop__title {
  font-size: 13px;
  min-height: 2.4em;
}

.fm-dir-pop--compact .fm-dir-pop__body {
  padding: 10px 10px 12px;
  gap: 6px;
}

/* Tech / degree cards (degree + other hubs) */

.fm-dir-tech { background: var(--fm-white); border-block: 1px solid var(--fm-border); }

/* Reports showcase + 3 service cards â€” same band as strips */

.fm-dir-showcase {
  width: 100%;
  margin: 0;
  padding: 8px 20px 12px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-showcase__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 14px;
}

.fm-dir-reportcard {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.fm-dir-reportcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.fm-dir-reportcard__head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-reportcard__head p {
  margin: 0;
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.45;
  white-space: nowrap;
}

@media (max-width: 767px) {
.fm-dir-reportcard__head p {
    white-space: normal;
  }
}

.fm-dir-reportcard__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: 280px;
}

@media (min-width: 992px) {
.fm-dir-reportcard__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    min-height: 320px;
  }
}

.fm-dir-books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: end;
  justify-items: center;
  align-content: center;
  padding: 16px 14px 20px;
  border-radius: 14px;
  background: #F3F5F8;
  border: 1px solid #E8EBF0;
  min-height: 280px;
  box-sizing: border-box;
}

.fm-dir-books__all {
  grid-column: 1 / -1;
  justify-self: end;
  align-self: start;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #2A47FF !important;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
}

.fm-dir-books__all:hover {
  text-decoration: underline !important;
}

@media (min-width: 640px) {
.fm-dir-books {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 20px 24px;
    min-height: 320px;
  }
}

.fm-dir-book {
  display: block;
  width: 100%;
  max-width: 168px;
  text-decoration: none !important;
}

.fm-dir-book__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  aspect-ratio: 210 / 297; /* A4 */
  padding: 16px 14px 0;
  border-radius: 3px 5px 5px 3px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0 7px, transparent 7px),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 72%, #EEF2F7 100%);
  color: #0E1220;
  box-shadow:
    0 12px 26px rgba(14, 18, 32, 0.14),
    2px 2px 0 #FFFFFF,
    3px 3px 0 #D7DCE5;
  overflow: hidden;
  transition: transform 0.2s var(--fm-ease), box-shadow 0.2s;
}

.fm-dir-book__cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.02));
  pointer-events: none;
}

.fm-dir-book:hover .fm-dir-book__cover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 28px rgba(14, 18, 32, 0.16),
    2px 2px 0 #FFFFFF,
    3px 3px 0 #D7DCE5;
}

.fm-dir-book__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1E3A8A;
  z-index: 1;
}

.fm-dir-book__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #F17F23 0%, #F59E0B 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.fm-dir-book__copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  margin: 22px 4px 0;
  z-index: 1;
}

.fm-dir-book__title {
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0F172A;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fm-dir-book__meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}

.fm-dir-book__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    radial-gradient(120% 90% at 10% 100%, var(--fm-book) 0%, transparent 58%),
    radial-gradient(100% 80% at 90% 110%, var(--fm-book) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, var(--fm-book) 100%);
  opacity: 0.92;
  pointer-events: none;
}

.fm-dir-book__wave::before,
.fm-dir-book__wave::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
}

.fm-dir-book__wave::before {
  top: -22px;
  opacity: 0.95;
}

.fm-dir-book__wave::after {
  top: -10px;
  opacity: 0.35;
  background: #FFFFFF;
}

.fm-dir-reportcard__side {
  background: #F5F8FF;
  border: 1px solid #E4EAF8;
  border-radius: 14px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  box-sizing: border-box;
}

@media (min-width: 992px) {
.fm-dir-reportcard__side {
    min-height: 320px;
  }
}

.fm-dir-reportcard__side h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1E3A8A;
  letter-spacing: -0.02em;
}

.fm-dir-reportcard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 16px;
  flex: 1;
  align-content: start;
}

.fm-dir-reportcard__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1E3A8A;
  line-height: 1.3;
  min-width: 0;
}

.fm-dir-reportcard__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.5px solid #22C55E;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2322C55E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.2l2.4 2.4L12 5'/%3E%3C/svg%3E")
    center / 11px 11px no-repeat;
}

.fm-dir-reportcard__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 767.98px) {
  .fm-dir-reportcard__pills {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }

  .fm-dir-reportcard__pills .fm-dir-pill--outline {
    display: none;
  }

  .fm-dir-reportcard__pills .fm-dir-pill {
    flex: 1 1 0;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .fm-dir-reportcard__pills .fm-dir-pill::before {
    width: 14px;
    height: 14px;
  }
}

.fm-dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}

.fm-dir-pill::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.fm-dir-pill--ok {
  color: #15803D;
}

.fm-dir-pill--ok::before {
  background:
    #22C55E
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.2l2.4 2.4L12 5'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
}

.fm-dir-pill--blue {
  color: #1E3A8A;
}

.fm-dir-pill--blue::before {
  background:
    #2A47FF
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.2l2.4 2.4L12 5'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
}

.fm-dir-pill--outline {
  color: #15803D;
}

.fm-dir-pill--outline::before {
  border: 1.5px solid #22C55E;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2322C55E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.2l2.4 2.4L12 5'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
}

/* Review + Ideas split (matched height) */

.fm-dir-splitpanel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 992px) {
.fm-dir-splitpanel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 18px;
  }
}

.fm-dir-review,
.fm-dir-ideaspanel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(14, 18, 32, 0.04);
  box-sizing: border-box;
}

.fm-dir-review__head,
.fm-dir-ideaspanel__head {
  margin: 0 0 16px;
}

.fm-dir-review__head h3,
.fm-dir-ideaspanel__head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.3;
}

.fm-dir-review__head p,
.fm-dir-ideaspanel__head p {
  margin: 0;
  font-size: 14.5px;
  color: #6B7280;
  line-height: 1.55;
}

.fm-dir-review__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.fm-dir-review__steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid #E8EDF5;
  border-radius: 12px;
  background: #FFFFFF;
  position: relative;
}

.fm-dir-review__steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 32px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: repeating-linear-gradient(
    to bottom,
    #93C5FD 0 3px,
    transparent 3px 6px
  );
  z-index: 1;
}

.fm-dir-review__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: #2A47FF;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.fm-dir-review__icon i {
  display: block;
  line-height: 1;
}

.fm-dir-review__steps li div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fm-dir-review__steps strong {
  font-size: 15px;
  font-weight: 800;
  color: #1E3A8A;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.fm-dir-review__steps strong em {
  font-style: normal;
  color: #2A47FF;
  margin-right: 4px;
}

.fm-dir-review__steps span {
  font-size: 13.5px;
  color: #6B7280;
  line-height: 1.45;
}

.fm-dir-review__done {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
}

.fm-dir-review__done .fm-dir-review__icon {
  background: #D1FAE5;
  color: #059669;
}

.fm-dir-review__done strong {
  color: #047857;
}

.fm-dir-ideaspanel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  align-content: start;
}

@media (min-width: 560px) {
.fm-dir-ideaspanel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
.fm-dir-ideaspanel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fm-dir-ideacard {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--fm-ease);
  min-height: 64px;
}

.fm-dir-ideacard:hover {
  border-color: rgba(42, 71, 255, 0.28);
  box-shadow: 0 8px 18px rgba(14, 18, 32, 0.06);
  transform: translateY(-1px);
}

.fm-dir-ideacard__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin: 0;
  background: #EFF6FF center / 20px 20px no-repeat;
}

.fm-dir-ideacard__icon--btech,
.fm-dir-ideacard__icon--mtech,
.fm-dir-ideacard__icon--bca,
.fm-dir-ideacard__icon--mca {
  background-color: #EEF2FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A47FF' stroke-width='1.8'%3E%3Cpath d='M3 10l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M7 12v4c2 1.5 4 2.2 5 2.2S15 17.5 17 16v-4'/%3E%3C/svg%3E");
}

.fm-dir-ideacard__icon--mtech { background-color: #F5F3FF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='1.8'%3E%3Cpath d='M3 10l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M7 12v4c2 1.5 4 2.2 5 2.2S15 17.5 17 16v-4'/%3E%3C/svg%3E"); }

.fm-dir-ideacard__icon--bca { background-color: #ECFDF5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='1.8'%3E%3Cpath d='M4 19V7l8-4 8 4v12'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E"); }

.fm-dir-ideacard__icon--mca { background-color: #FDF4FF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='1.8'%3E%3Cpath d='M3 10l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M7 12v4c2 1.5 4 2.2 5 2.2S15 17.5 17 16v-4'/%3E%3C/svg%3E"); }

.fm-dir-ideacard__icon--aiml {
  background-color: #ECFDF5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='1.8'%3E%3Ccircle cx='6' cy='12' r='2'/%3E%3Ccircle cx='18' cy='7' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3Cpath d='M8 12h8M16.5 8.5l-8 2.5M16.5 15.5l-8-2.5'/%3E%3C/svg%3E");
}

.fm-dir-ideacard__icon--py {
  background-color: #EEF2FF;
  background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/python/python-original.svg");
  background-size: 20px 20px;
}

.fm-dir-ideacard__icon--mern {
  background-color: #ECFDF5;
  background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/mongodb/mongodb-original.svg");
  background-size: 20px 20px;
}

.fm-dir-ideacard__icon--php {
  background-color: #EEF2FF;
  background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/php/php-original.svg");
  background-size: 22px 22px;
}

.fm-dir-ideacard__icon--data {
  background-color: #FFF7ED;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F17F23' stroke-width='1.8'%3E%3Cpath d='M4 19V9M10 19V5M16 19v-7M22 19V8'/%3E%3C/svg%3E");
}

.fm-dir-ideacard__icon--mean {
  background-color: #FEF2F2;
  background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/angularjs/angularjs-original.svg");
  background-size: 20px 20px;
}

.fm-dir-ideacard__icon--web {
  background-color: #EFF6FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A47FF' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.8 3.8 5.8 3.8 9S14.5 18.2 12 21c-2.5-2.8-3.8-5.8-3.8-9S9.5 5.8 12 3z'/%3E%3C/svg%3E");
}

.fm-dir-ideacard__icon--research {
  background-color: #F0F9FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230286D1' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3Cpath d='M9 11h4M11 9v4'/%3E%3C/svg%3E");
}

.fm-dir-ideacard__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fm-dir-ideacard strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #0E1220;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.fm-dir-ideacard em {
  font-style: normal;
  margin-top: 0;
  color: #2A47FF;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .fm-dir-ideacard {
    gap: 8px;
    padding: 10px 10px;
    min-height: 56px;
    border-radius: 10px;
  }

  .fm-dir-ideacard__icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px;
    background-size: 16px 16px !important;
  }

  .fm-dir-ideacard__copy {
    gap: 1px;
  }

  .fm-dir-ideacard strong {
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fm-dir-ideacard em {
    font-size: 11px;
    font-weight: 650;
    color: #6B7280;
  }
}

.fm-dir-ideaspanel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 16px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  background: #F17F23;
  color: #FFFFFF !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: filter 0.2s, transform 0.2s;
}

.fm-dir-ideaspanel__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Helpful guides strip */

.fm-dir-guides {
  width: 100%;
  margin: 0;
  padding: 8px 20px 16px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-guides__inner {
  width: 100%;
}

.fm-dir-guides__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.fm-dir-guides__head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-guides__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
.fm-dir-guides__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
.fm-dir-guides__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
.fm-dir-guides__row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.fm-dir-guidecard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  padding: 14px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 18, 32, 0.04);
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--fm-ease);
}

.fm-dir-guidecard:hover {
  border-color: rgba(42, 71, 255, 0.28);
  box-shadow: 0 8px 20px rgba(14, 18, 32, 0.07);
  transform: translateY(-1px);
}

.fm-dir-guidecard__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEF2FF center / 22px 22px no-repeat;
}

.fm-dir-guidecard__icon--topic {
  background-color: #EEF2FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A47FF' stroke-width='1.7'%3E%3Cpath d='M12 3a5 5 0 015 5c0 2.2-1.2 3.4-2.4 4.4-.8.7-1.6 1.4-1.6 2.6v1'/%3E%3Cpath d='M12 3a5 5 0 00-5 5c0 2.2 1.2 3.4 2.4 4.4.8.7 1.6 1.4 1.6 2.6v1'/%3E%3Cpath d='M10 20h4'/%3E%3C/svg%3E");
}

.fm-dir-guidecard__icon--report {
  background-color: #FFF7ED;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F17F23' stroke-width='1.7'%3E%3Cpath d='M7 3h7l4 4v14H7V3z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E");
}

.fm-dir-guidecard__icon--python {
  background-color: #EEF2FF;
  background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/python/python-original.svg");
  background-size: 22px 22px;
}

.fm-dir-guidecard__icon--ai {
  background-color: #ECFDF5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='1.7'%3E%3Ccircle cx='6' cy='12' r='2'/%3E%3Ccircle cx='18' cy='7' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3Cpath d='M8 12h8M16.5 8.5l-8 2.5M16.5 15.5l-8-2.5'/%3E%3C/svg%3E");
}

.fm-dir-guidecard__icon--node {
  background-color: #ECFDF5;
  background-image: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/nodejs/nodejs-original.svg");
  background-size: 22px 22px;
}

.fm-dir-guidecard__icon--viva {
  background-color: #EFF6FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A47FF' stroke-width='1.7'%3E%3Crect x='6' y='3' width='12' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E");
}

.fm-dir-guidecard__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fm-dir-guidecard__copy strong {
  font-size: 14px;
  font-weight: 800;
  color: #1E3A8A;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fm-dir-guidecard__copy span {
  font-size: 12.5px;
  color: #6B7280;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Why + Testimonials split */

.fm-dir-trust {
  width: 100%;
  margin: 0;
  padding: 8px 20px 16px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-trust__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 992px) {
.fm-dir-trust__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
  }
}

.fm-dir-whybox,
.fm-dir-quotes {
  min-height: 100%;
  box-sizing: border-box;
}

.fm-dir-whybox {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 22px 20px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(14, 18, 32, 0.04);
}

.fm-dir-whybox h2 {
  margin: 0;
  flex-shrink: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-whygrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 20px;
  flex: 1;
  min-height: 0;
}

@media (min-width: 640px) {
.fm-dir-whygrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }
}

@media (min-width: 992px) {
.fm-dir-whybox {
    padding: 24px 22px 22px;
    gap: 22px;
  }

.fm-dir-whygrid {
    align-content: space-between;
    row-gap: clamp(22px, 2.8vw, 34px);
    column-gap: 28px;
  }
}

.fm-dir-quote--feature {
  margin-top: auto;
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.fm-dir-quotes {
  display: grid;
  gap: 12px;
  align-content: stretch;
  grid-template-rows: none;
}

@media (min-width: 992px) {
.fm-dir-quotes {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

.fm-dir-whygrid li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 2px 0;
}

@media (min-width: 992px) {
.fm-dir-whygrid li {
    padding: 4px 0;
  }
}

.fm-dir-whygrid__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.fm-dir-whygrid__icon i {
  display: block;
  line-height: 1;
}

.fm-dir-whygrid__icon--search {
  background-color: #EFF6FF;
  color: #2A47FF;
}

.fm-dir-whygrid__icon--code {
  background-color: #ECFDF5;
  color: #16A34A;
}

.fm-dir-whygrid__icon--docs {
  background-color: #FFFBEB;
  color: #D97706;
}

.fm-dir-whygrid__icon--demo {
  background-color: #EEF2FF;
  color: #4F46E5;
}

.fm-dir-whygrid__icon--ai {
  background-color: #EEF2FF;
  color: #1E3A8A;
}

.fm-dir-whygrid__icon--support {
  background-color: #FFFBEB;
  color: #D97706;
}

.fm-dir-whygrid li > span:not(.fm-dir-whygrid__icon) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fm-dir-whygrid strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #0E1220;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.fm-dir-whygrid em {
  font-style: normal;
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

.fm-dir-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(14, 18, 32, 0.04);
  min-height: 0;
  flex: 1;
}

.fm-dir-quote__mark {
  font-size: 42px;
  line-height: 0.7;
  color: #93C5FD;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

.fm-dir-quote p {
  margin: 0;
  flex: 1;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.55;
}

.fm-dir-quote__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.fm-dir-quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #EEF2FF;
}

.fm-dir-quote__foot div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.fm-dir-quote__foot strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-quote__foot span {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.3;
}

.fm-dir-quote__stars {
  color: #F59E0B !important;
  letter-spacing: 1px;
  font-size: 12px !important;
  line-height: 1.2;
}

/* FAQ band — 3 columns */

.fm-dir-faqband {
  width: 100%;
  margin: 0;
  padding: 8px 20px 20px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-faqband__inner {
  width: 100%;
}

.fm-dir-faqband__head {
  margin: 0 0 14px;
}

.fm-dir-faqband__head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-faqgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

@media (min-width: 768px) {
.fm-dir-faqgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
.fm-dir-faqgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fm-dir-acc {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 18, 32, 0.03);
  overflow: hidden;
}

.fm-dir-acc__q {
  margin: 0;
  font-size: 14px;
}

.fm-dir-acc__q button {
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 14px 42px 14px 16px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #0E1220;
  cursor: pointer;
  position: relative;
  line-height: 1.35;
}

.fm-dir-acc__q button::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #9CA3AF;
  border-bottom: 2px solid #9CA3AF;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s;
}

.fm-dir-acc__q button[aria-expanded="true"]::after {
  transform: translateY(-25%) rotate(225deg);
}

.fm-dir-acc__q button:focus-visible {
  outline: 2px solid #2A47FF;
  outline-offset: -2px;
}

.fm-dir-acc__a {
  padding: 0 16px 14px;
  border-top: 1px solid #F3F4F6;
}

.fm-dir-acc__a p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6B7280;
}

/* legacy faq container (unused) */

/* Final CTA band */

.fm-dir-ctaband {
  width: 100%;
  margin: 0;
  padding: 8px 20px 28px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.fm-dir-ctaband__panel {
  width: 100%;
  padding: 36px 24px 30px;
  border-radius: 16px;
  border: 1px solid #D6E4FF;
  background: #F3F7FF;
  text-align: center;
  box-sizing: border-box;
}

.fm-dir-ctaband__panel h2 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0E1220;
  line-height: 1.25;
}

.fm-dir-ctasearch {
  max-width: 720px;
  margin: 0 auto;
}

.fm-dir-ctasearch__field {
  display: flex;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(14, 18, 32, 0.04);
  min-height: 52px;
}

.fm-dir-ctasearch__field:focus-within {
  border-color: rgba(42, 71, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(42, 71, 255, 0.12);
}

.fm-dir-ctasearch__icon {
  display: grid;
  place-items: center;
  width: 44px;
  flex-shrink: 0;
  color: #9CA3AF;
}

.fm-dir-ctasearch__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #0E1220;
  padding: 0 8px 0 0;
}

.fm-dir-ctasearch__input::placeholder {
  color: #9CA3AF;
}

.fm-dir-ctasearch__btn {
  flex-shrink: 0;
  height: 52px;
  padding: 0 22px;
  border: 0;
  background: #F17F23;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
}

.fm-dir-ctasearch__btn:hover {
  filter: brightness(1.05);
}

.fm-dir-ctasearch__btn:focus-visible {
  outline: 2px solid #0E1220;
  outline-offset: -2px;
}

.fm-dir-ctapops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.fm-dir-ctapops__label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0E1220;
}

.fm-dir-ctapops__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #D6E4FF;
  background: #FFFFFF;
  color: #2A47FF !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}

.fm-dir-ctapops__chip:hover {
  border-color: rgba(42, 71, 255, 0.4);
  background: #EFF6FF;
}

@media (max-width: 560px) {
.fm-dir-ctasearch__field {
    flex-wrap: wrap;
    border-radius: 12px;
  }

.fm-dir-ctasearch__input {
    width: calc(100% - 44px);
  }

.fm-dir-ctasearch__btn {
    width: 100%;
    border-radius: 0 0 11px 11px;
  }
}

/* Drawer */

.fm-dir-drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(14, 18, 32, 0.45);
  display: flex;
  align-items: flex-end;
}

@media (min-width: 640px) {
.fm-dir-drawer { align-items: center; justify-content: center; }
}

.fm-dir-drawer[hidden] { display: none !important; }

.fm-dir-drawer__panel {
  width: min(100%, 420px);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px;
}

@media (min-width: 640px) {
.fm-dir-drawer__panel { border-radius: 16px; }
}

.fm-dir-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fm-dir-drawer__head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.fm-dir-drawer__close {
  border: 0;
  background: #F3F4F6;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fm-dir-drawer__body {
  display: grid;
  gap: 8px;
}

.fm-dir-drawer__body a {
  display: block;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--fm-border);
  color: var(--fm-navy) !important;
  font-weight: 600;
  text-decoration: none !important;
}

/* Hide legacy catalog if residual styles exist */

@media (prefers-reduced-motion: reduce) {
.fm-dir-card,
  .fm-dir-chip,
  .fm-dir-search__btn {
    transition: none !important;
  }

.fm-dir-card:hover {
    transform: none;
  }
}

/* ===== Mobile: 10px horizontal gutters (homepage + shared sections) ===== */
@media (max-width: 991.98px) {
  .fm-home .container,
  .fm-dir-hero .container,
  .fm-directory .container {
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
  }

  .fm-dir-band,
  .fm-dir-strip,
  .fm-dir-tech.fm-dir-tech--hub,
  .fm-dir-showcase,
  .fm-dir-guides,
  .fm-dir-trust,
  .fm-dir-faqband,
  .fm-dir-ctaband {
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
  }

  .fm-dir-splitpanel {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .fm-dir-review,
  .fm-dir-ideaspanel {
    padding: 18px 12px 16px !important;
  }
}
