/* ===== DataForge solutions (catalogue + solution pages), styled to match landing.css ===== */
:root {
  --pv-purple: #5a329a;
  --pv-purple-hi: #8a5cf6;
  --pv-orange: #f39568;
  --pv-teal: #077c76;
  --pv-dark: #0a0812;
  --pv-dark2: #130e24;
  --pv-ink: #f6f3ff;
  --pv-muted: rgba(246, 243, 255, .62);
  --pv-line: rgba(246, 243, 255, .1);
  --pv-glass: rgba(246, 243, 255, .04);
  --pv-grad: linear-gradient(110deg, var(--pv-purple) 0%, #7a43d6 45%, var(--pv-orange) 100%);
  --pv-ease: cubic-bezier(.16, 1, .3, 1);
}

body.pv-body { font-family: 'Inter', 'Inter-Fallback', Arial, sans-serif; background: var(--pv-dark); color: var(--pv-ink); }

.sx { background: var(--pv-dark); color: var(--pv-ink); overflow: hidden; overflow: clip; }
.sx a { color: #c9b5ff; }
.sx a:hover { color: var(--pv-orange); }

/* ---------- Hero ---------- */
.sx-hero {
  position: relative; isolation: isolate;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(120% 90% at 50% 0%, var(--pv-dark2) 0%, var(--pv-dark) 85%);
}
.sx-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.sx-grid {
  position: absolute; left: -50%; right: -50%; bottom: -20%; height: 75%;
  background-image:
    linear-gradient(rgba(138, 92, 246, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 92, 246, .18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(64deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, transparent 100%);
}
.sx-orb { position: absolute; border-radius: 50%; filter: blur(80px); mix-blend-mode: screen; }
.sx-orb--a { width: 40vw; height: 40vw; left: -6%; top: -10%; background: var(--pv-purple); opacity: .5; }
.sx-orb--b { width: 30vw; height: 30vw; right: -4%; top: 10%; background: var(--pv-orange); opacity: .25; }
.sx-orb--c { width: 26vw; height: 26vw; left: 45%; bottom: -15%; background: var(--pv-teal); opacity: .3; }

.sx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sx-narrow { max-width: 820px; }

.sx-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pv-muted); }
.sx-crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }
.sx-crumbs a { color: var(--pv-muted); text-decoration: none; }
.sx-crumbs a:hover { color: var(--pv-ink); }
.sx-crumbs [aria-current] { color: var(--pv-ink); }
.sx-crumbs li[aria-current]:not(:nth-child(2)) { text-transform: none; letter-spacing: 0; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sx-title {
  font-weight: 900; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  margin: 0 0 1.25rem; color: var(--pv-ink);
}
.sx-title--long { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.sx-title-grad { background: var(--pv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--pv-muted); margin: 0 0 1.5rem; }
.sx-lead p:last-child { margin-bottom: 0; }
.sx-tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 600; color: var(--pv-ink); margin: -.25rem 0 1.25rem; max-width: 46rem; }
.sx-title { overflow-wrap: anywhere; }

/* Write-ups come from the database as HTML, possibly with inline colours: force them onto the dark theme */
.sx-prose { font-size: 1.05rem; line-height: 1.75; color: rgba(246, 243, 255, .82); }
.sx-prose * { color: inherit !important; background: transparent !important; }
.sx-prose a { color: #c9b5ff !important; text-decoration: underline; text-underline-offset: 3px; }
.sx-prose h1, .sx-prose h2, .sx-prose h3, .sx-prose h4, .sx-prose strong, .sx-prose b { color: var(--pv-ink) !important; }
.sx-prose h1, .sx-prose h2, .sx-prose h3, .sx-prose h4 { font-weight: 800; letter-spacing: -.02em; margin: 2rem 0 .75rem; }
.sx-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.sx-prose table { width: 100%; border-collapse: collapse; }
.sx-prose th, .sx-prose td { border: 1px solid var(--pv-line); padding: .5rem .75rem; }
.sx-prose ul li::marker, .sx-prose ol li::marker { color: var(--pv-orange); }
.sx-note { color: var(--pv-muted); }

/* ---------- Search + filters ---------- */
.sx-browse { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.sx-tools { max-width: 820px; margin: 0 auto 2.5rem; }
.sx-search { position: relative; margin-bottom: 1.25rem; }
.sx-search i { position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%); color: var(--pv-muted); pointer-events: none; }
.sx-search input {
  width: 100%; padding: 1.05rem 1.4rem 1.05rem 3.2rem;
  border-radius: 999px; border: 1px solid var(--pv-line);
  background: rgba(246, 243, 255, .06); color: var(--pv-ink); font-size: 1rem;
  transition: border-color .3s var(--pv-ease), box-shadow .3s var(--pv-ease);
}
.sx-search input::placeholder { color: rgba(246, 243, 255, .45); }
.sx-search input:focus { outline: none; border-color: var(--pv-purple-hi); box-shadow: 0 0 0 4px rgba(138, 92, 246, .25); }

.sx-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sx-chip {
  border: 1px solid var(--pv-line); background: var(--pv-glass); color: var(--pv-muted);
  border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.sx-chip:hover { color: var(--pv-ink); border-color: rgba(246, 243, 255, .3); }
.sx-chip.is-active { background: var(--pv-grad); background-origin: border-box; border-color: transparent; color: #fff; }
.sx-chip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Catalogue grid ---------- */
.sx-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.sx-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(246, 243, 255, .06), rgba(246, 243, 255, .02));
  border: 1px solid var(--pv-line);
  transition: transform .45s var(--pv-ease), border-color .45s var(--pv-ease), box-shadow .45s var(--pv-ease);
}
.sx-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 92, 246, .55);
  box-shadow: 0 30px 70px -30px rgba(138, 92, 246, .6);
}
.sx-logo { display: block; margin: .75rem .75rem 0; border-radius: 14px; background: #fff; overflow: hidden; }
.sx-logo img { display: block; width: 100%; height: 180px; object-fit: contain; padding: 1rem; }
.sx-card-body { padding: 1.25rem 1.4rem .5rem; flex: 1; }
.sx-card h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6rem; }
.sx-card h2 a { color: var(--pv-ink); text-decoration: none; }
.sx-card h2 a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.sx-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.sx-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-orange); background: rgba(243, 149, 104, .1); border-radius: 999px; padding: .2rem .6rem; }
.sx-card p { color: var(--pv-muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.sx-card-foot { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem 1.4rem; }
.sx-card-foot a { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.sx-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .6rem 1.2rem; font-weight: 700; font-size: .9rem;
  color: #fff !important; text-decoration: none; background: var(--pv-grad); background-size: 200% 100%;
  box-shadow: 0 14px 34px -14px rgba(138, 92, 246, .7);
  transition: background-position .5s var(--pv-ease), box-shadow .4s var(--pv-ease), transform .4s var(--pv-ease);
}
.sx-btn:hover { background-position: 100% 0; box-shadow: 0 20px 44px -14px rgba(243, 149, 104, .7); transform: translateY(-1px); }
.sx-btn--lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.sx-ghost { color: var(--pv-muted) !important; font-size: .85rem; font-weight: 600; text-decoration: none; }
.sx-ghost:hover { color: var(--pv-ink) !important; }

.sx-empty { margin-top: 2rem; text-align: center; color: var(--pv-muted); border: 1px dashed var(--pv-line); border-radius: 18px; padding: 1.5rem; }

/* ---------- Next steps ---------- */
.sx-next { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--pv-line); background: radial-gradient(80% 120% at 0% 100%, rgba(90, 50, 154, .35), transparent 60%), var(--pv-dark); }
.sx-next-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.sx-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--pv-orange); margin-bottom: 1rem; }
.sx-h2 { font-weight: 900; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.9rem, 4.2vw, 3.2rem); margin: 0 0 1rem; color: var(--pv-ink); }
.sx-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.sx-point { display: flex; gap: .9rem; padding: 1.1rem; border-radius: 18px; background: var(--pv-glass); border: 1px solid var(--pv-line); }
.sx-point i { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(138, 92, 246, .18); color: #c9b5ff; }
.sx-point h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; color: var(--pv-ink); }
.sx-point p { font-size: .9rem; color: var(--pv-muted); margin: 0; }
.sx-book {
  position: relative; border-radius: 28px; padding: clamp(1.75rem, 4vw, 2.75rem); overflow: hidden;
  background: linear-gradient(160deg, rgba(90, 50, 154, .55), rgba(19, 14, 36, .9) 55%), var(--pv-dark2);
  border: 1px solid rgba(138, 92, 246, .35);
  box-shadow: 0 40px 90px -40px rgba(138, 92, 246, .7);
}
.sx-book::after { content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; bottom: -30%; border-radius: 50%; background: var(--pv-orange); filter: blur(70px); opacity: .25; pointer-events: none; }
.sx-book > * { position: relative; z-index: 1; }
.sx-book h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .75rem; color: var(--pv-ink); }
.sx-book p { color: var(--pv-muted); margin: 0 0 1.75rem; }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
  .sx-next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .sx-points { grid-template-columns: 1fr; }
  .sx-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .sx-filters::-webkit-scrollbar { display: none; }
  .sx-chip { flex: none; }
  .sx-orb { filter: blur(50px); }
  .sx-btn--lg { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sx-card, .sx-btn, .sx-search input { transition: none; }
  .sx-card:hover, .sx-btn:hover { transform: none; }
}

