/* ════════════════════════════════════════════════════════════════════
   AXOL ASSIST — design system
   Neutral ink/paper palette, one accent (axolotl coral), Space Grotesk
   display + Inter body. Built to feel founder-made, not templated.
   ════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutrals (warm) */
  --ink:        #15110E;
  --ink-soft:   #3a342e;
  --paper:      #FBFAF8;
  --paper-2:    #F3F0EA;   /* alt sections */
  --surface:    #FFFFFF;   /* cards */
  --line:       #E7E2D9;
  --line-strong:#D8D2C7;
  --muted:      #6B645B;
  --muted-2:    #938B80;

  /* Accent — axolotl palette (deep purple ring + magenta from the mascot) */
  --coral:      #B03060;   /* magenta — the "Assist" wordmark color */
  --coral-deep: #8C2550;   /* deeper magenta — hover / text AA on light */
  --coral-press:#6E1C40;
  --coral-tint: #F6E1EA;
  --coral-tint2:#ECC4D6;
  --on-coral:   #FFFFFF;

  /* Brand wordmark / deep-purple from the mascot ring */
  --brand-axolo:  #301070;
  --brand-assist: #B03060;
  --purple:       #301070;
  --purple-deep:  #25095a;

  /* Functional aliases used by the accessibility toolbar + modes.
     Repointed to the coral system so the whole product is cohesive. */
  --accent:     var(--coral);
  --accent-deep:var(--coral-deep);
  --link:       var(--coral-deep);
  --text:       var(--ink);
  --text-muted: var(--muted);
  --bg:         var(--paper);
  --bg-alt:     var(--paper-2);
  --border:     var(--line);
  --dark:       var(--ink);
  --light:      var(--paper-2);
  --white:      #ffffff;
  /* Legacy multi-color vars kept only so any stray reference resolves;
     the visible design no longer uses a rainbow. */
  --yellow: #E0A100; --green-d: #1f7a52; --pink: var(--coral); --blue-d: var(--coral-deep);

  /* Geometry */
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(21,17,14,.06), 0 1px 1px rgba(21,17,14,.04);
  --shadow:    0 18px 40px -22px rgba(21,17,14,.30), 0 4px 12px -8px rgba(21,17,14,.18);
  --shadow-lg: 0 40px 80px -32px rgba(21,17,14,.40);
  --ring:      0 0 0 3px var(--coral-tint), 0 0 0 4px var(--coral);

  --wrap: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; color: var(--ink); }
a { color: var(--coral-deep); }
::selection { background: var(--coral); color: #fff; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 10001;
  background: var(--ink); color: #fff; font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid var(--coral); outline-offset: -3px; }
[id="main"]:focus { outline: none; }

/* ── Layout helpers ── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--coral); display: inline-block;
}
.section-label { /* legacy hook, now styled as eyebrow when present */
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 1.1rem;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }

