/* Leaflet's website. The palette, fonts and icons are the app's own
   (internal/theme in the app's repository). In the pictures of the app,
   u(n) is n points of the device they're drawn in: build.mjs turns it
   into calc(var(--u) * n). */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Figtree";
  src: url("/assets/Figtree.e506a5b028.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/SourceSerif4.437213d63a.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Songti SC", "Hiragino Mincho ProN", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans", sans-serif;

  --bg: #f7f7f3;
  --bg-tint: #eff2ea;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --line: #e2e4e8;
  --line-soft: #eceef1;
  --text: #16181d;
  --text-2: #3d424c;
  --muted: #5d636e;
  --faint: #8a909b;
  --ink: #16181d;
  --on-ink: #ffffff;

  --accent: #3446c9;
  --accent-soft: #eceefc;
  --accent-line: #c9d0f3;
  --accent-text: #2a3699;
  --leaf: #2e8b47;
  --leaf-bright: #b6e36a;
  --leaf-deep: #1f6b35;
  --leaf-text: #237a3c;
  --ok: #1e5a35;

  --rule: rgba(52, 70, 201, 0.075);
  --margin-line: rgba(226, 120, 120, 0.32);
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.06), 0 1px 1px rgba(16, 18, 22, 0.04);
  --shadow: 0 1px 2px rgba(16, 18, 22, 0.05), 0 8px 24px -8px rgba(16, 18, 22, 0.12);
  --shadow-lg: 0 2px 6px rgba(16, 18, 22, 0.06), 0 30px 80px -20px rgba(16, 18, 22, 0.28);

  /* The app's palette, for the pictures of it. */
  --m-ground: #f5f6f8;
  --m-sidebar: #f1f2f5;
  --m-surface: #ffffff;
  --m-border: #dde0e6;
  --m-divider: #e6e8ec;
  --m-text: #16181d;
  --m-muted: #565c67;
  --m-icon: #4a505b;
  --m-fill: rgba(118, 118, 128, 0.12);
  --m-accent: #3446c9;
  --m-accent-soft: #f1f3fe;
  --m-accent-line: #c9d0f3;
  --m-accent-text: #2a3699;
  --m-tag-bg: #fbebdd;
  --m-tag: #9a4a12;
  --m-chip: #f2f3f5;
  --m-ok: #1e7a4c;

  --spk-a: #3446c9;
  --spk-b: #1e7a4c;
  --spk-c: #b8500f;

  --radius: 18px;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --bg-tint: #12161a;
    --surface: #171a1f;
    --surface-2: #1b1e24;
    --line: #2a2e36;
    --line-soft: #22262d;
    --text: #e9ebef;
    --text-2: #c0c5ce;
    --muted: #9ea4af;
    --faint: #7c828d;
    --ink: #f2f3f5;
    --on-ink: #111317;

    --accent: #7d8bf0;
    --accent-soft: #1e2342;
    --accent-line: #3a4377;
    --accent-text: #bac3ff;
    --leaf-text: #8fd18a;
    --ok: #93d6aa;

    --rule: rgba(160, 172, 255, 0.06);
    --margin-line: rgba(226, 120, 120, 0.22);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.4), 0 40px 90px -20px rgba(0, 0, 0, 0.8);

    --m-ground: #101216;
    --m-sidebar: #16191e;
    --m-surface: #1b1e24;
    --m-border: #2e333c;
    --m-divider: #272b33;
    --m-text: #e9ebef;
    --m-muted: #9ea4af;
    --m-icon: #a9afba;
    --m-fill: rgba(118, 118, 128, 0.24);
    --m-accent: #4f5fd9;
    --m-accent-soft: #1e2342;
    --m-accent-line: #3a4377;
    --m-accent-text: #bac3ff;
    --m-tag-bg: #3a2a1c;
    --m-tag: #f2c493;
    --m-chip: #262a31;
    --m-ok: #93d6aa;

    --spk-a: #9aa6ff;
    --spk-b: #7fd3a1;
    --spk-c: #f0a46b;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(ja) {
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sys: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
:lang(zh) {
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Source Serif 4", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sys: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}
:not(pre) > code {
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  white-space: nowrap;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.42em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.i-sm {
  width: 0.9em;
  height: 0.9em;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.muted {
  color: var(--faint);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
}
a.btn:hover {
  transform: translateY(-1px);
}
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow);
}
.btn-line {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
a.btn-line:hover {
  box-shadow: var(--shadow);
}
.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 14.5px;
}
.btn-store {
  min-height: 56px;
  padding: 0 22px 0 18px;
  text-align: left;
}
.btn-store .i {
  width: 26px;
  height: 26px;
}
.btn-store > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.btn-store small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0.01em;
}
.btn-store b {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.btn.is-soon {
  cursor: default;
  background: color-mix(in srgb, var(--ink) 88%, var(--bg));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.is-scrolled {
  border-bottom-color: var(--line-soft);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}
.top-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.top-links a {
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.top-links a:hover {
  background: var(--line-soft);
  color: var(--text);
}
.top-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang {
  position: relative;
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary:hover,
.lang[open] summary {
  background: var(--line-soft);
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.lang li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.lang li a:hover {
  background: var(--surface-2);
}
.lang li a[aria-current] {
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  isolation: isolate;
}
/* Ruled paper, with the red margin line of the app's icon. */
.hero-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 40% at 18% 8%, rgba(127, 140, 255, 0.16), transparent 70%),
    radial-gradient(42% 46% at 86% 30%, rgba(182, 227, 106, 0.22), transparent 70%),
    linear-gradient(to right, transparent calc(8% - 1px), var(--margin-line) calc(8% - 1px), var(--margin-line) 8%, transparent 8%),
    repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
@media (prefers-color-scheme: dark) {
  .hero-paper {
    background:
      radial-gradient(48% 40% at 18% 8%, rgba(110, 124, 255, 0.18), transparent 70%),
      radial-gradient(42% 46% at 86% 30%, rgba(80, 170, 90, 0.16), transparent 70%),
      linear-gradient(to right, transparent calc(8% - 1px), var(--margin-line) calc(8% - 1px), var(--margin-line) 8%, transparent 8%),
      repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 20%, transparent);
}
.hero h1 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-optical-sizing: auto;
}
.hero h1 br {
  display: none;
}
@media (min-width: 700px) {
  .hero h1 br {
    display: inline;
  }
}
:lang(zh) .hero h1,
:lang(ja) .hero h1 {
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}
/* In Chinese and Japanese the title's own line breaks always hold, and
   words keep together where the browser knows where they end. */
:lang(zh) .hero h1 br,
:lang(ja) .hero h1 br {
  display: inline;
}
.nb {
  display: inline-block;
}
:lang(ja) :is(h1, h2, h3, .lede, .fine, .sec-lede) {
  word-break: auto-phrase;
}
.lede {
  max-width: 640px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
}
.hero .cta-row {
  justify-content: center;
  margin-top: 32px;
}
.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-stage {
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}

/* ---------- Devices ---------- */

.stage {
  container-type: inline-size;
  position: relative;
  padding-bottom: 7cqw;
}
.ipad {
  position: relative;
  width: 80cqw;
  margin-left: 1cqw;
  padding: 1.25cqw;
  border-radius: 3.6cqw;
  background: linear-gradient(145deg, #2a2c31, #0b0c0e 40%, #17181b);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 0.25cqw #3a3c42,
    var(--shadow-lg);
}
.ipad-screen {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  border-radius: 2.4cqw;
  background: var(--m-surface);
}
.iphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23.5cqw;
  padding: 1cqw;
  border-radius: 4.6cqw;
  background: linear-gradient(150deg, #33353b, #0d0e10 45%, #1d1e22);
  box-shadow:
    0 0 0 0.22cqw #44464d,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    var(--shadow-lg);
}
.iphone-screen {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  border-radius: 3.7cqw;
  background: #000;
}
/* On a phone, the iPhone stands over the iPad's sidebar, so the agent's
   work on the page stays in view. */
@media (max-width: 720px) {
  .stage {
    padding-bottom: 30cqw;
  }
  .ipad {
    width: 92cqw;
    margin-left: auto;
    margin-right: 0;
  }
  .iphone {
    left: 0;
    right: auto;
    width: 32cqw;
  }
}

/* The app, drawn: everything inside is in device points. */
.m {
  --u: calc(100cqw / 1180);
  position: relative;
  color: var(--m-text);
  font-family: var(--sans);
  line-height: 1.3;
  user-select: none;
  pointer-events: none;
}
.m .i {
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
  color: var(--m-icon);
}
.m-ipad {
  display: grid;
  grid-template-columns: calc(var(--u) * 292) 1fr;
  aspect-ratio: 1180 / 820;
  overflow: hidden;
  background: var(--m-surface);
}
.m-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(var(--u) * 26);
  padding: 0 calc(var(--u) * 22);
  font-family: var(--sys);
  font-size: calc(var(--u) * 13);
  font-weight: 600;
}
.m-status-r {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 5);
}
.m-status .i {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  color: var(--m-text);
}
.m-status .m-batt {
  font-size: calc(var(--u) * 12);
}

.m-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: calc(var(--u) * 36) calc(var(--u) * 14) calc(var(--u) * 12);
  background: var(--m-sidebar);
  border-right: 1px solid var(--m-divider);
}
.m-side-top {
  display: flex;
  justify-content: space-between;
}
.m-round,
.m-capsule {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--u) * 40);
  border-radius: calc(var(--u) * 20);
  background: var(--m-surface);
  box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(0, 0, 0, 0.08);
}
.m-round {
  width: calc(var(--u) * 40);
}
.m-capsule {
  gap: calc(var(--u) * 16);
  padding: 0 calc(var(--u) * 12);
}
.m-side-top .i {
  width: calc(var(--u) * 19);
  height: calc(var(--u) * 19);
  color: var(--m-text);
}
.m-search {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: calc(var(--u) * 36);
  margin-top: calc(var(--u) * 14);
  padding: 0 calc(var(--u) * 12);
  border-radius: calc(var(--u) * 18);
  background: var(--m-fill);
  color: var(--m-muted);
  font-size: calc(var(--u) * 15);
}
.m-search .i {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  color: var(--m-muted);
}
.m-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--u) * 32);
  margin-top: calc(var(--u) * 12);
  padding: calc(var(--u) * 2);
  border-radius: calc(var(--u) * 16);
  background: var(--m-fill);
}
.m-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--u) * 14);
  font-size: calc(var(--u) * 13);
  font-weight: 500;
}
.m-seg .on {
  background: var(--m-surface);
  box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(0, 0, 0, 0.1);
}
.m-tree {
  margin: calc(var(--u) * 14) 0 0;
  padding: 0;
  list-style: none;
}
.m-tree li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  height: calc(var(--u) * 36);
  padding: 0 calc(var(--u) * 8);
  border-radius: calc(var(--u) * 10);
  font-size: calc(var(--u) * 14.5);
  white-space: nowrap;
}
.m-tree li span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-tree .m-chev {
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
  color: var(--m-muted);
}
.m-tree .m-l0 {
  padding-left: calc(var(--u) * 30);
}
.m-tree .m-l1 {
  padding-left: calc(var(--u) * 52);
}
.m-tree .m-sel {
  background: var(--m-accent);
  color: #fff;
  font-weight: 500;
}
.m-tree .m-sel .i {
  color: #fff;
}
.m-side-foot {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  margin-top: auto;
  padding: calc(var(--u) * 8) calc(var(--u) * 6) 0;
}
.m-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 30);
  border-radius: 50%;
  background: #5c7ad6;
  color: #fff;
  font-family: var(--sans);
  font-size: calc(var(--u) * 13);
  font-weight: 700;
}
.m-who {
  display: flex;
  flex-direction: column;
  font-size: calc(var(--u) * 13.5);
  line-height: 1.25;
}
.m-who small {
  color: var(--m-muted);
  font-size: calc(var(--u) * 12);
}
.m-side-foot > .i {
  margin-left: auto;
}

