/*
 * BEGUIGO public-page consolidation layer.
 * Plugin templates keep their own semantic markup and fallback styles. This
 * file aligns them with the canonical theme tokens without moving business
 * logic or content ownership into the theme.
 */
body.beguigo-public-page{--public-shell:min(1180px,calc(100% - 48px));--public-section-y:clamp(64px,8vw,112px);background:var(--beguigo-theme-bg);color:var(--beguigo-theme-text)}
body.beguigo-public-page .beguigo-main{overflow:hidden}
body.beguigo-public-page :where(.nan-challenge-home-page,.bhw-page,.ba-page,.bgbps,.bp-page,.bi-page){background:var(--beguigo-theme-bg);color:var(--beguigo-theme-text);font-family:var(--beguigo-theme-sans);overflow:clip}
body.beguigo-public-page :where(.nan-home-section-inner,.bhw-inner,.ba-inner,.bgbps-wrap,.bp-inner,.bp-hero-inner,.bi-inner,.bi-hero-inner){width:var(--public-shell);max-width:none;margin-inline:auto}
body.beguigo-public-page :where(.nan-home-section,.bhw-section,.ba-section,.bgbps-section,.bp-section,.bi-section){scroll-margin-top:120px}
body.beguigo-public-page :where(.nan-home-section-title,.bhw-heading h2,.ba-heading h2,.bgbps-head h2,.bp-title,.bi-title){font-family:var(--beguigo-theme-display);letter-spacing:-.04em;text-wrap:balance}
body.beguigo-public-page :where(.nan-home-section-subtitle,.bhw-heading p,.ba-heading p,.bgbps-head p,.bp-subtitle,.bi-subtitle){color:var(--beguigo-theme-muted);text-wrap:pretty}
body.beguigo-public-page :where(.nan-home-eyebrow,.bhw-eyebrow,.ba-eyebrow,.bgbps-eyebrow,.bp-eyebrow,.bi-eyebrow){letter-spacing:.12em;text-transform:uppercase;font-weight:900}

