@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/poppins-300.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/poppins-400.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/poppins-500.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/poppins-600.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/poppins-700.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/poppins-800.woff2') format('woff2');}
/* === Brand tokens (Sensory Readable) === */
:root {
  --brand-indigo:  #6e68ca;
  --brand-sky:     #b8ddff;
  --title-indigo:  #3d31be;
  --body-black:    #000000;
  --pure-white:    #ffffff;
  --kbd-bg:        #eeeeee;
  --kbd-border:    #999999;
  --focus-outline: #ffbf47;
  --border-light:  #d2d2d7;
  --transition:    all 0.3s ease;
  --sky-pale:      #e8f4ff;
  --indigo-deep:   #2a2080;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #000000; background: var(--pure-white); line-height: 1.8; font-size: 16px; overflow-x: hidden; }

.skip-link { position: absolute; top: -100px; left: 0; background: var(--title-indigo); color: white; padding: 10px; z-index: 9999; }
.skip-link:focus { top: 0; outline: 3px solid var(--focus-outline); }

h1, h2, h3, h4 { color: var(--title-indigo); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
p, li { color: #000000; margin-bottom: 1rem; }
a:focus, button:focus { outline: 3px solid var(--focus-outline); outline-offset: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
section { padding: 80px 0; }
.bg-pale { background: var(--sky-pale); }

/* === BUTTONS === */
.btn-sensory {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-sky); color: var(--title-indigo) !important;
  padding: 12px 28px; border-radius: 12px; font-weight: 800;
  text-decoration: none; border: 2px solid var(--title-indigo);
  transition: var(--transition); font-family: 'Poppins', sans-serif; font-size: 0.93rem;
}
.btn-sensory:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: white !important;
  padding: 11px 26px; border-radius: 12px; font-weight: 700;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition); font-size: 0.93rem;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }

kbd { display: inline-block; padding: 2px 8px; background: var(--kbd-bg); border: 1px solid var(--kbd-border); border-radius: 6px; font-family: monospace; font-weight: 700; font-size: 0.88em; box-shadow: 0 2px 0 #ccc; }

/* === NAV === */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #ffffff; backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--brand-sky);
  height: 64px; display: flex; align-items: center; padding: 0 32px; gap: 1rem;
  box-shadow: 0 2px 8px rgba(61,49,190,0.08);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--title-indigo); font-weight: 800; font-size: 1rem; flex: 1; }
.nav-brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-brand .sub { font-size: 0.7rem; font-weight: 400; color: var(--title-indigo); display: block; line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--title-indigo); font-size: 0.88rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-indigo); }
.nav-links .btn-sensory { padding: 8px 18px; font-size: 0.83rem; }
@media (max-width: 680px) { .nav-links { display: none; } }

/* === HERO === */
.hero {
  background: linear-gradient(145deg, var(--indigo-deep) 0%, var(--title-indigo) 55%, var(--brand-indigo) 100%);
  padding: 100px 32px 60px; position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--pure-white); clip-path: ellipse(55% 100% at 50% 100%); }

/* Two-column hero layout */
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text { /* left column */ }

.hero-app-row { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.hero-icon { width: 72px; height: 72px; border-radius: 18px; display: block; box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.12); flex-shrink: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); color: var(--brand-sky); border: 1px solid rgba(184,221,255,0.35); border-radius: 100px; padding: 0.3rem 1rem; font-size: 0.78rem; font-weight: 600; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-sky); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: white !important; line-height: 1.1; margin-bottom: 1rem; }
.hero h1 .sky { color: var(--brand-sky) !important; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.85) !important; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.hero-tag { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.75) !important; font-size: 0.82rem; font-weight: 500; }

/* Right column: framed screenshot */
.hero-screenshot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-screen-frame {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  width: 100%;
  /* subtle glow to lift the frame off the bg */
  filter: drop-shadow(0 8px 32px rgba(184,221,255,0.2));
}
.hero-screen-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  /* darken slightly so it doesn't glare */
  filter: brightness(0.92) contrast(1.05);
}

/* Mobile: stack vertically, screenshot below */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 100px 24px 60px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-screenshot { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 500px) {
  .hero-screenshot { display: none; } /* hide on very small screens to keep hero clean */
}

/* === SECTION LABELS === */
.section-label { display: inline-block; background: var(--brand-sky); color: var(--title-indigo); font-size: 0.71rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.28rem 0.9rem; border-radius: 100px; margin-bottom: 0.7rem; border: 1px solid rgba(61,49,190,0.12); }

/* === FEATURES === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--pure-white); border: 2px solid var(--brand-sky); border-radius: 16px; padding: 2rem; transition: var(--transition); }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(110,104,202,0.14); border-color: var(--brand-indigo); }
.feat-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--brand-sky); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.87rem; color: #333; margin-bottom: 0; }

/* === STYLES GRID === */
.styles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem; }
.style-card { background: var(--pure-white); border: 2px solid var(--border-light); border-radius: 16px; overflow: hidden; transition: var(--transition); }
.style-card:hover { border-color: var(--brand-indigo); box-shadow: 0 8px 24px rgba(110,104,202,0.12); transform: translateY(-2px); }
.style-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 2px solid var(--brand-sky); background: var(--sky-pale); }
.style-card-body { padding: 1.25rem; }
.snum { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--title-indigo); color: white; font-size: 0.72rem; font-weight: 800; margin-bottom: 0.45rem; }
.style-card-body h3 { font-size: 0.93rem; margin-bottom: 0.3rem; }
.style-card-body p { font-size: 0.82rem; color: #444; margin-bottom: 0; }

/* === TABLE === */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 2px solid var(--brand-sky); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--brand-sky); color: var(--title-indigo); text-align: left; padding: 13px 16px; font-size: 0.81rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
tbody td { padding: 11px 16px; border-bottom: 1px solid var(--brand-sky); font-size: 0.87rem; color: #222; }
tbody tr:last-child td { border-bottom: none; }
.keys { display: flex; gap: 4px; align-items: center; }

/* === TINT SECTION === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }
.tint-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.9rem 0; }
.tint-chip { display: flex; align-items: center; gap: 6px; padding: 0.28rem 0.8rem; border-radius: 100px; font-size: 0.79rem; font-weight: 500; border: 1px solid rgba(0,0,0,0.1); }
.tint-dot { width: 12px; height: 12px; border-radius: 50%; }
.img-stack { display: flex; flex-direction: column; gap: 1rem; }
.img-stack img { width: 100%; border-radius: 12px; border: 2px solid var(--brand-sky); }

/* === READER SECTION — title-indigo bg for AAA contrast === */
.reader-section { background: #e3c7ff; }
.reader-section h2 { color: var(--title-indigo) !important; }
.reader-section p  { color: var(--body-black) !important; }

.reader-label { display: inline-block; background: var(--brand-sky); color: var(--title-indigo); font-size: 0.71rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.28rem 0.9rem; border-radius: 100px; margin-bottom: 0.7rem; border: 1px solid rgba(184,221,255,0.4); }

.reader-feats { list-style: none; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.8rem; }
.reader-feats li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--body-black) !important; font-size: 0.89rem; margin-bottom: 0; }
.reader-feats li strong { color: var(--title-indigo) !important; }
.tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--title-indigo); border: 1px solid var(--title-indigo); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.tick svg { width: 11px; height: 11px; stroke: white; }