.m-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-top: calc(var(--u) * 26);
}
.m-bar {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 16);
  height: calc(var(--u) * 50);
  padding: 0 calc(var(--u) * 20);
  border-bottom: 1px solid var(--m-divider);
  flex: none;
}
.m-crumbs {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  margin-left: calc(var(--u) * 4);
  font-size: calc(var(--u) * 14);
  white-space: nowrap;
}
.m-crumbs span {
  color: var(--m-muted);
}
.m-crumbs b {
  font-weight: 600;
}
.m-crumbs .i {
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
}
.m-bar-r {
  display: flex;
  gap: calc(var(--u) * 18);
  margin-left: auto;
}
.m-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.m-page {
  width: calc(var(--u) * 600);
  max-width: calc(100% - calc(var(--u) * 48));
  margin: 0 auto;
  padding: calc(var(--u) * 30) 0 calc(var(--u) * 40);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-title {
  font-family: var(--serif);
  font-size: calc(var(--u) * 33);
  font-weight: 700;
  line-height: 1.25;
}
.m-meta {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 6);
  color: var(--m-muted);
  font-size: calc(var(--u) * 12.5);
}
.m-meta i {
  font-style: normal;
  opacity: 0.6;
}
.m-tag {
  padding: calc(var(--u) * 1) calc(var(--u) * 8);
  border-radius: 99px;
  background: var(--m-tag-bg);
  color: var(--m-tag);
  font-weight: 600;
}
.m-text,
.m-ul,
.m-ask,
.m-todo {
  font-family: var(--serif);
  font-size: calc(var(--u) * 16);
  line-height: 1.55;
}
.m-text {
  margin-top: calc(var(--u) * 16);
}
.m-text b,
.m-ul b {
  font-weight: 700;
}
.m-h2 {
  margin: calc(var(--u) * 16) 0 calc(var(--u) * 3);
  font-family: var(--serif);
  font-size: calc(var(--u) * 21);
  font-weight: 700;
  line-height: 1.35;
}
.m-ul {
  margin: 0;
  padding-left: calc(var(--u) * 24);
}
.m-ul li {
  padding: calc(var(--u) * 1) 0;
}
.m-ask {
  display: none;
  align-items: center;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 10);
}
.m-mention {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 3);
  padding: calc(var(--u) * 1) calc(var(--u) * 7);
  border-radius: calc(var(--u) * 5);
  background: var(--m-accent-soft);
  color: var(--m-accent-text);
  font-family: var(--sans);
  font-size: calc(var(--u) * 14);
  font-weight: 600;
  white-space: nowrap;
}
.m-mention .i {
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
  color: currentColor;
}
.m-caret {
  display: inline-block;
  width: calc(var(--u) * 2);
  height: calc(var(--u) * 19);
  margin-left: calc(var(--u) * 1);
  background: var(--m-text);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.m-run {
  margin-top: calc(var(--u) * 12);
  padding: calc(var(--u) * 10) calc(var(--u) * 12);
  border: 1px solid var(--m-accent-line);
  border-radius: calc(var(--u) * 10);
  background: var(--m-accent-soft);
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-run-head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 13.5);
  white-space: nowrap;
}
.m-agent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  border-radius: 50%;
  background: var(--m-accent);
}
.m-agent .i {
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
  color: #fff;
}
.m-run-head b {
  font-weight: 600;
}
.m-run-q {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--m-muted);
}
.m-spin {
  display: none;
  width: calc(var(--u) * 14);
  height: calc(var(--u) * 14);
  border: calc(var(--u) * 2) solid var(--m-accent-line);
  border-top-color: var(--m-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.m-ok .i {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  color: var(--m-ok);
}
.m-run.running .m-spin {
  display: block;
}
.m-run.running .m-ok {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.m-tools {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 8);
  padding-left: calc(var(--u) * 30);
}
.m-tool {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 5);
  height: calc(var(--u) * 24);
  padding: 0 calc(var(--u) * 9);
  border: 1px solid var(--m-divider);
  border-radius: 99px;
  background: var(--m-surface);
  font-size: calc(var(--u) * 12);
  white-space: nowrap;
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-tool .i {
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
  color: var(--m-ok);
}
.m-tool code {
  padding: 0;
  background: none;
  color: var(--m-text);
  font-size: calc(var(--u) * 11.5);
}
.m-tool small {
  color: var(--m-muted);
  font-size: calc(var(--u) * 11.5);
}
.m-run-foot {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  margin-top: calc(var(--u) * 9);
  padding-left: calc(var(--u) * 30);
  color: var(--m-muted);
  font-size: calc(var(--u) * 12.5);
  animation: rise 0.35s ease;
}
.m-run-foot > span:first-child {
  margin-right: calc(var(--u) * 4);
}
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  height: calc(var(--u) * 24);
  padding: 0 calc(var(--u) * 9);
  border: 1px solid var(--m-border);
  border-radius: calc(var(--u) * 6);
  background: var(--m-surface);
  color: var(--m-text);
  font-weight: 500;
}
.m-btn .i {
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
}

.m-new {
  position: relative;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-new::before {
  content: "";
  position: absolute;
  inset: calc(var(--u) * -1) calc(var(--u) * -12);
  border-radius: calc(var(--u) * 6);
  background: color-mix(in srgb, var(--m-accent) 9%, transparent);
  box-shadow: inset calc(var(--u) * 3) 0 0 var(--m-accent);
  opacity: 0;
  pointer-events: none;
}
.demo .m-new.on::before {
  animation: tint 3.2s ease forwards;
}
@keyframes tint {
  0%,
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(calc(var(--u) * 8));
  }
}
.m-todo {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 1) 0;
}
.m-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1em;
  height: 1em;
  border: 0.1em solid #5d636e;
  border-radius: 0.25em;
}
.m-box .i {
  display: none;
  width: 0.78em !important;
  height: 0.78em !important;
  color: #fff !important;
  stroke-width: 3;
}
.is-done .m-box {
  border-color: var(--m-accent);
  background: var(--m-accent);
}
.is-done .m-box .i {
  display: block;
}
.is-done .m-todo-t,
.is-done .v-todo-t {
  color: var(--m-muted);
  text-decoration: line-through;
}
.m-due {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 1.55em;
  padding: 0 0.55em;
  border-radius: 0.4em;
  background: var(--m-chip);
  color: var(--m-muted);
  font-family: var(--sans);
  font-size: 0.76em;
  font-weight: 600;
  white-space: nowrap;
}
.m-due .i {
  width: 1em !important;
  height: 1em !important;
  color: currentColor !important;
}
.m-table {
  margin-top: calc(var(--u) * 8);
  border: 1px solid var(--m-border);
  border-radius: calc(var(--u) * 8);
  overflow: hidden;
  font-family: var(--serif);
  font-size: calc(var(--u) * 14.5);
}
.m-table.m-new {
  overflow: visible;
}
.m-tr {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.5fr;
  border-top: 1px solid var(--m-border);
}
.m-tr:first-child {
  border-top: 0;
}
.m-tr span {
  padding: calc(var(--u) * 6) calc(var(--u) * 12);
  border-left: 1px solid var(--m-border);
  white-space: nowrap;
}
.m-tr span:first-child {
  border-left: 0;
}
.m-th {
  background: var(--m-ground);
  font-weight: 700;
}
.m-tr b {
  font-weight: 700;
}