.kicker-row { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* Hairline divider with a coral notch */
.rule { height: 1px; background: var(--line); border: 0; position: relative; }
.rule::before { content:""; position:absolute; left:0; top:-1px; width:64px; height:3px; background: var(--coral); border-radius: 3px; }

/* ── Buttons ── */
.btn {
  --bh: #0c0a08;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .9rem 1.4rem; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--coral); color: var(--on-coral); box-shadow: 0 10px 24px -12px var(--coral-deep); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--coral-deep); color: #fff; }
.btn-primary:active { transform: translateY(0); background: var(--coral-press); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a241e; transform: translateY(-2px); color:#fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.btn-arrow svg { transition: transform .2s var(--ease); }
.btn-arrow:hover svg { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; color: var(--coral-deep);
  text-decoration: none; font-size: .98rem;
}
.textlink svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }
.textlink:hover { text-decoration: none; color: var(--coral-press); }

/* ════════════════════════════ NAV ════════════════════════════ */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
  background: rgba(251,250,248,.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
nav.is-scrolled { border-bottom-color: var(--line); }

.nav-logo {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav-logo .axol-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-axolo  { color: var(--purple); }
.nav-assist { color: var(--brand-assist); }
.nav-logo:hover .nav-assist { color: var(--coral-deep); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a:not(.nav-cta) {
  position: relative; text-decoration: none; font-weight: 500; font-size: .94rem;
  color: var(--ink-soft); transition: color .2s; padding: .35rem 0;
}
.nav-links a:not(.nav-cta)::after {
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink) !important; color: #fff !important;
  padding: .6rem 1.15rem !important; border-radius: var(--r-pill) !important;
  font-family: var(--font-display); font-weight: 600 !important; font-size: .9rem !important;
  text-decoration: none !important; transition: transform .15s var(--ease), background .2s !important;
}
.nav-cta:hover { background: var(--coral) !important; color:#fff !important; transform: translateY(-1px); }

/* Axolotl mark — the clean accessibility.png badge, used everywhere. */
.axol-mark {
  background-image: url('accessibility.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 50%;
}

/* ════════════════════════════ HERO ════════════════════════════ */
.hero {
  position: relative; overflow: clip;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 6rem);
  background:
    radial-gradient(120% 90% at 88% -10%, var(--coral-tint) 0%, transparent 55%),
    var(--paper);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero-headline {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: .98;
  color: var(--ink); max-width: 16ch;
}
.hero-headline .accent { color: var(--coral-deep); }
.hero-tagline {
  margin-top: 1.5rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted); max-width: 46ch; line-height: 1.6; font-weight: 400;
}
.hero-tagline span { color: var(--muted); -webkit-text-fill-color: currentColor; }
.hero-links { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-link, .hero-cta-link { font-family: var(--font-display); }
/* map legacy hero link classes onto the new button system */
.hero-cta-link {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--coral); color: #fff !important; text-decoration: none !important;
  padding: .95rem 1.5rem; border-radius: var(--r-pill); font-weight: 600; font-size: 1rem;
  box-shadow: 0 12px 26px -12px var(--coral-deep);
  transition: transform .16s var(--ease), background .16s var(--ease);
}
.hero-cta-link:hover { background: var(--coral-deep); transform: translateY(-2px); }
.hero-cta-link::after { content: none; }
.hero-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: color .2s, transform .2s var(--ease);
}
.hero-link::after { content: "→"; transition: transform .2s var(--ease); }
.hero-link:hover { color: var(--coral-deep); }
.hero-link:hover::after { transform: translateX(3px); }

.hero-trust { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust b { color: var(--ink); font-weight: 600; }
.hero-trust .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* Hero visual — mascot on a coral stage with a wave motif */
.hero-stage {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; margin-left: auto;
  display: grid; place-items: center;
}
.hero-stage .axol-mark {
  width: 86%; height: 86%; border-radius: 50%;
  position: relative; z-index: 2;
  filter: drop-shadow(0 22px 40px rgba(48,16,112,.28));
}
.hero-wave {
  position: absolute; left: -10%; right: -10%; bottom: -2px; width: 120%; z-index: 1;
  color: var(--coral);
}
.hero-wave svg { width: 100%; height: auto; display: block; opacity: .85; }
.hero-badge {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); border-radius: var(--r); padding: .6rem .8rem;
  display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--ink);
  font-family: var(--font-display);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--coral-deep); }
.hero-badge--tl { top: 8%; left: -6%; }
.hero-badge--br { bottom: 10%; right: -4%; }

/* ════════════════ Section heading block ════════════════ */
.sec-head { max-width: 60ch; }
.sec-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.02; margin-top: 1rem; color: var(--ink);
}
.sec-head h2 .accent { color: var(--coral-deep); }
.sec-head p { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); max-width: 52ch; line-height: 1.6; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center p { margin-inline: auto; }

/* Legacy section wrappers now just provide vertical rhythm */
.mission, .audiences, .principles, .products, .notify, .about-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.mission, .principles, .notify { background: var(--paper-2); }
.audiences, .products, .about-section { background: var(--paper); }

/* ════════════════ MISSION (asymmetrical statement) ════════════════ */
.mission .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mission h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--ink); max-width: 18ch;
}
.mission h2 .accent { color: var(--coral-deep); }
.mission p { font-size: 1.22rem; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.mission p strong { color: var(--ink); font-weight: 600; }

/* ════════════════ ABOUT ════════════════ */
.about-section .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-section h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: 14ch; }
.about-section h2 .accent { color: var(--coral-deep); }
.about-section p { font-size: 1.18rem; line-height: 1.65; color: var(--muted); max-width: 60ch; }

/* ════════════════ AUDIENCES (cards w/ custom icons) ════════════════ */
.audience-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem;
}
.audience-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem 1.8rem; text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.audience-card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--coral-tint); color: var(--coral-deep); margin-bottom: 1.3rem;
}
.audience-card .icon svg { width: 26px; height: 26px; }
.audience-card h3 { font-size: 1.22rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; letter-spacing: -0.01em; }
.audience-card p { font-size: 1rem; color: var(--muted); line-height: 1.55; }
.card-emoji { display: none; }

