/* Midnight Iris: the product-wide chromatic language. */
:root{--ink:#17151d;--ink-2:#27232f;--deep:#25203b;--forest:#6657d8;--muted:#65616d;--paper:#f8f7f4;--warm:#f0eeea;--surface:#fff;--lime:#7566e8;--lime-2:#c7c0ff;--line:#dedce3;--soft-line:#eceaf0;--shadow:0 24px 70px rgba(35,29,62,.1);--canvas:#f8f7f4;--canvas-soft:#efede9;--layer:#fff;--layer-raised:#fff;--text-primary:#17151d;--text-secondary:#65616d;--rule:#dedce3;--rule-soft:#eceaf0;--accent:#7566e8;--accent-soft:#e8e4ff;--inverse:#15121e;--premium-shadow:0 24px 70px rgba(35,29,62,.1);color-scheme:light}
:root[data-color-mode="dark"]{--ink:#f3f1f6;--ink-2:#dcd8e4;--deep:#242033;--forest:#9b8cff;--muted:#a39eaa;--paper:#0e0d12;--warm:#141218;--surface:#17151d;--lime:#9b8cff;--lime-2:#cec7ff;--line:#302c38;--soft-line:#25222c;--shadow:0 28px 85px rgba(0,0,0,.36);--canvas:#0e0d12;--canvas-soft:#15131a;--layer:#17151d;--layer-raised:#1d1a23;--text-primary:#f3f1f6;--text-secondary:#a39eaa;--rule:#302c38;--rule-soft:#25222c;--accent:#9b8cff;--accent-soft:#2a2445;--inverse:#f3f1f6;--premium-shadow:0 28px 85px rgba(0,0,0,.36);color-scheme:dark}
::selection{background:var(--accent);color:var(--accent-ink)}.brand-mark{background:var(--accent);color:var(--accent-ink);box-shadow:none}.nav-cta b{background:var(--accent);color:var(--accent-ink)}.btn-lime{background:var(--accent);color:var(--accent-ink)}.btn-lime:hover{background:#6758d7}.eyebrow,.section-index,.connection-kicker,.compose-intro small{color:var(--accent)}.message i{background:var(--accent);color:var(--accent-ink)}.order-icon i,.timeline i{background:var(--accent)}.order-progress i b{background:var(--accent)}.empty-orbit i{background:var(--accent);color:var(--accent-ink)}.rights-notice{background:var(--accent-soft);color:var(--text-primary)}input:focus,select:focus,textarea:focus,.stacked-form input:focus,.stacked-form select:focus,.stacked-form textarea:focus,.mission-form input:focus,.mission-form select:focus,.mission-form textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 14%,transparent)!important}
.hero{background:radial-gradient(circle at 52% 30%,#302853 0,#191524 43%,#0d0b12 82%)}.hero-glow{background:#8978ff25}.hero-orb{border-color:#9b8cff42}.hero h1 span{color:var(--lime-2)}.hero-badge{border-left-color:#9b8cff99}.hero-badge:after,.hero-scroll i{color:var(--accent)}.hero-badge span{color:#aaa4b6}.hero-actions .btn-lime{color:var(--accent-ink)}.proof-avatars i:nth-child(4){background:var(--accent);color:var(--accent-ink)}.product-showcase{background:radial-gradient(circle at 50% 8%,#302853,#181522 55%,#0d0b12)}.signal-strip{background:var(--accent);color:var(--accent-ink)}.signal-strip i{background:currentColor}.stage-halo{background:#8171f02b}.bento-light{background:var(--accent);color:var(--accent-ink)}.bento-light .impact-bars b{background:currentColor}.workflow-section,.site-footer{background:#111018}.workflow-icon{color:var(--lime-2)}.outcomes-section{background:var(--canvas-soft)}
.auth-story{background:radial-gradient(circle at 14% 84%,#39315f,#191522 56%,#0d0b12)}.auth-story h1 em{color:var(--lime-2)}.auth-benefits li>i{color:var(--lime-2)}.mini-score{background:radial-gradient(circle,#211c35 56%,transparent 59%),conic-gradient(var(--accent) 92%,#ffffff1c 0)}
.pipeline-card,.studio-pipeline{background:radial-gradient(circle at 90% 8%,#39315f,#201b33 48%,#15121e)}.pipeline-card span,.clip-grid span,.pipeline-heading>div>span{color:var(--lime-2)}.progress-track i,.studio-pipeline .progress-track i{background:var(--accent)}.stage-track .is-complete b{background:var(--accent);border-color:var(--accent);color:#fff}.stage-track .is-active b{border-color:var(--accent);color:var(--lime-2);box-shadow:0 0 0 5px #8171f026}.studio-pipeline .export-all,.pipeline-card .btn{background:var(--accent);color:#fff}.clip-placeholder{background:radial-gradient(circle at 50% 20%,#8171f033,transparent 35%),linear-gradient(145deg,#29233f,#15121e)}.clip-placeholder span{color:var(--lime-2)}
.masthead-title h1 em{color:var(--text-secondary)}.platform-wordmark i{background:var(--accent)}.masthead-index,.compose-intro small{color:var(--accent)}.platform-avatar{background:var(--text-primary);color:var(--accent)}.connection-form .btn b{background:#241f39}.connection-back:hover{color:var(--accent)}
.intel-shell{color:var(--text-primary)}.intel-header,.intel-jump,.editorial-section,.editor-actions article,.repurpose-list article{border-color:var(--rule)}.intel-header a,.intel-header p,.intel-transcript p,.reasoning-grid p,.reasoning-grid li,.platform-detail p,.editor-actions p,.publishing-panel>p,.intel-loading p{color:var(--text-secondary)}.intel-jump{background:color-mix(in srgb,var(--canvas) 91%,transparent)}.intel-video{background:#15121e}.waveform i,.confidence-meter i,.prediction-row i b{background:var(--accent)}.score-ring{background:radial-gradient(circle,var(--canvas) 58%,transparent 60%),conic-gradient(var(--accent) calc(var(--score)*1%),var(--rule) 0)}.confidence-meter,.prediction-row i{background:var(--rule)}.reasoning-grid article{border-color:var(--accent)}.platform-strategy summary b{color:var(--accent)}.audience-cloud span{background:color-mix(in srgb,var(--accent) var(--match),var(--canvas-soft));color:var(--text-primary)}.semantic-graph{background:radial-gradient(circle,var(--accent-soft),transparent 67%)}.node{background:var(--layer);box-shadow:0 8px 30px rgba(39,31,72,.1)}.node-topic{background:#25203b;color:#fff}.node-entity{background:var(--accent);color:#fff}.repurpose-list textarea,.destination-list label{background:var(--canvas-soft)}.repurpose-list footer .asset-save{background:var(--text-primary);color:var(--canvas)}.intel-orbit{border-color:var(--accent)}.intel-orbit:after{background:var(--accent)}.pulse{background:var(--accent);box-shadow:0 0 0 9px color-mix(in srgb,var(--accent) 18%,transparent)}
.theme-glyph:after{background:currentColor}.choice-preview:after{background:var(--accent)}.theme-menu>button>b{color:var(--accent)}
:root[data-color-mode="dark"] .app-page{background:linear-gradient(#15131a 0 340px,var(--canvas) 340px)}:root[data-color-mode="dark"] .bento-large,:root[data-color-mode="dark"] .outcomes-section{background:#15131a}:root[data-color-mode="dark"] .bento-light{background:var(--accent);color:#15121e}:root[data-color-mode="dark"] .rights-notice{background:var(--accent-soft);color:#e8e4ef}:root[data-color-mode="dark"] .semantic-graph{background:radial-gradient(circle,#27213e,transparent 67%)}
@media(prefers-reduced-motion:reduce){.hero-glow{animation:none}}

/* User-selectable accents. Monochrome is the calm editorial default. */
:root,:root[data-palette="cobalt"]{--accent:#315eea;--accent-soft:#e5ebff;--lime:#315eea;--lime-2:#a9bbff;--forest:#315eea;--accent-ink:#fff}
:root[data-palette="copper"]{--accent:#b5522d;--accent-soft:#f7e8df;--lime:#b5522d;--lime-2:#efb699;--forest:#9b4325;--accent-ink:#fff}
:root[data-palette="teal"]{--accent:#087f78;--accent-soft:#dcefeb;--lime:#087f78;--lime-2:#8ed5ce;--forest:#08716b;--accent-ink:#fff}
:root[data-palette="mono"]{--accent:#292a2d;--accent-soft:#e8e8e6;--lime:#292a2d;--lime-2:#d0d0cd;--forest:#292a2d;--accent-ink:#fff}
:root[data-color-mode="dark"]{--accent-soft:#1c243b}:root[data-color-mode="dark"][data-palette="cobalt"]{--accent:#7194ff;--lime:#7194ff;--lime-2:#b7c7ff;--forest:#7194ff;--accent-ink:#10131b}:root[data-color-mode="dark"][data-palette="copper"]{--accent:#e48a62;--accent-soft:#342018;--lime:#e48a62;--lime-2:#f2bda4;--forest:#e48a62;--accent-ink:#1b100c}:root[data-color-mode="dark"][data-palette="teal"]{--accent:#58c8be;--accent-soft:#142c29;--lime:#58c8be;--lime-2:#9ce0da;--forest:#58c8be;--accent-ink:#081513}:root[data-color-mode="dark"][data-palette="mono"]{--accent:#e7e7e4;--accent-soft:#29292c;--lime:#e7e7e4;--lime-2:#f1f1ef;--forest:#e7e7e4;--accent-ink:#151518}
.brand-mark,.nav-cta b,.btn-lime,.message i,.stage-track .is-complete b,.studio-pipeline .export-all,.pipeline-card .btn,.node-entity,.download-chip.primary,.intelligence-link{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.btn-lime:hover{background:color-mix(in srgb,var(--accent) 86%,#000)}.hero{background:radial-gradient(circle at 52% 30%,color-mix(in srgb,var(--accent) 30%,#151820) 0,#151820 44%,#0c0e12 82%)}.hero-glow{background:color-mix(in srgb,var(--accent) 24%,transparent)}.hero-orb{border-color:color-mix(in srgb,var(--accent) 38%,transparent)}.product-showcase{background:radial-gradient(circle at 50% 8%,color-mix(in srgb,var(--accent) 25%,#14171e),#14171e 55%,#0c0e12)}.auth-story{background:radial-gradient(circle at 14% 84%,color-mix(in srgb,var(--accent) 27%,#171920),#15171d 56%,#0c0e12)}.pipeline-card,.studio-pipeline{background:radial-gradient(circle at 90% 8%,color-mix(in srgb,var(--accent) 28%,#191b23),#171922 48%,#111319)}.bento-light,.signal-strip{background:var(--accent);color:var(--accent-ink)}.connection-form .btn b{background:var(--accent);color:var(--accent-ink)}

/* Dark-mode contrast audit: replace legacy light-only text and surfaces. */
:root[data-color-mode="dark"] :where(h1,h2,h3,h4,h5,h6,strong,b,blockquote,.workspace-hero,.workspace-section-head,.order-name,.step-content,.create-header,.studio-head,.section-title-row,.clip-body,.deliverables,.timeline,.page-head,.connection-workspace,.connection-empty,.destination-name,.intel-shell,.intel-header-score,.intel-section-label,.quote-block,.dna-grid,.platform-strategy,.prediction-row,.semantic-lists,.repurpose-list,.publishing-panel,.form-card,.auth-brand){color:var(--text-primary)}
:root[data-color-mode="dark"] :where(.workspace-hero p,.workspace-stats span,.workspace-stats small,.workspace-section-head span,.order-name>span,.order-name p,.order-progress span,.premium-empty>span,.premium-empty p,.back-link,.back,.create-header>p,.step-aside b,.step-content>p,.upload-zone>span,.url-zone small,.submit-bar span,.submit-bar p,.studio-head p,.studio-summary span,.section-title-row p,.clip-meta,.clip-hook,.clip-body details p,.audio-preview span,.deliverables p,.deliverables span,dt,.timeline small,.page-head p,.masthead-note p,.masthead-index,.platform-wordmark,.compose-intro p,.compose-intro>span,.connection-form label,.destinations-head>p,.destination-name small,.connection-empty p,.intel-header a,.intel-header p,.intel-header-score span,.section-kicker,.timeline-ruler,.intel-transcript p,.intel-transcript time,.quote-block span,.dna-grid span,.reasoning-grid span,.reasoning-grid p,.reasoning-grid li,.platform-detail span,.platform-detail p,.prediction-row small,.editor-actions span,.editor-actions p,.semantic-lists span,.repurpose-list footer button,.text-button,.publishing-panel>p,.destination-list b,.intel-loading p,.stacked-form .helptext,.stacked-form ul,.mission-form .helptext,.mission-form ul,.form-card>p){color:var(--text-secondary)}
:root[data-color-mode="dark"] :where(.workspace-stats,.premium-empty,.upload-zone,.url-zone,.studio-summary,.clip-card,.panel,.product-window,.social-manager,.connection-workspace,.node){background:var(--layer);color:var(--text-primary);border-color:var(--rule)}
:root[data-color-mode="dark"] :where(.order-icon,.view-switch,.empty-index,.upload-icon,.awaiting-export,.dna-label,.mock-platform i,.destination-list label,.repurpose-list textarea){background:var(--canvas-soft);color:var(--text-primary)}
:root[data-color-mode="dark"] :where(.order-list,.order-row,.order-form,.creation-step,.clip-body details,.deliverables article,.destinations-head,.destination-list,.destination-list article,.intel-header,.intel-jump,.editorial-section,.platform-strategy details,.editor-actions article,.repurpose-list article){border-color:var(--rule)}
:root[data-color-mode="dark"] .studio-summary strong{color:var(--text-primary)}:root[data-color-mode="dark"] .view-switch button{color:var(--text-secondary)}:root[data-color-mode="dark"] .view-switch .active{color:var(--text-primary)}:root[data-color-mode="dark"] .clip-meta .score{background:var(--accent-soft);color:var(--accent)}:root[data-color-mode="dark"] .awaiting-export{color:var(--text-secondary)}:root[data-color-mode="dark"] .bento-light,:root[data-color-mode="dark"] .bento-light h3,:root[data-color-mode="dark"] .signal-strip{color:var(--accent-ink)}:root[data-color-mode="dark"] .btn-lime,:root[data-color-mode="dark"] .brand-mark,:root[data-color-mode="dark"] .nav-cta b{color:var(--accent-ink)}
:root[data-color-mode="dark"] .connection-workspace .destination-list .social-delete:hover{border-color:#b85d66;background:#2a171b;color:#ff9ca5}

/* Contrast-safe supporting copy across every appearance and accent choice. */
.site-footer .footer-main>div>p{color:#a7ada9}
.site-footer .footer-links span{color:#969d99}
.site-footer .footer-links a{color:#d1d5d2}
.site-footer .footer-bottom{color:#a7ada9}
