/* ============================================================
   Alpha-Hire Observatory — shared design system
   Merges cleanly into an existing styles.css (all rules namespaced
   under .ah- / :root tokens). Plain CSS, no build step.
   ============================================================ */

/* ---- Type ---------------------------------------------------
   Loaded via <link> in each page. Fallback stacks keep the
   layout intact if the font host is unavailable. -------------- */

:root {
  /* surfaces / ink — cool-neutral light theme */
  --ah-bg:        #F5F6F9;
  --ah-surface:   #FFFFFF;
  --ah-surface-2: #FAFAFC;
  --ah-border:    #E7E8EF;
  --ah-border-2:  #EFEFF4;
  --ah-ink:       #16151D;
  --ah-ink-2:     #4C4B57;
  --ah-ink-3:     #86858F;
  --ah-track:     #EDEDF2;

  /* brand */
  --ah-purple:      #7C3AED;
  --ah-purple-700:  #6D28D9;
  --ah-purple-soft: #F3EEFE;
  --ah-purple-line: #E4D8FB;

  /* Go / Conditional / Hold */
  --ah-go:        #16A34A;  --ah-go-soft:   #E7F6ED;
  --ah-cond:      #C2740A;  --ah-cond-soft: #FBF1DF;
  --ah-hold:      #DC2626;  --ah-hold-soft: #FBEBEB;

  /* Watch / Elevated / Severe / Critical */
  --ah-watch:     #16A34A;  --ah-watch-soft:    #E7F6ED;
  --ah-elevated:  #C2740A;  --ah-elevated-soft: #FBF1DF;
  --ah-severe:    #EA580C;  --ah-severe-soft:   #FCEEE4;
  --ah-critical:  #DC2626;  --ah-critical-soft: #FBEBEB;

  /* geometry */
  --ah-radius:    16px;
  --ah-radius-sm: 10px;
  --ah-shadow:    0 1px 2px rgba(20,18,40,.04), 0 8px 24px -14px rgba(20,18,40,.18);
  --ah-shadow-sm: 0 1px 2px rgba(20,18,40,.05);
  --ah-maxw:      1180px;

  --ah-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ah-head: "Plus Jakarta Sans", var(--ah-sans);
}

/* register --score so donut rings can animate via CSS transition;
   falls back gracefully where @property is unsupported (static value stays). */
@property --ah-score {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

*, *::before, *::after { box-sizing: border-box; }

body.ah, main.ah {
  margin: 0;
  background: var(--ah-bg);
  color: var(--ah-ink);
  font-family: var(--ah-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv05" 1;
}
.ah h1, .ah h2, .ah h3, .ah h4 {
  font-family: var(--ah-head);
  font-weight: 800;
  color: var(--ah-ink);
  letter-spacing: -.02em;
  margin: 0;
}
.ah a { color: var(--ah-purple-700); text-decoration: none; }
.ah a:hover { color: var(--ah-purple); text-decoration: underline; text-underline-offset: 2px; }
.ah-tnum { font-variant-numeric: tabular-nums; }

/* ---- Layout -------------------------------------------------- */
.ah-shell { max-width: var(--ah-maxw); margin: 0 auto; padding: 0 28px; }

.ah-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--ah-border);
}
.ah-topbar-in {
  max-width: var(--ah-maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.ah-brand { display: flex; align-items: center; gap: 11px; font-family: var(--ah-head); font-weight: 800; letter-spacing: -.02em; }
.ah-brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--ah-purple), #9D5BF3);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(124,58,237,.55);
}
.ah-brand small { display: block; font-family: var(--ah-sans); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-ink-3); }
.ah-nav { display: flex; gap: 4px; margin-left: auto; }
.ah-nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--ah-ink-2); text-decoration: none;
}
.ah-nav a:hover { background: var(--ah-surface-2); color: var(--ah-ink); }
.ah-nav a[aria-current="page"] { background: var(--ah-purple-soft); color: var(--ah-purple-700); }

.ah-main { padding: 34px 0 80px; }

/* page header */
.ah-page-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.ah-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-purple-700); margin-bottom: 10px; }
.ah-page-head h1 { font-size: 34px; line-height: 1.08; }
.ah-page-head p { margin: 10px 0 0; color: var(--ah-ink-2); max-width: 62ch; font-size: 15.5px; }
.ah-page-head .ah-head-aside { margin-left: auto; }

/* ---- Cards --------------------------------------------------- */
.ah-card {
  background: var(--ah-surface);
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius);
  box-shadow: var(--ah-shadow-sm);
}
.ah-card-pad { padding: 22px 24px; }
.ah-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ah-card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ah-card-sub { font-size: 12.5px; color: var(--ah-ink-3); }
.ah-section-label { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ah-ink-3); }

/* ---- Pills / badges ----------------------------------------- */
.ah-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
}
.ah-badge .ah-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* live pill */
.ah-badge--live { background: var(--ah-surface); border-color: var(--ah-border); color: var(--ah-ink-2); font-weight: 600; }
.ah-badge--live .ah-dot { position: relative; background: var(--ah-go); }
.ah-badge--live .ah-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--ah-go); opacity: .35; animation: ah-pulse 2s ease-out infinite;
}
@keyframes ah-pulse { 0%{ transform: scale(.6); opacity:.5 } 70%{ transform: scale(1.9); opacity:0 } 100%{ opacity:0 } }

/* status colour variants (Go/Conditional/Hold) */
.ah-badge--go        { background: var(--ah-go-soft);   color: var(--ah-go); }
.ah-badge--conditional{ background: var(--ah-cond-soft); color: var(--ah-cond); }
.ah-badge--hold      { background: var(--ah-hold-soft); color: var(--ah-hold); }

/* risk variants */
.ah-badge--watch     { background: var(--ah-watch-soft);    color: var(--ah-watch); }
.ah-badge--elevated  { background: var(--ah-elevated-soft); color: var(--ah-elevated); }
.ah-badge--severe    { background: var(--ah-severe-soft);   color: var(--ah-severe); }
.ah-badge--critical  { background: var(--ah-critical-soft); color: var(--ah-critical); }