/* ---------- Footer (shared footer include, restyled only on pages that load this file) ---------- */
body.pv-body footer.bg-dark {
  position: relative; isolation: isolate;
  background: radial-gradient(60% 80% at 0% 0%, rgba(90, 50, 154, .22), transparent 70%), #0a0812 !important;
  border-top: 1px solid rgba(246, 243, 255, .1);
}
body.pv-body footer a.link-light { color: rgba(246, 243, 255, .62) !important; text-decoration: none; transition: color .2s; }
body.pv-body footer a.link-light:hover, body.pv-body footer a.link-light:focus { color: #f39568 !important; }
body.pv-body footer .btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .65rem 1.3rem; font-weight: 700; font-size: .92rem;
  color: #f6f3ff !important; background: rgba(246, 243, 255, .05) !important;
  border: 1px solid rgba(246, 243, 255, .18) !important; box-shadow: none !important;
  transition: border-color .3s cubic-bezier(.16, 1, .3, 1), background .3s cubic-bezier(.16, 1, .3, 1), transform .3s cubic-bezier(.16, 1, .3, 1);
}
body.pv-body footer .btn-primary:hover, body.pv-body footer .btn-primary:focus-visible {
  border-color: rgba(138, 92, 246, .7) !important; background: rgba(138, 92, 246, .14) !important; transform: translateY(-1px);
}
body.pv-body footer .btn-primary[href^="tel:"]::before,
body.pv-body footer .btn-primary[href^="mailto:"]::before { font-family: 'bootstrap-icons'; font-weight: 400; line-height: 1; }
body.pv-body footer .btn-primary[href^="tel:"]::before { content: '\F5C1'; }
body.pv-body footer .btn-primary[href^="mailto:"]::before { content: '\F32F'; }
body.pv-body footer .btn-primary[href*="calendly.com"] {
  color: #fff !important; border-color: transparent !important;
  background: linear-gradient(110deg, #5a329a 0%, #7a43d6 45%, #f39568 100%) !important;
  background-size: 200% 100% !important; background-origin: border-box !important;
  box-shadow: 0 14px 34px -14px rgba(138, 92, 246, .7) !important;
}
body.pv-body footer .btn-primary[href*="calendly.com"]:hover { background-position: 100% 0 !important; box-shadow: 0 20px 44px -14px rgba(243, 149, 104, .7) !important; }
@media (prefers-reduced-motion: reduce) {
  body.pv-body footer .btn-primary { transition: none; }
  body.pv-body footer .btn-primary:hover { transform: none; }
}

/* Footer links big enough to tap (24 px minimum target). */
body.pv-body footer ul.list-unstyled a.link-light { display: inline-block; padding: 4px 0; min-height: 24px; }
body.pv-body footer .list-inline a.link-light { display: inline-block; padding: 4px 6px; min-height: 24px; }

/* ===== Practices (catalogue + practice pages): px- classes, built on the sx- system above ===== */
.px-impact {
  margin: 0 0 1.75rem; padding: 1.25rem 1.4rem; border-radius: 18px;
  background: var(--pv-glass); border: 1px solid var(--pv-line); border-left: 3px solid var(--pv-orange);
}
.px-impact h2 { font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--pv-orange); margin: 0 0 .5rem; }
.px-impact p { margin: 0; color: var(--pv-ink); font-size: 1.05rem; line-height: 1.6; }
.px-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.px-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.px-chip { border: 1px solid var(--pv-line); background: var(--pv-glass); color: var(--pv-muted); border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; font-weight: 600; }

