/* Final internal template: shared surfaces and conversion rhythm.
   Loaded only on internal routes. Scene geometry and timelines stay independent. */
body[data-page] .xp {
 --xp-ink:#f1f4ed;--xp-muted:#acb7a7;--xp-line:#ffffff20;
 --xp-panel:#192215;--xp-bg:#0d110e;
}
body[data-page] .xp-section {background:#0d110e;border-top:1px solid #ffffff0d}
body[data-page] .xp-section.xp-light {
 --xp-ink:#f1f4ed;--xp-muted:#acb7a7;--xp-line:#ffffff20;--xp-green:#97e060;
 --xp-panel:#1b2717;--xp-bg:#111a11;
 --com-line:#ffffff20;--com-muted:#acb7a7;
 --prod-line:#ffffff20;--prod-muted:#acb7a7;--prod-green:#97e060;
 color:var(--xp-ink);background:radial-gradient(ellipse at 75% 20%,#30472430,transparent 65%),#141e13;
}
body[data-page] .xp-light :is(.xp-kicker,.tech-text-link,.prod-text-link) {color:#97e060}
body[data-page] .xp-light :is(.xp-lead,.tech-small-label) {color:#acb7a7}
body[data-page] .xp-light .xp-button {background:#97e060;color:#13200b}
body[data-page] .xp-light .xp-button-ghost {background:transparent;color:#e2ebdc;border-color:#536247}
body[data-page] .xp-light .xp-tablist button[aria-selected=true] {background:#2b3e20;border-color:#63894b;color:#d8efc9}
body[data-page] .xp-light :focus-visible {outline-color:#97e060}
body[data-page] .xp-light .tech-boundary article {background:#192315;border-color:#3b4b30}
body[data-page] .xp-light .tech-boundary article p {color:#acb7a7}
body[data-page] .xp-light .tech-boundary code {color:#c3d8b4}
body[data-page] .xp-light .tech-boundary-arrow {color:#91ad7c}
body[data-page] .xp-light .tech-boundary-backend {background:#26371e}
body[data-page] .xp-light :is(.prod-path-scope,.prod-signature,.prod-channel-emblem) {background:#1b2717;border-color:#435638}
body[data-page] .xp-light .prod-lifecycle li>span {background:#1b2717;border-color:#63814d}
body[data-page] .academy-section {background:#101710}
/* Bounded offers keep the price and segment argument in one reading area. */
body[data-page] .cv-offer {background:radial-gradient(ellipse at 50% 100%,#30472435,transparent 70%),#10170f}
body[data-page] .cv-offer>.xp-container {max-width:1040px}
body[data-page] .cv-offer-layout {gap:clamp(32px,5vw,72px);grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
body[data-page] .cv-price-card {padding:30px;border-radius:14px}
body[data-page] .cv-price-value>strong {font-size:72px}
body[data-page] .cv-price-value>span {font-size:20px}
body[data-page] .cv-price-card .xp-button {justify-content:center}
/* Same centered FAQ rhythm as the home; answers remain left-aligned. */
body[data-page] .xp-faq-section {background:#0d110e}
body[data-page] .xp-faq-section>.xp-container {max-width:880px}
body[data-page] .xp-faq-section .xp-section-heading {text-align:center;margin-inline:auto;margin-bottom:40px}
body[data-page] .xp-faq-section h2 {max-width:24ch;margin-inline:auto}
body[data-page] :is(.xp-faq,.prod-faq-list) {border:0;display:grid;gap:10px}
body[data-page] :is(.xp-faq,.prod-faq-list) details {border:1px solid #2b3528;border-radius:12px;background:#121712;overflow:hidden}
body[data-page] :is(.xp-faq,.prod-faq-list) summary {padding:22px 24px;font-size:17px;line-height:1.55;gap:22px}
body[data-page] :is(.xp-faq,.prod-faq-list) summary>span {display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid #3a4633;border-radius:50%;font-size:18px;color:#a8c592;background:#1c2617}
body[data-page] :is(.xp-faq,.prod-faq-list) details[open] {background:#172013;border-color:#536e3f}
body[data-page] :is(.xp-faq,.prod-faq-list) details[open] summary {color:#d4ecc1}
body[data-page] :is(.xp-faq,.prod-faq-list) details>div {max-width:none;padding:0 74px 24px 24px;font-size:15px;line-height:1.8;color:#b3beac}
body[data-page] :is(.xp-faq,.prod-faq-list) summary:focus-visible {outline-offset:-4px;border-radius:12px}
/* Searchable FAQ uses the same restrained width without changing its filters. */
body[data-page=faq] .prod-faq-section>.xp-container {max-width:880px}
body[data-page] .xp-close {background:radial-gradient(ellipse at 50% 100%,#43652855,transparent 72%),#11190f;text-align:center}
body[data-page] .xp-close .xp-section-heading {margin-inline:auto}
body[data-page] .xp-close h2 {max-width:24ch;margin-inline:auto;font-size:clamp(34px,4vw,56px)}
body[data-page] .xp-close>.xp-container>.xp-lead {max-width:62ch;margin-inline:auto}
body[data-page] .xp-close .xp-actions {justify-content:center}
@media(max-width:700px){
 body[data-page] .cv-offer-layout {grid-template-columns:1fr;gap:32px}
 body[data-page] .cv-price-card {width:100%;max-width:480px;margin-inline:auto;padding:26px}
 body[data-page] .cv-price-value>strong {font-size:64px}
 body[data-page] :is(.xp-faq,.prod-faq-list) summary {padding:20px 18px;font-size:16px;gap:14px}
 body[data-page] :is(.xp-faq,.prod-faq-list) details>div {padding:0 18px 22px;font-size:14px}
 body[data-page] .xp-close .xp-actions {flex-direction:column;align-items:stretch;max-width:360px;margin-inline:auto}
}
/* Text originally composed for pale surfaces now uses the dark-surface palette. */
body[data-page] .xp-light :is(.com-project>div>p,.com-plan-fit>div>p,.com-partner-models article>p,.tech-http-layout>div>p,.tech-detail-row>span,.tech-mcp-address>p,.tech-mcp-scope p,.tech-review-steps p) {color:#acb7a7}
body[data-page] .xp-light :is(.com-project-scope strong,.com-model-path,.tech-scope-icon,.tech-review-steps .tech-index) {color:#acd38f}
body[data-page] .xp-light .tech-detail-row strong {color:#d7e5ce}
body[data-page] .xp-light .tech-review-output {color:#c1d6b2;border-color:#465a38}

/* Keep the introductory price in normal text flow and with its own CTA group. */
body[data-page] .cv-hero-offer {display:block;width:fit-content;max-width:65ch;line-height:1.7}
body[data-page] .cv-hero-offer strong {margin-inline-end:.45em}
body[data-page] .cv-hero-offer .cv-hint-arrow {margin-inline-start:.45em;white-space:nowrap}
body[data-page] .tech-vibe-hero .cv-hero-offer {margin-inline:auto;text-align:center}
body[data-page] .com-saas-hero .cv-hero-offer {grid-column:1/-1}
@media(min-width:901px){
 body[data-page] .prod-page .xp-hero-copy>.cv-hero-offer {grid-column:2;grid-row:4}
 body[data-page] .com-saas-hero .cv-hero-offer {grid-row:5}
 body[data-page] .com-saas-hero .xp-channels {grid-column:2;grid-row:4}
}

/* SaaS demonstrator: one composition from scenario selection to outcome. */
body[data-page=saas] .com-showroom {padding-top:var(--omni-section-space,128px)!important}
body[data-page=saas] .com-showroom>.xp-container {max-width:1120px}
body[data-page=saas] .com-showroom .xp-section-heading {display:block;max-width:none;margin-bottom:28px}
body[data-page=saas] .com-showroom .xp-section-heading .xp-kicker {font-size:11px!important;margin-bottom:12px!important}
body[data-page=saas] .com-showroom .xp-section-heading h2 {font-size:clamp(28px,3vw,38px);line-height:1.15;margin:0;max-width:none}
body[data-page=saas] .com-showroom .xp-section-heading .xp-lead {text-align:start;font-size:15px;max-width:65ch;margin:12px 0 0}
body[data-page=saas] .com-product-demo>.xp-tabs {border:1px solid #35432f;border-radius:18px;background:#111811;overflow:hidden}
body[data-page=saas] .com-product-demo .xp-tablist {padding:20px 24px;margin:0;border-bottom:1px solid #35432f;gap:10px}
body[data-page=saas] .com-product-demo .xp-tabpanels {padding:0}
body[data-page=saas] .com-flow-context {margin:0;padding:20px 24px;border-bottom:1px solid #ffffff0d;gap:8px 20px;font-size:12px}
body[data-page=saas] .com-flow-context strong {font-size:14px}
body[data-page=saas] .com-flow-case .fs-shell {max-width:none;border:0;border-radius:0;box-shadow:none}
body[data-page=saas] .com-flow-case .com-demo-steps {margin:0;padding:0 24px;background:#192315;border-top:1px solid #35432f;border-radius:0}
body[data-page=saas] .com-flow-case .com-demo-steps li {padding:20px 18px;border-top:0}
body[data-page=saas] .com-flow-case .com-demo-steps li:first-child {padding-inline-start:0}
body[data-page=saas] .com-flow-case .com-demo-steps li+li {border-inline-start:1px solid #35432f}
body[data-page=saas] .com-flow-case .com-demo-steps li>span {font-size:11px}
body[data-page=saas] .com-flow-case .com-demo-steps li>p {font-size:13px;line-height:1.6;max-width:none}
body[data-page=saas] .com-flow-result {padding:20px 24px;font-size:13px;align-items:baseline;flex-wrap:wrap;gap:8px 14px}
body[data-page=saas] .com-flow-result strong {font-size:13px;white-space:normal}
body[data-page=saas] .com-flow-result p {font-size:13px;padding:0}
body[data-page=saas] .com-product-demo>.com-note {max-width:none;font-size:12px!important;line-height:1.7!important;margin-top:18px!important}
body[data-page=saas] .com-product-demo>.com-note+.com-note {margin-top:5px!important}
@media(max-width:760px){
 body[data-page=saas] .com-showroom {padding-top:var(--omni-section-space,80px)!important}
 body[data-page=saas] .com-product-demo .xp-tablist {padding:16px;gap:8px}
 body[data-page=saas] .com-flow-context {padding:16px;gap:6px 12px}
 body[data-page=saas] .com-flow-case .com-demo-steps {padding:0 16px;grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-page=saas] .com-flow-case .com-demo-steps li {padding:16px 12px}
 body[data-page=saas] .com-flow-case .com-demo-steps li:nth-child(3) {padding-inline-start:0;border-inline-start:0}
 body[data-page=saas] .com-flow-case .com-demo-steps li:nth-child(n+3) {border-top:1px solid #35432f}
 body[data-page=saas] .com-flow-result {padding:18px 16px}
 body[data-page=saas] .com-flow-result p {flex-basis:100%}
}

/* Restore breathing room lost to family-level paragraph resets. */
body[data-page] .tech-page .xp-hero-copy>.xp-lead {margin-block-start:22px}
body[data-page] .xp-section-heading>.xp-lead {margin-block-start:18px}
body[data-page] .cv-offer .xp-lead {margin-block-start:20px}
body[data-page] .xp-close>.xp-container>.xp-lead {margin-block-start:22px}
/* Standalone flows share the same reading frame with their heading and steps. */
body[data-page] .tech-page .xp-section:has(.tech-scene-wide)>.xp-container,
body[data-page=vibecoders] .xp-section:has(>.xp-container>.fs-scene)>.xp-container,
body[data-page=production] .prod-production-demo>.xp-container {max-width:1120px}
body[data-page] .tech-scene-wide {max-width:none}
body[data-page] .tech-scene-wide .fs-shell,
body[data-page=vibecoders] .xp-section>.xp-container>.fs-scene .fs-shell,
body[data-page=production] .prod-demo .fs-shell {max-width:none}
body[data-page=production] .prod-page .prod-scene-wrap {margin:0 0 24px}
body[data-page] .tech-page .tech-lifecycle {margin-top:28px}
@media(max-width:760px){
 body[data-page] .tech-page .xp-hero-copy>.xp-lead {margin-block-start:18px}
 body[data-page] .xp-section-heading>.xp-lead {margin-block-start:14px}
}

/* On phones, expose all choices instead of relying on an undisclosed sideways scroll. */
@media(max-width:600px){
 body[data-page] .xp .xp-tablist {flex-wrap:wrap;overflow:visible;gap:8px}
 body[data-page] .xp .xp-tablist button {white-space:normal;max-width:100%;min-height:40px;line-height:1.45}
 body[data-page] .prod-page .prod-demo-steps {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
 body[data-page] .prod-page .prod-step-button {min-width:0;min-height:64px;text-align:start;font-size:12px}
 body[data-page] .prod-page .prod-step-button:last-child {grid-column:1/-1}
}
