/* ============================================================
   LeanScale Partner Programme
   Brand system inherited from leanscale-four-practices/assets/design-system.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* core brand */
  --ls-dark-purple:   #301934;
  --ls-strong-purple: #642585;
  --ls-medium-purple: #D9AFD0;
  --ls-lime:          #E8FFCF;
  --ls-off-white:     #FFFBFF;

  /* surfaces */
  --bg:        #FBF8FC;
  --surface:   #FFFFFF;
  --surface-2: #F4EDF7;
  --surface-3: #EBE0F0;

  /* ink */
  --ink:       #2A1430;
  --ink-soft:  #6B5670;
  --ink-faint: #9A8BA0;

  /* accent ramp */
  --p300: #C79BDE; --p400: #A861CC; --p500: #8E4AAF; --p600: #642585; --p700: #4A1A66;
  --accent: var(--p600);

  --lavender: #F3E9F8;
  --lime-wash: #F2FCE6;
  --pink-wash: #FBEFF6;
  --lime-ink: #4A8A2E;
  --pink-ink: #B0568F;

  --grad-purple:    linear-gradient(135deg, #7B33A3 0%, #B057D8 100%);
  --grad-aubergine: linear-gradient(150deg, #301934 0%, #642585 100%);
  --grad-hero:      radial-gradient(120% 120% at 0% 0%, #642585 0%, #4A1A66 55%, #2A1430 100%);
  --grad-dawn:      linear-gradient(135deg, #F3E9F8 0%, #FBEFF6 50%, #F2FCE6 100%);

  --border: rgba(100, 37, 133, .12);
  --border-strong: rgba(100, 37, 133, .24);

  --sh-sm: 0 2px 8px rgba(74,26,102,.08);
  --sh-md: 0 8px 24px rgba(74,26,102,.10), 0 2px 6px rgba(74,26,102,.06);
  --sh-lg: 0 18px 48px rgba(74,26,102,.14), 0 6px 14px rgba(74,26,102,.08);
  --sh-xl: 0 32px 80px rgba(74,26,102,.18), 0 10px 24px rgba(74,26,102,.10);

  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- eyebrow ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); background: var(--lavender);
  padding: 7px 15px; border-radius: var(--r-pill);
}
.tag.on-dark { color: var(--ls-lime); background: rgba(232,255,207,.12); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font: inherit;
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: var(--grad-purple); color: #fff; box-shadow: var(--sh-md); }
.btn-primary:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.btn-lime { background: var(--ls-lime); color: var(--ls-dark-purple); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-ghost { background: transparent; color: var(--ls-off-white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-soft { background: var(--lavender); color: var(--p700); }
.btn-soft:hover { background: var(--surface-3); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,255,.78); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
/* The brand PNG is white-on-transparent (built for dark backgrounds), so it is
   invisible on the light chrome. Used as a mask instead, it takes whatever
   colour the theme calls for. Aspect ratio 2000:808. */
.logo-mark {
  display: block; height: 26px; width: 64px; background: var(--ls-dark-purple);
  -webkit-mask: url(/leanscale-logo.png) no-repeat center / contain;
  mask: url(/leanscale-logo.png) no-repeat center / contain;
}
.logo-mark.foot { height: 22px; width: 54px; background: var(--ink-faint); }
.nav-brand .divider { width: 1px; height: 22px; background: var(--border-strong); }
.nav-brand .label { font-size: 14px; font-weight: 600; color: var(--ink-soft); letter-spacing: -.01em; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: var(--r-pill); transition: .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links .btn { margin-left: 8px; padding: 11px 20px; font-size: 14px; }

/* ---------- mobile nav ----------
   The links used to be display:none below 820px with nothing to replace them,
   which left a phone with no way to navigate and the CTA clipping off the right
   edge. Now a real drawer behind a hamburger. */
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--r-sm); cursor: pointer; padding: 11px 10px;
  flex-direction: column; justify-content: space-between; flex: none; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease); transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
/* `.nav-links a` outranks `.btn-primary` on specificity, which silently muted
   the CTA label to --ink-soft over the purple gradient. Restate it here. */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { background: var(--grad-purple); color: #fff; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg); padding: 10px 16px 18px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s var(--ease), opacity .2s var(--ease);
  }
  .nav-links.open { max-height: 70vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
  .nav-links a { padding: 14px 12px; font-size: 16px; border-radius: var(--r-sm); }
  .nav-links a.btn { margin: 8px 0 0; justify-content: center; padding: 15px 20px; }
  .nav-inner { position: relative; flex-wrap: nowrap; gap: 12px; }
  .nav-brand .label { display: none; }
  .nav-brand .divider { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--grad-hero); color: var(--ls-off-white);
  position: relative; overflow: hidden; padding-bottom: 8px;
}
/* Two slow, offset radial washes that drift — enough motion to feel alive,
   not enough to distract from the copy. Disabled under reduced-motion. */
.hero-glow {
  position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(38% 34% at 78% 12%, rgba(232,255,207,.20), transparent 68%),
    radial-gradient(34% 30% at 14% 84%, rgba(217,175,208,.26), transparent 68%),
    radial-gradient(30% 26% at 52% 40%, rgba(176,87,216,.24), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 92px 28px 64px; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; margin: 24px 0 0;
  letter-spacing: -.035em; line-height: 1.04;
}
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .l1 { color: rgba(255,251,255,.62); font-weight: 700; }
.hero h1 .lime {
  background: linear-gradient(100deg, #E8FFCF 0%, #D9F3FF 55%, #E8FFCF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  margin-top: 26px; max-width: 60ch; font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ls-medium-purple); line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ls-lime);
  box-shadow: 0 0 0 0 rgba(232,255,207,.7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,255,207,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(232,255,207,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,255,207,0); }
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px;
  border: 1px solid rgba(255,255,255,.17); border-radius: var(--r-lg);
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px); overflow: hidden;
}
.hero-stats div { padding: 24px 26px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats b {
  display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.hero-stats span { display: block; margin-top: 9px; font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ls-medium-purple); font-weight: 700; }
@media (max-width: 860px) { .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { border-bottom: 1px solid rgba(255,255,255,.14); } }

/* ---------- logo marquee ---------- */
.marquee {
  position: relative; z-index: 1; display: flex; gap: 14px; padding: 10px 0;
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee:last-of-type { padding-bottom: 30px; }
.marquee-track { display: flex; gap: 14px; flex: none; animation: scroll 52s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 64s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.mq-item {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-pill); backdrop-filter: blur(8px); white-space: nowrap;
}
.mq-item img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; padding: 3px; }
.mq-item span { font-size: 14px; font-weight: 600; color: rgba(255,251,255,.86); }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .marquee-track, .pulse { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- section scaffolding ---------- */
section { padding: 92px 0; }
.sec-head { max-width: 780px; margin-bottom: 46px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 3.9vw, 46px); font-weight: 800; margin-top: 20px; letter-spacing: -.033em; line-height: 1.08; }
.sec-head p { margin-top: 18px; font-size: 17px; color: var(--ink-soft); line-height: 1.65; }
.sec-head.center p { margin-inline: auto; max-width: 62ch; }
.alt { background: var(--surface); border-block: 1px solid var(--border); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--sh-sm); position: relative; overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.step::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-purple);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.step:hover::before { transform: scaleX(1); }
.step-n { font-size: 34px; font-weight: 800; letter-spacing: -.04em;
  background: var(--grad-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 18px; margin-top: 10px; font-weight: 700; }
.step p { margin-top: 11px; font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); }

/* ---------- tier ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rung {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  position: relative; overflow: hidden; transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.rung:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.rung.t1 {
  border-color: transparent; box-shadow: var(--sh-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-purple) border-box;
  border: 2px solid transparent;
}
.rung.t1::after {
  content: 'INVITATION ONLY'; position: absolute; top: 18px; right: -34px;
  transform: rotate(38deg); background: var(--grad-purple); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .12em; padding: 5px 40px;
}
.rung-tier { font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.rung.t1 .rung-tier { color: var(--accent); }
.rung h3 { font-size: 27px; margin-top: 10px; font-weight: 800; letter-spacing: -.03em; }
.rung .rung-count { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.rung .gate-line { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.rung-perks { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.rung-perks li { font-size: 14px; display: flex; gap: 10px; color: var(--ink); line-height: 1.45; }
.rung-perks li::before { content: '✓'; color: var(--lime-ink); font-weight: 800; flex: none; }
.rung-perks li.no { color: var(--ink-faint); }
.rung-perks li.no::before { content: '—'; color: var(--ink-faint); }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } }

/* ---------- the gate ---------- */
.gate {
  margin-top: 40px; background: var(--grad-hero); color: var(--ls-off-white);
  border-radius: var(--r-xl); padding: 52px 56px; box-shadow: var(--sh-xl);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start;
}
.gate::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 80% at 100% 0%, rgba(232,255,207,.16), transparent 64%); }
.gate > * { position: relative; z-index: 1; }
.gate h2 { font-size: clamp(27px, 3.3vw, 40px); font-weight: 800; margin: 18px 0 0; letter-spacing: -.033em; }
.gate p { margin-top: 18px; color: var(--ls-medium-purple); font-size: 16.5px; line-height: 1.62; }
.gate .gate-kicker { color: rgba(255,251,255,.9); }
.gate-trade { display: grid; gap: 18px; }
.trade-col { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg); padding: 24px 26px; backdrop-filter: blur(8px); }
.trade-col.give { background: rgba(232,255,207,.11); border-color: rgba(232,255,207,.28); }
.trade-col h3 { font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--ls-lime); }
.trade-col.ask h3 { color: var(--ls-medium-purple); }
.trade-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.trade-col li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255,251,255,.92); }
.trade-col li::before { content: '✓'; color: var(--ls-lime); font-weight: 800; flex: none; }
.trade-col.ask li::before { content: '→'; color: var(--ls-medium-purple); }
@media (max-width: 960px) { .gate { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; } }

