:root[data-theme='dark'] {
  --ink: #f4f1fa;
  --muted: #bbb4c8;
  --line: #383142;
  --bg: #121018;
  --soft: #1a1722;
  --lilac: #271b3d;
  --purple: #a783ff;
  color-scheme: dark;
}
:root[data-theme='dark'] body { background: var(--bg); color: var(--ink); }
:root[data-theme='dark'] .topbar,
:root[data-theme='dark'] .mobile-menu,
:root[data-theme='dark'] .dropdown,
:root[data-theme='dark'] .dashboard,
:root[data-theme='dark'] .dash-main,
:root[data-theme='dark'] .workspace-card,
:root[data-theme='dark'] .feature-card,
:root[data-theme='dark'] .outcome-card,
:root[data-theme='dark'] .artifact-stack,
:root[data-theme='dark'] .connect-demo,
:root[data-theme='dark'] .integration-item,
:root[data-theme='dark'] .other-links a,
:root[data-theme='dark'] .review-panel,
:root[data-theme='dark'] .dash-panel,
:root[data-theme='dark'] .stat-row > div,
:root[data-theme='dark'] .approval-illustration,
:root[data-theme='dark'] .example-process,
:root[data-theme='dark'] .example-section,
:root[data-theme='dark'] .outcomes-section { background: #201c29; color: var(--ink); border-color: var(--line); }
:root[data-theme='dark'] .hero { background: radial-gradient(ellipse 55% 45% at 50% 20%, #271b40 0%, #121018 100%); }
:root[data-theme='dark'] .dash-sidebar,
:root[data-theme='dark'] .other-workspaces,
:root[data-theme='dark'] .permissions,
:root[data-theme='dark'] .flow-section,
:root[data-theme='dark'] .section:nth-of-type(even) { background-color: #191620; }
:root[data-theme='dark'] .btn.secondary,
:root[data-theme='dark'] .connect-demo select,
:root[data-theme='dark'] .mode-option,
:root[data-theme='dark'] .artifact-item { background: #282331; color: #f4f1fa; border-color: #4a4156; }
:root[data-theme='dark'] .nav-cta { background: #e9e0ff; color: #191323; }
:root[data-theme='dark'] .desktop-nav > a,
:root[data-theme='dark'] .navdropdown > button,
:root[data-theme='dark'] .nav-actions .text-link,
:root[data-theme='dark'] .dash-logo,
:root[data-theme='dark'] .dash-top,
:root[data-theme='dark'] .btn.text-button { color: #ebe6f3; }
:root[data-theme='dark'] .brand,
:root[data-theme='dark'] h1,
:root[data-theme='dark'] h2,
:root[data-theme='dark'] h3,
:root[data-theme='dark'] strong { color: var(--ink); }
:root[data-theme='dark'] .btn.primary,
:root[data-theme='dark'] .brandmark { background: #7139ed; color: #fff; }
:root[data-theme='dark'] .hero-glow { background: #6334b933; }
.criavo-theme-toggle { width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; }
.brand-logo-img { display: block; height: 37px; width: auto; max-width: 156px; object-fit: contain; }
footer .brand-logo-img { height: 35px; }
:root[data-theme='dark'] .brand-logo-img { filter: brightness(0) invert(1); }
.criavo-theme-toggle:hover { border-color: var(--purple); }
.criavo-theme-toggle:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.mobile-menu .criavo-theme-toggle { align-self: flex-start; margin: 12px 0; }
@media(max-width: 820px) {
  .topbar .criavo-theme-toggle { margin-left: auto; margin-right: 12px; }
  .mobile-menu .criavo-theme-toggle { display: none; }
  .topbar { gap: 8px; }
}
@media(max-width: 560px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .container { width: 100%; min-width: 0; }
  .hero .cta-row .btn { max-width: 100%; }
  .hero-dashboard, .workspace-visual, .integration-cloud { max-width: 100%; }
  .dashboard { width: 100%; }
  .outcome-grid, .example-layout, .artifact-stack { min-width: 0; }
  .topbar .criavo-theme-toggle { width: 36px; height: 36px; margin-right: 4px; }
}

/* New Business-first free-plan block, keeping the existing theme switch coherent. */
:root[data-theme='dark'] .free-plan-section { background: radial-gradient(ellipse at 10% 35%, #261a37, #15111c 58%, #121018); border-color: var(--line); }
:root[data-theme='dark'] .free-plan-card { background: #201c29; border-color: var(--line); box-shadow: 0 24px 80px #0002; }
:root[data-theme='dark'] .free-plan-copy h2,
:root[data-theme='dark'] .free-plan-card h3,
:root[data-theme='dark'] .free-plan-top strong { color: #f4f1fa; }
:root[data-theme='dark'] .free-plan-row { border-color: var(--line); color: #eee8f5; }
:root[data-theme='dark'] .free-plan-row b { color: #c4a9ff; }
:root[data-theme='dark'] .free-plan-top { border-color: var(--line); }
:root[data-theme='dark'] .free-plan-copy .preview-clarifier,
:root[data-theme='dark'] .free-plan-card > p { color: #bcb3cb; }

/* Semantic aliases for the homepage and a consistent dark palette. */
:root {
  --background: var(--bg);
  --foreground: var(--ink);
  --primary: var(--purple);
  --muted-foreground: var(--muted);
  --soft-primary: #f1eaff;
}
:root[data-theme='dark'] {
  --bg: #111018;
  --soft: #181520;
  --ink: #f4f1f9;
  --muted: #bcb5c8;
  --line: #3d3649;
  --purple: #b592ff;
  --soft-primary: #2a2040;
  --dark-card: #211d2a;
  --dark-raised: #292333;
  --dark-subtle: #1a1722;
  --dark-text-secondary: #c5bccf;
}

/* Header, hero, buttons and navigation. */
:root[data-theme='dark'] .view-home .hero { background: radial-gradient(ellipse 540px 410px at 50% 340px, #291e43, transparent 100%), var(--bg); }
:root[data-theme='dark'] .subhero { background: radial-gradient(ellipse at 50% 30%, #2b1f43, #111018 70%); }
:root[data-theme='dark'] .topbar { background: rgb(24 21 32 / 94%); }
:root[data-theme='dark'] .dropdown { box-shadow: 0 24px 48px #0006; }
:root[data-theme='dark'] .dropdown a:hover,
:root[data-theme='dark'] .mobile-menu a:hover { background: #312541; color: #f5eeff; }
:root[data-theme='dark'] .dropdown small,
:root[data-theme='dark'] .nav-actions .text-link,
:root[data-theme='dark'] .desktop-nav > a,
:root[data-theme='dark'] .navdropdown > button { color: #d3cadf; }
:root[data-theme='dark'] .desktop-nav > a:hover,
:root[data-theme='dark'] .navdropdown > button:hover,
:root[data-theme='dark'] .desktop-nav > a.active { color: #c9afff; }
:root[data-theme='dark'] .criavo-theme-toggle,
:root[data-theme='dark'] .hamburger { background: #292333; color: #f2ecfb; border-color: #50435f; }
:root[data-theme='dark'] .btn.secondary,
:root[data-theme='dark'] .btn.text-button { background: #292333; color: #f3edfb; border-color: #50435f; }
:root[data-theme='dark'] .btn.secondary:hover,
:root[data-theme='dark'] .criavo-theme-toggle:hover { background: #382a4a; border-color: #a885e9; }
:root[data-theme='dark'] .btn.primary { background: #7441df; color: white; }
:root[data-theme='dark'] .btn.primary:hover { background: #8554ed; }
:root[data-theme='dark'] .btn.white { background: #f4ecff; color: #321a5b; }
:root[data-theme='dark'] .nav-cta { background: #ede5fb; color: #201629; }
:root[data-theme='dark'] .hero-proof,
:root[data-theme='dark'] .free-microcopy,
:root[data-theme='dark'] .illustration-caption { color: var(--dark-text-secondary); }
:root[data-theme='dark'] .free-microcopy span { color: #a596b9; }

/* Dashboard and agent activity previews. */
:root[data-theme='dark'] .dash-nav,
:root[data-theme='dark'] .dash-bottom,
:root[data-theme='dark'] .dash-top,
:root[data-theme='dark'] .stat-row small,
:root[data-theme='dark'] .stat-row span,
:root[data-theme='dark'] .agent-line small,
:root[data-theme='dark'] .panel-title > span:last-child,
:root[data-theme='dark'] .dash-greeting > span,
:root[data-theme='dark'] .muted { color: var(--dark-text-secondary); }
:root[data-theme='dark'] .dash-nav.active { background: #382951; color: #d8c0ff; }
:root[data-theme='dark'] .dash-nav:hover { background: #2a2235; }
:root[data-theme='dark'] .tiny-count,
:root[data-theme='dark'] .agent-badge.purple,
:root[data-theme='dark'] .avatar,
:root[data-theme='dark'] .circle-user { background: #44305f; color: #e5d4ff; }
:root[data-theme='dark'] .agent-badge.gray { background: #383343; color: #e3dbea; }
:root[data-theme='dark'] .agent-badge.pale { background: #413521; color: #f2ca8e; }
:root[data-theme='dark'] .agent-line { border-color: var(--line); }
:root[data-theme='dark'] .mini-pill { background: #332740; color: #d5b8ff; border-color: #574269; }
:root[data-theme='dark'] .review-art { background: #35284e; }
:root[data-theme='dark'] .review-purple { color: #e3d4ff; }
:root[data-theme='dark'] .review-meta,
:root[data-theme='dark'] .approve-text small,
:root[data-theme='dark'] .mock-caption { color: #c0b3d1; }
:root[data-theme='dark'] .demo-revise { background: #43364f; color: #f0e8fa; }
:root[data-theme='dark'] .demo-approve { background: #7441df; color: #fff; }
:root[data-theme='dark'] .agent-state { color: #82dfb3; }
:root[data-theme='dark'] .agent-state.amber { color: #edc786; }

/* Section backgrounds, workspace cards and graphic examples. */
:root[data-theme='dark'] .narrative-section,
:root[data-theme='dark'] .workspaces-section,
:root[data-theme='dark'] .connect-section,
:root[data-theme='dark'] .close-section,
:root[data-theme='dark'] .full-workspace { background: var(--dark-subtle); }
:root[data-theme='dark'] .flow-section,
:root[data-theme='dark'] .always-on,
:root[data-theme='dark'] .approval-section { background: var(--bg); }
:root[data-theme='dark'] .narrative-before { background: #25222e; }
:root[data-theme='dark'] .narrative-after { background: linear-gradient(145deg, #29203c, #211c2b); }
:root[data-theme='dark'] .narrative-grid > div { border-color: var(--line); }
:root[data-theme='dark'] .narrative-grid > div > span,
:root[data-theme='dark'] .workspace-copy > span { color: #c1b5ce; }
:root[data-theme='dark'] .scatter span,
:root[data-theme='dark'] .orchestrate,
:root[data-theme='dark'] .full-workspace-note,
:root[data-theme='dark'] .closing-mosaic > div,
:root[data-theme='dark'] .mode-picker { background: var(--dark-card); color: var(--ink); border-color: var(--line); }
:root[data-theme='dark'] .orchestrate small,
:root[data-theme='dark'] .client-stack small { color: var(--dark-text-secondary); }
:root[data-theme='dark'] .orchestrate > span,
:root[data-theme='dark'] .step-icon,
:root[data-theme='dark'] .note-icon,
:root[data-theme='dark'] .check-list li:before { background: #3c2c54; color: #d4baff; border-color: #55416f; }
:root[data-theme='dark'] .orchestrate strong { color: #e2cbff; background: #46315e; }
:root[data-theme='dark'] .flow-line { border-color: #615271; }
:root[data-theme='dark'] .creator-visual { background: #2d2444; }
:root[data-theme='dark'] .business-visual { background: #20352d; }
:root[data-theme='dark'] .agency-visual { background: #3a2933; }
:root[data-theme='dark'] .visual-label,
:root[data-theme='dark'] .visual-chart-title small { color: #c5b5d3; }
:root[data-theme='dark'] .visual-chips span,
:root[data-theme='dark'] .visual-chart,
:root[data-theme='dark'] .client-stack > div { background: #2b2635; color: #f1ebf8; border-color: #50445d; }
:root[data-theme='dark'] .bars i { background: #648e7d; }
:root[data-theme='dark'] .bars i:last-child { background: #67c7a0; }
:root[data-theme='dark'] .workspace-card,
:root[data-theme='dark'] .feature-card,
:root[data-theme='dark'] .integration,
:root[data-theme='dark'] .integration-item,
:root[data-theme='dark'] .other-links a { background: var(--dark-card); border-color: var(--line); color: var(--ink); }
:root[data-theme='dark'] .integration-big { background: #713bd9; color: white; }
:root[data-theme='dark'] .integration-big small { color: #e5d8fc; }
:root[data-theme='dark'] .integration small,
:root[data-theme='dark'] .integration-item small,
:root[data-theme='dark'] .planned,
:root[data-theme='dark'] .mode-option i { color: var(--dark-text-secondary); }
:root[data-theme='dark'] .feature-icon,
:root[data-theme='dark'] .integration-symbol,
:root[data-theme='dark'] .connection-steps > div > span,
:root[data-theme='dark'] .mode-option > span { background: #3d2e54; color: #d2baff; }
:root[data-theme='dark'] .planned { background: #373140; }
:root[data-theme='dark'] .mode-option.selected { background: #392b4c; border-color: #8c6abc; }

/* Approval surfaces, integration forms and workspace examples. */
:root[data-theme='dark'] .approval-message,
:root[data-theme='dark'] .permissions { background: var(--dark-raised); border-color: var(--line); }
:root[data-theme='dark'] .approval-message p { color: #e3dce9; }
:root[data-theme='dark'] .approval-preview,
:root[data-theme='dark'] .agency-client { background: #241f2f; border-color: #493e58; color: #eee9f5; }
:root[data-theme='dark'] .approval-header small,
:root[data-theme='dark'] .approval-preview small,
:root[data-theme='dark'] .agency-client small { color: var(--dark-text-secondary); }
:root[data-theme='dark'] .approval-icon,
:root[data-theme='dark'] .preview-thumbnail { background: #3e3058; color: #e2ccff; }
:root[data-theme='dark'] .review-tag { background: #453621; color: #f6d497; }
:root[data-theme='dark'] .secure-box { background: #332742; color: #e0d0fa; }
:root[data-theme='dark'] .demo-title span { background: #3b2c54; color: #dbc5ff; }
:root[data-theme='dark'] .connect-demo select { color-scheme: dark; }
:root[data-theme='dark'] .agency-frame { background: #2a222c; border-color: #534350; }
:root[data-theme='dark'] .agency-frame > span,
:root[data-theme='dark'] .agency-chip { color: #ddc2d0; }
:root[data-theme='dark'] .business-frame { background: #202f29; border-color: #415a4d; }
:root[data-theme='dark'] .business-frame > span,
:root[data-theme='dark'] .metric-row,
:root[data-theme='dark'] .metric > span { color: #bad5c7; }

/* Campaign outcomes, document preview and Business launch card. */
:root[data-theme='dark'] .outcomes-section { background: var(--bg); border-color: var(--line); }
:root[data-theme='dark'] .example-section { background: linear-gradient(180deg, #1a1623, #17131e); border-color: var(--line); }
:root[data-theme='dark'] .outcomes-head p,
:root[data-theme='dark'] .example-intro p,
:root[data-theme='dark'] .outcome-card p,
:root[data-theme='dark'] .example-stage p,
:root[data-theme='dark'] .marketing-disclaimer,
:root[data-theme='dark'] .artifact-body,
:root[data-theme='dark'] .artifact-footer,
:root[data-theme='dark'] .artifact-title small,
:root[data-theme='dark'] .free-plan-copy > p { color: var(--dark-text-secondary); }
:root[data-theme='dark'] .marketing-kicker,
:root[data-theme='dark'] .outcome-tag,
:root[data-theme='dark'] .example-request-label,
:root[data-theme='dark'] .artifact-header small { color: #bd9dff; }
:root[data-theme='dark'] .outcome-card,
:root[data-theme='dark'] .example-process,
:root[data-theme='dark'] .artifact-stack { background: var(--dark-card); border-color: var(--line); }
:root[data-theme='dark'] .outcome-deliverable,
:root[data-theme='dark'] .artifact-item,
:root[data-theme='dark'] .artifact-header { color: #eee6f5; border-color: var(--line); }
:root[data-theme='dark'] .small-document,
:root[data-theme='dark'] .stage-mark,
:root[data-theme='dark'] .artifact-type,
:root[data-theme='dark'] .document-state,
:root[data-theme='dark'] .artifact-status { background: #3b2b51; color: #d6bdff; border-color: #57416c; }
:root[data-theme='dark'] .example-process blockquote { color: #eee7f8; }
:root[data-theme='dark'] .artifact-title,
:root[data-theme='dark'] .example-stage b { color: #f3eef9; }
:root[data-theme='dark'] .artifact-chevron { color: #dbc9f2; }
:root[data-theme='dark'] .hero-companion-chip { background: #241e30; border-color: #4c3d60; box-shadow: 0 10px 30px #0003; }
:root[data-theme='dark'] .mini-agent-stage { background: radial-gradient(circle, #413061, #2b243b); }
:root[data-theme='dark'] .hero-agent-copy strong { color: #f0e9f8; }
:root[data-theme='dark'] .hero-agent-copy span { color: #c6bbd1; }
:root[data-theme='dark'] .companion-toggle { background: #352942; color: #e1d1f3; border-color: #5a4970; }
:root[data-theme='dark'] .companion-toggle:hover:not(:disabled) { color: #e5d4ff; border-color: #a487df; }
:root[data-theme='dark'] .workspace-launch-badge { background: #342b40; border-color: #564669; color: #d8cddd; }
:root[data-theme='dark'] .workspace-launch-badge.available { background: #3b2b59; border-color: #70539c; color: #e0c9ff; }
:root[data-theme='dark'] .free-plan-top span,
:root[data-theme='dark'] .free-text-link { color: #c9aaff; }
:root[data-theme='dark'] .free-plan-top small { color: #bdb2ca; }
:root[data-theme='dark'] .campaign-preview-heading small,
:root[data-theme='dark'] .campaign-preview-brief > span,
:root[data-theme='dark'] .campaign-preview-list-label span,
:root[data-theme='dark'] .campaign-preview-row small { color: #bfb4cc; }
:root[data-theme='dark'] .campaign-preview-symbol,
:root[data-theme='dark'] .campaign-approval-symbol { background: #432e63; color: #e0c5ff; }
:root[data-theme='dark'] .campaign-preview-approval strong span { color: #c5a6ef; }

:root[data-theme='dark'] :is(a, button, select, summary, input):focus-visible {
  outline: 3px solid #c19aff;
  outline-offset: 3px;
}

/* Neutral dark surfaces across every marketing experience. */
:root[data-theme='dark'] {
  --bg: #09090d;
  --soft: #111117;
  --ink: #f7f7fa;
  --muted: #a1a1ae;
  --line: #292932;
  --dark-card: #191921;
  --dark-raised: #202028;
  --dark-subtle: #111117;
  --dark-text-secondary: #b5b5c0;
  --background: #09090d;
  --foreground: #f7f7fa;
  --surface: #111117;
  --raised: #191921;
  --border: #292932;
  --muted-foreground: #a1a1ae;
  --primary: #6320ee;
  --primary-foreground: #fff;
}
:root[data-theme='dark'] :is(.hero, .view-home .hero, .subhero, .free-plan-section, .final-cta, footer, .topbar) {
  background: var(--bg);
}
:root[data-theme='dark'] :is(.section, .example-section, .narrative-section, .workspaces-section, .connect-section, .close-section, .full-workspace, .other-workspaces, .always-on, .approval-section, .flow-section) {
  background: var(--bg);
  border-color: var(--line);
}
:root[data-theme='dark'] .section:nth-of-type(even) { background: var(--dark-subtle); }
:root[data-theme='dark'] :is(.narrative-before, .narrative-after, .free-plan-card, .creator-visual, .business-visual, .agency-visual, .creator-frame, .business-frame, .agency-frame, .visual-video, .review-art, .approval-preview, .agency-client, .hero-companion-chip, .mini-agent-stage) {
  background: var(--dark-card);
  border-color: var(--line);
}
:root[data-theme='dark'] :is(.dash-sidebar, .permissions, .visual-chips span, .visual-chart, .client-stack > div, .secure-box, .companion-toggle, .btn.secondary, .btn.text-button, .artifact-item, .mode-option, .connect-demo select) {
  background: var(--dark-raised);
  border-color: var(--line);
}
:root[data-theme='dark'] :is(.orb, .hero-glow) { display: none; }

/* Finish the neutral treatment on components that still inherited lilac fills.
   Purple stays on real actions and small status accents, not entire surfaces. */
:root[data-theme='dark'] :is(
  .dashboard, .dash-main, .dash-panel, .stat-row > div, .review-panel,
  .workspace-card, .feature-card, .outcome-card, .example-process,
  .artifact-stack, .connect-demo, .integration-item, .integration,
  .other-links a, .full-workspace-note, .closing-mosaic > div,
  .mode-picker, .approval-illustration, .campaign-workspace-preview,
  .free-plan-card
) {
  background: #191921;
  border-color: #30303a;
  color: var(--ink);
  box-shadow: none;
}
:root[data-theme='dark'] :is(
  .campaign-preview-brief, .campaign-file-icon, .campaign-preview-approval,
  .approval-message, .review-art, .approval-preview, .agency-client,
  .orchestrate, .scatter span, .visual-chart, .client-stack > div,
  .mode-option, .permissions, .secure-box, .artifact-item,
  .example-output > div
) {
  background: #22222a;
  border-color: #35353e;
  color: var(--ink);
}
:root[data-theme='dark'] :is(.hero-companion-chip, .workspace-visual, .mini-agent-stage) {
  background: #191921;
  border-color: #30303a;
  box-shadow: none;
}
:root[data-theme='dark'] .campaign-preview-brief p,
:root[data-theme='dark'] .approval-message p,
:root[data-theme='dark'] .example-process blockquote { color: #e8e8ee; }
:root[data-theme='dark'] :is(.campaign-preview-deliverables, .campaign-preview-row, .outcome-deliverable, .artifact-header, .artifact-item, .agent-line, .free-plan-top, .free-plan-row) {
  border-color: #34343e;
}
:root[data-theme='dark'] :is(.campaign-preview-heading small, .campaign-preview-brief > span, .campaign-preview-list-label span, .campaign-preview-row small, .approval-header small, .artifact-title small, .dash-nav, .dash-bottom) {
  color: #aaaab7;
}
:root[data-theme='dark'] :is(.campaign-example-badge, .campaign-state, .planned, .document-state, .artifact-status) {
  background: #2a2932;
  color: #ccc4d8;
}
:root[data-theme='dark'] :is(.campaign-state.needs-review, .review-tag) {
  background: #3b3120;
  color: #f0c885;
}
:root[data-theme='dark'] :is(.campaign-preview-symbol, .campaign-approval-symbol, .small-document, .stage-mark, .artifact-type, .feature-icon, .approval-icon, .integration-symbol, .check-list li:before) {
  background: #302541;
  color: #c8a9ff;
  border-color: #463653;
}

/* Crisp dark controls and the same interaction contrast across every route. */
:root[data-theme='dark'] .topbar {
  background: rgb(15 15 19 / 96%);
  border-color: #292932;
  box-shadow: none;
}
:root[data-theme='dark'] :is(.dropdown, .mobile-menu) { background: #191921; border-color: #30303a; }
:root[data-theme='dark'] :is(.btn.secondary, .btn.text-button, .mode-option, .connect-demo select, .companion-toggle) {
  background: #202028;
  color: #f4f4f7;
  border-color: #3a3a45;
}
:root[data-theme='dark'] :is(.btn.secondary, .btn.text-button, .mode-option):hover { background: #2a2a33; border-color: #52515f; }
:root[data-theme='dark'] :is(.btn.primary, .demo-approve, .nav-cta) {
  background: #6320ee;
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}
:root[data-theme='dark'] :is(.btn.primary, .demo-approve, .nav-cta):hover { background: #7540f3; }
:root[data-theme='dark'] .nav-cta { color: #fff; }
:root[data-theme='dark'] body[class*='view-'] .final-cta {
  background: #111117;
  border-top: 1px solid #292932;
}
:root[data-theme='dark'] body[class*='view-'] footer { background: #09090d; border-top: 1px solid #292932; }
:root[data-theme='dark'] body[class*='view-'] .free-plan-section { background: #0e0e13; }
:root[data-theme='dark'] .free-plan-card { border-color: #35353e; }
:root[data-theme='dark'] :is(.workspace-card, .feature-card, .outcome-card, .other-links a):hover { border-color: #555061; box-shadow: 0 16px 38px #0003; }
:root[data-theme='dark'] :is(a, button, input, select, summary):focus-visible { outline-color: #b99aff; }

/* Monochrome dark mode: keep violet on the action, never as a page-wide tint.
   Earlier theme rules deliberately used lavender for typography and miniature
   UI surfaces; supersede them without changing the light-mode brand palette. */
:root[data-theme='dark'] {
  --purple: #d4d4dc;
  --lilac: #202028;
  --soft-primary: #111117;
}
:root[data-theme='dark'] :is(
  .hero h1 span, .subhero h1 span, .split-layout h2 em, .final-cta em,
  .creator-word em, .dash-greeting h3 span
) { color: #f2f2f5; }
:root[data-theme='dark'] :is(
  .eyebrow, .marketing-kicker, .outcome-tag, .example-request-label,
  .artifact-header small, .example-label, .prompt-example > span:first-child,
  .closing-mosaic span, .free-plan-top span, .workspace-copy > span,
  .other-links a > span, .visual-label, .review-meta, .campaign-preview-approval strong span,
  .hero-agent-copy span, .free-microcopy span
) { color: #aaaab6; }
:root[data-theme='dark'] .eyedot { background: #c4c4cd; box-shadow: 0 0 0 4px #ffffff12; }
:root[data-theme='dark'] :is(
  .workspace-copy strong, .inline-link, .other-links strong, .free-text-link,
  .workflow-check, .mini-pill, .mode-option b, .free-plan-row b,
  .campaign-preview-approval strong, .review-purple, .artifact-chevron,
  .narrative-after > span, .orchestrate strong
) { color: #e0e0e6 !important; }
:root[data-theme='dark'] :is(
  .marketing-disclaimer, .review-meta, .mock-caption, .free-plan-top small,
  .campaign-preview-approval small, .campaign-preview-heading small,
  .campaign-preview-brief > span, .campaign-preview-list-label span,
  .campaign-preview-row small, .visual-chart-title small
) { color: #a1a1ae; }
:root[data-theme='dark'] :is(
  .campaign-preview-symbol, .campaign-approval-symbol, .small-document,
  .stage-mark, .artifact-type, .feature-icon, .approval-icon,
  .preview-thumbnail, .integration-symbol, .connection-steps > div > span,
  .check-list li:before, .step-icon, .note-icon, .orchestrate > span,
  .mode-option > span, .agent-badge.purple, .tiny-count,
  .avatar, .circle-user, .demo-title span, .mini-pill,
  .secure-box, .workspace-launch-badge.available
) {
  background: #292931;
  border-color: #3b3b45;
  color: #e4e4e9;
}
:root[data-theme='dark'] :is(
  .dash-nav.active, .mode-option.selected, .workspace-launch-badge,
  .campaign-example-badge, .campaign-state, .document-state, .artifact-status,
  .planned, .orchestrate strong
) {
  background: #282830;
  border-color: #44444f;
  color: #dfdfe5;
}
:root[data-theme='dark'] :is(
  .campaign-preview-heading strong, .campaign-preview-list-label strong,
  .campaign-preview-row strong, .campaign-preview-approval strong,
  .artifact-title, .example-stage b, .review-purple
) { color: #f2f2f5; }
:root[data-theme='dark'] :is(
  .integration-big, .review-art, .creator-visual, .business-visual,
  .agency-visual, .creator-frame, .business-frame, .agency-frame,
  .narrative-after, .flow-example, .example-output, .terminal-card,
  .terminal-top, .prompt-example, .approval-preview, .campaign-preview-approval
) {
  background: #202028;
  border-color: #3a3a43;
}
:root[data-theme='dark'] .integration-big { color: #f7f7fa; }
:root[data-theme='dark'] .integration-big small { color: #c4c4cd; }
:root[data-theme='dark'] :is(.demo-revise, .mode-option:hover, .dropdown a:hover, .mobile-menu a:hover) {
  background: #303038;
  color: #f2f2f5;
}
:root[data-theme='dark'] .demo-revise { border: 1px solid #464650; }
:root[data-theme='dark'] .flow-line { border-color: #55555f; }
:root[data-theme='dark'] .creator-timeline span:nth-child(3) { background-color: #50505b; }
:root[data-theme='dark'] :is(.cursor, .task-doing, .prompt-icon, .small-star) { color: #d4d4dc; }
:root[data-theme='dark'] :is(.creator-timeline span, .review-art, .campaign-preview-approval) { box-shadow: none; }
:root[data-theme='dark'] .mode-option.selected { border: 1px solid #64646f; }
:root[data-theme='dark'] .desktop-nav > a.active,
:root[data-theme='dark'] .desktop-nav > a:hover,
:root[data-theme='dark'] .navdropdown > button:hover,
:root[data-theme='dark'] .narrative-after > span { color: #f7f7fa !important; }
:root[data-theme='dark'] :is(.criavo-theme-toggle, .hamburger):hover {
  border-color: #72727d;
  background: #2c2c35;
}
:root[data-theme='dark'] :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #f0f0f4;
  outline-offset: 3px;
}
:root[data-theme='dark'] .permissions input { accent-color: #d4d4dc; }
:root[data-theme='dark'] .mobile-start-link { color: #f7f7fa !important; }
