/* CORBDAY dark theme 0.3.0 preview. Theme only: no copy, structure or paid-state changes.
   Every override is scoped to html[data-site-theme="dark"]; removing the attribute restores the light preview. */
html[data-site-theme="dark"] {
  --ink: #f5f3e9; --muted: #b6c6bb; --paper: #0b1210; --rust: #ed9468; --line: #2a3f34;
  --surface: #121f1a; --elevated: #192b23; --warm: #f5f3e9; --gold: #f3c96a;
  --green: #8bd2a5; --orange: #ed9468; --line-strong: #3a5544; --bronze: #c08a5a; --soft: #c9d6cc;
  color-scheme: dark; background: var(--paper); color: var(--warm);
}
html[data-site-theme="dark"] body { background: var(--paper); color: var(--warm); }
html[data-site-theme="dark"] .site-header { background: var(--paper); border-bottom-color: var(--line); }
html[data-site-theme="dark"] .brand { color: var(--warm); }
html[data-site-theme="dark"] .brand small { color: var(--muted); }
html[data-site-theme="dark"] .brand-mark { border-color: var(--gold); background: var(--surface); color: var(--gold); }
html[data-site-theme="dark"] .brand-mark i { border-color: rgba(243, 201, 106, 0.35); }
html[data-site-theme="dark"] .brand-c { background: var(--surface); color: var(--gold); }
html[data-site-theme="dark"] .skip { background: var(--gold); color: var(--paper); }

/* Real actions are gold; the disabled paid control stays gold-outlined and dark. */
html[data-site-theme="dark"] .button-dark,
html[data-site-theme="dark"] .button-rust,
html[data-site-theme="dark"] .button-light { background: var(--gold); color: var(--paper); box-shadow: none; }
html[data-site-theme="dark"] .button-dark:hover,
html[data-site-theme="dark"] .button-rust:hover,
html[data-site-theme="dark"] .button-light:hover { background: #ffd98a; color: var(--paper); }
html[data-site-theme="dark"] .text-link { color: var(--warm); }
html[data-site-theme="dark"] .text-link:hover,
html[data-site-theme="dark"] .reassurance a,
html[data-site-theme="dark"] .dashboard-window figcaption a,
html[data-site-theme="dark"] .comparison-note a,
html[data-site-theme="dark"] .video-note a,
html[data-site-theme="dark"] .team-callout a { color: var(--gold); }

/* Hero and product frames. Product images keep their own colours and lose the light-theme filter. */
html[data-site-theme="dark"] .hero .eyebrow { color: var(--green); }
html[data-site-theme="dark"] .hero .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(139, 210, 165, 0.16); }
html[data-site-theme="dark"] .hero-lead { color: var(--soft); }
html[data-site-theme="dark"] .dashboard-window { background: var(--surface); border-color: var(--line); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45); }
html[data-site-theme="dark"] .window-bar { background: var(--elevated); border-bottom-color: var(--line); color: var(--soft); }
html[data-site-theme="dark"] .window-dots i { background: #4a6353; }
html[data-site-theme="dark"] .live-pill { color: var(--green); }
html[data-site-theme="dark"] .dashboard-window figcaption { border-top-color: var(--line); color: var(--muted); }
html[data-site-theme="dark"] .dashboard-window img { filter: none; }
html[data-site-theme="dark"] .dashboard-window > a { background: var(--paper); }

/* Free band, dashboard detail, workflow and video. */
html[data-site-theme="dark"] .free-band { background: var(--surface); border-color: var(--line-strong); }
html[data-site-theme="dark"] .band-intro strong { color: var(--warm); }
html[data-site-theme="dark"] .allowance { border-left-color: var(--line); }
html[data-site-theme="dark"] .allowance > b { color: var(--warm); }
html[data-site-theme="dark"] .allowance > span { color: var(--muted); }
html[data-site-theme="dark"] .dashboard-detail { background: var(--surface); border-color: var(--line); box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4); }
html[data-site-theme="dark"] .workflow-notes article { border-top-color: var(--line); }
html[data-site-theme="dark"] .workflow-notes article > span { color: var(--orange); }
html[data-site-theme="dark"] .automation-note { background: var(--elevated); border-left-color: var(--orange); }
html[data-site-theme="dark"] .automation-note strong { color: var(--warm); }
html[data-site-theme="dark"] .product-player { background: var(--paper); border-color: var(--line); }
html[data-site-theme="dark"] .product-player video { background: var(--paper); }
html[data-site-theme="dark"] .product-player video::cue { background: rgba(11, 18, 16, 0.92); color: var(--warm); }