/* ---------- partner cards ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.p-grid.feature { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .p-grid.feature { grid-template-columns: 1fr; } }
.pcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-strong); }
.pcard.t1 { padding: 34px; }
.pcard.t1::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-purple); }
.pcard-head { display: flex; align-items: center; gap: 15px; }
.plogo {
  width: 54px; height: 54px; border-radius: 15px; background: #fff;
  display: grid; place-items: center; flex: none; overflow: hidden; padding: 9px;
  border: 1px solid var(--border); box-shadow: var(--sh-xs, 0 1px 2px rgba(74,26,102,.06));
}
.plogo img { width: 100%; height: 100%; object-fit: contain; }
.plogo.lettermark { background: var(--grad-purple); color: #fff; font-weight: 800; font-size: 21px; padding: 0; }
.pcard-name { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.pcard-cat { font-size: 13px; color: var(--ink-faint); font-weight: 600; margin-top: 3px; }
.pcard-note { margin-top: 18px; font-size: 15px; line-height: 1.62; color: var(--ink-soft); flex: 1; }
.pcard-ev { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.pcard-ev li { font-size: 14px; line-height: 1.5; display: flex; gap: 10px; color: var(--ink); }
.pcard-ev li::before { content: '✦'; color: var(--accent); font-weight: 800; flex: none; font-size: 11px; margin-top: 3px; }
.pcard-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

.pill { font-size: 11.5px; font-weight: 800; padding: 5px 13px; border-radius: var(--r-pill); white-space: nowrap; letter-spacing: .01em; }
.pill.tier1 { background: var(--grad-purple); color: #fff; }
.pill.tier2 { background: var(--lime-wash); color: var(--lime-ink); }
.pill.reach { background: var(--surface-2); color: var(--ink-soft); }
.pill.rel   { background: var(--lavender); color: var(--p700); }

/* ---------- co-marketing ---------- */
.cm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--sh-sm); transition: transform .24s var(--ease), box-shadow .24s var(--ease); }
.cm:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cm .num { font-size: 12px; font-weight: 800; letter-spacing: .15em; color: var(--accent); }
.cm h3 { font-size: 19px; margin-top: 12px; font-weight: 700; }
.cm p { margin-top: 12px; font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); }

