:root {
  --bg: #F5F2ED; --bg-2: #EFEAE3; --surface: #FFFFFF; --text: #1C2421; --muted: #69665F;
  --line: #E3DCD1; --primary: #147C88; --primary-ink: #0C5A64; --primary-wash: #E6F4F6;
  --on-primary: #FFFFFF; --band: #147C88; --accent: #FB8C5A; --accent-ink: #B4430F; --link: #0F6E79; --accent-wash: #FFE9DC; --violet: #8B7DF6; --safe: #1FA971; --danger: #E5484D;
  --map-ground: #EFE9DF; --map-block: #E2DACC; --map-park: #D8E8D0; --map-road: #FFFFFF; --map-main: #F6DDB0;
  --shadow: 0 2px 6px rgba(28,36,33,.06), 0 18px 48px rgba(28,36,33,.10);
}
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand b, .num { font-family: "Nunito", system-ui, sans-serif; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* CJK headings break where the languages allow: never before a small kana, Korean by words */
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { line-break: strict; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2, h3) { word-break: keep-all; }
p { margin: 0; }
a { color: var(--link); }
/* for screen readers only: a description for a picture that is drawn on a canvas */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, details:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.bar { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-inline-end: auto; }
.brand img { height: 34px; width: auto; }
.brand b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
nav.links { display: flex; gap: 22px; }
nav.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.links a:hover { color: var(--text); }
.lang { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px "Noto Sans", system-ui, sans-serif; border-radius: 999px; min-height: 44px; padding: 8px 30px 8px 14px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .lang { padding: 8px 14px 8px 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 11px 55%, 16px 55%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 800 16px "Nunito", system-ui, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn.soft { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 860px) { nav.links { display: none; } }
@media (max-width: 480px) {
  .bar { gap: 8px; }
  .lang { max-width: 30vw; text-overflow: ellipsis; font-size: 13px; padding-inline: 11px 26px; }
  [dir="rtl"] .lang { padding-inline: 26px 11px; }
  .brand b { font-size: 20px; }
  .btn.small { padding: 0 12px; font-size: 14px; }
}
/* below this the wordmark gives way, so "Dashboard" fits in every language */
@media (max-width: 430px) { .bar .brand b { display: none; } }

/* hero */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-ink); background: var(--primary-wash); padding: 6px 12px; border-radius: 999px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 4px color-mix(in srgb, var(--safe) 25%, transparent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.soon b { color: var(--text); font-weight: 600; }

/* the live map hero */
.hero { --cx: max(clamp(18px, 4vw, 40px), calc((100vw - 1160px) / 2 + clamp(18px, 4vw, 40px))); position: relative; margin-top: -70px; }
.stage { position: absolute; inset: 0; overflow: hidden; background: #EFE9DF; }
#map { position: absolute; inset: 0; }
.wash { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, var(--bg) 0, rgb(245 242 237 / 0) 120px),
  linear-gradient(to bottom, rgb(245 242 237 / .9) 0, rgb(245 242 237 / 0) 130px),
  linear-gradient(90deg, var(--bg) 0, var(--bg) calc(var(--cx) + 470px), rgb(245 242 237 / .78) calc(var(--cx) + 560px), rgb(245 242 237 / 0) calc(var(--cx) + 780px)); }
[dir="rtl"] .wash { background:
  linear-gradient(to top, var(--bg) 0, rgb(245 242 237 / 0) 120px),
  linear-gradient(to bottom, rgb(245 242 237 / .9) 0, rgb(245 242 237 / 0) 130px),
  linear-gradient(270deg, var(--bg) 0, var(--bg) calc(var(--cx) + 470px), rgb(245 242 237 / .78) calc(var(--cx) + 560px), rgb(245 242 237 / 0) calc(var(--cx) + 780px)); }
.hero-in { position: relative; z-index: 1; min-height: clamp(640px, 100vh, 880px); display: flex; align-items: center; padding-top: 70px; pointer-events: none; }
.copy { pointer-events: auto; max-width: 540px; padding: 32px 0 96px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 32em; }
.live-ui { position: absolute; z-index: 2; inset-inline-end: var(--cx); bottom: 72px; width: min(360px, 34vw); display: grid; gap: 10px; }
.toasts { display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(28,36,33,.16); animation: toast-in .45s cubic-bezier(.2,.9,.3,1.2) both; transition: opacity .4s, transform .4s; }
.toast.old { opacity: .55; transform: scale(.96); }
.toast.gone { opacity: 0; transform: translateY(-10px) scale(.94); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.toast .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.toast b { display: block; font: 800 14.5px/1.25 "Nunito", system-ui, sans-serif; }
.toast small { color: var(--muted); font-size: 13px; }
.sheet { background: var(--surface); border-radius: 24px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 40px rgba(28,36,33,.18); }
.sheet .av { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 900 19px "Nunito", system-ui, sans-serif; flex: none; }
.sheet .who { min-width: 0; }
.sheet b { font: 800 17px "Nunito", system-ui, sans-serif; display: block; }
.sheet small { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet .chip { margin-inline-start: auto; }
/* the child's phone battery: cell + number (site.js batHtml) */
.bat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: -1px; }
.bat-ic { flex: none; display: block; }
[dir="rtl"] .bat-ic { transform: scaleX(-1); }
.sheet .chip, .card .chip { background: var(--bg-2); color: var(--text); padding: 5px 10px 5px 8px; padding-inline: 8px 10px; }
.chip { font: 700 12px "Nunito", system-ui, sans-serif; padding: 4px 9px; border-radius: 999px; background: var(--primary-wash); color: var(--primary-ink); white-space: nowrap; }
.live { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 14px; height: 14px; border-radius: 50%; background: var(--safe); border: 3px solid var(--surface); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 6px rgb(31 169 113 / .18); } }

/* map marks, the same look as the app */
.mk-place { z-index: 1; display: flex; align-items: center; gap: 7px; pointer-events: none; direction: ltr; }
.mk-place .sq { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.mk-place.flip { flex-direction: row-reverse; }
.mk-place .lbl { max-width: min(240px, 55vw); overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; font: 800 13px "Nunito", system-ui, sans-serif; color: var(--text); background: var(--surface); padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.mk-kid { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font: 900 18px "Nunito", system-ui, sans-serif; box-shadow: 0 8px 18px rgba(0,0,0,.28); pointer-events: none; }
.mk-kid::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: rgb(251 140 90 / .28); animation: halo 2s ease-out infinite; z-index: -1; }
@keyframes halo { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.mk-kid { z-index: 2; }
.mk-kid.away { visibility: hidden; }
/* arrived: on the corner of the place's mark, both visible (eases in only; the next story starts in place) */
.mk-kid.there { translate: -24px -26px; transition: translate .5s cubic-bezier(.3, .7, .4, 1); }
[dir="rtl"] .mk-kid.there { translate: 24px -26px; }
/* the marks stack among themselves, not over the headline and the fade beside it */
#map .maplibregl-canvas-container, #map2 .maplibregl-canvas-container { isolation: isolate; }
@media (prefers-reduced-motion: reduce) { .mk-kid.there { transition: none; } }
.maplibregl-ctrl-attrib { font: 11px "Noto Sans", system-ui, sans-serif; }

@media (max-width: 900px) {
  .hero { margin-top: 0; display: flex; flex-direction: column; }
  .stage { position: relative; order: 2; height: min(580px, 140vw); margin: 0 clamp(12px, 3vw, 24px); border-radius: 28px; box-shadow: var(--shadow); }
  .wash { display: none; }
  .hero-in { min-height: 0; padding-top: 0; }
  .copy { padding: 28px 0 28px; }
  .live-ui { inset-inline: 12px; bottom: 12px; width: auto; }
  .toast .ic { width: 34px; height: 34px; }
  .toast.old { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .live, .mk-kid::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* sections */
section.block { padding: clamp(80px, 10vw, 132px) 0; }
.head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 44px); }
.head .kicker { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.head h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; line-height: 1.06; letter-spacing: -.02em; margin: 10px 0 14px; }
.head p { color: var(--muted); font-size: 18px; }

.foot { display: flex; flex-wrap: wrap; gap: 2px 28px; align-items: center; color: var(--muted); font-size: 14px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .brand { margin-inline-end: auto; }
/* features: one pinned screen, scrolled through */
.t-features { padding-bottom: 0 !important; }
.t-features .head { margin-bottom: 0; }
.scroller { position: relative; height: calc(6 * 58vh + 100vh); }
.pin { position: sticky; top: 70px; height: calc(100vh - 70px); display: flex; align-items: center; }
.scenes { width: 100%; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.scene-box { position: relative; height: min(740px, calc(100vh - 70px - 64px)); border-radius: 32px; overflow: hidden; background: #EFE9DF; box-shadow: var(--shadow); }
#map2 { position: absolute; inset: 0; }
.scene-dim { position: absolute; inset: 0; background: rgb(245 242 237 / .72); opacity: 0; transition: opacity .6s; pointer-events: none; }
.scene-box.dim .scene-dim { opacity: 1; }
.scene-ui { position: absolute; inset-inline: 16px; bottom: 16px; display: grid; gap: 10px; justify-items: end; }
.scene-ui > * { width: min(380px, 100%); }
.scene-steps { position: relative; display: grid; gap: 4px; }
.scene-step { border-radius: 26px; margin-inline: -16px; padding: 4px 16px; transition: background .4s, box-shadow .4s; }
.scene-step.on { background: #fff; box-shadow: 0 16px 44px rgb(28 36 33 / .10), 0 0 0 1px rgb(28 36 33 / .04); padding-block: 10px 6px; }
.scene-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .5s;
  box-shadow: inset 0 0 0 3px rgb(229 72 77 / .55), inset 0 0 90px rgb(229 72 77 / .38); }
.scene-box.alarm::after { opacity: 1; animation: alarm 1.4s ease-in-out infinite; }
@keyframes alarm { 50% { opacity: .35; } }
.st-head { margin: 0; }
.st-head button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 18px; width: 100%; padding: 9px 0; cursor: pointer;
  font: 900 clamp(19px, 1.7vw, 23px)/1.15 "Nunito", system-ui, sans-serif; color: var(--muted); letter-spacing: -.01em; transition: color .3s; }
.st-head button:hover { color: var(--text); }
.st-head button:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 12px; }
.scene-step.on .st-head button { color: var(--text); font-size: clamp(24px, 2.3vw, 32px); }
.scene-step .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #F7EFE6);
  position: relative; z-index: 1; transition: background .35s, color .35s, transform .35s, box-shadow .35s; }
.scene-step.on .ic { background: var(--c); color: #fff; transform: scale(1.06); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.scene-step.on .more { grid-template-rows: 1fr; }
.more > div { overflow: hidden; padding-inline-start: 62px; }
.more p { color: var(--muted); font-size: 17px; max-width: 30em; margin: 2px 0 12px; }
.more .tags { margin: 0 0 14px; }
.rail { position: absolute; inset-inline-start: 21px; width: 2px; top: var(--rail-top, 0); height: var(--rail-h, 0); background: var(--line); border-radius: 2px; }
.rail i { position: absolute; inset: 0 0 auto; height: var(--rail-fill, 0); background: linear-gradient(var(--primary), var(--accent)); border-radius: 2px; transition: height .45s cubic-bezier(.2,.8,.2,1); }
.scene-dots { display: none; }
@media (max-width: 900px) {
  .scroller { height: calc(6 * 72vh + 100vh); }
  .pin { height: calc(100svh - 70px); align-items: stretch; padding: 10px 0 14px; }
  .scenes { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .scene-dots { display: flex; gap: 8px; justify-content: center; order: 0; }
  .scene-dots button { all: unset; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #F7EFE6); cursor: pointer; transition: background .3s, color .3s; }
  .scene-dots button.on { background: var(--c); color: #fff; }
  .scene-dots svg { width: 20px; height: 20px; }
  .scene-box { order: 1; height: auto; flex: 1 1 auto; min-height: 42svh; border-radius: 26px; }
  .scene-steps { order: 2; }
  .scene-step:not(.on) { display: none; }
  .scene-step .ic { display: none; }
  .st-head button { padding: 0 0 4px; }
  .scene-step.on .st-head button { font-size: 22px; }
  .more > div { padding-inline-start: 0; }
  .more p { font-size: 15.5px; margin-bottom: 8px; }
  .more .tags { margin-bottom: 0; }
  .rail { display: none; }
  .scene-step, .scene-step.on { margin: 0; padding: 0; background: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .more, .rail i { transition: none; } .scene-box.alarm::after { animation: none; } }

/* the child's card and scene cards, the app's shapes */
.card { background: var(--surface); border-radius: 24px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(28,36,33,.18); }
.card .row { display: flex; align-items: center; gap: 12px; }
.card .av { position: relative; width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 900 18px "Nunito", system-ui, sans-serif; flex: none; }
.card b { font: 800 16.5px "Nunito", system-ui, sans-serif; display: block; }
.card small { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.card .grow { flex: 1; min-width: 0; }
.card .acts { display: flex; gap: 8px; margin-top: 12px; }
.card .act { flex: 1; text-align: center; font: 800 14px "Nunito", system-ui, sans-serif; padding: 10px 8px; border-radius: 999px; background: var(--bg-2); color: var(--text); }
.card .act.hot { background: var(--danger); color: #fff; }
.sums { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.card .push { margin-inline-start: auto; }
.seg { display: flex; gap: 3px; height: 9px; margin: 12px 0 2px; }
.seg i { border-radius: 5px; min-width: 6px; }
.seg-t { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sums span { display: flex; align-items: center; gap: 7px; font: 800 14.5px "Nunito", system-ui, sans-serif; }
.sums i { width: 18px; height: 5px; border-radius: 3px; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin: 10px 0 4px; }
.wave i { flex: 1; border-radius: 3px; background: var(--primary); height: 20%; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 50% { height: var(--h, 80%); } }
.tabs { display: flex; gap: 6px; margin-inline-start: auto; }
.tabs span { font: 800 12px "Nunito", system-ui, sans-serif; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.tabs span.on { background: var(--primary); color: #fff; }
.apps { display: grid; gap: 11px; margin-top: 12px; }
.apps .app { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.apps .app em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.apps .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.apps .wk-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--primary); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.apps .app.over .bar i { background: var(--danger); }
.apps .app.over em { color: var(--danger); font-weight: 600; }
.nightrow { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.toast.warn .ic { background: var(--warning, #F5A524); }
.toast.bad { box-shadow: 0 0 0 2px var(--danger), 0 10px 30px rgba(229,72,77,.25); }
.mk-kid.sos { background: var(--danger) !important; }
.mk-kid.sos::before { background: rgb(229 72 77 / .35); animation-duration: 1.1s; }
.mk-kid.sos::after { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 3px solid rgb(229 72 77 / .5); animation: halo 1.1s ease-out infinite .35s; }

.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 700 13.5px "Nunito", system-ui, sans-serif; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.scene-step.on .tags li { background: #F7F1E9; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent) inset; }
.card .where { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.card .clock { font: 900 26px "Nunito", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--text); padding: 2px 10px; border-radius: 12px; transition: background .4s, color .4s; }
.card .clock.late { background: #F5A524; color: #fff; }
.card .clock.ok { background: var(--safe); color: #fff; }

/* the week, as the app sums it up */
.week { margin-top: 30px; max-width: min(420px, 100%); background: var(--surface); border-radius: 26px; padding: 18px 20px 14px; box-shadow: 0 14px 40px rgb(28 36 33 / .08), 0 0 0 1px rgb(28 36 33 / .04); }
.week-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.week-top b { font: 900 17px "Nunito", system-ui, sans-serif; }
.week-top small { color: var(--muted); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.week-top small i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-inline-end: 5px; vertical-align: middle; }
.wk-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, 2.2vw, 10px); height: 130px; align-items: end; margin-top: 16px; }
.wk-bar { display: flex; flex-direction: column-reverse; gap: 3px; height: 100%; justify-content: flex-start; opacity: .5; transition: opacity .3s; }
.wk-bar.today { opacity: 1; }
.bar i { display: block; border-radius: 6px; min-height: 4px; transform-origin: bottom; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.week:not(.in) .wk-bar i { transform: scaleY(0); }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, 2.2vw, 10px); overflow-wrap: anywhere; margin-top: 8px; text-align: center; font: 700 12px "Nunito", system-ui, sans-serif; color: var(--muted); text-transform: capitalize; }
.wk-days .today { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .week:not(.in) .wk-bar i { transform: none; } }

/* the day feed */
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.day > * { min-width: 0; }
.day > .head { position: sticky; top: 120px; align-self: start; }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; } .day > .head { position: static; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.ticks li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; transform: translateY(-1px); }
.feed-card { background: var(--surface); border-radius: 32px; padding: 18px 18px 8px; box-shadow: var(--shadow); }
.feed-top { display: flex; align-items: center; gap: 10px; }
.feed-top .av { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 900 16px "Nunito", system-ui, sans-serif; }
.feed-top b { font: 900 18px "Nunito", system-ui, sans-serif; }
.feed-top small { color: var(--muted); margin-inline-start: auto; font-size: 13.5px; }
.feed-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.feed-sum div { background: var(--bg); border-radius: 16px; padding: 10px 12px; }
.feed-sum b { display: block; font: 900 18px "Nunito", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.feed-sum small { color: var(--muted); font-size: 12.5px; }
.feed { list-style: none; margin: 0; padding: 0; }
.fi { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; position: relative; }
.fi + .fi::before { content: ""; position: absolute; inset-inline-start: 19px; top: -10px; height: 20px; border-inline-start: 2px dotted var(--line); }
.fi .fi-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.fi.move .fi-ic { background: var(--bg-2); }
.fi b { font: 800 15px "Nunito", system-ui, sans-serif; display: block; }
.fi small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fi svg.art { width: 64px; height: 36px; }
.reveal .fi { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.reveal.in .fi { opacity: 1; transform: none; }

/* the last screen: every route on this page, drawn over the town */
.end { position: relative; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; }
.end-in { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 16px; }
.end h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; max-width: 14em; }
.end p { color: var(--muted); font-size: 18px; max-width: 30em; }
.end .cta { justify-content: center; margin-top: 8px; }
.end-note { font-size: 13.5px !important; }
footer { margin-top: 0; }

/* sections arrive quietly */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal .fi { opacity: 1; transform: none; transition: none; }
  .wave i, .mk-kid.sos::after { animation: none; }
}

/* ============ a day down the page: morning, day, afternoon, sunset, evening, night ============ */
main.sky { display: block; }
.t-features { background: linear-gradient(180deg, #F5F2ED 0%, #F8ECDF 18%, #F8EFE5 72%, #F4F1EA 100%); }
.t-day { background: linear-gradient(180deg, #F4F1EA, #F0F4F1); }
.t-connect { background: linear-gradient(180deg, #F2EFE7, #F6E6D5); padding-bottom: clamp(56px, 7vw, 96px) !important; }
.night { --text: #EAF3F2; --muted: #B7D2CF; --surface: rgb(255 255 255 / .06); --line: rgb(255 255 255 / .16); --bg-2: rgb(255 255 255 / .08);
  --primary: #5FD0DA; --primary-ink: #A6E7ED; --primary-wash: rgb(95 208 218 / .14); color: var(--text); }
.night .head .kicker { color: #FFB38F; }
.night a { color: #BFF0F4; }
.t-privacy { background: linear-gradient(180deg, #1E5A60, #174D54); }
.t-faq { background: linear-gradient(180deg, #174D54, #113E44); }
.end { background: linear-gradient(180deg, #113E44, #0B2B30); }
footer.night { background: #0B2B30; border-top: 1px solid var(--line); padding: 36px 0 48px; }
footer.night .brand b { color: #fff; }

/* connect: stops on a route, the app at its end */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); position: relative; align-items: start; }
.path::before { content: ""; position: absolute; top: 27px; inset-inline: 28px 12%; border-top: 3px dashed rgb(20 124 136 / .45); }
.stop { position: relative; display: grid; gap: 8px; }
.stop .dot { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--primary) inset, 0 8px 18px rgb(20 124 136 / .18); display: grid; place-items: center;
  font: 900 22px "Nunito", system-ui, sans-serif; color: var(--primary); position: relative; z-index: 1; margin-bottom: 10px; }
.stop h3 { font-size: 21px; font-weight: 800; }
.stop p { color: var(--muted); font-size: 15.5px; }
.dest { position: relative; background: #fff; border-radius: 30px; padding: 30px 24px 24px; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: 0 18px 50px rgb(28 36 33 / .14); margin-top: -10px; }
.dest-pin { position: absolute; top: -15px; font: 800 13px "Nunito", system-ui, sans-serif; background: var(--accent); color: #2A1004; padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgb(180 67 15 / .35); }
.dest .qr { width: 176px; height: 176px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.dest b { font: 800 18px "Nunito", system-ui, sans-serif; }
.dest p { color: var(--muted); font-size: 14px; max-width: 22em; }
@media (max-width: 960px) {
  .path { grid-template-columns: 1fr; gap: 26px; }
  .path::before { top: 28px; bottom: 30%; inset-inline: 26px auto; border-top: 0; border-inline-start: 3px dashed rgb(20 124 136 / .45); }
  .stop { grid-template-columns: 56px 1fr; column-gap: 18px; }
  .stop .dot { grid-row: 1 / span 2; margin: 0; }
  .dest { margin-top: 12px; }
}

/* privacy: big words on the evening sky */
.privacy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pv-text { display: grid; gap: clamp(28px, 3.5vw, 44px); }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }
.privacy .head { margin: 0; }
.t-privacy .head h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
@media (max-width: 560px) { .privacy ul { grid-template-columns: 1fr; } }
.privacy li { display: grid; gap: 12px; color: var(--muted); font-size: 16px; }
.privacy li::before { content: ""; width: 40px; height: 40px; border-radius: 13px; background: rgb(95 208 218 / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FD0DA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.privacy li b { display: block; color: #fff; font: 800 18.5px/1.3 "Nunito", system-ui, sans-serif; margin-bottom: 4px; }

/* hopping to another country: the map fades behind a flight card and comes back drawn */
#map { transition: opacity .6s ease; }
.stage.hopping #map { opacity: .1; }
/* --x, --k: set by the script so the card stays clear of the headline (the open part of the map, scaled down if narrow) */
/* it comes in with a soft spring and leaves by shrinking into the destination pin (84% 48%: where that pin sits in the card) */
.hop { --k: 1; position: absolute; z-index: 3; top: 50%; left: var(--x, 64%); transform-origin: 84% 48%; transform: translate(-50%, -46%) scale(calc(var(--k) * .8));
  display: grid; justify-items: center; gap: 6px; padding: 18px 22px 16px; border-radius: 20px; background: linear-gradient(180deg, #FFFFFF, #FFFAF4);
  box-shadow: 0 0 0 1px rgb(28 36 33 / .06), 0 2px 6px rgb(28 36 33 / .06), 0 22px 50px rgb(28 36 33 / .16);
  opacity: 0; transition: opacity .32s ease-in .06s, transform .42s cubic-bezier(.55, 0, .8, .2); pointer-events: none; }
.stage.hopping .hop { transform-origin: 50% 50%; opacity: 1; transform: translate(-50%, -50%) scale(var(--k));
  transition: opacity .28s ease-out, transform .55s cubic-bezier(.2, 1.25, .4, 1); }
.live-ui { transition: opacity .4s; }
.stage.hopping .live-ui { opacity: 0; }
.hop-art { position: relative; width: 280px; height: 92px; }
.hop-art > svg { display: block; overflow: visible; }
/* the plane turns round the arc's centre (140, 225.7): transform only, so it keeps flying while the map works */
.hop-plane { position: absolute; left: 128px; top: 17px; width: 24px; height: 24px; transform-origin: 12px 208.7px; opacity: 0;
  animation: hop-fly 2.4s cubic-bezier(.45, 0, .55, 1) infinite paused; } /* paused, not removed: it fades out with the card */
.hop-plane svg { display: block; filter: drop-shadow(0 2px 2px rgb(20 124 136 / .25)); }
/* the trail: the same arc drawn up to the plane (same curve, same clock); the origin dims once left behind */
.hop-trail { stroke-dasharray: 1 1; stroke-dashoffset: 0; animation: hop-trail 2.4s cubic-bezier(.45, 0, .55, 1) infinite paused; }
.hop-from { animation: hop-from 2.4s ease-out infinite paused; }
/* the destination: a ripple as the plane comes down (centred on the pin at 252, 64) */
.hop-ring { position: absolute; left: 240px; top: 52px; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #FB8C5A; opacity: 0;
  animation: hop-ring 2.4s ease-out infinite paused; }
.stage.hopping :is(.hop-plane, .hop-trail, .hop-from, .hop-ring) { animation-play-state: running; }
.stage.hopping .hop-plane { will-change: transform, opacity; }
@keyframes hop-fly { 0% { transform: rotate(-34.7deg); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: rotate(34.7deg); opacity: 0; } }
@keyframes hop-trail { 0% { stroke-dashoffset: 1; opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .35; } }
@keyframes hop-from { 0% { opacity: 1; } 35%, 100% { opacity: .45; } }
@keyframes hop-ring { 0%, 80% { transform: scale(.5); opacity: 0; } 86% { opacity: .85; } 100% { transform: scale(2.3); opacity: 0; } }
.hop-names { display: flex; justify-content: space-between; align-items: baseline; width: 280px; gap: 12px; font: 700 13.5px "Nunito", system-ui, sans-serif; color: var(--muted); }
.hop-names span { opacity: .85; }
.hop-names b { font: 900 19px "Nunito", system-ui, sans-serif; color: var(--text); letter-spacing: -.01em; }
[dir="rtl"] .hop { left: var(--x, 36%); transform-origin: 16% 48%; }
[dir="rtl"] .hop-art { transform: scaleX(-1); }
@media (max-width: 900px) { .hop, [dir="rtl"] .hop { left: 50%; top: 42%; } }
@media (prefers-reduced-motion: reduce) { #map, .hop, .stage.hopping .hop { transition: none; } .hop-plane { display: none; } .hop-trail, .hop-from, .hop-ring { animation: none; } }

/* the child's lock screen: what they see while their parents see where they are */
.kidphone-wrap { margin: 0; display: grid; justify-items: center; gap: 16px; }
.kidphone { width: min(290px, 70vw); aspect-ratio: 9 / 19; border-radius: 46px; background: #081B1F; padding: 10px;
  box-shadow: 0 40px 90px rgb(0 0 0 / .45), inset 0 0 0 2px rgb(255 255 255 / .09); transform: rotate(-3deg); }
.kp-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; padding: 58px 14px 0; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 50% 108%, #F29C7F 0%, #C2766F 28%, rgb(30 90 96 / 0) 62%), linear-gradient(180deg, #0F3B42 0%, #1B5A60 60%, #2B6A6D 100%); }
.kp-notch { position: absolute; top: 12px; left: 50%; width: 84px; height: 22px; border-radius: 12px; background: #081B1F; transform: translateX(-50%); }
.kp-time { font: 900 64px/1 "Nunito", system-ui, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kp-date { margin-top: 6px; font: 700 14px "Nunito", system-ui, sans-serif; color: rgb(255 255 255 / .82); text-transform: capitalize; }
.kp-note { margin-top: 34px; text-align: start; background: rgb(255 255 255 / .17); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 20px; padding: 12px 14px 13px; display: grid; gap: 3px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.kp-app { display: flex; align-items: center; gap: 7px; font: 700 12px "Nunito", system-ui, sans-serif; color: rgb(255 255 255 / .8); margin-bottom: 3px; }
.kp-app img { background: #fff; border-radius: 6px; padding: 2px; width: 20px; height: 20px; }
.kp-app em { font-style: normal; margin-inline-start: auto; }
.kp-note b { font: 800 15px/1.3 "Nunito", system-ui, sans-serif; }
.kp-note span { font-size: 13.5px; line-height: 1.35; color: rgb(255 255 255 / .86); }
.kp-bar { position: absolute; bottom: 10px; left: 50%; width: 110px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .7); transform: translateX(-50%); }
.kidphone-wrap figcaption { font: 700 14px "Nunito", system-ui, sans-serif; color: var(--muted); }
@media (max-width: 860px) { .kidphone { transform: none; } }

/* questions: the heading holds, the answers scroll by */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-grid > .head { position: sticky; top: 110px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > .head { position: static; } }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 800 19px "Nunito", system-ui, sans-serif; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: #FFB38F; font-size: 20px; line-height: 1; transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgb(255 179 143 / .16); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 60ch; font-size: 16.5px; }

/* the night: every route of the page, glowing over the town */
.end::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 30% 36% at 50% 50%, rgb(12 47 53 / .88) 30%, rgb(12 47 53 / 0) 100%), linear-gradient(#113E44, rgb(17 62 68 / 0) 16%, rgb(11 43 48 / 0) 84%, #0B2B30); }
#night-map { position: absolute; inset: 0; background: #0C2F35; }
#night-map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgb(11 43 48 / .75); }
#night-map .maplibregl-ctrl-attrib a, #night-map .maplibregl-ctrl-attrib { color: #9FC3C0; }
#night-map .maplibregl-ctrl-attrib-button { filter: invert(1) opacity(.6); }
.end-in { z-index: 2; }
@media (max-width: 700px) { .end::before { background: radial-gradient(ellipse 78% 44% at 50% 50%, rgb(12 47 53 / .93) 40%, rgb(12 47 53 / 0) 100%), linear-gradient(#113E44, rgb(17 62 68 / 0) 16%, rgb(11 43 48 / 0) 84%, #0B2B30); } }
.end h2 { color: #fff; }
.end .btn.primary { background: var(--accent); color: #2A1004; box-shadow: 0 10px 28px rgb(180 67 15 / .45); }
.end .btn.soft { background: rgb(255 255 255 / .08); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .22) inset; }

.dusk { position: relative; height: clamp(250px, 29vw, 440px); overflow: hidden; background: #F6E6D5; }
.dusk-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dusk::before { content: ""; position: absolute; inset: 0 0 auto; height: 42%; z-index: 1; background: linear-gradient(#F6E6D5, rgb(246 230 213 / 0)); pointer-events: none; }
.dusk .glint { transform-box: fill-box; transform-origin: center; animation: glint 3.2s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: .25; transform: scaleX(.8); } 50% { opacity: 1; transform: scaleX(1.06); } }
@media (prefers-reduced-motion: reduce) { .dusk .glint { animation: none; } }

/* the header follows the sky */
header { transition: background .35s; }
header.dark { background: rgb(11 43 48 / .84); }
header.dark .brand, header.dark .brand b, header.dark nav.links a { color: #EAF3F2; }
header.dark .lang { background-color: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .2); }
header.dark .lang option { color: #1C2421; }

/* the landing: what it can do, in brief (the whole tour lives on /features/): a bento of equal rows,
   the first feature large with a little map, the last cell the way into the tour */
.t-teaser { background: linear-gradient(180deg, #F5F2ED 0%, #F8ECDF 30%, #F2EFE7 100%); }
.teaser-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px clamp(28px, 5vw, 72px); align-items: end; }
.teaser-head h2 { margin-bottom: 0; max-width: 13em; }
.teaser-head p { max-width: 26em; padding-bottom: 6px; }

.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.bento > li { display: flex; min-width: 0; }
.bento .big { grid-row: span 3; }
.tile { --c: var(--primary); position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-radius: 26px; background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: 0 1px 2px rgb(28 36 33 / .04), 0 12px 32px rgb(28 36 33 / .07), 0 0 0 1px rgb(28 36 33 / .045); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(28 36 33 / .05), 0 22px 48px rgb(28 36 33 / .13), 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); }
.tile:active { transform: translateY(-1px); }
.tile:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 26px; }
.tile .ic { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #F7EFE6); margin-bottom: 10px; transition: background .25s, color .25s; }
.tile:hover .ic { background: var(--c); color: #fff; }
.tile b { font: 800 18px/1.25 "Nunito", system-ui, sans-serif; }
.tile small { color: var(--muted); font-size: 14px; line-height: 1.45; }
/* the arrow: a quiet circle in the corner that fills with the card's colour */
.tile .go { position: absolute; top: 18px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  background: color-mix(in srgb, var(--c) 7%, #F6F2EC); transition: background .25s, color .25s, translate .25s; }
.tile .go svg { display: block; }
[dir="rtl"] .tile .go svg { transform: scaleX(-1); }
.tile:hover .go { background: var(--c); color: #fff; translate: 3px 0; }
[dir="rtl"] .tile:hover .go { translate: -3px 0; }

/* the large one: a little map where the child is at school right now */
.tile-big { padding: 0; overflow: hidden; }
/* a real map (mini-map.webp, pre-rendered: scratchpad render.js) shown 1:1; the school point (67% 39% of the image)
   is pinned to --qx --qy of the card and the image slides under it, never leaving a gap */
.mini { position: relative; flex: 1; min-height: 210px; overflow: hidden; background: #F2EEE7; container-type: size; --qx: .85; --qy: .28; }
.mini .mm { --w: max(880px, 100cqw, 100cqh * 880 / 470); --h: calc(var(--w) * 470 / 880); position: absolute; width: var(--w); height: var(--h);
  left: clamp(100cqw - var(--w), var(--qx) * 100cqw - .67 * var(--w), 0px); top: clamp(100cqh - var(--h), var(--qy) * 100cqh - .39 * var(--h), 0px);
  transform-origin: 67% 39%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.mini .mm img { display: block; width: 100%; height: 100%; }
.tile-big:hover .mini .mm { transform: scale(1.04); }
.mini::after { content: ""; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(rgb(255 255 255 / 0), var(--surface)); pointer-events: none; }
.mini .at { position: absolute; left: 67%; top: 39%; }
.mini .mpin, .mini .mping { position: absolute; left: 0; top: 0; border-radius: 50%; }
.mini .mpin { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 3.5px solid #fff; background: var(--accent) url(/kid-mia.webp) center / cover; box-shadow: 0 3px 8px rgb(28 36 33 / .25); }
.mini .mpin::after { content: ""; position: absolute; left: 23px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 2.5px #fff; }
.mini .mping { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: #FB8C5A; animation: mini-ping 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes mini-ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
/* the licences want the credit visible */
.mini .osm { position: absolute; z-index: 1; bottom: 5px; inset-inline-end: 8px; padding: 2px 6px; border-radius: 6px; background: rgb(255 255 255 / .86); color: rgb(28 36 33 / .8); font: 600 10px/1.2 "Nunito", system-ui, sans-serif; direction: ltr; }
.mini .chip { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; padding-inline: 7px 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 8px 22px rgb(28 36 33 / .14); font-size: 14px; line-height: 1.25; color: var(--text); max-width: calc(100% - 32px); }
.mini .chip .av { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent) url(/kid-mia.webp) center / cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-wash); }
.mini .chip .av::after { content: ""; position: absolute; inset-inline-end: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 2.5px #fff; }
.chip-t { min-width: 0; }
.chip-t b { font: 800 14.5px "Nunito", system-ui, sans-serif; }
.chip-t small { display: block; color: var(--muted); font-size: 12.5px; }
.tb { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 24px 24px; }
.tb .ic { margin-top: -41px; box-shadow: 0 0 0 5px var(--surface); background: color-mix(in srgb, var(--c) 16%, #fff); }
.tile-big b { font-size: 22px; }
.tile-big small { font-size: 15px; max-width: 30em; }
.tb .go { top: 16px; inset-inline-end: 20px; }

/* the last cell: into the whole tour */
.tile-all { --c: #fff; justify-content: flex-start; color: #fff; padding-inline-end: 22px;
  background: radial-gradient(circle at 100% 100%, rgb(255 255 255 / .13) 0 64px, transparent 65px), radial-gradient(circle at 100% 100%, rgb(255 255 255 / .07) 0 118px, transparent 119px), var(--primary);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 32%, transparent); }
[dir="rtl"] .tile-all { background: radial-gradient(circle at 0 100%, rgb(255 255 255 / .13) 0 64px, transparent 65px), radial-gradient(circle at 0 100%, rgb(255 255 255 / .07) 0 118px, transparent 119px), var(--primary); }
.tile-all:hover { box-shadow: 0 22px 48px color-mix(in srgb, var(--primary) 42%, transparent); }
.tile-all b { font-size: 20px; }
.tile-all small { color: rgb(255 255 255 / .93); max-width: 16em; }
.tile-all .go { top: auto; bottom: 18px; width: 46px; height: 46px; color: #fff; background: rgb(255 255 255 / .2); }
.tile-all:hover .go { background: #fff; color: var(--primary); }
.tile-all:focus-visible { outline-color: var(--primary); }

@media (max-width: 900px) {
  .teaser-head { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: 1fr; }
  .bento .big { grid-column: 1 / -1; grid-row: auto; }
  .mini { flex: none; height: 230px; --qx: .68; --qy: .47; }
}
@media (max-width: 560px) {
  .bento { gap: 10px; }
  .tile { padding: 16px 14px 16px; border-radius: 22px; }
  .tile-big { padding: 0; }
  .tile .ic { width: 40px; height: 40px; border-radius: 13px; margin-bottom: 6px; }
  .tile .ic svg { width: 20px; height: 20px; }
  .tile b { font-size: 15.5px; }
  .tile small { font-size: 13px; line-height: 1.4; }
  .tile .go { top: 14px; inset-inline-end: 12px; width: 28px; height: 28px; }
  .tile .go svg { width: 14px; height: 14px; }
  .mini { height: 190px; --qx: .78; --qy: .47; }
  .tb { padding: 14px 18px 20px; }
  .tb .ic { margin-top: -34px; }
  .tb .go { top: 14px; inset-inline-end: 16px; }
  .tile-big b { font-size: 19px; }
  .tile-big small { font-size: 14px; }
  .tile-all b { font-size: 17px; }
  .tile-all .go { top: auto; bottom: 14px; width: 38px; height: 38px; }
}
@media (max-width: 340px) { .bento { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mini .mping { animation: none; opacity: 0; } .mini .mm, .tile .go { transition: none; } }

/* Google Play, not out yet: a store badge marked "soon", not a link that leads nowhere */
.play-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 13px; padding-inline: 13px 16px; border-radius: 12px; background: #1C2421; color: #fff; }
.play-badge .pb-ic { flex: none; }
.pb-t { display: grid; font: 800 17px/1.1 "Nunito", system-ui, sans-serif; letter-spacing: -.01em; text-align: start; }
.pb-t small { font: 600 10.5px/1.2 "Noto Sans", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.soon .pb-ic { flex: none; }

/* /features/: the page's own headline, and a way to jump to any part of the tour */
nav.links a[aria-current="page"] { color: var(--text); }
.page-head { padding: clamp(36px, 5vw, 68px) 0 0; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; margin: 18px 0 16px; max-width: 12em; }
.page-head .sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px; padding-inline-end: 14px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none;
  font: 800 14.5px "Nunito", system-ui, sans-serif; box-shadow: 0 0 0 1px var(--line) inset; transition: transform .2s, box-shadow .2s; }
.jump a:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--c) inset, 0 8px 20px rgb(28 36 33 / .08); }
.jump .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #F7EFE6); }
.jump .ic svg { width: 17px; height: 17px; }
.page-head + .t-features { padding-top: clamp(24px, 4vw, 48px); }
@media (max-width: 560px) { .jump { gap: 8px; } .jump a { font-size: 13.5px; } }

/* the tour ends with a way in */
.t-cta { background: linear-gradient(180deg, #F0F4F1, #F6E6D5); }
.cta-card { background: var(--surface); border-radius: 36px; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 14px; box-shadow: var(--shadow); }
.cta-card h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 900; letter-spacing: -.02em; line-height: 1.06; max-width: 14em; }
.cta-card p { color: var(--muted); font-size: 18px; max-width: 30em; }
.cta-card .cta { justify-content: center; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .tile, .jump a { transition: none; } }
