@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #eef0f6;
  --ink: #1d2238;
  --muted: #566079;
  --card: #ffffff;
  --line: #dde1ec;
  --accent: #2f45c5;
  --tint: #1d2238;
  --on-tint: #ffffff;
  --on-tint-soft: rgba(255, 255, 255, 0.78);
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12152a; --ink: #eceef8; --muted: #a3aac4; --card: #1b1f38; --line: #2b3050; --accent: #8fa2ff; }
}

/* Per-app colour worlds: pages opt in with <body class="kitty"> or <body class="ang"> */
.kitty {
  --tint: linear-gradient(160deg, #ffe3cc 0%, #ffc9d6 100%);
  --on-tint: #4a2412;
  --on-tint-soft: #7a4a33;
  --accent: #b8500f;
}
.ang {
  --tint: linear-gradient(160deg, #c3122f 0%, #8a0a20 100%);
  --on-tint: #ffffff;
  --on-tint-soft: rgba(255, 255, 255, 0.8);
  --accent: #b30f2b;
}
@media (prefers-color-scheme: dark) {
  .kitty { --accent: #ffa566; }
  .ang { --accent: #ff8a9b; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hub ---------- */
.hub { max-width: 1040px; margin: 0 auto; padding: 56px 20px 40px; }
.hub h1 {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hub .lede { margin: 16px 0 48px; max-width: 44ch; color: var(--muted); font-size: 1.15rem; line-height: 1.5; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px; min-height: 420px;
  border-radius: 32px;
  background: var(--tint);
  color: var(--on-tint);
}
.tile .icon {
  display: block; width: 148px; height: 148px; margin-bottom: auto;
  border-radius: 28%;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.tile .icon:hover { transform: rotate(-4deg) scale(1.03); }
.tile .icon img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.tile h2 { margin: 32px 0 0; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.tile .zh { margin: 4px 0 0; font-size: 1.15rem; color: var(--on-tint-soft); }
.tile p.desc { margin: 12px 0 24px; max-width: 32ch; line-height: 1.5; color: var(--on-tint-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.3; text-decoration: none;
  border: 2px solid currentColor; color: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tile .btn.primary { background: var(--on-tint); border-color: var(--on-tint); }
.kitty .tile .btn.primary, .tile.kitty .btn.primary { color: #4a2412; background: #4a2412; color: #fff; border-color: #4a2412; }
.tile.ang .btn.primary { color: #8a0a20; }
.btn:hover { background: rgba(255, 255, 255, 0.18); }
.tile.kitty .btn:hover { background: rgba(74, 36, 18, 0.12); }
.tile .btn.primary:hover { opacity: 0.88; }

.foot { max-width: 1040px; margin: 0 auto; padding: 24px 20px 56px; color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- App + privacy pages ---------- */
.band { background: var(--tint); color: var(--on-tint); padding: 28px 0 44px; }
.band a { color: inherit; }
.band .crumbs { margin: 0 0 28px; font-size: 0.95rem; color: var(--on-tint-soft); }
.band .crumbs a { color: var(--on-tint); }
.band .id { display: flex; align-items: center; gap: 20px; }
.band .id img { width: 76px; height: 76px; border-radius: 28%; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5); flex: none; }
.band h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.band .meta, .band .tagline { margin: 14px 0 0; color: var(--on-tint-soft); font-size: 1rem; line-height: 1.5; }

main.wrap { padding-top: 32px; padding-bottom: 72px; }
main.wrap > p, main.wrap > ul { max-width: 62ch; }

.lang { display: flex; gap: 8px; margin: 0 0 24px; }
.lang a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 4px 16px;
}
.lang a:hover { border-color: var(--accent); color: var(--accent); }

section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 12px 28px 28px; margin: 0 0 24px;
  scroll-margin-top: 16px;
}
section h2 { margin: 28px 0 6px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
section p, section li { max-width: 66ch; }
section p { margin: 6px 0 0; }
section ul { margin: 8px 0 0; padding-left: 1.25em; }
section li + li { margin-top: 6px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.links .btn { color: var(--accent); }
.links .btn:hover { background: var(--card); }

@media (max-width: 520px) {
  .hub { padding-top: 40px; }
  .tile { min-height: 380px; padding: 24px; border-radius: 28px; }
  section { padding: 8px 20px 22px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile .icon { transition: none; }
  .tile .icon:hover { transform: none; }
}

/* ---------- Promo sections on app pages ---------- */
.promo { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.shots {
  display: flex; gap: 16px; margin: 0 -20px; padding: 32px 20px 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}
.shots:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 12px; }
.shots figure { margin: 0; flex: none; scroll-snap-align: start; }
.shots img {
  display: block; height: min(560px, 70vh); width: auto; aspect-ratio: 9 / 16;
  border-radius: 24px; border: 1px solid var(--line);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.35);
}
.promo h2 { margin: 48px 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.features { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.features div { padding: 18px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.features dd { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
.promo .links { margin: 40px 0 0; }
.promo .contact { margin: 20px 0 72px; color: var(--muted); }
@media (max-width: 520px) { .shots img { height: min(480px, 62vh); } }