/* Stage illustrations sit on a neutral light tile so their existing artwork stays readable. */
html[data-site-theme="dark"] .stage-section { background: var(--surface); }
html[data-site-theme="dark"] .stage-grid img {
  background: #e9eee6; border-radius: 14px;
  box-shadow: 0 0 0 14px #e9eee6;
}

/* Team, compare, founder and FAQ. */
html[data-site-theme="dark"] .teamwork .large-copy { color: #dfe8dd; }
html[data-site-theme="dark"] .team-callout { background: var(--surface); border-color: var(--line); }
html[data-site-theme="dark"] .team-initials { background: var(--elevated); box-shadow: inset 0 0 0 1px var(--line); color: var(--green); }
html[data-site-theme="dark"] .team-initials i { color: var(--muted); }
html[data-site-theme="dark"] .comparison-scroll { background: var(--surface); border-color: var(--line-strong); }
html[data-site-theme="dark"] .comparison-scroll th,
html[data-site-theme="dark"] .comparison-scroll td { border-bottom-color: var(--line); color: #e7ece5; }
html[data-site-theme="dark"] .comparison-scroll thead th { color: var(--warm); }
html[data-site-theme="dark"] .comparison-scroll th small { color: var(--green); }
html[data-site-theme="dark"] .comparison-scroll .recommended { background: #15241d; color: var(--warm); }
html[data-site-theme="dark"] .comparison-scroll th.recommended { color: var(--green); border-top-color: var(--green); }
html[data-site-theme="dark"] .comparison-scroll tbody th { color: var(--muted); }
html[data-site-theme="dark"] .yes { color: var(--green); }
html[data-site-theme="dark"] .no { color: var(--orange); }
html[data-site-theme="dark"] .founder-section { border-block-color: var(--line); }
html[data-site-theme="dark"] .founder-portrait { background: var(--elevated); }
html[data-site-theme="dark"] .founder-section p:not(.eyebrow) { color: var(--soft); }
html[data-site-theme="dark"] .faq details { border-bottom-color: var(--line); }
html[data-site-theme="dark"] .faq summary { color: var(--warm); }
html[data-site-theme="dark"] .faq details p { color: var(--muted); }

/* Pricing token remap: --pv-forest is text, --pv-white is a surface. */
html[data-site-theme="dark"] .pricing-v2 {
  --pv-forest: #f5f3e9; --pv-forest-deep: #0b1210; --pv-paper: #0b1210; --pv-cream: #121f1a;
  --pv-white: #121f1a; --pv-rust: #ed9468; --pv-rust-deep: #f6b08d; --pv-sage: #192b23;
  --pv-sage-deep: #22382d; --pv-slate: #b6c6bb; --pv-line: #2a3f34; --pv-line-strong: #3a5544;
  --pv-focus: #f3c96a; --pv-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  background: var(--paper); color: var(--warm);
}
html[data-site-theme="dark"] .pricing-v2__plans { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--pv-shadow); }
html[data-site-theme="dark"] .pricing-v2__plan { background: var(--surface); }
html[data-site-theme="dark"] .pricing-v2__plan--free { background: var(--elevated); box-shadow: inset 0 4px 0 var(--gold); }
html[data-site-theme="dark"] .pricing-v2__plan--pro { border-left-color: var(--line-strong); box-shadow: inset 0 4px 0 var(--line-strong); }
html[data-site-theme="dark"] .pricing-v2__chip--open { border-color: rgba(237, 148, 104, 0.5); background: rgba(237, 148, 104, 0.12); color: #f6b08d; }
html[data-site-theme="dark"] .pricing-v2__chip--preview { border-color: var(--line-strong); background: var(--elevated); color: var(--warm); }
html[data-site-theme="dark"] .pricing-v2__toolbar { background: var(--surface); border-color: var(--line-strong); }
html[data-site-theme="dark"] .pricing-v2__segments { background: var(--elevated); border-color: var(--line-strong); }
html[data-site-theme="dark"] .pricing-v2__segments label { color: var(--warm); }
html[data-site-theme="dark"] .pricing-v2__segments label:hover { background: rgba(243, 201, 106, 0.1); }
html[data-site-theme="dark"] .pricing-v2__segments input:checked + label { background: var(--gold); color: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
html[data-site-theme="dark"] .pricing-v2__segments input:focus-visible + label { outline-color: var(--green); }
html[data-site-theme="dark"] .pricing-v2__save { color: var(--orange); }
html[data-site-theme="dark"] .pricing-v2__segments input:checked + label .pricing-v2__save { color: #3d2a08; }
html[data-site-theme="dark"] .pricing-v2__cta--free { background: var(--gold); color: var(--paper); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
html[data-site-theme="dark"] .pricing-v2__cta--free:hover { background: #ffd98a; color: var(--paper); }
html[data-site-theme="dark"] .pricing-v2__cta--free:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
html[data-site-theme="dark"] .pricing-v2__cta--disabled,
html[data-site-theme="dark"] .pricing-v2__cta--disabled:hover {
  background: var(--surface); border-color: rgba(243, 201, 106, 0.55);
  color: #d9c99a; box-shadow: none; opacity: 1; cursor: not-allowed;
}
html[data-site-theme="dark"] .pricing-v2__annual-fallback { background: var(--elevated); border-color: var(--line); color: var(--muted); }
html[data-site-theme="dark"] .pricing-v2__annual-fallback strong,
html[data-site-theme="dark"] .pricing-v2__status strong { color: var(--warm); }
html[data-site-theme="dark"] .pricing-v2__off-note,
html[data-site-theme="dark"] .pricing-v2__no-js { color: var(--muted); }

/* Texting add-on: clean forest panel, warm border, no glow or gradient. */
html[data-site-theme="dark"] .pricing-v2__addon {
  background: var(--surface); border-color: var(--bronze);
  box-shadow: inset 0 3px 0 rgba(192, 138, 90, 0.85);
}
html[data-site-theme="dark"] .pricing-v2__addon-status { color: var(--orange) !important; }
html[data-site-theme="dark"] .pricing-v2__addon-rates { border-block-color: rgba(243, 201, 106, 0.28); }
html[data-site-theme="dark"] .pricing-v2__addon-rate + .pricing-v2__addon-rate { border-left-color: rgba(243, 201, 106, 0.28); }
html[data-site-theme="dark"] .pricing-v2__addon-notes { border-top-color: rgba(243, 201, 106, 0.28); }
html[data-site-theme="dark"] .pricing-v2__addon .pricing-v2__details { border-top-color: rgba(243, 201, 106, 0.28); }
html[data-site-theme="dark"] .pricing-v2__details summary { color: var(--warm); padding-inline: 0.5rem; }
html[data-site-theme="dark"] .pricing-v2__details summary::after { color: var(--orange); }
html[data-site-theme="dark"] .pricing-v2__details-body { color: var(--muted); padding-inline: 0.5rem; }
html[data-site-theme="dark"] .pricing-v2__details-body strong { color: var(--warm); }
html[data-site-theme="dark"] .free-plan { background: var(--elevated); border-color: var(--line); }
html[data-site-theme="dark"] .free-plan li::before { color: var(--green); }

/* Closing band, footer and consent panel. */
html[data-site-theme="dark"] .closing-strip { background: var(--elevated); color: var(--warm); }
html[data-site-theme="dark"] .closing-strip .eyebrow { color: var(--gold); }
html[data-site-theme="dark"] .closing-strip h2 { color: var(--warm); }
html[data-site-theme="dark"] .site-footer { color: var(--muted); }
html[data-site-theme="dark"] .site-footer .brand,
html[data-site-theme="dark"] .site-footer nav a { color: var(--warm); }
html[data-site-theme="dark"] .site-footer nav a:hover { color: var(--gold); }
html[data-site-theme="dark"] .site-footer .small-print { color: var(--muted); }
html[data-site-theme="dark"] .corbot-consent[data-corbot-consent-product="corbday"],
html[data-site-theme="dark"] .corbot-consent-settings[data-corbot-consent-product="corbday"] {
  --corbot-consent-accent: #f3c96a; --corbot-consent-accent-text: #0b1210;
  --corbot-consent-border: rgba(243, 201, 106, 0.3); --corbot-consent-muted: #b6c6bb;
  --corbot-consent-surface: #121f1a; --corbot-consent-text: #f5f3e9;
}

html[data-site-theme="dark"] .button:focus-visible,
html[data-site-theme="dark"] a:focus-visible,
html[data-site-theme="dark"] summary:focus-visible,
html[data-site-theme="dark"] .comparison-scroll:focus-visible { outline-color: var(--green); }

/* 0.5.0 candidate: keep Free green and Pro gold under the dark token remap. */
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__plan-head {
  background: #18322c;
  color: #fbfaf6;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__plan-name,
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__plan-head h3,
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__currency,
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__amount {
  color: #fbfaf6;
}
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__period,
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__price-note {
  color: #d8e5da;
}
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__chip--open {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fbfaf6;
}
html[data-site-theme="dark"] .pricing-v2__plan--free .pricing-v2__price {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
  color: #fbfaf6;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__plan-head {
  background: #f4e8c8;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__plan-name {
  color: #5b3f0a;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__plan-head h3 {
  color: #18322c;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__chip--preview {
  border-color: rgba(122, 84, 16, 0.35);
  background: #fffdf8;
  color: #5b3f0a;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__price {
  border-color: rgba(168, 120, 31, 0.35);
  background: #fffdf8;
  box-shadow: 0 7px 20px rgba(122, 84, 16, 0.1);
  color: #18322c;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__currency,
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__amount {
  color: #18322c;
}
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__period,
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__price-note,
html[data-site-theme="dark"] .pricing-v2__plan--pro .pricing-v2__off-note {
  color: #3f3320;
}

html[data-site-theme="dark"] .pricing-v2__save {
  background: #f4e8c8;
  color: #5b3f0a;
}
html[data-site-theme="dark"] .pricing-v2__segments input:checked + label .pricing-v2__save {
  background: rgba(255, 255, 255, 0.16);
  color: #f7e8c4;
}
html[data-site-theme="dark"] .pricing-v2__cta--disabled,
html[data-site-theme="dark"] .pricing-v2__cta--disabled:hover {
  border: 1px dashed #a99a78;
  background-color: #e7e1d2;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 7px, rgba(0, 0, 0, 0.04) 7px 14px);
  color: #3f3420;
  box-shadow: none;
  text-shadow: none;
}
html[data-site-theme="dark"] .pricing-v2__scanner {
  background: #f4e8c8;
  border-color: #c9a85a;
}
html[data-site-theme="dark"] .pricing-v2__scanner .pricing-v2__chip--preview {
  border-color: rgba(122, 84, 16, 0.35);
  background: #fffdf8;
  color: #5b3f0a;
}
html[data-site-theme="dark"] .pricing-v2__scanner-intro h3,
html[data-site-theme="dark"] .pricing-v2__scanner-points {
  color: #18322c;
}
html[data-site-theme="dark"] .pricing-v2__scanner-intro > p,
html[data-site-theme="dark"] .pricing-v2__scanner-note {
  color: #3f3320;
}

@media (max-width: 560px) {
  html[data-site-theme="dark"] .stage-grid img { box-shadow: 0 0 0 11px #e9eee6; }
}
@media (max-width: 480px) {
  html[data-site-theme="dark"] .pricing-v2__addon-rate + .pricing-v2__addon-rate {
    border-left-color: transparent; border-top-color: rgba(243, 201, 106, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-site-theme="dark"] .button, html[data-site-theme="dark"] .button:hover { transition: none; transform: none; }
}
