/* =========================================================================
   AscendX — Design System
   Premium business-intelligence instrument. Light-first, restrained colour.
   Palette + fonts are brand-locked; the mono telemetry treatment is the
   signature. British English throughout. No hype.
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:      #FFFFFF;
  --mist:       #F5F7FA;
  --mist-2:     #EDF1F7;
  --ink:        #0B0E14;   /* near-black text + black sections */
  --charcoal:   #12161F;   /* dark section background */
  --charcoal-2: #1A1F2B;   /* dark card / raised */
  --line:       #E6EAF0;   /* hairline on light */
  --line-dark:  #262C39;   /* hairline on dark */

  /* Text — darkened one step for stronger contrast / less timid body copy */
  --text:        #0B0E14;
  --text-muted:  #454E5E;  /* graphite (was #5A6473) */
  --text-faint:  #737D8D;  /* was #8A93A3 */
  --on-dark:     #EEF2F8;
  --on-dark-mut: #9AA4B4;

  /* Brand + semantic */
  --blue:        #2E6BFF;  /* action + brand */
  --blue-deep:   #1B44C7;
  --blue-glow:   #5B8CFF;
  --blue-tint:   #EBF1FF;
  --emerald:     #10B981;  /* growth / positive movement only */
  --emerald-deep:#0E9E6E;
  --emerald-tint:#E7F8F1;
  --amber:       #E8A33D;  /* caution / leak */
  --red:         #E5484D;  /* risk band */

  /* Type — editorial: a characterful serif for display, clean sans for text */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.75rem;
  --fs-small:   0.875rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.15rem, 0.9rem + 1vw, 1.4rem);
  --fs-h3:      clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  --fs-mega:    clamp(3.4rem, 2rem + 6vw, 6.5rem);

  /* Space + shape */
  --container: 1200px;
  --container-narrow: 820px;
  --radius:    5px;
  --radius-sm: 3px;
  --radius-lg: 8px;
  --shadow-sm: none;
  --shadow-md: 0 4px 18px rgba(11,14,20,.06);
  --shadow-lg: 0 14px 40px rgba(11,14,20,.09);
  --shadow-blue: none;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--text); font-optical-sizing: auto; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.018em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.014em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.006em; }
p  { color: var(--text); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-muted); font-weight: 400; }
strong { font-weight: 600; }

/* Eyebrow — restrained tracked-caps label (editorial, not mono) */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
  opacity: .6;
}
.eyebrow--muted { color: var(--text-faint); }
.eyebrow--muted::before { background: var(--text-faint); }
.eyebrow--on-dark { color: var(--blue-glow); }
.eyebrow--on-dark::before { background: var(--blue-glow); }

.section-title { max-width: 46rem; }
.section-title h2 + .lead { margin-top: 1rem; }
.eyebrow + h2, .eyebrow + h1 { margin-top: 1.1rem; }