.px-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.px-section + .px-section { padding-top: 0; }
.px-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.px-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.px-head .px-h2 { margin: 0; }

/* Partner cards title (practice pages use h3 under the section h2) */
.sx-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6rem; color: var(--pv-ink); }

/* Catalogue cards: text only, whole card links to the practice */
.px-card .sx-card-body { padding-top: 1.4rem; }
.px-card h2 a::after { content: ''; position: absolute; inset: 0; }
.px-more { color: #c9b5ff; font-size: .85rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; transition: color .2s, gap .3s var(--pv-ease); }
.px-card:hover .px-more { color: var(--pv-orange); gap: .65rem; }

/* FAQ accordion on the dark theme (Bootstrap collapse still drives it) */
.px-faq { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--pv-line); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(138, 92, 246, .35); }
.px-faq .accordion-item { background: var(--pv-glass); border: 1px solid var(--pv-line); border-radius: 18px !important; margin-bottom: .75rem; overflow: hidden; }
.px-faq .accordion-button { background: transparent; color: var(--pv-ink); font-weight: 700; font-size: 1.02rem; padding: 1.15rem 1.4rem; box-shadow: none; }
.px-faq .accordion-button:not(.collapsed) { color: var(--pv-ink); background: rgba(138, 92, 246, .1); }
.px-faq .accordion-button::after { filter: invert(1) brightness(1.6); }
.px-faq .accordion-body { color: rgba(246, 243, 255, .78); line-height: 1.7; padding: .9rem 1.4rem 1.25rem; }
.px-faq .accordion-collapse, .px-faq .accordion-collapse.collapsing, .px-faq .accordion-body { background: transparent !important; }

@media (max-width: 575.98px) {
  .px-cta-row .sx-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .px-more { transition: none; }
}
