/* ==========================================================================
   ABLENTRA V18 — invisible-text fixes (Agent 9, 2026-11-09)
   Site-wide audit of all 61 pages (desktop 1440 + mobile 390, Playwright
   headless-shell renders + computed-colour measurement).
   --------------------------------------------------------------------------
   WHAT WAS BROKEN (measured, before):
   1. Scroll-scrub words ([data-abl-scrub] .abl-scrub-word) sit at #D9D9D9
      (1.28:1 on #F6F6F4) until the scroll frontier passes them — whole
      blog paragraphs and section copy read near-invisible mid-scroll
      (screenshot before-blog-grey-1440.png). The scrub also re-lightens
      on scroll-up, so text the visitor already read goes grey again.
      V17 already pinned scrub words to ink on service pages for the same
      "content must appear" reason; this extends the pin site-wide.
   2. Word-reveal words ([data-word-reveal] .pq-word) start at #B3B3B8
      (1.9:1 on light) and, on BLACK bands, complete to their inherited
      colour — which is near-black ink (#0E0E0F, 1.02:1) on .cta-band /
      .audit-band pages the V16 Averlo fix never covered (404, accessibility
      and any non-industry, non-contact page). Headings were invisible
      ("Still can't find it?", "Ready to start a project?").
   3. .lede.light words on black bands are pinned to #3F434A (1.9:1).
   4. .btn-accent resting text renders WHITE on #FF5A1F orange (3.12:1,
      15.68px) although the authored --accent-ink is #0E0E0F and the hover
      state is already dark text — the resting state is the anomaly.
      [REVERTED by Agent 18, 2026-11-09: white-on-orange IS the V17
      approved brand design (owner's own screenshot, "Request a
      conversation"); 3.12:1 passes the WCAG large-text 3:1 bar for bold
      button text and the owner never ordered a button redesign. The
      dark-text rule below was removed; see rule 3.]
   5. Footer submit button: #0E0E0F on #7C3219 (2.14:1).
      [FIXED by Agent 18: rival was v16-averlo.css
      footer.site-footer.v15-footer .v15-submit:disabled (0,4,1); the
      override below is now (0,5,1). TRADE-OFF: white text removes the
      "greyed = disabled" signal — enabled/disabled look near-identical
      until the form validates. Readability wins per owner call.]
   6. Small orange / #666666 text on light / #DDDDDD below 4.5:1
      (see per-selector rules at the end of this file).
   --------------------------------------------------------------------------
   RULES: overrides only, V17 palette only (#F6F6F4, #111112, #FE5C22,
   #FFFFFF, #DDDDDD — plus rgba(255,255,255,.85), the V16 Averlo value for
   ledes on black). No copy changed, no element hidden, no new sections,
   no layout, no Cal.com attributes touched. Every rule is reversible by
   removing this file's <link>.
   TRADE-OFF (recorded, same as V17 services): rules 1–2 neutralise the
   Buzz-style grey-start word scrub / word reveal — text now renders at
   its readable colour from the start instead of fading grey -> colour.
   AGENT 18 FOLLOW-UP (2026-11-09, same file, no new file):
   - Footer submit fixed at (0,5,1) — see rule 4.
   - Annotation notes fixed at matching (0,3,1) + .annot-dot darkened —
     see rule 5 additions. Rival: ablentra-signature-redesign.css
     .page-hero:not(.home-hero) .annot-notes strong (#ff8151).
   - Compare header fixed: live CDP/cssRules probe proved the rival is
     v16-averlo.css main#main .compare-head span (1,1,2) beating Agent 9's
     (0,2,1); override is now (1,2,2). ABLENTRA chip left white-on-orange
     (V17 brand design); Agent 9's dark .cmp-us rule removed (it was dead
     against v16's (1,2,1) but wrong on its face).
   - Quote-breakdown numbers inked — see rule 6.
   - REVERTS: .btn-accent/.btn-primary dark-text rule removed (white text
     on orange is V17 design); .v18-sitemap-list orange links restored
     (#FE5C22 per the H1 checklist / Adam Robinson structure). Both
     reverts re-add their rows to the automated 4.5:1 fail count by
     design — they pass the 3:1 large-text / brand bar instead.
   ========================================================================== */