/* ---- Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(64px, 9vh, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vh, 80px); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--ink  { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--dark .lead, .section--ink .lead { color: var(--on-dark-mut); }
.section--hairline { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stack-lg { display: grid; gap: 2rem; }
.center { text-align: center; margin-inline: auto; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small);
  letter-spacing: -.01em;
  padding: .9em 1.5em; border-radius: 4px; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--blue-glow); color:#fff; }
.btn--ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn--ghost-dark:hover { border-color: var(--on-dark); }
.btn--lg { padding: 1.05em 1.8em; font-size: var(--fs-body); }
.btn .arw { transition: transform .18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---- Chips / deltas / badges ---------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; padding: .38em .7em; border-radius: 3px;
  background: var(--mist); color: var(--text-muted); border: 1px solid var(--line);
}
.chip--delta { background: var(--emerald-tint); color: var(--emerald-deep); border-color: transparent; }
.chip--blue  { background: var(--blue-tint); color: var(--blue-deep); border-color: transparent; }
.chip--leak  { background: #FBF0DF; color: #A9701A; border-color: transparent; }
.chip--dark  { background: rgba(255,255,255,.06); color: var(--on-dark-mut); border-color: var(--line-dark); }
.delta { color: var(--emerald-deep); font-family: var(--font-mono); font-weight: 600; }
.delta::before { content: "▲ "; font-size: .8em; }

/* ---- Cards ----------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6dded; }
.card--dark { background: var(--charcoal-2); border-color: var(--line-dark); box-shadow: none; }
.card--pad-lg { padding: 36px; }
.card__num { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); letter-spacing: .1em; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; }
.card--dark p { color: var(--on-dark-mut); }

/* Icon token — bare accent mark (editorial: no tinted tile) */
.ico {
  width: 28px; height: 28px; display: grid; place-items: start;
  background: transparent; color: var(--blue); margin-bottom: 16px;
}
.ico svg { width: 26px; height: 26px; }
.ico--emerald { color: var(--emerald-deep); }
.ico--dark { color: var(--blue-glow); }

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: var(--fs-small); font-weight: 500; color: var(--text-muted);
  padding: .5em .8em; border-radius: 8px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--text); background: var(--mist); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle svg { width: 24px; height: 24px; }
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.logo__mark { width: 28px; height: 28px; }
.section--dark .logo, .section--ink .logo, .site-footer .logo { color: #fff; }

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 12vh, 150px) clamp(64px, 9vh, 120px); }
.hero__grid { position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(var(--line) 0 1px, transparent 1px 46px);
  opacity: .6;
  -webkit-mask-image: linear-gradient(#000, transparent 82%);
  mask-image: linear-gradient(#000, transparent 82%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero__note { font-family: var(--font-body); font-size: .82rem; color: var(--text-faint); margin-top: 1.4rem; }

/* ---- Score meter (SIGNATURE) ---------------------------------------- */
.score {
  --size: 240px; --v: 0; /* 0..100 set inline/JS */
  width: var(--size); aspect-ratio: 1; position: relative; display: grid; place-items: center;
}
.score__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__track { fill: none; stroke: var(--line); stroke-width: 8; }
.score--dark .score__track { stroke: var(--line-dark); }
.score__arc {
  fill: none; stroke: var(--blue) !important; stroke-width: 8; stroke-linecap: butt;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.score--dark .score__arc { stroke: var(--blue-glow) !important; }
.score__val { position: absolute; text-align: center; }
.score__num { font-family: var(--font-display); font-weight: 600; font-size: calc(var(--size) * .3); line-height: 1; letter-spacing: -.03em; }
.score__of { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .1em; margin-top: .3em; }
.score__band { margin-top: .5em; }

/* ---- Comparison table ----------------------------------------------- */
.vs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.vs__row { display: grid; grid-template-columns: 1fr 1fr; }
.vs__row:not(:last-child) { border-bottom: 1px solid var(--line); }
.vs__cell { padding: 18px 24px; font-size: var(--fs-small); display: flex; align-items: center; gap: .6em; }
.vs__cell--head { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; }
.vs__cell--them { color: var(--text-muted); background: var(--mist); }
.vs__cell--us { color: var(--text); font-weight: 500; }
.vs__cell--us.vs__cell--head { color: var(--blue); background: var(--blue-tint); }
.vs__tick { color: var(--emerald); flex: none; }
.vs__cross { color: var(--text-faint); flex: none; }

/* ---- Bucket / leak visual ------------------------------------------- */
.leak-list { display: grid; gap: 14px; }
.leak-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.leak-item__drop { width: 32px; height: 32px; border-radius: 8px; background: var(--emerald-tint); color: var(--emerald-deep); display: grid; place-items: center; flex: none; }
.leak-item p { margin: 0; font-size: var(--fs-small); }
.leak-item strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1rem; }

/* ---- Stats ----------------------------------------------------------- */
.stat { }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem,1.6rem+2.4vw,3.4rem); letter-spacing: -.03em; line-height: 1; }
.stat__num .u { color: var(--blue); }
.stat__label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-top: .7em; }

