/* ==========================================================================
   PLEXARIS — design system
   Token architecture modeled on softswiss.com (fluid unit + ref/semantic
   layers), rebuilt for the Plexaris emerald/gold identity.
   ========================================================================== */

/* ---------- Fonts (Fontshare: Clash Display + General Sans) ---------- */

/* ---------- Reference + semantic tokens ---------- */
:root {
  /* fluid scaling — same technique as softswiss2022 theme */
  --fluid-unit: calc(100vw / 1512);

  /* reference palette */
  --ref-black: #0a0d0c;
  --ref-ink: #101513;
  --ref-ink-2: #17201c;
  --ref-white: #ffffff;
  --ref-offwhite: #f4f6f5;
  --ref-surface-light: #eef1ef;
  --ref-border-light: #e2e8e4;
  --ref-border-dark: #233029;
  --ref-emerald: #0fbf7a;
  --ref-emerald-deep: #0a8f5c;
  --ref-emerald-dark: #07603e;
  --ref-gold: #d9a441;
  --ref-gold-light: #f2c66d;
  --ref-teal: #2ab5a5;
  --ref-copper: #c0704d;
  --ref-gray: #6b7672;

  /* product accents (per-product hue, as on softswiss) */
  --brand-cp: var(--ref-emerald);   /* Casino Platform  */
  --brand-ga: var(--ref-gold);      /* Game Aggregator  */
  --brand-sb: var(--ref-teal);      /* Sportsbook       */
  --brand-pm: var(--ref-copper);    /* Prediction Mkts  */

  /* type */
  --font-headings: 'Clash Display', 'Arial Black', sans-serif;
  --font-primary: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  --fs-xxl: clamp(34px, calc(64 * var(--fluid-unit)), 74px);
  --fs-xl: clamp(28px, calc(46 * var(--fluid-unit)), 52px);
  --fs-l: clamp(22px, calc(32 * var(--fluid-unit)), 36px);
  --fs-m: clamp(17px, calc(20 * var(--fluid-unit)), 22px);
  --fs-s: clamp(15px, calc(17 * var(--fluid-unit)), 18px);
  --fs-xs: clamp(13px, calc(14 * var(--fluid-unit)), 15px);

  /* radii / borders / spacing */
  --radius-xs: max(8px, calc(8 * var(--fluid-unit)));
  --radius-s: max(10px, calc(12 * var(--fluid-unit)));
  --radius-m: max(14px, calc(16 * var(--fluid-unit)));
  --radius-l: max(20px, calc(22 * var(--fluid-unit)));
  --radius-xl: max(28px, calc(30 * var(--fluid-unit)));
  --radius-pill: 999px;
  --bw-s: 1px;
  --bw-m: 1.5px;
  --space-section: clamp(72px, calc(120 * var(--fluid-unit)), 140px);
  --space-block: clamp(36px, calc(56 * var(--fluid-unit)), 64px);
  --container: min(1272px, calc(100vw - clamp(32px, calc(120 * var(--fluid-unit)), 120px)));

  --btn-h: max(46px, calc(50 * var(--fluid-unit)));
  --header-h: 76px;

  --shadow-card: 0 18px 50px -22px rgba(4, 12, 8, .35);
  --shadow-card-dark: 0 24px 60px -28px rgba(0, 0, 0, .8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* the JS inertial-scroll engine takes over easing when active */
html.js-smooth { scroll-behavior: auto; }
body {
  font-family: var(--font-primary);
  font-size: var(--fs-s);
  line-height: 1.6;
  color: var(--ref-ink);
  background: var(--ref-offwhite);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.08;
  /* Clash Display sets words tight; negative tracking is kept for the glyphs
     while word-spacing re-opens the gaps so headings never read as one word. */
  letter-spacing: -0.015em;
  word-spacing: .14em;
}
.container { width: var(--container); margin-inline: auto; }

/* Section theming — softswiss-style alternating light/dark bands */
section { padding-block: var(--space-section); position: relative; }
[data-theme="dark"] {
  background: var(--ref-black);
  color: var(--ref-offwhite);
}
[data-theme="light"] { background: var(--ref-offwhite); color: var(--ref-ink); }
[data-theme="tint"] { background: var(--ref-surface-light); color: var(--ref-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ref-emerald-deep);
  margin-bottom: 18px;
}
[data-theme="dark"] .eyebrow { color: var(--ref-emerald); }
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ref-emerald), var(--ref-gold));
}
.section-head { max-width: 780px; margin-bottom: var(--space-block); }
.section-head h2 { font-size: var(--fs-xl); margin-bottom: 14px; }
.section-head p { font-size: var(--fs-m); color: var(--ref-gray); }
[data-theme="dark"] .section-head p { color: #9fb0a8; }
.section-head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ---------- Buttons (pill, softswiss-style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding-inline: clamp(22px, calc(30 * var(--fluid-unit)), 34px);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .02em; cursor: pointer; border: var(--bw-m) solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(100deg, var(--ref-emerald) 0%, var(--ref-emerald-deep) 100%);
  color: #fff; box-shadow: 0 10px 30px -12px rgba(15, 191, 122, .55);
}
.btn--primary:hover { box-shadow: 0 16px 36px -12px rgba(15, 191, 122, .7); }
.btn--gold {
  background: linear-gradient(100deg, var(--ref-gold-light), var(--ref-gold));
  color: var(--ref-black); box-shadow: 0 10px 30px -12px rgba(217, 164, 65, .5);
}
.btn--ghost { border-color: var(--ref-border-dark); color: var(--ref-offwhite); background: transparent; }
.btn--ghost:hover { border-color: var(--ref-emerald); color: var(--ref-emerald); }
.btn--ghost-light { border-color: #c6d0ca; color: var(--ref-ink); background: transparent; }
.btn--ghost-light:hover { border-color: var(--ref-emerald-deep); color: var(--ref-emerald-deep); }
.btn--sm { height: 40px; padding-inline: 20px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-xs); color: var(--ref-emerald-deep);
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
[data-theme="dark"] .link-arrow { color: var(--ref-emerald); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 13, 12, .72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--ref-offwhite);
  transition: background .45s ease, box-shadow .45s ease;
}
.site-header.scrolled {
  background: rgba(10, 13, 12, .88);
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .65);
}
.site-header .container { display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; display: block; }
.logo-word {
  font-family: var(--font-headings); font-weight: 700; font-size: 21px;
  letter-spacing: .06em;
}
.logo-word em { font-style: normal; color: var(--ref-emerald); }
.logo-tag {
  display: block; font-size: 9.5px; letter-spacing: .3em; font-weight: 500;
  color: #8fa39a; text-transform: uppercase; margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 500; color: #cfd9d4;
  transition: color .15s ease, background .15s ease;
}
.nav-link { transition: color .3s ease, background .3s ease; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--ref-emerald); background: rgba(15, 191, 122, .1); }
.nav-link .chev { transition: transform .2s ease; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--ref-ink); border: 1px solid var(--ref-border-dark);
  border-radius: var(--radius-m); padding: 10px;
  box-shadow: var(--shadow-card-dark);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1), visibility .28s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: var(--radius-s);
  font-size: 14.5px; font-weight: 600; color: #e7eeea;
}
.dropdown a span { font-size: 12.5px; font-weight: 400; color: #8fa39a; }
.dropdown a:hover { background: rgba(15, 191, 122, .1); color: var(--ref-emerald); }
.dropdown a:hover span { color: #9fb0a8; }
.dropdown a[data-accent="ga"]:hover { color: var(--ref-gold); background: rgba(217,164,65,.1); }
.dropdown a[data-accent="sb"]:hover { color: var(--ref-teal); background: rgba(42,181,165,.1); }
.dropdown a[data-accent="pm"]:hover { color: var(--ref-copper); background: rgba(192,112,77,.12); }

.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(620px, 92vh, 860px);
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + clamp(48px, 9vh, 96px)) clamp(64px, 10vh, 110px);
  background:
    linear-gradient(180deg, rgba(10,13,12,.25) 0%, rgba(10,13,12,.05) 35%, rgba(10,13,12,.82) 92%),
    url('/assets/img/hero-bg.webp?v=9d4267e2') center / cover no-repeat,
    var(--ref-black);
  color: var(--ref-offwhite);
  overflow: hidden;
}
.hero-inner { max-width: 760px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 13px; font-weight: 500; color: #d9e3de;
  background: rgba(10,13,12,.35); backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ref-emerald);
  box-shadow: 0 0 0 4px rgba(15,191,122,.22);
}
.hero h1 { font-size: var(--fs-xxl); margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--ref-emerald) 10%, var(--ref-gold-light) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: var(--fs-m); color: #e5ede9; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats band ---------- */
.stats-band { padding-block: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-xl); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card);
  transform: translateY(calc(-1 * clamp(40px, calc(60 * var(--fluid-unit)), 70px)));
  margin-bottom: calc(-1 * clamp(40px, calc(60 * var(--fluid-unit)), 70px) + var(--space-section) * -0.35);
  position: relative; z-index: 5;
}
.stat {
  padding: clamp(26px, calc(40 * var(--fluid-unit)), 46px) clamp(18px, calc(32 * var(--fluid-unit)), 40px);
  border-right: 1px solid var(--ref-border-light);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: var(--font-headings); font-weight: 700;
  font-size: clamp(30px, calc(44 * var(--fluid-unit)), 50px);
  letter-spacing: -.01em; color: var(--ref-ink); line-height: 1;
  margin-bottom: 8px;
}
.stat b em { font-style: normal; color: var(--ref-emerald-deep); }
.stat span { font-size: var(--fs-xs); color: var(--ref-gray); font-weight: 500; }

