/* CPBDHost V9 — unified inner-page experience. Scoped to detail & terms. Original homepage styles untouched. */
html[data-cp-page="detail"]{--pg-bg:#f4f7ff;--pg-card:rgba(255,255,255,.87);--pg-border:#d7e1ef;--pg-ink:#142844;--pg-muted:#546884;--pg-accent:#1755bd;--pg-shadow:0 13px 38px #163f7b14}
html[data-cp-page="detail"][data-cp-mode="dark"]{--pg-bg:#0d1b30;--pg-card:rgba(27,48,76,.86);--pg-border:#39506f;--pg-ink:#f4f7ff;--pg-muted:#c1cde0;--pg-accent:#9dc2ff;--pg-shadow:0 16px 44px #02091950}
@media(prefers-color-scheme:dark){html[data-cp-page="detail"]:not([data-cp-mode]){--pg-bg:#0d1b30;--pg-card:rgba(27,48,76,.86);--pg-border:#39506f;--pg-ink:#f4f7ff;--pg-muted:#c1cde0;--pg-accent:#9dc2ff;--pg-shadow:0 16px 44px #02091950}}
html[data-cp-page="detail"] body{background:var(--pg-bg)!important;color:var(--pg-ink)!important}
html[data-cp-page="detail"] :is(h1,h2,h3,p,li),html[data-cp-page="detail"] .cpbd-page-header strong{overflow-wrap:break-word}
html[data-cp-page="detail"] .cpbd-page-header{background:color-mix(in srgb,var(--pg-bg) 90%,transparent)!important;border-bottom:1px solid var(--pg-border)!important}
html[data-cp-page="detail"] .cpbd-page-header .st-nav{min-height:74px;width:min(1280px,calc(100% - 32px));gap:clamp(8px,1.5vw,18px);flex-wrap:nowrap}
html[data-cp-page="detail"] .cpbd-page-header .st-logo{gap:7px;letter-spacing:-.055em}
html[data-cp-page="detail"] .cpbd-page-header .st-logo img{height:31px;width:43px}
html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav{flex:1;justify-content:center;gap:clamp(8px,1.1vw,18px);flex-wrap:nowrap}
html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav a{color:var(--pg-ink)!important;font-size:clamp(10px,.85vw,12px);white-space:nowrap;font-weight:750;opacity:.78}
html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav a:hover,html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav a[aria-current]{opacity:1;color:var(--pg-accent)!important}
html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-actions{margin:0}
html[data-cp-page="detail"] .cpbd-page-header a.cpbd-page-quote{background:linear-gradient(125deg,#f15369,#cf214a)!important;color:#fff!important;border:1px solid #e3425c!important;box-shadow:0 10px 24px #cf214a25!important;text-shadow:none!important}
html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-call{background:color-mix(in srgb,var(--pg-card) 82%,transparent)!important;color:var(--pg-ink)!important;border:1px solid var(--pg-border)!important}
html[data-cp-page="detail"] .cpbd-page-hero{padding:clamp(48px,7vw,96px) 0;background:radial-gradient(ellipse at 72% 9%,#4c83de2a,transparent 48%),linear-gradient(150deg,var(--pg-bg),color-mix(in srgb,var(--pg-bg) 87%,#acc7ff 13%))!important}
html[data-cp-page="detail"] .cpbd-page-hero h1{font-size:clamp(36px,5.2vw,68px);letter-spacing:-.05em;margin:14px 0 20px;line-height:1.12;color:var(--pg-ink)!important}
html[data-cp-page="detail"] .cpbd-page-hero h2{font-size:clamp(22px,2.5vw,36px);letter-spacing:-.04em;color:var(--pg-ink);margin:0 0 15px}
html[data-cp-page="detail"] .cpbd-page-hero p{color:var(--pg-muted)!important;font-size:clamp(14px,1.6vw,18px);max-width:750px;line-height:1.75}
html[data-cp-page="detail"] .cpbd-main-cta,html[data-cp-page="detail"] button.cpbd-main-cta,html[data-cp-page="detail"] a.cpbd-main-cta{background:linear-gradient(115deg,#e53d58,#b8173c)!important;border:1px solid #b8173c!important;color:#fff!important;text-shadow:none!important;box-shadow:0 9px 23px #b8173c2d;min-height:44px;text-decoration:none!important}
html[data-cp-page="detail"] a.cpbd-secondary-cta,html[data-cp-page="detail"] .cpbd-secondary-cta{background:var(--pg-card)!important;color:var(--pg-ink)!important;border:1px solid var(--pg-border)!important;box-shadow:none!important;text-decoration:none!important;min-height:44px}
html[data-cp-page="detail"] :is(.cpbd-main-cta,.cpbd-secondary-cta,.cpbd-page-quote){opacity:1!important;visibility:visible!important}
html[data-cp-page="detail"] .cpbd-page-card{background:var(--pg-card);color:var(--pg-ink);border-color:var(--pg-border)}
html[data-cp-page="detail"] .cpbd-page-card h3{color:var(--pg-ink)!important}
html[data-cp-page="detail"] .cpbd-page-card :is(p,li){color:var(--pg-muted)!important}
html[data-cp-page="detail"] .cpbd-tint-section{background:color-mix(in srgb,var(--pg-bg) 82%,#97b6e0 18%)}
html[data-cp-page="detail"] .cpbd-page-bottom-cta{background:linear-gradient(112deg,#142d57,#33498f)!important}
html[data-cp-page="detail"] .cpbd-page-bottom-cta h2,html[data-cp-page="detail"] .cpbd-page-bottom-cta p{color:#fff!important}
html[data-cp-page="detail"] .cpbd-page-bottom-cta a.cpbd-main-cta{background:#fff!important;color:#16365c!important;border-color:#fff!important;box-shadow:0 9px 22px #0003}
html[data-cp-page="detail"] .cpbd-page-bottom-cta a.cpbd-main-cta:hover{background:#e9f2ff!important;color:#16365c!important}
html[data-cp-page="detail"] .cpbd-v9-hero-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(290px,.88fr);gap:clamp(24px,5vw,80px);align-items:center;max-width:1250px}
html[data-cp-page="detail"] .cpbd-v9-hero-copy{min-width:0}
html[data-cp-page="detail"] .cpbd-v9-hero-copy .cpbd-page-kicker{margin-top:23px}
html[data-cp-page="detail"] .cpbd-v9-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:var(--pg-muted);font-size:12px}
html[data-cp-page="detail"] .cpbd-v9-breadcrumb a{color:var(--pg-accent);text-decoration:none}
html[data-cp-page="detail"] .cpbd-v9-hero-visual{position:relative;min-height:280px;padding:clamp(20px,3vw,34px);border:1px solid var(--pg-border);border-radius:29px;background:linear-gradient(145deg,#abc8ff55,#ffffff80,#eec1ff49);box-shadow:var(--pg-shadow);display:flex;flex-direction:column;align-items:center;justify-content:center}
html[data-cp-page="detail"][data-cp-mode="dark"] .cpbd-v9-hero-visual{background:linear-gradient(145deg,#213d6b,#26395c,#443c6a)}
html[data-cp-page="detail"] .cpbd-v9-hero-visual img{display:block;max-width:100%;width:100%;height:240px;object-fit:contain;filter:drop-shadow(0 12px 20px #172e5538)}
html[data-cp-page="detail"] .cpbd-v9-visual-caption{font-size:11px;font-weight:850;color:var(--pg-ink);text-align:center;margin-top:12px}
html[data-cp-page="detail"] .cpbd-v9-feature-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:#fff;font-weight:900;background:linear-gradient(140deg,#256fd3,#6c62de);border-radius:12px;font-size:21px}
html[data-cp-page="detail"] .cpbd-v9-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-cp-page="detail"] .cpbd-v9-feature-grid h3{margin:14px 0 6px;font-size:clamp(17px,1.7vw,22px)}
html[data-cp-page="detail"] .cpbd-v9-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
html[data-cp-page="detail"] .cpbd-v9-plan{display:flex;flex-direction:column;gap:7px}
html[data-cp-page="detail"] .cpbd-v9-plan h3{margin:5px 0 2px;font-size:clamp(20px,2vw,26px)}
html[data-cp-page="detail"] .cpbd-v9-plan-price{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:3px 0 12px}
html[data-cp-page="detail"] .cpbd-v9-plan-price strong{font-size:clamp(25px,3vw,38px);letter-spacing:-.05em;line-height:1.1;color:var(--pg-ink)!important}
html[data-cp-page="detail"] .cpbd-v9-plan-price del{color:var(--pg-muted);font-size:13px}
html[data-cp-page="detail"] .cpbd-v9-off{font-size:11px;font-weight:800;background:#deffe9;color:#116438;padding:5px 9px;border-radius:99px}
html[data-cp-page="detail"] .cpbd-v9-feature-list{padding:0;list-style:none;display:grid;gap:8px;margin:14px 0 28px}
html[data-cp-page="detail"] .cpbd-v9-feature-list li{position:relative;padding-left:19px;font-size:13px;line-height:1.58}
html[data-cp-page="detail"] .cpbd-v9-feature-list li::before{content:'✓';color:#0c9d66;position:absolute;left:0;font-weight:900}
html[data-cp-page="detail"] .cpbd-v9-plan-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:auto}
html[data-cp-page="detail"] .cpbd-v9-empty{max-width:650px}
html[data-cp-page="detail"] .cpbd-v9-faq{max-width:1000px}
html[data-cp-page="detail"] .cpbd-v9-faq details{padding:19px 24px;margin-bottom:10px;border:1px solid var(--pg-border);background:var(--pg-card);border-radius:15px;color:var(--pg-ink)}
html[data-cp-page="detail"] .cpbd-v9-faq summary{color:var(--pg-ink);font-weight:820;cursor:pointer}
html[data-cp-page="detail"] .cpbd-v9-faq details p{margin:13px 0 0}
html[data-cp-page="detail"] .cpbd-v9-related{margin-top:25px}
html[data-cp-page="detail"] .cpbd-contact-grid{align-items:start}
html[data-cp-page="detail"] .cpbd-quote-form :is(input,select,textarea){background:var(--pg-bg);color:var(--pg-ink);border-color:var(--pg-border)}
html[data-cp-page="detail"] :is(.cpbd-page-header,.cpbd-v9-category-hero,.cpbd-page-section,.cpbd-page-bottom-cta){scroll-margin-top:88px}
@media(max-width:1120px){html[data-cp-page="detail"] .cpbd-page-header #menu{display:inline-flex!important;order:2}html[data-cp-page="detail"] .cpbd-page-header .st-nav{flex-wrap:wrap;min-height:69px;gap:8px;padding:10px 0}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav{display:none!important;order:5;flex:0 0 100%;flex-direction:column;align-items:stretch;gap:3px;padding:12px;background:var(--pg-card);border:1px solid var(--pg-border);border-radius:15px}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav.open{display:flex!important}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-nav a{padding:10px 12px;font-size:13px}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-actions{margin-left:auto;order:3}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-call span{display:none}}
@media(max-width:790px){html[data-cp-page="detail"] .cpbd-v9-hero-layout{grid-template-columns:1fr}html[data-cp-page="detail"] .cpbd-v9-hero-visual{min-height:230px}html[data-cp-page="detail"] .cpbd-v9-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){html[data-cp-page="detail"] .cpbd-page-header .st-nav{min-height:58px;gap:6px}html[data-cp-page="detail"] .cpbd-page-header .st-logo{font-size:16px}html[data-cp-page="detail"] .cpbd-page-header .st-logo img{height:28px;width:34px}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-actions .st-quote{font-size:10px;padding:9px 11px}html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-call{font-size:11px;padding:8px}html[data-cp-page="detail"] .cpbd-v9-pricing-grid{grid-template-columns:1fr}html[data-cp-page="detail"] .cpbd-v9-hero-visual{min-height:160px;padding:14px}html[data-cp-page="detail"] .cpbd-v9-hero-visual img{height:160px}html[data-cp-page="detail"] .cpbd-page-hero h1{font-size:clamp(29px,7.6vw,44px)}html[data-cp-page="detail"] .cpbd-page-section{padding:38px 0}html[data-cp-page="detail"] .cpbd-v9-feature-grid{gap:9px}html[data-cp-page="detail"] .cpbd-v9-feature-grid .cpbd-page-card{padding:16px}html[data-cp-page="detail"] .cpbd-v9-feature-grid .cpbd-page-card h3{font-size:15px}html[data-cp-page="detail"] .cpbd-v9-feature-grid .cpbd-page-card p{font-size:12px}html[data-cp-page="detail"] .cpbd-page-hero-actions{gap:8px}html[data-cp-page="detail"] .cpbd-page-hero-actions a{padding:10px 12px;font-size:11px}html[data-cp-page="detail"] .cpbd-page-bottom-cta{padding:35px 0}html[data-cp-page="detail"] .cpbd-v9-plan-actions a{font-size:12px}}
/* Terms navigation matches homepage detail menu; legal content untouched */
html[data-cp-page="terms"] .cpbd-page-header{background:var(--st-glass)!important;border-bottom:1px solid var(--st-border);backdrop-filter:blur(22px);position:sticky;top:0;z-index:200}
html[data-cp-page="terms"] .cpbd-page-header .st-nav{display:flex;align-items:center;gap:clamp(6px,1.2vw,16px);min-height:72px}
html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-nav{display:flex;align-items:center;justify-content:center;flex:1;gap:clamp(8px,1vw,18px);font-size:11px}
html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-actions{display:flex;align-items:center;gap:7px}
html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-call{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid var(--st-border);background:var(--st-glass);padding:10px 14px;font-weight:800;color:var(--st-ink)}
html[data-cp-page="terms"] .cpbd-page-header .st-quote{border-radius:999px;background:linear-gradient(125deg,#e94360,#c91c43)!important;color:#fff!important;padding:10px 16px;font-size:12px;font-weight:800}
@media(max-width:1120px){html[data-cp-page="terms"] .cpbd-page-header .st-nav{flex-wrap:wrap}html[data-cp-page="terms"] .cpbd-page-header .st-menu{display:inline-flex!important;order:2}html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-nav{display:none;flex:0 0 100%;order:5;flex-direction:column;align-items:stretch;background:var(--st-bg);border:1px solid var(--st-border);border-radius:16px;padding:12px}html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-nav.open{display:flex}html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-actions{order:3;margin-left:auto}}
@media(max-width:660px){html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-call span{display:none}html[data-cp-page="terms"] .cpbd-page-header .st-quote{font-size:10px;padding:8px 11px}html[data-cp-page="terms"] .cpbd-page-header .st-nav{min-height:60px}}

/* Finishing touches: compact menu and visible quote on mobile, never white-on-white. */
@media(max-width:660px){
 html[data-cp-page="detail"] .cpbd-page-header #menu{width:43px!important;min-width:43px;max-width:43px;padding:9px 0!important;justify-content:center!important;white-space:nowrap;font-size:23px;line-height:1}
 html[data-cp-page="detail"] .cpbd-page-header #menu span{display:none!important}
 html[data-cp-page="detail"] .cpbd-page-header .cpbd-v7-actions{gap:5px}
 html[data-cp-page="terms"] .cpbd-page-header #menu{width:43px;min-width:43px;padding:9px 0;justify-content:center}
 html[data-cp-page="terms"] .cpbd-page-header #menu span{display:none!important}
 html[data-cp-page="terms"] .cpbd-page-header .st-quote{display:inline-flex!important;align-items:center;justify-content:center;color:#fff!important}
 html[data-cp-page="terms"] .cpbd-page-header .cpbd-v7-actions{gap:5px;margin-left:auto}
}

html[data-cp-page="detail"] .cpbd-feature-art{position:relative;isolation:isolate;overflow:hidden;min-height:375px;background:linear-gradient(150deg,#1d3975,#40589d,#8164a6)}
html[data-cp-page="detail"] .cpbd-v9-about-art{position:absolute;inset:4%;width:92%;height:92%;object-fit:contain;opacity:.22;pointer-events:none;z-index:-1}
html[data-cp-page="detail"] .cpbd-feature-art strong,html[data-cp-page="detail"] .cpbd-feature-art .cpbd-code-label{position:relative;z-index:1;color:#fff}

/* Preserve original AJAX Request Callback option with accessible glass dialog. */
html[data-cp-page="detail"] button.cpbd-v9-request-callback{cursor:pointer;background:var(--pg-card)!important;color:var(--pg-ink)!important;border:1px solid var(--pg-border)!important;font:800 12px/1.3 Inter,system-ui,sans-serif}
html[data-cp-page="detail"] .cpbd-v9-callback-dialog{border:1px solid var(--pg-border);background:var(--pg-bg);color:var(--pg-ink);padding:25px;border-radius:22px;width:min(95vw,490px);max-height:88dvh;overflow:auto}
html[data-cp-page="detail"] .cpbd-v9-callback-dialog::backdrop{background:#08192db8;backdrop-filter:blur(7px)}
html[data-cp-page="detail"] .cpbd-v9-callback-dialog :is(h2,p,label){color:var(--pg-ink)}
html[data-cp-page="detail"] .cpbd-v9-callback-dialog :is(input,textarea){background:var(--pg-card);color:var(--pg-ink);border:1px solid var(--pg-border);border-radius:12px;padding:11px;width:100%}
html[data-cp-page="detail"] .cpbd-v9-callback-dialog .st-callback-close{position:absolute;right:0;top:0;min-width:35px;min-height:35px;border-radius:50%;border:1px solid var(--pg-border);background:var(--pg-card);color:var(--pg-ink);cursor:pointer}