/* ---- Donut score ring --------------------------------------- */
.ah-ring { position: relative; display: inline-grid; place-items: center; }
.ah-ring svg { transform: rotate(-90deg); display: block; }
.ah-ring .ah-ring-track { fill: none; stroke: var(--ah-track); }
.ah-ring .ah-ring-fill {
  fill: none; stroke-linecap: round;
  /* static render: offset derived from --ah-score with no JS */
  stroke-dashoffset: calc(326.726px * (1 - var(--ah-score) / 100));
  transition: stroke-dashoffset .95s cubic-bezier(.22,.61,.36,1),
              --ah-score .95s cubic-bezier(.22,.61,.36,1);
}
.ah-ring--go        .ah-ring-fill { stroke: var(--ah-go); }
.ah-ring--conditional .ah-ring-fill { stroke: var(--ah-cond); }
.ah-ring--hold      .ah-ring-fill { stroke: var(--ah-hold); }
.ah-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ah-ring-num { font-family: var(--ah-head); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ah-ring-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-ink-3); margin-top: 5px; }

/* size modifiers set width/height + font on center num */
.ah-ring--xl svg { width: 200px; height: 200px; } .ah-ring--xl .ah-ring-num { font-size: 58px; }
.ah-ring--lg svg { width: 150px; height: 150px; } .ah-ring--lg .ah-ring-num { font-size: 44px; }
.ah-ring--md svg { width: 108px; height: 108px; } .ah-ring--md .ah-ring-num { font-size: 32px; }
.ah-ring--sm svg { width: 76px;  height: 76px;  } .ah-ring--sm .ah-ring-num { font-size: 22px; }

/* ---- Horizontal bar rows ------------------------------------ */
.ah-bars { display: flex; flex-direction: column; gap: 15px; }
.ah-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.ah-bar-label { font-size: 13.5px; font-weight: 600; color: var(--ah-ink); }
.ah-bar-label .ah-w { font-weight: 500; color: var(--ah-ink-3); font-size: 12px; margin-left: 7px; }
.ah-bar-val { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ah-bar-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--ah-track); overflow: hidden; }
.ah-bar-fill {
  height: 100%; border-radius: 999px; background: var(--ah-purple);
  width: calc(var(--ah-val) * 1%);
  transform-origin: left; transition: width .9s cubic-bezier(.22,.61,.36,1);
}
.ah-bar-note { grid-column: 1 / -1; font-size: 12px; color: var(--ah-ink-3); margin-top: -1px; }
/* score-tinted fills */
.ah-bar-fill.is-go   { background: var(--ah-go); }
.ah-bar-fill.is-cond { background: var(--ah-cond); }
.ah-bar-fill.is-hold { background: var(--ah-hold); }

/* ---- Stat tiles --------------------------------------------- */
.ah-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ah-tiles--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ah-tile {
  background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm);
  padding: 15px 16px 14px;
}
.ah-tile-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ah-ink-3); }
.ah-tile-val { font-family: var(--ah-head); font-weight: 800; font-size: 25px; letter-spacing: -.02em; margin-top: 7px; line-height: 1; font-variant-numeric: tabular-nums; }
.ah-tile-val small { font-size: 15px; font-weight: 700; color: var(--ah-ink-2); }
.ah-delta { display: inline-flex; align-items: center; gap: 3px; margin-top: 9px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ah-delta.up   { color: var(--ah-go); }
.ah-delta.down { color: var(--ah-hold); }
.ah-delta.flat { color: var(--ah-ink-3); }
.ah-delta::before { font-size: 10px; }
.ah-delta.up::before   { content: "▲"; }
.ah-delta.down::before { content: "▼"; }

/* ---- Sparkline ---------------------------------------------- */
.ah-spark { width: 100%; height: 46px; display: block; overflow: visible; }
.ah-spark path.line { fill: none; stroke: var(--ah-purple); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ah-spark path.area { fill: url(#ah-spark-grad); stroke: none; }

/* ---- Methodology bits --------------------------------------- */
.ah-formula {
  font-family: var(--ah-head); font-weight: 700; font-size: 15px; color: var(--ah-ink-2);
  background: var(--ah-surface-2); border: 1px dashed var(--ah-border);
  border-radius: var(--ah-radius-sm); padding: 14px 18px; line-height: 1.9;
}
.ah-formula b { color: var(--ah-purple-700); }
.ah-formula .op { color: var(--ah-ink-3); margin: 0 4px; }

.ah-legend { display: grid; gap: 10px; }
.ah-legend-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm); }
.ah-legend-swatch { width: 12px; height: 34px; border-radius: 5px; }
.ah-legend-name { font-weight: 700; font-size: 14px; }
.ah-legend-desc { font-size: 12.5px; color: var(--ah-ink-2); }
.ah-legend-range { font-family: var(--ah-head); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ah-ink-3); font-size: 13px; }

/* weight bar for methodology anatomy */
.ah-weightbar { display: flex; height: 42px; border-radius: 10px; overflow: hidden; border: 1px solid var(--ah-border); }
.ah-weightbar > span { display: grid; place-content: center; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }

.ah-pillar-card { display: grid; gap: 14px; }
.ah-pillar-card .ah-pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ah-pillar-w { font-family: var(--ah-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ah-purple-700); }
.ah-pillar-w small { font-size: 12px; font-weight: 700; color: var(--ah-ink-3); }

/* ---- Grids -------------------------------------------------- */
.ah-grid { display: grid; gap: 20px; }
.ah-grid--snapshot { grid-template-columns: 340px 1fr; }
.ah-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ah-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ah-stack { display: flex; flex-direction: column; gap: 20px; }

.ah-divider { height: 1px; background: var(--ah-border); margin: 20px 0; }
.ah-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ah-border-2); font-size: 13.5px; }
.ah-kv:last-child { border-bottom: 0; }
.ah-kv dt { color: var(--ah-ink-2); } .ah-kv dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Comparison tool ---------------------------------------- */
.ah-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--ah-surface); border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius); padding: 14px 18px; margin-bottom: 22px; box-shadow: var(--ah-shadow-sm);
}
.ah-toolbar .ah-tb-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ah-ink-3); }
.ah-chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.ah-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ah-border);
  background: var(--ah-surface-2); font-size: 13px; font-weight: 600; color: var(--ah-ink-2);
  transition: background .15s, border-color .15s, color .15s;
}
.ah-chip:hover { border-color: var(--ah-purple-line); color: var(--ah-ink); }
.ah-chip .ah-chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ah-ink-3); }
.ah-chip[aria-pressed="true"] { background: var(--ah-purple-soft); border-color: var(--ah-purple-line); color: var(--ah-purple-700); }
.ah-select {
  font-family: var(--ah-sans); font-size: 13px; font-weight: 600; color: var(--ah-ink);
  padding: 8px 30px 8px 12px; border-radius: 9px; border: 1px solid var(--ah-border); background: var(--ah-surface);
  appearance: none; cursor: pointer; max-width: 100%; min-width: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 8l3-3.5' stroke='%2386858F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

.ah-compare-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.ah-compare-card { position: relative; }
.ah-compare-card .ah-remove {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--ah-border); background: var(--ah-surface); color: var(--ah-ink-3);
  cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.ah-compare-card .ah-remove:hover { color: var(--ah-hold); border-color: var(--ah-hold); }
.ah-compare-card .ah-cc-market { font-family: var(--ah-head); font-weight: 800; font-size: 18px; letter-spacing: -.02em; padding-right: 34px; }
.ah-compare-card .ah-cc-sector { font-size: 12px; color: var(--ah-ink-3); margin-top: 2px; }
.ah-cc-metric { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--ah-border-2); font-size: 13px; }
.ah-cc-metric dt { color: var(--ah-ink-2); } .ah-cc-metric dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ah-cc-best dd { color: var(--ah-purple-700); }
.ah-cc-best dd::after { content: " ★"; font-size: 10px; }

