/* kolumi.app: one stylesheet for all pages.
   Night is the grown-ups' world of the app, cream is the kids' room,
   bedtime blue is the moment in between. */

@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-800.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-600.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-500.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --night: #0b0e14;
  --night-deep: #07090e;
  --night-2: #12161d;
  --night-3: #191d24;
  --blue: #00c3cb;
  --blue-hover: #2fd6dd;
  --blue-ink: #00282b;
  --cream: #f7f5ec;
  --cream-2: #efeadf;
  --cream-3: #e6dfcf;
  --ink: #322d29;
  --ink-muted: #6d655e;
  --moss: #3d7f43;
  --moss-deep: #2f6b35;
  --moss-soft: #73c076;
  --bedtime: #0f1630;
  --bedtime-2: #18213f;
  --bedtime-text: #e7e8f5;
  --bedtime-muted: #a6abc9;
  --moon: #f3e3a2;
  --amber: #e99355;

  /* theme (night by default) */
  --bg: var(--night);
  --bg-2: var(--night-2);
  --bg-3: var(--night-3);
  --fg: #f1f3f6;
  --fg-2: #cfd5de;
  --muted: #a3a8b0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --link: var(--blue);
  --focus: var(--blue);
  --header-bg: rgba(11, 14, 20, 0.82);
  --code-bg: #07090e;
  --code-fg: #dfe5ec;
  --note-bg: rgba(0, 195, 203, 0.08);
  --warn-bg: rgba(233, 147, 85, 0.1);
  --warn-line: #e99355;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 18px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg: var(--cream);
    --bg-2: var(--cream-2);
    --bg-3: var(--cream-3);
    --fg: var(--ink);
    --fg-2: #4a433d;
    --muted: var(--ink-muted);
    --line: rgba(50, 45, 41, 0.13);
    --line-strong: rgba(50, 45, 41, 0.3);
    --link: #00737a;
    --focus: #00737a;
    --header-bg: rgba(247, 245, 236, 0.86);
    --note-bg: rgba(0, 115, 122, 0.07);
    --warn-bg: rgba(233, 147, 85, 0.13);
    --warn-line: #b8662c;
    color-scheme: light;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
@media (max-width: 480px) { h1, h2 { hyphens: auto; -webkit-hyphens: auto; } }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 600; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
:not(pre) > code {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.06em 0.36em;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--blue); color: var(--blue-ink); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }
main:focus { outline: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 999px; border: 0;
  background: var(--blue); color: var(--blue-ink);
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 2.4rem; padding: 0.45rem 1rem; font-size: 0.94rem; }
.btn-quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.06); }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 11.5rem; min-height: 3.6rem; padding: 0.55rem 1.3rem 0.6rem;
  border-radius: 14px; background: #f1f3f6; color: #0b0e14; text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.store:hover { background: #ffffff; transform: translateY(-1px); }
@media (max-width: 520px) {
  .stores li { flex: 1 1 9rem; }
  .store { min-width: 0; width: 100%; padding-inline: 1rem; }
  .store span { font-size: 1.18rem; }
}
.store small { font-size: 0.78rem; font-weight: 600; color: #3b4048; line-height: 1.2; }
.store span { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; line-height: 1.1; letter-spacing: -0.01em; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.site-nav a { color: var(--fg-2); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.5rem 0.75rem; border-radius: 10px; }
.site-nav a:hover { color: var(--fg); background: rgba(127, 127, 127, 0.12); }
.site-nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }
.site-nav .lang-switch { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 0.3rem 0.8rem; margin-left: 0.35rem; font-size: 0.9rem; }
.site-nav .btn { color: var(--blue-ink); margin-left: 0.35rem; }
.site-nav .btn:hover { background: var(--blue-hover); color: var(--blue-ink); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; min-height: 2.6rem; padding: 0.4rem 1rem;
    border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--fg);
    font: 600 0.95rem var(--font-text); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 0.75rem var(--pad) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--link); }
  .site-nav .lang-switch, .site-nav .btn { margin: 0.5rem 0 0; align-self: flex-start; }
  html.no-js .site-nav { display: flex; position: static; box-shadow: none; padding-inline: 0; }
}

