@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-500-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(../fonts/quicksand-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0C3864;
  --teal: #5FBCB6;
  --blue: #6C9BCE;
  --purple: #A496C8;
  --coral: #F3957B;
  --green: #99C478;
  --yellow: #FDCF72;
  --salmon: #F7AC98;

  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --soft: #EEF6F5;
  --ink: #0C3864;
  --text: #22364d;
  --muted: #55657a;
  --line: #DCE3E8;
  --link: #1E6E69;
  --focus: #0C3864;
  --ok: #3F7D2C;
  --ok-bg: #EDF6E6;
  --watch: #8A5A00;
  --watch-bg: #FFF4DA;
  --talk: #A23E25;
  --talk-bg: #FDECE6;

  --head: "Quicksand", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --fs: 1.125rem;
  --lh: 1.6;
  --gap: 1;
  --radius: 4px;
  --wrap: 1200px;
}

html[data-theme="calm"] {
  --bg: #F4F1EA; --surface: #FAF8F3; --soft: #ECEAE2; --line: #DAD5CA;
  --text: #3b4654; --ink: #2f4a66; --muted: #6a7380;
  --teal: #8fbfba; --coral: #e2b3a4; --yellow: #ead9a8; --green: #b9cfa6; --blue: #9fb6cf; --purple: #b9b2cf; --salmon: #e6c2b6;
}
html[data-theme="dark"] {
  --bg: #0f1a26; --surface: #172535; --soft: #1d3042; --line: #2c3f53;
  --text: #dde6ee; --ink: #f1f5f8; --muted: #a6b4c2; --link: #8fd8d2; --focus: #FDCF72;
  --ok: #a9d98f; --ok-bg: #1f3322; --watch: #f3cf78; --watch-bg: #3a3018; --talk: #f5a58f; --talk-bg: #3c2420;
}
html[data-theme="contrast"] {
  --bg: #ffffff; --surface: #ffffff; --soft: #ffffff; --line: #000000;
  --text: #000000; --ink: #000000; --muted: #000000; --link: #0000c8; --focus: #c80000;
  --ok: #000; --ok-bg: #fff; --watch: #000; --watch-bg: #fff; --talk: #000; --talk-bg: #fff;
}
html[data-text="2"] { --fs: 1.3rem; }
html[data-text="3"] { --fs: 1.5rem; }
html[data-spacing="wide"] { --lh: 1.9; --gap: 1.4; letter-spacing: .03em; word-spacing: .12em; }
html[data-font="easy"] { --head: "Atkinson Hyperlegible", Arial, sans-serif; --body: "Atkinson Hyperlegible", Arial, sans-serif; }
html[data-images="off"] .pic { display: none !important; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs)/var(--lh) var(--body); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; font-weight: 700; margin: 0 0 calc(.5em * var(--gap)); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2em; font-weight: 700; }
p { margin: 0 0 calc(1em * var(--gap)); }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 940px; }
.muted { color: var(--muted); }
.small { font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 50; }
.skip:focus { top: 12px; }

.proto { background: var(--soft); border-bottom: 1px solid var(--line); font-size: .9em; }
.proto .wrap { padding-top: 8px; padding-bottom: 8px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.35rem; margin-right: auto; }
.brand img { width: 50px; height: 50px; }
.brand span span { color: var(--teal); font-weight: 400; }
html[data-theme="contrast"] .brand span span { color: #000; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { display: block; padding: 8px 12px; border-radius: 4px; text-decoration: none; color: var(--text); font-size: .95em; }
.menu a:hover { background: var(--soft); }
.menu a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }
.top .menu-btn { display: none; }
.btn-settings { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .top .menu-btn { display: inline-flex; }
  .menu { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .menu.open { display: flex; }
}

.btn { font: 600 .95em var(--body); border: 2px solid var(--ink); background: var(--ink); color: var(--bg); padding: .7em 1.25em; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; line-height: 1.2; }
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.small { padding: .45em .9em; font-size: .85em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
html[data-theme="dark"] .btn { background: var(--teal); border-color: var(--teal); color: #0f1a26; }
html[data-theme="dark"] .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

section { padding: calc(64px * var(--gap)) 0; }
section.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--head); font-size: .8em; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .6em; }
.lead { font-size: 1.15em; color: var(--text); max-width: 40em; }

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .pic img { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero .pic { order: -1; } .hero .pic img { max-width: 240px; } }

.dots { display: flex; gap: 8px; margin: 0 0 18px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .g4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }
.sense { display: block; }
.sense .ic.big { margin-bottom: 12px; }
.sense .blob { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; }
html[data-theme="contrast"] .sense .blob, html[data-theme="contrast"] .dots i { border: 2px solid #000; }

.moment { border-top: 6px solid var(--c, var(--teal)); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--ink); font: 600 1rem var(--head); margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--head); font-weight: 700; color: var(--ink); margin-bottom: 4px; }