/* ════════════════ PRINCIPLES (numbered list, asymmetrical) ════════════════ */
.principles .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; }
.principle { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.principle-num {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--coral-deep); margin-bottom: .6rem; display: inline-block;
  background: none; width: auto; height: auto; border-radius: 0;
}
.principle h3 { font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.principle p { font-size: 1rem; color: var(--muted); line-height: 1.55; }

/* ════════════════ Before / After interactive demo ════════════════ */
.demo { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--ink); color: #fff; position: relative; overflow: clip; }
.demo .sec-head h2, .demo .sec-head { color: #fff; }
.demo .sec-head h2 { color:#fff; }
.demo .sec-head h2 .accent { color: var(--coral); }
.demo .sec-head p { color: rgba(255,255,255,.7); }
.demo .eyebrow { color: var(--coral); }
.demo-shell {
  margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.demo-pane {
  border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.12);
  background: #1d1813; padding: 1.6rem; min-height: 260px;
  display: flex; flex-direction: column;
}
.demo-pane.is-after { background: #fff; color: var(--ink); border-color: transparent; }
.demo-tag {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1rem; display: inline-flex; align-items:center; gap:.5rem;
}
.demo-pane.is-before .demo-tag { color: var(--muted-2); }
.demo-pane.is-after .demo-tag { color: var(--coral-deep); }
.demo-tag .pip { width:7px; height:7px; border-radius:50%; background: currentColor; }
.demo-sample-link { color: #6f6a64; text-decoration: underline; font-size: .8rem; }
.demo-pane.is-after .demo-sample-link { color: var(--coral-deep); text-decoration-thickness: 2px; }
.demo-body-text { line-height: 1.5; font-size: .95rem; }
.demo-pane.is-before .demo-body-text { color: #8b857d; font-size: .8rem; line-height: 1.35; }
.demo-pane.is-after .demo-body-text { color: var(--ink); font-size: 1.05rem; line-height: 1.7; }
/* Live before/after toggles applied to the "after" pane */
.demo-pane.is-after { transition: background .3s var(--ease), color .3s var(--ease); }
.demo-pane.is-after .demo-body-text { transition: font-size .3s var(--ease), line-height .3s var(--ease), letter-spacing .3s var(--ease); }
.demo-pane.opt-size .demo-body-text { font-size: 1.35rem; }
.demo-pane.opt-space .demo-body-text { line-height: 2.1; letter-spacing: .02em; word-spacing: .14em; }
.demo-pane.opt-font .demo-body-text { font-family: 'OpenDyslexic', 'Comic Sans MS', 'Trebuchet MS', sans-serif; }
.demo-pane.opt-contrast {
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.demo-pane.is-after.opt-contrast .demo-body-text { color: #fff; }
.demo-pane.opt-contrast .demo-tag { color: var(--coral-tint2); }
.demo-pane.opt-contrast .demo-sample-link { color: #fff; text-decoration-color: var(--coral); font-weight: 600; }

.demo-controls { margin-top: 3rem; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.demo-chip {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  padding: .65rem 1.1rem; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.demo-chip:hover { background: rgba(255,255,255,.16); }
.demo-chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ════════════════ PRODUCTS ════════════════ */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3rem; }
.product-card {
  position: relative; overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2.4rem; display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-card .card-glow { display: none; }
.product-card.websites { background: linear-gradient(180deg, #fff, var(--coral-tint)); }
.card-icon { width: 56px; height: 56px; margin-bottom: 1.4rem; display: flex; color: var(--purple); }
.card-icon img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; }
.card-icon svg { width: 56px; height: 56px; }
.card-icon svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.card-icon svg .icon-accent { fill: var(--coral); }
.card-icon svg circle[fill="currentColor"] { fill: currentColor; }
.product-spotlight {
  margin-top: 3rem; max-width: 920px;
  padding: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--surface) 0%, var(--coral-tint) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.product-spotlight:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-spotlight-head {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 1.15rem;
}
.product-spotlight-logo {
  width: clamp(64px, 10vw, 80px); height: auto; flex-shrink: 0;
  border-radius: 18px; box-shadow: 0 14px 32px -18px rgba(48, 16, 112, .32);
}
.product-spotlight-title { min-width: 0; }
.product-spotlight-title h3 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; margin: 0;
}
.product-spotlight > p {
  color: var(--muted); font-size: 1.05rem; line-height: 1.65;
  max-width: 58ch; margin: 0 0 1.6rem;
}
.product-spotlight-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.4rem;
}
.product-spotlight-actions .hero-link { margin: 0; }
.card-badge {
  font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral-deep) !important; background: transparent !important;
  padding: 0 !important; margin-bottom: .6rem; border-radius: 0;
}
.product-card.hardware .card-badge { color: var(--muted) !important; }
.product-card h3 { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: .7rem; letter-spacing: -0.02em; }
.product-card p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.4rem; max-width: 42ch; }
.product-card .coming-soon-pill + .coming-soon-pill { margin-top: .2rem; }
.coming-soon-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  color: var(--coral-deep); text-decoration: none; background: transparent; padding: 0;
  transition: transform .2s var(--ease);
}
.coming-soon-pill::after { content: "→"; transition: transform .2s var(--ease); }
.coming-soon-pill:hover { transform: none; }
.coming-soon-pill:hover::after { transform: translateX(3px); }
.product-card.hardware .coming-soon-pill { color: var(--muted); pointer-events: none; }
.product-card.hardware .coming-soon-pill::after { content: none; }
.product-card.hardware .coming-soon-pill::before { content: "○"; margin-right: .4rem; color: var(--muted-2); }

/* ════════════════ CONTACT ════════════════ */
.notify .sec-head { text-align: left; }
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem; text-align: left; align-items: start;
}
.contact-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; color: var(--ink); }
.contact-info p { font-size: 1.02rem; line-height: 1.6; color: var(--muted); margin-bottom: .5rem; }
.contact-info a { color: var(--coral-deep); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-info a:hover { text-decoration: underline; }
.contact-note { font-size: .92rem !important; color: var(--muted-2) !important; }
.contact-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.contact-list li { font-size: 1rem; color: var(--muted); line-height: 1.5; padding-left: 1.5rem; position: relative; margin-bottom: .5rem; }
.contact-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--coral); background: #fff; box-shadow: 0 0 0 4px var(--coral-tint);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.contact-form button {
  margin-top: .4rem; align-self: flex-start;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.6rem; background: var(--coral); color: #fff; border: none; border-radius: var(--r-pill);
  cursor: pointer; transition: background .18s, transform .15s var(--ease);
  box-shadow: 0 10px 24px -12px var(--coral-deep);
}
.contact-form button:hover { background: var(--coral-deep); transform: translateY(-2px); }
.contact-form button:active { transform: translateY(0); }
.contact-form button:disabled { opacity: .6; cursor: not-allowed; }
.form-status { font-size: .95rem; font-weight: 500; min-height: 1.2rem; margin-top: .2rem; }
.form-status.success { color: #1f7a52; }
.form-status.success a { color: var(--coral-deep); font-weight: 600; }
.form-status.error { color: var(--coral-deep); }

/* ════════════════ FOOTER ════════════════ */
footer {
  background: var(--ink); color: rgba(255,255,255,.62);
  padding: clamp(3rem, 6vw, 5rem) 0 calc(2.4rem + env(safe-area-inset-bottom));
  font-size: .9rem;
}
footer .wrap { display: grid; gap: 1.6rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.footer-brand .axol-mark { width: 32px; height: 32px; }
footer .footer-colors { /* repurposed: a coral wave, no rainbow */
  display: block; margin: 0; width: 100%; max-width: 220px; color: var(--coral); opacity: .9;
}
footer .footer-colors svg { width: 100%; height: auto; display: block; }
footer .dot { display: none; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer strong, footer .accent { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; }

/* ════════════════════════ MOTION ════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-25%); } }

.hero-eyebrow { animation: fadeUp .7s var(--ease) .05s both; }
.hero-headline { animation: fadeUp .8s var(--ease) .15s both; }
.hero-tagline  { animation: fadeUp .8s var(--ease) .28s both; }
.hero-links    { animation: fadeUp .8s var(--ease) .4s both; }
.hero-trust    { animation: fadeUp .8s var(--ease) .5s both; }
.hero-stage    { animation: fadeUp .9s var(--ease) .3s both; }
.hero-wave svg { animation: waveDrift 9s linear infinite; width: 200%; }

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
html.js .reveal.reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .hero-wave svg { animation: none !important; }
}

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stage { max-width: 380px; margin: 0 auto; order: -1; }
  .hero-headline { max-width: 18ch; }
  .mission .wrap, .about-section .wrap, .principles .wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .demo-shell { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 600px) {
  nav { height: 60px; }
  :root { --nav-h: 60px; }
  .nav-links { gap: 0; }
  .nav-links li:nth-child(1), .nav-links li:nth-child(2) { display: none; }
  .nav-logo { font-size: 1.02rem; }
  .nav-logo .axol-mark { width: 28px; height: 28px; }
  .nav-cta { font-size: .82rem !important; padding: .5rem .95rem !important; }
  .audience-grid { grid-template-columns: 1fr; }
  .hero-links { gap: .8rem; }
  .hero-cta-link, .hero-link { width: 100%; justify-content: center; }
  .hero-badge { display: none; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Touch: replace hover lifts with press feedback */
@media (hover: none) {
  .audience-card:hover, .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .audience-card:active, .product-card:active { transform: scale(.99); }
}

/* Safe-area for fixed widgets */
.a11y-toggle { bottom: calc(1.5rem + env(safe-area-inset-bottom)); right: calc(1.5rem + env(safe-area-inset-right)); top: auto; left: auto; }
nav { padding-left: max(clamp(1.2rem,4vw,2.5rem), env(safe-area-inset-left)); padding-right: max(clamp(1.2rem,4vw,2.5rem), env(safe-area-inset-right)); }

/* ══════════════════════════════════════════
   ACCESSIBILITY TOOLBAR (injected by script.js) — recolored to coral
   ══════════════════════════════════════════ */
.a11y-toggle {
  position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom)); right: calc(1.5rem + env(safe-area-inset-right));
  width: 60px; height: 60px; padding: 0; border-radius: 50%; background: transparent; border: none;
  cursor: pointer; box-shadow: 0 10px 26px rgba(21,17,14,.28); z-index: 220;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.a11y-toggle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.a11y-toggle:hover { transform: scale(1.06); box-shadow: 0 14px 30px rgba(21,17,14,.36); }
.a11y-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.a11y-overlay { position: fixed; inset: 0; background: rgba(21,17,14,.45); z-index: 221; opacity: 0; pointer-events: none; transition: opacity .25s; }
.a11y-overlay.open { opacity: 1; pointer-events: auto; }

.a11y-panel {
  position: fixed; top: 0; right: 0; width: 380px; max-width: 100vw; height: 100vh;
  background: var(--surface); box-shadow: -8px 0 40px rgba(21,17,14,.22); z-index: 222;
  transform: translateX(105%); transition: transform .3s var(--ease); overflow-y: auto;
  padding: 1.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
}
.a11y-panel.open { transform: translateX(0); }
.a11y-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.a11y-panel-header h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.a11y-close { background: var(--paper-2); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; color: var(--ink); font-weight: 700; transition: background .2s; }
.a11y-close:hover { background: var(--line); }
.a11y-group { margin-bottom: 1.4rem; }
.a11y-group h3 { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: .65rem; }
.a11y-options { display: flex; gap: .4rem; flex-wrap: wrap; }
.a11y-btn { flex: 1 1 0; min-width: 0; padding: .6rem .5rem; background: var(--paper-2); border: 1.5px solid transparent; border-radius: var(--r-sm); font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.a11y-btn:hover { background: var(--coral-tint); }
.a11y-btn[aria-pressed="true"] { background: var(--coral); color: #fff; border-color: var(--coral); }
.a11y-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.a11y-toggle-row:last-child { border-bottom: none; }
.a11y-toggle-row label { font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.a11y-switch { position: relative; width: 46px; height: 26px; background: var(--line-strong); border-radius: 999px; border: none; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.a11y-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.a11y-switch[aria-checked="true"] { background: var(--coral); }
.a11y-switch[aria-checked="true"]::after { transform: translateX(20px); }
.a11y-switch:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.a11y-reset { width: 100%; margin-top: 1.25rem; padding: .85rem; background: var(--ink); color: #fff; border: none; border-radius: var(--r-sm); font-family: var(--font-display); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .2s; }
.a11y-reset:hover { background: #2a241e; }
.a11y-reading-guide { position: fixed; left: 0; right: 0; height: 44px; background: rgba(176,48,96,.14); border-top: 2px solid rgba(176,48,96,.55); border-bottom: 2px solid rgba(176,48,96,.55); pointer-events: none; z-index: 210; top: -100px; }

@media (max-width: 600px) {
  .a11y-panel { width: 100vw; }
  .a11y-toggle { width: 52px; height: 52px; bottom: calc(1rem + env(safe-area-inset-bottom)); right: calc(1rem + env(safe-area-inset-right)); }
  #epd-toggle { width: 52px; height: 52px; bottom: calc(1rem + env(safe-area-inset-bottom)); left: calc(1rem + env(safe-area-inset-left)); }
  #epd-panel { width: 100vw; max-width: 100vw; }
}

/* ══════════════════════════════════════════
   ACCESSIBILITY MODES (applied to <html> by the toolbar) — preserved
   ══════════════════════════════════════════ */
html[data-text-size="lg"]  { font-size: 18px; }
html[data-text-size="xl"]  { font-size: 20px; }
html[data-text-size="xxl"] { font-size: 22px; }

html[data-line-spacing="wide"]  p, html[data-line-spacing="wide"]  li { line-height: 2; }
html[data-line-spacing="wider"] p, html[data-line-spacing="wider"] li { line-height: 2.4; }

html[data-letter-spacing="wide"]  body { letter-spacing: .05em; }
html[data-letter-spacing="wider"] body { letter-spacing: .1em; word-spacing: .15em; }

@font-face { font-family: 'OpenDyslexic'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/opendyslexic-7.woff') format('woff'); }
@font-face { font-family: 'OpenDyslexic'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/opendyslexic-8.woff') format('woff'); }
html[data-font="dyslexia"] body, html[data-font="dyslexia"] body * { font-family: 'OpenDyslexic', 'Comic Sans MS', 'Trebuchet MS', Verdana, sans-serif !important; }

/* Dark mode */
html[data-contrast="dark"] body { background: #0e0a12; color: #ece8e2; }
html[data-contrast="dark"] nav { background: rgba(14,10,18,.82); border-bottom-color: #2a2438; }
html[data-contrast="dark"] nav.is-scrolled { border-bottom-color: #2a2438; }
html[data-contrast="dark"] .nav-logo, html[data-contrast="dark"] .nav-axolo { color: #ece8e2; }
html[data-contrast="dark"] .nav-links a:not(.nav-cta) { color: #cfc9c1; }
html[data-contrast="dark"] .nav-cta { background: var(--coral) !important; }
html[data-contrast="dark"] .hero { background: radial-gradient(120% 90% at 88% -10%, rgba(176,48,96,.16) 0%, transparent 55%), #0e0a12; }
html[data-contrast="dark"] .hero-headline, html[data-contrast="dark"] h1, html[data-contrast="dark"] h2, html[data-contrast="dark"] h3 { color: #f4f1ec; }
html[data-contrast="dark"] .hero-tagline, html[data-contrast="dark"] .hero-tagline span { color: #b7b0a7; -webkit-text-fill-color: #b7b0a7; }
html[data-contrast="dark"] .hero-link { color: #f4f1ec; }
html[data-contrast="dark"] .mission, html[data-contrast="dark"] .principles, html[data-contrast="dark"] .notify { background: #0a0810; }
html[data-contrast="dark"] .audiences, html[data-contrast="dark"] .products, html[data-contrast="dark"] .about-section { background: #0e0a12; }
html[data-contrast="dark"] .mission p, html[data-contrast="dark"] .about-section p, html[data-contrast="dark"] .sec-head p, html[data-contrast="dark"] .audience-card p, html[data-contrast="dark"] .principle p, html[data-contrast="dark"] .product-card p, html[data-contrast="dark"] .contact-info p { color: #b7b0a7; }
html[data-contrast="dark"] .mission p strong { color: #f4f1ec; }
html[data-contrast="dark"] .audience-card, html[data-contrast="dark"] .product-card, html[data-contrast="dark"] .contact-form { background: #16101e; border-color: #2a2438; }
html[data-contrast="dark"] .product-card.websites { background: linear-gradient(180deg, #16101e, #1e1528); }
html[data-contrast="dark"] .product-spotlight { background: linear-gradient(135deg, #16101e 0%, #1e1528 100%); border-color: #2a2438; }
html[data-contrast="dark"] .product-spotlight > p { color: #b7b0a7; }
html[data-contrast="dark"] .product-spotlight-title h3 { color: #f4f1ec; }
html[data-contrast="dark"] .audience-card .icon { background: rgba(176,48,96,.18); color: var(--coral-tint2); }
html[data-contrast="dark"] .principle { border-top-color: #2a2438; }
html[data-contrast="dark"] .form-row input, html[data-contrast="dark"] .form-row select, html[data-contrast="dark"] .form-row textarea { background: #0e0a12; border-color: #2a2438; color: #ece8e2; }
html[data-contrast="dark"] .page-label { background: #1e1528; color: var(--coral-tint2); }
html[data-contrast="dark"] .demo-box, html[data-contrast="dark"] .compare-card { background: #16101e; border-color: #2a2438; }
html[data-contrast="dark"] .demo-box h3, html[data-contrast="dark"] .compare-card h3 { color: #f4f1ec; }
html[data-contrast="dark"] .demo-box p, html[data-contrast="dark"] .compare-card li { color: #cfc9c1; }
html[data-contrast="dark"] .compare-card.new { background: #1e1528; border-color: var(--coral-deep); }
html[data-contrast="dark"] .features-section { background: #0a0810 !important; }
html[data-contrast="dark"] .feature-icon { background: rgba(176,48,96,.18); color: var(--coral-tint2); }
html[data-contrast="dark"] .product-statement { color: #b7b0a7; }
html[data-contrast="dark"] .product-statement strong { color: #f4f1ec; }
html[data-contrast="dark"] .a11y-panel { background: #16101e; }
html[data-contrast="dark"] .a11y-panel-header h2 { color: #f4f1ec; }
html[data-contrast="dark"] .a11y-btn { background: #2a2438; color: #ece8e2; }
html[data-contrast="dark"] .a11y-btn:hover { background: #342d48; }
html[data-contrast="dark"] .a11y-close { background: #2a2438; color: #ece8e2; }
html[data-contrast="dark"] .a11y-toggle-row label { color: #ece8e2; }
html[data-contrast="dark"] .a11y-toggle-row { border-bottom-color: #2a2438; }

/* High contrast (black / yellow) */
html[data-contrast="high"] body { background: #000 !important; color: #fff !important; }
html[data-contrast="high"] body *:not(.a11y-toggle):not(.a11y-toggle *):not(svg):not(svg *) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; filter: none !important;
}
html[data-contrast="high"] a, html[data-contrast="high"] a * { color: #ffff00 !important; text-decoration: underline !important; }
html[data-contrast="high"] button, html[data-contrast="high"] .nav-cta, html[data-contrast="high"] .btn, html[data-contrast="high"] .hero-cta-link {
  background: #ffff00 !important; color: #000 !important; border: 2px solid #fff !important;
}
html[data-contrast="high"] .hero-tagline span { -webkit-text-fill-color: #ffff00 !important; }

/* Color filters */
html[data-saturation="grayscale"] body { filter: grayscale(1); }
html[data-saturation="inverted"] body { filter: invert(1) hue-rotate(180deg); }
html[data-saturation="sepia"] body { filter: saturate(.65); }

/* Always underline links */
html[data-underline-links="on"] a:not(.nav-cta):not(.btn):not(.hero-cta-link) { text-decoration: underline !important; }

/* Enhanced focus */
html[data-enhanced-focus="on"] *:focus, html[data-enhanced-focus="on"] *:focus-visible {
  outline: 4px solid var(--coral) !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px var(--coral-tint) !important;
}

/* Reduced motion (toolbar) */
html[data-reduce-motion="on"] *, html[data-reduce-motion="on"] *::before, html[data-reduce-motion="on"] *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
  transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
}

/* Large cursor */
html[data-big-cursor="on"] body { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M3 3 L3 32 L11 24 L16 36 L22 33 L17 22 L28 22 Z' fill='black' stroke='white' stroke-width='2.5' stroke-linejoin='round'/></svg>") 3 3, auto; }
html[data-big-cursor="on"] a, html[data-big-cursor="on"] button, html[data-big-cursor="on"] [role="button"], html[data-big-cursor="on"] input, html[data-big-cursor="on"] label {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M16 2 L16 22 L11 18 L8 21 L18 33 L24 33 L32 21 L29 18 L24 22 L24 8 L22 8 L22 5 L20 5 L20 2 Z' fill='black' stroke='white' stroke-width='2'/></svg>") 16 2, pointer !important;
}

/* Highlight headings */
html[data-highlight-headings="on"] h1, html[data-highlight-headings="on"] h2, html[data-highlight-headings="on"] h3 {
  background: rgba(176,48,96,.16); padding: .1em .3em; border-radius: 4px;
}

/* Pause animations */
html[data-pause-animations="on"] *, html[data-pause-animations="on"] *::before, html[data-pause-animations="on"] *::after { animation-play-state: paused !important; }

/* Lock scroll when a11y panel open */
html.a11y-locked, html.a11y-locked body { overflow: hidden; }

/* ══════════════════════════════════════════
   ACCESSIBILITY SURFER POPUP PREVIEW (injected) — magenta brand identity
   ══════════════════════════════════════════ */
#epd-toggle {
  position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom)); left: calc(1.5rem + env(safe-area-inset-left));
  width: 60px; height: 60px; padding: 0; border: none; border-radius: 18px; background: transparent; cursor: pointer;
  z-index: 9000; box-shadow: 0 10px 26px rgba(176,48,96,.35); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
#epd-toggle img { width: 100%; height: 100%; display: block; border-radius: 18px; object-fit: cover; }
#epd-toggle::after {
  content: 'Try Accessibility Surfer'; position: absolute; top: 50%; left: calc(100% + 10px); transform: translateY(-50%);
  white-space: nowrap; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  padding: 5px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
#epd-toggle:hover::after, #epd-toggle:focus-visible::after { opacity: 1; }
#epd-toggle:hover { transform: scale(1.06); }
#epd-toggle:active { transform: scale(.96); }
#epd-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

#epd-overlay { position: fixed; inset: 0; background: rgba(21,17,14,.4); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 9001; }
#epd-overlay.epd-open { opacity: 1; pointer-events: auto; }

#epd-panel {
  position: fixed; top: 0; left: 0; width: 360px; max-width: 92vw; height: 100vh; height: 100dvh;
  background: #fff; color: #0f1419; z-index: 9002; box-shadow: 8px 0 40px rgba(21,17,14,.22);
  transform: translateX(-105%); transition: transform .28s var(--ease); overflow-y: auto; padding: 20px 20px 28px;
  font-family: 'Lexend', var(--font-body);
}
#epd-panel.epd-open { transform: translateX(0); }
#epd-panel *, #epd-panel *::before, #epd-panel *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { #epd-toggle, #epd-overlay, #epd-panel { transition: none !important; } }

.epd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.epd-logo { width: 64px; height: auto; display: block; margin-bottom: 4px; }
.epd-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.018em; line-height: 1.05; }
.epd-title .accent { color: var(--coral); }
.epd-tagline { color: #5a6470; font-size: .88rem; margin-top: 2px; }
.epd-close { flex-shrink: 0; background: var(--coral-tint); color: var(--coral); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.epd-close:hover { background: var(--coral-tint2); }
.epd-close:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.epd-note { margin: 10px 0 2px; padding: 7px 11px; background: var(--coral-tint); border-radius: 8px; font-size: .74rem; color: #5a6470; line-height: 1.4; }
.epd-section-heading { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin: 1.15rem 0 .5rem; padding-top: .6rem; border-top: 1px solid #e2e8ef; }
.epd-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 .9rem; }
.epd-toggle-info { display: flex; flex-direction: column; min-width: 0; }
.epd-label { font-weight: 600; font-size: .96rem; }
.epd-status { font-size: .78rem; color: #5a6470; margin-top: 2px; }
.epd-status.on { color: var(--coral-deep); font-weight: 600; }
.epd-switch { position: relative; width: 50px; height: 28px; background: #cdd5df; border-radius: 999px; border: none; cursor: pointer; flex-shrink: 0; transition: background .2s; padding: 0; }
.epd-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.epd-switch[aria-checked="true"] { background: var(--coral); }
.epd-switch[aria-checked="true"]::after { transform: translateX(22px); }
.epd-switch:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.epd-slider-block { margin-bottom: 1rem; }
.epd-slider-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.epd-slider-label .epd-value { color: var(--coral); font-weight: 700; }
#epd-panel input[type="range"] { width: 100%; accent-color: var(--coral); height: 24px; }
#epd-panel input[type="range"]:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 4px; }
.epd-how { background: var(--coral-tint); border-radius: 12px; padding: 14px 16px; margin-top: 1rem; }
.epd-how h3 { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.epd-how ol { list-style: none; padding: 0; counter-reset: epd-step; }
.epd-how li { font-size: .88rem; line-height: 1.5; color: #0f1419; padding-left: 1.9rem; position: relative; counter-increment: epd-step; margin-bottom: 5px; }
.epd-how li:last-child { margin-bottom: 0; }
.epd-how li::before { content: counter(epd-step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: .76rem; display: flex; align-items: center; justify-content: center; }
.epd-ta-desc { font-size: .82rem; color: #5a6470; margin: .5rem 0 .9rem; line-height: 1.45; }
.epd-subhead { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0f1419; margin: .85rem 0 .45rem; }
.epd-section-header { display: flex; justify-content: space-between; align-items: baseline; margin: .85rem 0 .45rem; }
.epd-section-header .epd-subhead { margin: 0; }
.epd-reset-link { background: none; border: none; color: #5a6470; font-family: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.epd-reset-link:hover { color: var(--coral); }
.epd-font-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.epd-font-btn { background: var(--coral-tint); border: 2px solid transparent; border-radius: 10px; padding: 8px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; color: #0f1419; font-family: inherit; transition: background .15s, border-color .15s; }
.epd-font-btn:hover { background: var(--coral-tint2); }
.epd-font-btn[aria-pressed="true"] { background: #fff; border-color: var(--coral); color: var(--coral); }
.epd-font-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.epd-font-name { font-size: .78rem; font-weight: 700; line-height: 1.1; }
.epd-font-preview { font-size: .74rem; color: #5a6470; line-height: 1.15; }
.epd-font-btn[data-font="opendyslexic"] .epd-font-preview { font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif; }
.epd-font-btn[data-font="lexend"] .epd-font-preview { font-family: 'Lexend', sans-serif; }
.epd-font-btn[data-font="arial"] .epd-font-preview { font-family: Arial, Helvetica, sans-serif; }
.epd-font-btn[data-font="comic"] .epd-font-preview { font-family: 'Comic Sans MS', 'Comic Sans', cursive; }
.epd-font-btn[data-font="atkinson"] .epd-font-preview { font-family: 'Atkinson Hyperlegible', sans-serif; }
.epd-slider-row { display: flex; align-items: center; gap: 10px; }
.epd-slider-row input[type="range"] { flex: 1; }
.epd-slider-value { color: var(--coral); font-weight: 700; font-size: .85rem; min-width: 42px; text-align: right; }
.epd-pill-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.epd-pill-row:last-child { margin-bottom: 0; }
.epd-pill-row-label { font-size: .78rem; font-weight: 600; color: #0f1419; min-width: 46px; }
.epd-pill-group { display: flex; gap: 4px; flex: 1; }
.epd-pill-btn { flex: 1; background: var(--coral-tint); color: #0f1419; border: 1px solid transparent; border-radius: 999px; padding: 5px 6px; font-family: inherit; font-size: .74rem; font-weight: 600; cursor: pointer; transition: background .12s, color .12s, border-color .12s; text-align: center; white-space: nowrap; }
.epd-pill-btn:hover { background: var(--coral-tint2); }
.epd-pill-btn[aria-pressed="true"] { background: var(--coral); color: #fff; border-color: var(--coral); }
.epd-pill-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.epd-reset-all { width: 100%; padding: .7rem 1rem; background: #0f1419; color: #fff; border: none; border-radius: 10px; font-family: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; margin-top: 1rem; transition: background .15s; }
.epd-reset-all:hover { background: #2a2f36; }
.epd-reset-all:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.epd-footer { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid #e2e8ef; text-align: center; font-size: .76rem; color: #5a6470; }
.epd-footer a { color: var(--coral); text-decoration: none; font-weight: 600; }
.epd-footer a:hover { text-decoration: underline; }
.epd-action-toast { margin-top: .75rem; padding: .65rem .85rem; background: var(--coral-tint); border-radius: 10px; font-size: .82rem; color: #0f1419; line-height: 1.45; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.epd-action-toast.epd-action-toast-visible { opacity: 1; transform: translateY(0); }
html[data-contrast="dark"] #epd-panel { background: #1f1f1f; color: #f0f0f0; }
html[data-contrast="dark"] .epd-tagline, html[data-contrast="dark"] .epd-ta-desc, html[data-contrast="dark"] .epd-status, html[data-contrast="dark"] .epd-footer { color: #bbb; }
html[data-contrast="dark"] .epd-label, html[data-contrast="dark"] .epd-subhead, html[data-contrast="dark"] .epd-how li, html[data-contrast="dark"] .epd-font-name { color: #f0f0f0; }
html[data-contrast="dark"] .epd-how, html[data-contrast="dark"] .epd-note, html[data-contrast="dark"] .epd-font-btn, html[data-contrast="dark"] .epd-pill-btn { background: #2a2a2a; }
html[data-contrast="dark"] .epd-font-btn[aria-pressed="true"] { background: #1e1528; }
html[data-contrast="dark"] .epd-close { background: #2a2a2a; }