/* ---- Accordion (FAQ) ------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--text); letter-spacing: -.01em; }
.faq__q .pm { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s var(--ease); }
.faq__q .pm::before, .faq__q .pm::after { content:""; position:absolute; inset:0; margin:auto; background: var(--blue); }
.faq__q .pm::before { width: 100%; height: 2px; }
.faq__q .pm::after { width: 2px; height: 100%; transition: opacity .2s; }
.faq__item[open] .pm::after { opacity: 0; }
.faq__item[open] .pm { transform: rotate(180deg); }
.faq__a { padding: 0 0 22px; color: var(--text-muted); font-size: var(--fs-small); max-width: 62ch; line-height: 1.6; }
details.faq__item > summary { list-style: none; cursor: pointer; }
details.faq__item > summary::-webkit-details-marker { display: none; }

/* ---- Forms ----------------------------------------------------------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--text-faint); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: var(--fs-small); color: var(--text);
  padding: .8em 1em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.textarea { min-height: 120px; resize: vertical; }

/* Choice tiles (assessment / questionnaire) */
.choices { display: grid; gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--blue-glow); }
.choice input { position: absolute; opacity: 0; }
.choice__box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .15s; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 3px rgba(46,107,255,.1); }
.choice:has(input:checked) .choice__box { background: var(--blue); border-color: var(--blue); }
.choice:has(input:checked) .choice__box svg { opacity: 1; }
.choice__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.choice input[type="radio"] + .choice__box { border-radius: 999px; }

/* Progress */
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-glow)); border-radius: 999px; transition: width .4s var(--ease); }

/* ---- Marquee / logos row (placeholder-safe) ------------------------- */
.eyerow { display:flex; flex-wrap:wrap; gap: 12px 28px; align-items:center; }

