/* THX 3.0.5 – local readability fixes, not a redesign. Keep all original markup,
   prices, animation timings, geometry and component colors. No library selectors. */
body #thx-home-header :is(.thx-hh-tagline,.thx-hh-link,.thx-hh-cta){font-size:12px;line-height:1.4}
body #thx-home-header .thx-hh-mobile-link{font-size:13px}
body #thx-home-header .thx-hh-links{gap:clamp(12px,1.35vw,22px)}
body #thx-global-footer :is(.thx-gf-meta,.thx-gf-legal p,.thx-gf-legal a){font-size:12px;line-height:1.55}
/* The recovered code may contain the older overflow:hidden rule. Sticky scenes must
   remain attached to the viewport, not to an artificial scrolling ancestor. */
body.thx-native-original #thx-root{overflow:clip}
body.thx-native-original #thx-root :is(.thx-kicker,.thx-text-link,.thx-button,.hx-story-label,.hx-card-label,.hx-decision-kicker,.thx-sits-topline,.thx-sits-label,.thx-shift-node small,.thx-build-card>small,.thx-build-card dt,.thx-method-step>small,.thx-measure-band small,.thx-research-numbers small,.thx-lab-tab span,.thx-lab-stage-top,.thx-lab-box label,.thx-lab-bottom span,.thx-lab-explain span,.thx-compare-meter span,.thx-fit-q span,.thx-fit-score span,.thx-field label,.thx-field-error){font-size:12px;line-height:1.45}
body.thx-native-original #thx-root :is(.thx-build-card dd,.thx-lab-tab small,.thx-lab-explain small,.thx-lab-option small,.thx-fit-q small,.thx-hero-note,.thx-price-note,.thx-js-note,.thx-consent label){font-size:13px;line-height:1.55}
body.thx-native-original #thx-root :is(.thx-lab-tab strong,.thx-lab-needs button,.thx-fit-q b,.thx-lab-option strong,.thx-lab-match){font-size:13px;line-height:1.4}
body.thx-native-original #thx-root .thx-question-band span{font-size:12px}
body.thx-native-original #thx-root :is(.thx-field input,.thx-field textarea){font-size:16px;line-height:1.5}
body.thx-native-original #thx-root :is(.thx-field input,.thx-field textarea)::placeholder{color:#AEB5BC;-webkit-text-fill-color:#AEB5BC;opacity:1}
/* Pricing and project navigation labels. Retain the original heading scale. */
body.thx-native-original :is(#thx-start-root,#thx-pricing-root,#thx-contact-root) :is(.thx-s-kicker,.thx-s-button,.thx-s-price-card>small,.thx-s-price-use,.thx-s-selected-price span,.thx-s-econ-result>small,.thx-s-econ-metrics small,.thx-s-scope-result>small,.thx-s-scope-facts dt,.thx-s-story-kicker,.thx-s-question-index,.thx-s-story-link,.thx-s-story-meta,.thx-s-scroll-cue,.thx-ps-steps small,.thx-s-field label,.thx-s-field-error){font-size:12px;line-height:1.45}
body.thx-native-original #thx-pricing-root :is(.thx-s-price-card li,.thx-s-option small,.thx-s-scope-facts dd,.thx-s-control label,.thx-s-note){font-size:14px!important;line-height:1.55}
body.thx-native-original #thx-pricing-root :is(.thx-s-econ-controls,.thx-s-econ-result,.thx-s-scope-questions,.thx-s-scope-result,.thx-s-econ-metrics>div){min-width:0}
body.thx-native-original #thx-pricing-root .thx-s-econ-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
body.thx-native-original #thx-pricing-root .thx-s-econ-metrics small{overflow-wrap:normal;word-break:normal;letter-spacing:.025em}
body.thx-native-original #thx-contact-root :is(.thx-s-field input,.thx-s-field textarea)::placeholder{color:#AEB5BC!important;-webkit-text-fill-color:#AEB5BC!important;opacity:1}
body.thx-native-original :is(#thx-root,#thx-pricing-root,#thx-contact-root) :is(input[type=checkbox],input[type=radio]){accent-color:#D7FF3F;color-scheme:dark;flex-shrink:0}
body.thx-native-original #thx-start-root .scene-focus small{font-size:12px;line-height:1.45}
body.thx-native-original #thx-start-root .thx-s-question-index{width:min(90%,420px);text-align:center;letter-spacing:.07em}
/* Static/reduced motion: the old general display:block rule overrode the hidden
   intermediate scenes. Keep all actual story text, never an empty animation stage. */
@media(prefers-reduced-motion:reduce){
 body.thx-native-original #thx-start-root .thx-s-story .thx-s-story-scene{position:relative;display:block;inset:auto;opacity:1!important;transform:none!important;filter:none!important;pointer-events:auto;padding:28px 0}
 body.thx-native-original #thx-start-root .thx-s-story .thx-s-story-inner{width:var(--thx-shell);margin-inline:auto}
 body.thx-native-original #thx-start-root .thx-s-story .scene-intro{margin-bottom:0}
 body.thx-native-original #thx-start-root .thx-s-story .scene-cloud .thx-s-question-cloud{height:auto;display:grid;gap:14px;width:var(--thx-shell);margin-inline:auto}
 body.thx-native-original #thx-start-root .thx-s-story .scene-cloud .thx-s-question{position:static;width:100%;opacity:1!important;transform:none!important;filter:none!important;font-size:clamp(20px,3vw,32px);line-height:1.25}
 body.thx-native-original #thx-start-root .thx-s-story :is(.thx-s-question-index,.thx-s-question-dust,.thx-s-scroll-cue,.thx-s-story-progress){display:none!important}
}
@media(max-width:700px){
 body.thx-native-original #thx-pricing-root .thx-s-econ-metrics{grid-template-columns:1fr}
 body.thx-native-original #thx-root :is(.thx-lab-tab strong,.thx-lab-tab small){overflow-wrap:anywhere}
 body.thx-native-original #thx-root .thx-lab-tab{min-width:0}
 body.thx-native-original #thx-root .thx-sits-copy-panel>p:last-child{font-size:15px;line-height:1.55}
 body.thx-native-original #thx-root .thx-sits-topline{letter-spacing:.05em}
}
/* On narrow, short viewports ensure the live last scene and its CTA fit. Animation
   timing remains unchanged. This only adjusts local spacing in that scene. */
@media(max-width:700px) and (max-height:700px) and (prefers-reduced-motion:no-preference){
 body.thx-native-original #thx-start-root .scene-final{padding:42px 12px 30px}
 body.thx-native-original #thx-start-root .scene-final h2{font-size:clamp(30px,9vw,44px);line-height:1.02}
 body.thx-native-original #thx-start-root .scene-final p{margin-top:12px;line-height:1.5}
 body.thx-native-original #thx-start-root .scene-final .thx-s-story-actions{margin-top:14px;gap:4px}
 body.thx-native-original #thx-start-root .scene-final .thx-s-story-link{min-height:40px}
 body.thx-native-original #thx-start-root .scene-final .thx-s-story-meta{margin-top:8px;gap:3px}
}
body.thx-ai-page .thx-guide .guide-toc a:before{color:#AEB5BC;font-size:12px}
body.thx-ai-page .thx-guide :is(.guide-kicker,.guide-question small){font-size:12px}
body.thx-ai-page .thx-ai :is(.ai-demo-top,.ai-demo-tag,.ai-prompt>span,.ai-answer-head,.ai-lab-top,.ai-lab-live,.ai-lab-total-label){font-size:12px;line-height:1.45}
body.thx-ai-page .thx-ai :is(input[type=checkbox],input[type=radio]){accent-color:#D7FF3F;color-scheme:dark;flex-shrink:0}

/* 3.0.6: keep contextual buyer questions legible throughout all hero phases.
   The original .12 opacity + edge mask reduced text almost to black.
   Put the mask behind these secondary cards; preserve the primary card hierarchy. */
body.thx-native-original #thx-root .hx-stage::after{z-index:0}
body.thx-native-original #thx-root .hx-story .hx-ghost{z-index:1;opacity:1;color:#AEB5BC;-webkit-text-fill-color:#AEB5BC;filter:none;border-color:#ffffff20}
body.thx-native-original #thx-root .hx-story .hx-index{color:#D7FF3F}
@media(max-width:600px){
 body.thx-native-original #thx-root .hx-story .hx-ghost{font-size:15px;line-height:1.3;padding:6px 12px}
}
/* Reserve the 14px entrance translation so neither contextual row is clipped. */
body.thx-native-original #thx-root .hx-story .hx-ghost-after{bottom:15px}
@media(max-width:600px){body.thx-native-original #thx-root .hx-story .hx-ghost-before{top:3px}}
