/* Shared usability fixes. Lime remains the primary action color. */
:root{--accent-purple:#42234c;--purple-muted:#ead9ef;--purple-border:#93659e}
html{scroll-padding-top:100px;scroll-padding-bottom:24px}
main .fe-page{display:block}
main section,.rv,.stk,.stk .sicon,[data-reveal]{opacity:1;visibility:visible}
.rv,.stk,.stk .sicon{opacity:1!important;transform:none!important}

/* Explicit foregrounds beat the legacy section-heading color rules. */
section.corp-hero h1,section.corp-hero .corp-program h2{color:#fff!important}
.corp-hero h1 em{color:#c6f25c}
.corp-hero .hq-split>div,.corp-page .hq-split>*{min-width:0}
.corp-hero p{margin-top:24px}
.corp-hero .btn,.corp-close .btn{max-width:100%;white-space:normal;text-align:center}
.corp-program h2{max-width:none}
.corp-program .corp-label{display:inline-block;background:var(--accent-purple);color:#f7eafa;padding:6px 10px;border-radius:5px}
.corp-program li>span{min-width:0}
.corp-scope summary{align-items:baseline;line-height:1.4}
.corp-scope summary::after{flex:none}
.corp-scope summary::-webkit-details-marker{display:none}
.corp-scope details[open] summary{margin-bottom:14px}
.corp-page .hq-section h3{margin-bottom:12px}
.corp-page .hq-kicker{line-height:1.7}
.corp-page .hq-link{line-height:1.6}

/* AI service cards share the brochure's plum, with accessible light text. */
.story-service-grid a[href="/ai-visibility/"],.tr2.ai-service,.finder-result.ai-service,.corp-service.ai-service{
  background:var(--accent-purple)!important;border-color:var(--purple-border)!important;color:#fff;
}
.story-service-grid a[href="/ai-visibility/"]:hover{background:#512d5d!important;border-color:#d7b5e2!important}
.story-service-grid a[href="/ai-visibility/"] h3,.corp-page .corp-service.ai-service h3,.tr2.ai-service .k{color:#fff!important}
.story-service-grid a[href="/ai-visibility/"] p,.story-service-grid a[href="/ai-visibility/"] .service-cap,
.story-service-grid a[href="/ai-visibility/"]>span,.tr2.ai-service .per,.tr2.ai-service p,
.corp-page .corp-service.ai-service p,.finder-result.ai-service>span,.finder-result.ai-service #finder-copy,.finder-result.ai-service small{color:var(--purple-muted)!important}
.story-service-grid a[href="/ai-visibility/"] strong,.tr2.ai-service .amt{color:#c6f25c!important}
.corp-service.ai-service{padding:25px 24px;border:1px solid var(--purple-border);border-radius:8px}
.corp-service.ai-service .corp-fee,.corp-service.ai-service a{color:#f2dff7}
.corp-service.ai-service a:hover{color:#fff}
.corp-service.ai-service a:focus-visible{outline-color:#c6f25c}

/* The shared service directory carries the same treatment on every route. */
.qa-creator-nav .qa-creator-links .services-options a[href="/#service-ai-visibility"]{background:var(--accent-purple)!important;border-color:var(--purple-border)!important}
.qa-creator-nav .qa-creator-links .services-options a[href="/#service-ai-visibility"]:hover,
.qa-creator-nav .qa-creator-links .services-options a[href="/#service-ai-visibility"][aria-current="page"]{background:#512d5d!important;border-color:#d7b5e2!important}
.services-options a[href="/#service-ai-visibility"] b,.services-options a[href="/#service-ai-visibility"] strong{color:#fff}
.services-options a[href="/#service-ai-visibility"]>span,.services-options a[href="/#service-ai-visibility"] strong small{color:var(--purple-muted)}
.services-options a[href="/#service-ai-visibility"] .service-symbol{background:#ffffff12;color:#f3dffa;border-color:#b68ac2}
.ai-chip,.calc .cn2.ai-chip{display:inline-block;background:var(--accent-purple);color:#fff!important;border-radius:5px;padding:4px 8px;font-size:.9em;line-height:1.5}
.invoice-row .ai-chip{align-self:center}
.fe-rel[href="/ai-visibility/"]{padding:18px;background:var(--accent-purple);border-color:var(--purple-border);border-radius:6px}
.fe-rel[href="/ai-visibility/"] b{color:#fff!important}
.fe-rel[href="/ai-visibility/"] span{color:var(--purple-muted)!important}

/* Two small editorial accents; the page backgrounds and primary CTAs stay lime. */
.work-tabs #work-tab-3{background:var(--accent-purple);color:#fff;border-color:var(--purple-border)}
.work-tabs #work-tab-3>span{color:var(--purple-muted)}
.work-tabs #work-tab-3[aria-selected="true"]{border-left:3px solid #c6f25c}
#work-view-3 .sheet-top{color:var(--accent-purple);border-bottom-color:#b998c4}
#work-view-3 .sample-question{background:var(--accent-purple)}
#work-view-3 .sample-question>span{color:var(--purple-muted)}
#work-view-3 .sample-question p{color:#fff}
.ai-page .story-price{background:var(--accent-purple);border:1px solid var(--purple-border);border-radius:8px;padding:28px}
.ai-page .story-price .story-price-label,.ai-page .story-price p.story-price-unit,.ai-page .story-price p.story-price-extra{color:var(--purple-muted)}
.ai-page .story-price li{color:#fff}
.ai-page .story-price .story-term{color:var(--purple-muted);border-color:var(--purple-border)}
.ai-page .location-estimator{border-color:var(--purple-border)}
.ai-page .location-estimator label,.ai-page .location-estimator p,.ai-page .location-estimator small{color:var(--purple-muted)}
.ai-page .location-estimator button{background:#5b3566;border-color:#b68ac2}
.ai-page .story-hero .eyebrow{display:inline-flex;background:var(--accent-purple);color:#f7eafa!important;padding:8px 12px;border-radius:5px}
.ai-page .story-hero .eyebrow:before{background:#d7b5e2}

/* An in-flow action strip owns its space, so it cannot cover any content. */
aside.fe-floating{
  position:static;inset:auto;transform:none;z-index:auto;
  width:100%;max-width:none;margin:0;padding:24px max(24px,calc((100% - 1160px)/2));
  border:0;border-top:1px solid #526044;border-radius:0;box-shadow:none;backdrop-filter:none;
  background:#151b11;gap:16px;flex-wrap:wrap;
}
aside.fe-floating .fe-floating-copy{display:block;flex:1 1 240px}
aside.fe-floating a{flex:0 0 auto;min-height:46px;margin:0}
aside.fe-floating .fe-floating-copy span{font-size:14px;line-height:1.5}
footer.fe-footer-v2{padding-bottom:36px!important}

@media(max-width:767px){
  html{scroll-padding-top:86px}
  aside.fe-floating{padding:24px 22px;gap:12px}
  aside.fe-floating .fe-floating-copy{flex-basis:100%;margin-bottom:4px}
  aside.fe-floating a{flex:1 1 120px;white-space:normal}
}
@media(max-width:600px){
  .corp-hero .btn{display:block;width:100%;margin-right:0}
  .corp-hero .hq-link{margin-top:20px}
  .corp-service.ai-service{margin-bottom:16px;padding:24px 20px}
  .corp-close .btn{display:block;width:100%}
  .corp-close .hq-link{margin-top:20px}
  .ai-page .story-price{padding:22px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  main section,.rv,.stk,[data-reveal]{animation:none!important;transition:none!important;translate:none!important}
}

/* A menu selection lands on its service card, clear of the sticky header. */
.story-service-grid>a:target{outline:2px solid #c6f25c;outline-offset:-2px}