/* comparison matrix table */
.ah-matrix-wrap { overflow-x: auto; border: 1px solid var(--ah-border); border-radius: var(--ah-radius); background: var(--ah-surface); box-shadow: var(--ah-shadow-sm); }
.ah-matrix { border-collapse: collapse; width: 100%; min-width: 640px; }
.ah-matrix th, .ah-matrix td { padding: 13px 16px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; border-bottom: 1px solid var(--ah-border-2); white-space: nowrap; }
.ah-matrix thead th { font-family: var(--ah-head); font-weight: 700; font-size: 13px; color: var(--ah-ink); border-bottom: 1px solid var(--ah-border); background: var(--ah-surface-2); }
.ah-matrix th:first-child, .ah-matrix td:first-child { text-align: left; }
.ah-matrix tbody th { font-weight: 600; color: var(--ah-ink-2); }
.ah-matrix tbody tr:last-child td, .ah-matrix tbody tr:last-child th { border-bottom: 0; }
.ah-matrix td.is-best { color: var(--ah-purple-700); font-weight: 800; }
.ah-matrix .ah-mini-score { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ah-mini-dot { width: 9px; height: 9px; border-radius: 50%; }
.ah-mini-dot.go{background:var(--ah-go)} .ah-mini-dot.conditional{background:var(--ah-cond)} .ah-mini-dot.hold{background:var(--ah-hold)}

/* footer */
.ah-foot { max-width: var(--ah-maxw); margin: 0 auto; padding: 26px 28px 40px; color: var(--ah-ink-3); font-size: 12.5px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--ah-border); }
.ah-foot a { color: var(--ah-ink-2); }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 900px) {
  .ah-grid--snapshot, .ah-grid--3, .ah-grid--2 { grid-template-columns: minmax(0,1fr); }
  .ah-tiles, .ah-tiles--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ah-page-head h1 { font-size: 27px; }
  .ah-nav { display: none; }
}
@media (max-width: 560px) {
  .ah-shell, .ah-topbar-in { padding-left: 18px; padding-right: 18px; }
  .ah-tiles { grid-template-columns: minmax(0,1fr); }
}

/* ============================================================
   v2 — UX/UI enhancements
   ============================================================ */

/* ---- focus + keyboard ---- */
.ah :focus-visible,
.ah button:focus-visible,
.ah select:focus-visible,
.ah [tabindex]:focus-visible {
  outline: 2px solid var(--ah-purple);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---- skeleton / freshness ---- */
@keyframes ah-shimmer { 100% { transform: translateX(100%); } }
.ah-skeleton { position: relative; overflow: hidden; background: var(--ah-track); border-radius: 8px; color: transparent !important; }
.ah-skeleton * { visibility: hidden; }
.ah-skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: ah-shimmer 1.3s infinite;
}
.ah-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ah-ink-3); }
.ah-fresh .ah-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ah-go); }
.ah-fresh.is-stale .ah-dot { background: var(--ah-cond); }

/* ---- segmented control ---- */
.ah-seg { display: inline-flex; background: var(--ah-surface-2); border: 1px solid var(--ah-border); border-radius: 10px; padding: 3px; gap: 2px; }
.ah-seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 12.5px/1 var(--ah-sans); color: var(--ah-ink-2);
  padding: 7px 12px; border-radius: 7px; transition: background .15s, color .15s;
}
.ah-seg button:hover { color: var(--ah-ink); }
.ah-seg button[aria-pressed="true"] { background: var(--ah-surface); color: var(--ah-purple-700); box-shadow: var(--ah-shadow-sm); }

/* ---- sticky context bar ---- */
.ah-stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--ah-border); box-shadow: var(--ah-shadow-sm);
  transform: translateY(-100%); transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.ah-stickybar.is-on { transform: translateY(0); }
