/* Narrly home, page CSS: the :root block exactly as start.mjs brand printed it (warmed 2026-11-26: cream #fbf5ec, ink #2a211c,
   coral #bb462a, onest), then only
   what sits inside a visual (the app's screens), the --p-h of each card group, and the app-frame recipe. */
:root {
  --p-bg: #fbf5ec; --p-surface: #f3e9dc; --p-ink: #2a211c; --p-muted: #6b5e53;
  --p-accent: #bb462a; --p-accent-ink: #fffaf3; --p-action: #bb462a; --p-action-ink: #fffaf3;
  --p-inv-bg: #2a1f1a; --p-inv-surface: #3a2c25; --p-inv-ink: #fbf3e8; --p-inv-muted: #b3a597;
  --p-inv-accent: #d9643f; --p-inv-accent-ink: #fffaf3; --p-inv-action: #bb462a; --p-inv-action-ink: #fffaf3;
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
/* JetBrains Mono has no Kazakh letters (ә ғ қ ң ұ һ): the mono face sets figures only (0:01 / 0:28, 2 min) */

/* the lit ground behind UI as warm sand (founder 2026-11-26: the stone/near-white read too "premium", make it warmer) */
html[data-ground] { --ground-bg: #efe3d2; --ground-surface: #f6ede1; --ground-ink: #2a211c; --ground-muted: #5f5348; --ground-accent: #a08c78; }

/* the client's own mark beside the name (nav and footer) */
.brand-mark { width: 28px; height: 28px; flex: none; }
.footer__mark .brand-mark { width: 40px; height: 40px; }
.nav__logo, .footer__mark { display: inline-flex; align-items: center; gap: var(--s-2); }

/* ---------------------------------------------------------------- the app's screens (shared)
   Narrly's web app: a warm white card, near-black ink, its own chips; the app's read-along amber */
.ui.reader, .ui.ui-panel { --fx-bg: #ffffff; --fx-surface: #f7f0e7; --fx-ink: #2a211c; --fx-muted: #6b5e53; --fx-accent: #bb462a; --fx-accent-ink: #ffffff; --ui-font: var(--font-text); --ui-mono: var(--font-mono); }
.ui-panel { padding: 16px; }
.frag-h { margin: 0 0 12px; font: 500 14px/1.3 var(--font-text); color: var(--u-ink); }
.frag-l { margin: 14px 0 6px; font: 500 12px/1.2 var(--font-text); color: var(--u-muted); }
.frag-h + .frag-l, .ui-panel > .frag-l:first-child { margin-top: 0; }
.frag-s { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--u-muted); }
.seg { display: flex; gap: 4px; margin: 0; box-shadow: inset 0 -1px 0 var(--u-line-2); }
.seg span { flex: 1; display: grid; place-items: center; height: 32px; padding: 0 6px; font: 500 13px/1 var(--font-text); color: var(--u-muted); white-space: nowrap; }
.seg .is-on { color: var(--u-ink); box-shadow: inset 0 -2px 0 var(--u-ink); }
.vchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; font: 500 13.5px/1 var(--font-text); color: var(--u-text-2); background: var(--u-fill); box-shadow: inset 0 0 0 1px var(--u-line); white-space: nowrap; text-decoration: none; }
.vchip svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.vchip.is-on { background: var(--u-ink); color: var(--u-bg); box-shadow: none; }
.vchip--me:not(.is-on) { color: var(--u-ink); }
a.vchip { transition: background-color var(--m-in, 150ms) var(--ease), box-shadow var(--m-in, 150ms) var(--ease); }
a.vchip:hover { background: var(--u-fill-3); box-shadow: inset 0 0 0 1px var(--u-line-2); }

/* ---------------------------------------------------------------- hero: the reader, as large as the frame holds */
@media (min-width: 1280px) { .hero--centred h1 { max-width: none; } }
.hero--centred .hero__lead { color: color-mix(in oklab, var(--ink) 82%, var(--bg)); }
.hero--centred .hero__window > .reader { top: var(--s-5); width: calc(100% - 2 * var(--s-5)); max-width: 1160px; }
.reader { display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--u-bg); color: var(--u-ink); border-radius: 16px; overflow: hidden; box-shadow: var(--u-shadow); font: 400 14px/1.45 var(--font-text); text-align: left; }
.reader__art { margin: 0; aspect-ratio: 1; background: #efe7da; }
.reader__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reader__main { display: grid; align-content: start; min-width: 0; }
.reader__bar { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 20px 0 24px; border-bottom: 1px solid var(--u-line); }
.reader__play { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--u-ink); color: var(--u-bg); cursor: pointer; transition: background-color var(--m-in, 150ms) var(--ease), transform var(--m-press, 90ms) var(--ease); }
.reader__play svg { width: 18px; height: 18px; fill: currentColor; }
.reader__play .i-pause { display: none; }
.reader:is([data-state="playing"], [data-state="loading"]) .reader__play .i-play { display: none; }
.reader:is([data-state="playing"], [data-state="loading"]) .reader__play .i-pause { display: block; }
.reader[data-state="loading"] .reader__play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--u-ink); animation: reader-spin 1s linear infinite; }
@keyframes reader-spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .reader__play:hover { background: color-mix(in oklab, var(--u-ink) 84%, var(--u-bg)); } }
.reader__play:active { transform: scale(.96); }
.reader__time { flex: none; font: 500 13px/1 var(--font-mono); color: var(--u-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reader[data-state="failed"] .reader__time { display: none; }
.reader__track { flex: 1 1 40px; min-width: 24px; height: 4px; border-radius: 99px; background: var(--u-fill-3); overflow: hidden; }
.reader__track i { display: block; height: 100%; transform-origin: left center; transform: scaleX(var(--p, 0)); background: var(--u-ink); }
.reader__voices { display: flex; gap: 6px; flex: none; }
.reader__body { padding: 22px 32px 28px; }
.reader__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; color: var(--u-muted); }
.reader__meta b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--u-ink); }
.reader__tag { flex: none; padding: 4px 8px; border-radius: 99px; background: var(--u-fill-2); color: var(--u-text-2); font-size: 12px; line-height: 1; }
.reader__sleep { flex: none; margin-left: auto; font-size: 12px; white-space: nowrap; }
.reader__page { margin: 0; font: 400 32px/1.38 var(--font-display); letter-spacing: -0.015em; text-wrap: pretty; max-width: 30ch; }
.reader__page .w { color: #74706b; border-radius: 4px; transition: color 120ms linear, background-color 120ms linear, box-shadow 120ms linear; }
.reader__page .w.is-read { color: var(--u-ink); }
.reader__page .w.is-now { color: var(--u-ink); background: rgb(243 184 94 / .42); box-shadow: 0 0 0 2px rgb(243 184 94 / .42); }
@media (max-width: 1279px) { .reader__track { display: none; } }
@media (max-width: 1279px) {
  .reader { grid-template-columns: 280px minmax(0, 1fr); }
  .reader__page { font-size: 26px; }
}
@media (max-width: 1023px) {
  .reader { grid-template-columns: 220px minmax(0, 1fr); }
  .reader__voices .vchip--x, .reader__sleep { display: none; }
  .reader__body { padding: 16px 20px 20px; }
  .reader__page { font-size: 22px; }
}
@media (max-width: 639px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .reader__art { order: 2; aspect-ratio: 16 / 10; }
  .reader__bar { height: 56px; gap: 10px; padding: 0 12px; }
  .reader__play { width: 40px; height: 40px; }
  .reader__time { display: none; }
  .reader__voices { margin-left: auto; }
  .reader__body { padding: 12px 14px 14px; }
  .reader__meta { margin-bottom: 8px; }
  .reader__page { font-size: 19px; line-height: 1.4; }
}

/* ---------------------------------------------------------------- how: three steps */
#how .panel { --p-h: 300px; }
/* from 1280 the row runs to the section's foot (the panels grow); below it the cards keep their own height */
@media (min-width: 1280px) { #how .wrap > .steps { flex: 1 1 0; min-height: 0; } #how .steps > .card { height: 100%; } }
@media (max-width: 639px) { #how .panel { --p-h: 290px; } }
.vpick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vtile { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 10px; border-radius: 12px; background: #fbf6ec; box-shadow: inset 0 0 0 1px var(--u-line); font-size: 12.5px; line-height: 1.2; }
.vtile img { width: 52px; height: 52px; border-radius: 10px; }
.vtile b { font-weight: 500; }
.vtile em { position: absolute; top: 6px; right: 6px; padding: 3px 6px; border-radius: 99px; background: var(--u-ink); color: var(--u-bg); font: 500 11px/1 var(--font-text); font-style: normal; }
.vtile.is-picked { box-shadow: inset 0 0 0 2px var(--u-accent); }
.vtile__tick { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--u-accent); }
.vtile__tick::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--u-accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* the one loop of the group: the parent's tap lands on Kindness, then the choice holds */
@keyframes pick-ring { 0%, 38% { box-shadow: inset 0 0 0 1px var(--u-line); } 46%, 100% { box-shadow: inset 0 0 0 2px var(--u-accent); } }
@keyframes pick-tick { 0%, 40% { opacity: 0; transform: scale(.7); } 50%, 100% { opacity: 1; transform: none; } }
[data-m-loop] .vtile.is-picked { animation: pick-ring 3.2s linear infinite; }
[data-m-loop] .vtile__tick { animation: pick-tick 3.2s var(--ease) infinite; }
.cform__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; margin: 0; padding: 0 12px; border-radius: 10px; background: var(--u-bg); box-shadow: inset 0 0 0 1px var(--u-line-2); font-size: 14px; }
.cform__field .ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #2f6b3b; }
.cform__field .ok::before { content: ""; width: 7px; height: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.langs span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--u-fill); box-shadow: inset 0 0 0 1px var(--u-line); font: 500 12.5px/1 var(--font-text); color: var(--u-text-2); }
.langs .is-on { background: var(--u-ink); color: var(--u-bg); box-shadow: none; }
.sready { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.sready__cover { grid-row: span 2; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.sready__t { margin: 4px 0 0; font: 500 15px/1.3 var(--font-text); }
.sready__m { margin: 2px 0 0; font-size: 12.5px; color: var(--u-muted); }
.sready__acts { grid-column: 1 / -1; display: flex; gap: 8px; margin: 14px 0 0; }
.sready__acts .ui-btn { flex: 1; justify-content: center; height: 34px; }
.sready__q { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 12px 0 0; padding: 12px; border-radius: 10px; background: var(--u-fill); font-size: 13px; font-weight: 500; }
.sready__q span { color: var(--u-muted); font-weight: 400; }

/* ---------------------------------------------------------------- voice: the recording screen */
.facts { display: grid; margin: 0; padding: 0; list-style: none; }
.facts li { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.vrec { width: 540px; max-width: 100%; }
.vrec__intro { margin: -6px 0 14px; }
.vrec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.vrec__head b { font-weight: 500; }
.vrec__live { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font-text); color: var(--u-muted); font-variant-numeric: tabular-nums; }
.vrec__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--u-accent); }
.vrec__script { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fbf6ec; font-size: 15px; line-height: 1.55; }
.vrec__meter { display: flex; align-items: center; justify-content: space-between; height: 48px; margin: 16px 0; }
.vrec__meter i { flex: none; width: 4px; height: 100%; border-radius: 3px; background: var(--u-ink); transform-origin: center; transform: scaleY(var(--l, .3)); }
.vrec__meter i:nth-child(3n+1) { --l: .55; } .vrec__meter i:nth-child(4n+2) { --l: .8; } .vrec__meter i:nth-child(5n+3) { --l: .4; } .vrec__meter i:nth-child(7n) { --l: .95; }
.vrec__acts { display: flex; gap: 8px; margin: 0 0 4px; }
.vrec__acts .ui-btn { height: 34px; padding: 0 16px; }
.vdone__card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.vdone__card b { font-weight: 500; }
/* the frame's loop: the voice level moves while the parent reads, then the saved voice arrives and holds */
@keyframes rec-level { 0% { transform: scaleY(.25); } 12% { transform: scaleY(var(--l, .5)); } 24% { transform: scaleY(.35); } 36% { transform: scaleY(calc(var(--l, .5) * .8)); } 48% { transform: scaleY(.3); } 60% { transform: scaleY(var(--l, .5)); } 72%, 100% { transform: scaleY(.15); } }
@keyframes rec-done { 0%, 66% { opacity: 0; transform: translateY(8px); } 74%, 100% { opacity: 1; transform: none; } }
@keyframes rec-dot { 0%, 64% { opacity: 1; } 70%, 100% { opacity: .25; } }
[data-m-loop] .vrec__meter i { animation: rec-level 3.2s linear infinite; }
[data-m-loop] .vrec__meter i:nth-child(2n) { animation-name: rec-level; }
[data-m-loop] .vdone { animation: rec-done 3.2s var(--ease) infinite; }
[data-m-loop] .vrec__live i { animation: rec-dot 3.2s linear infinite; }
@media (max-width: 1279px) { #voice .vdone { display: none; } }

/* ---------------------------------------------------------------- tales: the app-frame (sections-library app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.ui.lib { --fx-bg: #33261f; --fx-surface: #3e2f27; --fx-ink: #f8efe4; --fx-muted: #c2b3a4; --fx-accent: #e58a63; --fx-accent-ink: #2a211c; --ui-radius: 16px; --ui-font: var(--font-text); --ui-mono: var(--font-mono); color: var(--u-ink); font: 400 14px/1.45 var(--font-text); }
.lib__bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.lib__bar b { font-weight: 500; font-size: 15px; }
.lib__search { flex: 1; display: flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--u-fill-2); color: var(--u-muted); font-size: 13px; }
.lib__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 16px 4px; }
.lib__chips span { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--u-fill-2); color: var(--u-text-2); font: 500 12.5px/1 var(--font-text); }
.lib__chips .is-on { background: var(--u-ink); color: var(--u-bg); }
.lib__rows { display: grid; padding: 8px; margin: 0; list-style: none; }
.lib__rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.lib__rows li.is-on { background: var(--u-fill-2); box-shadow: inset 2px 0 0 var(--u-accent); }
.lib__rows img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.lib__rows b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lib__rows small { display: block; color: var(--u-muted); font-size: 12.5px; }
.lib__rows time { font: 500 12px/1 var(--font-mono); color: var(--u-muted); }
.tale { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; align-items: end; padding: 28px 32px 0; }
.tale__cover { width: 176px; height: 176px; border-radius: 14px; object-fit: cover; }
.tale__region { margin: 0; font: 500 13px/1.3 var(--font-text); color: var(--u-muted); }
.tale__title { margin: 6px 0 16px; font: 500 24px/1.2 var(--font-text); letter-spacing: -0.01em; }
.tale__acts { display: flex; gap: 8px; margin: 0; }
.tale__acts .ui-btn { height: 34px; padding: 0 16px; background: var(--u-ink); color: var(--u-bg); }
.tale__acts .ui-btn--ghost { background: var(--u-fill-2); color: var(--u-ink); box-shadow: none; }
.tale__text { padding: 24px 32px; max-width: 64ch; }
.tale__text p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: color-mix(in oklab, var(--u-ink) 88%, var(--u-bg)); }
@media (max-width: 639px) {
  .tale { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 16px 0; align-items: center; }
  .tale__cover { width: 96px; height: 96px; }
  .tale__title { font-size: 20px; margin-bottom: 10px; }
  .tale__text { padding: 16px; }
  .tale__text p { font-size: 15px; }
}

/* ---------------------------------------------------------------- safety: four of the app's screens */
#safety .panel { --p-h: 300px; }
@media (max-width: 639px) { #safety .panel { --p-h: 172px; } }
.cform .cform__field + .frag-l { margin-top: 14px; }
.sleep .seg--4 span { padding: 0 4px; }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: 13px; }
.tog i { flex: none; position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--u-fill-3); }
.tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--u-bg); box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.tog.is-on i { background: var(--u-ink); }
.tog.is-on i::after { left: 16px; }
.radio { display: flex; align-items: center; gap: 10px; height: 40px; margin: 0; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.radio + .radio { margin-top: 4px; }
.radio i { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--u-line-2); }
.radio.is-on { background: var(--u-fill-2); }
.radio.is-on i { box-shadow: inset 0 0 0 5px var(--u-ink); }
.report__acts { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0 0; }
.report__acts .ui-btn { height: 34px; padding: 0 18px; }
.report__acts .ui-btn:last-child { background: var(--u-accent); color: var(--u-accent-ink); }
.area { height: 64px; margin: 0; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--u-line-2); font-size: 13px; color: var(--u-muted); }
.roles { margin-bottom: 8px; }
.dots { display: flex; gap: 10px; margin: 0; }
.dots i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.dots i.is-on { box-shadow: 0 0 0 2px var(--u-bg), 0 0 0 4px var(--u-ink); }

