/* One public-site palette. Page-specific layouts and customer form branding stay independent. */
:root,body,#home-page #aiv{
  --bg:#060d29!important;--surface:#111a3d!important;--surface2:#18234a!important;
  --text:#f8faff!important;--muted:#c2cce6!important;--border:#374373!important;--border2:#526398!important;
  --accent:#946bff!important;--accent-text:#c3acff!important;--wash:#946bff1a!important;--accent-wash:#946bff1a!important;--accent-line:#946bff66!important;
  --paper:var(--bg)!important;--card:var(--surface)!important;--ink:var(--text)!important;--ink-soft:var(--muted)!important;--ink-faint:#a6b4d3!important;
  --indigo:var(--accent)!important;--indigo-deep:var(--accent-text)!important;--indigo-wash:var(--wash)!important;--line:var(--border)!important;--line-soft:#37437366!important;
  --brand-cta:linear-gradient(110deg,#284ab2,#7134dc 60%,#8730a8);--brand-header:#060d29f5;--glow:0 12px 32px #5934bb26!important;
  color-scheme:dark;
}
html[data-theme="light"],body[data-theme="light"],html[data-theme="light"] #home-page #aiv,body[data-theme="light"] #aiv{
  --bg:#f5f7ff!important;--surface:#fff!important;--surface2:#edf0fc!important;--text:#152142!important;--muted:#3e4d6c!important;
  --border:#cbd3e9!important;--border2:#a7b4d3!important;--accent:#7134dc!important;--accent-text:#6732bb!important;--wash:#7134dc0c!important;--accent-wash:#7134dc0c!important;--accent-line:#7134dc55!important;
  --ink-faint:#4c5b79!important;--line-soft:#cbd3e980!important;--brand-header:#f5f7fff5;--glow:0 12px 32px #5934bb12!important;color-scheme:light;
}
html{background:var(--bg)}body,#home-page #aiv{background:var(--bg)!important;color:var(--text)!important}
body{font-family:'Geist',system-ui,sans-serif!important;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}h1,h2,h3{font-family:'Geist',system-ui,sans-serif}
nav.top,#home-page #aiv-nav{background:var(--brand-header)!important;border-bottom:1px solid var(--border)!important;box-shadow:0 8px 28px #0000000d}
nav.top img{height:32px;max-width:100%;object-fit:contain}
:where(.card,.cap,.case,.person,.principle,.career-card,.interest,.ads-card,.tool-shell,.service-visual,.solution-card){border-color:var(--border);border-radius:20px}
:where(.eyebrow,.position-eyebrow){color:var(--accent-text)}
:where(.cta-btn,.btn-primary,.button.primary,.btn.primary,.position-button,.neon-primary),.aiv-aivos-nav-link,#home-page #aiv-nav [data-audit-cta],#home-page #aiv-stickycta>a:first-child,#home-page #aiv-menu [data-menu-cta],.offer-tab[aria-selected="true"]{
  background:var(--brand-cta)!important;color:#fff!important;border-color:#8e76d6!important;border-radius:12px;box-shadow:var(--glow);font-weight:650;
}
:where(.ghost-btn,.btn:not(.primary),.button.secondary,.homebtn,.backbtn,.iconbtn,.themebtn,.mobile-service-btn,.assessment-theme,.exit-home){background:var(--surface);color:var(--text);border-color:var(--border2);border-radius:12px}
:where(.toolnav-menu,.aiv-tools-menu,.assessment-tools-menu){background:var(--surface);border-color:var(--border);border-radius:14px}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--accent-text)!important;outline-offset:3px}
body[data-contrast="1"],#home-page #aiv[data-contrast="1"]{--muted:#e0e7ff!important;--border:#93a3d1!important;--border2:#c2ceef!important}
body[data-theme="light"][data-contrast="1"],body[data-theme="light"] #aiv[data-contrast="1"]{--muted:#243256!important;--border:#53658c!important;--border2:#34476f!important}
/* Homepage uses the same light mode as the service, company and assessment pages. */
html[data-theme="light"] #home-page .neon-copy h1,body[data-theme="light"] .neon-copy h1{color:var(--text)!important}
html[data-theme="light"] #home-page .neon-description,body[data-theme="light"] .neon-description{color:var(--muted)!important}
html[data-theme="light"] #home-page .neon-services a,body[data-theme="light"] .neon-services a{color:var(--text)!important}
html[data-theme="light"] #home-page .neon-secondary,body[data-theme="light"] .neon-secondary{background:var(--surface)!important;border-color:var(--border2)!important;color:var(--text)!important}
html[data-theme="light"] #home-page .neon-copy h1 #cms-hero-accent,body[data-theme="light"] .neon-copy h1 #cms-hero-accent{background-image:linear-gradient(110deg,#185c9e,#6732bb 60%,#9b277f)}
/* Keep real brand artwork and product illustrations in their own original colours. */
@media(max-width:759px){
  nav.top{gap:6px!important;padding:12px 14px!important;min-height:72px;justify-content:space-between}
  nav.top>a:first-child{flex:0 1 100px!important;width:100px!important;min-width:65px!important;height:auto!important;overflow:visible!important}
  nav.top>a:first-child img{width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important;object-position:left!important}
  nav.top .mobile-current{display:none!important}
  nav.top .aiv-aivos-nav-link{padding:0 10px!important;min-height:42px;font-size:12px}
  nav.top :is(.iconbtn,.themebtn,.mobile-service-btn,.homebtn){width:40px;min-width:40px;height:42px;min-height:42px}
  nav.top .nav-actions{gap:6px}
}
:root,body,#home-page #aiv{--brand-text-gradient:linear-gradient(110deg,#80d9ff,#b6a1ff 55%,#efabef)}
html[data-theme="light"],body[data-theme="light"],html[data-theme="light"] #home-page #aiv,body[data-theme="light"] #aiv{--brand-text-gradient:linear-gradient(110deg,#185c9e,#6732bb 60%,#9b277f)}
#home-page .neon-copy h1 #cms-hero-accent,.hero h1 em{background-image:var(--brand-text-gradient)!important}

/* Light surfaces need their own text colours; dark product artwork keeps its palette. */
html[data-theme="light"] #home-page .neon-badge,
body[data-theme="light"] .neon-badge{
  color:#402274!important;background:#eee8fb!important;border-color:#8b70bd!important;font-weight:600;
}
html[data-theme="light"] .other :is(.onum,.olink){color:var(--accent-text)!important}
#home-page #aiv .aiv-founder-actions a:last-child,
#home-page #aiv .aiv-footer-actions a:first-child{
  background:var(--brand-cta)!important;color:#fff!important;
}
/* Placeholder copy remains readable without looking like a filled-in value. */
html[data-theme="light"] :is(input,textarea)::placeholder{color:#586680;opacity:1}
html[data-theme="light"] #home-page #aiv-menu{background:var(--bg)!important}