/* Canonical CTA treatment. Keep plugin classes so each page still works with another theme. */
body.beguigo-public-page :where(.nan-home-button,.bhw-btn,.ba-btn,.bgbps-btn,.bp-button,.bi-button){border-radius:13px!important;font-family:var(--beguigo-theme-sans);font-weight:900!important;line-height:1.15;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;text-decoration:none}
body.beguigo-public-page :where(.nan-home-button,.bhw-btn,.ba-btn,.bgbps-btn,.bp-button,.bi-button):hover{transform:translateY(-2px)}
body.beguigo-public-page :where(.nan-home-button.main,.bhw-btn:not(.bhw-btn-ghost),.ba-btn:not(.ba-btn-ghost),.bgbps-btn:not(.bgbps-ghost),.bp-button:not(.bp-button-outline),.bi-button:not(.bi-button-outline)){background:linear-gradient(135deg,var(--beguigo-theme-accent),var(--beguigo-theme-accent-strong))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 12px 30px rgba(221,37,45,.2)!important}
body.beguigo-public-page :where(.nan-home-button-outline,.bhw-btn-ghost,.ba-btn-ghost,.bgbps-ghost,.bp-button-outline,.bi-button-outline){background:rgba(255,255,255,.025)!important;color:#f5f7fb!important;border:1px solid var(--beguigo-theme-line)!important;box-shadow:none!important}
body.beguigo-public-page :where(.nan-home-button-outline,.bhw-btn-ghost,.ba-btn-ghost,.bgbps-ghost,.bp-button-outline,.bi-button-outline):hover{background:rgba(255,255,255,.06)!important;border-color:#42516a!important}

/* Shared card language across independently-authored public templates. */
body.beguigo-public-page :where(.nan-home-proof-card,.nan-home-benefit-card,.nan-home-step-card,.nan-home-feature-card,.bhw-card,.bhw-example,.ba-card,.ba-panel,.bgbps-dashboard,.bgbps-smart-card,.bgbps-level-grid>*,.bgbps-improve-grid>*,.bp-card,.bp-step,.bi-card,.bi-step){border-color:var(--beguigo-theme-line-soft)!important;border-radius:var(--beguigo-theme-radius)!important;box-shadow:0 18px 52px rgba(0,0,0,.16)}
body.beguigo-public-page :where(.bhw-card,.ba-card,.ba-panel,.bgbps-dashboard,.bgbps-smart-card,.bp-card,.bi-card){background:linear-gradient(180deg,rgba(24,34,52,.96),rgba(13,21,35,.96))!important}
body.beguigo-public-page :where(.bhw-card,.ba-card,.bgbps-smart-card,.bp-card,.bi-card):hover{border-color:rgba(241,91,93,.28)!important;transform:translateY(-2px)}

/* Home: preserve the plugin's content/sections but make the site shell and cards coherent. */
body.beguigo-public-home .nan-challenge-home-page{margin:0}
body.beguigo-public-home .nan-home-hero{min-height:min(780px,calc(100vh - 148px));display:flex;align-items:center}
body.beguigo-public-home .nan-home-hero-title{max-width:850px;letter-spacing:-.055em;text-wrap:balance}
body.beguigo-public-home .nan-home-hero-text{max-width:700px;color:var(--beguigo-theme-muted)}
body.beguigo-public-home .nan-home-hero-trust{color:#c5cedb}
body.beguigo-public-home .nan-home-floating-card{backdrop-filter:blur(12px);border-color:rgba(255,255,255,.1)!important;box-shadow:var(--beguigo-theme-shadow)}
body.beguigo-public-home .nan-home-proof-value{font-variant-numeric:tabular-nums}
body.beguigo-public-home .nan-home-section:last-child{margin-bottom:0}

/* How it works / About: unify educational content with the core app surfaces. */
body.beguigo-public-how-it-works :where(.bhw-hero,.bhw-dark-panel),body.beguigo-public-about :where(.ba-hero,.ba-dark){background-color:var(--beguigo-theme-bg-soft)!important}
body.beguigo-public-how-it-works .bhw-core,body.beguigo-public-about .ba-core{box-shadow:0 25px 90px rgba(123,98,217,.22)}
body.beguigo-public-how-it-works .bhw-checks li,body.beguigo-public-about .ba-list li{color:#d8dfeb}

/* BPS: BPS Engine owns all live scores/thresholds. Theme only aligns presentation. */
body.beguigo-public-bps .bgbps{--bps-bg:var(--beguigo-theme-bg);--bps-panel:var(--beguigo-theme-surface);--bps-muted:var(--beguigo-theme-muted)}
body.beguigo-public-bps :where(.bgbps-dark,.bgbps-final){background:var(--beguigo-theme-bg-soft)!important}
body.beguigo-public-bps .bgbps-score-core{background:linear-gradient(145deg,#141d31,#0b1220)!important;border-color:rgba(123,98,217,.35)!important;box-shadow:0 24px 80px rgba(123,98,217,.16)}
body.beguigo-public-bps .bgbps-table{border-color:var(--beguigo-theme-line)!important}
body.beguigo-public-bps .bgbps-table :where(th,td){border-color:var(--beguigo-theme-line-soft)!important}

/* Partners/Investors: remove the legacy template-local footer because the theme now owns the global footer. */
body.beguigo-public-partners .bp-footer{display:none!important}
body.beguigo-public-partners .bp-page,body.beguigo-public-investors .bi-page{padding-bottom:0}
body.beguigo-public-partners .bp-card-featured{border-color:rgba(241,91,93,.4)!important;box-shadow:0 20px 65px rgba(221,37,45,.12)}
body.beguigo-public-investors .bi-note{border-color:rgba(216,165,44,.26)!important;background:rgba(216,165,44,.07)!important;color:#e8dfc2!important}
body.beguigo-public-investors details,body.beguigo-public-partners details{border-color:var(--beguigo-theme-line-soft)!important;border-radius:14px!important;background:rgba(255,255,255,.025)!important}
body.beguigo-public-investors details summary,body.beguigo-public-partners details summary{cursor:pointer;color:#f4f6fa;font-weight:850}

/* Forms embedded in public pages. */
body.beguigo-public-page :where(input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],select,textarea){background:#0d1626;color:#fff;border:1px solid var(--beguigo-theme-line);border-radius:11px;min-height:46px;padding:10px 12px;font:inherit}
body.beguigo-public-page textarea{min-height:130px}
body.beguigo-public-page :where(input,select,textarea):focus{outline:2px solid rgba(241,91,93,.24);outline-offset:1px;border-color:rgba(241,91,93,.7)}
body.beguigo-public-page :where(input[type=submit],button[type=submit]){border:0;border-radius:12px;background:linear-gradient(135deg,var(--beguigo-theme-accent),var(--beguigo-theme-accent-strong));color:#fff;font-weight:900;padding:12px 18px;cursor:pointer}

/* Accessibility and motion. */
body.beguigo-public-page :where(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(45,174,199,.62);outline-offset:3px}
@media(prefers-reduced-motion:reduce){body.beguigo-public-page *,body.beguigo-public-page *::before,body.beguigo-public-page *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

@media(max-width:980px){body.beguigo-public-page{--public-shell:min(100% - 30px,1180px)}body.beguigo-public-home .nan-home-hero{min-height:auto}body.beguigo-public-page :where(.nan-home-hero-actions,.bhw-actions,.ba-actions,.bgbps-actions,.bp-actions,.bi-actions){flex-wrap:wrap}}
@media(max-width:640px){body.beguigo-public-page{--public-shell:min(100% - 24px,1180px)}body.beguigo-public-page :where(.nan-home-button,.bhw-btn,.ba-btn,.bgbps-btn,.bp-button,.bi-button){width:100%;justify-content:center}body.beguigo-public-page :where(.nan-home-hero-actions,.bhw-actions,.ba-actions,.bgbps-actions,.bp-actions,.bi-actions){display:grid;grid-template-columns:1fr;width:100%}body.beguigo-public-page :where(.nan-home-section,.bhw-section,.ba-section,.bgbps-section,.bp-section,.bi-section){scroll-margin-top:90px}}