.reader-panel { background: rgba(255,255,255,0.55); border: 2px solid var(--title-indigo); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.reader-panel img { width: 100%; border-radius: 10px; display: block; }


/* === PLATFORMS === */
.platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .platforms-grid { grid-template-columns: 1fr; } }
.platform-card { border-radius: 20px; padding: 2.5rem; position: relative; overflow: hidden; background: #e3c7ff; border: 2px solid var(--brand-sky); }
.platform-card h3 { font-size: 1.2rem; color: var(--title-indigo) !important; }
.platform-card p { color: #000000 !important; font-size: 0.88rem; margin-bottom: 1.4rem; }
.plat-badge { display: inline-block; background: var(--brand-sky); border: 1px solid rgba(61,49,190,0.2); border-radius: 100px; color: var(--title-indigo) !important; padding: 0.22rem 0.82rem; font-size: 0.74rem; font-weight: 700; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.plat-icon { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1rem; display: block; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.plat-deco { position: absolute; right: -12px; bottom: -14px; font-size: 8rem; opacity: 0.08; line-height: 1; pointer-events: none; color: var(--title-indigo); }

/* === CALLOUT === */
.callout-card { background: var(--sky-pale); border: 2px solid var(--brand-sky); border-radius: 16px; padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 2rem; }
@media (max-width: 600px) { .callout-card { flex-direction: column; } }
.callout-icon { font-size: 2.2rem; flex-shrink: 0; }
.callout-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.callout-card p { font-size: 0.87rem; color: #222; margin-bottom: 0; }

/* === REQUIREMENTS === */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.req-item { background: var(--pure-white); border: 2px solid var(--brand-sky); border-radius: 12px; padding: 1.25rem; }
.req-lbl { font-size: 0.69rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--title-indigo); margin-bottom: 0.3rem; }
.req-val { font-size: 0.9rem; font-weight: 600; color: var(--title-indigo); }

/* === FOOTER === */
footer { background: #e3c7ff; padding: 3.5rem 32px; text-align: center; border-top: 3px solid var(--brand-sky); }
.foot-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 1rem; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand span { font-weight: 800; color: var(--title-indigo); font-size: 1.05rem; }
footer p { font-size: 0.84rem; color: #000000; margin-bottom: 0.35rem; }
footer a { color: var(--title-indigo); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { font-size: 0.76rem; color: #444; margin-top: 1rem; margin-bottom: 0; }
.btn-home {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--title-indigo); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(61,49,190,0.25);
  border-radius: 8px;
  transition: var(--transition);
  background: var(--sky-pale);
}
.btn-home:hover { background: var(--brand-sky); border-color: var(--brand-indigo); }

/* ============================================================
   MOBILE ENHANCEMENTS — font sizes & style card image viewer
   ============================================================ */

/* Style card image lightbox — checkbox toggle, pure CSS, no JS */
.img-expand-hint {
  display: none;
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(61,49,190,0.82);
  color: white;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
  pointer-events: none;
  z-index: 2;
}

.style-card input[type="checkbox"].img-toggle {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

.style-card label[for^="img-toggle-"] {
  display: block; position: relative;
}

.img-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.img-overlay img {
  max-width: 100%; max-height: 90vh;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
  border: none;
}
.img-overlay::after {
  content: '✕  tap to close';
  position: absolute; top: 16px; right: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem; font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 640px) {
  /* 1. Base font bump */
  html { font-size: 17px; }

  /* 2. Container tighten */
  section { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* 3. Key text size bumps */
  .feature-card p   { font-size: 0.95rem; }
  .feature-card h3  { font-size: 1.05rem; }
  .style-card-body p  { font-size: 0.92rem; }
  .style-card-body h3 { font-size: 1rem; }
  .callout-card p   { font-size: 0.95rem; }
  .platform-card p  { font-size: 0.95rem; }
  .reader-feats li  { font-size: 0.97rem; }
  .hero-sub         { font-size: 1.05rem; }
  tbody td          { font-size: 0.93rem; }
  .req-val          { font-size: 0.97rem; }
  .req-lbl          { font-size: 0.75rem; }
  footer p          { font-size: 0.93rem; }

  /* 4. Show expand hint on style card images */
  .img-expand-hint  { display: block; }
  .style-card label[for^="img-toggle-"] { cursor: zoom-in; }

  /* 5. Activate overlay when checkbox checked */
  .style-card input.img-toggle:checked ~ .img-overlay { display: flex; }
}

/* ============================================================
   ACCESSIBILITY WIDGET — font size + dark / high-contrast mode
   ============================================================ */
.a11y-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  font-family: 'Poppins', sans-serif;
}
.a11y-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--title-indigo); color: white;
  border: 2px solid var(--brand-sky); cursor: pointer;
  font-size: 0.9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-left: auto; line-height: 1;
}
.a11y-toggle:hover  { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.a11y-toggle:focus  { outline: 3px solid var(--focus-outline); outline-offset: 3px; }
.a11y-panel {
  background: white; border: 2px solid var(--title-indigo);
  border-radius: 14px; padding: 1rem; margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); width: 220px; display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel-title {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--title-indigo); margin-bottom: 0.75rem; display: block;
}
.a11y-font-row { display: flex; align-items: center; gap: 6px; margin-bottom: 0.75rem; }
.a11y-font-row span { font-size: 0.75rem; color: #555; flex: 1; font-weight: 600; }
.a11y-font-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 2px solid var(--brand-sky); background: #e8f4ff;
  color: var(--title-indigo); font-family: 'Poppins', sans-serif;
  font-weight: 800; cursor: pointer; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.a11y-font-btn:hover  { background: var(--brand-sky); }
.a11y-font-btn.active { background: var(--title-indigo); color: white; border-color: var(--title-indigo); }
.a11y-font-btn:focus  { outline: 3px solid var(--focus-outline); outline-offset: 2px; }
.a11y-divider { height: 1px; background: var(--brand-sky); margin: 0.75rem 0; }
.a11y-mode-row { display: flex; gap: 6px; }
.a11y-mode-btn {
  flex: 1; padding: 0.5rem 0; border-radius: 8px;
  border: 2px solid var(--brand-sky); background: #e8f4ff;
  color: var(--title-indigo); font-family: 'Poppins', sans-serif;
  font-size: 0.73rem; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: all 0.15s; line-height: 1.2;
}
.a11y-mode-btn .mode-icon { font-size: 1rem; }
.a11y-mode-btn:hover  { background: var(--brand-sky); }
.a11y-mode-btn.active { background: var(--title-indigo); color: white; border-color: var(--title-indigo); }
.a11y-mode-btn:focus  { outline: 3px solid var(--focus-outline); outline-offset: 2px; }
.a11y-reset {
  display: block; text-align: center; margin-top: 0.75rem;
  font-size: 0.72rem; color: var(--brand-indigo); cursor: pointer;
  text-decoration: underline; background: none; border: none;
  font-family: 'Poppins', sans-serif; width: 100%;
}
.a11y-reset:hover { color: var(--title-indigo); }
.a11y-reset:focus { outline: 3px solid var(--focus-outline); }

/* ── DARK MODE ── */
html.a11y-dark { --pure-white:#1a1a2a; --sky-pale:#151525; --brand-sky:#4a6fa5; --title-indigo:#a8c4e8; --brand-indigo:#8aa8d0; --body-black:#e8e8f0; --border-light:#333355; }
html.a11y-dark body { background:#1a1a2a; color:#e8e8f0; }
html.a11y-dark .topnav, html.a11y-dark .topbar { background:#0f0f1e !important; border-bottom-color:#4a6fa5 !important; }
html.a11y-dark h1, html.a11y-dark h2, html.a11y-dark h3, html.a11y-dark h4 { color:#a8c4e8 !important; }
html.a11y-dark .feature-card, html.a11y-dark .style-card, html.a11y-dark .style-card-body, html.a11y-dark .req-item { background:#252535 !important; border-color:#4a6fa5 !important; }
html.a11y-dark .feature-card p, html.a11y-dark .style-card-body p, html.a11y-dark .callout-card p, html.a11y-dark .req-val, html.a11y-dark .hs p, html.a11y-dark .hs li, html.a11y-dark tbody td { color:#d0d0e0 !important; }
html.a11y-dark .bg-pale { background:#1e1e30 !important; }
html.a11y-dark .callout-card, html.a11y-dark .callout, html.a11y-dark .callout.tip, html.a11y-dark .callout.note, html.a11y-dark .callout.ok { background:#1e1e30 !important; border-color:#4a6fa5 !important; }
html.a11y-dark .callout-body, html.a11y-dark .cb { color:#d0d0e0 !important; }
html.a11y-dark .section-label, html.a11y-dark .page-label, html.a11y-dark .reader-label { background:#252550 !important; color:#a8c4e8 !important; }
html.a11y-dark thead th { background:#252550 !important; color:#a8c4e8 !important; }
html.a11y-dark .sidebar { background:#151525 !important; border-right-color:#4a6fa5 !important; }
html.a11y-dark .sidebar a { color:#c0c0d8 !important; }
html.a11y-dark .sidebar a.active { background:#252550 !important; }
html.a11y-dark .sg { color:#a8c4e8 !important; }
html.a11y-dark footer { background:#0f0f1e !important; }
html.a11y-dark footer p, html.a11y-dark footer a { color:#c0c0d8 !important; }
html.a11y-dark .a11y-panel { background:#252535; border-color:#4a6fa5; }
html.a11y-dark .a11y-panel-title { color:#a8c4e8; }
html.a11y-dark .a11y-font-btn, html.a11y-dark .a11y-mode-btn { background:#1e1e30; border-color:#4a6fa5; color:#a8c4e8; }
html.a11y-dark .a11y-font-row span { color:#a0a0c0; }
html.a11y-dark .a11y-reset { color:#a8c4e8; }

/* ── HIGH CONTRAST MODE ── */
html.a11y-hc { --pure-white:#000000; --sky-pale:#0a0a0a; --brand-sky:#ffff00; --title-indigo:#ffff00; --brand-indigo:#ffee00; --body-black:#ffffff; --border-light:#ffff00; }
html.a11y-hc body { background:#000000; color:#ffffff; }
html.a11y-hc .topnav, html.a11y-hc .topbar { background:#000000 !important; border-bottom:3px solid #ffff00 !important; }
html.a11y-hc h1, html.a11y-hc h2, html.a11y-hc h3, html.a11y-hc h4 { color:#ffffff !important; }
html.a11y-hc .nav-brand, html.a11y-hc .nav-links a, html.a11y-hc .topbar-brand { color:#ffffff !important; }
html.a11y-hc .feature-card, html.a11y-hc .style-card, html.a11y-hc .style-card-body, html.a11y-hc .req-item { background:#0a0a0a !important; border:2px solid #ffff00 !important; }
html.a11y-hc p, html.a11y-hc li { color:#ffffff !important; }
html.a11y-hc .bg-pale { background:#0a0a0a !important; }
html.a11y-hc .section-label, html.a11y-hc .page-label, html.a11y-hc .reader-label { background:#000000 !important; color:#ffff00 !important; border:1px solid #ffff00 !important; }
html.a11y-hc .btn-sensory { background:#ffff00 !important; color:#000000 !important; border-color:#ffff00 !important; }
html.a11y-hc .btn-outline { border-color:#ffff00 !important; color:#ffff00 !important; }
html.a11y-hc thead th { background:#ffff00 !important; color:#000000 !important; }
html.a11y-hc tbody td { color:#ffffff !important; border-color:#ffff00 !important; }
html.a11y-hc .callout, html.a11y-hc .callout-card { background:#000000 !important; border:2px solid #ffff00 !important; }
html.a11y-hc .callout-body strong, html.a11y-hc .cb strong, html.a11y-hc .callout-card h3 { color:#ffff00 !important; }
html.a11y-hc .callout-body, html.a11y-hc .cb { color:#ffffff !important; }
html.a11y-hc .sidebar { background:#000000 !important; border-right:2px solid #ffff00 !important; }
html.a11y-hc .sidebar a { color:#ffffff !important; }
html.a11y-hc .sidebar a.active { background:#ffff00 !important; color:#000000 !important; border-left-color:#ffff00 !important; }
html.a11y-hc .sg { color:#ffff00 !important; }
html.a11y-hc .page-hdr { border-bottom-color:#ffff00 !important; }
html.a11y-hc footer { background:#000000 !important; border-top:2px solid #ffff00 !important; }
html.a11y-hc footer p, html.a11y-hc footer a { color:#ffffff !important; }
html.a11y-hc .a11y-panel { background:#0a0a0a; border-color:#ffff00; }
html.a11y-hc .a11y-panel-title { color:#ffff00; }
html.a11y-hc .a11y-font-btn, html.a11y-hc .a11y-mode-btn { background:#000000; border-color:#ffff00; color:#ffff00; }
html.a11y-hc .a11y-font-row span { color:#ffffff; }
html.a11y-hc .a11y-reset { color:#ffff00; }

/* ── FONT SCALE STEPS ── */
html.font-large  { font-size: 19px; }
html.font-larger { font-size: 22px; }

/* === ACCESSIBILITY WIDGET === */
.a11y-widget{position:fixed;bottom:24px;right:24px;z-index:9000;font-family:'Poppins',sans-serif;}
.a11y-toggle{width:48px;height:48px;border-radius:50%;background:var(--title-indigo);color:white;border:2px solid var(--brand-sky);cursor:pointer;font-size:0.9rem;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,0.3);transition:transform 0.2s,box-shadow 0.2s;margin-left:auto;line-height:1;}
.a11y-toggle:hover{transform:scale(1.08);}
.a11y-toggle:focus{outline:3px solid #ffbf47;outline-offset:3px;}
.a11y-panel{background:white;border:2px solid var(--title-indigo);border-radius:14px;padding:1rem;margin-bottom:10px;box-shadow:0 8px 32px rgba(0,0,0,0.2);width:220px;display:none;}
.a11y-panel.open{display:block;}
.a11y-panel-title{font-size:0.7rem;font-weight:800;text-transform:uppercase;letter-spacing:0.1em;color:var(--title-indigo);margin-bottom:0.75rem;display:block;}
.a11y-font-row{display:flex;align-items:center;gap:6px;margin-bottom:0.75rem;}
.a11y-font-row span{font-size:0.75rem;color:#555;flex:1;font-weight:600;}
.a11y-font-btn{width:36px;height:36px;border-radius:8px;border:2px solid var(--brand-sky);background:#e8f4ff;color:var(--title-indigo);font-family:'Poppins',sans-serif;font-weight:800;cursor:pointer;font-size:0.8rem;display:flex;align-items:center;justify-content:center;transition:all 0.15s;flex-shrink:0;}
.a11y-font-btn:hover{background:var(--brand-sky);}
.a11y-font-btn.active{background:var(--title-indigo);color:white;border-color:var(--title-indigo);}
.a11y-font-btn:focus{outline:3px solid #ffbf47;outline-offset:2px;}
.a11y-divider{height:1px;background:var(--brand-sky);margin:0.75rem 0;}
.a11y-mode-row{display:flex;gap:6px;}
.a11y-mode-btn{flex:1;padding:0.5rem 0;border-radius:8px;border:2px solid var(--brand-sky);background:#e8f4ff;color:var(--title-indigo);font-family:'Poppins',sans-serif;font-size:0.73rem;font-weight:700;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;transition:all 0.15s;line-height:1.2;}
.a11y-mode-btn .mode-icon{font-size:1rem;}
.a11y-mode-btn:hover{background:var(--brand-sky);}
.a11y-mode-btn.active{background:var(--title-indigo);color:white;border-color:var(--title-indigo);}
.a11y-mode-btn:focus{outline:3px solid #ffbf47;outline-offset:2px;}
.a11y-reset{display:block;text-align:center;margin-top:0.75rem;font-size:0.72rem;color:var(--brand-indigo);cursor:pointer;text-decoration:underline;background:none;border:none;font-family:'Poppins',sans-serif;width:100%;}
.a11y-reset:hover{color:var(--title-indigo);}
/* Dark mode */
html.a11y-dark body{background:#1a1a2a;color:#e8e8f0;}
html.a11y-dark .topnav,html.a11y-dark .topbar{background:#0f0f1e !important;border-bottom-color:#4a6fa5 !important;}
html.a11y-dark h1,html.a11y-dark h2,html.a11y-dark h3,html.a11y-dark h4{color:#a8c4e8 !important;}
html.a11y-dark .bg-pale,html.a11y-dark section.bg-pale{background:#1e1e30 !important;}
html.a11y-dark .feature-card,html.a11y-dark .style-card-body,html.a11y-dark .req-item{background:#252535 !important;border-color:#4a6fa5 !important;}
html.a11y-dark .feature-card p,html.a11y-dark .style-card-body p,html.a11y-dark tbody td,html.a11y-dark .callout-card p,html.a11y-dark .hs p,html.a11y-dark .hs li,html.a11y-dark .cb{color:#d0d0e0 !important;}
html.a11y-dark .callout,html.a11y-dark .callout-card{background:#1e1e30 !important;border-color:#4a6fa5 !important;}
html.a11y-dark .section-label,html.a11y-dark .page-label,html.a11y-dark .reader-label{background:#252550 !important;color:#a8c4e8 !important;}
html.a11y-dark thead th{background:#252550 !important;color:#a8c4e8 !important;}
html.a11y-dark .sidebar{background:#151525 !important;border-right-color:#4a6fa5 !important;}
html.a11y-dark .sidebar a{color:#c0c0d8 !important;}
html.a11y-dark .sg{color:#a8c4e8 !important;}
html.a11y-dark footer{background:#0f0f1e !important;}
html.a11y-dark footer p,html.a11y-dark footer a{color:#c0c0d8 !important;}
html.a11y-dark .a11y-panel{background:#252535;border-color:#4a6fa5;}
html.a11y-dark .a11y-panel-title{color:#a8c4e8;}
html.a11y-dark .a11y-font-btn,html.a11y-dark .a11y-mode-btn{background:#1e1e30;border-color:#4a6fa5;color:#a8c4e8;}
html.a11y-dark .a11y-font-row span{color:#a0a0c0;}
html.a11y-dark .a11y-reset{color:#a8c4e8;}
/* High contrast */
html.a11y-hc body{background:#000000;color:#ffffff;}
html.a11y-hc .topnav,html.a11y-hc .topbar{background:#000000 !important;border-bottom:3px solid #ffff00 !important;}
html.a11y-hc h1,html.a11y-hc h2,html.a11y-hc h3,html.a11y-hc h4{color:#ffffff !important;}
html.a11y-hc .nav-brand,html.a11y-hc .nav-links a,html.a11y-hc .topbar-brand{color:#ffffff !important;}
html.a11y-hc .bg-pale{background:#0a0a0a !important;}
html.a11y-hc .feature-card,html.a11y-hc .style-card-body,html.a11y-hc .req-item{background:#0a0a0a !important;border:2px solid #ffff00 !important;}
html.a11y-hc p,html.a11y-hc li{color:#ffffff !important;}
html.a11y-hc .section-label,html.a11y-hc .page-label,html.a11y-hc .reader-label{background:#000000 !important;color:#ffff00 !important;border:1px solid #ffff00 !important;}
html.a11y-hc .btn-sensory{background:#ffff00 !important;color:#000000 !important;border-color:#ffff00 !important;}
html.a11y-hc .btn-outline{border-color:#ffff00 !important;color:#ffff00 !important;}
html.a11y-hc thead th{background:#ffff00 !important;color:#000000 !important;}
html.a11y-hc tbody td{color:#ffffff !important;border-color:#ffff00 !important;}
html.a11y-hc .callout,html.a11y-hc .callout-card{background:#000000 !important;border:2px solid #ffff00 !important;}
html.a11y-hc .callout-body,html.a11y-hc .cb{color:#ffffff !important;}
html.a11y-hc .callout-body strong,html.a11y-hc .cb strong,html.a11y-hc .callout-card h3{color:#ffff00 !important;}
html.a11y-hc .sidebar{background:#000000 !important;border-right:2px solid #ffff00 !important;}
html.a11y-hc .sidebar a{color:#ffffff !important;}
html.a11y-hc .sidebar a.active{background:#ffff00 !important;color:#000000 !important;}
html.a11y-hc .sg{color:#ffff00 !important;}
html.a11y-hc footer{background:#000000 !important;border-top:2px solid #ffff00 !important;}
html.a11y-hc footer p,html.a11y-hc footer a{color:#ffffff !important;}
html.a11y-hc .a11y-panel{background:#0a0a0a;border-color:#ffff00;}
html.a11y-hc .a11y-panel-title{color:#ffff00;}
html.a11y-hc .a11y-font-btn,html.a11y-hc .a11y-mode-btn{background:#000000;border-color:#ffff00;color:#ffff00;}
html.a11y-hc .a11y-font-row span,html.a11y-hc .a11y-reset{color:#ffff00;}
/* Font steps */
html.font-large{font-size:19px;}
html.font-larger{font-size:22px;}

/* ── Hero screenshot — desktop/mobile switching ── */
/* Desktop (>640px): show right column version, hide inline */
.hero-screenshot-inline  { display: none; }
.hero-screenshot-desktop { display: flex; }

/* Tablet (640–900px): single col, desktop version centred below text */
@media (max-width: 900px) {
  .hero-screenshot-desktop { max-width: 480px; margin: 1.5rem auto 0; }
}

/* Phone (<640px): hide desktop version, show inline between h1 and subtext */
@media (max-width: 640px) {
  .hero-screenshot-desktop { display: none; }
  .hero-screenshot-inline  {
    display: block;
    margin: 1.25rem -24px 0;
    width: calc(100% + 48px);
  }
  .hero-screenshot-inline .hero-screen-frame {
    border-radius: 0;
    border-left: none; border-right: none;
    padding: 6px 0;
  }
  .hero-screenshot-inline .hero-screen-img {
    border-radius: 0; width: 100%;
  }
  .hero-sub { margin-top: 1.25rem; }
}

/* Nav hamburger */
.nav-hamburger { display: none; align-items: center; justify-content: center; background: none; border: none; color: var(--title-indigo); cursor: pointer; padding: 6px; border-radius: 8px; flex-shrink: 0; }
.nav-hamburger:hover { background: var(--sky-pale); }
@media (max-width: 680px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .topnav { position: relative; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: white; border-bottom: 2px solid var(--brand-sky); padding: 1rem 1.5rem 1.25rem; gap: 0.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 500; }
  .nav-links.mobile-open a { padding: 0.65rem 0; border-bottom: 1px solid var(--sky-pale); font-size: 0.95rem; }
  .nav-links.mobile-open a:last-child { border-bottom: none; }
  .nav-links.mobile-open .btn-sensory { margin-top: 0.5rem; text-align: center; justify-content: center; }
}
/* ===== HELP / ARTICLE LAYOUT (from help guide) ===== */
/* === LAYOUT === */
.layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }

/* === SIDEBAR — sky-pale bg, title-indigo text = 7.97:1 AAA === */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
  overflow-y: auto; background: var(--sky-pale);
  border-right: 2px solid var(--brand-sky);
  padding: 1.25rem 0 3rem; transition: transform 0.3s ease;
}
/* Group labels: title-indigo on sky-pale = 7.97:1 AAA */
.sg { font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--title-indigo); padding: 1rem 1.25rem 0.3rem; display: block; }
.sidebar a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.83rem; font-weight: 500; color: var(--body-black); padding: 0.52rem 1.25rem; border-left: 3px solid transparent; transition: var(--transition); line-height: 1.35; }
.sidebar a:hover  { color: var(--title-indigo); background: rgba(184,221,255,0.4); }
/* Active: title-indigo on brand-sky = 6.28:1 AA */
.sidebar a.active { color: var(--title-indigo); background: var(--brand-sky); border-left-color: var(--title-indigo); font-weight: 700; }
.sidebar a.sub    { padding-left: 2.5rem; font-size: 0.8rem; font-weight: 400; }
.ni { font-size: 0.95rem; flex-shrink: 0; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); z-index: 150; box-shadow: 4px 0 24px rgba(0,0,0,0.15); }
  .sidebar.open { transform: translateX(0); }
}

/* === MAIN === */
.main { margin-left: var(--sidebar-w); flex: 1; padding: 3rem 3.5rem 5rem; max-width: 860px; }
@media (max-width: 1100px) { .main { padding: 2.5rem 2rem 4rem; } }
@media (max-width: 768px)  { .main { margin-left: 0; padding: 2rem 1.25rem 4rem; } }

/* === PAGES — visible by default, no JS required === */
.page { display: none; }
.page.active { display: block; }

/* === PAGE HEADER === */
.page-hdr { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 3px solid var(--brand-sky); }
/* Page label: title-indigo on brand-sky = 6.28:1 AA */
.page-label { display: inline-block; background: var(--brand-sky); color: var(--title-indigo); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 100px; margin-bottom: 0.6rem; border: 1px solid rgba(61,49,190,0.12); }
.page-hdr h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.4rem; }
/* Lead: #444 on white = 9.83:1 AAA */
.page-hdr .lead { font-size: 0.98rem; color: #444; max-width: 640px; margin-bottom: 0; }

/* === CONTENT === */
.hs { margin-bottom: 2.25rem; }
.hs h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.65rem; }
/* h3: title-indigo on white = 8.89:1 AAA */
.hs h3 { font-size: 0.97rem; font-weight: 700; color: var(--title-indigo); margin-bottom: 0.45rem; margin-top: 1.25rem; }
/* body: #222 on white = 16.17:1 AAA */
.hs p  { font-size: 0.9rem; color: #222; line-height: 1.75; margin-bottom: 0.7rem; }
.hs ul, .hs ol { margin: 0.45rem 0 0.75rem 1.4rem; }
.hs li { font-size: 0.9rem; color: #333; margin-bottom: 0.3rem; line-height: 1.65; }
.hs li strong { color: var(--title-indigo); }

/* images */
.hi { display: block; max-width: 100%; border-radius: 12px; border: 2px solid var(--brand-sky); margin: 1rem 0 0.4rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
/* caption: #595959 on white = 7.05:1 AAA */
.hc { font-size: 0.77rem; color: #595959; margin-bottom: 1.2rem; font-style: italic; }

/* callouts */
.callout { border-radius: 12px; padding: 1rem 1.25rem; margin: 1.25rem 0; display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.87rem; }
.ci { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.cb { line-height: 1.6; color: #222; }
/* callout headings: title-indigo on pale bgs = 7.97+ AAA */
.cb strong { display: block; font-weight: 700; margin-bottom: 0.15rem; color: var(--title-indigo); }
.callout.tip  { background: var(--sky-pale); border: 2px solid var(--brand-sky); }
.callout.note { background: #f0f9ff; border: 2px solid #7dd3fc; }
.callout.ok   { background: #f0fdf4; border: 2px solid #86efac; }

kbd { display: inline-block; padding: 2px 8px; background: var(--kbd-bg); border: 1px solid var(--kbd-border); border-radius: 6px; font-family: monospace; font-weight: 700; font-size: 0.87em; box-shadow: 0 2px 0 #ccc; }

/* table */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 2px solid var(--brand-sky); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--brand-sky); color: var(--title-indigo); text-align: left; padding: 12px 16px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
tbody td { padding: 10px 16px; border-bottom: 1px solid var(--brand-sky); font-size: 0.87rem; color: #222; }
tbody tr:last-child td { border-bottom: none; }
.keys { display: flex; gap: 4px; align-items: center; }

/* style overview pills */
.spills { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.65rem; margin: 1.2rem 0; }
@media (max-width: 500px) { .spills { grid-template-columns: 1fr 1fr; } }
.spill { background: var(--sky-pale); border: 2px solid var(--brand-sky); border-radius: 10px; padding: 0.6rem 0.85rem; font-size: 0.81rem; font-weight: 600; color: var(--title-indigo); display: flex; align-items: center; gap: 6px; }
.sn { width: 20px; height: 20px; background: var(--title-indigo); color: white; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }

/* tint swatches */
.trow { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.75rem 0; }
.tc { display: flex; align-items: center; gap: 6px; padding: 0.28rem 0.8rem; border-radius: 100px; font-size: 0.79rem; font-weight: 500; border: 1px solid rgba(0,0,0,0.1); }
.td { width: 12px; height: 12px; border-radius: 50%; }

/* numbered steps */
.steps { list-style: none; counter-reset: sc; margin: 1rem 0 1.5rem; }
.steps li { counter-increment: sc; display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.steps li::before { content: counter(sc); flex-shrink: 0; width: 28px; height: 28px; background: var(--title-indigo); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; margin-top: 2px; }
.steps li .sb { flex: 1; font-size: 0.9rem; color: #222; }
.steps li .sb p { margin: 0 0 0.5rem; line-height: 1.7; }

/* breadcrumb */
.bc { display: flex; align-items: center; gap: 6px; font-size: 0.77rem; color: #666; margin-bottom: 1.5rem; }
.bc a { color: var(--title-indigo); text-decoration: none; font-weight: 500; }
.bc a:hover { text-decoration: underline; }

/* page nav */
.pnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--brand-sky); flex-wrap: wrap; }
.pnav-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--sky-pale); color: var(--title-indigo); font-size: 0.84rem; font-weight: 700; padding: 0.6rem 1.15rem; border-radius: 10px; cursor: pointer; border: 2px solid var(--brand-sky); transition: var(--transition); font-family: 'Poppins', sans-serif; text-decoration: none; }
.pnav-btn:hover { background: var(--brand-sky); }
.pnav-btn.next { margin-left: auto; }


/* mobile overlay */
.overlay { display: none; position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,0.4); }
.overlay.show { display: block; }
/* ===== SHARED ADDITIONS (multi-page site) ===== */
:root { --sidebar-w: 272px; --topbar-h: 64px; }
img { max-width: 100%; height: auto; }
a { color: var(--title-indigo); }
.nav-links a[aria-current="page"]:not(.btn-sensory) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hero-eyebrow { color: var(--brand-sky) !important; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page hero for guides / iPhone page */
.page-hero {
  background: linear-gradient(145deg, var(--indigo-deep, #2a2080) 0%, var(--title-indigo) 55%, var(--brand-indigo) 100%);
  padding: 112px 0 56px;
}
.page-hero h1 { color: #fff !important; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.15; }
.page-hero .lead { color: rgba(255,255,255,0.9) !important; font-size: 1.05rem; max-width: 680px; margin-bottom: 0; }
.page-hero .section-label { background: var(--brand-sky); }
.container.narrow { max-width: 820px; }
.bc-light, .bc-light a { color: rgba(255,255,255,0.85) !important; }
.bc-light span { color: #fff; }
.article { padding: 48px 0 72px; }
.article .hs h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.article .hs h3 { font-size: 1.08rem; margin-top: 1.5rem; }
.article .hs p, .article .hs li { font-size: 1rem; }
.article .hs a { font-weight: 600; }
.article .hi { margin-top: 1.25rem; }

/* comparison table ticks */
.cmp td:nth-child(2), .cmp td:nth-child(3), .cmp th:nth-child(2), .cmp th:nth-child(3) { text-align: center; }
.cmp td:first-child { font-weight: 600; }

/* CTA box */
.cta-box { display: flex; gap: 1.5rem; align-items: flex-start; background: #e3c7ff; border: 2px solid var(--title-indigo); border-radius: 18px; padding: 1.75rem; margin: 3rem 0 2rem; }
.cta-box img { border-radius: 14px; flex-shrink: 0; }
.cta-box h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.cta-box p { font-size: 0.95rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-alt { background: #fff; }
@media (max-width: 600px) { .cta-box { flex-direction: column; } }

/* related cards / guide cards */
.related h2 { font-size: 1.2rem; }
.rel-grid, .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.rel-card, .guide-card { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; border: 2px solid var(--brand-sky); border-radius: 14px; padding: 1.1rem 1.25rem; background: var(--pure-white); transition: var(--transition); }
.rel-card:hover, .guide-card:hover { border-color: var(--brand-indigo); box-shadow: 0 8px 22px rgba(110,104,202,0.14); transform: translateY(-2px); }
.rel-t, .guide-card h3 { font-weight: 700; color: var(--title-indigo); font-size: 1rem; margin: 0; line-height: 1.3; }
.rel-d, .guide-card p { font-size: 0.87rem; color: #333; margin: 0; line-height: 1.55; }
.guide-card .more { font-size: 0.82rem; font-weight: 700; color: var(--title-indigo); margin-top: auto; padding-top: 0.4rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.faq details { border: 2px solid var(--brand-sky); border-radius: 12px; background: var(--pure-white); }
.faq summary { cursor: pointer; padding: 0.95rem 1.2rem; font-weight: 700; color: var(--title-indigo); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--focus-outline); outline-offset: 2px; border-radius: 10px; }
.faq-a { padding: 0 1.2rem 1rem; }
.faq-a p { font-size: 0.95rem; margin: 0; color: #222; }

/* iPhone section */
.ios-section { background: linear-gradient(160deg, #f4ecff 0%, var(--sky-pale) 100%); }
.ios-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .ios-grid { grid-template-columns: 1fr; gap: 2rem; } }
.ios-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 560px) { .ios-feats { grid-template-columns: 1fr; } }
.ios-feat { background: var(--pure-white); border: 2px solid var(--brand-sky); border-radius: 14px; padding: 1rem 1.1rem; }
.ios-feat h3 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.ios-feat p { font-size: 0.87rem; color: #333; margin: 0; line-height: 1.55; }
.phone { width: 270px; max-width: 100%; margin: 0 auto; background: #111; border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px rgba(42,32,128,0.35); }
.phone-screen { background: #fffbd6; border-radius: 32px; overflow: hidden; aspect-ratio: 9/18.5; display: flex; flex-direction: column; }
.phone-bar { background: var(--title-indigo); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 1.4rem 1rem 0.6rem; display: flex; justify-content: space-between; }
.phone-text { flex: 1; padding: 1rem 1.1rem; font-size: 1.28rem; line-height: 1.45; color: #111; font-weight: 600; }
.phone-text .spk { text-decoration: underline; text-decoration-color: #d00; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.phone-ctrls { display: flex; justify-content: space-around; padding: 0.8rem 0.6rem 1.2rem; background: #fff; border-top: 2px solid #e5e5ef; }
.phone-ctrls span { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-sky); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--title-indigo); font-weight: 800; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.5rem 0; counter-reset: s3; }
.step3 { background: var(--pure-white); border: 2px solid var(--brand-sky); border-radius: 14px; padding: 1.1rem 1.2rem; counter-increment: s3; }
.step3::before { content: counter(s3); display: inline-flex; width: 28px; height: 28px; border-radius: 8px; background: var(--title-indigo); color: #fff; font-weight: 800; align-items: center; justify-content: center; font-size: 0.85rem; margin-bottom: 0.5rem; }
.step3 h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.step3 p { font-size: 0.88rem; margin: 0; color: #333; line-height: 1.55; }
.privacy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.privacy-row span { background: var(--pure-white); border: 1px solid rgba(61,49,190,0.25); border-radius: 100px; padding: 0.3rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--title-indigo); }

/* "built on Windows" band */
.built-band { background: var(--pure-white); border: 2px solid var(--brand-sky); border-radius: 18px; padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .built-band { grid-template-columns: 1fr; } }
.built-band ul { list-style: none; margin: 0; }
.built-band li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; margin-bottom: 0.55rem; }

/* footer columns */
footer { text-align: left; }
.foot-cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-brand { justify-content: flex-start; }
.foot-h { font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; margin-bottom: 0.6rem; }
.foot-col ul { list-style: none; margin: 0; }
.foot-col li { margin-bottom: 0.35rem; font-size: 0.88rem; }
footer .copy { text-align: center; max-width: 1120px; margin: 2rem auto 0; border-top: 1px solid rgba(61,49,190,0.2); padding-top: 1rem; }

/* help layout fixes */
.soon-pill { font-size: 0.6rem; font-weight: 700; background: #e3c7ff; color: var(--title-indigo); padding: 1px 6px; border-radius: 100px; letter-spacing: 0.05em; vertical-align: middle; }
.help-toc-btn { display: none; margin-bottom: 1rem; background: var(--sky-pale); border: 2px solid var(--brand-sky); color: var(--title-indigo); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 10px; cursor: pointer; }
@media (max-width: 768px) { .help-toc-btn { display: inline-block; } }
.sidebar { z-index: 150; }
.help-foot footer { margin-left: var(--sidebar-w); position: relative; z-index: 160; }
@media (max-width: 768px) { .help-foot footer { margin-left: 0; } }
.hs a { color: var(--title-indigo); font-weight: 600; }
.bc a { text-decoration: none; }
.bc a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .layout { padding-top: 0; }
  .sidebar { top: 0; }
  .page-hero { padding: 40px 0 44px; }
  .hero { padding-top: 40px !important; }
}

/* dark / high contrast for new components */
html.a11y-dark .rel-card, html.a11y-dark .guide-card, html.a11y-dark .faq details, html.a11y-dark .ios-feat, html.a11y-dark .step3, html.a11y-dark .built-band { background:#252535 !important; border-color:#4a6fa5 !important; }
html.a11y-dark .rel-d, html.a11y-dark .guide-card p, html.a11y-dark .faq-a p, html.a11y-dark .ios-feat p, html.a11y-dark .step3 p, html.a11y-dark .article .hs p, html.a11y-dark .article .hs li, html.a11y-dark .built-band li, html.a11y-dark .cta-box p { color:#d0d0e0 !important; }
html.a11y-dark .ios-section, html.a11y-dark .cta-box, html.a11y-dark .reader-section, html.a11y-dark .platform-card { background:#1e1e30 !important; border-color:#4a6fa5 !important; }
html.a11y-dark .privacy-row span, html.a11y-dark .btn-alt { background:#252535 !important; }
html.a11y-dark a { color:#a8c4e8; }
html.a11y-hc .rel-card, html.a11y-hc .guide-card, html.a11y-hc .faq details, html.a11y-hc .ios-feat, html.a11y-hc .step3, html.a11y-hc .built-band, html.a11y-hc .cta-box, html.a11y-hc .platform-card { background:#000 !important; border:2px solid #ffff00 !important; }
html.a11y-hc .ios-section, html.a11y-hc .reader-section, html.a11y-hc .page-hero, html.a11y-hc .hero { background:#000 !important; }
html.a11y-hc a, html.a11y-hc .rel-t, html.a11y-hc .faq summary, html.a11y-hc .guide-card h3 { color:#ffff00 !important; }
html.a11y-hc .rel-d, html.a11y-hc .privacy-row span { color:#fff !important; background:#000 !important; }

/* consolidated help page */
[id] { scroll-margin-top: 84px; }
@media (max-width: 680px) { [id] { scroll-margin-top: 16px; } }
.help-sec { border-top: 3px solid var(--brand-sky); padding-top: 1.75rem; margin-top: 2.5rem; }
.help-sec > h2 { font-size: 1.5rem !important; margin-bottom: 0.8rem; }
.hs h4 { font-size: 0.95rem; color: var(--title-indigo); margin: 1.1rem 0 0.4rem; }
a.spill { text-decoration: none; }
a.spill:hover { background: var(--brand-sky); }
.main { min-width: 0; }
.main img, .main table { max-width: 100%; }

/* style-card lightbox: keep the enlarged copy hidden until tapped (mobile only) */
.style-card label.img-overlay { display: none; position: fixed; inset: 0; }
@media (max-width: 640px) { .style-card input.img-toggle:checked ~ label.img-overlay { display: flex; } }
@media (max-width: 640px) { .style-card:hover, .style-card { transform: none !important; } }

/* ===== Accessibility fixes (Lighthouse / axe) ===== */
/* Links inside text must not rely on colour alone */
p a:not(.btn-sensory):not(.btn-outline):not(.pnav-btn),
li a:not(.btn-sensory),
td a, .cb a, .faq-a a,
footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover, footer a:hover { text-decoration-thickness: 2px; }
/* Skip-link target shouldn't show a focus ring on the whole page */
main:focus { outline: none; }
/* Help contents panel: hidden from keyboard and screen readers while off-screen on mobile */
@media (max-width: 768px) {
  .sidebar { visibility: hidden; transition: transform 0.3s ease, visibility 0s linear 0.3s; }
  .sidebar.open { visibility: visible; transition: transform 0.3s ease, visibility 0s; }
}
/* Scrollable tables get a visible focus ring when tabbed to */
.table-wrap:focus-visible { outline: 3px solid var(--focus-outline); outline-offset: 2px; }
/* headings that receive focus from in-page links don't need a ring */
h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus, section[tabindex="-1"]:focus { outline: none; }
