/* ============================================================
   The Wealth Mosaic, Marketplaces / Directories index
   Layered on top of styles.css + marketplace.css.
   ============================================================ */

.directories-page {
  --pale-bg: #FAFAFB;
}

/* ============================================================
   HERO, directories page uses the same .hero wheel as the
   homepage. We only tweak the center copy + a tiny breath of
   top padding so the breadcrumb above sits comfortably.
   ============================================================ */
.hero--directories {
  padding-top: 22px;
  /* Bottom breathing room so the wheel's outer radial bars don't get
     visually clipped by the Featured marketplaces section below. */
  padding-bottom: 80px;
  margin-bottom: 24px;
}
.hero--directories .wheel-center__lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 8px auto 18px;
  text-wrap: pretty;
}
.hero--directories #centerSelected .btn {
  margin-top: 4px;
}
.eyebrow.eyebrow--on-wheel {
  justify-content: center;
  margin: 0 auto 14px;
}

/* ============================================================
   (legacy) old illustrated hero, kept for reference but unused.
   ============================================================ */
.dir-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(53,192,204,.12), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(230,23,90,.08), transparent 60%),
    linear-gradient(180deg, #F7FAFB 0%, #FFFFFF 100%);
  padding: 64px 0 76px;
}
.dir-hero__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}
.dir-hero__copy h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.dir-hero__copy h1 em {
  font-style: normal;
  color: var(--magenta);
}
.dir-hero__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 500;
  max-width: 600px;
}
.dir-hero__sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

.dir-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px;
  align-items: end;
}
.dir-hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dir-hero__stats .num {
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dir-hero__stats .num i {
  font-style: normal;
  color: var(--magenta);
  font-size: .7em;
  margin-left: -1px;
}
.dir-hero__stats .lab {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Decorative 2x2 mosaic of illustrations on the right */
.dir-hero__art {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dir-hero__tile {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--rule-soft);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease;
}
.dir-hero__tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -16px rgba(16, 21, 36, .14);
}
.dir-hero__tile img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(16, 21, 36, .06));
}
.dir-hero__tile--1 { background: linear-gradient(135deg, #FFF1F4 0%, #FFFFFF 70%); }
.dir-hero__tile--2 { background: linear-gradient(135deg, #EBFAFB 0%, #FFFFFF 70%); }
.dir-hero__tile--3 { background: linear-gradient(135deg, #F4F1FF 0%, #FFFFFF 70%); }
.dir-hero__tile--4 { background: linear-gradient(135deg, #FEF6EE 0%, #FFFFFF 70%); }

/* ============================================================
   FEATURED MARKETPLACES (large illustrated cards)
   ============================================================ */
.dir-featured { padding: 60px 0 40px; background: #fff; }
.dir-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.dir-feat {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.dir-feat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent, var(--magenta));
  opacity: 0;
  transition: opacity .2s ease;
}
.dir-feat:hover {
  border-color: var(--accent, var(--magenta));
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -20px rgba(16, 21, 36, .18);
}
.dir-feat:hover::before { opacity: 1; }

.dir-feat__art {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent, #E6175A) 8%, white),
    #fff);
  display: grid;
  place-items: center;
  padding: 22px;
  border-right: 1px solid var(--rule-soft);
}
.dir-feat__art img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.dir-feat:hover .dir-feat__art img { transform: scale(1.04); }

.dir-feat__body {
  padding: 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.dir-feat__tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  color: var(--accent, var(--magenta));
  background: color-mix(in oklab, var(--accent, var(--magenta)) 10%, white);
  text-transform: uppercase;
}
.dir-feat__body h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
}
.dir-feat__body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.dir-feat__needs {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dir-feat__needs li {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--panel);
  padding: 4px 9px;
  border-radius: 100px;
}
.dir-feat__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
  margin-top: 6px;
}
.dir-feat__stats strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dir-feat__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, var(--magenta));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s ease;
}
.dir-feat:hover .dir-feat__cta { gap: 10px; }

/* ============================================================
   ALL MARKETPLACES grid
   ============================================================ */
.dir-all {
  padding: 50px 0 80px;
  background: var(--pale-bg);
}
.dir-all__filter {
  display: inline-flex;
  background: #fff;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid var(--rule);
}
.dir-all__filter button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dir-all__filter button:hover { color: var(--ink); }
.dir-all__filter button.is-active {
  background: var(--ink);
  color: #fff;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.dir-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dir-card:hover {
  border-color: var(--c, var(--magenta));
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -16px rgba(16, 21, 36, .14);
}
.dir-card__hex {
  width: 30px;
  height: 34px;
  background: var(--c, var(--magenta));
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
          clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin-bottom: 4px;
  position: relative;
}
.dir-card__hex::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
          clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: .25;
}
.dir-card h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
}
.dir-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}
.dir-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.dir-card__meta strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dir-card__pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 4px;
}
.dir-card__pill--live {
  background: rgba(36, 168, 74, .1);
  color: var(--green);
}
.dir-card__pill--soon {
  background: var(--panel);
  color: var(--muted);
}

