/* Inner pages in the luxe homepage theme (2026-11-19): Free Tools, About, Case Studies, Blog. Loaded after home-luxe.css
   (luxe_theme.apply, via build-tool-pages.py and build-luxe-pages.py). home-luxe.css already sets fonts, colours, header,
   footer and buttons; this file brings the shared light hero, cards, FAQ and closing panel to the same look:
   big tight Bricolage headline with a moss second line, pill buttons, white 28px cards on sage paper, one forest panel. */

/* ---------- neutrals: the shared pages' cool greys re-toned to the luxe sage (paper / mist / hairline) ---------- */
body.lx{--slate-50:#EEF1EA;--slate-100:#E8ECE3;--slate-200:#DCE2D6;
  /* cards painted with --white sit on paper: true white, like the homepage's cards (home-luxe maps it to paper) */
  --white:#FFFFFF;
  /* home-luxe.css points --ink-800 at body-text grey, but these pages also paint dark surfaces with it (dark cards,
     active chips and tabs, tab indicators), which turned them slate #3D4650. Back to near-black ink here. */
  --ink-800:#1C242B}

/* audit 2026-11-19: muted grey #8A96A3 was 2.6-3.0:1 on paper; this sage grey is >=4.8:1 on every light surface.
   Scoped to <main>: the footer uses the same variable on its forest card, where the lighter grey is the right one. */
body.lx main{--slate-400:#5E6963}
/* no lone word on a paragraph's last line */
body.lx main :is(p,li,.lead){text-wrap:pretty}

/* the brand's own selection and caret, not the browser's blue */
body.lx ::selection{background:rgba(116,209,66,.32);color:var(--lx-ink)}
body.lx :is(input,textarea){caret-color:var(--lx-moss)}

/* ---------- dark cards inside light sections ----------
   home-luxe.css paints every main heading ink; on these dark surfaces that made headings 1.1-1.8:1. White headings,
   bright-green links and an outlined ghost button, as on the homepage's dark bands. */
body.lx main :is(.aud-card+.aud-card,.facts-card,.dark-tile,.cf-band,.cf-result,.kcard,.start-here,.pcard-cta,.wg-dark,.reach,.ax,.proof-case,.sx,.px,.fc-buy,.ep-intl,.bd-ads,.bp-proof,.sh2-dark) :is(h2,h3,.fc-title,.h-sm,.bt-h){color:#fff}
body.lx main :is(.aud-card+.aud-card,.facts-card,.dark-tile,.cf-band,.cf-result,.kcard,.start-here,.pcard-cta,.wg-dark,.reach,.ax,.proof-case,.sx,.px,.fc-buy,.ep-intl,.bd-ads,.bp-proof,.sh2-dark) .link{color:var(--lx-green)}
body.lx main :is(.aud-card+.aud-card,.facts-card,.dark-tile,.cf-band,.cf-result,.kcard,.start-here,.pcard-cta,.wg-dark,.reach,.ax,.proof-case,.sx,.px,.fc-buy,.ep-intl,.bd-ads,.bp-proof,.sh2-dark) small{color:rgba(255,255,255,.66)}
body.lx main :is(.facts-card,.dark-tile,.cf-band,.cf-result,.kcard,.start-here,.pcard-cta,.wg-dark,.reach,.ax,.proof-case,.sx,.px,.fc-buy,.ep-intl,.bd-ads,.bp-proof,.sh2-dark) .btn-ghost{background:transparent;border-color:rgba(255,255,255,.28);color:#fff}
body.lx main :is(.facts-card,.dark-tile,.cf-band,.cf-result,.kcard,.start-here,.pcard-cta,.wg-dark,.reach,.ax,.proof-case,.sx,.px,.fc-buy,.ep-intl,.bd-ads,.bp-proof,.sh2-dark) .btn-ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.45)}

/* the case columns are <section>s, so home-luxe's 84-140px section padding hit them: back to their card padding */
body.lx main section.st-col{padding:28px}

/* the facts card title is a card heading, not a section heading */
body.lx main .start-here .bt-h{font-size:clamp(26px,2.3vw,34px);line-height:1.05;letter-spacing:-.025em;max-width:none}
body.lx main .facts-card .fc-title{font-size:clamp(24px,2vw,30px);line-height:1.05;letter-spacing:-.025em}

/* before/after bar labels were 10px: up to the 11.5px floor for functional text */
body.lx .bars .bar small{font-size:11.5px}

/* sticky filter bars (Case Studies, Blog): the header's frosted paper instead of white */
body.lx :is(.cs-index,.cl-filter,.filterbar-wrap,.otp){background:rgba(245,246,241,.86);border-bottom-color:var(--lx-line)}

/* dark bands (founder, KDP results): one inset rounded panel, like the homepage's founder band */
body.lx main section.dark:not(.final){border-radius:var(--lx-r-lg);margin-inline:clamp(8px,1.4vw,20px);background:var(--lx-ink)}

/* section rhythm (audit 2026-11-19): home-luxe's 84-140px section padding outranks each section's own spacing here,
   which left ~280px gaps between sections; inner pages breathe a step less */
body.lx main section{padding-block:clamp(64px,7vw,104px)}

/* "Prefer to talk first?" (Free Audit): headline above the three contact tiles, so an email address never breaks */
body.lx main .reach-sec{padding-block:0 clamp(64px,7vw,104px)}
body.lx main .reach{grid-template-columns:minmax(0,1fr);gap:24px;background:var(--lx-ink);border-radius:var(--lx-r-lg)}
body.lx main .reach h2{font-size:clamp(30px,3vw,42px);line-height:1.05;letter-spacing:-.03em;max-width:none;color:#fff}
body.lx main .reach-opts{grid-template-columns:repeat(3,minmax(0,1fr))}
body.lx main .ccard2 small{white-space:nowrap}

/* ---------- service pages (2026-11-20, Amazon PPC first) ---------- */
/* full-bleed dark bands (results strip, how-it-works) become inset rounded panels, like the homepage's dark bands */
body.lx main :is(section.pstrip-wrap,section.process-sec,section.sh2-dark){border-radius:var(--lx-r-lg);margin-inline:clamp(8px,1.4vw,20px)}
body.lx main section.sh2-light{background:var(--lx-paper)}
body.lx main section.process-sec{background:linear-gradient(140deg,var(--lx-forest-2) 0%,var(--lx-forest) 70%)}
/* their headings: the word-by-word reveal spans inherit ink, so set them white */
body.lx main :is(.sx,.px,.proof-case,.ax) :is(h2,h3) :is(span,.w){color:inherit}
body.lx main :is(.sx,.px) :is(p,.lead,.sx-note){color:rgba(255,255,255,.7)}
/* results strip heading: was a small uppercase label, which the luxe h2 size blew up; now a sentence-case heading */
body.lx main .sx h2.sx-h{text-transform:none;font-size:clamp(28px,2.8vw,40px);line-height:1.05;letter-spacing:-.03em;margin-bottom:clamp(24px,3vw,36px);max-width:none}

/* section bands stay the homepage's sage paper: --white is true white for cards, so bands painted with it turned stark */
body.lx main :is(section.vision,section.tools){background:var(--lx-paper)}
body.lx main :is(section.xp-sec,section.csd-kpi-sec){background:linear-gradient(#EEF6E8 0,var(--lx-paper) 460px)}

/* hero with a wide art piece (KDP book fan): the bigger luxe headline ran into it; keep the copy in its column */
body.lx .ha.ph .ha-grid:has(.shelf) .ha-title{font-size:clamp(40px,4.3vw,64px)}
body.lx .ha.ph .ph-visual:has(.shelf){overflow:visible;margin-left:clamp(0px,2vw,32px)}
/* definition paragraphs: a comfortable reading measure */
body.lx main :is(p.def,p.calc-intro){max-width:72ch}

/* two inset panels back to back: a gap, so each reads as its own panel */
body.lx main :is(section.dark,section.process-sec,section.pstrip-wrap)+:is(section.dark,section.process-sec,section.pstrip-wrap){margin-top:clamp(16px,2vw,24px)}

/* proof wall: its 1200px column started 16px left of every other section; match the page column (wrap + gutter) */
body.lx main section.pw>*{max-width:calc(var(--wrap,1216px) - 48px)}

/* KDP Sales Recovery: its "diagnose" band reuses the homepage's dark .why panel, with tables and lists inside */
body.lx main .kp-why :is(.kp-why-lead,dt,th){color:rgba(255,255,255,.66)}
body.lx main .kp-why :is(dd,td,tbody th){color:rgba(255,255,255,.9)}
body.lx main .kp-why :is(td,th){border-color:rgba(255,255,255,.12)}
body.lx main .kp-why .circled{color:var(--lx-green)}
/* its audit form is a white card inside the dark closing panel: dark text there */
body.lx main section.final .ha-card.kp-form{--ha-display:var(--display);--ha-body:var(--body);font-family:var(--body)}
body.lx main section.final .ha-card.kp-form h3{color:var(--lx-ink)}
body.lx main section.final .ha-card.kp-form :is(p.ha-card-sub,p.ha-foot){color:var(--lx-soft)}
body.lx main .kp-form .ha-btn-primary{font-family:var(--body);border-radius:999px}
/* white bands to paper */
body.lx main :is(section.proof,section.road,.kp-notice,.rl){background:var(--lx-paper)}
body.lx main section.be-which{background:linear-gradient(#EEF6E8 0,var(--lx-paper) 460px)}

/* diagram labels (TikTok pages) set their own Instrument Sans: the site's text face instead */
body.lx main svg text{font-family:var(--body)!important}
/* TikTok Shop Ads phone mock: smallest captions up to 11.5px */
body.lx main :is(.tt-cap,.tt-anchor) small{font-size:11.5px}

/* legal pages: their own head sets Outfit on the hero and article; the luxe faces there too */
body.lx :is(.lg-hero,.lg-main,.lg-wrap,.ha.ph){--ha-display:var(--display);--ha-body:var(--body);--display:"Bricolage Grotesque","Bricolage Fallback",system-ui,sans-serif;--body:"Poppins",system-ui,sans-serif}
body.lx main legend small{font-size:12px}

/* legal pages: document headings at a reading size, not the luxe section-headline size */
body.lx main .lg-doc h2{font-size:clamp(26px,2.4vw,34px);line-height:1.12;letter-spacing:-.025em;max-width:none}
body.lx main .lg-doc h3{font-size:clamp(18px,1.4vw,21px);line-height:1.25}
body.lx main :is(.lg-note,.lg-glance) :is(h2,h3){font-size:clamp(20px,1.7vw,24px);line-height:1.2;letter-spacing:-.015em;max-width:none}

body.lx main .lg-doc section{padding-block:40px 0}
/* skip link: off screen until focused (legal pages lost the inline rule other pages carry) */
body.lx .skip{position:absolute;left:16px;top:-80px;z-index:100;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:12px;background:var(--lx-ink);color:#fff;font:600 15px/1 var(--body)}
body.lx .skip:focus{top:12px}

/* micro-labels up from 11px to the 12px floor (audit 2026-11-20) */
body.lx main :is(.con-kpis small,.pw-chrome span,.pw-tag,.con-tag,.br-conf small,.be-ms-ch,.be-note-tag,.be-out-k,.be-dl dt){font-size:12px}
/* Book Editing manuscript mock: struck-out words stay legible (was 2.7:1 on the pink edit) */
body.lx main .be-ms-p del{color:#8C3A3A}

/* ...except the white step card inside "How it works" */
body.lx main section.process-sec.px .px-copy h3{color:var(--lx-ink)}
body.lx main section.process-sec.px .px-copy p{color:var(--lx-soft)}
body.lx main section.process-sec.px .px-copy .px-of{color:var(--lx-moss)}
/* "Our other services": 6 cards read as two rows of three, not five plus one */
body.lx main .others{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ---------- hero ---------- */
body.lx .ha.ph{background:var(--lx-paper);padding-bottom:clamp(40px,5vw,72px)}
body.lx .ha.ph .ha-title{font-family:var(--display);font-optical-sizing:auto;font-size:clamp(42px,4.9vw,72px);line-height:.96;
  letter-spacing:-.04em;font-weight:700;color:var(--lx-ink);text-wrap:balance}
body.lx .ha.ph .ha-title>span{color:var(--lx-ink);font-weight:700}
body.lx .ha.ph .ha-title .ha-accent{color:var(--lx-moss);font-weight:700;font-style:normal}
body.lx .ha.ph .ha-lead,body.lx .ha.ph .ha-copy>p{font:400 17px/1.7 var(--body);color:var(--lx-soft);max-width:48ch}
body.lx .ha.ph .ha-checks li{font:400 15px/1.6 var(--body);color:var(--lx-text)}
body.lx .ha.ph .ha-checks svg{color:var(--lx-moss)}

/* hero buttons: the homepage's pill shape, green primary with the moving arrow, glass ghost */
body.lx .ha.ph .ha-btn{height:54px;padding:0 24px 0 26px;border-radius:999px;font:500 15px/1 var(--body);letter-spacing:0;
  transition:background-color .25s var(--lx-ease),box-shadow .25s var(--lx-ease),transform .15s var(--lx-ease)}
body.lx .ha.ph .ha-btn-primary{background:var(--lx-green);color:var(--lx-ink);border-color:var(--lx-green);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 24px -14px rgba(46,107,22,.7)}
body.lx .ha.ph .ha-btn-primary:hover{background:#80DA4F;border-color:#80DA4F}
body.lx .ha.ph .ha-btn-primary svg{transition:transform .25s var(--lx-ease)}
body.lx .ha.ph .ha-btn-primary:hover svg{transform:translateX(3px)}
body.lx .ha.ph .ha-btn-ghost{background:rgba(255,255,255,.6);border:1px solid var(--lx-line);color:var(--lx-ink)}
body.lx .ha.ph .ha-btn-ghost:hover{background:#fff;border-color:rgba(20,25,30,.18)}
body.lx .ha.ph .ha-btn:active{transform:scale(.98)}

/* hero summary card: a white 28px card like the homepage's */
body.lx .ha.ph .ha-card{border-radius:var(--lx-r-lg);border:1px solid var(--lx-line);background:#fff;
  box-shadow:0 1px 0 rgba(20,25,30,.03),0 30px 60px -40px rgba(15,42,28,.35)}

/* ---------- tool cards ---------- */
body.lx .th-sec{padding-block:clamp(48px,6vw,88px) clamp(84px,10vw,140px)}
body.lx .th-grid{gap:20px}
body.lx .th-card{border-radius:var(--lx-r-lg);border:1px solid var(--lx-line);background:#fff;color:var(--lx-text);
  box-shadow:0 1px 0 rgba(20,25,30,.03),0 22px 44px -36px rgba(15,42,28,.4);
  transition:transform .35s var(--lx-ease),box-shadow .35s var(--lx-ease),border-color .35s var(--lx-ease)}
body.lx .th-card:hover{border-color:rgba(46,107,22,.35);transform:translateY(-3px);box-shadow:0 1px 0 rgba(20,25,30,.03),0 30px 56px -34px rgba(15,42,28,.45)}
body.lx .th-card:focus-visible{outline:3px solid var(--lx-moss);outline-offset:3px}
body.lx .th-shot{background:var(--lx-mist);border-bottom:1px solid var(--lx-line)}
body.lx .th-card h3{font:600 21px/1.18 var(--display);letter-spacing:-.02em;color:var(--lx-ink)}
body.lx .th-lane{font:500 12.5px/1.2 var(--body);color:var(--lx-soft)}
body.lx .th-card p{font:400 15px/1.6 var(--body);color:var(--lx-soft)}
body.lx .th-outs li{padding:5px 11px;border-radius:999px;background:var(--lx-paper);border:1px solid var(--lx-line);font:500 12px/1.3 var(--body);color:var(--lx-text)}
/* card footer: the homepage card CTA, a label with the arrow in a circle */
body.lx .th-foot{padding:12px 12px 12px 22px;border-top:1px solid var(--lx-line)}
body.lx .th-free{font:400 13px/1 var(--body);color:var(--lx-soft)}
body.lx .th-free svg{color:var(--lx-moss)}
body.lx .th-go{gap:12px;font:500 14.5px/1 var(--body);color:var(--lx-ink)}
body.lx .th-go svg{box-sizing:content-box;width:16px;height:16px;padding:12px;border-radius:50%;background:var(--lx-paper);
  border:1px solid var(--lx-line);color:var(--lx-ink);transition:background-color .3s var(--lx-ease),color .3s var(--lx-ease),transform .3s var(--lx-ease)}
body.lx .th-card:hover .th-go svg{background:var(--lx-green);border-color:var(--lx-green);transform:translateX(2px)}

/* ---------- FAQ: the homepage's rounded rows ---------- */
body.lx .aeo-faq{background:var(--lx-paper)}
body.lx .aeo-item{border-radius:var(--lx-r);border-color:var(--lx-line);background:#fff}
body.lx .aeo-ask{border-radius:var(--lx-r-lg);background:var(--lx-ink)}

/* ---------- closing call: one forest panel, inset and rounded like the homepage's dark bands ---------- */
body.lx section.final.dark{background:linear-gradient(140deg,var(--lx-forest-2) 0%,var(--lx-forest) 70%);
  border-radius:var(--lx-r-lg);margin:0 clamp(8px,1.4vw,20px);padding-block:clamp(56px,7vw,96px)}
body.lx section.final.dark .final-box{background:transparent;border:0;box-shadow:none;padding:0}
body.lx section.final.dark .final-box::before,body.lx section.final.dark .final-box::after{display:none}
body.lx section.final.dark h2{font-size:clamp(34px,4.2vw,60px);line-height:1;letter-spacing:-.035em;font-weight:700;color:#fff}
body.lx section.final.dark :is(p,.lead){color:rgba(255,255,255,.7)}

/* ---------- audit funnel icons (2026-11-19): the colour pictograms other pages use (build-icons.py FUNNEL) ----------
   service-icons.css strips the old tinted tiles from .fi; these set each slot's size */
body.lx .pi.fi{width:40px;height:40px}
body.lx .rp-ic.fi{width:40px;height:40px}
body.lx .wg-ic.fi{width:52px;height:52px}
body.lx .rp-logo.fi{width:46px;height:46px}
/* timeline dots sit on the line: a white tile, like the About timeline */
body.lx .ft-dot.fi{width:60px;height:60px;padding:10px;box-sizing:border-box;background:#fff!important;border:1px solid var(--lx-line)!important;
  border-radius:18px!important;box-shadow:0 12px 26px -18px rgba(15,42,28,.45)!important}
/* dark cards: pictograms on a white tile so their colours read */
body.lx :is(.wg-dark,.dark-tile,.facts-card,.reach) :is(.wg-ic,.rp-ic,.pi,.ic).fi{background:#fff!important;border-radius:14px!important;padding:7px;box-sizing:border-box}
/* platform picker: the lane pictograms beside each label */
body.lx .seg-opt .seg-si{width:22px;height:22px;flex:none}

@media (max-width:640px){
  body.lx .ha.ph .ha-title{font-size:clamp(40px,11.4vw,54px)}
  body.lx .ha.ph .ha-ctas{display:grid;gap:10px}
  body.lx .ha.ph .ha-btn{width:100%;justify-content:center}
  body.lx .th-grid{gap:14px}
  body.lx main .reach-opts{grid-template-columns:minmax(0,1fr)}
  body.lx main :is(section.pstrip-wrap,section.process-sec,section.sh2-dark){border-radius:22px;margin-inline:8px}
  body.lx main .others{grid-template-columns:minmax(0,1fr)}
  body.lx section.final.dark,body.lx main section.dark:not(.final){border-radius:22px;margin-inline:8px}
}
@media (prefers-reduced-motion:reduce){
  body.lx :is(.th-card,.th-go svg,.ha-btn,.ha-btn svg){transition:none!important}
  body.lx .th-card:hover{transform:none}
}
