@font-face {
  font-family: "NoBee Title";
  src: url("/assets/title.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --yellow: #FFC400;
  --ink: #15161A;
  --text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
}

a { color: inherit; }

p { margin: 0; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Home */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--yellow);
  color: var(--ink);
  color-scheme: light;
}

.home main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero {
  padding: 40px 24px 0;
  text-align: center;
}

.bee {
  display: block;
  width: 104px;
  height: auto;
  margin: 0 auto 28px;
}

.home h1 {
  margin: 0;
  font-family: "NoBee Title", var(--text);
  font-size: min(11vw, 96px);
  font-weight: 900;
  font-feature-settings: "palt";
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.line {
  margin-top: 16px;
  font-size: clamp(16px, 4.4vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: balance;
}

.cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 36px;
}

.badge { display: inline-block; }

.badge img {
  display: block;
  width: auto;
  height: 52px;
}

.block {
  width: min(100%, 320px);
  padding: 15px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: min(17px, 4.8vw);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.quiet {
  padding: 6px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wechat {
  max-width: 22em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-wrap: balance;
}

.scene {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: auto auto 0;
  padding-top: 32px;
}

.scene img {
  display: block;
  width: 100%;
  height: auto;
}

.home footer {
  padding: 32px 24px calc(36px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.home footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 20px;
  font-size: 15px;
}

.legal {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

/* A touch screen without hover cannot install the Mac app: hand the link to the computer. */
.on-phone { display: none; }

@media (hover: none) and (pointer: coarse) {
  .on-computer { display: none; }
  .on-phone { display: grid; }
}

/* Keep this query the same as the <source> in the home pages. */
@media (min-width: 820px) {
  .hero {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: clamp(56px, 9vh, 96px) 64px 0;
    text-align: left;
  }

  .bee {
    flex: none;
    width: clamp(150px, 17vw, 232px);
    margin: 0;
  }

  .home h1 {
    font-size: min(7.2vw, 96px);
    white-space: nowrap;
  }

  .line {
    margin-top: 20px;
    font-size: clamp(20px, 2.1vw, 27px);
    line-height: 1.55;
  }

  .cta {
    justify-items: start;
    margin-top: 44px;
  }

  .quiet { margin-left: -12px; }

  .scene { padding-top: clamp(16px, 3vw, 40px); }

  .home footer {
    padding: 44px max(64px, calc((100vw - 1152px) / 2)) 48px;
    text-align: left;
  }

  .home footer nav { justify-content: flex-start; }
}

/* Privacy */
.doc {
  --bg: #fff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #dcdce1;
  color-scheme: light dark;
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.75;
}

@media (prefers-color-scheme: dark) {
  .doc {
    --bg: #1e1e1e;
    --fg: #f5f5f7;
    --muted: #98989d;
    --line: #3a3a3c;
  }
}

.doc header {
  background: var(--yellow);
  color: var(--ink);
}

.doc header a,
.doc main,
.doc footer {
  max-width: 660px;
  margin-inline: auto;
}

.doc header a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.doc header img {
  width: 36px;
  height: auto;
}

.doc main { padding: 64px 24px 72px; }

.doc h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.effective {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

.doc p + p,
.doc ul + p { margin-top: 14px; }

.doc ul {
  margin: 0;
  padding-left: 22px;
}

.doc li + li { margin-top: 10px; }

.doc footer {
  padding: 28px 24px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.doc footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}

/* Not found */
.missing {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.mark {
  width: 160px;
  height: auto;
  margin-bottom: 16px;
}