/* ============================================================
   LIST YOUR BUSINESS CTA
   ============================================================ */
.dir-cta {
  background: var(--navy);
  color: #fff;
  padding: 78px 0 84px;
  position: relative;
  overflow: hidden;
}
.dir-cta::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(230, 23, 90, .18), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.dir-cta__inner {
  display: grid;
  /* minmax(0, 1fr) so neither column grows past its share, without this,
     the long left-column headline pushes the right column down to <100px
     wide and the bullets wrap one-word-per-line. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow--on-dark { color: var(--magenta); }
.dir-cta__copy h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
}
.dir-cta__copy p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  max-width: 480px;
}
.dir-cta__buttons {
  display: flex;
  gap: 12px;
}
.dir-cta__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.dir-cta__points li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}
.dir-cta__points li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--magenta);
  margin-top: 4px;
}
.dir-cta__points strong {
  color: #fff;
  font-weight: 700;
  display: inline;
  margin-right: 4px;
}
.dir-cta__points span {
  min-width: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .dir-hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .dir-hero__art { max-width: 420px; margin: 0 auto; }
  .dir-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .dir-feat-grid { grid-template-columns: 1fr; }
  .dir-feat { grid-template-columns: 180px 1fr; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-cta__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .dir-hero { padding: 40px 0 50px; }
  .dir-hero__art { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dir-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .dir-feat { grid-template-columns: 1fr; }
  .dir-feat__art {
    aspect-ratio: 16/9;
    border-right: 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .dir-feat__art img { max-width: 200px; }
  .dir-grid { grid-template-columns: 1fr; }
  .dir-cta { padding: 52px 0 56px; }
  .dir-cta__buttons { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .dir-feat, .dir-card, .dir-hero__tile, .dir-feat__art img {
    transition: none;
  }
}

/* ============================================================
   TEXT HERO (replaces the brand wheel) — signposting context.
   ============================================================ */
.dir-hero {
  background: linear-gradient(180deg, #ffffff 0%, #faf9fb 100%);
  border-bottom: 1px solid var(--rule, #e6e8ee);
  padding: 56px 0 44px;
}
.dir-hero__strap {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--magenta, #e6175a);
  margin-bottom: 16px;
}
.dir-hero__title {
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--ink, #0a2033);
  margin: 0 0 18px;
  max-width: 16ch;
}
.dir-hero__title em { font-style: normal; color: var(--magenta, #e6175a); }
.dir-hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink, #0a2033);
  margin: 0 0 12px;
  max-width: 720px;
}
.dir-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft, #51607a);
  margin: 0 0 26px;
  max-width: 660px;
}
.dir-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--rule, #e2e5ec);
  border-radius: 99px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 12px 30px -18px rgba(16, 21, 36, .25);
}
.dir-hero__search svg { color: var(--muted, #8893a6); flex: 0 0 auto; }
.dir-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink, #0a2033);
}
.dir-hero__search button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  background: var(--magenta, #e6175a);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 99px;
  transition: filter .15s ease;
}
.dir-hero__search button:hover { filter: brightness(1.06); }

/* All-directories grid sits a touch tighter under its heading */
.dir-all { padding-top: 8px; }
.dir-all__grid { margin-top: 4px; }

@media (max-width: 640px) {
  .dir-hero { padding: 40px 0 30px; }
  .dir-hero__search button { padding: 10px 16px; }
}

/* Hero two-column: copy left, brand mark right */
.dir-hero__inner { display: flex; align-items: center; gap: 48px; }
.dir-hero__copy { flex: 1 1 auto; min-width: 0; }
.dir-hero__mark {
  flex: 0 0 auto;
  width: clamp(180px, 26vw, 300px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(16, 21, 36, .16));
}
@media (max-width: 860px) { .dir-hero__mark { display: none; } }
