/* KashApps site (redesign, 2026-11-15). Look: a parent's first look. An ink first screen with three real phones
   and the one promise, then light paper and one card per app in the colours of its own screens (rooms.css, generated).
   No JavaScript: motion is CSS only and switches off under prefers-reduced-motion.
   Fraunces: Copyright 2018 The Fraunces Project Authors, SIL Open Font License 1.1 (licenses/Fraunces-OFL.txt). */
@font-face {
  font-family: "Fraunces";
  src: url(../fonts/fraunces-600.4a10c494f2.woff2) format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url(../fonts/fraunces-400-italic.a4d4cd7e64.woff2) format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text: #17181d;
  --muted: #4f5560;
  --accent: #0b5d6b;
  --accent-text: #ffffff;
  --line: #ddd8cc;
  --focus: #1d4ed8;
  --ink: #151a24;
  --ink-2: #1d2432;
  --paper: #f3efe7;
  --paper-muted: #c9cfd8;
  --gold: #f0b45c;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141822;
    --surface: #1d2230;
    --text: #eef0f4;
    --muted: #b4bac6;
    --accent: #7fd0dc;
    --accent-text: #0c1a1f;
    --line: #2e3443;
    --focus: #9ec5ff;
  }
}
/* app pages take the colours of their own app (rooms.css sets --r-* on body.room--<slug>) */
.app-page {
  --bg: var(--r-bg); --surface: var(--r-stage); --text: var(--r-text); --muted: var(--r-muted);
  --accent: var(--r-accent); --accent-text: var(--r-on); --line: var(--r-line); --focus: var(--r-text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 2.6vw + 1.4rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
em { font-family: var(--display); font-weight: 400; font-style: italic; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 42rem); }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* header and footer */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font: 600 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; padding: 12px 0; }
.home { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.home:hover { border-color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .95rem; }
.foot p { margin: 0 0 .4em; }
.brand-line { font: 600 1.2rem/1 var(--display); color: var(--text); margin-bottom: .8em; }
.foot a { display: inline-block; padding: 10px 0; }

/* shared pieces */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600;
  border: 2px solid transparent;
}
.button:hover { filter: brightness(1.08); }
.button--ghost { background: transparent; color: inherit; border-color: currentColor; }
.button--ghost:hover { filter: none; background: rgb(255 255 255 / .08); }
.kind { margin: 0 0 .35em; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.for-adults { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.pic { display: contents; }
.icon { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 6px 18px rgb(0 0 0 / .14); }
.icon.big { width: 88px; height: 88px; }
.mono { display: inline-grid; place-items: center; background: #23325e; color: #f6e7c8; font: 600 1.4rem/1 var(--display); }

/* ---- index: first screen ---- */
.index > .hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-in { display: grid; gap: 36px; padding: 44px 0 40px; }
.eyebrow { margin: 0 0 14px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); }
.hero h1 { font-size: clamp(2.4rem, 3.2vw + 1rem, 3.9rem); margin-bottom: .45em; }
.hero h1 em { display: block; color: var(--gold); }
.lede { font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); color: var(--paper-muted); max-width: 36rem; margin-bottom: 1.4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero .button { background: var(--gold); color: var(--ink); }
.hero .button--ghost { background: transparent; color: var(--paper); border-color: rgb(243 239 231 / .5); }
.hero .button--ghost:hover { border-color: var(--paper); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; align-self: end; margin-bottom: 0; }
/* whole phones, nothing cut at the hero's bottom edge */
.phones img { width: 100%; border-radius: 18px; border: 1px solid rgb(255 255 255 / .18); box-shadow: 0 10px 40px rgb(0 0 0 / .45); }

/* ---- index: cards, one per app, in its own colours ---- */
.apps { border-top: 1px solid var(--line); }
.group { padding: 44px 0 8px; }
.group:last-child { padding-bottom: 56px; }
.group-head { max-width: 40rem; margin-bottom: 22px; }
.group-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }
/* one row per group: the column count follows the card count (cards--N), so no group leaves a hole */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cards--1 .card { max-width: 440px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-radius, 18px); overflow: hidden;
  background: var(--r-bg); color: var(--r-text); box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 10px 30px rgb(0 0 0 / .08);
}
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-link:focus-visible { outline-offset: -4px; }
.card-shot { display: flex; justify-content: center; aspect-ratio: 5 / 4; background: var(--r-stage); padding: 22px 22px 0; overflow: hidden; }
.card-shot img { width: 60%; height: auto; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px var(--r-edge), 0 14px 30px rgb(0 0 0 / .25); }
/* a landscape game screen sits centred in the same 5:4 stage, so every card in a row lines up */
.card--land .card-shot { align-items: center; padding: 22px 12px; }
.card--land .card-shot img { width: 100%; border-radius: 10px; }
.card-text { display: flex; align-items: center; gap: 14px; padding: 16px 18px 6px; }
.card-text strong { display: block; font: 600 1.3rem/1.15 var(--display); }
.card-text em { display: block; font: 400 .95rem/1.3 var(--sans); color: var(--r-muted); margin-top: 2px; }
.card-text .icon { width: 52px; height: 52px; flex: none; }
.card-text .mono { font-size: 1.1rem; }
.card-note { display: block; margin-top: 6px; font-size: .85rem; line-height: 1.3; color: var(--r-muted); }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 14px; margin-top: auto; padding: 0 18px 8px; font-size: .92rem; }
.card-status { display: inline-flex; align-items: center; min-height: 44px; color: var(--r-muted); }
.card-status::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--r-accent); }
.card-priv { display: inline-flex; align-items: center; min-height: 44px; color: var(--r-muted); }
.card-priv:hover { color: var(--r-text); }