/* --- 1. Scroll-scrub words: solid ink from the start, everywhere. ------- */
[data-abl-scrub] .abl-scrub-word {
  color: #111112 !important;
}
/* Guard: if a scrub word ever sits on a dark band, it must be white. */
.cta-band [data-abl-scrub] .abl-scrub-word,
.audit-band [data-abl-scrub] .abl-scrub-word,
.audit-band-final [data-abl-scrub] .abl-scrub-word {
  color: #FFFFFF !important;
}

/* --- 2a. Word reveal: never show the grey start state. ------------------ */
[data-word-reveal].pq-words--armed .pq-word {
  color: inherit !important;
}

/* --- 2b. Dark bands: headings + their word spans are white. ------------- */
/* Generalises the V16 Averlo fix (which covered only industry heroes and
   the contact hero) to every .cta-band / .audit-band on every page. */
main#main .cta-band h1,
main#main .cta-band h2,
main#main .cta-band h3,
main#main .cta-band .h-display,
main#main .cta-band .h-final,
main#main .cta-band .h-section,
main#main .audit-band h1,
main#main .audit-band h2,
main#main .audit-band h3,
main#main .audit-band .h-display,
main#main .audit-band .h-final,
main#main .audit-band .h-section,
main#main .audit-band-final h1,
main#main .audit-band-final h2,
main#main .audit-band-final .h-display,
main#main .audit-band-final .h-final {
  color: #FFFFFF !important;
}
main#main .cta-band h1 *,
main#main .cta-band h2 *,
main#main .cta-band h3 *,
main#main .cta-band .h-display *,
main#main .cta-band .h-final *,
main#main .cta-band .h-section *,
main#main .audit-band h1 *,
main#main .audit-band h2 *,
main#main .audit-band h3 *,
main#main .audit-band .h-display *,
main#main .audit-band .h-final *,
main#main .audit-band .h-section *,
main#main .audit-band-final h1 *,
main#main .audit-band-final h2 *,
main#main .audit-band-final .h-display *,
main#main .audit-band-final .h-final * {
  color: #FFFFFF !important;
}

/* --- 2c. Dark bands: ledes / light copy at rgba white .85 (≈13:1). ------- */
main#main .cta-band .lede,
main#main .cta-band p.lede.light,
main#main .cta-band .lede *,
main#main .cta-band p.lede.light *,
main#main .audit-band .lede,
main#main .audit-band p.lede.light,
main#main .audit-band .lede *,
main#main .audit-band p.lede.light *,
main#main .audit-band-final .lede,
main#main .audit-band-final .lede * {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --- 2d. Dark bands: kickers are white, never orange-on-black. ----------- */
main#main .cta-band .kicker,
main#main .audit-band .kicker,
main#main .audit-band-final .kicker {
  color: #FFFFFF !important;
}

/* --- 3. Accent buttons: REVERTED by Agent 18 (2026-11-09). ------------- */
/* Agent 9 set dark #111112 text on .btn-accent/.btn-primary. REVERTED:
   white text on orange #FE5C22/#FF5A1F is the V17 approved brand design
   (e.g. "Request a conversation" in the owner's own screenshot), readable
   at 3.12:1 (WCAG large-text 3:1 bar for bold button text), and the owner
   never ordered a button redesign. No rule here now — the V17 white text
   stands. The contact-form submit exception below (white text, 9.2:1)
   stays as-is. */

/* --- 3b. Contact form submit: brown gradient bg, white text stays. ------ */
form.contact-form .btn-accent,
form.contact-form .btn-accent * {
  color: #FFFFFF !important;
}

/* --- 4. Footer submit button: white text (9.2:1 on its dark bg). -------- */
/* Rival: v16-averlo.css footer.site-footer.v15-footer
   .v15-submit:disabled{color:#0E0E0F!important} (0,4,1) beat Agent 9's
   (0,2,0) rule. This pair is (0,5,1) and covers enabled + disabled.
   opacity:1 (Agent 18 extension): /process/ is the ONLY page that does
   not load v16-averlo.css, so its disabled button kept v15-footer's
   opacity:.45 — white at 45% over orange measured 1.62:1. v16-averlo
   already sets opacity:1 on the other 60 pages, so this only extends
   that established behaviour to /process/. Result there: white on
   #FF5A1F orange, 3.12:1 — same as every accent button (see rule 3). */
