/* Divergent Logic · Clear Space · approved reduced-copy concept, September 2026.
   Shared palette, typography, navigation and reading comfort for every page. */
@import url("/tokens/fonts.css?v=20260915");
@import url("/tokens/typography.css?v=20260915");

:root {
  color-scheme: light;
  --bg: #f9fafc; --surface: #fff; --band: #edf1f7;
  --ink: #111726; --ink-2: #45506a; --ink-3: #596780;
  --line: #cbd6e6; --accent: #1e3fae; --accent-hover: #17338f;
  --accent-ink: #fff; --accent-soft: #e6edfc; --brand-blue: #3b66e8;
  --brand-slate: #9fb0c8; --hero-blue: #123fa9; --hero-ink: #fff;
  --focus: #285ae1; --overlay: rgba(13,25,49,.5);
  --shadow: 0 14px 36px rgba(17,39,82,.12);
  --weight-display: 500; --radius: 14px;
  --gutter: clamp(20px,5.2vw,80px);
  --container: min(1280px, calc(100% - var(--gutter) * 2));
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1522; --surface: #121d2e; --band: #1b293e;
  --ink: #f1f5fc; --ink-2: #c2ccdd; --ink-3: #a9b8d0;
  --line: #3b4b64; --accent: #a5bdff; --accent-hover: #c4d4ff;
  --accent-ink: #0e1c3c; --accent-soft: #223354; --focus: #b5caff;
  --shadow: 0 14px 36px rgba(0,0,0,.25);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-color: var(--brand-slate) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.125rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
::selection { color: var(--accent-ink); background: var(--accent); }
:is(input,textarea) { caret-color: var(--accent); }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
img, video { max-width: 100%; height: auto; }
svg { flex: none; }
button:disabled { cursor: not-allowed; opacity: .55; }
:is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
main:focus { outline: none; }
:is(h1,h2,h3,h4) { font-family: var(--font-display); color: var(--ink); font-style: normal; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: clamp(2.5rem,4.8vw,4.5rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.8rem,3vw,2.8rem); margin: 0 0 20px; }
h3 { font-size: 1.4rem; letter-spacing: -.012em; }
p { margin: 0 0 1.2em; }
ul,ol { padding-left: 1.35em; }
li + li { margin-top: .5em; }
input,select,textarea { min-width: 0; max-width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
input::placeholder,textarea::placeholder { color: var(--ink-3); opacity: 1; }
input[type="checkbox"] { accent-color: var(--accent); }
.wrap,.container { width: var(--container); margin-inline: auto; }
.dl-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 300; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1440px,calc(100% - var(--gutter) * 2)); margin: auto; min-height: 96px; display: flex; align-items: center; gap: clamp(16px,2.5vw,40px); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); flex: none; }
.site-brand img { width: 52px; height: 52px; }
.brand-words { display: grid; gap: 4px; font-family: var(--font-display); line-height: 1; letter-spacing: .15em; }
.brand-words b { font-size: 20px; font-weight: 700; }
.brand-words span { font-size: 16px; color: var(--ink-3); letter-spacing: .28em; }
.nav-about,.nav-disclosure>summary,.comfort-trigger { font: 500 .95rem/1.2 var(--font-display); white-space: nowrap; }
.nav-about { color: var(--ink); text-decoration: none; padding-block: 14px; }
.nav-disclosure { position: relative; }
.nav-disclosure>summary { display: flex; align-items: center; justify-content: center; gap: 10px; list-style: none; min-height: 44px; padding: 10px 5px; }
.nav-disclosure>summary::-webkit-details-marker { display: none; }
.nav-menu>summary,.comfort-trigger { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; }
.comfort-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; background: transparent; color: var(--ink); }
.comfort-trigger:hover,.nav-disclosure[open]>summary,.nav-disclosure>summary:hover { color: var(--accent); background: var(--accent-soft); }
.nav-menu>summary .dl-icon { width: 18px; }
.nav-panel { position: absolute; right: 0; top: calc(100% + 12px); min-width: 260px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.nav-panel a,.nav-panel button { display: flex; align-items: center; padding: 12px 14px; min-height: 46px; font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav-panel a:hover { background: var(--band); color: var(--accent); }
.nav-panel a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-panel hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.nav-panel .theme-toggle { width: 100%; justify-content: space-between; background: transparent; border: 0; text-align: left; }
.nav-panel .theme-toggle:hover { background: var(--band); }
.theme-value { font-size: .875rem; color: var(--ink-2); }
.btn-primary,.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 27px; border-radius: 999px; font: 500 1rem/1.3 var(--font-display); text-decoration: none; text-align: center; border: 1px solid transparent; transition: background-color .15s,color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--accent); background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.home-hero { min-height: 660px; position: relative; isolation: isolate; background: var(--hero-blue); }
.home-hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero .wrap { padding-block: clamp(60px,7vw,100px); }
.home-hero-copy { width: 55%; }
.home-hero h1 { color: var(--hero-ink); font-size: clamp(3.2rem,7vw,6rem); font-weight: 500; line-height: .99; letter-spacing: -.035em; margin-bottom: 32px; }
.home-hero h1 span { display: block; }
.home-hero p { color: var(--hero-ink); max-width: 31ch; font-size: clamp(1.15rem,1.75vw,1.5rem); line-height: 1.5; margin-bottom: 34px; }
.home-hero .btn-primary { background: var(--hero-ink); color: #123798; min-width: 220px; }
.home-hero .btn-primary:hover { background: #e5edff; }
.home-hero :focus-visible { outline-color: var(--hero-ink); }
.home-products { padding-block: 50px 54px; background: var(--surface); }
.home-products h2 { font-size: clamp(1.8rem,3.2vw,2.6rem); margin-bottom: 26px; }
.product-directory { margin: 0; }
.product-link { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1.25fr) minmax(100px,.65fr) 26px; align-items: center; column-gap: 28px; min-height: 92px; padding-block: 22px; text-decoration: none; border-top: 1px solid var(--line); }
.product-link .product-name { font-family: var(--font-display); font-size: clamp(1.45rem,2.55vw,2.25rem); line-height: 1.15; font-weight: 500; letter-spacing: -.025em; }
.product-link .product-purpose { color: var(--ink); font-size: 1.1rem; }
.product-link .product-status { color: var(--ink-2); font-size: 1rem; }
.product-link .is-live { color: var(--accent); font-weight: 700; }
.product-link>.dl-icon { justify-self: end; width: 26px; height: 26px; }
.product-link:hover .product-name { text-decoration: underline; text-underline-offset: .18em; }
.home-approach { background: var(--band); }
.home-approach a { display: flex; justify-content: space-between; align-items: center; min-height: 108px; gap: 24px; text-decoration: none; padding-block: 24px; }
.home-approach a:hover { text-decoration: underline; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .9rem; color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.page-shell { padding-block: 40px 88px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--ink-2); margin-bottom: 40px; }
.article { max-width: 800px; margin-inline: auto; }
.article p,.article li,.article dd { max-width: 70ch; }
.article h2 { margin-top: 54px; }
.article h3 { margin-top: 32px; margin-bottom: 14px; }
.article p,.article li,.article dd { color: var(--ink-2); }
.article strong,.article b { color: var(--ink); }
.article .answer-lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink-2); }
.article dl { margin: 28px 0; }
.article dt { font-weight: 700; margin-top: 22px; }
.article dd { margin: 6px 0 0; }
.article iframe { display: block; width: 100%; border: 0; aspect-ratio: 16/9; height: auto; }
details>summary { color: var(--ink); }
.reading-details { padding-block: 22px; border-top: 1px solid var(--line); }
.reading-details>summary { font-family: var(--font-display); font-size: 1.1rem; }
.reading-details[open]>summary { margin-bottom: 20px; }
.cta-box { background: var(--band); padding: clamp(24px,4vw,40px); margin-top: 44px; border-radius: var(--radius); }
.cta-box h3 { margin-top: 0; }
/* Native dialog keeps keyboard focus and screen-reader navigation inside it. */
.comfort-dialog { width: min(520px,calc(100% - 32px)); max-height: calc(100dvh - 32px); color: var(--ink); background: var(--surface); padding: clamp(20px,4vw,32px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.comfort-dialog::backdrop { background: var(--overlay); }
.comfort-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.comfort-head h2 { font-size: 1.65rem; margin-bottom: 10px; }
.comfort-dialog .comfort-intro { color: var(--ink-2); font-size: 1rem; margin-bottom: 22px; }
.comfort-close { width: 44px; height: 44px; display: grid; place-items: center; background: var(--band); border: 0; border-radius: 50%; flex: none; }
.comfort-options { display: grid; gap: 10px; }
.comfort-option { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: var(--surface); color: var(--ink); }
.comfort-option[aria-pressed="true"] { border: 2px solid var(--accent); padding: 13px 15px; background: var(--accent-soft); }
.comfort-option strong { display: block; font-size: 1.1rem; }
.comfort-option small { display: block; font-size: .94rem; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.comfort-theme { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.comfort-theme p { margin: 0 auto 0 0; font-size: 1rem; }
.comfort-theme button { border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 8px 18px; color: var(--ink); background: var(--surface); }
.comfort-theme button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
html[data-nd="adhd"] { --leading-normal: 1.75; }
html[data-nd="autism"] { --brand-blue: #5e76ab; --hero-blue: #253f77; --leading-normal: 1.75; }
html[data-nd="autism"] .home-hero-art { filter: saturate(.55); }
html[data-nd="dyslexia"] { --bg: #faf4e6; --surface: #fffcf4; --band: #f3ead6; --ink: #302e28; --ink-2: #534f43; --ink-3: #645f52; --line: #d9cfba; --accent: #16449c; --accent-ink: #fff; --accent-soft: #e9edf4; --leading-normal: 1.85; }
html[data-nd="dyslexia"][data-theme="dark"] { --bg: #211f1b; --surface: #29261f; --band: #343127; --ink: #faf4e6; --ink-2: #dfd6c3; --ink-3: #c7baa1; --line: #675f50; --accent: #b5caff; --accent-hover: #d2dfff; --accent-ink: #142444; --accent-soft: #303b50; }
html[data-nd="dyslexia"] :is(p,li,dd,summary) { letter-spacing: .035em; word-spacing: .12em; line-height: 1.85; }
html[data-nd="dyslexia"] .home-hero-copy { width: 54%; }
html[data-nd="dyslexia"] .home-hero h1 { font-size: clamp(2.2rem,4.5vw,4rem); line-height: 1.25; letter-spacing: 0; }
html[data-nd="dyslexia"] .product-link { column-gap: 18px; }
html[data-nd="dyslexia"] .product-link .product-name { font-size: clamp(1.15rem,2vw,1.65rem); }
html[data-nd="dyslexia"] .brand-words { font-family: "Arimo",sans-serif; }
html[data-nd="dyslexia"] :is(em,i) { font-style: normal; }
html[data-nd="a11y"] { font-size: 110%; --ink-2: #28334a; --ink-3: #33425a; --line: #8e9eb9; }
html[data-nd="a11y"][data-theme="dark"] { --ink-2: #e4ebf8; --ink-3: #d4e0f4; }
html[data-nd="a11y"] a:not(.site-brand):not(.btn-primary):not(.btn-ghost) { text-decoration: underline; }
html[data-nd="a11y"] :focus-visible { outline-width: 4px; }
html[data-nd] *,html[data-nd] *::before,html[data-nd] *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
@media (min-width:1600px) { .home-hero { min-height: 740px; } .home-hero .wrap { padding-block: 115px; } }
@media (max-width:1050px) {
  .header-inner { gap: 20px; }
  .header-inner .nav-about { display: none; }
  .brand-words b { font-size: 16px; } .brand-words span { font-size: 13px; }
  .site-brand img { width: 44px; height: 44px; }
  .home-hero { min-height: 570px; }
  .home-hero-copy { width: 57%; }
  .home-hero h1 { font-size: clamp(3rem,7.4vw,5rem); }
  .product-link { column-gap: 20px; }
  .product-link .product-purpose { font-size: 1rem; }
}
@media (max-width:760px) {
  .header-inner { min-height: 82px; gap: 14px; }
  .header-inner .nav-about { display: none; }
  .brand-words b { font-size: 14px; } .brand-words span { font-size: 11px; }
  .site-brand { gap: 5px; } .site-brand img { width: 38px; height: 38px; }
  .comfort-trigger { padding: 10px 12px; font-size: .875rem; gap: 7px; }
  .nav-disclosure>summary { font-size: .875rem; }
  .home-hero { min-height: 0; padding-bottom: 220px; background: var(--hero-blue); }
  .home-hero-art { top: auto; height: 320px; object-fit: cover; object-position: 75% 75%; }
  .home-hero .wrap { padding-block: 44px 26px; }
  .home-hero-copy,html[data-nd="dyslexia"] .home-hero-copy { width: 100%; max-width: 580px; }
  .home-hero h1 { font-size: clamp(3rem,10.7vw,4.6rem); max-width: 11ch; margin-bottom: 24px; }
  .home-hero p { font-size: 1.15rem; max-width: 31ch; margin-bottom: 26px; }
  .home-hero .btn-primary { min-width: 195px; }
  .home-products { padding-block: 36px 24px; }
  .product-link { grid-template-columns: minmax(0,1fr) auto 24px; gap: 8px 16px; padding-block: 23px; }
  .product-link .product-name { grid-column: 1; font-size: 1.6rem; }
  .product-link .product-purpose { grid-row: 2; grid-column: 1/3; font-size: 1rem; }
  .product-link .product-status { grid-row: 1; grid-column: 2; font-size: .875rem; }
  .product-link>.dl-icon { grid-row: 1/3; grid-column: 3; width: 22px; }
  .home-approach a { min-height: 94px; font-size: 1rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-shell { padding-block: 28px 64px; }
  .crumbs { margin-bottom: 28px; }
  .article h2 { margin-top: 40px; }
}
@media (max-width:560px) {
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; padding-block: 12px; }
  .site-brand { grid-column: 1; grid-row: 1; }
  .site-brand img { width: 42px; height: 42px; }
  .brand-words b { font-size: 15px; } .brand-words span { font-size: 12px; }
  .comfort-trigger { grid-column: 1; grid-row: 2; justify-self: start; }
  .nav-apps { grid-column: 2; grid-row: 2; justify-self: end; }
  .nav-menu { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-menu>summary { padding-inline: 13px; }
  .nav-panel { top: calc(100% + 8px); }
  .nav-menu .nav-panel { top: calc(100% + 60px); }
  .home-hero h1 { letter-spacing: -.03em; }
  .product-link { grid-template-columns: minmax(0,1fr) 20px; }
  .product-link .product-status { grid-column: 1; grid-row: 3; }
  .product-link .product-purpose { grid-column: 1; grid-row: 2; }
  .product-link>.dl-icon { grid-column: 2; grid-row: 1/4; }
  .home-hero-art { height: 270px; }
  .home-hero { padding-bottom: 180px; }
  .footer-links { gap: 10px 18px; }
}
@media print {
  :root,html[data-theme],html[data-nd] { --bg:#fff; --surface:#fff; --band:#fff; --ink:#111; --ink-2:#222; --accent:#111; --line:#ccc; }
  .site-header,.site-footer,.comfort-dialog,.skip-link { display: none !important; }
  body { font-size: 11pt; }
  .page-shell { padding: 0; }
  .wrap,.container,.article { width: 100%; max-width: none; }
  h1,h2,h3 { break-after: avoid; }
  p,li { orphans: 3; widows: 3; }
}