/* ---- app page: hero ---- */
.subnav { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; text-decoration: none; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); border-color: var(--text); }
.hero-sec { position: relative; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .6; }
.hero-sec--art::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--r-bg) 68%, transparent), var(--r-bg) 85%); }
.hero2 { position: relative; z-index: 1; display: grid; gap: 22px; padding: 40px 0 36px; }
.hero-icon { display: inline-block; align-self: start; }
.hero2-main .kind { margin-bottom: .3em; }
.tag { font-size: clamp(1.15rem, .5vw + 1rem, 1.4rem); color: var(--muted); max-width: 38rem; margin-bottom: 1.1em; }
.unofficial { margin: -.6em 0 1.1em; max-width: 38rem; font-size: .95rem; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 16px; border-radius: 999px; background: var(--r-stage); font-weight: 600; }
.avail a { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.avail-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; }
.chip--note { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

/* ---- app page: screens ---- */
.screens { padding: 8px 0 44px; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip figure { margin: 0; display: grid; gap: 10px; }
.strip img { width: 100%; border-radius: 18px; box-shadow: 0 0 0 1px var(--r-edge), 0 16px 40px rgb(0 0 0 / .18); }
.strip.land img { border-radius: 12px; }
.strip figcaption { color: var(--muted); font-size: .92rem; line-height: 1.4; padding: 0 4px; }
.screens--land .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screens--land .strip li:first-child { grid-column: 1 / -1; }
.clip { margin: 24px 0 0; }
.clip video { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--r-edge); background: #000; }
.clip-note { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

/* ---- app page: what it does ---- */
.why { background: var(--r-stage); padding: 48px 0; }
.why-in { display: grid; gap: 32px; }
.about p { font-size: 1.1rem; max-width: 38rem; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: ben; }
.ben { counter-increment: ben; display: grid; grid-template-columns: 3rem 1fr; gap: 0 14px; padding: 18px 20px; border-radius: 14px; background: var(--r-bg); box-shadow: 0 1px 0 rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06); }
.ben::before { content: counter(ben, decimal-leading-zero); grid-row: 1 / 3; font: 600 2rem/1 var(--display); color: var(--accent); padding-top: 2px; }
.ben h3 { margin: 0 0 .25em; font-size: 1.2rem; }
.ben p { margin: 0; color: var(--muted); }
.allfeats { grid-column: 1 / -1; }
.allfeats summary, .faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 0; font: 600 1.1rem/1.3 var(--sans); }
.allfeats summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.allfeats summary::after, .faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font: 400 1.3rem/1 var(--sans); }
details[open] > summary::after { content: "\2212"; }
.allfeats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feats { margin: 4px 0 18px; padding: 0 0 0 1.2em; display: grid; gap: 8px; max-width: 46rem; }

