/* Public marketing themes only. The signed-in plant app does not load this file.
   Dark is the premium black site from the hub rebuild. Light is the earlier luminous paper site.
   The head script sets data-mkt-theme before paint. prefers-color-scheme is the default
   when nothing is saved in localStorage. */

html[data-mkt-theme="dark"] {
  color-scheme: dark;
  --mkt-scheme: dark;
  --mkt-paper: #0a0a0b;
  --mkt-ink: #fafafa;
  --mkt-ink-2: #e4e4e7;
  --mkt-muted: #a1a1aa;
  --mkt-faint: #71717a;
  --mkt-teal: #2dd4bf;
  --mkt-teal-hover: #5eead4;
  --mkt-teal-press: #14b8a6;
  --mkt-on-teal: #042f2e;
  --mkt-teal-tint: rgba(45, 212, 191, 0.12);
  --mkt-teal-wash: rgba(45, 212, 191, 0.16);
  --mkt-surface: #18181b;
  --mkt-surface-2: #1f1f23;
  --mkt-sunken: #111113;
  --mkt-line: #27272a;
  --mkt-line-soft: #1f1f23;
  --mkt-line-strong: #3f3f46;
  --mkt-topbar: rgba(10, 10, 11, 0.86);
  --mkt-topbar-line: #27272a;
  --mkt-topbar-shadow: none;
  --mkt-glass: #111113;
  --mkt-glass-border: #27272a;
  --mkt-glass-shadow: none;
  --mkt-card: #18181b;
  --mkt-card-border: #27272a;
  --mkt-card-shadow: none;
  --mkt-panel: #111113;
  --mkt-panel-border: #27272a;
  --mkt-panel-shadow: none;
  --mkt-pill: #1f1f23;
  --mkt-pill-shadow: none;
  --mkt-meter: #27272a;
  --mkt-control-bg: #18181b;
  --mkt-control-border: #3f3f46;
  --mkt-control-hover: #1f1f23;
  --mkt-cta-shadow: none;
  --mkt-line-bg: transparent;
  --mkt-line-border: #3f3f46;
  --mkt-line-shadow: none;
  --mkt-line-hover: #18181b;
  --mkt-nav-demo-bg: #2dd4bf;
  --mkt-nav-demo-border: #2dd4bf;
  --mkt-nav-demo-ink: #042f2e;
  --mkt-nav-demo-shadow: none;
  --mkt-nav-demo-weight: 700;
  --mkt-ok: #5eead4;
  --mkt-err: #fca5a5;
  --mkt-shot: #0a0a0b;
  --mkt-focus-bg: #111113;
  --mkt-focus-border: #27272a;
  --mkt-focus-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --mkt-close-bg: #18181b;
  --mkt-close-border: #3f3f46;
  --mkt-close-shadow: none;
  --mkt-close-hover: #1f1f23;
  --mkt-play-bg: #2dd4bf;
  --mkt-play-ink: #042f2e;
  --mkt-play-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  --mkt-aurora:
    radial-gradient(42% 28% at 88% -8%, rgba(45, 212, 191, 0.14), transparent 68%),
    #0a0a0b;
  --mkt-blob-1: rgba(45, 212, 191, 0.08);
  --mkt-blob-2: rgba(45, 212, 191, 0.05);
  --mkt-skip-bg: #2dd4bf;
  --mkt-skip-ink: #042f2e;
  --mkt-addon-border: #27272a;
  --mkt-busy: #042f2e;
  --mkt-btn-chip: rgba(4, 47, 46, 0.12);
  --mkt-badge: #5eead4;
  --mkt-badge-on: #ffffff;
  --mkt-header: rgba(10, 10, 11, 0.9);
  --mkt-primary: #2dd4bf;
  --mkt-primary-hover: #5eead4;
  --mkt-primary-press: #14b8a6;
  --mkt-primary-fg: #042f2e;
  --mkt-secondary: #1f1f23;
  --mkt-secondary-hover: #27272a;
  --mkt-input: #3f3f46;
  --mkt-ring-soft: rgba(45, 212, 191, 0.28);
  --ft-paper: #0a0a0b;
  --ft-surface: #18181b;
  --ft-sunken: #111113;
  --ft-line: #27272a;
  --ft-line-soft: #1f1f23;
  --ft-line-strong: #3f3f46;
  --ft-ink: #fafafa;
  --ft-ink-2: #e4e4e7;
  --ft-muted: #a1a1aa;
  --ft-faint: #71717a;
  --ft-teal: #2dd4bf;
  --ft-teal-hover: #5eead4;
  --ft-teal-press: #14b8a6;
  --ft-teal-tint: rgba(45, 212, 191, 0.12);
  --ft-teal-wash: rgba(45, 212, 191, 0.16);
  --background: #0a0a0b;
  --foreground: #fafafa;
  --card: #18181b;
  --card-foreground: #fafafa;
  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --primary-press: #14b8a6;
  --primary-foreground: #042f2e;
  --secondary: #1f1f23;
  --secondary-hover: #27272a;
  --secondary-foreground: #fafafa;
  --muted-foreground: #a1a1aa;
  --accent: #1f1f23;
  --accent-foreground: #fafafa;
  --border: #27272a;
  --input: #3f3f46;
  --ring: #2dd4bf;
  --ring-soft: rgba(45, 212, 191, 0.28);
}