/* ---------- Product cards ---------- */
.products-grid { display: grid; gap: clamp(18px, calc(24 * var(--fluid-unit)), 28px); }
.product-card {
  --accent: var(--brand-cp);
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  background: var(--ref-black); color: var(--ref-offwhite);
  border-radius: var(--radius-xl); overflow: hidden;
  border: var(--bw-m) solid rgba(255,255,255,.06);
  min-height: 360px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-dark); }
.product-card[data-accent="ga"] { --accent: var(--brand-ga); }
.product-card[data-accent="sb"] { --accent: var(--brand-sb); }
.product-card[data-accent="pm"] { --accent: var(--brand-pm); }
.product-card__body {
  padding: clamp(28px, calc(48 * var(--fluid-unit)), 54px);
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
.product-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.product-card__body h3 { font-size: var(--fs-l); }
.product-card__claim { font-size: var(--fs-s); color: #b9c6c0; }
.product-card__claim b { color: var(--ref-offwhite); }
.product-feats { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.product-feats li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: var(--fs-xs); color: #a9b8b1;
}
.product-feats li::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: translateY(-1px);
}
.product-card__media { position: relative; min-height: 260px; }
.product-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center right;
}
.product-card__cta { margin-top: 10px; }
.product-card .link-arrow { color: var(--accent); }