/* ---- app page: parent box, safe use, details ---- */
.box { padding: 48px 0 8px; }
.box-card { padding: 28px 22px; border-radius: 18px; background: var(--r-bg); box-shadow: inset 0 0 0 1px var(--line); }
.box--health .box-card { border-left: 6px solid var(--accent); }
.box-lead { font-size: 1.1rem; font-weight: 600; max-width: 40rem; }
.rows { margin: 0; display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: minmax(7rem, 1fr) 2.2fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; color: var(--muted); }
.help-h { margin: 28px 0 10px; font-size: 1.1rem; }
.helplines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.helpline { display: grid; gap: 2px; min-height: 44px; padding: 14px 16px; border-radius: 12px; background: var(--r-stage); text-decoration: none; }
.helpline strong { font: 600 1.5rem/1.1 var(--display); color: var(--accent); }
.helpline span { color: var(--muted); font-size: .95rem; }

/* ---- app page: privacy, questions, more ---- */
.privacy { padding: 48px 0 8px; }
.privacy p { font-size: 1.1rem; }
.faq { padding: 40px 0 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 40rem; }
.more { padding: 48px 0 56px; }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.more-card { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 14px 16px; border-radius: var(--r-radius, 14px); background: var(--r-bg); color: var(--r-text); text-decoration: none; box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 8px 22px rgb(0 0 0 / .08); }
.more-card .icon { width: 52px; height: 52px; flex: none; }
.more-card strong { display: block; font: 600 1.15rem/1.15 var(--display); }
.more-card em { display: block; font: 400 .9rem/1.3 var(--sans); color: var(--r-muted); }
.all-apps { margin: 20px 0 0; }
.all-apps a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---- privacy policy pages ---- */
.policy { width: min(100% - 32px, 42rem); margin: 32px auto 8px; }
.policy h1 { font-size: clamp(1.9rem, 2vw + 1.2rem, 2.8rem); }
.policy h2 { font-size: 1.35rem; margin-top: 1.6em; }
.policy ul, .policy ol { padding-left: 1.2em; }
.policy li { margin-bottom: .4em; }
main > p:last-child { width: min(100% - 32px, 42rem); margin: 24px auto 48px; }
main > p:last-child a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---- wider screens ---- */
@media (min-width: 720px) {
  .top { position: sticky; top: 0; z-index: 5; }
  .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding-top: 64px; align-items: end; }
  .phones { gap: 14px; }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
  .hero2 { grid-template-columns: auto 1fr; gap: 28px; padding: 56px 0 44px; align-items: start; }
  .hero-icon { margin-top: 6px; }
  .why-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .about { position: sticky; top: 120px; align-self: start; }
  .box-card { padding: 36px 40px; }
}
@media (min-width: 520px) and (max-width: 719px) {
  .cards--4, .cards--3, .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 18px; margin: 0 -16px; scrollbar-width: thin; }
  .strip li { flex: 0 0 68%; scroll-snap-align: center; }
  .strip.land li { flex: 0 0 88%; }
  .strip li:last-child { margin-right: 16px; }
}

/* ---- motion: only when the visitor has not asked for less ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .home, .chip, .card-shot img, .more-card, .card, .icon, .subnav a { transition: translate .35s var(--ease), box-shadow .35s var(--ease), border-color .2s, color .2s, filter .2s; }
  .card:hover { translate: 0 -4px; box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 18px 40px rgb(0 0 0 / .14); }
  .card:hover .card-shot img { translate: 0 -10px; }
  .more-card:hover { translate: 0 -3px; }
  .hero-copy > * { animation: rise .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .phones img { animation: rise-tall .9s var(--ease) both; }
  .phones img:nth-child(1) { animation-delay: .25s; }
  .phones img:nth-child(2) { animation-delay: .35s; }
  .phones img:nth-child(3) { animation-delay: .45s; }
  .hero2 > * { animation: rise .6s var(--ease) both; }
  .hero2 > :nth-child(2) { animation-delay: .1s; }
  .strip li { animation: rise .7s var(--ease) both; }
  .strip li:nth-child(2) { animation-delay: .12s; }
  .strip li:nth-child(3) { animation-delay: .24s; }
  .avail-dot { animation: pulse 2.4s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .card, .ben, .promise-list li, .more-card { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-tall { from { opacity: 0; translate: 0 60px; } }
@keyframes fade-up { from { opacity: 0; translate: 0 24px; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 12%, transparent); } }