.lang-hint { background: var(--blue); color: var(--blue-ink); }
.lang-hint-in { display: flex; align-items: center; gap: 0.9rem; min-height: 3rem; padding-block: 0.4rem; }
.lang-hint p { margin: 0; font-weight: 600; }
.lang-hint .btn { background: var(--blue-ink); color: #e9fbfc; min-height: 2.1rem; white-space: nowrap; }
@media (max-width: 560px) {
  .lang-hint-in { gap: 0.6rem; padding-block: 0.5rem; }
  .lang-hint p { font-size: 0.92rem; line-height: 1.3; }
  .lang-hint .btn { padding: 0.35rem 0.8rem; font-size: 0.88rem; }
  .hint-close { width: 2rem; height: 2rem; flex: none; }
}
.lang-hint .btn:hover { background: #003a3e; }
.hint-close { margin-left: auto; background: transparent; border: 0; color: var(--blue-ink); font-size: 1.6rem; line-height: 1; width: 2.4rem; height: 2.4rem; border-radius: 50%; cursor: pointer; }
.hint-close:hover { background: rgba(0, 40, 43, 0.12); }

/* ---------- footer ---------- */

.site-footer { background: var(--night-deep); color: #cfd5de; border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 0; }
[data-theme="auto"] .site-footer { margin-top: 4rem; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem 2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand .brand { color: #f1f3f6; margin-bottom: 0.9rem; }
.footer-brand p { color: #a3a8b0; max-width: 34ch; margin-bottom: 0.6rem; }
.site-footer a { color: #cfd5de; }
.site-footer a:hover { color: #ffffff; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h2 { font-family: var(--font-text); font-size: 0.95rem; font-weight: 600; color: #f1f3f6; letter-spacing: 0; margin-bottom: 0.3rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 1.5rem; color: #8b9099; font-size: 0.92rem; }
.footer-small p { margin-bottom: 0.35rem; }
@media (max-width: 700px) {
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- landing: sections ---------- */

.section { padding-block: clamp(4rem, 8vw, 6.5rem); position: relative; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; max-width: 17ch; }
.section .intro { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--fg-2); max-width: 58ch; margin-top: 1.4rem; }
.section .intro + .intro { margin-top: 0.4rem; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip > :first-child { order: 2; }
.split.even { grid-template-columns: 1fr 1fr; }
.split > *, .kids-grid > *, .ways-grid > *, .download-in > *, .privacy-head > * { min-width: 0; }
@media (max-width: 900px) {
  .split, .split.flip, .split.even { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

/* feature lists: a lead-in in bold, then the sentence */
.facts { margin: 2.2rem 0 0; display: grid; gap: 1.35rem 2.5rem; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .facts.two { grid-template-columns: 1fr; } }
.facts dt { font-weight: 600; font-size: 1.08rem; color: var(--fg); margin-bottom: 0.2rem; }
.facts dd { margin: 0; color: var(--fg-2); max-width: 46ch; }
.needs { margin-top: 2.2rem; font-size: 0.98rem; color: var(--muted); max-width: 60ch; }

/* screenshots: shown as phone screens, no fake device frame */
.screen {
  border-radius: clamp(22px, 3.2vw, 34px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 7px #05070b, 0 0 0 8px rgba(255, 255, 255, 0.1), 0 40px 70px -30px rgba(0, 0, 0, 0.85);
  width: 100%; max-width: 280px; background: #000;
}
.screens { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 3vw, 2.4rem); }
.screens .screen:nth-child(2) { margin-top: clamp(2.5rem, 7vw, 5.5rem); }
.screens .screen { width: calc(50% - 1.2rem); }
figure { margin: 0; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 1.1rem; text-align: center; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 75% 70% at 82% -8%, #0b4a5a 0%, rgba(12, 26, 42, 0.9) 48%, rgba(11, 14, 20, 0) 78%),
    var(--night);
  overflow: hidden;
}
.hero h1 {
  font-weight: 800; font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em;
  max-width: 11.5em;
}
.hero-lead { font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.55; color: var(--fg-2); max-width: 50ch; margin: 1.5rem 0 2rem; }
.hero-note { margin: 1.3rem 0 0; color: var(--muted); font-size: 0.98rem; }
.hero-note a { color: var(--fg-2); }

.shelf {
  --board: clamp(12px, 1.4vw, 18px);
  --below: clamp(3rem, 6vw, 4.5rem);
  --fox-w: clamp(15rem, 23vw, 19.5rem);
  position: relative; margin-top: clamp(2.6rem, 5vw, 3.6rem); padding-bottom: var(--below);
}
.shelf-items { display: flex; align-items: flex-end; gap: clamp(0.6rem, 1.6vw, 1.4rem); position: relative; z-index: 2; padding-inline: clamp(0.4rem, 2vw, 1.6rem); }
.shelf .cover {
  width: clamp(5.4rem, 12vw, 10rem); aspect-ratio: 1; border-radius: clamp(10px, 1.4vw, 16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 22px 30px -16px rgba(0, 0, 0, 0.9);
  flex: none;
}
.shelf .fox { width: clamp(7.5rem, 30vw, 11rem); margin-left: auto; margin-bottom: -0.45rem; flex: none; position: relative; z-index: 3; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45)); }
.shelf-board {
  position: relative; z-index: 1; height: var(--board); border-radius: 999px;
  background: linear-gradient(#24343e, #17222a);
  box-shadow: 0 2px 0 0 rgba(0, 195, 203, 0.55) inset, 0 28px 40px -12px rgba(0, 0, 0, 0.9);
}
.shelf-board::after { /* soft light on the wall behind the shelf */
  content: ""; position: absolute; inset: auto 8% 100% 8%; height: 9rem; z-index: -1;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(0, 195, 203, 0.14), transparent 70%);
}
@media (min-width: 900px) {
  /* the fox sits on the right end of the shelf, next to the text */
  .shelf .fox { position: absolute; right: clamp(0.5rem, 3vw, 2.5rem); bottom: -0.55rem; width: var(--fox-w); margin: 0; }
  .shelf-items { padding-right: calc(var(--fox-w) + 3.5rem); }
}
@media (max-width: 620px) {
  .shelf .cover:nth-child(n + 4) { display: none; }
  .shelf-items { gap: 2.5vw; padding-inline: 0.3rem; }
  .shelf .cover { width: 17.5vw; }
  .shelf .fox { width: 30vw; }
}
@media (prefers-reduced-motion: no-preference) {
  .shelf .cover { animation: drop 0.75s cubic-bezier(0.25, 0.9, 0.3, 1.18) both; }
  .shelf .cover:nth-child(1) { animation-delay: 0.1s; }
  .shelf .cover:nth-child(2) { animation-delay: 0.22s; }
  .shelf .cover:nth-child(3) { animation-delay: 0.34s; }
  .shelf .cover:nth-child(4) { animation-delay: 0.46s; }
  .shelf .cover:nth-child(5) { animation-delay: 0.58s; }
  .shelf .fox { animation: hop 0.9s cubic-bezier(0.3, 0.8, 0.3, 1.1) 0.82s both; }
}
@keyframes drop {
  0% { transform: translateY(-3.2rem); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes hop {
  0% { transform: translateY(1.6rem) scale(0.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ---------- two ways ---------- */

.ways { background: var(--night); }
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3.2rem; border-top: 1px solid var(--line); }
.way { padding: 2.4rem 2.6rem 0.5rem 0; }
.way + .way { padding: 2.4rem 0 0.5rem 2.6rem; border-left: 1px solid var(--line); }
.way h3 { font-size: 1.65rem; margin: 1.6rem 0 0.8rem; }
.way p { color: var(--fg-2); max-width: 48ch; }
.way .need { color: var(--muted); font-size: 0.97rem; }
.diagram { width: 100%; max-width: 30rem; height: auto; }
.diagram text { font-family: var(--font-text); font-size: 15px; font-weight: 600; fill: #f1f3f6; }
.diagram .sub { font-weight: 400; fill: #a3a8b0; font-size: 13px; }
.diagram .node { fill: #191d24; stroke: rgba(255, 255, 255, 0.16); }
.diagram .node.app { fill: #00c3cb; stroke: none; }
.diagram .node.server { fill: #0d3a40; stroke: #00c3cb; }
.diagram .app-label { fill: #00282b; }
.diagram .wire { stroke: rgba(0, 195, 203, 0.6); stroke-width: 2; fill: none; stroke-dasharray: 5 5; }
@media (max-width: 820px) {
  .ways-grid { grid-template-columns: 1fr; }
  .way, .way + .way { padding: 2.2rem 0 1rem; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line); }
}

/* ---------- listening ---------- */

.listen { background: linear-gradient(var(--night), #0d1119); }

/* ---------- kids: the light room ---------- */

.kids { background: var(--cream); color: var(--ink); --fg: var(--ink); --fg-2: #4a433d; --muted: var(--ink-muted); --line: rgba(50, 45, 41, 0.13); --link: var(--moss-deep); --focus: var(--moss-deep); color-scheme: light; }
.kids .section-in { position: relative; }
.kids .screen { box-shadow: 0 0 0 1px rgba(50, 45, 41, 0.18), 0 0 0 7px #fff, 0 0 0 8px rgba(50, 45, 41, 0.12), 0 40px 60px -32px rgba(60, 45, 30, 0.45); }
.kids h2 { color: var(--ink); }
.animals { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.animals li { width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.animals img { width: 86%; height: 86%; object-fit: contain; margin-top: 18%; }
.animals .c-amber { background: #e99355; } .animals .c-moss { background: #73c076; } .animals .c-sky { background: #00c3cb; }
.animals .c-berry { background: #f28881; } .animals .c-plum { background: #b897f0; } .animals .c-sand { background: #dbcbb9; }
.animals .c-rose { background: #d779ba; } .animals .c-slate { background: #9aa7b4; }
.animals-note { font-size: 0.98rem; color: var(--ink-muted); margin-top: 0.9rem; }
.kids .needs { color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.kids-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.kids-grid .screen { justify-self: end; margin-top: 0.5rem; rotate: 2deg; }
@media (max-width: 860px) {
  .kids-grid { grid-template-columns: 1fr; }
  .kids-grid .screen { justify-self: center; rotate: 0deg; max-width: 260px; }
}

/* ---------- bedtime ---------- */

.bedtime {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 12%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 63% 40%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 22%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1px 1px at 92% 66%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(180deg, var(--bedtime) 0%, #0c1226 100%);
  color: var(--bedtime-text);
  --fg: var(--bedtime-text); --fg-2: #d3d6ea; --muted: var(--bedtime-muted); --line: rgba(231, 232, 245, 0.12);
}
.bedtime .goodnight { border-radius: 28px; width: 100%; max-width: 30rem; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(231, 232, 245, 0.1); }
.bedtime .facts dt::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--moon); margin-right: 0.6rem; vertical-align: 0.12em; box-shadow: 0 0 12px rgba(243, 227, 162, 0.6); }

/* ---------- family ---------- */

.family { background: var(--night); }
.who-card {
  background: linear-gradient(160deg, #141a22, #0f1319); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}
.who-card .who-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; margin: 0 0 0.3rem; }
.who-card .who-sub { color: var(--muted); margin: 0; font-size: 0.97rem; }
.who-card .who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; margin-top: 1.8rem; }
.h-sub { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 0 0 0.6rem; }
.h-sub:not(:first-child) { margin-top: 2.2rem; }
.together p { color: var(--fg-2); max-width: 52ch; }
.who { display: flex; gap: clamp(1rem, 3vw, 2rem); margin: 2.4rem 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.who li { text-align: center; }
.who li { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; font-weight: 600; }
.who .av { width: clamp(4.4rem, 8vw, 5.6rem); height: clamp(4.4rem, 8vw, 5.6rem); border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.who .av img { width: 86%; height: 86%; object-fit: contain; margin-top: 18%; }
.who small { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-top: -0.4rem; }
.who .c-amber { background: #e99355; } .who .c-plum { background: #b897f0; } .who .c-sky { background: #00c3cb; } .who .c-moss { background: #73c076; }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.devices h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.devices p { color: var(--fg-2); margin: 0; }
@media (max-width: 820px) { .devices { grid-template-columns: 1fr; gap: 1.4rem; } }
.together { margin-top: clamp(4rem, 8vw, 6rem); }

/* ---------- speakers ---------- */

.speakers { background: linear-gradient(#0d1119, var(--night)); }
.speaker-card { background: var(--night-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.speaker-card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.speaker-card p { color: var(--fg-2); }
.speaker-list { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.speaker-list li { padding-left: 1.4rem; position: relative; color: var(--fg-2); }
.speaker-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue); }
.speaker-list strong { color: var(--fg); }

/* ---------- privacy ---------- */

.privacy { background: var(--night-deep); }
.privacy h2 { max-width: 14ch; }
.privacy-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.privacy-head img { width: clamp(8rem, 15vw, 12rem); margin-bottom: -0.5rem; }
@media (max-width: 640px) { .privacy-head { grid-template-columns: 1fr; } .privacy-head img { display: none; } }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.promise div { border-top: 2px solid var(--blue); padding-top: 1.1rem; }
.promise h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.promise p { color: var(--fg-2); margin: 0; }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- server teaser ---------- */

.server { background: var(--night); }
.server .code { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 2rem; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.93rem; color: var(--fg-2); }

/* ---------- FAQ ---------- */

.faq { background: var(--night); padding-top: 0; }
.faq-list { margin-top: 2.4rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 3rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.6rem; top: 50%; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--fg-2); max-width: 64ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- download ---------- */

.download { background: radial-gradient(ellipse 70% 90% at 20% 110%, #0b4a5a 0%, rgba(11, 14, 20, 0) 70%), var(--night); }
.download-in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.download .fox { width: clamp(9rem, 18vw, 14rem); }
.download .small { color: var(--muted); font-size: 0.95rem; margin-top: 1.4rem; }
@media (max-width: 700px) { .download-in { grid-template-columns: 1fr; } .download .fox { justify-self: start; } }

/* ---------- store chooser (the header button, opened by site.js) ---------- */

html.dialog-open { overflow: hidden; }
.get-app {
  width: min(32rem, calc(100% - 2rem)); max-width: none; max-height: calc(100% - 2rem);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 24px;
  background: radial-gradient(ellipse 75% 85% at 100% 0%, rgba(11, 74, 90, 0.85), rgba(18, 22, 29, 0) 72%), var(--night-2);
  color: var(--fg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.get-app:not([open]) { display: none; }
.get-app::backdrop { background: rgba(4, 6, 10, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.get-app-in { padding: 1.4rem 1.6rem 1.6rem; }
.get-app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.get-app h2 { font-size: clamp(1.75rem, 5vw, 2.15rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.get-app-close {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0 -0.6rem 0 auto;
  border: 0; border-radius: 50%; background: transparent; color: var(--fg-2); cursor: pointer;
}
.get-app-close:hover { background: rgba(127, 127, 127, 0.16); color: var(--fg); }
.get-app .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.get-app .store { width: 100%; min-width: 0; min-height: 4.1rem; padding-inline: 1.2rem; }
.get-app .store.quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.get-app .store.quiet small { color: var(--muted); }
.get-app .store.quiet:hover { background: rgba(127, 127, 127, 0.1); }
.get-app-note { margin: 1.3rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.get-app-note a { color: var(--fg-2); white-space: nowrap; }
@media (max-width: 560px) {
  /* a sheet along the bottom edge */
  .get-app { width: 100%; max-height: calc(100% - 2.5rem); margin: auto 0 0; border-width: 1px 0 0; border-radius: 24px 24px 0 0; }
  .get-app-in { padding: 1.2rem var(--pad) max(1.6rem, env(safe-area-inset-bottom)); }
  .get-app .stores { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: light) {
  [data-theme="auto"] .get-app { background: var(--cream); box-shadow: 0 40px 90px -30px rgba(40, 30, 20, 0.5); }
  /* light buttons vanish on cream: dark ones, like the store badges */
  [data-theme="auto"] .get-app .store:not(.quiet) { background: var(--night); color: #f1f3f6; }
  [data-theme="auto"] .get-app .store:not(.quiet):hover { background: var(--night-3); }
  [data-theme="auto"] .get-app .store:not(.quiet) small { color: #a3a8b0; }
}
@media (prefers-reduced-motion: no-preference) {
  .get-app[open] { animation: get-app-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  .get-app[open]::backdrop { animation: get-app-fade 0.28s ease both; }
}
@keyframes get-app-in { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes get-app-fade { from { opacity: 0; } }

/* ---------- code blocks ---------- */

.code { margin: 1.4rem 0 1.8rem; border-radius: 14px; background: var(--code-bg); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; color: var(--code-fg); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.35rem 0.5rem 0.35rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); min-height: 2.6rem; }
.code-label { font-family: var(--font-text); font-size: 0.86rem; color: #a3a8b0; }
.copy {
  font: 600 0.84rem var(--font-text); color: #cfd5de; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 0.3rem 0.75rem; cursor: pointer; min-height: 2rem;
}
.copy:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.copy.done { color: var(--blue); border-color: rgba(0, 195, 203, 0.5); }
html.no-js .copy { display: none; }
.code pre { margin: 0; padding: 1rem 1.1rem 1.1rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; tab-size: 2; }
.code pre code { font-size: inherit; background: none; border: 0; padding: 0; color: inherit; }

/* ---------- docs ---------- */

.docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 13rem; gap: clamp(2rem, 4vw, 3.5rem); padding-top: 2.5rem; align-items: start; }
.docs-side { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding-bottom: 2rem; scrollbar-width: thin; }
.docs-menu summary { display: none; }
.docs-side nav ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.docs-side .nav-group { font-family: var(--font-text); font-size: 0.86rem; font-weight: 600; color: var(--muted); margin: 0 0 0.35rem; letter-spacing: 0; }
.docs-side nav a { display: block; padding: 0.32rem 0.75rem; margin-left: -0.75rem; border-radius: 8px; color: var(--fg-2); text-decoration: none; font-size: 0.97rem; line-height: 1.35; }
.docs-side nav a:hover { color: var(--fg); background: rgba(127, 127, 127, 0.1); }
.docs-side nav a[aria-current="page"] { color: var(--fg); font-weight: 600; background: var(--note-bg); box-shadow: inset 3px 0 0 var(--link); }
.docs-main { min-width: 0; padding-bottom: 2rem; }
.docs-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: end;
  padding-bottom: 1.6rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line);
}
.docs-head h1 { grid-column: 1; grid-row: 1; font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.docs-head .lead { grid-column: 1; grid-row: 2; font-size: 1.18rem; color: var(--fg-2); margin: 0.9rem 0 0; max-width: 58ch; }
.docs-fox { grid-column: 2; grid-row: 1 / span 2; width: 7.5rem; height: auto; margin-bottom: -0.4rem; }
@media (max-width: 560px) {
  .docs-head .lead { grid-column: 1 / -1; font-size: 1.08rem; }
  .docs-fox { grid-row: 1; width: 4.6rem; align-self: end; }
}
.toc { position: sticky; top: 5.5rem; font-size: 0.92rem; padding-top: 0.5rem; }
.toc h2 { font-family: var(--font-text); font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.28rem 0 0.28rem 0.9rem; color: var(--fg-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--fg); }
.toc-mobile { display: none; margin: -0.6rem 0 2rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.2rem 1rem; }
.toc-mobile summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; }
.toc-mobile ul { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.toc-mobile li { margin: 0.25rem 0; }
@media (max-width: 1180px) {
  .docs { grid-template-columns: 14rem minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; padding-top: 1rem; gap: 1rem; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-menu { border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; }
  .docs-menu summary { display: block; cursor: pointer; font-weight: 600; padding: 0.8rem 0; }
  .docs-menu nav { padding: 0.3rem 0 0.4rem 0.75rem; }
}

/* prose: docs, legal, support */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); margin: 3rem 0 1rem; padding-top: 0.2rem; }
.prose h3 { font-size: 1.28rem; margin: 2.2rem 0 0.7rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.anchor { margin-left: 0.4rem; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity 0.15s; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose li > ul, .prose li > ol { margin: 0.35rem 0 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 0 0 1.1rem; }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--note-bg); color: var(--link); font-weight: 600; font-size: 0.92rem;
  box-shadow: inset 0 0 0 1.5px var(--link);
}
.prose dl { margin: 0 0 1.4rem; }
.prose dt { font-weight: 600; margin-top: 1rem; }
.prose dd { margin: 0.2rem 0 0; color: var(--fg-2); }
.prose blockquote { margin: 1.4rem 0; padding-left: 1.2rem; border-left: 3px solid var(--line-strong); color: var(--fg-2); }
.note, .warn { border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0 1.6rem; }
.note { background: var(--note-bg); border-left: 3px solid var(--link); }
.warn { background: var(--warn-bg); border-left: 3px solid var(--warn-line); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.note > strong:first-child, .warn > strong:first-child { display: block; margin-bottom: 0.25rem; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose thead th { font-weight: 600; background: var(--bg-2); font-size: 0.88rem; color: var(--fg-2); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 400; white-space: nowrap; }
.prose table.env td:nth-child(2) { white-space: nowrap; }
.prose img.shot {
  width: 100%; max-width: 220px; margin: 0.4rem 0 1.8rem; border-radius: 26px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 26px 40px -24px rgba(0, 0, 0, 0.6);
}
@media (min-width: 700px) { .prose img.shot { float: right; margin: 0.4rem 0 1.5rem 2.2rem; } }
.prose h2 { clear: both; }
.prose .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 2rem; padding: 0; list-style: none; }
.prose .cards li { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; }
.prose .cards a { font-weight: 600; font-size: 1.05rem; }
.prose .cards p { margin: 0.3rem 0 0; color: var(--fg-2); font-size: 0.97rem; }
@media (max-width: 640px) { .prose .cards { grid-template-columns: 1fr; } }
.docs-feedback { margin-top: 3.5rem; color: var(--muted); font-size: 0.95rem; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.pn { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--fg); font-weight: 600; }
.pn span { font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.pn:hover { border-color: var(--link); }
.pn.next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .pn.next { grid-column: 1; } }

/* plain pages: support, connect, legal, 404 */
.page { padding-top: 2.5rem; padding-bottom: 2rem; }
.page .prose { max-width: 72ch; }
.page-head { max-width: 72ch; }
.legal section { max-width: 72ch; }
.legal section + section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.7rem; }
.legal h2.doc-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 1rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.legal .switch { color: var(--muted); }
.notfound { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; padding-block: 4rem 6rem; }
.notfound img { width: 13rem; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.notfound p { color: var(--fg-2); max-width: 46ch; }
.notfound .de { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .notfound { grid-template-columns: 1fr; } .notfound img { width: 9rem; } }

/* ---------- motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root, [data-theme] { --bg: #fff; --bg-2: #f3f3f3; --bg-3: #f3f3f3; --fg: #000; --fg-2: #222; --muted: #444; --line: #ccc; --link: #000; --code-bg: #f6f6f6; --code-fg: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .docs-side, .toc, .toc-mobile, .prevnext, .docs-feedback, .copy, .lang-hint, .skip, .anchor, .docs-fox, .get-app { display: none !important; }
  .docs { display: block; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .prose { max-width: none; }
  .code { border: 1px solid #ccc; }
  .code-head { border-bottom: 1px solid #ddd; }
  .code pre { white-space: pre-wrap; word-break: break-word; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  h2, h3 { break-after: avoid; }
  pre, table, .note, .warn { break-inside: avoid; }
}
.download .stores { margin-top: 2rem; }

/* docs pages get a wider frame, header and footer follow it */
.page-docs .wrap { max-width: 1400px; }
