html { color-scheme: light; }
/* explicit dark */
/* purpleDrop dark mode. Loaded last. Follows the visitor's device setting
   unless they pick a theme with the footer switch (stored in this browser). */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #13101B;
  --cream: #1A1626;
  --tint: #1A1626;
  --white: #1A1626;
  --ink: #F1EDF8;
  --ink-soft: #CBC4DA;
  --ink-faint: #A59EB8;
  --line: #342D47;
  --accent: #C4B0FF;
  --accent-deep: #D9CBFF;
  --accent-tint: #2B2247;
  --accent-line: #43386B;
  --violet: #B79DFF;
  --violet-deep: #D4C4FF;
  --nav-box: #2B2247;
}
html[data-theme="dark"], html[data-theme="dark"] body { background: #13101B !important; color: var(--ink); }
html[data-theme="dark"] main > section:not(.section-dark), html[data-theme="dark"] main > section.hero, html[data-theme="dark"] main > section:not(.section-dark):not(.hero),
html[data-theme="dark"] .section-cream, html[data-theme="dark"] .fold > section, html[data-theme="dark"] .fold .section-cream, html[data-theme="dark"] .fold-section, html[data-theme="dark"] .hero, html[data-theme="dark"] .bg-paper { background: #13101B !important; }
html[data-theme="dark"] body::after { opacity: .02; }

/* header and menus */
html[data-theme="dark"] .site-header { background: #13101B; border-bottom: 1px solid #2A2339; }
html[data-theme="dark"] .mobile-menu { background: #1A1626; border-top: 1px solid var(--line); }
html[data-theme="dark"] .mobile-menu a { color: var(--ink); border-bottom-color: var(--line); }
html[data-theme="dark"] .mobile-menu a[aria-current="page"], html[data-theme="dark"] #pd-mobile-menu a[aria-current="page"], html[data-theme="dark"] .mobile-menu a:active { background: var(--accent-tint); color: #fff; box-shadow: inset 0 -4px 0 #F97316; }
html[data-theme="dark"] .mobile-menu a.cta { background: #6D28D9; color: #fff; }
html[data-theme="dark"] .nav-toggle { color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .nav-toggle:hover { background: var(--accent-tint); }
html[data-theme="dark"] .main-nav a { color: var(--ink-soft); }
html[data-theme="dark"] .main-nav a:hover, html[data-theme="dark"] .main-nav a[aria-current="page"] { color: #fff; }
html[data-theme="dark"] .brand-tag { color: var(--ink-faint); }
html[data-theme="dark"] .brand, html[data-theme="dark"] .brand-name { color: var(--ink); }

/* high-contrast keyboard focus on dark header and floating phone CTA */
html[data-theme="dark"] .main-nav a:focus-visible, html[data-theme="dark"] .header-cta .btn:focus-visible, html[data-theme="dark"] .mobile-cta:focus-visible, html[data-theme="dark"] .nav-toggle:focus-visible { outline-color: #B79DFF; }

/* buttons: keep the purple, make light-on-dark hover states work */
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .header-cta .btn-primary, html[data-theme="dark"] header.sticky a.btn, html[data-theme="dark"] .btn-light { background: #6D28D9; color: #fff; }
html[data-theme="dark"] .btn-primary:hover, html[data-theme="dark"] .header-cta .btn-primary:hover, html[data-theme="dark"] header.sticky a.btn:hover { background: #7C3AED; color: #fff; }
html[data-theme="dark"] .section-dark .btn-light { background: #fff; color: #4C1D95; }
html[data-theme="dark"] .section-dark .btn-light:hover { background: #EDE9FE; color: #4C1D95; }
html[data-theme="dark"] .btn-outline { border-color: #6F6786; color: var(--ink); background: transparent; }
html[data-theme="dark"] .btn-outline:hover { background: var(--ink); color: #13101B; border-color: var(--ink); }
html[data-theme="dark"] .section-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
html[data-theme="dark"] .section-dark .btn-outline:hover { background: #fff; color: #4C1D95; }
html[data-theme="dark"] .btn-on-dark { background: #6D28D9; color: #fff; }
html[data-theme="dark"] .btn-outline-on-dark { border-color: #6F6786; color: var(--ink); }
html[data-theme="dark"] .btn-outline-on-dark:hover { background: var(--ink); color: #13101B; }
html[data-theme="dark"] .mobile-cta { background: #6D28D9; color: #fff; }

/* cards, panels, forms */
html[data-theme="dark"] .ai-panel, html[data-theme="dark"] .sample-review .sheet, html[data-theme="dark"] .form-card, html[data-theme="dark"] .prompt-text, html[data-theme="dark"] .ai-panel-head { background: #1A1626; border-color: var(--line); }
html[data-theme="dark"] .ai-panel { box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); }
html[data-theme="dark"] .chat-q, html[data-theme="dark"] .sheet-head { background: #221C33; border-color: var(--line); }
html[data-theme="dark"] .chat-missing, html[data-theme="dark"] .example-tag, html[data-theme="dark"] .flow .gate { background: var(--accent-tint); color: var(--accent-deep); }
html[data-theme="dark"] #journey-sample .q-panel { background: #1A1626; border-color: var(--line); }
html[data-theme="dark"] #journey-sample .q-sample li, html[data-theme="dark"] #journey-sample .q-sample li:first-child { border-color: var(--line); }
html[data-theme="dark"] .q-sample li::before { background: var(--accent-tint); color: var(--accent-deep); }
html[data-theme="dark"] .card, html[data-theme="dark"] .price-note, html[data-theme="dark"] .path-card, html[data-theme="dark"] .prompt-box { border-top-color: #6F6786; background: transparent; }
html[data-theme="dark"] .path-card, html[data-theme="dark"] .path-card.alt { border-top-color: #6F6786; }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { background: #1A1626; border-color: #4A4160; color: var(--ink); }
html[data-theme="dark"] .field input::placeholder, html[data-theme="dark"] .field textarea::placeholder { color: #8F88A3; }
html[data-theme="dark"] .field input[readonly] { background: #221C33; color: var(--ink-soft); }
html[data-theme="dark"] .status { color: var(--accent-deep); }
html[data-theme="dark"] .choice { background: #1A1626; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .choice[aria-pressed="true"] { background: #6D28D9; border-color: #6D28D9; color: #fff; }
html[data-theme="dark"] .stage-num, html[data-theme="dark"] .steps li::before, html[data-theme="dark"] .flow .n { background: #1A1626; color: var(--violet); border-color: var(--violet); }
html[data-theme="dark"] .stage.is-active .stage-num, html[data-theme="dark"] .stage.is-match .stage-num { background: #6D28D9; border-color: #6D28D9; color: #fff; }
html[data-theme="dark"] .flow .n-o { background: #C2410C; border-color: #C2410C; color: #fff; }
html[data-theme="dark"] .pin { background: #6D28D9; color: #fff; }
html[data-theme="dark"] .match-tag { background: #6D28D9; color: #fff; }
html[data-theme="dark"] .pd-steps li { color: var(--ink-faint); }
html[data-theme="dark"] .pd-steps li.is-current, html[data-theme="dark"] .pd-steps li.is-done { color: var(--accent-deep); }
html[data-theme="dark"] .pd-steps li.is-done .n { background: #6D28D9; border-color: #6D28D9; color: #fff; }
html[data-theme="dark"] .fold-i { background: #1A1626; border-color: var(--violet); }
html[data-theme="dark"] .fold > summary:hover .fold-i::before, html[data-theme="dark"] .fold > summary:hover .fold-i::after { background: #fff; }
html[data-theme="dark"] .skip-link { background: var(--ink); color: #13101B; }
html[data-theme="dark"] .slot-missing .bar { background: #3A3150; }
html[data-theme="dark"] .sk { background: #3A3150; }
html[data-theme="dark"] ::selection { background: #43386B; color: #fff; }
html[data-theme="dark"] .stage-num { box-shadow: 0 0 0 4px #13101B, 0 6px 14px -6px rgba(0,0,0,.6); }

/* links in body copy */
html[data-theme="dark"] a { color: var(--accent); }
html[data-theme="dark"] a:hover { color: var(--accent-deep); }
html[data-theme="dark"] .btn, html[data-theme="dark"] .btn:hover { text-decoration: none; }

/* illustrations: same drawings on dark tiles */
html[data-theme="dark"] .ill .w { fill: #231D36; }
html[data-theme="dark"] .ill .v { fill: #2D2450; }
html[data-theme="dark"] .ill .t { fill: #3A2A22; }
html[data-theme="dark"] .ill .o { stroke: #FB923C; }
html[data-theme="dark"] .ill .a { fill: #FB923C; }
html[data-theme="dark"] .ill .l { stroke: #B79DFF; }
html[data-theme="dark"] .ill .s { fill: #B79DFF; }
html[data-theme="dark"] .path-art .o { stroke: #FB923C; }
html[data-theme="dark"] .path-card.alt .path-art .f { fill: #FB923C; stroke: #FB923C; }
html[data-theme="dark"] .hero-art .dot-o { fill: #FB923C; }
html[data-theme="dark"] #pdLav stop:first-child { stop-color: #3B2D69; }
html[data-theme="dark"] #pdLav stop:last-child { stop-color: #241C3D; }
html[data-theme="dark"] #pdPeach stop:first-child { stop-color: #4A3023; }
html[data-theme="dark"] #pdPeach stop:last-child { stop-color: #6B4126; }
html[data-theme="dark"] #pdBar stop:first-child { stop-color: #3B2D69; }
html[data-theme="dark"] #pdBar stop:last-child { stop-color: #5A3A25; }

/* footer is already dark purple in both themes; keep it a step darker than the page */
html[data-theme="dark"] .site-footer { background: #0D0A14; border-top: 1px solid #2A2339; color: rgba(255,255,255,.85); }
html[data-theme="dark"] .site-footer .brand-name b { color: #C4B5FD !important; }


/* device is dark and the visitor has not chosen light */
@media (prefers-color-scheme: dark) {
/* purpleDrop dark mode. Loaded last. Follows the visitor's device setting
   unless they pick a theme with the footer switch (stored in this browser). */
html:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #13101B;
  --cream: #1A1626;
  --tint: #1A1626;
  --white: #1A1626;
  --ink: #F1EDF8;
  --ink-soft: #CBC4DA;
  --ink-faint: #A59EB8;
  --line: #342D47;
  --accent: #C4B0FF;
  --accent-deep: #D9CBFF;
  --accent-tint: #2B2247;
  --accent-line: #43386B;
  --violet: #B79DFF;
  --violet-deep: #D4C4FF;
  --nav-box: #2B2247;
}
html:not([data-theme="light"]), html:not([data-theme="light"]) body { background: #13101B !important; color: var(--ink); }
html:not([data-theme="light"]) main > section:not(.section-dark), html:not([data-theme="light"]) main > section.hero, html:not([data-theme="light"]) main > section:not(.section-dark):not(.hero),
html:not([data-theme="light"]) .section-cream, html:not([data-theme="light"]) .fold > section, html:not([data-theme="light"]) .fold .section-cream, html:not([data-theme="light"]) .fold-section, html:not([data-theme="light"]) .hero, html:not([data-theme="light"]) .bg-paper { background: #13101B !important; }
html:not([data-theme="light"]) body::after { opacity: .02; }

/* header and menus */
html:not([data-theme="light"]) .site-header { background: #13101B; border-bottom: 1px solid #2A2339; }
html:not([data-theme="light"]) .mobile-menu { background: #1A1626; border-top: 1px solid var(--line); }
html:not([data-theme="light"]) .mobile-menu a { color: var(--ink); border-bottom-color: var(--line); }
html:not([data-theme="light"]) .mobile-menu a[aria-current="page"], html:not([data-theme="light"]) #pd-mobile-menu a[aria-current="page"], html:not([data-theme="light"]) .mobile-menu a:active { background: var(--accent-tint); color: #fff; box-shadow: inset 0 -4px 0 #F97316; }
html:not([data-theme="light"]) .mobile-menu a.cta { background: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .nav-toggle { color: var(--ink); border-color: var(--line); }
html:not([data-theme="light"]) .nav-toggle:hover { background: var(--accent-tint); }
html:not([data-theme="light"]) .main-nav a { color: var(--ink-soft); }
html:not([data-theme="light"]) .main-nav a:hover, html:not([data-theme="light"]) .main-nav a[aria-current="page"] { color: #fff; }
html:not([data-theme="light"]) .brand-tag { color: var(--ink-faint); }
html:not([data-theme="light"]) .brand, html:not([data-theme="light"]) .brand-name { color: var(--ink); }

/* high-contrast keyboard focus on dark header and floating phone CTA */
html:not([data-theme="light"]) .main-nav a:focus-visible, html:not([data-theme="light"]) .header-cta .btn:focus-visible, html:not([data-theme="light"]) .mobile-cta:focus-visible, html:not([data-theme="light"]) .nav-toggle:focus-visible { outline-color: #B79DFF; }

/* buttons: keep the purple, make light-on-dark hover states work */
html:not([data-theme="light"]) .btn-primary, html:not([data-theme="light"]) .header-cta .btn-primary, html:not([data-theme="light"]) header.sticky a.btn, html:not([data-theme="light"]) .btn-light { background: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .btn-primary:hover, html:not([data-theme="light"]) .header-cta .btn-primary:hover, html:not([data-theme="light"]) header.sticky a.btn:hover { background: #7C3AED; color: #fff; }
html:not([data-theme="light"]) .section-dark .btn-light { background: #fff; color: #4C1D95; }
html:not([data-theme="light"]) .section-dark .btn-light:hover { background: #EDE9FE; color: #4C1D95; }
html:not([data-theme="light"]) .btn-outline { border-color: #6F6786; color: var(--ink); background: transparent; }
html:not([data-theme="light"]) .btn-outline:hover { background: var(--ink); color: #13101B; border-color: var(--ink); }
html:not([data-theme="light"]) .section-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
html:not([data-theme="light"]) .section-dark .btn-outline:hover { background: #fff; color: #4C1D95; }
html:not([data-theme="light"]) .btn-on-dark { background: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .btn-outline-on-dark { border-color: #6F6786; color: var(--ink); }
html:not([data-theme="light"]) .btn-outline-on-dark:hover { background: var(--ink); color: #13101B; }
html:not([data-theme="light"]) .mobile-cta { background: #6D28D9; color: #fff; }

/* cards, panels, forms */
html:not([data-theme="light"]) .ai-panel, html:not([data-theme="light"]) .sample-review .sheet, html:not([data-theme="light"]) .form-card, html:not([data-theme="light"]) .prompt-text, html:not([data-theme="light"]) .ai-panel-head { background: #1A1626; border-color: var(--line); }
html:not([data-theme="light"]) .ai-panel { box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); }
html:not([data-theme="light"]) .chat-q, html:not([data-theme="light"]) .sheet-head { background: #221C33; border-color: var(--line); }
html:not([data-theme="light"]) .chat-missing, html:not([data-theme="light"]) .example-tag, html:not([data-theme="light"]) .flow .gate { background: var(--accent-tint); color: var(--accent-deep); }
html:not([data-theme="light"]) #journey-sample .q-panel { background: #1A1626; border-color: var(--line); }
html:not([data-theme="light"]) #journey-sample .q-sample li, html:not([data-theme="light"]) #journey-sample .q-sample li:first-child { border-color: var(--line); }
html:not([data-theme="light"]) .q-sample li::before { background: var(--accent-tint); color: var(--accent-deep); }
html:not([data-theme="light"]) .card, html:not([data-theme="light"]) .price-note, html:not([data-theme="light"]) .path-card, html:not([data-theme="light"]) .prompt-box { border-top-color: #6F6786; background: transparent; }
html:not([data-theme="light"]) .path-card, html:not([data-theme="light"]) .path-card.alt { border-top-color: #6F6786; }
html:not([data-theme="light"]) .field input, html:not([data-theme="light"]) .field select, html:not([data-theme="light"]) .field textarea { background: #1A1626; border-color: #4A4160; color: var(--ink); }
html:not([data-theme="light"]) .field input::placeholder, html:not([data-theme="light"]) .field textarea::placeholder { color: #8F88A3; }
html:not([data-theme="light"]) .field input[readonly] { background: #221C33; color: var(--ink-soft); }
html:not([data-theme="light"]) .status { color: var(--accent-deep); }
html:not([data-theme="light"]) .choice { background: #1A1626; border-color: var(--line); color: var(--ink); }
html:not([data-theme="light"]) .choice[aria-pressed="true"] { background: #6D28D9; border-color: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .stage-num, html:not([data-theme="light"]) .steps li::before, html:not([data-theme="light"]) .flow .n { background: #1A1626; color: var(--violet); border-color: var(--violet); }
html:not([data-theme="light"]) .stage.is-active .stage-num, html:not([data-theme="light"]) .stage.is-match .stage-num { background: #6D28D9; border-color: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .flow .n-o { background: #C2410C; border-color: #C2410C; color: #fff; }
html:not([data-theme="light"]) .pin { background: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .match-tag { background: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .pd-steps li { color: var(--ink-faint); }
html:not([data-theme="light"]) .pd-steps li.is-current, html:not([data-theme="light"]) .pd-steps li.is-done { color: var(--accent-deep); }
html:not([data-theme="light"]) .pd-steps li.is-done .n { background: #6D28D9; border-color: #6D28D9; color: #fff; }
html:not([data-theme="light"]) .fold-i { background: #1A1626; border-color: var(--violet); }
html:not([data-theme="light"]) .fold > summary:hover .fold-i::before, html:not([data-theme="light"]) .fold > summary:hover .fold-i::after { background: #fff; }
html:not([data-theme="light"]) .skip-link { background: var(--ink); color: #13101B; }
html:not([data-theme="light"]) .slot-missing .bar { background: #3A3150; }
html:not([data-theme="light"]) .sk { background: #3A3150; }
html:not([data-theme="light"]) ::selection { background: #43386B; color: #fff; }
html:not([data-theme="light"]) .stage-num { box-shadow: 0 0 0 4px #13101B, 0 6px 14px -6px rgba(0,0,0,.6); }

/* links in body copy */
html:not([data-theme="light"]) a { color: var(--accent); }
html:not([data-theme="light"]) a:hover { color: var(--accent-deep); }
html:not([data-theme="light"]) .btn, html:not([data-theme="light"]) .btn:hover { text-decoration: none; }

/* illustrations: same drawings on dark tiles */
html:not([data-theme="light"]) .ill .w { fill: #231D36; }
html:not([data-theme="light"]) .ill .v { fill: #2D2450; }
html:not([data-theme="light"]) .ill .t { fill: #3A2A22; }
html:not([data-theme="light"]) .ill .o { stroke: #FB923C; }
html:not([data-theme="light"]) .ill .a { fill: #FB923C; }
html:not([data-theme="light"]) .ill .l { stroke: #B79DFF; }
html:not([data-theme="light"]) .ill .s { fill: #B79DFF; }
html:not([data-theme="light"]) .path-art .o { stroke: #FB923C; }
html:not([data-theme="light"]) .path-card.alt .path-art .f { fill: #FB923C; stroke: #FB923C; }
html:not([data-theme="light"]) .hero-art .dot-o { fill: #FB923C; }
html:not([data-theme="light"]) #pdLav stop:first-child { stop-color: #3B2D69; }
html:not([data-theme="light"]) #pdLav stop:last-child { stop-color: #241C3D; }
html:not([data-theme="light"]) #pdPeach stop:first-child { stop-color: #4A3023; }
html:not([data-theme="light"]) #pdPeach stop:last-child { stop-color: #6B4126; }
html:not([data-theme="light"]) #pdBar stop:first-child { stop-color: #3B2D69; }
html:not([data-theme="light"]) #pdBar stop:last-child { stop-color: #5A3A25; }

/* footer is already dark purple in both themes; keep it a step darker than the page */
html:not([data-theme="light"]) .site-footer { background: #0D0A14; border-top: 1px solid #2A2339; color: rgba(255,255,255,.85); }
html:not([data-theme="light"]) .site-footer .brand-name b { color: #C4B5FD !important; }


}
/* the switch itself (shown in both themes) */
.theme-switch[hidden] { display: none; }
.theme-switch { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-size: .875rem; font-weight: 600; line-height: 1;
  color: rgba(255,255,255,.9); background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .55rem .9rem; cursor: pointer; min-height: 2.5rem; }
.theme-switch:hover { background: rgba(255,255,255,.1); }
.theme-switch:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
.theme-switch .ts-ico { width: 1rem; height: 1rem; flex: none; }
.theme-switch .ts-moon { display: none; }
html.pd-is-dark .theme-switch .ts-sun { display: none; }
html.pd-is-dark .theme-switch .ts-moon { display: block; }
.footer-base { align-items: center; }