/* ---------- Solutions ---------- */
.solutions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, calc(20 * var(--fluid-unit)), 24px);
}
.solution-card {
  background: #fff; border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-l);
  padding: clamp(24px, calc(34 * var(--fluid-unit)), 38px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.solution-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--ref-emerald) 40%, var(--ref-border-light));
}
.solution-card .icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15,191,122,.14), rgba(217,164,65,.14));
  color: var(--ref-emerald-deep);
}
.solution-card h3 { font-size: var(--fs-m); }
.solution-card p { font-size: var(--fs-xs); color: var(--ref-gray); flex-grow: 1; }

/* ---------- Logo marquee ---------- */
.partners { overflow: hidden; }
.marquee { position: relative; overflow: hidden; padding-block: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: var(--bw-m) solid var(--ref-border-light); border-radius: var(--radius-pill);
  background: #fff; padding: 14px 26px;
  font-family: var(--font-headings); font-weight: 600; font-size: 15px;
  letter-spacing: .08em; color: #4a5652; white-space: nowrap;
}
.partner-chip i {
  width: 9px; height: 9px; border-radius: 3px; font-style: normal;
  background: linear-gradient(135deg, var(--ref-emerald), var(--ref-gold));
}

/* ---------- Why choose (pillars, dark) ---------- */
.pillars {
  background:
    linear-gradient(180deg, rgba(10,13,12,.88), rgba(10,13,12,.65)),
    url('/assets/img/features-bg.webp?v=906aa9cb') center / cover no-repeat, var(--ref-black);
}
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, calc(22 * var(--fluid-unit)), 26px);
}
.pillar {
  border: var(--bw-m) solid rgba(255,255,255,.09);
  background: rgba(16,21,19,.62); backdrop-filter: blur(12px);
  border-radius: var(--radius-l);
  padding: clamp(26px, calc(40 * var(--fluid-unit)), 44px);
  display: flex; flex-direction: column; gap: 13px;
  transition: border-color .22s ease, transform .22s ease;
}
.pillar:hover { border-color: rgba(15,191,122,.45); transform: translateY(-3px); }
.pillar .icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,191,122,.13); color: var(--ref-emerald);
  border: 1px solid rgba(15,191,122,.25);
}
.pillar h3 { font-size: var(--fs-m); }
.pillar p { font-size: var(--fs-xs); color: #9fb0a8; }

/* ---------- Compliance strip ---------- */
.badges-row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.badge-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  border: var(--bw-m) solid var(--ref-border-light); background: #fff;
  border-radius: var(--radius-m); padding: 14px 20px; min-width: 150px;
}
.badge-chip b { font-size: 13.5px; font-weight: 600; color: var(--ref-ink); }
.badge-chip span { font-size: 11.5px; color: var(--ref-gray); letter-spacing: .04em; }
.compliance-note { margin-top: 18px; font-size: 12.5px; color: var(--ref-gray); max-width: 640px; }

