/* Section flow: explicit, content-led fields shared by static and React routes.
   No positional striping and no runtime brightness classification. CTA paint,
   image corners, pricing facts and editorial body typography stay independent. */
:root{--flow-paper:#f0ece8;--flow-stone:#dbd6ce;--flow-ink:#0f0f0f;--flow-yellow:#fdc23e;--flow-gutter:clamp(24px,4vw,48px);--flow-space:clamp(56px,7vw,112px);--flow-inset:max(var(--flow-gutter),calc((100% - 1184px)/2))}
html [data-hq-module][data-hq-surface="paper"]{--hq-surface:var(--flow-paper);--hq-text:var(--flow-ink);--hq-secondary:#5b574f;--flow-line:#c4bdb3;--flow-panel:#e5e0d8;--flow-accent:#76552d}
html [data-hq-module][data-hq-surface="stone"]{--hq-surface:var(--flow-stone);--hq-text:var(--flow-ink);--hq-secondary:#514d46;--flow-line:#b8afa3;--flow-panel:var(--flow-paper);--flow-accent:#76552d}
html [data-hq-module][data-hq-surface="ink"]{--hq-surface:var(--flow-ink);--hq-text:var(--flow-paper);--hq-secondary:#c5beb4;--flow-line:#49453f;--flow-panel:#242321;--flow-accent:var(--flow-yellow)}
html [data-hq-module][data-hq-surface="yellow"]{--hq-surface:var(--flow-yellow);--hq-text:var(--flow-ink);--hq-secondary:#40351d;--flow-line:#b98b28;--flow-panel:#f6d785;--flow-accent:#0f0f0f}
html [data-hq-module][data-hq-surface]{background-color:var(--hq-surface)!important;color:var(--hq-text)!important;border-color:var(--flow-line)!important;--foreground:var(--hq-text);--muted-foreground:var(--hq-secondary);--background:var(--hq-surface);--card:var(--flow-panel);--card-foreground:var(--hq-text);--border:var(--flow-line);--color-foreground:var(--hq-text);--color-muted-foreground:var(--hq-secondary);--color-background:var(--hq-surface);--color-card:var(--flow-panel);--color-card-foreground:var(--hq-text);--color-border:var(--flow-line);--color-primary:var(--flow-accent)}
html[data-hq-brand] section[data-hq-module]:not([data-hq-module="hero"]):not([data-hq-module="partner-banner"]):not([data-hq-module="guide"]){padding-block:var(--flow-space)!important}
html[data-hq-brand] [data-hq-module] :is(h2,h3,h4,p,li,blockquote,small,label,legend,summary,time){color:var(--hq-text,inherit)}
html[data-hq-brand] [data-hq-module] :is(.text-muted-foreground,[class*="text-foreground/"],small){color:var(--hq-secondary)!important}
html[data-hq-brand] [data-hq-module] :is([class*="eyebrow"],.xp-kicker){color:var(--hq-secondary)!important}
html[data-hq-brand] [data-hq-module] [class*="border-border"]{border-color:var(--flow-line)!important}
html[data-hq-brand] [data-hq-module] :is(.bg-card,.bg-background){background-color:var(--flow-panel)!important;color:var(--hq-text)!important}
html[data-hq-brand] [data-hq-module] :is(a,button,summary):focus-visible{outline-color:var(--flow-accent)!important}
html[data-hq-brand] [data-hq-module="compact-proof"]{padding-block:40px!important}
html[data-hq-brand] [data-hq-module="limits"]{padding-top:0!important;border-top:0}
/* A section can contain a light evidence panel without inheriting dark-field text. */
html[data-hq-brand] [data-hq-panel="paper"]{--hq-surface:var(--flow-paper);--hq-text:var(--flow-ink);--hq-secondary:#5b574f;--flow-line:#c4bdb3;background:var(--hq-surface)!important;color:var(--hq-text)!important}
/* Home: distinguish the work chapter, preserving its live demonstrations. */
body.hq .hq-modes[data-hq-module="home-work"]{background:var(--flow-stone)!important}
/* Enterprise: calm introduction, practical workflows, a substantial proof chapter. */
html[data-hq-brand] [data-hq-module="enterprise-workflows"] .xbr-workflow-grid{gap:0 clamp(32px,6vw,96px)}
html[data-hq-brand] [data-hq-module="enterprise-workflows"] .xbr-workflow-card{border-top-color:var(--flow-line)!important;padding-block:28px!important}
html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-stories-wrap{width:100%;max-width:1280px;margin:auto;padding-inline:var(--flow-gutter)}
html[data-hq-brand] [data-hq-module="customer-proof"] :is(.xbr-stories-header,.xbr-stories-controls,.xbr-stories-counter){color:var(--hq-text)}
html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-stories-controls button{background:transparent;border-color:#81786b;color:var(--flow-paper)}
html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-stories-controls button:hover{background:var(--flow-yellow);color:var(--flow-ink)}
html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-story-panel{--hq-text:var(--flow-ink);--hq-secondary:#5b574f;background:var(--flow-stone);border:0;border-radius:20px;overflow:hidden;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-story-image img{height:100%;min-height:480px;object-fit:cover}
html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-story-content{padding:clamp(28px,4vw,56px)}
html[data-hq-brand] [data-hq-module="customer-proof"] :is(.xbr-story-credit,.xbr-story-source,.xbr-story-stat span){color:#514d46}
html[data-hq-brand] [data-hq-module="sales-form"] .hq-contact-form{background:var(--flow-stone)!important;border:0;border-radius:20px!important}
/* Content-first alternate compositions. Mobile order remains copy then media. */
.hq-workflow-composition{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(40px,7vw,112px);margin-top:48px}
.hq-workflow-visual{display:grid;place-items:center;background:#292723;border-radius:24px;padding:36px;min-width:0}
.hq-workflow-visual img{display:block;width:min(100%,280px);height:auto;max-height:540px;object-fit:contain;filter:drop-shadow(0 24px 24px #0005)}
.hq-workflow-steps{display:grid;gap:0}
.hq-workflow-steps>div{padding:24px 0;border-bottom:1px solid var(--flow-line)}
.hq-workflow-steps>div:first-child{padding-top:0}
.hq-workflow-steps>div:last-child{border-bottom:0;padding-bottom:0}
html[data-hq-brand] [data-hq-module="trade-workflow"] .hq-workflow-steps p{color:var(--hq-secondary)!important;max-width:48ch}
html[data-hq-brand] [data-hq-module="inclusions"] .xbr-included-list{gap:0 56px}
html[data-hq-brand] [data-hq-module="inclusions"] .xbr-included-list>li{padding-block:22px;border-color:var(--flow-line)}
html[data-hq-brand] [data-hq-module="insurance-workflow"] .xbr-insurance-steps{display:grid;grid-template-columns:1fr;gap:64px}
html[data-hq-brand] [data-hq-module="insurance-workflow"] .xbr-insurance-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(32px,7vw,100px);padding:0;border:0;background:transparent;min-height:0}
html[data-hq-brand] [data-hq-module="insurance-workflow"] .xbr-insurance-step[data-hq-layout="reverse"] .hq-insurance-copy{grid-column:2;grid-row:1}
html[data-hq-brand] [data-hq-module="insurance-workflow"] .xbr-insurance-step[data-hq-layout="reverse"] .hq-insurance-visual{grid-column:1;grid-row:1}
html[data-hq-brand] [data-hq-module="insurance-workflow"] .hq-insurance-copy h3{font-size:clamp(26px,3vw,40px)!important;margin-block:18px}
html[data-hq-brand] [data-hq-module="insurance-workflow"] .hq-insurance-copy p{max-width:38ch;font-size:18px;line-height:1.6}
.hq-insurance-visual{margin:0;display:grid;justify-items:center;padding:24px;background:var(--flow-paper);border-radius:24px;gap:12px}
.hq-insurance-visual img{width:100%;height:400px;object-fit:contain;display:block}
.hq-insurance-visual figcaption{font-size:12px;color:#5b574f;letter-spacing:.08em;text-transform:uppercase}
/* Comparison guides get actual chapter-width fields, not tinted boxes inside boxes. */
html[data-hq-brand] [data-hq-module="guide"],html[data-hq-brand] [data-hq-module="guide"]>.container,html[data-hq-brand] [data-hq-module="guide"] .comparison-guide-content{display:contents}
html[data-hq-brand] [data-hq-module="guide"] .comparison-guide-summary{max-width:1280px;padding:48px var(--flow-gutter);margin:0 auto}
html[data-hq-brand] [data-hq-module="guide"] section{padding-inline:var(--flow-inset);margin:0;border:0}
html[data-hq-brand] [data-hq-module="comparison-workflow"]{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);column-gap:clamp(32px,6vw,88px)}
html[data-hq-brand] [data-hq-module="comparison-workflow"]>h2{grid-column:1;grid-row:1/span 6;align-self:start;position:sticky;top:120px;max-width:18ch}
html[data-hq-brand] [data-hq-module="comparison-workflow"] .comparison-guide-step{grid-column:2;border-top:1px solid var(--flow-line);padding:28px 0;margin:0}
html[data-hq-brand] [data-hq-module="comparison-workflow"] .comparison-guide-step h3{margin:0 0 12px}
html[data-hq-brand] [data-hq-module="comparison-workflow"] .comparison-guide-step p{color:var(--hq-secondary);margin:0}
html[data-hq-brand] [data-hq-module="evaluation"]{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:48px;column-gap:clamp(32px,6vw,88px)}
html[data-hq-brand] [data-hq-module="evaluation"] ol{margin:0;padding-left:24px}
html[data-hq-brand] [data-hq-module="evaluation"] li{padding:12px 0;border-bottom:1px solid var(--flow-line)}
html[data-hq-brand] [data-hq-module="connection-workflow"]>.container{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:48px;column-gap:clamp(32px,6vw,88px)}
html[data-hq-brand] [data-hq-module="connection-workflow"] ol{margin:0;display:grid;gap:0;list-style:decimal-leading-zero;padding-left:32px}
html[data-hq-brand] [data-hq-module="connection-workflow"] li{padding:20px 0 20px 12px;border-top:1px solid var(--flow-line)}
/* Directory: one immersive lead story and two quieter editorial rows. */
html[data-hq-brand] .customer-content:has(.index-list)>main.wrap{max-width:none;width:100%;padding:0}
html[data-hq-brand] .customer-content .index-hero{max-width:1184px;width:calc(100% - 2 * var(--flow-gutter));margin:auto;padding-inline:0;padding-bottom:64px!important}
html[data-hq-brand] .customer-content .index-list{display:contents}
html[data-hq-brand] .customer-content .index-story[data-hq-module]{display:grid;width:100%;max-width:none;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:clamp(32px,6vw,88px);padding:var(--flow-space) var(--flow-inset)!important;margin:0!important;border:0;border-radius:0;text-decoration:none}
html[data-hq-brand] .customer-content [data-hq-module="story-feature"]{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
html[data-hq-brand] .customer-content .index-story[data-hq-module] img{width:100%;height:clamp(320px,35vw,480px);object-fit:cover}
html[data-hq-brand] .customer-content .index-story[data-hq-module] h2{font-size:clamp(30px,3.6vw,52px)!important;max-width:18ch}
html[data-hq-brand] .customer-content [data-hq-module="story-feature"] em{color:var(--flow-yellow)!important}
html[data-hq-brand] .customer-content [data-hq-module="story-feature"] :is(.read-link,.eyebrow){color:var(--flow-paper)!important}
html[data-hq-brand] .customer-content .index-story[data-hq-layout="reverse"] img{grid-column:2;grid-row:1}
html[data-hq-brand] .customer-content .index-story[data-hq-layout="reverse"]>div{grid-column:1;grid-row:1}
html[data-hq-brand] .customer-content [data-hq-module="story-close"]{border:0}
/* Pricing: protect each existing plan; give evidence its own chapter. */
html [data-hq-module="pricing-proof"]{padding:var(--flow-space) var(--flow-inset)!important;margin-block:40px 0;max-width:none!important;width:100%}
html [data-hq-module="pricing-proof"] :is(h2,p){color:var(--flow-paper)}
html [data-hq-module="pricing-proof"] .hq-story-proof{background:var(--flow-paper);color:var(--flow-ink)}
html [data-hq-module="pricing-proof"] .hq-story-proof :is(p,blockquote){color:var(--flow-ink)}
/* Editorial index: one featured story, a quiet archive, then resource navigation. */
html[data-hq-brand] .xbr-blog-content>.xbr-blog-container{max-width:none;padding:0}
html[data-hq-brand] .xbr-blog-hero{max-width:1280px;padding-inline:var(--flow-gutter);margin-inline:auto;margin-bottom:64px}
html[data-hq-brand] .xbr-blog-lead[data-hq-module="featured-story"]{padding:var(--flow-space) var(--flow-inset);margin:0 0 64px;border:0}
html[data-hq-brand] .xbr-blog-lead .xbr-blog-story{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:clamp(32px,6vw,80px)}
html[data-hq-brand] .xbr-blog-lead .xbr-blog-meta{color:var(--hq-secondary)}
html[data-hq-brand] .xbr-blog-lead .xbr-blog-read{color:var(--flow-yellow)}
html[data-hq-brand] .xbr-blog-grid{max-width:1280px;margin:auto;padding:0 var(--flow-gutter);gap:48px 32px}
html[data-hq-brand] .xbr-blog-item[hidden]{display:none!important}
.hq-blog-more{display:flex;justify-content:center;padding:48px var(--flow-gutter) 64px}
html[data-hq-brand] .comparison-hub[data-hq-module="resource-index"]{max-width:none;border:0;border-radius:0;padding:var(--flow-space) var(--flow-inset)!important;margin:64px 0 0}
html[data-hq-brand] .comparison-hub-rows{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px}
/* Resource collections: highlight selected evidence, not every card equally. */
html[data-hq-brand] [data-hq-module="featured-media"],html[data-hq-brand] [data-hq-module="events"]{width:100%;max-width:none!important;padding-inline:var(--flow-inset)!important}
html[data-hq-brand] [data-hq-module="review-collection"] .xbr-reviews-rows{align-items:start}
html[data-hq-brand] [data-hq-module="review-collection"] .xbr-reviews-row:first-child{grid-column:1/-1;background:var(--flow-ink);color:var(--flow-paper);padding:clamp(28px,5vw,64px);border:0;border-radius:24px;--hq-text:var(--flow-paper);--hq-secondary:#c5beb4}
html[data-hq-brand] [data-hq-module="review-collection"] .xbr-reviews-row:first-child blockquote{font-size:clamp(24px,3vw,38px);max-width:32ch}
html[data-hq-brand] [data-hq-module="mission"]>.container>.grid{gap:clamp(48px,8vw,128px)}
html[data-hq-brand] [data-hq-module="values"] .grid>div{border:0;border-top:2px solid var(--flow-line);padding:32px 0}
/* Long feature pages: editorial rows replace repeated panel walls. */
html[data-hq-brand] :is([data-hq-module="rep-workflows"],[data-hq-module="manager-workflows"],[data-hq-module="platform-pillars"]) .grid>div{background:transparent!important;border:0;border-top:1px solid var(--flow-line);border-radius:0;padding:28px 0;box-shadow:none}
html[data-hq-brand] :is([data-hq-module="rep-workflows"],[data-hq-module="manager-workflows"])>.container{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:clamp(40px,6vw,96px)}
html[data-hq-brand] :is([data-hq-module="rep-workflows"],[data-hq-module="manager-workflows"])>.container>.grid{grid-template-columns:1fr}
html[data-hq-brand] [data-hq-module="platform-pillars"]>.container{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:64px}
html[data-hq-brand] [data-hq-module="platform-pillars"]>.container>.grid{grid-template-columns:1fr 1fr}
@media(max-width:900px){
 html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-story-panel{grid-template-columns:1fr}
 html[data-hq-brand] [data-hq-module="customer-proof"] .xbr-story-image img{min-height:0;height:320px}
 html[data-hq-brand] [data-hq-module="platform-pillars"]>.container{grid-template-columns:1fr;gap:24px}
 html[data-hq-brand] [data-hq-module="comparison-workflow"]>h2{position:static}
}
@media(max-width:767px){
 :root{--flow-space:56px;--flow-gutter:24px}
 .hq-workflow-composition{grid-template-columns:1fr;gap:36px;margin-top:32px}
 .hq-workflow-steps{grid-row:1}.hq-workflow-visual{padding:24px}.hq-workflow-visual img{max-height:420px}
 html[data-hq-brand] [data-hq-module="insurance-workflow"] .xbr-insurance-step{grid-template-columns:1fr;gap:24px}
 html[data-hq-brand] [data-hq-module="insurance-workflow"] .xbr-insurance-step[data-hq-layout="reverse"] :is(.hq-insurance-copy,.hq-insurance-visual){grid-column:auto;grid-row:auto}
 .hq-insurance-visual img{height:340px}
 html[data-hq-brand] [data-hq-module="comparison-workflow"],html[data-hq-brand] [data-hq-module="evaluation"],html[data-hq-brand] [data-hq-module="connection-workflow"]>.container{display:block}
 html[data-hq-brand] [data-hq-module="comparison-workflow"]>h2{margin-bottom:32px}
 html[data-hq-brand] .customer-content .index-story[data-hq-module]{grid-template-columns:1fr;gap:28px}
 html[data-hq-brand] .customer-content .index-story[data-hq-module]>div{grid-row:1;grid-column:1}
 html[data-hq-brand] .customer-content .index-story[data-hq-module] img{grid-row:2;grid-column:1;height:280px}
 html[data-hq-brand] .xbr-blog-lead .xbr-blog-story{grid-template-columns:1fr;gap:28px}
 html[data-hq-brand] .xbr-blog-lead .xbr-blog-copy{grid-row:1}
 html[data-hq-brand] .xbr-blog-grid{gap:40px}
 html[data-hq-brand] .comparison-hub-rows{grid-template-columns:1fr}
 html[data-hq-brand] :is([data-hq-module="rep-workflows"],[data-hq-module="manager-workflows"])>.container{display:block}
 html[data-hq-brand] [data-hq-module="platform-pillars"]>.container>.grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){[data-hq-module] *{scroll-behavior:auto}}

html[data-hq-brand] [data-hq-module="pricing-proof"] .hq-story-proof{--hq-text:var(--flow-ink);--hq-secondary:#5b574f;background:#faf8f4}
html[data-hq-brand] [data-hq-module="pricing-proof"] .hq-proof-arrow{color:var(--flow-paper);border-color:#81786b}
html[data-hq-brand] [data-hq-module="pricing-proof"] .hq-proof-arrow:hover:not(:disabled){color:var(--flow-ink)}

/* Keep product-demo internals independent of the page's surrounding field. */
html[data-hq-brand] [data-hq-module] [class*="bg-[#1a2744]"]{--hq-text:#f0ece8;--hq-secondary:#c5beb4}
html[data-hq-brand] [data-hq-module="close"] .xbr-insurance-cta-panel{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
html[data-hq-brand] .xbr-trade>[data-hq-module="hero"]{padding-bottom:36px!important}
html[data-hq-brand] .xbr-trade>[data-hq-module="problem"]{padding-top:40px!important}
html[data-hq-brand] [data-hq-module="comparison-detail"]>.container{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:clamp(32px,6vw,88px)}
html[data-hq-brand] [data-hq-module="comparison-detail"] .xbr-editorial-list{grid-template-columns:1fr}
html[data-hq-brand] [data-hq-module="comparison-detail"] .xbr-editorial-list li{padding-block:20px}
@media(max-width:767px){html[data-hq-brand] [data-hq-module="comparison-detail"]>.container{display:block}}
