/* ============================================================
 * /free-quiz/ humanized catalog — design system v1
 * Brand tokens: deep navy #0f172a / #162C55, teal #179D99 / #3BC6C2
 * ============================================================ */

.fqx-page * { box-sizing: border-box; }
.fqx-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
}
.fqx-page a { color: inherit; text-decoration: none; }

/* ── Hero ── */
.fqx-hero {
  background: linear-gradient(170deg, #0f172a 0%, #162C55 45%, #1a3f75 100%);
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}
.fqx-hero::before,
.fqx-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.fqx-hero::before { top: -120px; right: -80px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(59,198,194,.13), transparent 70%); }
.fqx-hero::after  { bottom: -90px; left: -60px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(23,157,153,.08), transparent 70%); }
.fqx-hero__inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.fqx-hero__eyebrow {
  display: inline-block;
  background: rgba(59,198,194,.14); color: #3BC6C2;
  border: 1px solid rgba(59,198,194,.26);
  padding: 6px 14px; border-radius: 999px;
  font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.fqx-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 850; color: #fff;
  letter-spacing: -.025em; line-height: 1.1;
  margin: 0 auto 14px; max-width: 640px;
}
.fqx-hero__sub {
  color: rgba(255,255,255,.62);
  font-size: 1.02rem; max-width: 560px;
  margin: 0 auto 28px; line-height: 1.6;
}
.fqx-hero__search {
  position: relative; max-width: 540px; margin: 0 auto 22px;
}
.fqx-hero__search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #94a3b8;
}
.fqx-hero__search input {
  width: 100%; padding: 16px 18px 16px 50px;
  font-size: 1rem; font-weight: 500;
  border: 0; border-radius: 14px; background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
  outline: none; color: #0f172a;
}
.fqx-hero__search input::placeholder { color: #94a3b8; }
.fqx-hero__search input:focus {
  box-shadow: 0 14px 36px rgba(0,0,0,.18), 0 0 0 3px rgba(59,198,194,.4);
}
.fqx-hero__proof {
  list-style: none; display: flex; justify-content: center; gap: 22px;
  flex-wrap: wrap; margin: 4px 0 0; padding: 0;
  color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 600;
}
.fqx-hero__proof li { position: relative; }
.fqx-hero__proof li:not(:last-child)::after {
  content: "·"; position: absolute; right: -14px; color: rgba(255,255,255,.35);
}
.fqx-hero__proof strong { color: #3BC6C2; font-weight: 800; }

/* ── Why try a free quiz? ── */
.fqx-why {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.fqx-why__inner {
  max-width: 980px; margin: 0 auto; padding: 28px 24px;
}
.fqx-why__head {
  margin: 0 0 12px; font-size: .82rem; font-weight: 850;
  letter-spacing: .14em; text-transform: uppercase;
  color: #475569;
}
.fqx-why__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  font-size: .94rem; color: #334155;
}
.fqx-why__list li {
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}
.fqx-why__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(23,157,153,.1); color: #179D99;
  font-size: .85rem; flex-shrink: 0; margin-top: 1px;
}

/* ── Section heads (shared) ── */
.fqx-section-head {
  max-width: 1180px; margin: 56px auto 18px; padding: 0 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.fqx-section-head h2 {
  margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 850; color: #0f172a; letter-spacing: -.02em;
}
.fqx-section-head p {
  margin: 4px 0 0; color: #64748b; font-size: .96rem;
}

/* ── Featured rail ── */
.fqx-featured__rail {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.fqx-feat-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.fqx-feat-card:hover {
  border-color: #3BC6C2;
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  transform: translateY(-3px);
}
.fqx-feat-card__link {
  display: block; flex: 1; color: inherit; text-decoration: none;
}
.fqx-feat-card__body { padding: 18px 20px 6px; }
.fqx-feat-card__profession {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #179D99;
  background: rgba(23,157,153,.08);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
}
.fqx-feat-card__title {
  margin: 0 0 4px; font-size: 1.18rem; font-weight: 850;
  letter-spacing: -.015em; color: #0f172a;
}
.fqx-feat-card__sub {
  margin: 0 0 12px; color: #64748b; font-size: .9rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fqx-feat-card__pills {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fqx-feat-card__ctas {
  display: flex; gap: 8px; padding: 12px 16px 16px;
}
.fqx-feat-card__ctas .fqx-btn {
  flex: 1; padding: 10px 12px; font-size: .85rem;
}

/* ── Browse by field ── */
.fqx-fields__rail {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.fqx-field-tile {
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: 18px 16px; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.fqx-field-tile:hover {
  border-color: #179D99; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23,157,153,.12);
}
.fqx-field-tile__icon { font-size: 1.5rem; }
.fqx-field-tile__label {
  font-weight: 800; color: #0f172a; font-size: .98rem; letter-spacing: -.01em;
}
.fqx-field-tile__count {
  font-size: .78rem; font-weight: 600; color: #64748b;
}

/* ── Catalog ── */
.fqx-catalog { padding-bottom: 72px; }
.fqx-list { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.fqx-group { margin-top: 36px; }
.fqx-group__head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 18px;
}
.fqx-group__head h3 {
  margin: 0; font-size: 1.18rem; font-weight: 850; color: #162C55;
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.fqx-group__count { color: #94a3b8; font-size: .82rem; font-weight: 600; }
.fqx-group__intro { margin: 0; color: #64748b; font-size: .9rem; }

.fqx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* Standard card — media-left compact (Option B) */
.fqx-card {
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.fqx-card:hover {
  border-color: #179D99;
  box-shadow: 0 10px 28px rgba(23,157,153,.10);
  transform: translateY(-1px);
}
.fqx-card--hidden { display: none; }
.fqx-card__link {
  display: flex; align-items: stretch; gap: 0;
  padding: 0; min-height: 88px;
}
.fqx-card__body {
  flex: 1; min-width: 0; padding: 12px 12px 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.fqx-card__title {
  margin: 0; font-size: .98rem; font-weight: 800; color: #0f172a;
  letter-spacing: -.01em; line-height: 1.25;
}
.fqx-card__sub {
  margin: 0; color: #64748b; font-size: .82rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.fqx-card__meta {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 5px;
}
.fqx-card__chevron {
  align-self: center; padding: 0 16px 0 10px;
  color: #cbd5e1; font-size: 1.1rem; flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.fqx-card:hover .fqx-card__chevron { color: #179D99; transform: translateX(3px); }

/* ── Hero thumbnails (image or fallback) ── */
.fqx-thumb {
  flex-shrink: 0; overflow: hidden;
  /* v1.4 — Soft brand-tinted wash. The hero PNGs are transparent cutouts, so
     this is what shows behind the figure. Light enough that faces stay clean,
     teal-tinted enough to feel on-brand instead of boring slate. */
  background: linear-gradient(160deg, #ecf5f4 0%, #c8e1de 55%, #b2d5d1 100%);
}
.fqx-thumb--standard { width: 88px; }
.fqx-thumb--featured {
  width: 100%; aspect-ratio: 4/3; border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.fqx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* v1.3 — pull focal point up so faces stay in frame. No filters needed;
   the transparent cutouts now sit on a soft light background. */
.fqx-thumb--featured img { object-position: center 22%; }
.fqx-thumb--standard img { object-position: center 25%; }
.fqx-thumb--fallback { display: flex; align-items: center; justify-content: center; }
.fqx-thumb__initials {
  color: #fff; font-weight: 850; letter-spacing: .03em;
  font-size: .92rem; text-align: center; line-height: 1.05;
  padding: 0 8px; max-width: 100%;
}
.fqx-thumb--featured .fqx-thumb__initials { font-size: 1.6rem; }

/* ── Pills ── */
.fqx-pill {
  font-size: .68rem; font-weight: 700; color: #475569;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.fqx-pill--accent {
  color: #0f766e; background: rgba(23,157,153,.1); border-color: rgba(23,157,153,.2);
}

/* ── Buttons ── */
.fqx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: .9rem; font-weight: 750;
  border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  white-space: nowrap; line-height: 1.2;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.fqx-btn--primary,
a.fqx-btn--primary,
.fqx-btn--primary:visited,
.fqx-btn--primary:link {
  background: linear-gradient(135deg, #179D99, #3BC6C2);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(23,157,153,.25);
}
.fqx-btn--primary:hover,
a.fqx-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(23,157,153,.32);
  color: #ffffff !important;
}
.fqx-btn--ghost {
  background: #fff; color: #162C55; border-color: #cbd5e1;
}
.fqx-btn--ghost:hover {
  border-color: #179D99; color: #179D99;
}

/* ── Show more row ── */
.fqx-group__more-row { margin-top: 14px; text-align: center; }

/* ── Empty / no-results ── */
.fqx-empty,
.fqx-noresults {
  text-align: center; padding: 56px 20px; color: #94a3b8; font-size: 1rem;
}

/* ── Bottom CTA ── */
.fqx-cta-block {
  max-width: 980px; margin: 60px auto 80px; padding: 44px 28px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc, #eef4fb);
  border: 1px solid #e2e8f0; border-radius: 22px;
}
.fqx-cta-block h2 {
  margin: 0 0 8px; font-size: 1.5rem; font-weight: 850; color: #0f172a;
  letter-spacing: -.02em;
}
.fqx-cta-block p {
  margin: 0 auto 22px; max-width: 480px; color: #64748b; font-size: .96rem;
}
.fqx-cta-block__btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .fqx-section-head { margin-top: 40px; }
  .fqx-fields__rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 160px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .fqx-field-tile { scroll-snap-align: start; }
  .fqx-featured__rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .fqx-feat-card { scroll-snap-align: start; }
  .fqx-grid { grid-template-columns: 1fr; }
  .fqx-card__link { min-height: 78px; }
  .fqx-thumb--standard { width: 78px; }
  .fqx-card__sub { -webkit-line-clamp: 2; }
}


/* ── v1.5 — search UX ─────────────────────────────────────────────────── */
.fqx-hero__search { position: relative; }
.fqx-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(15,23,42,.06); color: #475569;
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.fqx-search-clear:hover { background: rgba(15,23,42,.12); color: #0f172a; }
.fqx-search-clear[hidden] { display: none; }

/* When the user is searching, hide the noise so results are the only thing */
body.fqx-searching .fqx-why,
body.fqx-searching .fqx-featured,
body.fqx-searching .fqx-fields { display: none !important; }
body.fqx-searching .fqx-section-head { margin-top: 28px; }

/* Catalog head emphasis when filtering */
body.fqx-searching .fqx-section-head h2 {
  color: #0f172a;
}
body.fqx-searching #fqx-catalog-sub strong { color: #179D99; }

/* No-results — bigger, friendlier */
.fqx-noresults {
  max-width: 720px; margin: 24px auto;
  text-align: center; padding: 56px 28px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px;
  color: #475569;
}
.fqx-noresults__icon { font-size: 2.4rem; margin-bottom: 8px; }
.fqx-noresults h3 { margin: 0 0 6px; font-size: 1.2rem; color: #0f172a; font-weight: 850; letter-spacing: -.01em; }
.fqx-noresults p  { margin: 0 0 18px; font-size: .95rem; }
.fqx-noresults__btns { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