/* ---------- Publication cards ---------- */
.pubs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, calc(20 * var(--fluid-unit)), 24px);
}
.pub-card {
  background: #fff; border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pub-card { overflow: hidden; }
.pub-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.pub-card:hover img { transform: scale(1.045); }
.pub-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex-grow: 1; }
.pub-meta { display: flex; gap: 10px; font-size: 12px; color: var(--ref-gray); }
.pub-meta .cat { color: var(--ref-emerald-deep); font-weight: 600; }
.pub-card h3 { font-size: 16.5px; line-height: 1.32; font-weight: 600; font-family: var(--font-primary); flex-grow: 1; }
.pub-card:hover h3 { color: var(--ref-emerald-deep); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: var(--bw-m) solid var(--ref-border-light); border-radius: var(--radius-m);
  background: #fff; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-primary); font-size: var(--fs-s); font-weight: 600; color: var(--ref-ink);
}
.faq-q .faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: var(--bw-m) solid var(--ref-border-light);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  color: var(--ref-emerald-deep);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--ref-emerald); border-color: var(--ref-emerald); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.22,.61,.36,1); }
.faq-a__inner { padding: 0 24px 22px; font-size: var(--fs-xs); color: #5b6763; max-width: 720px; }
.faq-a__inner a { color: var(--ref-emerald-deep); font-weight: 600; }

/* ---------- CTA canvas ---------- */
.cta-canvas { padding-block: var(--space-section); }
.cta-box {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  background: url('/assets/img/cta-bg.webp?v=0b78acab') center / cover no-repeat, #fff;
  border: var(--bw-m) solid var(--ref-border-light);
  padding: clamp(44px, calc(80 * var(--fluid-unit)), 92px) clamp(24px, calc(80 * var(--fluid-unit)), 92px);
  text-align: center;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.55));
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: var(--fs-xl); margin-bottom: 14px; }
.cta-box p { font-size: var(--fs-m); color: #45524d; max-width: 560px; margin: 0 auto 30px; }
.cta-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.cta-form input {
  height: var(--btn-h); width: min(360px, 100%);
  border-radius: var(--radius-pill); border: var(--bw-m) solid #c9d3cd;
  padding-inline: 24px; font-family: var(--font-primary); font-size: 14.5px;
  background: rgba(255,255,255,.9); color: var(--ref-ink); outline: none;
}
.cta-form input:focus { border-color: var(--ref-emerald); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ref-black); color: #aebbb4;
  padding: clamp(56px, calc(90 * var(--fluid-unit)), 100px) 0 36px;
  font-size: 14px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(28px, calc(48 * var(--fluid-unit)), 60px);
  padding-bottom: 48px; border-bottom: 1px solid var(--ref-border-dark);
}
.footer-brand p { margin-top: 16px; max-width: 300px; font-size: 13.5px; color: #8b9b93; }
.footer-brand .logo-word { color: var(--ref-offwhite); }
.footer-col h4 {
  font-family: var(--font-primary); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #778b81; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #c3cfc9; font-size: 14px; }
.footer-col a:hover { color: var(--ref-emerald); }
.footer-mid {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-block: 26px; border-bottom: 1px solid var(--ref-border-dark);
}
.tech-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #778b81; }
.tech-row b { color: #aebbb4; font-weight: 600; letter-spacing: .04em; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ref-border-dark);
  display: flex; align-items: center; justify-content: center; color: #aebbb4;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.socials a:hover { border-color: var(--ref-emerald); color: var(--ref-emerald); transform: translateY(-2px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; font-size: 12.5px; color: #6d8078;
}
.footer-bottom a { color: #93a69d; }
.footer-bottom a:hover { color: var(--ref-emerald); }
.license-line { font-size: 12px; color: #6d8078; margin-top: 14px; max-width: 560px; }

/* ---------- Product page extras ---------- */
.page-hero {
  --page-hero-img: url('/assets/img/hero-bg.webp?v=9d4267e2');
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 88px));
  padding-bottom: clamp(56px, 9vh, 96px);
  background:
    linear-gradient(90deg, rgba(10,13,12,.94) 34%, rgba(10,13,12,.45) 70%, rgba(10,13,12,.2)),
    var(--page-hero-img) right center / auto 100% no-repeat,
    var(--ref-black);
  color: var(--ref-offwhite);
}
/* Per-page hero art — declared here so relative URLs resolve against this stylesheet */
.page-hero--cp { --page-hero-img: url('/assets/img/product-casino.webp?v=68c0f88e'); }
.page-hero--ga { --page-hero-img: url('/assets/img/product-aggregator.webp?v=561574d5'); }
.page-hero--crypto { --page-hero-img: url('/assets/img/product-crypto.webp?v=13240a73'); }
.page-hero--sb { --page-hero-img: url('/assets/img/product-sportsbook.webp?v=617b180b'); }
.page-hero--pm { --page-hero-img: url('/assets/img/product-predictions.webp?v=28a5b616'); }
.page-hero--kb { --page-hero-img: url('/assets/img/hero-bg.webp?v=9d4267e2'); }
.page-hero--kb { background: linear-gradient(90deg, rgba(10,13,12,.92) 40%, rgba(10,13,12,.55)), var(--page-hero-img) center / cover no-repeat, var(--ref-black); }
.page-hero .hero-inner { max-width: 660px; }
.page-hero h1 { font-size: clamp(32px, calc(56 * var(--fluid-unit)), 62px); margin-bottom: 18px; }
.breadcrumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: #8fa39a; margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--ref-emerald); }
.breadcrumbs .sep { opacity: .5; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, calc(22 * var(--fluid-unit)), 26px); counter-reset: step; }
.step-card {
  background: #fff; border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-l); padding: clamp(26px, calc(38 * var(--fluid-unit)), 42px);
  position: relative;
}
.step-card .num {
  font-family: var(--font-headings); font-weight: 700;
  font-size: 15px; color: var(--ref-emerald-deep);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.step-card .num::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 26px; color: transparent;
  -webkit-text-stroke: 1.2px var(--ref-emerald-deep);
}
.step-card h3 { font-size: var(--fs-m); margin-bottom: 8px; }
.step-card p { font-size: var(--fs-xs); color: var(--ref-gray); }

.features-grid-9 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, calc(20 * var(--fluid-unit)), 22px);
}
.feature-tile {
  background: #fff; border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-l); padding: clamp(22px, calc(30 * var(--fluid-unit)), 34px);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-tile:hover { transform: translateY(-3px); border-color: rgba(15,191,122,.4); box-shadow: var(--shadow-card); }
.feature-tile .icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(15,191,122,.1); color: var(--ref-emerald-deep); }
.feature-tile h3 { font-size: 17px; }
.feature-tile p { font-size: 13.5px; color: var(--ref-gray); }

.juris-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.juris-tile {
  border: var(--bw-m) solid var(--ref-border-light); background: #fff;
  border-radius: var(--radius-m); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 3px;
}
.juris-tile b { font-size: 14.5px; }
.juris-tile span { font-size: 12px; color: var(--ref-gray); }