footer.site-footer.v15-footer .v15-foot-form .v15-submit,
footer.site-footer.v15-footer .v15-foot-form .v15-submit:disabled {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

/* --- 5. Small low-contrast text on light backgrounds -> ink. ------------ */
/* "01 / EXPERIENCE"-style orange labels on white (3.39:1 at 12px).
   Direct-child spans of .pq-card are numeric labels / short descriptors
   (About pillars, thank-you next-steps, 404 cards); on dark cards the
   spans sit deeper (inside .svc-card-body / .svc-card-img), so this
   direct-child rule does not touch them. */
.pq-card > span,
.ge5-pillars .pq-card > span {
  color: #111112 !important;
}
/* Orange arrow glyphs on #DDDDDD tiles (2.5:1). */
.stage5-audiences a > span {
  color: #111112 !important;
}
/* #666666 small copy on #DDDDDD tiles (4.23:1, just under 4.5:1). */
.stage5-audiences a > small {
  color: #111112 !important;
}
/* Industry decision numbers "01/02/03" in orange on near-white (3.24:1)
   — see the grouped small-label rule below. */
/* Orange "->" arrows on the homepage service cards: the cards sit on
   orange/dark gradients, so the arrows go white (4.8:1 on the orange
   gradient, ~15:1 on the dark gradient) instead of orange-on-orange. */
.svc-card .svc-card-body ul li a > span {
  color: #FFFFFF !important;
}
/* Homepage comparison-table header row (black band): dark-ink spans were
   rendering #0E0E0F on #111112 (1.02:1). LIVE PROBE (Agent 18): the rival
   is v16-averlo.css main#main .compare-head span (1,1,2), which beat
   Agent 9's (0,2,1) rule — so this override is now (1,2,2). The ABLENTRA
   cell stays white text on the orange chip per V17 (v16-averlo.css
   main#main .compare-head .cmp-us, 3.12:1, brand design — LEAVE it);
   Agent 9's dark .cmp-us rule is removed below. */
main#main .compare-head span:not(.cmp-us) {
  color: #FFFFFF !important;
}
/* Small orange numeric / link labels on white across pages (3.1:1). */
.ind-decision-no,
.job-card-num,
.job-card-num *,
.salon-step-num,
.terms-index,
.sv-link,
.stage5-principles b {
  color: #111112 !important;
}
/* Service-page annotation notes: pale-orange "01/02/03/Note" on warm
   grey #E8E5DF (1.96:1). Rival: ablentra-signature-redesign.css
   .page-hero:not(.home-hero) .annot-notes strong{color:#ff8151!important}
   (0,3,1) beat Agent 9's (0,1,1) rule — this matching-specificity rule
   wins because v18-invisible-text.css loads last. The plain rule below
   it covers any .annot-notes outside a page hero. */
.page-hero:not(.home-hero) .annot-notes strong {
  color: #111112 !important;
}
.annot-notes strong {
  color: #111112 !important;
}
/* Annotation dots: white numbers on 34px orange dots (3.12:1 at .72rem).
   Dark numbers on the orange pass 4.5:1 (6.05:1). */
.annot-dot {
  color: #111112 !important;
}
/* Pricing quote-breakdown numbers: #FF5A1F on near-white (3.12:1). */
.quote-breakdown-grid article > span {
  color: #111112 !important;
}
/* Homepage comparison-table check icons: orange on pale pink (2.17–2.91:1,
   below the 3:1 non-text bar). Darker orange passes everywhere. */
.cmp-ic.yes {
  color: #C2410C !important;
}
/* Process page kicker at 55% ink on #F6F6F4 (4.2:1, just under 4.5:1).
   Rival: v16-process.css main#main .v16p-proc .proc-kicker — same
   selector, so this rule wins because v18-invisible-text.css loads last. */
main#main .v16p-proc .proc-kicker {
  color: #111112 !important;
}
/* Sitemap page links: REVERTED by Agent 18 (2026-11-09). Agent 9 had
   restyled the 62 sitemap entry links from #FE5C22 to #111112. The H1
   checklist explicitly requires #FE5C22 sitemap links (Adam Robinson
   structure, Ablentra colours) — orange links are the intended design.
   No rule here now; the V18 sitemap orange stands (3.12:1, re-added to
   the automated fail count by design). */