/* Before the visitor watches it, the page is as the agent leaves it; the
   script hides the agent's work and plays it. */
.demo .m-run:not(.on),
.demo .m-tool:not(.on),
.demo .m-run-foot:not(.on),
.demo .m-new:not(.on) {
  display: none;
}
.demo .m-ask.on {
  display: flex;
}
.stage .ipad-screen .m-page {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
}
.stage.is-fading .m-page {
  opacity: 0;
}

/* The iPhone's Lock Screen. */
.m-phone {
  --u: calc(100cqw / 393);
  aspect-ratio: 393 / 852;
  overflow: hidden;
  color: #fff;
  font-family: var(--sys);
  background:
    radial-gradient(70% 45% at 75% 18%, rgba(255, 246, 176, 0.45), transparent 70%),
    radial-gradient(120% 70% at 20% 0%, #c6e889 0%, #7cc35f 28%, #2e8b47 58%, #14402a 86%, #0c2618 100%);
}
.m-phone::after {
  /* A leaf's veins, from the icon, very faint. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 49.6%, rgba(243, 255, 217, 0.22) 49.8%, rgba(243, 255, 217, 0.22) 50.2%, transparent 50.4%),
    repeating-linear-gradient(28deg, transparent 0 calc(var(--u) * 70), rgba(243, 255, 217, 0.07) calc(var(--u) * 70) calc(var(--u) * 72));
  -webkit-mask-image: radial-gradient(60% 50% at 50% 46%, #000, transparent 75%);
  mask-image: radial-gradient(60% 50% at 50% 46%, #000, transparent 75%);
  pointer-events: none;
}
.m-phone > * {
  position: absolute;
  z-index: 1;
}
.m-island {
  top: calc(var(--u) * 11);
  left: 50%;
  width: calc(var(--u) * 124);
  height: calc(var(--u) * 36);
  border-radius: calc(var(--u) * 20);
  background: #000;
  transform: translateX(-50%);
}
.m-ls-status {
  top: calc(var(--u) * 17);
  left: calc(var(--u) * 34);
  right: calc(var(--u) * 26);
  display: flex;
  justify-content: space-between;
}
.m-phone .i {
  color: #fff;
}
.m-ls-status .i {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}
.m-ls-status .m-status-r {
  gap: calc(var(--u) * 5);
}
.m-ls-lock {
  top: calc(var(--u) * 64);
  left: 50%;
  transform: translateX(-50%);
}
.m-ls-lock .i {
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
}
.m-ls-date,
.m-ls-time {
  left: 0;
  right: 0;
  text-align: center;
  text-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 12) rgba(0, 0, 0, 0.12);
}
.m-ls-date {
  top: calc(var(--u) * 92);
  font-size: calc(var(--u) * 19);
  font-weight: 600;
  opacity: 0.92;
}
.m-ls-time {
  top: calc(var(--u) * 110);
  font-size: calc(var(--u) * 98);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.m-ls-stack {
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  bottom: calc(var(--u) * 112);
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 8);
}
.m-notif {
  display: flex;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 12) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 24);
  background: rgba(246, 246, 243, 0.76);
  color: #111;
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  font-size: calc(var(--u) * 14.5);
  line-height: 1.3;
}
.m-notif img {
  width: calc(var(--u) * 38);
  height: calc(var(--u) * 38);
  flex: none;
  border-radius: calc(var(--u) * 9);
}
.m-notif-body {
  flex: 1;
  min-width: 0;
}
.m-notif-top {
  display: flex;
  align-items: baseline;
  gap: calc(var(--u) * 6);
  font-size: calc(var(--u) * 13);
}
.m-notif-top span {
  color: #b5323f;
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.m-notif-top em {
  margin-left: auto;
  color: rgba(0, 0, 0, 0.5);
  font-style: normal;
}
.m-notif-title {
  margin-top: calc(var(--u) * 1);
  font-weight: 600;
}
.m-live {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 16);
  border-radius: calc(var(--u) * 26);
  background: rgba(18, 20, 18, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.m-rec-dot {
  flex: none;
  width: calc(var(--u) * 10);
  height: calc(var(--u) * 10);
  border-radius: 50%;
  background: #ff3b30;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.m-live-txt {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 2);
  line-height: 1.15;
}
.m-live-txt b {
  font-size: calc(var(--u) * 17);
  font-weight: 600;
}
.m-live-time {
  font-size: calc(var(--u) * 24);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.m-live-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 46);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}
.m-live-btn:first-of-type {
  margin-left: auto;
}
.m-live-btn svg {
  width: calc(var(--u) * 19);
  height: calc(var(--u) * 19);
  fill: #fff;
}
.m-live-stop {
  background: rgba(255, 59, 48, 0.24);
}
.m-live-stop svg {
  fill: #ff453a;
}
.m-ls-foot {
  left: calc(var(--u) * 46);
  right: calc(var(--u) * 46);
  bottom: calc(var(--u) * 46);
  display: flex;
  justify-content: space-between;
}
.m-ls-foot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 50);
  height: calc(var(--u) * 50);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.m-ls-foot .i {
  width: calc(var(--u) * 21);
  height: calc(var(--u) * 21);
}
.m-homebar {
  bottom: calc(var(--u) * 8);
  left: 50%;
  width: calc(var(--u) * 140);
  height: calc(var(--u) * 5);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
}

/* ---------- Pillars ---------- */

.pillars {
  padding: 56px 0 24px;
}
.pillars-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 4px;
}
.pillar > .i {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--leaf-text);
}
.pillar h2 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}
.pillar p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.sec {
  position: relative;
  padding: 112px 0;
}
.sec-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-head-left {
  margin: 0 0 32px;
  text-align: left;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf-text);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