/* ---------- Knowledge base ---------- */
.kb-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-block); }
.kb-filter {
  border: var(--bw-m) solid var(--ref-border-light); background: #fff;
  border-radius: var(--radius-pill); padding: 10px 22px;
  font-family: var(--font-primary); font-size: 13.5px; font-weight: 600; color: #55625d;
  cursor: pointer; transition: all .18s ease;
}
.kb-filter.active, .kb-filter:hover {
  background: var(--ref-ink); color: #fff; border-color: var(--ref-ink);
}
.kb-search {
  display: flex; align-items: center; gap: 10px;
  border: var(--bw-m) solid var(--ref-border-light); background: #fff;
  border-radius: var(--radius-pill); padding: 0 20px; height: 48px;
  width: min(420px, 100%); margin-bottom: 22px; color: var(--ref-gray);
}
.kb-search input { border: 0; outline: 0; flex: 1; height: 100%; font-family: var(--font-primary); font-size: 14px; background: none; color: var(--ref-ink); }

/* ---------- Article ---------- */
.article-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, calc(60 * var(--fluid-unit)), 72px);
  align-items: start;
}
.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: var(--bw-m) solid var(--ref-border-light); border-radius: var(--radius-m);
  background: #fff; padding: 22px;
}
.toc h4 { font-family: var(--font-primary); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #778b81; margin-bottom: 12px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.toc a { font-size: 13.5px; color: #55625d; display: inline-block; transition: color .35s ease, transform .35s ease; }
.toc a:hover { color: var(--ref-emerald-deep); }
.toc a.active { color: var(--ref-emerald-deep); transform: translateX(4px); }
.article-body { max-width: 760px; }
.article-body > img { border-radius: var(--radius-l); margin-block: 8px 28px; }
.article-body h2 { font-size: var(--fs-l); margin: 44px 0 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body h3 { font-size: var(--fs-m); margin: 30px 0 12px; }
.article-body p { margin-bottom: 16px; color: #3c4642; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; color: #3c4642; }
.article-body ul { list-style: disc; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ref-ink); }
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #8fa39a; margin-bottom: 26px; }
.article-cta {
  border: var(--bw-m) solid rgba(15,191,122,.35); background: rgba(15,191,122,.06);
  border-radius: var(--radius-l); padding: 26px 28px; margin-block: 34px;
}
.article-cta h3 { font-size: var(--fs-m); margin-bottom: 6px; }
.article-cta p { margin-bottom: 16px; }

/* ---------- Reveal animation (progressive enhancement: only hides when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Cursor-following spotlight highlight (.glow set by JS) ---------- */
.glow { position: relative; }
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
              rgba(15, 191, 122, .08), transparent 65%);
  opacity: 0; transition: opacity .5s ease; z-index: 1;
}
.glow:hover::after { opacity: 1; }
/* dark surfaces get a stronger emerald-gold glow */
.product-card.glow::after, .pillar.glow::after {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(15, 191, 122, .16), rgba(217, 164, 65, .05) 45%, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .glow::after { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .features-grid-9, .steps-grid { grid-template-columns: 1fr 1fr; }
  .pubs-grid, .solutions-grid { grid-template-columns: 1fr 1fr; }
  .juris-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 10px; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--ref-black); border-bottom: 1px solid var(--ref-border-dark);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 20px 24px; margin: 0;
    display: none; max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 16px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 10px;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--ref-border-light); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .product-card { grid-template-columns: 1fr; }
  .product-card__media { min-height: 220px; order: -1; }
  .product-card__media img { object-position: center; }
  .pillars-grid { grid-template-columns: 1fr; }
  .page-hero { background: linear-gradient(180deg, rgba(10,13,12,.96), rgba(10,13,12,.88)), var(--page-hero-img) right bottom / cover no-repeat, var(--ref-black); }
}
@media (max-width: 640px) {
  .pubs-grid, .solutions-grid, .features-grid-9, .steps-grid, .juris-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-form { flex-direction: column; align-items: stretch; }
}

/* ---------- Lead form (contact page + inline CTA forms) ---------- */
.lead-form {
  background: #fff;
  border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-xl);
  padding: clamp(26px, calc(40 * var(--fluid-unit)), 44px);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px;
}
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: #6b7672;
}
.field label .req { color: var(--ref-emerald-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-s);
  background: var(--ref-offwhite);
  padding: 13px 16px;
  font-family: var(--font-primary); font-size: 15px; color: var(--ref-ink);
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7672' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: #a3aeaa; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ref-emerald);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 191, 122, .13);
}
.field input:invalid:not(:placeholder-shown) { border-color: #d98a8a; }
/* honeypot — hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 12.5px; color: #6b7672; }
.form-note a { color: var(--ref-emerald-deep); font-weight: 600; }
.lead-form .btn { align-self: flex-start; }
.lead-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* status messages */
.form-status {
  display: none; align-items: flex-start; gap: 10px;
  border-radius: var(--radius-m); padding: 13px 16px; font-size: 13.5px;
  animation: statusIn .45s cubic-bezier(.22,.61,.36,1);
}
.form-status.show { display: flex; }
.form-status--error { background: rgba(217, 90, 90, .08); border: 1px solid rgba(217, 90, 90, .35); color: #a33a3a; }
@keyframes statusIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* success panel replaces the form */
.form-success {
  display: none; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background: #fff; border: var(--bw-m) solid rgba(15, 191, 122, .38);
  border-radius: var(--radius-xl);
  padding: clamp(34px, calc(52 * var(--fluid-unit)), 58px);
  box-shadow: var(--shadow-card);
  animation: statusIn .5s cubic-bezier(.22,.61,.36,1);
}
.form-success.show { display: flex; }
.form-success .tick {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ref-emerald), var(--ref-emerald-deep));
  color: #fff; box-shadow: 0 12px 30px -12px rgba(15, 191, 122, .6);
}
.form-success h3 { font-size: var(--fs-l); }
.form-success p { color: var(--ref-gray); max-width: 400px; }

