/* ==========================================================================
   AIZEN LABS — fix-design.css (2026-10-21)
   Design-weakness fixes from the desktop visual audit. Loads after
   site.css -> fix-bugs -> fix-consistency, before fix-icons.
   Rules: brand purple #560591, Space Grotesk + Inter, NO gradients,
   contrast >= 4.5:1 on all text, no new animations (reduced-motion safe),
   mobile-first, homepage/portfolio/tools-hub scopes only.
   ========================================================================== */

/* ---------- 13. Hero H1: modest tighten so the single sentence
   wraps to ~3 lines instead of ~8. Copy edit is in index.html. ---------- */
.p-hero.band-dark .hero-copy .display{font-size:clamp(2.8rem,5.6vw,4.6rem)}

/* ---------- 14. Hero mock cards (dark hero, light floating mocks)
   14a. BUG: .band-dark sets near-white inherited text color, but .mock
   cards are white — ledger/KPI text (#SV-1042 etc.) was ~1:1 contrast.
   Force dark ink on the light mocks (>= 15:1). ---------- */
.p-hero.band-dark .mock{color:var(--ink)}
.p-hero.band-dark .mock-bar{background:var(--tint);border-color:var(--line-soft)}
.p-hero.band-dark .mock-bar b{color:var(--muted)}            /* 7:1 on tint */
.p-hero.band-dark .kpi{background:var(--paper);border-color:var(--line-soft)}
.p-hero.band-dark .kpi b{color:var(--ink)}                   /* 16:1 */
.p-hero.band-dark .kpi i{color:var(--faint)}                /* 5.1:1 on white */
.p-hero.band-dark .chart{background:var(--paper);border-color:var(--line-soft)}
.p-hero.band-dark .chart h4{color:var(--muted)}
.p-hero.band-dark .mock-cap{color:var(--faint)}

/* 14b. Chart breathing room: the voucher card overlapped the sales chart
   and the bars were hairline-thin (6% flex gaps). Drop the voucher card
   lower so it clears the chart, widen bars, pad the chart. ---------- */
.p-hero.band-dark .stage .mock.m2{bottom:-10%;width:60%}
.p-hero.band-dark .stage .mock.m1 .mock-body{padding:1.25rem}
.p-hero.band-dark .chart{padding:1rem 1.2rem}
.p-hero.band-dark .bars{gap:.6rem}

/* ---------- 15. Hero meta row: tidy inline meta with consistent
   dividers instead of ragged wrapped spans. Same words, no HTML change.
   (.p-hero exists only on the homepage, so tool pages are untouched.) --- */
.p-hero .hero-meta{display:flex;flex-wrap:wrap;align-items:center;
  row-gap:.55rem;column-gap:0;font-size:.86rem}
.p-hero .hero-meta span{display:inline-flex;align-items:baseline;gap:.45rem;
  padding:.15rem 0 .15rem 1rem;border-left:1px solid var(--dark-line)}
.p-hero .hero-meta span:first-child{padding-left:0;border-left:0}

/* ---------- 16. Stat band: center the eyebrow (symmetric dashes, the
   same pattern as .section-head.center) and cut the empty band below
   the stats. ---------- */
.stat-band .eyebrow::after{content:"";width:2.75rem;height:2px;
  background:var(--lilac);flex:none}
.stat-band{padding:clamp(3rem,6vw,4.5rem) 0 clamp(2.25rem,4.5vw,3.25rem)}

/* ---------- 17. Portfolio hub: ERP card ----------
   Full-width card gets a two-column interior (copy + module list built
   from the card's own words — no invented claims), and the gap above
   the "Second focus" heading is tightened. ---------- */
#erp{padding-top:clamp(2.75rem,5vw,4rem)}
#bi{padding-bottom:clamp(2.75rem,5vw,4rem)}
.fp-wide{grid-column:1/-1}
#erp .fp-split{display:grid;gap:1.25rem 2.25rem}
@media(min-width:760px){
  #erp .fp-split{grid-template-columns:1.15fr .85fr;align-items:stretch}
}
#erp .fp-main{display:flex;flex-direction:column;gap:.5rem;min-width:0}
#erp .fp-modules{list-style:none;margin:0;padding:1.25rem 1.4rem;
  border:1px solid var(--line-soft);border-radius:10px;background:var(--tint);
  display:grid;gap:.6rem;align-content:center}
#erp .fp-modules li{display:flex;align-items:center;gap:.65rem;
  font-weight:600;font-size:.95rem;color:var(--ink)}
#erp .fp-modules li::before{content:"";width:.55rem;height:.55rem;flex:none;
  border-radius:2px;background:var(--purple)}

/* ---------- 18. Portfolio hub: condense the experimental section and
   pull the closing CTA closer. Words unchanged. ---------- */
#experimental{padding:clamp(2.25rem,4.5vw,3.25rem) 0}
#experimental .section-head{margin-bottom:0}
#experimental .eyebrow{margin-bottom:.7rem}
#experimental p.sub{margin-top:.9rem;font-size:1.05rem;max-width:44rem}
#experimental + .cta-final{padding-top:clamp(2.75rem,5vw,4rem)}

/* ---------- 19. Tools hub: category intros capped at ~65ch.
   Higher specificity than the page's inline <style> so this wins
   regardless of where the fix stylesheets are wired. ---------- */
main .tool-group > p.gsub{max-width:65ch}

/* ---------- 20. Capabilities showcase card: visually distinct from
   project cards — dashed outline, tinted ground, static (no lift),
   badge reads as a label, not a tag. No invented clients or stats. --- */
.fp.capabilities{background:var(--lav-soft);border:1.5px dashed var(--purple)}
.fp.capabilities:hover{transform:none;border-color:var(--purple);
  box-shadow:0 8px 22px rgba(86,5,145,.08)}
.fp.capabilities .badge{background:#fff;border:1px solid #d9c6ec;
  color:var(--purple-ink);letter-spacing:.08em}
.fp.capabilities .fp-tech{color:var(--purple-ink)}