.ah-stickybar-in { max-width: var(--ah-maxw); margin: 0 auto; padding: 11px 28px; display: flex; align-items: center; gap: 14px; }
.ah-stickybar .ah-sb-title { font-family: var(--ah-head); font-weight: 800; letter-spacing: -.02em; font-size: 15px; }
.ah-stickybar .ah-sb-sector { color: var(--ah-ink-3); font-size: 12.5px; }
.ah-stickybar .ah-sb-score { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.ah-sb-num { font-family: var(--ah-head); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ah-sb-num.go{color:var(--ah-go)} .ah-sb-num.conditional{color:var(--ah-cond)} .ah-sb-num.hold{color:var(--ah-hold)}

/* ---- ring benchmark tick ---- */
.ah-ring .ah-ring-bench { fill: none; stroke: var(--ah-ink-3); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.ah-ring-benchcap { text-align: center; white-space: nowrap; font-size: 10.5px; color: var(--ah-ink-3); font-weight: 600; }

/* ---- interactive pillar rows ---- */
.ah-bar-row.is-interactive { cursor: pointer; border-radius: 8px; padding: 6px 8px; margin: -6px -8px; transition: background .15s; }
.ah-bar-row.is-interactive:hover { background: var(--ah-surface-2); }
.ah-bar-row .ah-chevron { display: inline-block; margin-left: 6px; color: var(--ah-ink-3); font-size: 10px; transition: transform .2s; }
.ah-bar-row.is-open .ah-chevron { transform: rotate(90deg); }
.ah-bar-track { position: relative; }
.ah-bar-bench {
  position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px;
  background: var(--ah-ink-3); opacity: .5; left: calc(var(--ah-bench) * 1%);
  transform: translateX(-1px);
}
.ah-bar-detail {
  grid-column: 1 / -1; display: none; margin-top: 10px; padding: 12px 14px;
  background: var(--ah-surface-2); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm);
}
.ah-bar-row.is-open .ah-bar-detail { display: block; }
.ah-bar-detail .ah-contrib { font-size: 12.5px; color: var(--ah-ink-2); margin-bottom: 10px; }
.ah-bar-detail .ah-contrib b { color: var(--ah-purple-700); font-family: var(--ah-head); }
.ah-input-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ah-input-chip { font-size: 11.5px; font-weight: 600; color: var(--ah-ink-2); background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: 999px; padding: 4px 10px; }

/* ---- sparkline tooltip ---- */
.ah-spark-wrap { position: relative; }
.ah-spark .dot-now { fill: var(--ah-purple); stroke: #fff; stroke-width: 2; }
.ah-spark .guide { stroke: var(--ah-purple-line); stroke-width: 1; opacity: 0; }
.ah-spark .hover-dot { fill: var(--ah-purple); stroke: #fff; stroke-width: 2; opacity: 0; }
.ah-spark-tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -120%);
  background: var(--ah-ink); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; white-space: nowrap; transition: opacity .12s;
  font-variant-numeric: tabular-nums; z-index: 5;
}
.ah-spark-tip small { display: block; font-weight: 500; opacity: .7; font-size: 10px; }

/* ---- weight simulator ---- */
.ah-sim-row { display: grid; grid-template-columns: 132px minmax(0,1fr) 54px; gap: 14px; align-items: center; padding: 9px 0; }
.ah-sim-row .ah-sim-label { font-size: 13.5px; font-weight: 600; }
.ah-sim-row output { font-family: var(--ah-head); font-weight: 800; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ah-purple-700); }
input[type="range"].ah-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: var(--ah-purple-line); border: 1px solid var(--ah-border); outline-offset: 4px; accent-color: var(--ah-purple); cursor: pointer; }
input[type="range"].ah-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ah-purple); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(20,18,40,.3); cursor: pointer; }
input[type="range"].ah-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ah-purple); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(20,18,40,.3); cursor: pointer; }
.ah-sim-sum { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ah-border); font-size: 12.5px; color: var(--ah-ink-3); }
.ah-sim-sum.is-off { color: var(--ah-cond); }
.ah-btn {
  appearance: none; cursor: pointer; font: 600 13px/1 var(--ah-sans);
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--ah-border);
  background: var(--ah-surface); color: var(--ah-ink); display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, border-color .15s, color .15s;
}
.ah-btn:hover { border-color: var(--ah-purple-line); color: var(--ah-purple-700); }
.ah-btn--primary { background: var(--ah-purple); border-color: var(--ah-purple); color: #fff; }
.ah-btn--primary:hover { background: var(--ah-purple-700); color: #fff; }
.ah a.ah-btn { color: var(--ah-ink); text-decoration: none; }
.ah a.ah-btn:hover { color: var(--ah-purple-700); text-decoration: none; }
.ah a.ah-btn--primary, .ah a.ah-btn--primary:hover { color: #fff; }
.ah-sim-verdict { font-size: 12.5px; color: var(--ah-ink-2); margin-top: 8px; }

/* ---- methodology anchor nav ---- */
.ah-anchornav { position: sticky; top: 62px; z-index: 20; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; background: var(--ah-bg); }
.ah-anchornav a { font-size: 12.5px; font-weight: 600; color: var(--ah-ink-2); padding: 6px 11px; border-radius: 8px; border: 1px solid var(--ah-border); background: var(--ah-surface); text-decoration: none; }
.ah-anchornav a:hover { border-color: var(--ah-purple-line); color: var(--ah-purple-700); text-decoration: none; }
.ah-pillar-anchor { scroll-margin-top: 118px; }

/* ---- compare v2 controls ---- */
.ah-tb-group { display: inline-flex; align-items: center; gap: 9px; }
.ah-sortdir { width: 34px; height: 34px; padding: 0; justify-content: center; }
.ah-sortdir .ah-caret { transition: transform .2s; }
.ah-sortdir[data-dir="asc"] .ah-caret { transform: rotate(180deg); }
.ah-addwrap { position: relative; }
.ah-addmenu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 190px;
  background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm);
  box-shadow: var(--ah-shadow); padding: 6px; display: none;
}
.ah-addmenu.is-open { display: block; }
.ah-addmenu button { display: flex; width: 100%; align-items: center; gap: 9px; background: transparent; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 8px; font: 600 13px/1 var(--ah-sans); color: var(--ah-ink); text-align: left; }
.ah-addmenu button:hover { background: var(--ah-surface-2); }
.ah-addmenu .ah-empty { padding: 10px; font-size: 12.5px; color: var(--ah-ink-3); }

/* baseline diff */
.ah-diff { font-size: 11px; font-weight: 700; margin-left: 6px; font-variant-numeric: tabular-nums; }
.ah-diff.up { color: var(--ah-go); } .ah-diff.down { color: var(--ah-hold); } .ah-diff.flat { color: var(--ah-ink-3); }
.ah-compare-card.is-baseline { outline: 2px solid var(--ah-purple); outline-offset: -1px; }
.ah-compare-card .ah-base-tag { display: none; position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-purple-700); background: var(--ah-purple-soft); padding: 3px 8px; border-radius: 999px; }
.ah-compare-card.is-baseline .ah-base-tag { display: inline-block; }
.ah-matrix td.is-baseline-col { background: var(--ah-purple-soft); }