/* ---- Callout / note -------------------------------------------------- */
.note { border-left: 3px solid var(--blue); background: var(--blue-tint); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-small); color: var(--blue-deep); }
.note--placeholder { border-color: var(--amber); background: #FBF4E7; color: #8a5a12; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-mut); padding-block: 72px 40px; }
.site-footer a { color: var(--on-dark-mut); font-size: var(--fs-small); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 24px; }
.footer__col h4 { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-mut); font-weight: 600; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__blurb { color: var(--on-dark-mut); font-size: var(--fs-small); max-width: 34ch; margin-top: 16px; line-height: 1.6; }
.footer__social { display: flex; gap: 16px; margin-top: 18px; }
.footer__social a { color: var(--on-dark-mut); transition: color .15s, transform .15s; }
.footer__social a:hover { color: #fff; transform: translateY(-1px); }
.footer__social svg { width: 20px; height: 20px; display: block; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .8rem; }
.footer__legal { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .02em; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---- Reveal on scroll ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Utilities ------------------------------------------------------- */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.muted{color:var(--text-muted)}.faint{color:var(--text-faint)}
.mono{font-family:var(--font-mono)}
.hide-sm{}@media(max-width:640px){.hide-sm{display:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.maxw-sm{max-width:38rem}.maxw-md{max-width:46rem}
.flex{display:flex}.items-center{align-items:center}.gap-2{gap:1rem}.wrap{flex-wrap:wrap}

/* =========================================================================
   POP PASS — signature elements, depth, motion (added in CRO build)
   ========================================================================= */

/* ---- Section variants added ---- */
.section--blue {
  background: var(--blue-deep);
  color: #fff; position: relative; overflow: hidden;
}
.section--blue h2, .section--blue h3 { color:#fff; }
.section--blue .lead { color: rgba(255,255,255,.86); }
.section--blue::after { content: none; }
.on-blue-chip { background: rgba(255,255,255,.14); color:#fff; border-color: transparent; }

/* ---- Trust strip ---- */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust__inner { display:flex; align-items:center; justify-content:center; gap: clamp(20px,4vw,52px); flex-wrap:wrap; padding-block: 22px; }
.trust__label { font-family: var(--font-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color: var(--text-faint); }
.wordmark { font-family: var(--font-body); font-weight:600; font-size:1rem; letter-spacing:-.01em; color:#111826; opacity:.6; display:inline-flex; align-items:center; gap:.4em; transition:opacity .2s; }
.wordmark:hover { opacity:1; }
.wordmark .dot { width:9px; height:9px; border-radius:50%; }
.trust__chips { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
@media(max-width:640px){ .trust__inner{ gap:16px } .wordmark{ font-size:.95rem } }

/* ---- Score card: glow + glass (signature) ---- */
.scorecard {
  position: relative; border-radius: var(--radius); padding: 32px 30px;
  background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.scorecard::before { content: none; }
.scorecard--dark { background: rgba(20,26,38,.6); border-color: var(--line-dark); }
.scorebars { display:grid; gap:11px; margin-top:6px; }
.scorebar { display:grid; grid-template-columns: 92px 1fr auto; align-items:center; gap:12px; }
.scorebar__label { font-family:var(--font-mono); font-size:.68rem; letter-spacing:.06em; color: var(--text-muted); text-transform:uppercase; }
.scorebar__track { height:7px; border-radius:99px; background: var(--mist-2); overflow:hidden; }
.scorebar__fill { height:100%; border-radius:99px; background: linear-gradient(90deg,var(--blue),var(--emerald)); width:0; transition: width 1.1s var(--ease); }
.scorebar__val { font-family:var(--font-mono); font-size:.72rem; font-weight:600; color: var(--emerald-deep); }

/* ---- Hero interactive mini-assessment ---- */
.miniq { position:relative; }
.miniq__screen[hidden]{ display:none; }
.miniq__q { font-family:var(--font-display); font-weight:600; font-size:1.15rem; line-height:1.25; letter-spacing:-.015em; margin-bottom:14px; }
.miniq__q:focus, .miniq__q:focus-visible { outline: none; }
.miniq__opts { display:grid; gap:9px; }
.miniq__opt {
  text-align:left; width:100%; background:var(--paper); border:1px solid var(--line); border-radius:12px;
  padding:12px 15px; font: inherit; font-size:var(--fs-small); font-weight:500; color:var(--text); cursor:pointer;
  transition: border-color .14s, background .14s, transform .1s; display:flex; align-items:center; gap:10px;
}
.miniq__opt:hover { border-color: var(--blue); background: var(--blue-tint); }
.miniq__opt:active { transform: scale(.99); }
.miniq__opt .k { font-family:var(--font-mono); font-size:.7rem; color:var(--text-faint); border:1px solid var(--line); border-radius:6px; padding:1px 6px; }
.miniq__dots { display:flex; gap:6px; }
.miniq__dot { width:7px; height:7px; border-radius:50%; background:var(--line); transition: background .2s, transform .2s; }
.miniq__dot.on { background: var(--blue); transform: scale(1.2); }

/* ---- Leaking bucket (signature) ---- */
.bucketwrap { display:grid; grid-template-columns: 280px 1fr; gap: clamp(24px,4vw,44px); align-items:center; }
@media(max-width:760px){ .bucketwrap{ grid-template-columns:1fr; } }
.bucket { position:relative; width:100%; max-width:280px; margin-inline:auto; }
.drip { transform-origin: center; }
@keyframes drip { 0%{ transform: translateY(0); opacity:0 } 12%{ opacity:1 } 70%{ opacity:1 } 100%{ transform: translateY(46px); opacity:0 } }
@keyframes pour { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(3px) } }
.bucket .pour { animation: pour 2.4s var(--ease) infinite; }
.bucket .drip1{ animation: drip 2.2s linear infinite; }
.bucket .drip2{ animation: drip 2.2s linear .7s infinite; }
.bucket .drip3{ animation: drip 2.2s linear 1.4s infinite; }
@media (prefers-reduced-motion: reduce){ .bucket .pour,.bucket .drip1,.bucket .drip2,.bucket .drip3{ animation:none } .bucket .drip{ opacity:.7 } }

/* ---- Revenue Flywheel (signature) ---- */
.flywheel { position:relative; width:min(460px,88vw); aspect-ratio:1; margin-inline:auto; }
.flywheel__spin { width:100%; height:100%; }
.flywheel__center {
  position:absolute; inset:0; margin:auto; width:38%; height:38%; border-radius:50%;
  display:grid; place-content:center; text-align:center; background:var(--ink); color:#fff;
  box-shadow: var(--shadow-lg);
}
.flywheel__center .n { font-family:var(--font-display); font-weight:600; font-size:clamp(1.4rem,1rem+1.4vw,2rem); letter-spacing:-.02em; }
.flywheel__center .l { font-family:var(--font-mono); font-size:.62rem; letter-spacing:.14em; color:var(--on-dark-mut); text-transform:uppercase; margin-top:3px; }
.fw-node { transition: opacity .5s var(--ease), transform .5s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.flywheel__ring { transform-origin:50% 50%; animation: spin 40s linear infinite; }
@media (prefers-reduced-motion: reduce){ .flywheel__ring{ animation:none } }

/* ---- Stat band ---- */
.statband { display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.statband__cell { background: var(--paper); padding: 30px 24px; text-align:center; }
.statband__n { font-family: var(--font-display); font-weight:600; font-size: clamp(2.2rem,1.4rem+2.4vw,3.4rem); letter-spacing:-.03em; line-height:1; color: var(--ink); }
.statband__n .u { color: var(--blue); }
.statband__l { font-family:var(--font-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; color:var(--text-faint); margin-top:10px; }
@media(max-width:720px){ .statband{ grid-template-columns:repeat(2,1fr) } }

/* ---- Sticky CTA (injected by JS) ---- */
.stickycta {
  position: fixed; left:50%; bottom: 20px; transform: translate(-50%, 130%);
  z-index: 90; display:flex; align-items:center; gap:14px;
  background: rgba(11,14,20,.92); backdrop-filter: blur(10px); color:#fff;
  padding: 10px 12px 10px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease); max-width: calc(100vw - 24px);
}
.stickycta.show { transform: translate(-50%, 0); }
.stickycta__txt { font-size: var(--fs-small); font-weight:500; white-space:nowrap; }
.stickycta__txt b { font-weight:600; }
@media(max-width:520px){ .stickycta__txt{ display:none } .stickycta{ padding:8px; bottom:14px } }
@media (prefers-reduced-motion: reduce){ .stickycta{ transition:none } }

/* ---- Product vignette driver rows in hero ---- */
.vignette { display:grid; gap:18px; }
.vignette__row { display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* count-up numbers reserve space to avoid layout shift */
.countup{ font-variant-numeric: tabular-nums; }

/* ---- Sector picker buttons ---- */
.secbtns{ display:flex; flex-wrap:wrap; gap:8px; }
.secbtn{ font:inherit; font-size:.78rem; font-weight:500; padding:.5em .8em; border-radius:999px; border:1px solid var(--line); background:var(--paper); color:var(--text-muted); cursor:pointer; transition: all .14s; }
.secbtn[aria-selected=true]{ background:var(--blue); border-color:var(--blue); color:#fff; }
.secbtn:hover{ border-color:var(--blue); }
[data-sector-content][hidden]{ display:none; }

/* ---- Semantic comparison table (AI-extractable) ---- */
.cmp{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); background:var(--paper); font-size:var(--fs-small); }
.cmp th,.cmp td{ padding:16px 22px; text-align:left; border-bottom:1px solid var(--line); }
.cmp thead th{ font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-weight:600; }
.cmp thead th:first-child{ color:var(--text-muted); background:var(--mist); }
.cmp thead th:last-child{ color:var(--blue); background:var(--blue-tint); }
.cmp td:first-child{ color:var(--text-muted); background:var(--mist); }
.cmp td:last-child{ color:var(--text); font-weight:500; }
.cmp tr:last-child td{ border-bottom:0; }
.cmp td+td,.cmp th+th{ border-left:1px solid var(--line); }
.cmp .vs__tick{ color:var(--emerald); } .cmp .vs__cross{ color:var(--text-faint); }