/* dark variant, used inside dark sections */
[data-theme="dark"] .lead-form { background: var(--ref-ink); border-color: var(--ref-border-dark); }
[data-theme="dark"] .field label { color: #8fa39a; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: rgba(255,255,255,.04); border-color: var(--ref-border-dark); color: var(--ref-offwhite);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus { background: rgba(255,255,255,.07); }

/* contact page layout */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, calc(64 * var(--fluid-unit)), 72px);
  align-items: start;
}
.contact-points { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-xs); color: #45524d; }
.contact-points .tick-sm {
  flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ref-emerald), var(--ref-emerald-deep)); color: #fff;
}
.channels { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.channel {
  display: flex; align-items: center; gap: 12px; flex: 1 1 200px;
  border: var(--bw-m) solid var(--ref-border-light); background: #fff;
  border-radius: var(--radius-m); padding: 14px 18px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.channel:hover { transform: translateY(-3px); border-color: rgba(15,191,122,.45); box-shadow: var(--shadow-card); }
.channel .ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15,191,122,.14), rgba(217,164,65,.14));
  color: var(--ref-emerald-deep);
}
.channel span { display: flex; flex-direction: column; }
.channel .lbl { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ref-gray); }
.channel .val { font-size: 14.5px; font-weight: 600; color: var(--ref-ink); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
}

/* ---------- Closing CTA band (bordered glow panel, links to contact) ---------- */
.cta-band { padding-block: clamp(56px, calc(90 * var(--fluid-unit)), 104px); }
.cta-band__inner {
  position: relative; overflow: hidden;
  border: var(--bw-m) solid rgba(15, 191, 122, .3);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(15, 191, 122, .12) 0%, transparent 58%),
    radial-gradient(90% 120% at 82% 100%, rgba(217, 164, 65, .09) 0%, transparent 60%),
    var(--ref-ink);
  padding: clamp(44px, calc(72 * var(--fluid-unit)), 84px) clamp(24px, calc(56 * var(--fluid-unit)), 64px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  box-shadow: var(--shadow-card-dark);
}
/* soft sweep that drifts across the panel */
.cta-band__inner::before {
  content: ""; position: absolute; inset: -40% -10%;
  background: radial-gradient(closest-side, rgba(15, 191, 122, .16), transparent 70%);
  opacity: .8; pointer-events: none;
  animation: ctaDrift 14s ease-in-out infinite alternate;
}
@keyframes ctaDrift {
  from { transform: translate3d(-12%, -6%, 0) scale(1); }
  to   { transform: translate3d(14%, 8%, 0) scale(1.12); }
}
.cta-band__inner > * { position: relative; z-index: 1; }

.cta-band__icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ref-emerald);
  background: rgba(15, 191, 122, .12);
  border: 1px solid rgba(15, 191, 122, .34);
  box-shadow: 0 14px 34px -14px rgba(15, 191, 122, .6);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.cta-band__inner:hover .cta-band__icon { transform: translateY(-4px) scale(1.04); }

.cta-band h2 {
  font-size: var(--fs-xl); color: var(--ref-offwhite);
  max-width: 18ch; margin-inline: auto;
}
.cta-band h2 .grad {
  background: linear-gradient(92deg, var(--ref-emerald) 8%, var(--ref-gold-light) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band p {
  font-size: var(--fs-m); color: #9fb0a8;
  max-width: 52ch; margin-inline: auto;
}
.cta-band .btn { margin-top: 10px; }

@media (max-width: 640px) {
  .cta-band h2 { max-width: none; }
  .cta-band .btn { width: 100%; }
}

/* ---------- Contact page (dark split layout, gradient-bordered form) ---------- */
.contact-dark {
  position: relative; overflow: hidden;
  background: var(--ref-black);
  color: var(--ref-offwhite);
  padding-top: calc(var(--header-h) + clamp(40px, 7vh, 80px));
  padding-bottom: clamp(64px, 10vh, 120px);
}
.contact-dark::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(60% 100% at 20% 0%, rgba(15, 191, 122, .16), transparent 62%),
    radial-gradient(55% 90% at 85% 10%, rgba(217, 164, 65, .10), transparent 60%);
  pointer-events: none;
}
/* faint grid, echoing the hero glass panels */
.contact-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 75%);
}
.contact-dark > .container { position: relative; z-index: 1; }