:lang(zh) .eyebrow,
:lang(ja) .eyebrow {
  letter-spacing: 0.06em;
}
.sec-head h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
:lang(zh) .sec-head h2,
:lang(ja) .sec-head h2 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.sec-lede {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.6;
}

/* ---------- Write: the bento of blocks ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.b-todos,
.b-video,
.b-slash,
.b-history {
  grid-column: span 3;
}
.b-chart,
.b-code,
.b-math {
  grid-column: span 2;
}
.viz {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 26px 26px 6px;
  background:
    linear-gradient(to bottom, transparent, var(--surface)),
    repeating-linear-gradient(to bottom, transparent 0 27px, var(--rule) 27px 28px);
}
.card-txt {
  padding: 18px 26px 24px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.card-txt p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.v-page {
  width: 100%;
  max-width: 440px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--m-surface);
  box-shadow: var(--shadow);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--m-text);
}
.v-todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}
.v-todo-t {
  flex: 1;
  min-width: 0;
}
.v-todo .m-due .i {
  stroke-width: 2;
}
.v-todo:nth-child(2) .m-due {
  background: var(--m-accent-soft);
  color: var(--m-accent-text);
}

.v-player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  border-radius: 9px;
  background:
    radial-gradient(60% 80% at 75% 30%, rgba(255, 196, 120, 0.85), transparent 70%),
    radial-gradient(70% 90% at 20% 80%, rgba(196, 64, 40, 0.9), transparent 70%),
    linear-gradient(135deg, #7a2a1a, #d76a2a 50%, #3a1a14);
  overflow: hidden;
}
.v-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.v-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: #fff;
}
.v-dur {
  position: absolute;
  right: 8px;
  bottom: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
}
.v-scrub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.v-scrub i {
  display: block;
  width: 18%;
  height: 100%;
  background: #fff;
}
.v-notes {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.v-notes li {
  padding: 2px 0;
}
.v-time {
  display: inline-block;
  min-width: 46px;
  color: var(--m-accent-text);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--m-accent-line);
  text-underline-offset: 3px;
}

.v-chart-t {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
}
.v-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  margin-top: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--m-divider);
}
.v-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
  font-family: var(--sans);
}
.v-bar i {
  display: block;
  width: 100%;
  max-width: 34px;
  height: calc(var(--h) * 0.88%);
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  background: var(--m-accent);
}
.v-bar:first-child i {
  background: linear-gradient(to top, var(--m-accent), color-mix(in srgb, var(--m-accent) 70%, #fff));
}
.v-bar span {
  margin-bottom: 4px;
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 600;
}
.v-bar em {
  position: absolute;
  bottom: -20px;
  color: var(--m-muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.v-code {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  background: #14161b;
  color: #e3e6ec;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.v-code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8a909b;
  font-size: 12.5px;
  font-weight: 600;
}
.v-code-top .i {
  width: 15px;
  height: 15px;
}
.v-code pre {
  margin: 0;
  padding: 13px 14px 15px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.6;
}
.v-code code {
  font-size: inherit;
}
.v-code .k {
  color: #c792ea;
}
.v-code .f {
  color: #82aaff;
}
.v-code .t {
  color: #ffcb6b;
}
.v-code .n {
  color: #f78c6c;
}
.v-code .c {
  color: #6b7280;
  font-style: italic;
}

.v-math math {
  font-size: 24px;
}
.v-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
}
.v-flow span {
  padding: 5px 8px;
  border: 1px solid var(--m-border);
  border-radius: 5px;
  background: var(--m-ground);
  white-space: nowrap;
}
.v-flow .v-round {
  border-radius: 99px;
}
.v-flow i {
  position: relative;
  flex: 1;
  min-width: 8px;
  max-width: 22px;
  height: 1px;
  background: var(--m-muted);
}
.v-flow i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border: 3.5px solid transparent;
  border-left: 5px solid var(--m-muted);
  border-right: 0;
}

.v-slash-line {
  display: flex;
  align-items: center;
  font-size: 16px;
}
.v-slash-line .m-caret {
  --u: 1px;
  height: 18px;
}
.v-menu {
  width: 240px;
  margin: 8px 0 0;
  padding: 5px;
  border: 1px solid var(--m-border);
  border-radius: 10px;
  background: var(--m-surface);
  box-shadow: var(--shadow-lg);
  list-style: none;
  font-family: var(--sans);
  font-size: 14px;
}
.v-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 7px;
}
.v-menu li.on {
  background: var(--m-accent-soft);
}
.v-menu .i {
  width: 16px;
  height: 16px;
  color: var(--m-icon);
}
.v-menu span {
  flex: 1;
}
.v-menu kbd {
  border: 0;
  background: none;
  color: var(--m-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.v-menu kbd:empty {
  display: none;
}

.v-history {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  align-items: center;
}
.v-versions {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
}
.v-versions li {
  display: flex;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
}
.v-versions li.on {
  background: var(--m-accent-soft);
}
.v-versions .i {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--m-icon);
}
.v-versions b {
  display: block;
  font-weight: 600;
}
.v-versions small {
  color: var(--m-muted);
  font-size: 12px;
}
.v-diff {
  font-size: 14px;
  line-height: 1.45;
}
.v-diff p {
  padding: 6px 10px;
  border-radius: 6px;
}
.v-del {
  background: color-mix(in srgb, #c62828 9%, transparent);
  color: color-mix(in srgb, #c62828 80%, var(--m-text));
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, #c62828 60%, transparent);
}
.v-ins {
  margin-top: 6px;
  background: color-mix(in srgb, #1e7a4c 11%, transparent);
  color: color-mix(in srgb, #1e7a4c 75%, var(--m-text));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}

/* ---------- Agents: a dark room ---------- */