html[data-mkt-theme="light"] {
  color-scheme: light;
  --mkt-scheme: light;
  --mkt-paper: #f5f7fa;
  --mkt-ink: #0f172a;
  --mkt-ink-2: #334155;
  --mkt-muted: #475569;
  --mkt-faint: #64748b;
  --mkt-teal: #0f766e;
  --mkt-teal-hover: #0c655e;
  --mkt-teal-press: #0a574f;
  --mkt-on-teal: #ffffff;
  --mkt-teal-tint: rgba(15, 118, 110, 0.08);
  --mkt-teal-wash: rgba(15, 118, 110, 0.14);
  --mkt-surface: #ffffff;
  --mkt-surface-2: #f8fafc;
  --mkt-sunken: #eef2f6;
  --mkt-line: #e2e8f0;
  --mkt-line-soft: #eef2f6;
  --mkt-line-strong: rgba(15, 23, 42, 0.12);
  --mkt-topbar: rgba(245, 247, 250, 0.72);
  --mkt-topbar-line: rgba(255, 255, 255, 0.7);
  --mkt-topbar-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  --mkt-glass: rgba(255, 255, 255, 0.62);
  --mkt-glass-border: rgba(255, 255, 255, 0.88);
  --mkt-glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 22px 50px rgba(15, 23, 42, 0.12);
  --mkt-card: rgba(255, 255, 255, 0.78);
  --mkt-card-border: rgba(255, 255, 255, 0.92);
  --mkt-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 34px rgba(15, 23, 42, 0.12);
  --mkt-panel: rgba(255, 255, 255, 0.7);
  --mkt-panel-border: rgba(255, 255, 255, 0.9);
  --mkt-panel-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 22px 48px rgba(15, 23, 42, 0.1);
  --mkt-pill: #ffffff;
  --mkt-pill-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  --mkt-meter: rgba(15, 23, 42, 0.08);
  --mkt-control-bg: rgba(255, 255, 255, 0.86);
  --mkt-control-border: rgba(15, 23, 42, 0.1);
  --mkt-control-hover: #ffffff;
  --mkt-cta-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  --mkt-line-bg: rgba(255, 255, 255, 0.82);
  --mkt-line-border: rgba(15, 23, 42, 0.12);
  --mkt-line-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --mkt-line-hover: #ffffff;
  --mkt-nav-demo-bg: rgba(255, 255, 255, 0.8);
  --mkt-nav-demo-border: rgba(15, 23, 42, 0.12);
  --mkt-nav-demo-ink: #0f172a;
  --mkt-nav-demo-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  --mkt-nav-demo-weight: 560;
  --mkt-ok: #166534;
  --mkt-err: #991b1b;
  --mkt-shot: #f8fafc;
  --mkt-focus-bg: rgba(255, 255, 255, 0.62);
  --mkt-focus-border: rgba(255, 255, 255, 0.9);
  --mkt-focus-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 30px 70px rgba(15, 23, 42, 0.16);
  --mkt-close-bg: rgba(255, 255, 255, 0.92);
  --mkt-close-border: rgba(15, 23, 42, 0.1);
  --mkt-close-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --mkt-close-hover: #ffffff;
  --mkt-play-bg: #ffffff;
  --mkt-play-ink: #0f172a;
  --mkt-play-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  --mkt-aurora:
    radial-gradient(46% 38% at 8% -4%, rgba(15, 118, 110, 0.22), transparent 68%),
    radial-gradient(40% 34% at 96% 0%, rgba(56, 189, 248, 0.2), transparent 64%),
    radial-gradient(42% 36% at 84% 100%, rgba(251, 191, 36, 0.14), transparent 70%),
    radial-gradient(34% 30% at 0% 86%, rgba(14, 165, 233, 0.1), transparent 68%),
    #f5f7fa;
  --mkt-blob-1: rgba(45, 212, 191, 0.22);
  --mkt-blob-2: rgba(125, 211, 252, 0.28);
  --mkt-skip-bg: #0f766e;
  --mkt-skip-ink: #ffffff;
  --mkt-addon-border: rgba(15, 23, 42, 0.12);
  --mkt-busy: #ffffff;
  --mkt-btn-chip: rgba(255, 255, 255, 0.28);
  --mkt-badge: #0f766e;
  --mkt-badge-on: #ffffff;
  --mkt-header: rgba(245, 247, 250, 0.9);
  --mkt-primary: #0f766e;
  --mkt-primary-hover: #0c655e;
  --mkt-primary-press: #0a574f;
  --mkt-primary-fg: #ffffff;
  --mkt-secondary: #ffffff;
  --mkt-secondary-hover: #f8fafc;
  --mkt-input: rgba(15, 23, 42, 0.18);
  --mkt-ring-soft: rgba(15, 118, 110, 0.22);
  --ft-paper: #f5f7fa;
  --ft-surface: #ffffff;
  --ft-sunken: #eef2f6;
  --ft-line: #e2e8f0;
  --ft-line-soft: #eef2f6;
  --ft-line-strong: #cbd5e1;
  --ft-ink: #0f172a;
  --ft-ink-2: #334155;
  --ft-muted: #475569;
  --ft-faint: #64748b;
  --ft-teal: #0f766e;
  --ft-teal-hover: #0c655e;
  --ft-teal-press: #0a574f;
  --ft-teal-tint: rgba(15, 118, 110, 0.08);
  --ft-teal-wash: #e7f3f1;
  --background: #f5f7fa;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #0f766e;
  --primary-hover: #0c655e;
  --primary-press: #0a574f;
  --primary-foreground: #ffffff;
  --secondary: #ffffff;
  --secondary-hover: #f8fafc;
  --secondary-foreground: #0f172a;
  --muted-foreground: #475569;
  --accent: #f8fafc;
  --accent-foreground: #0f172a;
  --border: #e2e8f0;
  --input: #cbd5e1;
  --ring: #0f766e;
  --ring-soft: rgba(15, 118, 110, 0.22);
}

.mkt-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--mkt-control-border);
  background: var(--mkt-control-bg);
  color: var(--mkt-ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  flex: 0 0 auto;
}
.mkt-theme:hover { background: var(--mkt-control-hover); }
.mkt-theme-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--mkt-meter);
  box-shadow: inset 0 0 0 1px var(--mkt-line-strong);
}
.mkt-theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mkt-ink);
}
html[data-mkt-theme="dark"] .mkt-theme-thumb {
  transform: translateX(16px);
  background: var(--mkt-teal);
}
html[data-mkt-theme="dark"] .mkt-theme-label[data-when="light"],
html[data-mkt-theme="light"] .mkt-theme-label[data-when="dark"] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mkt-theme-thumb { transition: transform 180ms ease; }
}