/* card pillar-bar view */
.ah-cc-pillars { display: none; flex-direction: column; gap: 9px; margin-top: 12px; }
.ah-compare-card.view-bars .ah-cc-metrics { display: none; }
.ah-compare-card.view-bars .ah-cc-pillars { display: flex; }
.ah-cc-pillar { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.ah-cc-pillar .lab { font-size: 11.5px; color: var(--ah-ink-2); font-weight: 600; }
.ah-cc-pillar .val { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ah-cc-pillar .ah-bar-track { grid-column: 1 / -1; height: 6px; }

@media (max-width: 700px) {
  .ah-sim-row { grid-template-columns: 100px minmax(0,1fr) 44px; }
  .ah-anchornav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ah-ring-fill, .ah-bar-fill { transition: none !important; }
  .ah-badge--live .ah-dot::after { animation: none; }
  .ah-skeleton::after { animation: none; }
  .ah-stickybar { transition: none; }
}

/* ============================================================
   Landing page (page 4)
   ============================================================ */
.ah-lnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(1.1) blur(10px); border-bottom: 1px solid var(--ah-border); }
.ah-lnav-in { max-width: var(--ah-maxw); margin: 0 auto; padding: 15px 28px; display: flex; align-items: center; gap: 26px; }
.ah-lnav .ah-brand { font-size: 17px; }
.ah-lnav-links { display: flex; gap: 4px; margin-left: 8px; }
.ah-lnav-links a { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ah-ink-2); text-decoration: none; }
.ah-lnav-links a:hover { background: var(--ah-surface-2); color: var(--ah-ink); text-decoration: none; }
.ah-lnav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.ah-l-section { padding: 84px 0; }
.ah-l-tint { background: var(--ah-surface-2); border-top: 1px solid var(--ah-border); border-bottom: 1px solid var(--ah-border); }
.ah-l-center { text-align: center; max-width: 640px; margin: 0 auto; }
.ah-l-center h2 { font-size: 32px; line-height: 1.12; }
.ah-l-center p { color: var(--ah-ink-2); font-size: 16px; margin: 14px auto 0; }
.ah-l-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ah-purple-700); display: flex; align-items: center; gap: 9px; }
.ah-l-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--ah-purple); border-radius: 2px; }
.ah-l-eyebrow.center { justify-content: center; }

/* hero */
.ah-l-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0 64px; }
.ah-l-hero h1 { font-size: 52px; line-height: 1.04; letter-spacing: -.03em; margin: 20px 0 0; }
.ah-l-hero .lead { font-size: 17px; color: var(--ah-ink-2); margin: 20px 0 0; max-width: 46ch; }
.ah-l-hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.ah-l-builtfor { margin-top: 30px; font-size: 12.5px; color: var(--ah-ink-3); line-height: 1.9; }
.ah-l-builtfor b { color: var(--ah-ink-2); font-weight: 700; letter-spacing: .04em; }
.ah-l-builtfor .sep { color: var(--ah-border); margin: 0 8px; }
.ah-l-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--ah-border); }
.ah-l-stat .n { font-family: var(--ah-head); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.ah-l-stat .l { font-size: 12.5px; color: var(--ah-ink-3); margin-top: 4px; }

.ah-btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 11px; }

/* feasibility / console cards */
.ah-fs-card { box-shadow: var(--ah-shadow); }
.ah-fs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ah-fs-title { font-size: 12.5px; font-weight: 700; color: var(--ah-ink-2); }
.ah-fs-verdict { display: flex; align-items: center; gap: 16px; }
.ah-fs-verdict .who { font-weight: 700; font-size: 15px; }
.ah-fs-verdict .who small { display: block; font-weight: 500; color: var(--ah-ink-3); font-size: 12px; margin-top: 2px; }
.ah-fs-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ah-border-2); font-size: 12px; color: var(--ah-ink-3); }

/* quote */
.ah-l-quote { text-align: center; max-width: 720px; margin: 0 auto; }
.ah-l-quote .mark { font-family: var(--ah-head); font-size: 44px; color: var(--ah-purple-line); line-height: .6; }
.ah-l-quote blockquote { font-family: var(--ah-head); font-weight: 700; font-size: 25px; line-height: 1.4; letter-spacing: -.02em; margin: 14px 0 18px; text-wrap: balance; }
.ah-l-quote cite { font-style: normal; font-size: 13px; color: var(--ah-ink-3); }

/* steps */
.ah-l-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; margin-top: 48px; }
.ah-l-step .num { font-family: var(--ah-head); font-weight: 800; font-size: 13px; color: var(--ah-purple); letter-spacing: .1em; }
.ah-l-step h3 { font-size: 19px; margin: 12px 0 8px; }
.ah-l-step p { color: var(--ah-ink-2); font-size: 14.5px; margin: 0; line-height: 1.6; }
.ah-l-step { border-top: 2px solid var(--ah-border); padding-top: 18px; }

/* console showcase */
.ah-l-console { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 44px; }
.ah-mini-table { width: 100%; border-collapse: collapse; }
.ah-mini-table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-ink-3); padding: 0 0 8px; }
.ah-mini-table th.r, .ah-mini-table td.r { text-align: right; }
.ah-mini-table td { padding: 9px 0; border-top: 1px solid var(--ah-border-2); font-size: 13.5px; font-weight: 600; }
.ah-dots { display: inline-flex; gap: 3px; }
.ah-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ah-track); display: inline-block; }
.ah-dots i.on-go { background: var(--ah-go); } .ah-dots i.on-cond { background: var(--ah-cond); } .ah-dots i.on-hold { background: var(--ah-hold); }
.ah-signal { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ah-ink-2); padding: 9px 0; border-top: 1px solid var(--ah-border-2); line-height: 1.4; }
.ah-signal:first-child { border-top: 0; }
.ah-signal .sd { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }

