/* ─────────────────────────────────────────
   COLOUR MODE THEME TOKENS
   Applied via data-theme on <html>
───────────────────────────────────────── */
/* Default = dark (matches home page default dark appearance) */
:root,
[data-theme="dark"] {
  --t-bg:             #0e0e16;
  --t-bg-alt:         #1a1a24;
  --t-bg-dark:        #07070e;
  --t-bg-dark-alt:    #0c0c13;
  --t-text:           #e8e8e8;
  --t-text-secondary: #aaaaaa;
  --t-text-muted:     #777777;
  --t-text-on-dark:   #e8e8e8;
  --t-accent:         #e8e8e8;
  --t-accent-2:       #cccccc;
  --t-border:         rgba(255,255,255,0.10);
  --t-border-light:   rgba(255,255,255,0.08);
  --t-card:           rgba(255,255,255,0.06);
  --t-card-dark:      rgba(255,255,255,0.035);
  --t-hero-bg:        #000000;
  --t-hero-text:      #ffffff;
  --t-hero-sub:       rgba(255,255,255,0.75);
  --t-eyebrow-dark:   #ffffff;
  --t-heading-dark:   #e8e8e8;
  --t-sub-dark:       #aaaaaa;
  --t-check-bg:       rgba(255,255,255,0.08);
  --t-check-border:   rgba(255,255,255,0.25);
  --t-check-stroke:   #e8e8e8;
  --t-section-grad:   #0e0e16;
  --t-dark-section:   #07070e;
  --t-focus-ring:     #ffffff;
  --t-nav-btn-bg:     linear-gradient(135deg, #1a1a24 0%, #282834 100%);
  --t-outline:        2px solid #e8e8e8;
}

[data-theme="light"] {
  --t-bg:             #ffffff;
  --t-bg-alt:         #ffffff;
  --t-bg-dark:        #ffffff;
  --t-bg-dark-alt:    #f8f8f8;
  --t-text:           #171717;
  --t-text-secondary: #555555;
  --t-text-muted:     #888888;
  --t-text-on-dark:   #171717;
  --t-accent:         #171717;
  --t-accent-2:       #444444;
  --t-border:         rgba(0,0,0,0.08);
  --t-border-light:   rgba(0,0,0,0.08);
  --t-card:           rgba(255,255,255,0.75);
  --t-card-dark:      rgba(0,0,0,0.03);
  --t-hero-bg:        #ffffff;
  --t-hero-text:      #171717;
  --t-hero-sub:       rgba(0,0,0,0.60);
  --t-eyebrow-dark:   #444444;
  --t-heading-dark:   #171717;
  --t-sub-dark:       #555555;
  --t-check-bg:       rgba(0,0,0,0.06);
  --t-check-border:   rgba(0,0,0,0.20);
  --t-check-stroke:   #171717;
  --t-section-grad:   #ffffff;
  --t-dark-section:   #ffffff;
  --t-focus-ring:     #171717;
  --t-nav-btn-bg:     linear-gradient(135deg, #1a1a24 0%, #282834 100%);
  --t-outline:        2px solid #171717;
}

[data-theme="yellow"] {
  --t-bg:             #f5d000;
  --t-bg-alt:         #f0c800;
  --t-bg-dark:        #000000;
  --t-bg-dark-alt:    #111111;
  --t-text:           #000000;
  --t-text-secondary: #1a1a1a;
  --t-text-muted:     #333333;
  --t-text-on-dark:   #f5d000;
  --t-accent:         #000000;
  --t-accent-2:       #222222;
  --t-border:         rgba(0,0,0,0.25);
  --t-border-light:   rgba(0,0,0,0.15);
  --t-card:           rgba(255,255,255,0.50);
  --t-card-dark:      rgba(0,0,0,0.08);
  --t-hero-bg:        #000000;
  --t-hero-text:      #f5d000;
  --t-hero-sub:       rgba(245,208,0,0.80);
  --t-eyebrow-dark:   #f5d000;
  --t-heading-dark:   #f5d000;
  --t-sub-dark:       rgba(245,208,0,0.85);
  --t-check-bg:       rgba(0,0,0,0.12);
  --t-check-border:   rgba(0,0,0,0.4);
  --t-check-stroke:   #000000;
  --t-section-grad:   #f5d000;
  --t-dark-section:   #000000;
  --t-focus-ring:     #000000;
  --t-nav-btn-bg:     linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  --t-outline:        3px solid #000000;
}

/* ─────────────────────────────────────────
   GLOBAL OVERRIDES FOR THEMED PAGE
───────────────────────────────────────── */
.a11y-page body,
body.a11y-page {
  background: var(--t-bg);
  color: var(--t-text);
  transition: background 0.3s, color 0.3s;
}

.a11y-page main {
  font-family: 'Atkinson Hyperlegible', var(--font-body);
}

.a11y-page main h1,
.a11y-page main h2,
.a11y-page main h3,
.a11y-page main h4 {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
}

/* focus ring uses theme colour */
.a11y-page :focus-visible {
  outline: var(--t-outline);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────
   ACCESSIBILITY HERO
───────────────────────────────────────── */
.a11y-hero {
  position: relative;
  background: var(--t-hero-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.a11y-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.a11y-hero-text { display: flex; flex-direction: column; gap: 24px; }

.a11y-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--t-eyebrow-dark);
  margin-bottom: 4px;
}

.a11y-hero h1 {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--t-hero-text);
}

.a11y-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #ffffff 30%, rgba(255,255,255,0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="yellow"] .a11y-hero h1 em {
  background: linear-gradient(135deg, #f5d000 0%, #ffeaa0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.a11y-hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.2px;
  max-width: 440px;
}

[data-theme="light"] .a11y-hero-sub { color: rgba(0,0,0,0.60); }
[data-theme="light"] .a11y-eyebrow  { color: #555555; }
[data-theme="yellow"] .a11y-hero-sub { color: rgba(245,208,0,0.82); }

/* Light mode hero buttons */
[data-theme="light"] .a11y-hero-cta .btn-hero-primary {
  background: #1a1a24 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
[data-theme="light"] .a11y-hero-cta .btn-hero-glass {
  background: #1777fe !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 0 24px rgba(65,161,207,0.35) !important;
}

/* Dark mode hero buttons */
[data-theme="dark"] .a11y-hero-cta .btn-hero-primary {
  background: #ffffff !important;
  color: #0e0e16 !important;
  border-color: transparent !important;
}
[data-theme="dark"] .a11y-hero-cta .btn-hero-glass {
  background: #1777fe !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 0 24px rgba(23,119,254,0.35) !important;
}

/* Light mode hero — white bg so invert text/panel colours */
[data-theme="light"] .a11y-hero h1 em {
  background: linear-gradient(135deg, #171717 30%, rgba(0,0,0,0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .haptic-demo-panel {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
[data-theme="light"] .haptic-demo-panel::before {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}
[data-theme="light"] .haptic-demo-label { color: #444444; }
[data-theme="light"] .demo-row-label { color: #555555; }
[data-theme="light"] .pulse-dot { background: #1a1a24; box-shadow: none; }
[data-theme="light"] .demo-row-bar { background: rgba(0,0,0,0.08); }
[data-theme="light"] .demo-row-fill { background: rgba(0,0,0,0.30); }
[data-theme="light"] .demo-element-icon { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.10); }
[data-theme="light"] .demo-element-icon svg { stroke: rgba(0,0,0,0.55); }
[data-theme="light"] .demo-element-name { color: #171717; }
[data-theme="light"] .demo-element-pattern { color: rgba(0,0,0,0.45); }
[data-theme="light"] .haptic-demo-row + .haptic-demo-row { border-top-color: rgba(0,0,0,0.08); }

[data-theme="yellow"] .a11y-hero-cta .btn-hero-primary {
  background: #f5d000 !important;
  color: #000000 !important;
  border-color: #f5d000 !important;
}
[data-theme="yellow"] .a11y-hero-cta .btn-hero-glass {
  background: #f5d000 !important;
  color: #000000 !important;
  border-color: #f5d000 !important;
}

.a11y-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Haptic pattern visual — right column */
.haptic-demo-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.haptic-demo-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

[data-theme="yellow"] .haptic-demo-panel {
  background: rgba(255,255,255,0.12);
  border-color: rgba(245,208,0,0.4);
}

.haptic-demo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--t-eyebrow-dark);
  margin-bottom: 28px;
}

.haptic-demo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.haptic-demo-row + .haptic-demo-row {
  border-top: 1px solid rgba(255,255,255,0.07);
}

[data-theme="yellow"] .haptic-demo-row + .haptic-demo-row {
  border-top-color: rgba(245,208,0,0.2);
}

.demo-element-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="yellow"] .demo-element-icon {
  background: rgba(245,208,0,0.15);
  border-color: rgba(245,208,0,0.3);
}

.demo-element-icon svg {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.70);
  fill: none;
  stroke-width: 1.7;
}

[data-theme="yellow"] .demo-element-icon svg { stroke: rgba(245,208,0,0.9); }

.demo-element-info { flex: 1; min-width: 0; }

.demo-element-name {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--t-heading-dark);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.demo-element-pattern {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.01em;
}

[data-theme="yellow"] .demo-element-pattern { color: rgba(245,208,0,0.6); }

.demo-pulses {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--t-accent-2);
  opacity: 0;
  animation: pulse-fire 2.4s ease-in-out infinite;
}

[data-theme="yellow"] .pulse-dot { background: #f5d000; }

/* stagger within each row */
.demo-row-link     .pulse-dot:nth-child(1) { animation-delay: 0s; }

.demo-row-button   .pulse-dot:nth-child(1) { animation-delay: 0s; }
.demo-row-button   .pulse-dot:nth-child(2) { animation-delay: 0.18s; }

.demo-row-input    .pulse-dot:nth-child(1) { animation-delay: 0s; }
.demo-row-input    .pulse-dot:nth-child(2) { animation-delay: 0.18s; }
.demo-row-input    .pulse-dot:nth-child(3) { animation-delay: 0.36s; }

/* offset each row so they don't all fire together */
.demo-row-button .pulse-dot { animation-delay-base: 0.8s; }
.demo-row-link .pulse-dot { animation-duration: 2.4s; }
.demo-row-button .pulse-dot:nth-child(1) { animation-delay: 0.9s; }
.demo-row-button .pulse-dot:nth-child(2) { animation-delay: 1.08s; }
.demo-row-input  .pulse-dot:nth-child(1) { animation-delay: 1.8s; }
.demo-row-input  .pulse-dot:nth-child(2) { animation-delay: 1.98s; }
.demo-row-input  .pulse-dot:nth-child(3) { animation-delay: 2.16s; }

@keyframes pulse-fire {
  0%   { opacity: 0; transform: scale(0.6); }
  10%  { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  30%  { opacity: 0.9; transform: scale(1); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  60%  { opacity: 0; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(0.6); }
}

/* Background glow */
.a11y-hero-glow {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 1;
}

[data-theme="yellow"] .a11y-hero-glow { display: none; }

/* Scroll indicator */
.a11y-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* ─────────────────────────────────────────
   SECTION: CHANNEL — "A third channel"
───────────────────────────────────────── */
.a11y-channel {
  background:
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(65,161,207,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(65,161,207,0.06) 0%, transparent 55%),
    #12121a;
  padding: 96px 24px;
  transition: background 0.3s;
}
[data-theme="light"] .a11y-channel { background: #f8f9fb !important; }
[data-theme="light"] .channel-card { background: #ffffff !important; border-color: rgba(0,0,0,0.14) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important; }
[data-theme="light"] .channel-card.channel-featured { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.18) !important; }
[data-theme="yellow"] .a11y-channel { background: var(--t-section-grad) !important; }

.a11y-channel .container { max-width: 1060px; margin: 0 auto; }

.a11y-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.a11y-section-header .section-eyebrow { color: var(--t-accent); justify-content: center; }
.a11y-section-header .section-heading { color: var(--t-text); }
.a11y-section-header .section-sub { color: var(--t-text-secondary); margin: 0 auto; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.channel-card {
  background: var(--t-card);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--t-border-light);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 12px 32px rgba(0,0,0,0.10);
}

.channel-card.channel-featured {
  background: linear-gradient(145deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.02) 100%);
  border: 2px solid rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 28px rgba(0,0,0,0.08);
}

[data-theme="dark"] .channel-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}

[data-theme="dark"] .channel-card.channel-featured {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

[data-theme="yellow"] .channel-card {
  background: rgba(255,255,255,0.40);
  border: 2px solid rgba(0,0,0,0.20);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

[data-theme="yellow"] .channel-card.channel-featured {
  background: rgba(0,0,0,0.12);
  border: 2px solid #000000;
}

.channel-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.10);
}

[data-theme="dark"] .channel-icon-wrap { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }

[data-theme="yellow"] .channel-icon-wrap {
  background: rgba(0,0,0,0.10);
  border: 2px solid rgba(0,0,0,0.25);
}

.channel-icon-wrap svg { width: 22px; height: 22px; stroke: var(--t-accent); fill: none; stroke-width: 1.7; }
[data-theme="yellow"] .channel-icon-wrap svg { stroke: #000000; }

.channel-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--t-accent);
  margin-bottom: 10px;
}

[data-theme="yellow"] .channel-label { color: #000000; }

.channel-title {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--t-text);
  margin-bottom: 12px;
  letter-spacing: -0.35px;
  line-height: 1.2;
}

.channel-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t-text-secondary);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .channel-title { color: #e8e8e8; }
[data-theme="dark"] .channel-body  { color: #aaaaaa; }
[data-theme="yellow"] .channel-title { color: #000000; }
[data-theme="yellow"] .channel-body  { color: #222222; }

/* ─────────────────────────────────────────
   SECTION: ELEMENT TYPES — dark bg
───────────────────────────────────────── */
.a11y-elements {
  background:
    radial-gradient(ellipse 55% 55% at 80% 80%, rgba(65,161,207,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 20% 20%, rgba(65,161,207,0.05) 0%, transparent 55%),
    #0e0e16;
  padding: 96px 24px;
  transition: background 0.3s;
}
[data-theme="light"] .a11y-elements { background: #ffffff !important; }
[data-theme="yellow"] .a11y-elements { background: var(--t-dark-section) !important; }

.a11y-elements .container { max-width: 1060px; margin: 0 auto; }

.a11y-elements .section-eyebrow { color: var(--t-eyebrow-dark); justify-content: center; }
.a11y-elements .section-heading { color: var(--t-heading-dark); }
.a11y-elements .section-sub     { color: var(--t-sub-dark); }

.elements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.element-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

[data-theme="light"] .element-card { background: #ffffff !important; border-color: rgba(0,0,0,0.14) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important; }
[data-theme="light"] .element-card:hover { border-color: rgba(23,119,254,0.45) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.10) !important; }

[data-theme="yellow"] .element-card {
  background: rgba(0,0,0,0.08);
  border: 2px solid rgba(245,208,0,0.4);
}

.element-card:hover {
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0,0,0,0.10);
}

[data-theme="yellow"] .element-card:hover {
  border-color: rgba(245,208,0,0.8);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.element-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

[data-theme="yellow"] .element-card::before { background: linear-gradient(90deg, transparent, rgba(245,208,0,0.4), transparent); }

.element-type-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

[data-theme="yellow"] .element-type-icon {
  background: rgba(245,208,0,0.15);
  border: 2px solid rgba(245,208,0,0.40);
}

.element-type-icon svg { width: 22px; height: 22px; stroke: rgba(255,255,255,0.70); fill: none; stroke-width: 1.7; }
[data-theme="yellow"] .element-type-icon svg { stroke: #f5d000; }

.element-type-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--t-eyebrow-dark);
  margin-bottom: 12px;
  display: block;
}

[data-theme="yellow"] .element-type-tag { color: #f5d000; }

.element-type-name {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--t-heading-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

[data-theme="yellow"] .element-type-name { color: #f5d000; }

.element-type-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t-sub-dark);
  margin-bottom: 24px;
}

[data-theme="yellow"] .element-type-desc { color: rgba(245,208,0,0.80); }

.element-haptic-sig {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
}

[data-theme="yellow"] .element-haptic-sig {
  background: rgba(245,208,0,0.10);
  border-color: rgba(245,208,0,0.25);
}

.haptic-sig-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.haptic-sig-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--t-accent-2);
  box-shadow: 0 0 6px rgba(255,255,255,0.35);
}

[data-theme="yellow"] .haptic-sig-dot {
  background: #f5d000;
  box-shadow: 0 0 6px rgba(245,208,0,0.5);
}

.haptic-sig-label {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  margin-left: 4px;
  letter-spacing: -0.01em;
}

[data-theme="yellow"] .haptic-sig-label { color: rgba(245,208,0,0.65); }

/* ─────────────────────────────────────────
   SECTION: WORKS WITH — light bg
───────────────────────────────────────── */
.a11y-compat {
  background:
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(65,161,207,0.08) 0%, transparent 55%),
    #12121a;
  padding: 96px 24px;
  transition: background 0.3s;
}
[data-theme="light"] .a11y-compat { background: #f8f9fb !important; }
[data-theme="yellow"] .a11y-compat { background: var(--t-section-grad) !important; }

.a11y-compat .container { max-width: 1060px; margin: 0 auto; }
.a11y-compat .section-eyebrow { color: var(--t-accent); justify-content: center; }
.a11y-compat .section-heading { color: var(--t-text); }
.a11y-compat .section-sub     { color: var(--t-text-secondary); }

[data-theme="dark"] .a11y-compat .section-heading { color: #e8e8e8; }
[data-theme="dark"] .a11y-compat .section-sub     { color: #aaaaaa; }
[data-theme="yellow"] .a11y-compat .section-heading { color: #000000; }
[data-theme="yellow"] .a11y-compat .section-sub     { color: #222222; }

.compat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.compat-card {
  background: var(--t-card);
  border: 1px solid var(--t-border-light);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s var(--ease-out);
}

.compat-card:hover { transform: translateY(-3px); }

[data-theme="dark"] .compat-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}

[data-theme="yellow"] .compat-card {
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(0,0,0,0.18);
}

.compat-icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .compat-icon-wrap { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
[data-theme="yellow"] .compat-icon-wrap { background: rgba(0,0,0,0.10); border: 2px solid rgba(0,0,0,0.22); }

.compat-icon-wrap svg { width: 20px; height: 20px; stroke: var(--t-accent); fill: none; stroke-width: 1.7; }
[data-theme="yellow"] .compat-icon-wrap svg { stroke: #000000; }

.compat-title {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--t-text);
  margin-bottom: 8px;
  letter-spacing: -0.25px;
}

.compat-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--t-text-secondary);
}

[data-theme="dark"] .compat-title { color: #e8e8e8; }
[data-theme="dark"] .compat-body  { color: #999999; }
[data-theme="yellow"] .compat-title { color: #000000; }
[data-theme="yellow"] .compat-body  { color: #222222; }

/* ─────────────────────────────────────────
   SECTION: WHO IT'S FOR — dark
───────────────────────────────────────── */
.a11y-who {
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(65,161,207,0.07) 0%, transparent 60%),
    #0e0e16;
  padding: 96px 24px;
  transition: background 0.3s;
}
[data-theme="light"] .a11y-who { background: #ffffff !important; }
[data-theme="yellow"] .a11y-who { background: var(--t-dark-section) !important; }

.a11y-who .container { max-width: 1060px; margin: 0 auto; }
.a11y-who .section-eyebrow { color: var(--t-eyebrow-dark); justify-content: center; }
.a11y-who .section-heading { color: var(--t-heading-dark); }
.a11y-who .section-sub     { color: var(--t-sub-dark); }

[data-theme="yellow"] .a11y-who .section-heading { color: #f5d000; }
[data-theme="yellow"] .a11y-who .section-sub { color: rgba(245,208,0,0.80); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.who-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 30px 26px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

[data-theme="yellow"] .who-card {
  background: rgba(0,0,0,0.08);
  border: 2px solid rgba(245,208,0,0.30);
}

.who-card:hover {
  transform: translateY(-3px);
}

[data-theme="dark"] .who-card:hover,
html:not([data-theme]) .who-card:hover { border-color: #1777fe !important; }
[data-theme="light"] .who-card { background: #ffffff !important; border-color: rgba(0,0,0,0.14) !important; }
[data-theme="light"] .who-card:hover { border-color: rgba(23,119,254,0.45) !important; }
[data-theme="yellow"] .who-card:hover { border-color: rgba(245,208,0,0.7) !important; }

.who-num {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: rgba(0,0,0,0.20);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

[data-theme="yellow"] .who-num { color: rgba(245,208,0,0.40); }

.who-title {
  font-family: 'Atkinson Hyperlegible', var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--t-heading-dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

[data-theme="yellow"] .who-title { color: #f5d000; }

.who-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--t-sub-dark);
}

[data-theme="yellow"] .who-body { color: rgba(245,208,0,0.75); }

/* ─────────────────────────────────────────
   SECTION: PRICING — inherits from home.css
   Just override colours for themes
───────────────────────────────────────── */
/* Light mode pricing buttons */
[data-theme="light"] #a11y-purchase .btn-install {
  background: #1777fe !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
[data-theme="light"] #a11y-purchase .price-chip {
  color: #1777fe !important;
  background: rgba(65,161,207,0.08) !important;
  border-color: rgba(65,161,207,0.25) !important;
}
[data-theme="light"] #a11y-purchase .check-ring.blue { background: rgba(65,161,207,0.08) !important; border-color: rgba(65,161,207,0.25) !important; }
[data-theme="light"] #a11y-purchase .check-ring.blue svg { stroke: #1777fe !important; }

[data-theme="dark"] #a11y-purchase {
  background: #0e0e16;
}
[data-theme="dark"] #a11y-purchase .btn-buy {
  background: #ffffff !important;
  color: #0e0e16 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
[data-theme="dark"] #a11y-purchase .btn-buy::after { display: none; }
[data-theme="dark"] #a11y-purchase .btn-install {
  background: #1777fe !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 0 24px rgba(23,119,254,0.35) !important;
}
[data-theme="dark"] #a11y-purchase .btn-install::after { display: none; }

[data-theme="dark"] #a11y-purchase .section-heading { color: #e8e8e8; }
[data-theme="dark"] #a11y-purchase .section-sub     { color: #aaaaaa; }
[data-theme="dark"] #a11y-purchase .section-eyebrow { color: #1777fe; }
[data-theme="dark"] .price-chip { color: #1777fe !important; background: rgba(65,161,207,0.10) !important; border-color: rgba(65,161,207,0.30) !important; }
[data-theme="dark"] .pricing-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .price-currency,
[data-theme="dark"] .price-number { color: #e8e8e8; }
[data-theme="dark"] .price-desc   { color: #888; }
[data-theme="dark"] .pricing-features li { color: #cccccc; }

[data-theme="yellow"] #a11y-purchase { background: #f5d000; }
[data-theme="yellow"] #a11y-purchase .section-heading { color: #000000; }
[data-theme="yellow"] #a11y-purchase .section-sub     { color: #222222; }
[data-theme="yellow"] #a11y-purchase .section-eyebrow { color: #000000; }
[data-theme="yellow"] .pricing-card {
  background: rgba(255,255,255,0.60);
  border: 2px solid rgba(0,0,0,0.20);
}
[data-theme="yellow"] .price-currency,
[data-theme="yellow"] .price-number { color: #000000; }
[data-theme="yellow"] .price-desc   { color: #333333; }
[data-theme="yellow"] .pricing-features li { color: #111111; }
[data-theme="yellow"] .check-ring.blue { border-color: rgba(0,0,0,0.35); background: rgba(0,0,0,0.08); }
[data-theme="yellow"] .check-ring.blue svg { stroke: #000000; }
[data-theme="yellow"] .price-chip { color: #000000; background: rgba(0,0,0,0.10); border-color: rgba(0,0,0,0.22); }

/* footer in dark/yellow modes */
[data-theme="dark"] footer { background: #07070e; }
[data-theme="yellow"] footer { background: #000000; }
[data-theme="yellow"] .footer-logo { color: #f5d000; }
[data-theme="yellow"] .footer-links a { color: rgba(245,208,0,0.80); }
[data-theme="yellow"] .footer-links a:hover { color: #f5d000; }
[data-theme="yellow"] .footer-copy { color: rgba(245,208,0,0.60); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 960px) {
  .a11y-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .haptic-demo-panel { max-width: 480px; width: 100%; }
  .channel-grid  { grid-template-columns: 1fr 1fr; }
  .elements-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .compat-grid   { grid-template-columns: 1fr; max-width: 480px; }
  .who-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .a11y-hero { padding: 100px 20px 60px; }
  .haptic-demo-panel { padding: 28px 20px; }
  .channel-grid { grid-template-columns: 1fr; }
  .who-grid     { grid-template-columns: 1fr; }
  .a11y-hero-cta { flex-direction: column; width: 100%; }
  .a11y-hero-cta .btn-hero-primary,
  .a11y-hero-cta .btn-hero-glass { width: 100%; justify-content: center; }
}

/* ─────────────────────────────────────────
   DEFAULT MODE (no data-theme set)
   Light sections alternate with dark hero/elements/who
───────────────────────────────────────── */

/* Re-scope tokens to light values inside the three "light" sections */
html:not([data-theme]) .a11y-channel,
html:not([data-theme]) .a11y-compat,
html:not([data-theme]) #a11y-purchase {
  --t-text:           #171717;
  --t-text-secondary: #555555;
  --t-text-muted:     #888888;
  --t-accent:         #171717;
  --t-accent-2:       #444444;
  --t-border:         rgba(0,0,0,0.08);
  --t-border-light:   rgba(0,0,0,0.08);
  --t-card:           rgba(255,255,255,0.75);
  --t-card-dark:      rgba(0,0,0,0.03);
  --t-eyebrow-dark:   #444444;
  --t-heading-dark:   #171717;
  --t-sub-dark:       #555555;
  --t-check-bg:       rgba(0,0,0,0.06);
  --t-check-border:   rgba(0,0,0,0.20);
  --t-check-stroke:   #171717;
  background: #f8f9fb !important;
}

/* Channel section */
html:not([data-theme]) .channel-card {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(0,0,0,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 24px rgba(0,0,0,0.06) !important;
}
html:not([data-theme]) .channel-card.channel-featured {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.18) !important;
}
html:not([data-theme]) .channel-icon-wrap {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.10) !important;
}
html:not([data-theme]) .channel-icon-wrap svg { stroke: #171717 !important; }
html:not([data-theme]) .channel-label  { color: #555555 !important; }
html:not([data-theme]) .channel-title  { color: #171717 !important; }
html:not([data-theme]) .channel-body   { color: #555555 !important; }

/* Compat section */
html:not([data-theme]) .a11y-compat .section-heading { color: #171717 !important; }
html:not([data-theme]) .a11y-compat .section-sub     { color: #555555 !important; }

/* Purchase section */
html:not([data-theme]) #a11y-purchase { background: #f8f9fb !important; }
html:not([data-theme]) #a11y-purchase .section-eyebrow { color: #1777fe !important; }
html:not([data-theme]) #a11y-purchase .section-heading { color: #171717 !important; }
html:not([data-theme]) #a11y-purchase .section-sub     { color: #555555 !important; }
html:not([data-theme]) #a11y-purchase .price-display   { color: #171717 !important; }
html:not([data-theme]) #a11y-purchase .price-sub       { color: #555555 !important; }
html:not([data-theme]) #a11y-purchase .price-chip      { color: #1777fe !important; background: rgba(23,119,254,0.08) !important; border-color: rgba(23,119,254,0.25) !important; }
html:not([data-theme]) #a11y-purchase .check-label     { color: #171717 !important; }
html:not([data-theme]) #a11y-purchase .check-ring      { background: rgba(0,0,0,0.06) !important; border-color: rgba(0,0,0,0.20) !important; }
html:not([data-theme]) #a11y-purchase .check-ring svg  { stroke: #171717 !important; }
html:not([data-theme]) #a11y-purchase .check-ring.blue { background: rgba(23,119,254,0.08) !important; border-color: rgba(23,119,254,0.25) !important; }
html:not([data-theme]) #a11y-purchase .check-ring.blue svg { stroke: #1777fe !important; }
html:not([data-theme]) #a11y-purchase .install-note    { color: #888888 !important; }
html:not([data-theme]) #a11y-purchase .pricing-card    { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; }

/* Buttons in default mode — hero */
html:not([data-theme]) .a11y-hero-cta .btn-hero-primary {
  background: #ffffff !important;
  color: #0e0e16 !important;
  border-color: transparent !important;
}
html:not([data-theme]) .a11y-hero-cta .btn-hero-glass {
  background: #1777fe !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 0 24px rgba(23,119,254,0.35) !important;
}

/* Buttons in default mode — pricing (classes are swapped: btn-buy=Install, btn-install=Buy) */
html:not([data-theme]) #a11y-purchase .btn-buy {
  background: #ffffff !important;
  color: #0e0e16 !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: none !important;
}
html:not([data-theme]) #a11y-purchase .btn-install {
  background: #1777fe !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 0 20px rgba(23,119,254,0.30) !important;
}
