/* Self-hosted Atkinson Hyperlegible font */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-normal-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-italic-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-normal-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-normal-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* OpenDyslexic — accessibility toolbar option; file lives on main site */
@font-face {
  font-family: 'OpenDyslexic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://hannah.solutions/fonts/OpenDyslexic-Regular.woff2') format('woff2');
}

/* Neurodivergent-friendly palette
   - Off-white background (avoid pure white)
   - Soft teal/blue accents
   - Muted text, good contrast (WCAG AA)
   - Calm, predictable layout
*/
:root {
  --bg: #F8F9FA;
  --bg-section: #FDFDFD;
  --bg-hero: #E8EEF2;
  --text: #2A363B;
  --text-muted: #4F5D64;
  --accent: #457B9D;
  --accent-soft: #A8DADC;
  --accent-warm: #D4A574;
  --bg-header: #EBF4F5;
  --bg-card: #FFFFFF;
  --border: #D0D9DE;
  --focus: #2D5A7B;
}

* {
  box-sizing: border-box;
}

/* Skip navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--focus);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* Atkinson Hyperlegible is designed for readability and dyslexia-friendly */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h2 {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  padding: 2.25rem 0;
  background: var(--bg-header);
  border-bottom: 2px solid var(--accent-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.site-logo {
  height: 90px;
  width: 90px;
  max-height: 90px;
  max-width: 90px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.logo-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

/* Interstitial CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #f9d142 0%, #e8831a 100%);
  padding: 1.5rem 0;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-strip-text {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2A363B;
}

.cta-strip-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.7rem 2rem;
  background: #2A363B;
  color: #f9d142;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}

.cta-strip-btn:hover {
  background: #1a2428;
  color: #f9d142;
  text-decoration: none;
}

.cta-strip-btn:focus-visible {
  outline: 2px solid #2A363B;
  outline-offset: 3px;
}

/* About */
.about-link {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.about-link:hover {
  color: var(--focus);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  padding: 3rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Gradient background — clean and readable */
  background: linear-gradient(135deg, #dce8f0 0%, #e8eff5 45%, #d8e8e4 100%);
  /* Photo kept below in case of revert — swap comments to restore:
  background: var(--bg-hero);
  background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1200&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-problem {
  font-size: 1.2rem;
  color: var(--text);
  border-left: 3px solid var(--accent-warm);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text);
}

/* Sections */
.section {
  padding: 2.5rem 0;
  background: var(--bg-section);
}

.section:nth-child(even) {
  background: var(--bg);
}

.section h2 {
  color: var(--accent);
}

/* Benefits list */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--accent-soft);
  border-radius: 50%;
}

/* Schedule */
.schedule-intro {
  margin-bottom: 1rem;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-list li {
  padding: 0.6rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.time {
  font-weight: 600;
  color: var(--accent);
  min-width: 3.5rem;
}

/* Pricing */
.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pricing-note {
  font-size: 0.95rem;
}

/* How it works */
.how-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.how-list li {
  line-height: 1.6;
}

/* Rules */
.rules-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rules-list li {
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.rules-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Schedule blocks */
.schedule-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.schedule-block {
  display: block;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.schedule-block:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.schedule-block:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.schedule-block-hint {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
.schedule-block:hover .schedule-block-hint,
.schedule-block:focus .schedule-block-hint {
  text-decoration: underline;
}

.schedule-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.schedule-price {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Book / Cal.com */
.book-intro {
  margin-bottom: 1.5rem;
}

.cal-embed-wrapper {
  min-height: 700px;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-links {
  margin-top: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  display: inline-block;
  padding: 0.35rem 0.25rem;
}

/* Responsive header */
@media (max-width: 640px) {
  .site-header {
    padding: 1.25rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-logo {
    height: 60px;
    width: 60px;
    max-height: 60px;
    max-width: 60px;
  }

  .logo-name {
    font-size: 1.5rem;
  }

  .logo-sub {
    font-size: 1rem;
  }

  .tagline {
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    font-size: 0.95rem;
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cta-strip-btn {
    width: 100%;
    text-align: center;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Accessibility toolbar
   ============================================================ */

/* ── Floating trigger ─────────────────────────────────────── */
/* z-index above Cal.com embed / prerender overlays (they use very high values) */
#a11y-trigger {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  z-index: 2147483646;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #4f46e5;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 4px 20px rgba(79, 70, 229, 0.55);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
#a11y-trigger:hover        { background: #4338ca; transform: scale(1.08); }
#a11y-trigger:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
#a11y-trigger svg          { width: 1.5rem; height: 1.5rem; }

/* ── Panel ───────────────────────────────────────────────── */
#a11y-panel {
  position: fixed;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  z-index: 2147483645;
  width: min(22rem, calc(100vw - 2rem));
  background: white;
  border: 1px solid #e0e7ff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 1.25rem;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
}
#a11y-panel[hidden] { display: none; }

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.a11y-panel-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0;
}
#a11y-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
}
#a11y-close:hover        { color: #111; }
#a11y-close:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
#a11y-close svg          { width: 1.1rem; height: 1.1rem; }

/* ── Option rows ─────────────────────────────────────────── */
.a11y-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.a11y-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  font-family: inherit;
  color: #1f2937;
}
.a11y-option:hover        { background: #f5f3ff; }
.a11y-option:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; border-color: #a5b4fc; }
.a11y-option[aria-pressed="true"] { background: #ede9fe; border-color: #a5b4fc; }

.a11y-option--adhd .a11y-icon             { background: #fef3c7; color: #92400e; }
.a11y-option--adhd:hover                  { background: #fffbeb; }
.a11y-option--adhd[aria-pressed="true"]   { background: #fef3c7; border-color: #fbbf24; }
.a11y-option--adhd[aria-pressed="true"] .a11y-toggle { background: #f59e0b; }

.a11y-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #e0e7ff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4338ca;
  font-style: normal;
}
.a11y-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.a11y-label strong { font-size: 0.85rem; font-weight: 600; }
.a11y-label span   { font-size: 0.73rem; color: #6b7280; }

/* Toggle pill */
.a11y-toggle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.4rem;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.a11y-toggle span {
  display: block;
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.a11y-option[aria-pressed="true"] .a11y-toggle              { background: #6366f1; }
.a11y-option[aria-pressed="true"] .a11y-toggle span         { transform: translateX(1.1rem); }

/* Reset button */
#a11y-reset {
  display: block;
  margin-top: 1rem;
  width: 100%;
  padding: 0.5rem;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
#a11y-reset:hover        { border-color: #a5b4fc; color: #4338ca; background: #f5f3ff; }
#a11y-reset:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }

/* ── Spotlight reading ruler ─────────────────────────────── */
#a11y-ruler-mask-top,
#a11y-ruler-mask-bottom {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
  z-index: 2147483640;
  transition: height 0.05s linear, top 0.05s linear;
}
#a11y-ruler-mask-top    { top: 0; }
#a11y-ruler-mask-bottom { bottom: 0; }

#a11y-reading-ruler {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: rgba(99, 102, 241, 0.15);
  border-top: 2px solid rgba(99, 102, 241, 0.5);
  border-bottom: 2px solid rgba(99, 102, 241, 0.5);
  pointer-events: none;
  z-index: 2147483641;
  transform: translateY(-50%);
  transition: top 0.05s linear;
}

/* ── Screen-reader utility ───────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Accessibility mode overrides
   Uses CSS custom properties so dark/contrast modes are clean.
   ============================================================ */

/* Dyslexia-friendly font */
html.a11y-dyslexic,
html.a11y-dyslexic body,
html.a11y-dyslexic p,
html.a11y-dyslexic h1,
html.a11y-dyslexic h2,
html.a11y-dyslexic h3,
html.a11y-dyslexic button,
html.a11y-dyslexic li,
html.a11y-dyslexic a {
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive !important;
  letter-spacing: 0.05em !important;
}

/* Larger text — applied to html so rem values scale */
html.a11y-large-text { font-size: 125% !important; }

/* Extra spacing */
html.a11y-spacing body {
  line-height: 2.1 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.18em !important;
}
html.a11y-spacing p,
html.a11y-spacing li { margin-bottom: 1.25em !important; }

/* High contrast — white backgrounds, black text, visible borders */
html.a11y-high-contrast {
  --bg:         #ffffff;
  --bg-section: #ffffff;
  --bg-hero:    #ffffff;
  --bg-header:  #ffffff;
  --bg-card:    #ffffff;
  --text:       #000000;
  --text-muted: #000000;
  --border:     #000000;
  --accent:     #00008b;
  --accent-soft:#000000;
  --focus:      #000000;
}
html.a11y-high-contrast body,
html.a11y-high-contrast .site-header,
html.a11y-high-contrast .site-footer,
html.a11y-high-contrast .section,
html.a11y-high-contrast .hero,
html.a11y-high-contrast .schedule-block,
html.a11y-high-contrast .cta-strip {
  background-image: none !important;
  box-shadow: none !important;
}
html.a11y-high-contrast .cta-strip { background: #000000 !important; }
html.a11y-high-contrast .cta-strip-text,
html.a11y-high-contrast .cta-strip-btn { color: #ffffff !important; }
html.a11y-high-contrast .cta-strip-btn { border: 2px solid #ffffff !important; background: #000000 !important; }
html.a11y-high-contrast a             { color: #00008b !important; text-decoration: underline !important; }
html.a11y-high-contrast a:visited     { color: #551a8b !important; }
html.a11y-high-contrast :focus-visible { outline: 4px solid #000000 !important; outline-offset: 3px !important; }
html.a11y-high-contrast #a11y-panel   { background: #ffffff !important; border: 2px solid #000000 !important; }
html.a11y-high-contrast .a11y-option  { color: #000000 !important; }
html.a11y-high-contrast .a11y-label span { color: #333333 !important; }
html.a11y-high-contrast .a11y-toggle  { background: #666666 !important; }
html.a11y-high-contrast .a11y-option[aria-pressed="true"] .a11y-toggle { background: #000000 !important; }

/* Dark mode — override CSS custom properties */
html.a11y-dark {
  --bg:         #1a1a2e;
  --bg-section: #1e1e32;
  --bg-hero:    #252540;
  --bg-header:  #12121f;
  --bg-card:    #252540;
  --text:       #e8e8f0;
  --text-muted: #b0b8c8;
  --border:     #3f3f70;
  --accent:     #a5b4fc;
  --accent-soft:#3f3f70;
  --accent-warm:#d4a574;
  --focus:      #a5b4fc;
}
html.a11y-dark body   { background-color: var(--bg) !important; color: var(--text) !important; }
html.a11y-dark .site-header { border-bottom-color: var(--border) !important; }
html.a11y-dark .site-footer { color: var(--text-muted) !important; }
html.a11y-dark .site-footer a { color: var(--accent) !important; }
html.a11y-dark .hero         { background: var(--bg-hero) !important; }
html.a11y-dark .schedule-block { background: var(--bg-card) !important; border-color: var(--border) !important; }
html.a11y-dark .schedule-block h3,
html.a11y-dark .schedule-block p  { color: var(--text) !important; }
html.a11y-dark .schedule-block:hover { border-color: var(--accent) !important; }
html.a11y-dark #a11y-panel           { background: #252540 !important; border-color: #3f3f70 !important; color: #e8e8f0 !important; }
html.a11y-dark .a11y-panel-header h2 { color: #c7d2fe !important; }
html.a11y-dark .a11y-option          { color: #e8e8f0 !important; }
html.a11y-dark .a11y-label span      { color: #9ca3af !important; }
html.a11y-dark .a11y-icon            { background: #3f3f70 !important; color: #a5b4fc !important; }

/* Reduce distractions (ADHD mode) */
html.a11y-adhd .site-header,
html.a11y-adhd main,
html.a11y-adhd .site-footer {
  filter: saturate(0.28);
}
html.a11y-adhd main section {
  transition: opacity 0.4s ease;
}
html.a11y-adhd.a11y-no-motion main section {
  transition: none !important;
}

/* Pause all animations */
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* System dark mode — applied when no toolbar preference is saved yet */
@media (prefers-color-scheme: dark) {
  html:not(.a11y-prefs-loaded) {
    --bg:         #1a1a2e;
    --bg-section: #1e1e32;
    --bg-hero:    #252540;
    --bg-header:  #12121f;
    --bg-card:    #252540;
    --text:       #e8e8f0;
    --text-muted: #b0b8c8;
    --border:     #3f3f70;
    --accent:     #a5b4fc;
    --accent-soft:#3f3f70;
    --focus:      #a5b4fc;
  }
  html:not(.a11y-prefs-loaded) body { background-color: var(--bg); color: var(--text); }
}