.sec-dark {
  --bg: #0d0f13;
  --surface: #161920;
  --surface-2: #1b1e24;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #eef0f4;
  --text-2: #c3c8d2;
  --muted: #9aa1ad;
  --accent-soft: #232a52;
  --accent-text: #c3cbff;
  --leaf-text: #a6dc79;
  --rule: rgba(160, 172, 255, 0.05);
  --m-ground: #101216;
  --m-surface: #1b1e24;
  --m-border: #2e333c;
  --m-divider: #272b33;
  --m-text: #e9ebef;
  --m-muted: #9ea4af;
  --m-icon: #a9afba;
  --m-accent: #4f5fd9;
  --m-accent-soft: #1e2342;
  --m-accent-line: #3a4377;
  --m-accent-text: #bac3ff;
  --m-ok: #93d6aa;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.dark-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 50% 0%, rgba(79, 95, 217, 0.35), transparent 70%),
    radial-gradient(30% 30% at 90% 70%, rgba(46, 139, 71, 0.18), transparent 70%),
    radial-gradient(30% 30% at 5% 85%, rgba(79, 95, 217, 0.16), transparent 70%);
}
.ways {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.way {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.way .viz {
  flex: none;
  height: 236px;
  padding: 16px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.way h3 {
  margin: 18px 12px 0;
  font-size: 18px;
  font-weight: 700;
}
.way > p {
  margin: 5px 12px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.w-page {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--m-divider);
  border-radius: 10px;
  background: var(--m-surface);
  color: var(--m-text);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.w-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.w-page .m-mention {
  --u: 1px;
  font-size: 13px;
}
.w-page .m-caret {
  --u: 1px;
  height: 17px;
}
.w-page .m-mention .i {
  width: 12px;
  height: 12px;
}
.w-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 6px 9px;
  border: 1px solid var(--m-border);
  border-radius: 9px;
  background: var(--m-ground);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}
.w-toolbar .i {
  width: 14px;
  height: 14px;
  color: var(--m-icon);
}
.w-toolbar > i {
  width: 1px;
  height: 14px;
  background: var(--m-border);
}
.w-ask {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--m-accent-text);
}
.w-ask .i {
  color: currentColor;
}
.w-sel mark {
  padding: 1px 0;
  background: #34407a;
  color: inherit;
}
.w-chat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}
.w-bubble {
  align-self: flex-end;
  max-width: 85%;
  padding: 7px 11px;
  border-radius: 12px 12px 4px 12px;
  background: var(--m-accent);
  color: #fff;
}
.w-reply {
  display: flex;
  gap: 8px;
}
.w-reply .m-agent,
.w-comment .m-agent,
.w-comment .m-avatar {
  --u: 1px;
  width: 22px;
  height: 22px;
  font-size: 11px;
}
.w-reply .m-agent .i,
.w-comment .m-agent .i {
  width: 12px;
  height: 12px;
}
.w-reply .m-tool {
  --u: 1px;
  margin-bottom: 5px;
  animation: none;
}
.w-reply .m-tool .i {
  width: 12px;
  height: 12px;
}
.w-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--m-border);
  border-radius: 9px;
  color: var(--m-muted);
}
.w-input .i {
  width: 14px;
  height: 14px;
  color: var(--m-muted);
}
.w-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}
.w-comment {
  display: flex;
  gap: 8px;
}
.w-comment p b {
  display: block;
  font-size: 12.5px;
}
.w-comment-agent {
  padding-left: 14px;
  border-left: 2px solid var(--m-divider);
  margin-left: 10px;
}