/* solutions list */
.ah-l-solutions { margin-top: 44px; border-top: 1px solid var(--ah-border); }
.ah-sol-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--ah-border); transition: background .15s, padding .15s; }
.ah-sol-row:hover { background: var(--ah-surface-2); padding-left: 16px; }
.ah-sol-row h3 { font-size: 17px; }
.ah-sol-row p { margin: 5px 0 0; color: var(--ah-ink-2); font-size: 14px; }
.ah-sol-row .learn { font-size: 13.5px; font-weight: 700; color: var(--ah-purple-700); white-space: nowrap; }
.ah-sol-row:hover .learn { text-decoration: underline; text-underline-offset: 3px; }

/* industries */
.ah-ind-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; max-width: 780px; margin-left: auto; margin-right: auto; }
.ah-ind-chip { color: var(--ah-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--ah-border); background: var(--ah-surface); font-weight: 700; font-size: 14px; }
.ah-ind-chip:hover { color: var(--ah-purple-700); border-color: var(--ah-purple-line); text-decoration: none; }
.ah-ind-chip .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.tag-tight { background: var(--ah-hold-soft); color: var(--ah-hold); }
.tag-elevated { background: var(--ah-cond-soft); color: var(--ah-cond); }
.tag-moderate { background: var(--ah-go-soft); color: var(--ah-go); }

/* ROI estimator */
.ah-roi { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.ah-roi-panel { display: flex; flex-direction: column; gap: 4px; }
.ah-roi-row { padding: 15px 0; border-bottom: 1px solid var(--ah-border-2); }
.ah-roi-row:last-child { border-bottom: 0; }
.ah-roi-row .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.ah-roi-row .lab { font-size: 14px; font-weight: 600; }
.ah-roi-row .out { font-family: var(--ah-head); font-weight: 800; font-size: 16px; color: var(--ah-purple-700); font-variant-numeric: tabular-nums; }
.ah-roi-toggle { display: flex; align-items: center; gap: 12px; padding-top: 15px; }
.ah-switch { position: relative; width: 42px; height: 24px; flex: none; }
.ah-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ah-switch .track { position: absolute; inset: 0; background: var(--ah-track); border-radius: 999px; transition: background .18s; }
.ah-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--ah-shadow-sm); transition: transform .18s; }
.ah-switch input:checked + .track { background: var(--ah-purple); }
.ah-switch input:checked + .track::after { transform: translateX(18px); }
.ah-switch input:focus-visible + .track { outline: 2px solid var(--ah-purple); outline-offset: 2px; }

