/* Dark mode: only when the visitor chooses it (html[data-theme="dark"]). Default is always light. */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"],html[data-theme="dark"] body:not(#x):not(#y){background:#0D0E10;color:#E3E8EE}
html[data-theme="dark"] body:not(#x):not(#y) :is(h1,h2,h3,h4,strong){color:#F2F5F8}
html[data-theme="dark"] body:not(#x):not(#y) :is(p,li,summary,label,span,em){color:#C9D1DA}
html[data-theme="dark"] body:not(#x):not(#y) .kick{color:#0ABAB5}
html[data-theme="dark"] body:not(#x):not(#y) :is(.eyebrow,.step-num){color:#95A0AD!important}
html[data-theme="dark"] body:not(#x):not(#y) :is(.sub,.meta,.fj-by){color:#95A0AD}
html[data-theme="dark"] body:not(#x):not(#y) :is(main,header,footer) a:not([class*="btn"]):not([class*="cta"]){color:#BEE2D9}

/* header */
html[data-theme="dark"] body:not(#x):not(#y) header{background:rgba(13,14,16,.92);border-bottom:1px solid rgba(255,255,255,.08)}
html[data-theme="dark"] body:not(#x):not(#y) header img[src*="logo"]{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark"] body:not(#x):not(#y) header .nav-links a:not(.cta-link){color:#C9D1DA}

/* surfaces */
html[data-theme="dark"] body:not(#x):not(#y) main section{background:transparent;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] body:not(#x):not(#y) main .card{background:#16181B;border:1px solid rgba(255,255,255,.08);box-shadow:none}
html[data-theme="dark"] body:not(#x):not(#y) main .card :is(h3,p){color:#E3E8EE}
html[data-theme="dark"] body:not(#x):not(#y) main .card p{color:#B4BEC9}
html[data-theme="dark"] body:not(#x):not(#y) .faq-item{background:#16181B;border-color:rgba(255,255,255,.08)}

/* hero ask box */
html[data-theme="dark"] body:not(#x):not(#y) .ask{background:#16181B;border-color:rgba(255,255,255,.1);box-shadow:none}
html[data-theme="dark"] body:not(#x):not(#y) .ask :is(#asktx,#askph){color:#E3E8EE}

/* Pulse panel */
html[data-theme="dark"] body:not(#x):not(#y) main #pulse{background:#12201F;border-top:1px solid rgba(190,226,217,.18);border-bottom:1px solid rgba(190,226,217,.18)}
html[data-theme="dark"] body:not(#x):not(#y) main #pulse :is(h2,h3,.pulse-price strong){color:#F2F5F8}
html[data-theme="dark"] body:not(#x):not(#y) main #pulse :is(p,em,span){color:#B9CEC8}
html[data-theme="dark"] body:not(#x):not(#y) main #pulse .eyebrow{color:#BEE2D9}
html[data-theme="dark"] body:not(#x):not(#y) main #pulse .pulse-free,html[data-theme="dark"] body:not(#x):not(#y) main #pulse .pulse-free a{color:#D6E6E1!important}

/* buttons: sage stays sage with dark text; black secondary flips to cream */
html[data-theme="dark"] body:not(#x):not(#y) :is(main,header,footer):not(#x) :is(a,button).btn-secondary{background:#BEE2D9!important;border-color:#BEE2D9!important;color:#0B0D0E!important}
html[data-theme="dark"] body:not(#x):not(#y) #pulse:not(#x) :is(a,button).pulse-buy.btn{background:#BEE2D9!important;border-color:#BEE2D9!important;color:#0B0D0E!important}
html[data-theme="dark"] body:not(#x):not(#y) #pulse :is(a,button).btn.pulse-see{background:#16181B!important;border-color:#16181B!important;color:#E3E8EE!important}

/* form */
html[data-theme="dark"] body:not(#x):not(#y) .lead-form :is(input,select,textarea){background:#16181B;color:#E3E8EE;border:1px solid rgba(255,255,255,.14)}
html[data-theme="dark"] body:not(#x):not(#y) .lead-form :is(input,select,textarea)::placeholder{color:#8792A0}
html[data-theme="dark"] body:not(#x):not(#y) .lead-form summary{color:#C9D1DA}

/* footer */
html[data-theme="dark"] body:not(#x):not(#y) footer.site-footer{background:#0D0E10;border-top:1px solid rgba(255,255,255,.08)}
html[data-theme="dark"] body:not(#x):not(#y) footer.site-footer :is(p,li,span,strong,.f-title){color:#B4BEC9}
html[data-theme="dark"] body:not(#x):not(#y) footer.site-footer :is(.f-col a,.f-brand a,.f-band a){color:#C9D1DA}
html[data-theme="dark"] body:not(#x):not(#y) footer.site-footer .f-social a{color:#E3E8EE}
html[data-theme="dark"] body:not(#x):not(#y) footer.site-footer :is(.f-band,.f-legal){border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] body:not(#x):not(#y) .journey-band .fj-hook{color:#F2F5F8}
html[data-theme="dark"] body:not(#x):not(#y) .journey-band a.fj-cta{background:#BEE2D9!important;color:#0B0D0E!important}

/* chat launcher keeps the light sage; cookie banner */
html[data-theme="dark"] body:not(#x):not(#y) #cookie-consent-banner{background:#16181B;color:#C9D1DA;border-color:rgba(255,255,255,.1)}

/* theme switch (radio buttons in the footer) */
.f-theme{margin:1rem 0 0;padding:0;border:0;display:flex;align-items:center;gap:.9rem;font-size:.8rem}
.f-theme legend{float:left;padding:0;margin:0 .2rem 0 0;font-weight:600}
.f-theme label{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer}

/* chat launcher stays light sage: keep its text dark and readable */
html[data-theme="dark"] body:not(#x):not(#y) .sc-launch,html[data-theme="dark"] body:not(#x):not(#y) .sc-launch *{color:#0B0D0E!important}

/* "A customer asks AI" label in sage */
html[data-theme="dark"] body:not(#x):not(#y) .ask .asklab{color:#BEE2D9!important}

/* readability fixes: links/summaries with their own inline colours, and the theme switch label */
html[data-theme="dark"] body:not(#x):not(#y) :is(main,footer) a:not([class*="btn"]):not([class*="cta"]){color:#BEE2D9!important}
html[data-theme="dark"] body:not(#x):not(#y) main :is(summary,details>summary){color:#E3E8EE!important}
html[data-theme="dark"] body:not(#x):not(#y) .f-theme,html[data-theme="dark"] body:not(#x):not(#y) .f-theme :is(legend,label){color:#C9D1DA!important}
html[data-theme="dark"] body:not(#x):not(#y) .lead-form :is(.form-more,.form-more summary){background:#16181B!important;border-color:rgba(255,255,255,.14)!important}

html[data-theme="dark"] body:not(#x):not(#y) .journey-band{border-top-color:rgba(255,255,255,.1)}
html[data-theme="dark"] body:not(#x):not(#y) .journey-band .fj-by{color:#95A0AD}

/* Light / Dark radios: sage fill with a dark dot when selected */
.f-theme input{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin:0;border:1.5px solid #0B0D0E;border-radius:50%;background:transparent;display:inline-grid;place-content:center;cursor:pointer}
.f-theme input::before{content:"";width:8px;height:8px;border-radius:50%;background:#0B0D0E;transform:scale(0)}
.f-theme input:checked{background:#BEE2D9}
.f-theme input:checked::before{transform:scale(1)}
.f-theme input:focus-visible{outline:2px solid #0B0D0E;outline-offset:2px}
html[data-theme="dark"] .f-theme input{border-color:#E3E8EE}
html[data-theme="dark"] .f-theme input::before{background:#0B0D0E}
html[data-theme="dark"] .f-theme input:focus-visible{outline-color:#BEE2D9}
html[data-theme="dark"] body:not(#x):not(#y) .hero .lead .lead-1{color:#F2F5F8}
html[data-theme="dark"] body:not(#x):not(#y) .hero .lead .lead-2{color:#B4BEC9}