.safe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.safe-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgba(79, 95, 217, 0.1), rgba(255, 255, 255, 0.02));
}
.safe-item > .i {
  width: 26px;
  height: 26px;
  color: var(--accent-text);
}
.safe-item h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
}
.safe-item p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.safe-item code {
  background: rgba(255, 255, 255, 0.07);
  color: #e3e7ff;
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.duo-item {
  display: flex;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.duo-item > .i {
  width: 26px;
  height: 26px;
  color: var(--leaf-text);
}
.duo-item h3 {
  font-size: 18px;
  font-weight: 700;
}
.duo-item p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- Models ---------- */

.sec-models {
  padding-bottom: 64px;
}
.models-in {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.models-in .sec-head h2 {
  font-size: clamp(32px, 3.8vw, 44px);
}
.providers {
  display: grid;
  gap: 14px;
}
.prov-group {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prov-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
}
.prov-group h3 .i {
  color: var(--accent);
}
.prov-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.prov-group li {
  padding: 6px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
}
.prov-group p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Record ---------- */

.record-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.entry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 30px;
  padding: 0;
  list-style: none;
}
.entry li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 99px;
  background: color-mix(in srgb, #ff3b30 9%, var(--surface));
  border: 1px solid color-mix(in srgb, #ff3b30 18%, var(--line));
  font-size: 14.5px;
  font-weight: 600;
}
.entry .i {
  width: 16px;
  height: 16px;
  color: #e5372c;
}
.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin: 0;
}
.points dt {
  font-size: 16.5px;
  font-weight: 700;
}
.points dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.record-viz {
  position: relative;
}
.record-viz::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, #ff3b30 10%, transparent), transparent 70%);
}
.rec-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--m-surface);
  box-shadow: var(--shadow-lg);
  color: var(--m-text);
}
.rec-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rec-head > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}
.rec-head b {
  font-size: 16px;
}
.rec-head small {
  color: var(--m-muted);
  font-size: 13px;
}
.rec-head > .i {
  color: var(--m-muted);
}
.rec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, #ff3b30 12%, transparent);
}
.rec-icon .i {
  width: 20px;
  height: 20px;
  color: #e5372c;
}
.rec-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--m-ground);
  font-family: var(--sans);
}
.rec-skip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--m-icon);
}
.rec-skip .i {
  width: 24px;
  height: 24px;
  color: currentColor;
}
.rec-skip small {
  position: absolute;
  font-size: 8.5px;
  font-weight: 700;
}
.rec-play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--m-text);
}
.rec-play svg {
  width: 15px;
  height: 15px;
  fill: var(--m-surface);
}
.rec-track {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--m-divider);
  overflow: hidden;
}
.rec-track i {
  display: block;
  width: 36%;
  height: 100%;
  background: var(--m-accent);
  animation: track 30s linear infinite;
}
@keyframes track {
  from {
    width: 34%;
  }
  to {
    width: 58%;
  }
}
.rec-time {
  color: var(--m-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rec-speed {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--m-border);
  font-size: 12px;
  font-weight: 700;
}
.rec-lines {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.rec-lines li {
  display: grid;
  grid-template-columns: 44px 62px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.6;
  transition: opacity 0.4s ease, background-color 0.4s ease;
}
.rec-lines li.on {
  background: var(--m-accent-soft);
  opacity: 1;
}
.rec-t {
  color: var(--m-accent-text);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rec-who {
  color: var(--who);
  font-size: 13px;
  font-weight: 700;
}
.rec-say {
  font-family: var(--serif);
}
.rec-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--m-divider);
  color: var(--m-muted);
  font-size: 13px;
}
.rec-foot .i {
  width: 15px;
  height: 15px;
  color: var(--m-muted);
}
.rec-fmt {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--m-chip);
  color: var(--m-text);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- Sync ---------- */

.sec-tint {
  background: linear-gradient(to bottom, var(--bg), var(--bg-tint) 20%, var(--bg-tint) 80%, var(--bg));
}
.tiers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tiers::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--accent-line) 0 8px, transparent 8px 14px);
}
.tier {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tier-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.tier-icon .i {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.tier:first-child .tier-icon {
  background: color-mix(in srgb, var(--leaf) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--leaf) 30%, var(--line));
}
.tier:first-child .tier-icon .i {
  color: var(--leaf-text);
}
.tier-k {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier h3 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 700;
}
.tier > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.merge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--text-2);
  font-size: 15.5px;
  text-align: center;
}
.merge .i {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---------- Made for iPhone and iPad ---------- */

.grid8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
.grid8 li {
  padding: 26px 24px 28px;
  background: var(--surface);
}
.grid8 .i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.grid8 h3 {
  margin-top: 16px;
  font-size: 16.5px;
  font-weight: 700;
}
.grid8 p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Desktop and terminal ---------- */

.desk-in {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.desk-copy .sec-head {
  margin-bottom: 24px;
}
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.clients li {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.term {
  border-radius: 16px;
  background: #101216;
  color: #e3e6ec;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.term-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: #181b20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-top > i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.term-top > i:nth-child(2) {
  background: #febc2e;
}
.term-top > i:nth-child(3) {
  background: #28c840;
}
.term-top span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding-right: 50px;
  color: #8a909b;
  font-size: 12.5px;
  font-weight: 600;
}
.term-top .i {
  width: 14px;
  height: 14px;
}
.term pre {
  margin: 0;
  padding: 22px 22px 26px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.term code {
  font-size: inherit;
}
.tc {
  color: #6b7280;
}
.tp {
  color: #a6dc79;
  user-select: none;
}

/* ---------- Open source ---------- */

.oss {
  padding: 40px 0 96px;
}
.oss-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.oss-mark {
  width: 44px;
  height: 44px;
  color: var(--text);
}
.oss h2 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.015em;
}
:lang(zh) .oss h2,
:lang(ja) .oss h2 {
  font-weight: 700;
  letter-spacing: 0;
}
.oss p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--text-2);
}
.oss .btn {
  margin-top: 24px;
}

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