.ah-roi-result { background: linear-gradient(155deg, #2A1258, #4A1D93 55%, #6D28D9); color: #fff; border-radius: var(--ah-radius); padding: 30px; display: flex; flex-direction: column; }
.ah-roi-result .cap { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ah-roi-big { font-family: var(--ah-head); font-weight: 800; font-size: 60px; letter-spacing: -.03em; line-height: 1; margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.ah-roi-result .sub { color: rgba(255,255,255,.75); font-size: 14px; }
.ah-roi-break { margin: 22px 0; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.ah-roi-break span:last-child { font-family: var(--ah-head); font-weight: 800; font-variant-numeric: tabular-nums; }
.ah-roi-unlock { margin-top: auto; }
.ah-roi-unlock .u-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.ah-roi-form { display: flex; gap: 8px; }
.ah-roi-form input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 9px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; font: 500 13.5px var(--ah-sans); }
.ah-roi-form input::placeholder { color: rgba(255,255,255,.55); }
.ah-roi-form input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ah-roi-form button { background: #fff; color: var(--ah-purple-700); border: 0; border-radius: 9px; padding: 0 16px; font: 700 13.5px var(--ah-sans); cursor: pointer; white-space: nowrap; }
.ah-roi-form button:hover { background: #F3EEFE; }
.ah-roi-note { font-size: 11px; color: var(--ah-ink-3); margin-top: 16px; line-height: 1.5; }
.ah-roi-thanks { color: #fff; font-size: 13.5px; font-weight: 600; }

/* CTA band */
.ah-l-cta { position: relative; border: 1px solid var(--ah-purple-line); border-radius: 22px; background: var(--ah-surface); padding: 60px; text-align: center; box-shadow: var(--ah-shadow); }
.ah-l-cta::before { content: ""; position: absolute; left: 50%; top: 0; transform: translate(-50%, -1px); width: 180px; height: 4px; background: var(--ah-purple); border-radius: 0 0 6px 6px; }
.ah-l-cta h2 { font-size: 32px; line-height: 1.12; }
.ah-l-cta p { color: var(--ah-ink-2); font-size: 16px; margin: 14px auto 26px; max-width: 44ch; }
.ah-l-cta .acts { display: flex; gap: 12px; justify-content: center; }

/* footer */
.ah-l-foot { background: #14131A; color: rgba(255,255,255,.62); }
.ah-l-foot-in { max-width: var(--ah-maxw); margin: 0 auto; padding: 64px 28px 30px; display: grid; grid-template-columns: 1.6fr minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.ah-l-foot .ah-brand { color: #fff; }
.ah-l-foot .ah-brand small { color: rgba(255,255,255,.5); }
.ah-l-foot .blurb { font-size: 13px; line-height: 1.6; margin-top: 16px; max-width: 30ch; }
.ah-l-foot h4 { color: rgba(255,255,255,.5); font-family: var(--ah-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.ah-l-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ah-l-foot a { color: rgba(255,255,255,.62); font-size: 13px; text-decoration: none; }
.ah-l-foot a:hover { color: #fff; text-decoration: none; }
.ah-l-foot-bar { max-width: var(--ah-maxw); margin: 0 auto; padding: 22px 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.ah-l-foot-bar a { margin-left: 4px; }
.ah-l-foot-bar .spacer { margin-left: auto; }

@media (max-width: 960px) {
  .ah-l-hero, .ah-l-console, .ah-roi { grid-template-columns: minmax(0,1fr); }
  .ah-l-steps { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .ah-l-foot-in { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ah-l-hero h1 { font-size: 40px; }
  .ah-lnav-links { display: none; }
}
@media (max-width: 560px) {
  .ah-l-stats { flex-wrap: wrap; gap: 22px; }
  .ah-l-foot-in { grid-template-columns: minmax(0,1fr); }
  .ah-roi-big { font-size: 46px; }
  .ah-l-cta { padding: 40px 24px; }
}

/* ============================================================
   Landing v2 — proof, rotator, sticky CTA, reveal, FAQ, etc.
   ============================================================ */

/* scroll reveal (hidden only when JS is on, so no-JS renders complete) */
.ah-js .ah-l-hero > div, .ah-js .ah-l-center, .ah-js .ah-l-steps > *,
.ah-js .ah-l-console > *, .ah-js .ah-l-solutions > *, .ah-js .ah-ind-chip,
.ah-js .ah-roi, .ah-js .ah-l-cta, .ah-js .ah-logowall > *, .ah-js .ah-proof > *,
.ah-js .ah-quotes > *, .ah-js .ah-platform-grid > *, .ah-js .ah-faq-item,
.ah-js .ah-seg-select, .ah-js .ah-tiles {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.is-in { opacity: 1 !important; transform: none !important; }

/* logo / trusted-by wall */
.ah-logowall { padding: 30px 0 8px; text-align: center; }
.ah-logowall .cap { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-ink-3); }
.ah-logowall .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; margin-top: 18px; }
.ah-logowall .item { font-family: var(--ah-head); font-weight: 700; font-size: 14px; color: var(--ah-ink-2); opacity: .78; }
.ah-logowall .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ah-border); }

/* proof metrics */
.ah-proof { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 44px; max-width: 900px; margin-left: auto; margin-right: auto; }
.ah-proof-item { text-align: center; }
.ah-proof-item .n { font-family: var(--ah-head); font-weight: 800; font-size: 36px; letter-spacing: -.03em; color: var(--ah-purple-700); line-height: 1; font-variant-numeric: tabular-nums; }
.ah-proof-item .l { font-size: 12.5px; color: var(--ah-ink-2); margin-top: 8px; line-height: 1.4; }

/* testimonials grid */
.ah-quotes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.ah-quotes--3 { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 1180px; }
.ah-quote-card { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); padding: 26px; box-shadow: var(--ah-shadow-sm); }
.ah-quote-card .mk { font-family: var(--ah-head); font-size: 30px; color: var(--ah-purple-line); line-height: .4; }
.ah-quote-card blockquote { font-family: var(--ah-head); font-weight: 700; font-size: 17px; line-height: 1.45; letter-spacing: -.01em; margin: 12px 0 16px; }
.ah-quote-card cite { font-style: normal; font-size: 12.5px; color: var(--ah-ink-3); }

/* hero rotator dots */
.ah-hero-pick { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ah-hero-dots { display: flex; gap: 7px; }
.ah-hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--ah-border); cursor: pointer; transition: background .2s, width .2s; }
.ah-hero-dots button[aria-selected="true"] { background: var(--ah-purple); width: 22px; border-radius: 999px; }
.ah-hero-pick .lbl { font-size: 11.5px; color: var(--ah-ink-3); font-weight: 600; }

/* sticky CTA */
.ah-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.1) blur(10px);
  border-top: 1px solid var(--ah-border); box-shadow: 0 -8px 24px -18px rgba(20,18,40,.4);
  transform: translateY(110%); transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.ah-sticky-cta.is-on { transform: translateY(0); }
.ah-sticky-cta-in { max-width: var(--ah-maxw); margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; gap: 16px; }
.ah-sticky-cta .txt { font-family: var(--ah-head); font-weight: 700; font-size: 14.5px; }
.ah-sticky-cta .txt small { display: block; font-family: var(--ah-sans); font-weight: 500; font-size: 12px; color: var(--ah-ink-3); margin-top: 1px; }
.ah-sticky-cta .acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ah-sticky-cta .dismiss { width: 30px; height: 30px; border: 0; background: transparent; color: var(--ah-ink-3); font-size: 18px; cursor: pointer; border-radius: 8px; }
.ah-sticky-cta .dismiss:hover { background: var(--ah-surface-2); color: var(--ah-ink); }

/* steps connector + ring */
.ah-l-steps { position: relative; }
.ah-l-steps::before { content: ""; position: absolute; top: -1px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--ah-purple-line) 0 8px, transparent 8px 16px); z-index: 0; }
.ah-l-step { position: relative; z-index: 1; background: var(--ah-surface); display: flex; flex-direction: column; }
.ah-step-ring { align-self: center; margin-top: 22px; }

/* segment selector */
.ah-seg-select { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 4px; align-items: center; }
.ah-seg-select .q { font-size: 13.5px; font-weight: 700; color: var(--ah-ink-2); }
.ah-aud { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ah-seg-btn {
  appearance: none; cursor: pointer; font: 700 13.5px var(--ah-sans);
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--ah-border);
  background: var(--ah-surface); color: var(--ah-ink); transition: all .15s;
}
.ah-seg-btn:hover { border-color: var(--ah-purple-line); color: var(--ah-purple-700); }
.ah-seg-btn[aria-pressed="true"] { background: var(--ah-purple); border-color: var(--ah-purple); color: #fff; }
.ah-sol-row.is-highlight { background: var(--ah-purple-soft); box-shadow: inset 3px 0 0 var(--ah-purple); }
.ah a.ah-sol-row, .ah a.ah-sol-row:hover { color: var(--ah-ink); text-decoration: none; }

/* platform section */
.ah-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 44px; }
.ah-platform-card { display: block; background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); padding: 24px; text-decoration: none; box-shadow: var(--ah-shadow-sm); transition: border-color .15s, transform .15s; }
.ah-platform-card:hover { border-color: var(--ah-purple-line); transform: translateY(-2px); text-decoration: none; }
.ah-platform-card .pc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ah-purple-700); }
.ah-platform-card h3 { font-size: 18px; margin: 8px 0 6px; }
.ah-platform-card p { margin: 0; color: var(--ah-ink-2); font-size: 14px; line-height: 1.55; }
.ah-platform-card .go { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ah-purple-700); }

/* FAQ */
.ah-faq { max-width: 760px; margin: 40px auto 0; }
.ah-faq-item { border-bottom: 1px solid var(--ah-border); }
.ah-faq-item summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--ah-head); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.ah-faq-item summary::-webkit-details-marker { display: none; }
.ah-faq-item summary::after { content: "+"; font-family: var(--ah-sans); font-weight: 400; font-size: 22px; color: var(--ah-purple); transition: transform .2s; flex: none; }
.ah-faq-item[open] summary::after { content: "\2212"; }
.ah-faq-item .a { padding: 0 4px 20px; color: var(--ah-ink-2); font-size: 14.5px; line-height: 1.6; max-width: 64ch; }

/* contact form */
.ah-contact { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; max-width: 520px; margin: 24px auto 0; text-align: left; }
.ah-contact .full { grid-column: 1 / -1; }
.ah-contact label { font-size: 12px; font-weight: 700; color: var(--ah-ink-2); display: block; margin-bottom: 6px; }
.ah-contact input, .ah-contact textarea, .ah-contact select {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--ah-border);
  background: var(--ah-surface-2); font: 500 14px var(--ah-sans); color: var(--ah-ink);
}
.ah-contact textarea { resize: vertical; min-height: 84px; }
.ah-contact input:focus-visible, .ah-contact textarea:focus-visible, .ah-contact select:focus-visible { outline: 2px solid var(--ah-purple); outline-offset: 1px; }
.ah-contact-thanks { color: var(--ah-go); font-weight: 700; font-size: 15px; margin-top: 18px; }

@media (max-width: 960px) {
  .ah-proof { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ah-quotes, .ah-platform-grid, .ah-contact { grid-template-columns: minmax(0,1fr); }
  .ah-l-steps::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ah-sticky-cta { transition: none; }
}

/* ============================================================
   Solution detail page (Multi-Unit Expansion)
   ============================================================ */
.ah-mu-breadcrumb { font-size: 12.5px; color: var(--ah-ink-3); padding-top: 26px; }
.ah-mu-breadcrumb a { color: var(--ah-ink-3); }
.ah-mu-breadcrumb a:hover { color: var(--ah-purple-700); }

.ah-mu-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px; align-items: start; }
.ah-mu-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 40px; align-items: start; }
.ah-mu-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 40px; align-items: start; }
@media (max-width: 700px) { .ah-mu-grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.ah-mu-num { font-family: var(--ah-head); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; color: var(--ah-purple); text-transform: uppercase; }
.ah-mu-metrics { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin: 16px 0; }
.ah-mu-metric { background: var(--ah-surface-2); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-sm); padding: 12px 14px; }
.ah-mu-metric .v { font-family: var(--ah-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ah-mu-metric .l { font-size: 11px; color: var(--ah-ink-3); margin-top: 3px; }
.ah-do { display: flex; gap: 10px; font-size: 13px; color: var(--ah-ink-2); line-height: 1.5; background: var(--ah-purple-soft); border-radius: 10px; padding: 12px 14px; }
.ah-do .tag { flex: none; font-weight: 800; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-purple-700); padding-top: 1px; }
.ah-chips-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.ah-domain-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ah-border-2); font-size: 12px; color: var(--ah-ink-3); }
.ah-domain-card .gate { font-size: 12px; color: var(--ah-ink-2); margin: 4px 0 0; }
.ah-domain-card .gate b { color: var(--ah-purple-700); font-weight: 700; }