.contact-dark h1 {
  font-size: clamp(34px, calc(58 * var(--fluid-unit)), 64px);
  margin-bottom: 18px;
}
.contact-dark h1 .grad {
  background: linear-gradient(92deg, var(--ref-emerald) 8%, var(--ref-gold-light) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-dark .lead-in { font-size: var(--fs-m); color: #9fb0a8; max-width: 46ch; }

.contact-dark .contact-points li { color: #c3cfc9; font-size: var(--fs-s); }
.contact-dark .contact-points .tick-sm { width: 22px; height: 22px; }

.chat-label {
  display: block; margin: 34px 0 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #778b81;
}
.contact-dark .channels { margin-top: 0; }
.contact-dark .channel {
  background: rgba(16, 21, 19, .7);
  border-color: var(--ref-border-dark);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.contact-dark .channel:hover { border-color: rgba(15, 191, 122, .5); }
.contact-dark .channel .ic {
  background: linear-gradient(135deg, var(--ref-emerald), var(--ref-emerald-deep));
  color: #fff;
}
.contact-dark .channel .lbl { color: #778b81; }
.contact-dark .channel .val { color: var(--ref-offwhite); }

/* gradient-bordered glass card */
.lead-form--glass {
  position: relative;
  background: rgba(16, 21, 19, .74);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 0;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.lead-form--glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--bw-m);
  background: linear-gradient(140deg,
    rgba(15, 191, 122, .75) 0%,
    rgba(217, 164, 65, .38) 46%,
    rgba(35, 48, 41, .85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.lead-form--glass > * { position: relative; z-index: 1; }
.lead-form--glass .btn { align-self: stretch; }

.form-success--glass {
  background: rgba(16, 21, 19, .8);
  border-color: rgba(15, 191, 122, .45);
  color: var(--ref-offwhite);
}
.form-success--glass p { color: #9fb0a8; }
.contact-dark .form-note { color: #778b81; }
.contact-dark .form-note a { color: var(--ref-emerald); }

/* ---------- Markdown tables + generated content pages ---------- */
.table-wrap {
  overflow-x: auto; margin: 22px 0 28px;
  border: var(--bw-m) solid var(--ref-border-light); border-radius: var(--radius-m); background: #fff;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ref-border-light); vertical-align: top; color: #3c4642; }
.table-wrap th { background: rgba(15, 191, 122, .08); color: var(--ref-ink); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap tr:last-child td { border-bottom: 0; }
.article-body ol { list-style: decimal; }
.article-body blockquote { border-left: 3px solid var(--ref-emerald); padding: 4px 0 4px 18px; color: #55625d; margin: 0 0 18px; }
.article-body pre { background: var(--ref-ink); color: var(--ref-offwhite); padding: 16px 18px; border-radius: var(--radius-s); overflow-x: auto; margin: 0 0 18px; font-size: 13.5px; }
.article-body code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
.page-content { max-width: 900px; }
.page-content .article-body { max-width: none; }
.page-content .article-body > h2:first-child { margin-top: 0; }
.footer-top { grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 1080px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ---------- Parallax bands (product pages, hero, pillars) ---------- */
.parallax {
  position: relative; overflow: hidden;
  min-height: clamp(380px, 56vh, 620px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 9vh, 96px);
  background: var(--ref-black); color: var(--ref-offwhite);
}
.parallax__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.parallax__bg img {
  position: absolute; left: 0; top: -20%; width: 100%; height: 140%;
  object-fit: cover; will-change: transform;
}
.parallax__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,12,.6), rgba(10,13,12,.3) 50%, rgba(10,13,12,.72));
}
.parallax__content { position: relative; z-index: 1; text-align: center; }
.parallax__content .eyebrow { justify-content: center; }
.parallax__content h2 {
  font-size: var(--fs-xl); max-width: 24ch; margin-inline: auto;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .55);
}
.px-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.px-chip {
  border: 1px solid rgba(255,255,255,.22); background: rgba(16,21,19,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; color: #e7eeea;
}
/* hero + pillars: inner parallax image replaces the CSS background */
.hero.has-parallax, .pillars.has-parallax { background: var(--ref-black); position: relative; overflow: hidden; }
.hero.has-parallax > .container, .pillars.has-parallax > .container { position: relative; z-index: 1; }
.hero.has-parallax .parallax__bg::after { background: linear-gradient(180deg, rgba(10,13,12,.25) 0%, rgba(10,13,12,.05) 35%, rgba(10,13,12,.82) 92%); }
.pillars.has-parallax .parallax__bg::after { background: linear-gradient(180deg, rgba(10,13,12,.88), rgba(10,13,12,.65)); }

/* ten-step process on the homepage: two columns keep the cards readable */
.steps-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .steps-grid--2 { grid-template-columns: 1fr; } }
/* pillars that carry a single client sentence and no description */
.pillar h3:last-child { font-size: var(--fs-s); line-height: 1.4; font-family: var(--font-primary); font-weight: 600; color: #e7eeea; }

/* ---------- Provider logo cards ---------- */
.pub-card--logo img {
  aspect-ratio: 16 / 9; object-fit: contain;
  background: #fff; padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--ref-border-light);
}
.provider-logo {
  background: #fff; border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-l); padding: clamp(26px, 5vw, 40px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.provider-logo img { width: 100%; max-width: 190px; height: auto; }


/* ---------- Inter-word spacing for tracked label blocks ---------- */
.eyebrow,
.product-chip,
.chat-label,
.hero-kicker,
.footer-col h4,
.toc h4,
.stat span,
.badge-chip b,
.badge-chip span,
.juris-tile span,
.pub-meta,
.px-chip,
.channel .lbl,
.field label,
.partner-chip { word-spacing: .12em; }

/* body copy in headings-adjacent lead paragraphs */
.hero-sub,
.section-head p,
.cta-band p,
.parallax__text { word-spacing: .06em; }


/* ---------- Links inside body copy (item 3: they must look clickable) ---------- */
.article-body p a:not(.btn),
.article-body li a:not(.btn),
.page-content p a:not(.btn),
.page-content li a:not(.btn),
.faq-a__inner a:not(.btn) {
  color: var(--ref-emerald-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 191, 122, .45);
  transition: color .25s ease, text-decoration-color .25s ease;
}
.article-body p a:not(.btn):hover,
.article-body li a:not(.btn):hover,
.page-content p a:not(.btn):hover,
.page-content li a:not(.btn):hover,
.faq-a__inner a:not(.btn):hover { color: var(--ref-emerald); text-decoration-color: var(--ref-emerald); }
[data-theme="dark"] .article-body p a:not(.btn),
[data-theme="dark"] .article-body li a:not(.btn) { color: var(--ref-emerald); }

/* inline call-to-action button placed from markdown via [[button:href|label]] */
.inline-cta { margin: 6px 0 22px; }

/* ---------- Glossary ---------- */
.term-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, calc(20 * var(--fluid-unit)), 22px);
}
.term-card {
  display: flex; flex-direction: column; gap: 9px;
  background: #fff; border: var(--bw-m) solid var(--ref-border-light);
  border-radius: var(--radius-l);
  padding: clamp(22px, calc(30 * var(--fluid-unit)), 34px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.term-card:hover { transform: translateY(-4px); border-color: rgba(15,191,122,.42); box-shadow: var(--shadow-card); }
.term-card__cat {
  align-self: flex-start; font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; word-spacing: .12em;
  color: var(--ref-emerald-deep);
  background: rgba(15,191,122,.1); border: 1px solid rgba(15,191,122,.28);
  border-radius: var(--radius-pill); padding: 5px 12px;
}
.term-card h3 { font-size: var(--fs-m); }
.term-card p { font-size: var(--fs-xs); color: var(--ref-gray); flex-grow: 1; }
.search-empty { margin-top: 24px; color: var(--ref-gray); font-size: var(--fs-s); }

@media (max-width: 1080px) { .term-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .term-grid { grid-template-columns: 1fr; } }


/* ---------- Inter-word spacing for the remaining body blocks (homepage cards) ---------- */
.product-card__claim,
.product-feats li,
.solution-card p,
.step-card p,
.pillar p,
.faq-q,
.faq-a__inner,
.term-card p,
.pub-card h3,
.contact-points li,
.article-body p,
.article-body li { word-spacing: .06em; }

/* ---------- Ghost button on dark art: give it a readable edge (item 5) ---------- */
.btn--ghost {
  background: rgba(10, 13, 12, .42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, .28);
}
.btn--ghost:hover {
  background: rgba(10, 13, 12, .58);
  border-color: var(--ref-emerald);
  color: var(--ref-emerald);
}


/* ---------- Word spacing: site-wide baseline + the blocks still set tight ---------- */
body { word-spacing: .05em; }

/* big display numerals in the stats band ("1 month", "3 months") */
.stat b { word-spacing: .16em; }
.stat b em { margin-left: .06em; }

/* navigation, buttons and small link labels */
.nav-link,
.dropdown a,
.dropdown a span,
.footer-col a,
.footer-bottom,
.btn,
.link-arrow,
.kb-filter,
.px-chip,
.breadcrumbs { word-spacing: .08em; }

/* CTA band: two paragraphs + in-text link (homepage closing block) */
.cta-band p + p { margin-top: 12px; }
.cta-band p a { color: var(--ref-emerald); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(15,191,122,.5); }
.cta-band p a:hover { text-decoration-color: var(--ref-emerald); }

/* Readable introductory copy on image backgrounds, desktop and mobile. */
.hero {
  background-image: linear-gradient(90deg, rgba(10,13,12,.94) 0%, rgba(10,13,12,.88) 55%, rgba(10,13,12,.35) 100%), url('/assets/img/hero-bg.webp?v=9d4267e2');
}
.page-hero, .page-hero--kb {
  background-image: linear-gradient(90deg, rgba(10,13,12,.96) 0%, rgba(10,13,12,.88) 60%, rgba(10,13,12,.40) 100%), var(--page-hero-img);
}
.hero .hero-sub, .page-hero .hero-sub { color: #e5ede9; }
@media (max-width: 767px) {
  .hero { background-image: linear-gradient(rgba(10,13,12,.88), rgba(10,13,12,.88)), url('/assets/img/hero-bg.webp?v=9d4267e2'); }
  .page-hero, .page-hero--kb { background-image: linear-gradient(rgba(10,13,12,.90), rgba(10,13,12,.90)), var(--page-hero-img); }
}