.faq-in {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 2px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .i {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.faq-list details[open] summary .i {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 40px 24px 2px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ---------- Get ---------- */

.get {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line-soft);
}
.get .hero-paper {
  -webkit-mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 85%);
  mask-image: radial-gradient(60% 70% at 50% 40%, #000, transparent 85%);
}
.get-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.get-in img {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 18px 30px rgba(31, 107, 53, 0.25));
}
.get h2 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
:lang(zh) .get h2,
:lang(ja) .get h2 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}
.get .cta-row {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

.foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 15px;
}
.foot-in {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}
.foot-brand p {
  max-width: 300px;
  margin-top: 12px;
  color: var(--muted);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols h2 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-cols a,
.foot-cols span {
  display: block;
  padding: 4px 0;
  color: var(--text-2);
  text-decoration: none;
}
.foot-cols a:hover {
  color: var(--text);
  text-decoration: underline;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot-langs {
  display: flex;
  gap: 16px;
}
.foot-langs a {
  color: var(--muted);
}
.foot-langs [aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Legal and help pages ---------- */

.doc-hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.doc-hero .hero-paper {
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.doc-hero h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
:lang(zh) .doc-hero h1,
:lang(ja) .doc-hero h1 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}
.doc-hero .lede {
  max-width: 720px;
}
.doc-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}
.doc {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 110px;
}
.toc {
  position: sticky;
  top: 92px;
  font-size: 14.5px;
}
.toc p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover {
  border-left-color: var(--accent);
  color: var(--text);
}
.prose {
  max-width: 740px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}
.prose h2 {
  margin: 52px 0 12px;
  padding-top: 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose > section:first-child h2 {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--faint);
}
.prose strong {
  color: var(--text);
}
.prose .callout {
  display: flex;
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--leaf) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--leaf) 7%, var(--surface));
  color: var(--text);
}
.prose .callout .i {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--leaf-text);
}
.prose .callout ul {
  margin: 6px 0 0;
}
.table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 650;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 72px;
}
.help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.help-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.help-card > .i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.help-card h2 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}
.help-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.help-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
}