.note { border-left: 5px solid var(--teal); background: var(--soft); padding: 16px 20px; border-radius: 4px; }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); overflow: hidden; color: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video, .video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.video.local .play { display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px; background: linear-gradient(transparent 55%, rgba(12,56,100,.45)); }
.video .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(12,56,100,.88); color: #fff; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: .95rem; }
.video.local .ring, .video.local .play .ring, .q .video.local .ring { width: 30px; height: 30px; border-width: 2px; margin: 0; }
.video.local .ring::after, .video.local .play .ring::after, .q .video.local .ring::after { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 3px; }
.q .video.local { aspect-ratio: 16 / 9; }
.vcap { margin: 8px 0 0; padding: 8px 12px; line-height: 1.35; background: #FDEDE6; color: #8A3820 !important; border: 1px solid #F6C3B1; border-left: 4px solid #F3957B; border-radius: 4px; font-weight: 600; }
.video .play { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 20px; }
.video .play b { font-family: var(--head); font-weight: 500; font-size: 1.15em; }
.video .play .ring { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #fff; margin: 0 auto; display: grid; place-items: center; }
.video .play .ring::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.video.empty .play { cursor: default; }
.video.empty .ring { opacity: .5; }
.video .small { color: #d9e6f1; }

.foot { background: var(--navy); color: #e8eef4; padding: 44px 0 28px; margin-top: 40px; }
.foot a { color: #fff; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
.foot h2 { color: #fff; font-size: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot .fine { border-top: 1px solid rgba(255,255,255,.2); margin-top: 28px; padding-top: 16px; font-size: .85em; color: #c4d2df; }
html[data-theme="contrast"] .foot { background: #000; }
@media (max-width: 720px) { .foot .cols { grid-template-columns: 1fr; } }

dialog.settings { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(520px, calc(100% - 24px)); background: var(--surface); color: var(--text); }
dialog.settings::backdrop { background: rgba(12, 56, 100, .45); }
.settings header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.settings header h2 { margin: 0; font-size: 1.25rem; }
.settings .body { padding: 18px 22px 22px; display: grid; gap: 18px; }
.settings fieldset { border: 0; padding: 0; margin: 0; }
.settings legend { font-family: var(--head); font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .4em .95em; border: 2px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--surface); }
.chips input:checked + span { border-color: var(--ink); background: var(--soft); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch input { width: 22px; height: 22px; accent-color: var(--navy); }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }

label.field { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="date"], select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 4px; padding: .55em .75em; width: 100%; max-width: 420px; }
textarea { max-width: 100%; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }

.bar { height: 10px; background: var(--soft); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .3s; }
.where { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 24px; font-size: .9em; color: var(--muted); }

.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.q .what { font-size: 1.1em; color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.q .twocol { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .q .twocol { grid-template-columns: 1fr; } }
.q .video { aspect-ratio: 4 / 3; font-size: .9em; }
.q .video .ring { width: 48px; height: 48px; }
.q .video .ring::after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
.ask { border: 0; padding: 0; margin: 0 0 14px; }
.ask legend { font-weight: 600; margin-bottom: 6px; }
.ask[hidden] { display: none; }
.err { color: var(--talk); font-weight: 600; }

.result { border-radius: var(--radius); padding: 24px; margin-bottom: 24px; border: 2px solid; }
.result.ok { background: var(--ok-bg); border-color: var(--ok); }
.result.watch { background: var(--watch-bg); border-color: var(--watch); }
.result.talk { background: var(--talk-bg); border-color: var(--talk); }
.result.unsure { background: var(--soft); border-color: var(--muted); }
.result h2 { margin-bottom: .3em; }

.rlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rlist > li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.rlist .tag { flex: 0 0 auto; font-size: .8em; font-weight: 600; padding: .2em .7em; border-radius: 4px; margin-top: 3px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.watch { background: var(--watch-bg); color: var(--watch); }
.tag.na { background: var(--soft); color: var(--muted); }
html[data-theme="contrast"] .tag { border: 1px solid #000; }

.idea { border-left: 6px solid var(--c, var(--teal)); }
.draft { display: inline-block; font-size: .78em; padding: .15em .6em; border-radius: 4px; background: var(--soft); color: var(--muted); margin-bottom: 8px; }

.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--body); fill: var(--muted); font-size: 13px; }
.chart .ln { fill: none; stroke: var(--teal); stroke-width: 3; }
.chart .pt { fill: var(--surface); stroke: var(--navy); stroke-width: 2.5; }
.chart .gl { stroke: var(--line); }

table.diary { width: 100%; border-collapse: collapse; font-size: .95em; }
table.diary th, table.diary td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.diary th { font-family: var(--head); font-weight: 500; color: var(--ink); }
.scroll-x { overflow-x: auto; }

.report-head { display: none; }

@media print {
  .top, .proto, .foot, .noprint, .skip, dialog { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .report-head { display: block; border-bottom: 2px solid #0C3864; margin-bottom: 14px; padding-bottom: 8px; }
  .report-head img { width: 60px; float: right; }
  section { padding: 0; }
  .q, .card, .rlist li, .result { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

.rlist ul { margin: 0 0 .4em; padding-left: 1.2em; }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .g3 { grid-template-columns: 1fr; } }

html[data-theme="dark"] .hero .pic img { background: #FBFAF6; border-radius: 4px; padding: 18px; }
html[data-theme="dark"] .brand img { background: #FBFAF6; border-radius: 50%; }
@media (max-width: 520px) { .top .wrap { gap: 10px; } }

.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); }
details summary { cursor: pointer; color: var(--link); font-weight: 600; }

html[lang="en"] [data-l="it"], html[lang="en"] [data-l="es"], html[lang="it"] [data-l="en"], html[lang="it"] [data-l="es"], html[lang="es"] [data-l="en"], html[lang="es"] [data-l="it"] { display: none !important; }
.langs { display: flex; gap: 4px; }
.langs button { display: inline-flex; align-items: center; gap: 6px; font: 600 .8em var(--body); color: var(--text); background: none; border: 2px solid transparent; border-radius: 4px; padding: .35em .7em; cursor: pointer; }
.langs button svg { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.langs button[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }

.demo-bar { background: var(--soft); border-bottom: 1px solid var(--line); }
.demo-bar .wrap { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.kid { display: flex; gap: 12px; align-items: center; line-height: 1.35; }
.kid img { border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.subnav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.subnav a { display: block; padding: 6px 12px; border-radius: 4px; text-decoration: none; color: var(--text); font-size: .92em; }
.subnav a:hover { background: var(--surface); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 600; }
html[data-theme="dark"] .subnav a[aria-current="page"] { background: var(--teal); color: #0f1a26; }

table.map { width: 100%; border-collapse: collapse; font-size: .93em; }
table.map th, table.map td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.map thead th { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: .9em; }
table.map tbody th { font-weight: 600; color: var(--ink); min-width: 8em; }
table.map .rowlvl { display: block; font-weight: 400; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
td.lv { min-width: 7.5em; }
.pip { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; background: var(--line); }
.lv1 .pip { background: #cfe4e2; }
.lv2 .pip { background: #f6d38a; }
.lv3 .pip { background: #e9866b; }
td.lv3 { font-weight: inherit; }
.trend td.lv0 { color: var(--muted); }
.trend td.lv3 { background: var(--talk-bg); }
.trend td.lv2 { background: var(--watch-bg); }
html[data-theme="contrast"] .pip { border: 1px solid #000; }

.hit { border-left: 5px solid var(--c); background: var(--surface); border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hit h3 { margin-bottom: 2px; }
.hit ul { margin: 8px 0 0; padding-left: 1.1em; }
.hit li { margin-bottom: 8px; }
.tagline { border-bottom: 3px solid var(--c); }

.idea .when { display: inline-block; font: 600 .75em var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: var(--soft); border-radius: 4px; padding: .2em .6em; margin-bottom: 8px; }
.idea .draft { margin: 10px 0 0; }

.tile { text-decoration: none; color: var(--text); display: block; transition: border-color .15s; }
.tile:hover { border-color: var(--ink); }
.tile h3 { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.ticks { padding-left: 1.1em; }
.ticks li { margin-bottom: 6px; }
.mini h3 { margin-bottom: 0; font-size: 1.05em; }
.mini .chart { margin-top: 6px; }
.chart text { font-size: 11px; }
.preview .result { margin-bottom: 18px; }
.preview .result h3 { margin: 0; }

.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.report h3 { margin-top: 28px; border-bottom: 2px solid var(--line); padding-bottom: 6px; font-size: 1.1em; }
.report .result { margin-bottom: 0; }
.report .result h3 { border: 0; margin-top: 0; padding: 0; }
.rep-head { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 18px; }
.rep-head h2 { margin: 0; font-size: 1.35rem; }
.rep-brand { font: 600 .85em var(--head); color: var(--teal); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 24px; margin: 0; }
.facts dt { font-size: .8em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
@media print {
  .demo-bar { display: none !important; }
  .report { border: 0; padding: 0; }
  .report h3 { break-after: avoid; }
  table.map { font-size: 9.5pt; }
  .hit { break-inside: avoid; }
  @page { size: A4; margin: 16mm 14mm; }
}
@media (max-width: 760px) {
  .langs button span { display: none; }
  table.map th, table.map td { padding: 8px 6px; }
}

.report .hit h3 { border: 0; margin-top: 0; padding: 0; }
.report .result h3 { font-size: 1.15em; }
.kidbox { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.kidbox img { border-radius: 50%; border: 1px solid var(--line); }
.kidbox p { margin: 0; flex: 1; min-width: 180px; line-height: 1.4; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { padding: 6px 14px; border: 2px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9em; }
.jump a:hover { border-color: var(--ink); }
.steps-v { grid-template-columns: 1fr; }
.steps-v li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; padding: 14px 18px; }
.steps-v li::before { grid-row: span 2; margin: 0; }
.ages td { font-size: .95em; }
.result h3 + p { margin-bottom: 0; }

.printonly { display: none; }
.notes textarea, #r-notes-in { max-width: 100%; width: 100%; }
@media print { .printonly { display: block; } }

.itemnote { margin-top: 4px; }
.itemnote summary { font-size: .9em; font-weight: 600; }
.itemnote textarea { margin-top: 8px; min-height: 60px; }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); margin: -4px 0 20px; }
.tabs button { font: 600 .95em var(--body); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: .7em 1em; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.testbox { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; border-left: 4px solid var(--teal); }
.testbox p:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) { .testbox { grid-template-columns: 1fr; } }
.codebox { margin-top: 24px; border-left: 4px solid var(--yellow); }
.code { font: 700 1.6rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; color: var(--ink); background: var(--soft); display: inline-block; padding: .35em .6em; border-radius: 4px; }
.pfbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.pfbar p { margin: 0; }
.kidtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kidtab { font: 600 1em var(--head); background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 4px; padding: .5em .9em; cursor: pointer; }
.kidtab .small { font-family: var(--body); font-weight: 400; color: var(--muted); }
.kidtab[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.kidtab.add { border-style: dashed; color: var(--link); }
.kidhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.kidhead h2 { margin: 0; }
.kidhead p { margin: 0; }
.nextline { margin: 6px 0 22px; }
.bignum { font: 700 2rem var(--head); color: var(--ink); margin: 0; }
@media print { .codebox .btns { display: none; } }

.dash { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.dnav { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px; display: grid; gap: 16px; }
.dnav .who { display: flex; gap: 12px; align-items: center; line-height: 1.3; word-break: break-word; }
.dnav nav { display: grid; gap: 2px; }
.dnav nav button, .dnav nav a { font: 600 .95em var(--body); text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: .55em .7em; color: var(--text); cursor: pointer; text-decoration: none; }
.dnav nav button:hover, .dnav nav a:hover { background: var(--soft); }
.dnav nav [aria-current="page"] { border-left-color: var(--ink); background: var(--soft); color: var(--ink); }
.dmain { min-width: 0; }
.dtitle { font-size: 1.7rem; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; gap: 18px; }
  .dnav { position: static; }
  .dnav nav { display: flex; flex-wrap: wrap; }
  .dnav nav button, .dnav nav a { border-left: 0; border-bottom: 3px solid transparent; }
  .dnav nav [aria-current="page"] { border-bottom-color: var(--ink); }
}
.avatar { width: 44px; height: 44px; flex: none; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font: 700 1.1rem var(--head); color: var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: .85rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.8rem; }
.avatar.big { width: 120px; height: 120px; font-size: 2.6rem; }
.kidtab { display: inline-flex; align-items: center; gap: 10px; }
.kidhead { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.kidhead .kidinfo p { margin: 4px 0 0; }
@media (max-width: 640px) { .kidhead { grid-template-columns: auto 1fr; } .kidhead .btns { grid-column: 1 / -1; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: grid; gap: 2px; }
.stat strong { font: 700 1.05rem var(--head); color: var(--ink); }
.stat.due { border-color: var(--watch); background: var(--watch-bg); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.kidcard { display: flex; gap: 16px; align-items: flex-start; }
.kidcard h3 { margin-bottom: 2px; }
.card.danger { border-color: var(--talk); }
.worksbox { border-left: 4px solid var(--ok); margin-bottom: 18px; }
.worksbox ul { margin: 0; padding-left: 1.1em; }
.worksbox li { margin-bottom: 8px; }

.folds { display: grid; gap: 10px; margin-top: 18px; }
details.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
details.fold > summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font: 700 1.4rem var(--head); color: var(--ink); }
details.fold[open] > summary::after { content: "\2212"; }
details.fold > summary h3 { margin: 0; font-size: 1.1em; }
.foldbody { padding: 0 18px 18px; }

table.tried td { font-size: .95em; }
.chg { font-weight: 700; }
.chg.better { color: var(--ok); }
.chg.worse { color: var(--talk); }
.chg.same { color: var(--muted); }
.works { display: inline-block; margin-top: 4px; font-size: .8em; font-weight: 700; color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok); border-radius: 4px; padding: .1em .45em; }
.chart .yl { font-size: 10.5px; fill: var(--muted); }
@media print { details.fold { border: 0; } details.fold > summary::after { content: ""; } }

fieldset.choice { border: 0; padding: 0; margin: 14px 0 6px; }
fieldset.choice legend { padding: 0; margin-bottom: 6px; }
label.radio { display: flex; gap: 10px; align-items: center; margin: 6px 0; cursor: pointer; }
label.radio input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
#k-dx-row { margin: 8px 0 0 28px; }

.pwrules { list-style: none; padding: 0; margin: 8px 0 14px; font-size: .9em; color: var(--muted); }
.pwrules li { position: relative; padding-left: 22px; margin: 2px 0; }
.pwrules li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 50%; }
.pwrules li.ok { color: var(--ok); }
.pwrules li.title { padding-left: 0; color: var(--text); }
.pwrules li.title::before { display: none; }
.pwrules li.ok::before { border-color: var(--ok); background: var(--ok); }

.robot { display: flex; width: fit-content; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 12px 16px; margin: 6px 0 14px; max-width: 100%; }
.robot button { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.robot .box { width: 26px; height: 26px; border: 2px solid var(--muted); border-radius: 3px; display: grid; place-content: center; background: var(--surface); flex: none; }
.robot.busy .box { border-color: var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.robot.done .box { border-color: var(--ok); background: var(--ok-bg); }
.robot.done .box::after { content: ""; width: 7px; height: 13px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.robot .by { font-size: .75em; color: var(--muted); line-height: 1.3; border-left: 1px solid var(--line); padding-left: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.cookiebar .wrap { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.cookiebar p { margin: 0; max-width: 60em; font-size: .95em; }
@media print { .cookiebar { display: none; } }

.ic { display: inline-grid; place-content: center; width: 28px; height: 28px; border-radius: 6px; background: color-mix(in srgb, var(--c) 30%, transparent); margin-right: 9px; vertical-align: middle; flex: none; }
.ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.big { width: 44px; height: 44px; border-radius: 8px; }
.ic.big svg { width: 26px; height: 26px; }

.ic { display: inline-grid; place-content: center; width: 28px; height: 28px; border-radius: 4px; background: color-mix(in srgb, var(--c) 28%, var(--surface)); margin-right: 9px; vertical-align: -8px; flex: none; }
.ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.big { width: 44px; height: 44px; margin: 0 0 10px; }
.ic.big svg { width: 26px; height: 26px; }
html[data-images="off"] .ic { background: transparent; }

/* for now English only */
.langs, #me-lang, label[for="me-lang"] { display: none !important; }

/* call-to-action bar under the hero */
.ctabar { background: var(--soft); border-bottom: 1px solid var(--line); padding: 10px 0; }
.ctabar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.ctabar .ctalink { margin-left: 6px; font-weight: 600; font-size: .9em; }
@media (max-width: 640px) { .ctabar .btn { flex: 1 1 100%; text-align: center; } .ctabar .ctalink { margin: 4px 0 0; } }

/* buttons under the big logo in the hero */
.hero .herocta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-top: 22px; text-align: center; }
.hero .herocta .ctalink { flex-basis: 100%; font-weight: 600; margin-top: 4px; }

/* wave divider between the hero and the first section */
.divider { position: relative; line-height: 0; margin-top: -1px; }
.divider svg { display: block; width: 100%; height: 90px; }
.divider .w1 { fill: #CFE7E4; }
.divider .w2 { fill: var(--surface); }
html[data-theme="dark"] .divider .w1 { fill: #24465a; }
.divider .dots { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); margin: 0; gap: 10px; }
.divider + section.tint { border-top: 0; }
@media (max-width: 640px) { .divider svg { height: 56px; } }

/* eight senses cards */
#sense-list .sense { text-align: center; border-top: 5px solid var(--c); padding: 26px 20px 22px; transition: transform .15s ease, box-shadow .15s ease; }
#sense-list .sense:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(12,56,100,.08); }
#sense-list .sense .ic.big { width: 64px; height: 64px; border-radius: 50%; background: var(--c); margin: 0 auto 14px; display: grid; }
#sense-list .sense .ic.big svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 1.8; }
#sense-list .sense h3 { font-size: 1.1rem; }
#sense-list .sense p { font-size: .95em; line-height: 1.45; }
html[data-theme="contrast"] #sense-list .sense .ic.big svg { stroke: #000; }
@media (prefers-reduced-motion: reduce) { #sense-list .sense { transition: none; } #sense-list .sense:hover { transform: none; } }

/* "How it works": six steps as coloured cards, colours in the logo's order */
#how .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
#how .steps li { --c: var(--blue); position: relative; border-top: 5px solid var(--c); padding: 26px 24px 22px; transition: transform .15s ease, box-shadow .15s ease; }
#how .steps li:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(12,56,100,.08); }
#how .steps li::before { width: 46px; height: 46px; background: var(--c); color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
#how .steps strong { font-size: 1.1rem; margin-bottom: 6px; }
#how .steps li > span { display: block; color: var(--muted); line-height: 1.5; }
#how .steps li:nth-child(1) { --c: var(--salmon); }
#how .steps li:nth-child(2) { --c: var(--blue); }
#how .steps li:nth-child(3) { --c: var(--green); }
#how .steps li:nth-child(4) { --c: var(--blue); }
#how .steps li:nth-child(5) { --c: var(--purple); }
#how .steps li:nth-child(6) { --c: var(--coral); }
html[data-theme="contrast"] #how .steps li::before { color: #000; border: 2px solid #000; }
@media (max-width: 900px) { #how .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #how .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #how .steps li { transition: none; } #how .steps li:hover { transform: none; } }

/* ages not covered yet: visible in the lists but greyed out */
select option:disabled { color: #9AA5B1; background: #F2F4F6; }

/* small picture of the web app in the hero */
.appshot { margin-top: 28px; max-width: 460px; background: var(--surface, #fff); border: 1px solid #DCE3E8; border-radius: 4px; box-shadow: 0 10px 28px rgba(12,56,100,.12); overflow: hidden; }
.appshot .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #EEF2F5; border-bottom: 1px solid #DCE3E8; }
.appshot .bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D3DC; }
.appshot .bar span { margin-left: 8px; flex: 1; background: #fff; border-radius: 4px; padding: 2px 10px; font-size: .78rem; color: #55657A; }
.appshot .body { padding: 14px 16px 16px; font-size: .88rem; }
.appshot .top { display: flex; align-items: center; gap: 10px; }
.appshot .top span { display: block; color: #55657A; font-size: .8rem; }
.appshot .res { margin: 12px 0 10px; padding: 8px 12px; background: var(--watch-bg); border: 2px solid var(--watch); border-radius: 4px; font-weight: 600; }
.appshot ul { list-style: none; margin: 0; padding: 0; }
.appshot li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #EEF2F5; }
.appshot li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.appshot li b { margin-left: auto; font-weight: 400; font-size: .8rem; padding: 1px 8px; border-radius: 4px; text-align: right; }
.appshot li b.l0 { color: #55657A; }
.appshot li b.l1 { background: #E6F1F0; }
.appshot li b.l2 { background: var(--watch-bg); }
.appshot li b.l3 { background: var(--talk-bg); }
#m-more { margin-top: -4px; }
#kid-cancel[hidden] { display: none; }
/* pictures above the three ways of reacting */
.styleimg img.pic { display: block; width: 62%; max-width: 240px; height: auto; aspect-ratio: 560 / 684; object-fit: cover; margin: 0 auto 16px; border-radius: 4px; }
/* picture next to "Before you start" */
.before { align-items: center; gap: 40px; }
.before .pic img { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; border-radius: 4px; }
/* enlarge charts */
.card.mini { position: relative; }
.card.mini svg.chart { cursor: zoom-in; }
.zoom { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; color: var(--ink); }
.zoom:hover, .zoom:focus-visible { border-color: var(--ink); }
.zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
dialog.zoomdlg { border: 1px solid var(--line); border-radius: 4px; padding: 28px 28px 24px; width: min(900px, calc(100% - 24px)); background: var(--surface); color: var(--text); }
dialog.zoomdlg::backdrop { background: rgba(12, 56, 100, .45); }
dialog.zoomdlg .x { position: absolute; top: 8px; right: 10px; font-size: 2rem; }
dialog.zoomdlg h3 { margin: 0 40px 12px 0; }
dialog.zoomdlg .chart { width: 100%; height: auto; }
dialog.zoomdlg .chart text { font-size: 9px; }
.mini h3 { padding-right: 42px; }
