@font-face {
  font-family: "Inter";
  src: url("/assets/inter/InterVariable-latin.00c230c4a7.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-017F, U+0192, U+0218-021B, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+20BA, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/inter/InterVariable-cyrillic.4f74266b20.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #ffffff;
  --ink: #0b0b0c;
  --muted: #66666b;
  --line: #e6e6e8;
  --accent: #0a63e0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --ink: #f3f3f4;
    --muted: #9c9ca3;
    --line: #232326;
    --accent: #5a9dff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Scripts Inter does not cover: Inter keeps the Latin letters, the system font draws the rest. */
:lang(zh-Hans) body { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(zh-Hant) body { font-family: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
:lang(ja) body { font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) body { font-family: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; }
:lang(ar) body { font-family: "Inter", "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", system-ui, sans-serif; }
:lang(hi) body { font-family: "Inter", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; }
:is(:lang(zh-Hans), :lang(zh-Hant), :lang(ja), :lang(ko), :lang(ar), :lang(hi)) :not(.stats dd, .stats dd *) { letter-spacing: 0 !important; }
:lang(ar) h1, :lang(hi) h1 { line-height: 1.25; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(ja) h1, :lang(ko) h1 { line-height: 1.15; }
:lang(ja) h1, :lang(ja) .lead, :lang(ja) .stats .note { word-break: auto-phrase; }
:lang(ar) .lead, :lang(hi) .lead, :lang(ja) .lead, :lang(zh-Hans) .lead, :lang(zh-Hant) .lead, :lang(ko) .lead { line-height: 1.6; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand { white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav { display: flex; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--ink); }

/* Type */
h1 {
  font-size: clamp(44px, 9vw, 96px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 48px 0 8px;
}
p { margin: 0 0 16px; }
.lead {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 24px;
}
.muted { color: var(--muted); }

/* Home */
.hero { padding: 72px 0 56px; }
.badge { display: inline-block; margin-top: 36px; line-height: 0; }
.badge img { height: 54px; width: auto; }

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 24px 0 96px;
  padding: 0;
  list-style: none;
}
.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9% / 4.2%;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}


/* App Store figures: number, label under it, one source line. Units (# /5 +) smaller and grey. */
.stats { padding: 8px 0 72px; }
.stats dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; }
.stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 0 56px;
  border-inline-start: 1px solid var(--line);
}
.stats div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stats dd {
  margin: 0;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .stats dd { text-align: right; }
.stats .u { font-size: 0.45em; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); margin: 0 0.06em; }
.stats dt { color: var(--muted); font-size: 15px; line-height: 1.35; margin-top: 14px; }
.stats .note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 36px 0 0; max-width: 80ch; }


/* Home sections under the screenshots: one rhythm, heading then content. */
.block { padding: 88px 0; border-top: 1px solid var(--line); }
.block > h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 48px; }
.block > h2:has(+ .when) { margin-bottom: 0; }
.block > .when { color: var(--muted); font-size: 17px; margin: 10px 0 40px; }
.block p { margin: 0; }

.features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.features svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.features h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 6px; }
.features p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.tag { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 0; margin-inline-start: 8px; white-space: nowrap; }

.upcoming .summary { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; letter-spacing: -0.015em; max-width: 34ch; }
.upcoming .summary + p { margin-top: 24px; }

.premium .price { font-size: clamp(26px, 3.2vw, 36px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.premium .benefits { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; max-width: 840px; }
.premium .benefits li { color: var(--muted); line-height: 1.55; }
.premium .benefits strong { color: var(--ink); font-weight: 600; }

.faq .qa { max-width: 720px; padding: 0 0 28px; }
.faq .qa + .qa { padding-top: 28px; border-top: 1px solid var(--line); }
.faq h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 0 0 6px; }
.faq .qa p { color: var(--muted); line-height: 1.6; }
.block.faq { padding-bottom: 112px; }

/* Text pages */
.page { padding: 56px 0 96px; max-width: 680px; }
.page h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 16px; }
.page .meta { color: var(--muted); margin-bottom: 40px; }
.page ul { padding-left: 0; list-style: none; margin: 0 0 16px; }
.page li { margin-bottom: 8px; }

/* Changelog */
.release {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.release h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.release .when { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.release ul { list-style: none; padding: 0; margin: 0; }
.release li { margin-bottom: 8px; }
.release li:last-child { margin-bottom: 0; }
.release.next h2 { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 48px;
}
footer nav { flex-wrap: wrap; gap: 8px 24px; }
footer .langs { flex-basis: 100%; gap: 4px 16px; font-size: 13px; }
footer .langs a[aria-current] { color: var(--ink); }

@media (max-width: 960px) {
  .features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  header .wrap { padding-top: 20px; padding-bottom: 20px; }
  nav { gap: 16px; }
  .hero { padding: 40px 0 40px; }
  .screens { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 64px; }
  .block { padding: 56px 0; }
  .block > h2 { font-size: 32px; margin-bottom: 32px; }
  .block > .when { margin: 8px 0 32px; }
  .features ul, .premium .benefits { grid-template-columns: 1fr; gap: 32px; }
  .premium .benefits { margin-top: 32px; }
  .stats dl { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .stats div {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0 14px;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .stats div:first-child { padding-inline-start: 0; }
  .stats dd { font-size: 52px; }
  .stats dt { margin: 0; text-align: end; }
  .stats .note { margin-top: 20px; }
  .block.faq { padding-bottom: 64px; }
  .page { padding: 32px 0 64px; }
  .release { grid-template-columns: 1fr; }
}
.page.wide { max-width: 820px; }
