/* A warm daylight palette and the original night palette share one hierarchy. */
:root[data-theme="dark"] { --page-bg: #050608; --appearance-ink: #f1f3f7; --appearance-muted: #a3b2c8; --appearance-line: #9db4d325; --appearance-surface: #0c131f; --appearance-gold: #c9ad77; color-scheme: dark; }
:root[data-theme="light"] { --page-bg: #f7f7f3; --bg: #f7f7f3; --ink: #18283e; --text: #18283e; --appearance-ink: #18283e; --appearance-muted: #54657d; --muted: #54657d; --appearance-line: #304b7126; --line: #304b7126; --appearance-surface: #fff; --soft: #edf1f6; --section: #f7f7f3; --appearance-gold: #80612e; --accent: #0562ca; --accent-strong: #0655b0; --accent-ink: #fff; --accent-soft: #0562ca0b; color-scheme: light; }
:root[data-theme] { background: var(--page-bg) !important; }
:root[data-theme] body { background-color: var(--page-bg) !important; color: var(--appearance-ink); }
:root[data-theme="light"] body { background: radial-gradient(ellipse 780px 580px at 90% 210px, #cbdff15e, transparent 78%), var(--page-bg) !important; }
body .nav-tools { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
body .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; height: 44px; padding: 0 13px; border: 1px solid var(--appearance-line); border-radius: 100px; background: var(--appearance-surface); color: var(--appearance-muted); font: 500 12px 'Manrope', sans-serif; cursor: pointer; flex-shrink: 0; touch-action: manipulation; transition: border-color .3s, color .3s, background-color .3s; }
body .theme-toggle[hidden] { display: none; }
body .theme-toggle:hover { border-color: var(--appearance-gold); color: var(--appearance-ink); }
body .theme-toggle svg { width: 18px; height: 18px; }
body .theme-toggle .theme-sun, :root[data-theme="light"] .theme-toggle .theme-moon { display: none; }
:root[data-theme="light"] .theme-toggle .theme-sun { display: block; }
body .theme-toggle:focus-visible { outline: 2px solid #368be7; outline-offset: 4px; }
:root[data-theme="light"] ::selection { background: #aac8ed; color: #18283e; }
:root[data-theme="dark"] ::selection { background: #284a70; color: #f1f3f7; }

/* Daylight landing: every text, control, card and SVG keeps its contrast. */
:root[data-theme="light"] .dn-landing { --ink: #18283e; --line: #304b7126; --gold: #80612e; --surface: #fff; }
:root[data-theme="light"] .dn-landing :is(.hero-lede, .section-copy > p:not(.eyebrow), .section-heading > p, .practice p, .model-explanation, .voice-card figcaption span, .evidence-stats span, .offer-card-features, .contact-copy > p:not(.eyebrow), .faq-list p, .space-note, .proof-loop-heading, .landing-footer, .nav-space, .offer-topline > span:first-child) { color: #54657d; }
:root[data-theme="light"] .dn-landing :is(.voice-card h3, .evidence-stats strong, .offer-card-price, .excerpt-copy strong, .proof-collection summary, .faq-list summary) { color: #18283e; }
:root[data-theme="light"] .dn-landing :is(#hero h1, h2) > span:not(.discovery-word) { color: #687d98; }
:root[data-theme="light"] .dn-landing :is(.landing-section, .landing-footer) { border-color: var(--line); }
:root[data-theme="light"] .dn-landing .nav-space:hover, :root[data-theme="light"] .dn-landing .landing-footer a:hover { color: #0562ca; }
:root[data-theme="light"] .dn-landing .cta { background: #0562ca; border-color: #0562ca; color: #fff; box-shadow: inset 0 1px 0 #ffffff26, 0 12px 24px -18px #0562ca70; }
:root[data-theme="light"] .dn-landing .cta:hover { background: #0655b0; }
:root[data-theme="light"] .dn-landing .model-scene { border-color: #304b7126; background: radial-gradient(ellipse at 82% 0, #d3e2f48a, transparent 75%), #fff; box-shadow: 0 22px 50px -36px #2b456a40; }
:root[data-theme="light"] .dn-landing .journey-heading #model-name { color: #435a78; }
:root[data-theme="light"] .dn-landing .journey-legend { color: #54657d; }
:root[data-theme="light"] .dn-landing .journey-legend i { background: #2867b8; }
:root[data-theme="light"] .dn-landing .journey-legend i:nth-of-type(2) { background: #8c672c; }
:root[data-theme="light"] .dn-landing .journey-scene text { fill: #18283e; }
:root[data-theme="light"] .dn-landing .journey-scene .journey-start { fill: #54657d; }
:root[data-theme="light"] .dn-landing .journey-levels { stroke: #345678; stroke-opacity: .16; }
:root[data-theme="light"] .dn-landing .journey-route { stroke: #587da6; stroke-opacity: .32; }
:root[data-theme="light"] .dn-landing #journey-light stop:first-child { stop-color: #2867b8; }
:root[data-theme="light"] .dn-landing #journey-light stop:last-child { stop-color: #8c672c; }
:root[data-theme="light"] .dn-landing .journey-stations { fill: #fff; stroke: #577caa; }
:root[data-theme="light"] .dn-landing .journey-milestone circle { fill: #f6f8fb; stroke: #53799f; }
:root[data-theme="light"] .dn-landing .journey-milestone path { stroke: #254b7a; }
:root[data-theme="light"] .dn-landing .student-core { fill: #2867b8; }
:root[data-theme="light"] .dn-landing .student-halo { stroke: #2867b8; }
:root[data-theme="light"] .dn-landing .mentor-core { fill: #8c672c; }
:root[data-theme="light"] .dn-landing :is(.mentor-halo, .journey-link) { stroke: #8c672c; }
:root[data-theme="light"] .dn-landing .model-steps button { color: #54657d; border-color: #304b7126; }
:root[data-theme="light"] .dn-landing .model-steps button span { color: #65778f; }
:root[data-theme="light"] .dn-landing .model-steps button[aria-pressed="true"] { color: #18283e; border-color: #8c672c; }
:root[data-theme="light"] .dn-landing .model-steps button[aria-pressed="true"] span { color: #80612e; }
:root[data-theme="light"] .dn-landing .practice-number { color: #80612e; }
:root[data-theme="light"] .dn-landing .practice .horizons { color: #54657d; }
:root[data-theme="light"] .dn-landing .voice-card { background: linear-gradient(135deg, #fff, #f4f7fa); border-color: #304b7126; box-shadow: 0 12px 30px -26px #3d537a50; }
:root[data-theme="light"] .dn-landing .voice-card figcaption > .voice-avatar { color: #80612e; background: linear-gradient(135deg, #f4f1e8, #eaf1fa); border-color: #c4ccd8; }
:root[data-theme="light"] .dn-landing .audio-button { background: #edf3fc; color: #244c7e; border-color: #8baad04f; }
:root[data-theme="light"] .dn-landing .audio-button[aria-pressed="true"] { background: #dceafb; border-color: #2867b8; }
:root[data-theme="light"] .dn-landing .audio-seek { background-image: linear-gradient(90deg, #2867b8 var(--audio-fill), #c2cfdf var(--audio-fill)); }
:root[data-theme="light"] .dn-landing .audio-seek::-webkit-slider-thumb { background: #2867b8; }
:root[data-theme="light"] .dn-landing .audio-seek::-moz-range-thumb { background: #2867b8; }
:root[data-theme="light"] .dn-landing :is(.audio-time, .audio-error) { color: #54657d; }
:root[data-theme="light"] .dn-landing audio { color-scheme: light; }
:root[data-theme="light"] .dn-landing .proof-loop .sp-card { background: #e7ecf2; }
:root[data-theme="light"] .dn-landing .session-excerpt { background: linear-gradient(120deg, #e7effb, #fff 78%); border-color: #304b7126; box-shadow: 0 18px 40px -32px #3d537a45; }
:root[data-theme="light"] .dn-landing .excerpt-art { background: radial-gradient(ellipse at center, #d4e2f88c, transparent 80%); border-color: #304b7126; }
:root[data-theme="light"] .dn-landing .excerpt-art > svg { opacity: 1; }
:root[data-theme="light"] .dn-landing .excerpt-art > svg > path { stroke: #356eac; stroke-opacity: .2; }
:root[data-theme="light"] .dn-landing .excerpt-play { background: #fffffff2; color: #245b9e; border-color: #88a8cb80; box-shadow: 0 6px 24px #3558821f; }
:root[data-theme="light"] .dn-landing .session-excerpt:hover .excerpt-play { background: #fff; color: #80612e; }
:root[data-theme="light"] .dn-landing .excerpt-copy > span { color: #80612e; }
:root[data-theme="light"] .dn-landing .excerpt-action { background: #edf3fc; color: #245b9e; border-color: #88a8cb80; }
:root[data-theme="light"] .dn-landing .mentoring-card { background: linear-gradient(145deg, #fff, #f2f5f9); border-color: #304b7126; box-shadow: 0 18px 42px -34px #3d537a40; }
:root[data-theme="light"] .dn-landing .mentoring-card.elite { background: radial-gradient(ellipse at 20% 0, #cde1fd70, transparent 80%), #f8fbff; border-color: #3978c779; }
:root[data-theme="light"] .dn-landing .offer-badge { color: #245b9e; }
:root[data-theme="light"] .dn-landing .mentoring-card.immersion { background: radial-gradient(ellipse at 90% 0, #d7c6f65e, transparent 80%), #faf7ff; border-color: #9270c76b; }
:root[data-theme="light"] .dn-landing .immersion .offer-topline > span:first-child { color: #6d4798; }
:root[data-theme="light"] .dn-landing .offer-cta { border-color: #88a8cb60; background: #fff9; color: #245b9e; }
:root[data-theme="light"] .dn-landing .elite .offer-cta { background: #0562ca; color: #fff; border-color: #0562ca; }
:root[data-theme="light"] .dn-landing .elite .offer-cta:hover { background: #0655b0; }
:root[data-theme="light"] .dn-landing .immersion .offer-cta { border-color: #9270c74f; background: #eee6fb; color: #6d4798; }
:root[data-theme="light"] .dn-landing .immersion .offer-cta:hover { background: #e5d9f8; }
:root[data-theme="light"] .dn-landing .back-to-top { background: #fffffff0; color: #80612e; border-color: #80612e45; box-shadow: 0 8px 24px -16px #354f77; }
:root[data-theme="light"] .dn-landing .reading-candle-count { color: #54657d; text-shadow: 0 1px 5px #fff; }
:root[data-theme="light"] .dn-landing .reading-candle-track > span { --candle-rgb: 35, 132, 100; }
:root[data-theme="light"] .dn-landing .reading-candle-track > span:nth-child(even) { --candle-rgb: 176, 65, 85; }
:root[data-theme="light"] .dn-landing .sp-viewer { background: #f7f9fc; color: #18283e; border-color: #304b7140; }
:root[data-theme="light"] .dn-landing .sp-toolbar :is(a, button) { color: #245b9e; border-color: #304b7140; }

/* Enrollment, documents and the student space follow the same saved appearance. */
:root[data-theme="light"] .dn-page { --bg: #f7f7f3; --soft: #fff; --line: #304b7126; --muted: #54657d; --dn-gold: #80612e; }
:root[data-theme="light"] .dn-page :is(.lede, .muted, .silver, .simple-footer, .hq-nav nav > a, label, .portal-meta, .portal-content p, .portal-points, .portal-next span, .portal-next p, .portal-followup .dashboard-card span) { color: #54657d !important; }
:root[data-theme="light"] .dn-page :is(h1, h2, h3, .portal-progress strong, .portal-content strong, .portal-next strong, .portal-card strong, .portal-appointment strong, .portal-followup .dashboard-card strong) { color: #18283e; }
:root[data-theme="light"] .dn-page :is(.eyebrow, .portal-top .eyebrow, .dn-demo-checkout legend) { color: #80612e; }
:root[data-theme="light"] .dn-page .dn-page-surface { background: linear-gradient(135deg, #ffffffa8, #ffffff45); border-color: #304b711a; box-shadow: 0 24px 80px #36547a0d; }
:root[data-theme="light"] .dn-page :is(.notice, .checkout-summary, .dashboard-card, .portal-progress, .portal-next, .portal-card, .portal-content, .portal-welcome, .portal-empty, .portal-orders, .portal-followup-grid section, #app section) { background: #ffffffbc; border-color: #304b7126; color: #18283e; }
:root[data-theme="light"] .dn-page :is(.portal-card, .dashboard-card):hover { background: #f2f6fb; }
:root[data-theme="light"] .dn-page :is(input:not([type=checkbox]), select, textarea) { color: #18283e; background: #ffffffdb; border-color: #304b713b; }
:root[data-theme="light"] .dn-page :is(.data-list li, .admin-table td, .admin-table th, .dn-document-section, .dn-enrollment-after, .portal-rule-list > div, .portal-content #rules li, .portal-appointment, .portal-followup) { border-color: #304b7126; }
:root[data-theme="light"] .dn-page .status-label { background: #f2f5fa; border-color: #304b713b; }
:root[data-theme="light"] .dn-page :is(.dn-enrollment-contact, .dn-enrollment-terms, .dn-enrollment-after p, .dn-demo-facts dt) { color: #54657d; }
:root[data-theme="light"] .dn-page .dn-enrollment-secondary { color: #245b9e; border-color: #304b713b; }
:root[data-theme="light"] .dn-page .btn-primary { background: #0562ca; color: #fff; }
:root[data-theme="light"] .dn-page .btn-secondary { background: #edf3fc; border-color: #8baad050; color: #245b9e; }
:root[data-theme="light"] .dn-page .portal-content a:not(.btn-primary):not(.btn-secondary) { color: #0562ca; }
:root[data-theme="light"] .dn-page .portal-content #rules li { color: #54657d; }
:root[data-theme="light"] .dn-page :is(.portal-steps button, .portal-checklist label) { background: #ffffff8c; border-color: #304b7126; color: #18283e; }
:root[data-theme="light"] .dn-page .portal-steps button[aria-current], :root[data-theme="light"] .dn-page .portal-checklist label:has(input:checked) { background: #e4effb; border-color: #749bcb; color: #18283e; }
:root[data-theme="light"] .dn-page .portal-steps small { color: #54657d; }
:root[data-theme="light"] .dn-page :is(.portal-top p, .portal-top h2 span, .portal-progress span) { color: #54657d; }
:root[data-theme="light"] .dn-page .portal-monogram { color: #18283e; text-shadow: 0 0 36px #699eff22; }
:root[data-theme="light"] .dn-page .portal-number { color: #245b9e; background: #e4effb; }
:root[data-theme="light"] .dn-page .portal-progress progress, :root[data-theme="light"] .dn-page .portal-progress progress::-webkit-progress-bar { background: #dbe4f0; }
:root[data-theme="light"] .dn-page .portal-rule-list span, :root[data-theme="light"] .dn-page .portal-content #rules li::before { color: #245b9e; }
:root[data-theme="light"] .dn-page .portal-success { color: #215d4c; background: #e2f2eb; border-color: #91bdae; }
:root[data-theme="light"] .dn-page .dn-demo-checkout { border-color: #304b713b; }
:root[data-theme="light"] .dn-page .error { color: #b33347; }
:root[data-theme="light"] .dn-page .simple-footer { border-color: #304b7126; }
:root[data-theme="light"] :is(.dn-discovery-count, .dn-discovery-count strong, .dn-discovery-top) { color: #54657d; text-shadow: none; }

/* Restrained finishing touches, independent of theme. */
.dn-landing .coaching-journey { border: 1px solid var(--appearance-line); border-radius: 22px; padding: 24px 20px 12px; background: radial-gradient(ellipse at 85% 0, #0781fe0a, transparent 75%), #090e17; box-shadow: inset 0 1px 0 #ffffff06; }
.dn-landing .coaching-journey figcaption { margin-inline: 2px; }
.dn-landing .coaching-journey .journey-heading { margin-inline: 2px; }
.dn-landing .model-explanation { min-height: 42px; }
.dn-landing :is(.mentoring-card, .voice-card, .session-excerpt) { transition: border-color .35s, background-color .35s, box-shadow .4s, translate .5s var(--ease); }
.dn-landing .evidence-stats > div { position: relative; padding-left: 16px; }
.dn-landing .evidence-stats > div::before { content: ''; position: absolute; inset: 3px auto 3px 0; width: 1px; background: linear-gradient(var(--appearance-gold), transparent); opacity: .5; }
.dn-landing .voice-grid { scroll-behavior: smooth; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dn-landing .mentoring-card:hover { translate: 0 -4px; }
  .dn-landing .voice-card:hover { border-color: #698bb96b; }
}
@media (prefers-reduced-motion: no-preference) {
  .theme-switching body, .theme-switching :is(.model-scene, .voice-card, .mentoring-card, .session-excerpt, .dn-page-surface) { transition: background-color .35s, color .35s, border-color .35s; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .dn-landing .coaching-journey { padding-inline: 16px; }
  .dn-landing .journey-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 760px) {
  body .nav-tools { gap: 12px; }
  .dn-landing .coaching-journey { padding: 18px 16px 12px; border-radius: 20px; }
  .dn-landing .model-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dn-landing .model-steps button { min-height: 90px; font-size: 12px; line-height: 1.55; }
  .dn-landing .evidence-stats > div { padding-left: 12px; }
  .dn-landing .evidence-stats strong { font-size: clamp(23px, 6.4vw, 29px); }
}
@media (max-width: 480px) {
  body .theme-toggle { width: 44px; padding: 0; }
  body .theme-toggle span { display: none; }
  body .nav-tools { gap: 10px; }
  .dn-landing .dn-signature-brand img { width: 136px; }
  .dn-page .dn-signature-brand img { width: 136px; }
  .dn-page .hq-nav { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .dn-landing .dn-signature-brand img, .dn-page .dn-signature-brand img { width: 114px; }
  .dn-landing .model-steps button { font-size: 11px; }
  .dn-page .hq-nav nav > a { font-size: 11px; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-landing .voice-grid { scroll-behavior: auto; }
  body .theme-toggle { transition: none; }
}