/* ---------- cta ---------- */
.cta { background: var(--grad-hero); color: var(--ls-off-white); border-radius: var(--r-xl);
  padding: 76px 56px; text-align: center; box-shadow: var(--sh-xl); position: relative; overflow: hidden; }
.cta-glow { position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(34% 40% at 50% 12%, rgba(232,255,207,.22), transparent 66%),
              radial-gradient(30% 34% at 18% 86%, rgba(217,175,208,.22), transparent 68%);
  animation: drift 24s ease-in-out infinite alternate; }
.cta > *:not(.cta-glow) { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; margin-top: 20px; letter-spacing: -.035em; line-height: 1.06; }
.cta p { margin: 20px auto 0; max-width: 58ch; color: var(--ls-medium-purple); font-size: 17px; line-height: 1.62; }
.cta .hero-cta { justify-content: center; margin-top: 34px; }
@media (max-width: 720px) { .cta { padding: 48px 26px; } }

/* ---------- footer ---------- */
footer { padding: 46px 0 64px; border-top: 1px solid var(--border); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot-inner p { font-size: 13px; color: var(--ink-faint); max-width: 60ch; }
.foot-inner .right { margin-left: auto; display: flex; gap: 20px; }
.foot-inner .right a { font-size: 13px; color: var(--ink-soft); font-weight: 700; }

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A0D1E; --surface: #251429; --surface-2: #2F1B35; --surface-3: #3A2242;
    --ink: #F6EDF8; --ink-soft: #C3AFC8; --ink-faint: #8E7C94;
    --accent: #C79BDE;
    --lavender: #3A2242; --lime-wash: #23331B; --pink-wash: #3E2033;
    --lime-ink: #A8D98A; --pink-ink: #E0A3C8;
    --border: rgba(217,175,208,.14); --border-strong: rgba(217,175,208,.30);
    --sh-sm: 0 2px 8px rgba(0,0,0,.4); --sh-md: 0 8px 24px rgba(0,0,0,.45);
    --sh-lg: 0 18px 48px rgba(0,0,0,.55); --sh-xl: 0 32px 80px rgba(0,0,0,.6);
  }
  :root:not([data-theme="light"]) .nav { background: rgba(37,20,41,.84); }
  :root:not([data-theme="light"]) .logo-mark { background: var(--ls-off-white); }
  :root:not([data-theme="light"]) .logo-mark.foot { background: var(--ink-faint); }
  :root:not([data-theme="light"]) .rung.t1 {
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-purple) border-box;
  }
}