/* ---------------------------------------------------------------- pricing: rows aligned across the three plans */
.plan__bill { margin: 0; }
.plan__bill { color: var(--muted); font-size: var(--t-small); }
.price .muted { font-size: var(--t-body); }
@media (min-width: 1024px) {
  .plans { grid-template-rows: repeat(5, auto); }
  .plans > .card--plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-content: start; }
}

/* ---------------------------------------------------------------- the dealt CSS grounds keep the system's section box
   (backgrounds.css spaces a ground as a band of its own, centred and shorter than a screen; the page is a stack of screens) */
main > section:is(#voice, #pricing) { padding: var(--padt) 0 calc(var(--padb) + var(--bar)); align-content: normal; }
@media (min-width: 640px) { main > section:is(#voice, #pricing) { display: flex; flex-direction: column; min-height: calc(var(--h, 1) * 100svh); } }
@media (max-width: 639px) { main > section:is(#voice, #pricing) { min-height: calc(var(--hm, var(--h, 1)) * 100lvh); } }
/* the band's second tone turns toward cyan, never round to violet */
#voice { --t-b: oklch(0.89 0.045 65); }

/* ---------------------------------------------------------------- screens at the tablet and the phone */
@media (min-width: 640px) and (max-width: 1279px) { #how { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { #pricing { --h: 2; } }

/* ---------------------------------------------------------------- the statement beside the values it chooses from */
.choice { align-items: start; }
.choice .mo-wh__text { margin-top: var(--s-5); }
.choice__art, .faq__art { margin: 0; }
.choice__art img, .faq__art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }
/* the FAQ's picture sits under its words, on the answers' bottom line */
#faq .span-5 { display: flex; flex-direction: column; }
#faq .faq__art { margin-top: auto; padding-top: var(--s-6); }
#faq .faq__art img { aspect-ratio: 4 / 3; object-position: 50% 42%; }
@media (max-width: 639px) { #faq .faq__art img { aspect-ratio: 4 / 5; } }
@media (max-width: 639px) { .choice__art { margin-top: var(--s-5); } }

/* the app's own buttons inside the mocks take the page's two: the coral fill and the tonal one (the app's are coral too) */
.ui .ui-btn { border-radius: 999px; background: var(--p-action); color: var(--p-action-ink); box-shadow: none; }
.ui .ui-btn.ui-btn--ghost { background: color-mix(in oklab, var(--u-ink) 8%, var(--u-bg)); color: var(--u-ink); box-shadow: none; }
.tale__acts .ui-btn { background: var(--p-action); color: var(--p-action-ink); }
.report__acts .ui-btn:last-child { background: var(--p-action); color: var(--p-action-ink); }
/* the tablet stacks the FAQ under its picture: two screens there */
@media (min-width: 640px) and (max-width: 1023px) { #faq { --h: 2; } }

/* founder bug 2026-11-26: on a 1536x730 window (a laptop at 125%) the fixed screen heights let the FAQ's
   last answer and the closing button run under the footer. From 1280 up a section now keeps at least its
   screens and grows past them, exactly as the kit already does from 640 to 1279. At 1440x900 nothing moves. */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  :where(main > :is(section, .section):not(.hero, .section--hero), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}

/* ---------------------------------------------------------------- tales: the library speaks all 8 languages */
.lib__langs { padding-bottom: 0; }
.lib__langs span { height: 26px; padding: 0 9px; font-size: 12px; letter-spacing: .02em; }

/* ---------------------------------------------------------------- footer: a warm night sky, the name lit by the pointer
   The name is a port of 21st.dev "Text Hover Effect" by Manu Arora (Aceternity UI,
   https://21st.dev/@manuarora700/components/text-hover-effect): an outlined word that draws itself once, and a gradient
   copy seen through a radial mask that follows the pointer (footer.js); warm coral to amber here, never violet.
   The sky is CSS only: two gradients, a crescent from one inset shadow, two layers of slow-twinkling stars kept to the
   top band and the right side, off the words. */
footer.footer--night { position: relative; overflow: clip; padding-bottom: var(--s-5);
  background: radial-gradient(60% 50% at 88% 0%, rgb(255 190 140 / .11), transparent 70%), linear-gradient(180deg, #2a1f1a 0%, #1b1410 100%); }
.night__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.night__moon { position: absolute; top: 64px; right: max(24px, 8vw); width: 56px; height: 56px; border-radius: 50%;
  box-shadow: inset 14px -8px 0 0 #f4dcbf; filter: drop-shadow(0 0 22px rgb(255 200 150 / .4)); }
.night__stars { position: absolute; inset: 0 0 60% 0; opacity: .8; animation: night-twinkle 6s ease-in-out infinite alternate;
  background-image: radial-gradient(2px 2px at 5% 6%, #fbe8d2 40%, transparent), radial-gradient(1.6px 1.6px at 22% 12%, #fbe8d2 40%, transparent),
    radial-gradient(2px 2px at 41% 8%, #f6d2b0 40%, transparent), radial-gradient(1.4px 1.4px at 63% 30%, #fbe8d2 40%, transparent),
    radial-gradient(2.2px 2.2px at 78% 52%, #fbe8d2 40%, transparent), radial-gradient(1.6px 1.6px at 96% 20%, #f6d2b0 40%, transparent); }
.night__stars--2 { animation-duration: 8.5s; animation-delay: -4s;
  background-image: radial-gradient(1.6px 1.6px at 14% 15%, #f6d2b0 40%, transparent), radial-gradient(2px 2px at 33% 4%, #fbe8d2 40%, transparent),
    radial-gradient(1.4px 1.4px at 52% 14%, #fbe8d2 40%, transparent), radial-gradient(2px 2px at 70% 10%, #f6d2b0 40%, transparent),
    radial-gradient(1.6px 1.6px at 88% 42%, #fbe8d2 40%, transparent), radial-gradient(1.8px 1.8px at 97% 64%, #fbe8d2 40%, transparent); }
@keyframes night-twinkle { from { opacity: .2; } to { opacity: .9; } }
.night__word { position: relative; z-index: 1; padding: var(--s-7) var(--s-5) 0; }
.night__word svg { display: block; width: 100%; height: auto; overflow: visible; }
.night__word text { font: 600 330px/1 var(--font-display); letter-spacing: -0.03em; }
.night__base { fill: rgb(251 243 232 / .035); stroke: rgb(251 243 232 / .3); stroke-width: 1.2; }
.night__draw { fill: none; stroke: rgb(251 243 232 / .55); stroke-width: 1.4; stroke-dasharray: 1500; stroke-dashoffset: 1500; opacity: 0; }
.footer--night.is-in .night__draw { animation: night-draw 4s ease-in-out forwards; }
@keyframes night-draw { 0% { stroke-dashoffset: 1500; opacity: 1; } 75% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.night__lit { fill: url(#night-grad); stroke: url(#night-grad); stroke-width: 1.5; }
@media (max-width: 639px) {
  .night__moon { top: 24px; right: 20px; width: 40px; height: 40px; box-shadow: inset 10px -6px 0 0 #f4dcbf; }
  .night__word { padding: var(--s-6) var(--s-4) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .night__stars { animation: none; opacity: .6; }
  .footer--night.is-in .night__draw { animation: none; }
}

/* 8 languages: voice names, tags and buttons run longer than the English ones on a phone */
@media (max-width: 639px) {
  .reader__voices { min-width: 0; }
  .reader__voices .vchip:not(.is-on) { display: none; }
  .reader__meta { flex-wrap: wrap; row-gap: 4px; }
  .nav:not(.is-open) .nav__actions .btn { padding-inline: 12px; font-size: 13px; }
  .closing__cta .btn { max-width: 100%; white-space: normal; text-align: center; }
}