/* hero decision card */
.ah-mu-hero-card .gaterow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--ah-border-2); }
.ah-mu-hero-card .gaterow:first-of-type { border-top: 0; }
.ah-mu-hero-card .gaterow .q { font-size: 13px; font-weight: 600; }
.ah-mu-hero-card .gaterow .q small { display: block; color: var(--ah-ink-3); font-weight: 500; font-size: 11.5px; margin-top: 1px; }
.ah-mu-hero-card .gaterow .s { font-family: var(--ah-head); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.ah-mu-bind { background: var(--ah-purple-soft); border: 1px solid var(--ah-purple-line); border-radius: var(--ah-radius-sm); padding: 13px 15px; margin-top: 16px; font-size: 12.5px; color: var(--ah-ink-2); line-height: 1.5; }
.ah-mu-bind .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-purple-700); }

/* scorecard columns */
.ah-score-col h4 { font-size: 13px; }
.ah-score-col .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.ah-score-col .head .n { font-family: var(--ah-head); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.ah-score-col .sub { font-size: 12px; color: var(--ah-ink-3); margin-bottom: 14px; }

.ah-mu-tag-strong { }
@media (max-width: 900px) {
  .ah-mu-grid3, .ah-mu-grid2 { grid-template-columns: minmax(0,1fr); }
}

/* dense/refined pass for solution detail pages */
.ah-dense .ah-l-section { padding: 60px 0; }
.ah-dense .ah-l-section h2, .ah-dense .ah-l-center h2 { font-size: 27px !important; line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; max-width: 24ch; }
.ah-dense .ah-l-eyebrow { margin-bottom: 0; }
.ah-dense .ah-l-section > .ah-shell > p { font-size: 14.5px !important; max-width: 60ch; margin-top: 10px !important; }
.ah-dense .ah-mu-grid3, .ah-dense .ah-mu-grid2 { margin-top: 30px; }
.ah-dense .ah-l-hero { padding-top: 24px !important; }
.ah-dense .ah-l-hero h1 { font-size: 44px; }
.ah-dense .ah-l-hero .lead { font-size: 15.5px; margin-top: 16px; }
.ah-dense .ah-tiles .ah-tile-val { font-size: 22px; }
.ah-dense .ah-section-label { color: var(--ah-purple-700); }