/* ---------- big claim ---------- */
.bigclaim { max-width: 900px; margin: 0 auto 56px; text-align: center; }
.bigclaim h2 { font-size: clamp(30px, 4.3vw, 52px); font-weight: 800; margin-top: 20px;
  letter-spacing: -.035em; line-height: 1.1; }
.bigclaim .grad { background: var(--grad-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigclaim p { margin: 24px auto 0; max-width: 64ch; font-size: 17.5px; line-height: 1.68; color: var(--ink-soft); }

/* ---------- scarcity strip ---------- */
.scarcity {
  display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap;
  margin: 0 auto 44px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-md); overflow: hidden; max-width: 860px;
}
.sc-num { padding: 28px 40px; text-align: center; flex: 1; min-width: 150px; }
.sc-num b { display: block; font-size: clamp(36px, 4.6vw, 56px); font-weight: 800;
  letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-num span { display: block; margin-top: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.sc-num.decided b { color: var(--ink-faint); }
.sc-num.open b { background: var(--grad-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-num.open span { color: var(--accent); }
.sc-arrow { display: grid; place-items: center; padding: 0 4px; color: var(--ink-faint); font-size: 20px; }
@media (max-width: 640px) { .sc-arrow { display: none; } .sc-num { border-bottom: 1px solid var(--border); } }

.rung-verb { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--accent); font-weight: 600; }

/* ---------- field report ---------- */
.report-demo { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
@media (max-width: 880px) { .report-demo { grid-template-columns: 1fr; } }
.report-picker { display: grid; gap: 8px; }
@media (max-width: 880px) { .report-picker { grid-auto-flow: column; grid-auto-columns: max-content;
  overflow-x: auto; padding-bottom: 6px; } }
.rpick {
  font: inherit; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-soft); cursor: pointer; font-weight: 700; font-size: 14px;
  transition: .16s var(--ease); white-space: nowrap;
}
.rpick:hover { border-color: var(--p400); color: var(--ink); }
.rpick.on { background: var(--grad-purple); border-color: transparent; color: #fff; box-shadow: var(--sh-md); }
.rpick-logo { width: 26px; height: 26px; border-radius: 8px; background: #fff; padding: 3px;
  display: grid; place-items: center; flex: none; overflow: hidden; }
.rpick-logo img { width: 100%; height: 100%; object-fit: contain; }
.rpick-logo.lettermark { background: var(--p600); color: #fff; font-weight: 800; font-size: 12px; padding: 0; }

.report-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 30px 32px; }
.report-head { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.report-head .pill { margin-left: auto; }
.report-name { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.report-sub { font-size: 13px; color: var(--ink-faint); font-weight: 600; margin-top: 3px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px;
  margin-top: 2px; background: var(--border); border-radius: var(--r-sm); overflow: hidden; }
.rm { background: var(--surface); padding: 20px 22px; }
.rm-l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); }
.rm-v { display: block; margin-top: 9px; font-size: 28px; font-weight: 800; letter-spacing: -.035em;
  line-height: 1; font-variant-numeric: tabular-nums; }
.rm-v small { font-size: 15px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0; }
.rm-s { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.report-note-in { margin-top: 22px; padding: 18px 20px; background: var(--lavender); border-radius: var(--r-sm); }
.report-note-in span { font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); }
.report-note-in p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.report-note { margin: 22px auto 0; max-width: 72ch; text-align: center; font-size: 13px;
  color: var(--ink-faint); line-height: 1.6; }

.report-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .report-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .report-grid { grid-template-columns: 1fr; } }
.rm-v.prose { font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }

/* ---------- network by practice ---------- */
.prac-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 1040px) { .prac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .prac-grid { grid-template-columns: 1fr; } }
.prac {
  font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; transition: .2s var(--ease); color: var(--ink);
}
.prac:hover { border-color: var(--p400); transform: translateY(-3px); box-shadow: var(--sh-md); }
.prac.on { border-color: transparent; box-shadow: var(--sh-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-purple) border-box;
  border: 2px solid transparent; }
.prac-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.prac-sys { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.prac-bar { display: flex; gap: 3px; height: 6px; border-radius: 999px; overflow: hidden; margin-top: 2px; }
.prac-bar i { display: block; border-radius: 999px; }
.prac-bar i.standard,  .dot.standard  { background: var(--p600); }
.prac-bar i.certified, .dot.certified { background: var(--lime-ink); }
.prac-bar i.open,      .dot.open      { background: var(--surface-3); }
.prac-open { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.prac-open b { color: var(--accent); }

.cat-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 28px 30px; }
.cat-head { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.cat-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.cat-head p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 70ch; }
.cat-legend { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.cat-legend span { font-size: 12px; font-weight: 600; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cat { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px 18px;
  transition: .18s var(--ease); background: var(--bg); }
.cat:hover { border-color: var(--p400); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.cat.open { background: var(--lavender); border-color: rgba(100,37,133,.18); }
.cat-top { display: flex; align-items: center; gap: 10px; }
.cat-name { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.cat-status { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cat-status.standard  { background: var(--p600); color: #fff; }
.cat-status.certified { background: var(--lime-wash); color: var(--lime-ink); }
.cat-status.open      { background: var(--grad-purple); color: #fff; }
.cat-sys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cat-sy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.cat-sy span { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.cat-sy.t1 { border-color: var(--p400); }
.cat-sy.t1 span { color: var(--accent); font-weight: 700; }
.cat-logo { width: 20px; height: 20px; border-radius: 6px; background: #fff; padding: 2px;
  display: grid; place-items: center; flex: none; overflow: hidden; }
.cat-logo img { width: 100%; height: 100%; object-fit: contain; }
.cat-logo.lettermark { background: var(--p600); color: #fff; font-weight: 800; font-size: 10px; padding: 0; }

/* ---------- apply form ---------- */
.apply-form { max-width: 700px; margin: 34px auto 0; display: grid; gap: 14px; text-align: left; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .af-row { grid-template-columns: 1fr; } }
.af { display: grid; gap: 7px; }
.af > span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ls-medium-purple); }
.af input, .af select, .af textarea {
  font: inherit; font-size: 15px; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: var(--ls-off-white); outline: none; transition: .18s var(--ease); width: 100%;
}
.af textarea { resize: vertical; min-height: 84px; font-family: inherit; }
.af input::placeholder, .af textarea::placeholder { color: rgba(255,251,255,.42); }
.af input:focus, .af select:focus, .af textarea:focus {
  border-color: var(--ls-lime); background: rgba(255,255,255,.13);
  box-shadow: 0 0 0 4px rgba(232,255,207,.16);
}
.af select option { background: #2A1430; color: var(--ls-off-white); }
.af-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.af-actions .btn[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-done { margin-top: 34px; padding: 30px; border-radius: var(--r-lg);
  background: rgba(232,255,207,.12); border: 1px solid rgba(232,255,207,.3); }
.apply-done h3 { font-size: 22px; font-weight: 800; color: var(--ls-lime); }
.apply-done p { margin-top: 10px; color: var(--ls-off-white); font-size: 16px; line-height: 1.6; }

/* ---------- stack map ---------- */
.sm { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .sm { grid-template-columns: 1fr; } }
.sm-pick { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); padding: 14px; position: sticky; top: 88px; }
@media (max-width: 900px) { .sm-pick { position: static; } }
.sm-search { font: inherit; font-size: 15px; width: 100%; padding: 12px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); outline: none; }
.sm-search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(100,37,133,.12); }
.sm-list { margin-top: 12px; max-height: 420px; overflow-y: auto; display: grid; gap: 4px; }
@media (max-width: 900px) { .sm-list { max-height: 260px; } }
.sm-item { font: inherit; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 11px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent;
  cursor: pointer; color: var(--ink-soft); transition: .14s var(--ease); }
.sm-item:hover { background: var(--surface-2); color: var(--ink); }
.sm-item.on { background: var(--grad-purple); color: #fff; }
.sm-item-name { font-size: 14px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-item-n { font-size: 11px; font-weight: 800; opacity: .65; }
.sm-empty { font-size: 13px; color: var(--ink-faint); padding: 10px; }
.sm-logo, .sm-logo-sm { border-radius: 8px; background: #fff; display: grid; place-items: center;
  flex: none; overflow: hidden; padding: 3px; }
.sm-logo { width: 36px; height: 36px; border-radius: 10px; padding: 5px; border: 1px solid var(--border); }
.sm-logo-sm { width: 22px; height: 22px; }
.sm-logo img, .sm-logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.sm-logo.lettermark, .sm-logo-sm.lettermark { background: var(--p600); color: #fff; font-weight: 800; padding: 0; }
.sm-logo.lettermark { font-size: 15px; } .sm-logo-sm.lettermark { font-size: 10px; }

.sm-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 28px 30px; min-height: 300px; }
.sm-head { display: flex; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.sm-name { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.sm-sub { font-size: 13px; color: var(--ink-faint); font-weight: 600; margin-top: 3px; }
.sm-hl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sm-hl-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.sm-headless { display: flex; gap: 6px; flex-wrap: wrap; }
.hl { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--lime-wash); color: var(--lime-ink); white-space: nowrap; }
.sm-src { font-size: 11.5px; font-weight: 700; color: var(--accent); }

.sm-callout { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--grad-purple); color: #fff; font-size: 14.5px; line-height: 1.6; }
.sm-callout b { font-weight: 800; }

.sm-pairs { margin-top: 18px; display: grid; gap: 10px; }
.sm-pair { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; background: var(--bg); }
.sm-pair.highlight { border-color: var(--p400); background: var(--lavender); }
.sm-pair-head { display: flex; align-items: center; gap: 12px; }
.sm-pair-name { font-size: 15px; font-weight: 700; }
.sm-pair-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.sm-pair-sub b { color: var(--ink); font-weight: 800; }
.sm-pair-head .ib { margin-left: auto; }
.ib { font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.ib.native { background: var(--lime-wash); color: var(--lime-ink); }
.ib.none   { background: var(--p600); color: #fff; }
.ib.unk    { background: var(--surface-2); color: var(--ink-faint); }
.sm-detail { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.sm-pair .sm-headless { margin-top: 10px; }
@media (max-width: 560px) {
  .sm-pair-head { flex-wrap: wrap; }
  .sm-pair-head .ib { margin-left: 0; }
}

/* ---------- stack map constellation ---------- */
.sm-right { display: grid; gap: 18px; }
.sm-graph { display: none; }
@media (min-width: 900px) {
  .sm-graph { display: block; background: var(--grad-hero); border-radius: var(--r-lg);
    box-shadow: var(--sh-lg); padding: 10px 10px 4px; position: relative; overflow: hidden; }
  .sm-graph::after { content: ''; position: absolute; inset: -30%; pointer-events: none;
    background: radial-gradient(34% 32% at 78% 14%, rgba(232,255,207,.13), transparent 68%),
                radial-gradient(30% 28% at 16% 84%, rgba(217,175,208,.17), transparent 68%);
    animation: drift 30s ease-in-out infinite alternate; }
}
.sm-graph svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.g-edges line { stroke-linecap: round; }
.g-edges .e-unk    { stroke: rgba(255,255,255,.22); }
.g-edges .e-native { stroke: rgba(232,255,207,.62); }
.g-edges .e-none   { stroke: #E8FFCF; filter: drop-shadow(0 0 6px rgba(232,255,207,.85)); }
.g-node { animation: gpop .5s var(--ease) both; animation-delay: var(--d); }
@keyframes gpop { from { opacity: 0; transform: translate(var(--tx,0), var(--ty,0)) scale(.6); } }
.g-disc { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.4); stroke-width: 1.2; }
.g-halo { fill: none; stroke: transparent; }
.g-halo.on { stroke: rgba(232,255,207,.45); stroke-width: 2;
  animation: gpulse 2.6s ease-in-out infinite; }
@keyframes gpulse { 0%,100% { opacity: .35; r: 27; } 50% { opacity: .9; r: 31; } }
.g-label { fill: rgba(255,251,255,.86); font-size: 11.5px; font-weight: 700; text-anchor: middle;
  font-family: var(--font); }
.g-n { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle; font-family: var(--font); }
.g-core-halo { fill: none; stroke: rgba(232,255,207,.28); stroke-width: 1.5;
  animation: gpulse 3.4s ease-in-out infinite; }
.g-core-label { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle; font-family: var(--font); }
.g-key { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 4px 8px 12px;
  position: relative; z-index: 1; }
.g-key span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600;
  color: rgba(255,251,255,.7); }
.g-key i { width: 16px; height: 2.5px; border-radius: 2px; display: inline-block; }
.g-key .k-none { background: #E8FFCF; box-shadow: 0 0 6px rgba(232,255,207,.8); }
.g-key .k-native { background: rgba(232,255,207,.62); }
.g-key .k-unk { background: rgba(255,255,255,.3); }
@media (prefers-reduced-motion: reduce) {
  .g-node, .g-halo.on, .g-core-halo, .sm-graph::after { animation: none; }
}

/* ---------- dark section treatment ---------- */
section.dark { background: var(--grad-hero); color: var(--ls-off-white); position: relative; overflow: hidden; }
section.dark::before { content: ''; position: absolute; inset: -30%; pointer-events: none;
  background: radial-gradient(32% 30% at 84% 10%, rgba(232,255,207,.12), transparent 66%),
              radial-gradient(30% 28% at 10% 88%, rgba(217,175,208,.16), transparent 66%);
  animation: drift 32s ease-in-out infinite alternate; }
section.dark > * { position: relative; z-index: 1; }
section.dark .tag { color: var(--ls-lime); background: rgba(232,255,207,.12); }
section.dark .sec-head h2 { color: var(--ls-off-white); }
section.dark .sec-head p { color: var(--ls-medium-purple); }
section.dark .report-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14);
  backdrop-filter: blur(10px); box-shadow: var(--sh-xl); }
section.dark .report-head { border-bottom-color: rgba(255,255,255,.14); }
section.dark .report-name { color: var(--ls-off-white); }
section.dark .report-sub { color: var(--ls-medium-purple); }
section.dark .report-grid { background: rgba(255,255,255,.1); }
section.dark .rm { background: transparent; }
section.dark .rm-l { color: var(--ls-medium-purple); }
section.dark .rm-v { color: var(--ls-off-white); }
section.dark .rm-v small { color: var(--ls-medium-purple); }
section.dark .rm-s { color: rgba(255,251,255,.72); }
section.dark .report-note-in { background: rgba(232,255,207,.1); }
section.dark .report-note-in span { color: var(--ls-lime); }
section.dark .report-note-in p { color: var(--ls-off-white); }
section.dark .report-note { color: rgba(255,251,255,.5); }
section.dark .rpick { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15);
  color: rgba(255,251,255,.82); }
section.dark .rpick:hover { border-color: var(--ls-lime); color: #fff; }
section.dark .rpick.on { background: var(--ls-lime); color: var(--ls-dark-purple); border-color: transparent; }
section.dark .rpick.on .rpick-logo { background: #fff; }
section.dark .pill.tier1 { background: var(--ls-lime); color: var(--ls-dark-purple); }
@media (prefers-reduced-motion: reduce) { section.dark::before { animation: none; } }