.nf {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 0 140px;
  text-align: center;
}
.nf img {
  width: 96px;
  height: 96px;
  transform: rotate(-12deg);
  opacity: 0.9;
}
.nf h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 650;
}
.nf p {
  margin-top: 10px;
  color: var(--text-2);
}
.nf .cta-row {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
  .top-links {
    display: none;
  }
  .pillars-in {
    grid-template-columns: repeat(2, 1fr);
  }
  .ways {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid8 {
    grid-template-columns: repeat(2, 1fr);
  }
  .models-in,
  .record-in,
  .desk-in,
  .faq-in {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .models-in .sec-head,
  .faq-in .sec-head {
    margin-bottom: 0;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .b-todos,
  .b-video,
  .b-slash,
  .b-history,
  .b-chart,
  .b-code,
  .b-math {
    grid-column: span 1;
  }
  .b-history {
    grid-column: span 2;
  }
  .doc {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top-in {
    height: 60px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-stage {
    margin-top: 40px;
  }
  .hero .cta-row,
  .get .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
  .sec {
    padding: 76px 0;
  }
  .sec-head {
    margin-bottom: 36px;
  }
  .pillars-in,
  .bento,
  .ways,
  .safe,
  .duo,
  .tiers,
  .points,
  .help-cards {
    grid-template-columns: 1fr;
  }
  .b-history {
    grid-column: span 1;
  }
  .v-history {
    grid-template-columns: 1fr;
  }
  .grid8 {
    grid-template-columns: 1fr;
  }
  .tiers::before {
    display: none;
  }
  .viz {
    min-height: 0;
    padding: 20px 16px 4px;
  }
  .way .viz {
    height: auto;
    min-height: 200px;
  }
  .card-txt {
    padding: 16px 20px 22px;
  }
  .rec-lines li {
    grid-template-columns: 38px 1fr;
  }
  .rec-say {
    grid-column: 1 / -1;
  }
  .rec-time {
    display: none;
  }
  .foot-in {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-list summary {
    font-size: 17px;
  }
  .faq-a {
    padding-right: 4px;
  }
  .lang summary span {
    display: none;
  }
  .term pre {
    padding: 18px 16px 20px;
    font-size: 12.5px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .pillar {
    padding: 8px 0;
  }
}
