/* Moony website — marketing extension of the app design system.
   tokens.css is synced verbatim from the app (npm run tokens:sync) and is linked
   before this file by the Base layout. Everything below either reuses a moony.css
   component unchanged or is a documented deviation for a responsive marketing page
   (type scale, column width, breakpoints). Fonts resolve relative to this file. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/asset?u=https%3A%2F%2Fmoonyfinance.com%2Ffonts%2Finter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/asset?u=https%3A%2F%2Fmoonyfinance.com%2Ffonts%2Finter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Marketing extension tokens (deviations from the app, documented) ---- */
:root {
  --site-max: 1120px;
  --site-pad: 24px;
  --fs-site-body: 15px;      /* app body is 13px; a reading page needs more */
  --fs-site-h1: 56px;        /* app H1 is 36px */
  --fs-site-h2: 30px;
  --fs-site-lead: 18px;
  --fs-site-display: 64px;   /* hero number inside the product frame stays 42px */
  /* --ink-3 and --ink-4 are the app's own again: since 2026-11-15 the app's tokens hold 4.5:1 on the canvas for both (5.6:1 and 4.5:1; 6.7:1 and 5.3:1 on white), so the site no longer darkens them here. */
}

/* tokens.css (synced from the app) stops at Latin fallbacks. These stacks add system fonts that carry Japanese and Simplified Chinese; Inter stays first and no font file is added. */
:root { --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans CJK JP", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:root:lang(zh-Hans) { --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans", "Noto Sans CJK JP", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; min-height: 100vh;
  background: var(--canvas-glow);
  color: var(--ink); font: 450 var(--fs-site-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; border-color: var(--focus-border); box-shadow: var(--focus-ring); }
a:focus-visible { outline: 2px solid var(--focus-border); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The icon sprite stays in the page but takes no space. A class, not a style attribute: the Content-Security-Policy allows no inline styles. */
.sprite { position: absolute; width: 0; height: 0; }
/* Text for assistive technology only, e.g. a heading that keeps the outline in order without adding a visible one. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-pad); }

/* ---- Reused app components (moony.css, verbatim where possible) ---- */
.moon { position: relative; flex: none; width: 31px; height: 31px; border-radius: 50%; background: var(--dark); box-shadow: inset 0 1px rgba(255,255,255,.2), 0 2px 5px rgba(33,30,24,.15); }
.moon::after { content: ""; position: absolute; left: 8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--canvas-glow); box-shadow: 4px 1px 0 var(--dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--paper); color: var(--ink);
  font-size: var(--fs-table); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; box-shadow: var(--sh-btn);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:hover { background: var(--well); }
.btn:active { transform: translateY(1px); }
.btn--primary { border-color: transparent; background: var(--dark-grad); color: #fff; box-shadow: var(--sh-dark); }
.btn--primary:hover { background: var(--dark-grad-hover); color: #fff; }
.btn--ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(41,40,34,.06); color: var(--ink); }
.btn--lg { height: 44px; padding: 0 18px; font-size: 14px; }

.eyebrow { color: var(--ink-4); font-size: var(--fs-eyebrow); font-weight: var(--fw-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.card { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--paper); box-shadow: var(--sh-1); }
.card--flat { box-shadow: var(--sh-1); }

.logo { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--s1); box-shadow: inset 0 1px rgba(255,255,255,.13); color: #fff; font-size: var(--fs-micro); font-weight: 750; }
.logo--soft { background: var(--well-2); color: var(--ink-2); box-shadow: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--well-2); color: var(--ink-2); font-size: var(--fs-micro); font-weight: 650; white-space: nowrap; }
.badge--outline { background: none; border: 1px dashed var(--line-strong); color: var(--ink-3); }

.link { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: inherit; font-weight: 650; }
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
code, .code { font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--well); color: var(--ink-2); overflow-x: auto; white-space: pre; max-width: 100%; }
.code b { color: var(--ink); font-weight: 650; }

/* ---- Site chrome ---- */
.site-nav { position: sticky; top: 0; z-index: 5; background: var(--canvas-glow); border-bottom: 1px solid var(--line-sidebar); }
.site-nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.brand b { font-size: 18px; font-weight: 650; letter-spacing: -0.06em; }
.nav-links { display: flex; gap: 2px; margin-left: 6px; }
.nav-links a { padding: 8px 10px; border-radius: var(--r-2); color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links a:hover { background: rgba(41,40,34,.06); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; height: var(--control-h-sm); padding: 0 9px; border-radius: var(--r-2); background: var(--well-2); color: var(--ink-2); font-size: var(--fs-micro); font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); }
.lang-menu summary:focus-visible { outline: 2px solid var(--focus-border); outline-offset: 2px; }
.lang-menu__code { display: none; }
.lang-menu__chevron { width: 12px; height: 12px; }
.lang-menu[open] .lang-menu__chevron { transform: rotate(180deg); }
.lang-menu ul { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; box-sizing: border-box; min-width: 160px; max-width: calc(100vw - 32px); max-height: min(70vh, 420px); overflow-y: auto; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper); box-shadow: var(--sh-pop); }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: var(--r-2); color: var(--ink-2); font-size: var(--fs-table); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-menu li a:hover { background: var(--well); color: var(--ink); }
.lang-menu li a[aria-current="true"] { background: var(--well-2); color: var(--ink); }

section.block { padding: 72px 0; }
/* Anchor targets sit under the sticky nav. */
section[id] { scroll-margin-top: 80px; }
section.block + section.block { border-top: 1px solid var(--line-sidebar); }
.block-head { max-width: 640px; margin-bottom: 30px; }
.block-head .eyebrow { margin-bottom: 10px; }
h2.title { margin: 0; font-size: var(--fs-site-h2); font-weight: 570; letter-spacing: -0.05em; line-height: 1.1; }
.block-head p { margin: 12px 0 0; color: var(--ink-3); font-size: 16px; line-height: 1.5; }
h3 { margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-h3); letter-spacing: var(--ls-h3); }
p { margin: 0; }
.lead { color: var(--ink-2); font-size: var(--fs-site-lead); line-height: 1.5; }

/* ---- Hero ---- */
.hero-section { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid > *, .feature__grid > *, .feature__copy > *, .tracks > *, .trust > *, .dl-grid > *, .foot-grid > *, .install > *, .pair > * { min-width: 0; }
/* The product frame holds a screenshot of the app */
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-4); background: var(--paper); box-shadow: var(--sh-2); overflow: hidden; }
.frame img, .shot img { display: block; width: 100%; height: auto; }
.frame-caption { margin: 10px 4px 0; text-align: right; color: var(--ink-4); font-size: var(--fs-caption); font-weight: 500; }
.hero-copy h1 { margin: 14px 0 18px; font-size: var(--fs-site-h1); font-weight: 570; letter-spacing: -0.055em; line-height: 1.04; text-wrap: balance; }
.hero-copy .lead { max-width: 440px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta-note { margin-top: 14px; color: var(--ink-4); font-size: 12px; font-weight: 500; }
.cta-note b { color: var(--ink-3); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 12px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .ic { width: 13px; height: 13px; color: var(--ink-3); }
.hero-visual { margin: 0; min-width: 0; }
.hero-preview { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.hero-visual .frame-caption { font-size: 12px; }



/* ---- Download ---- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl { display: flex; flex-direction: column; gap: 12px; padding: 20px 21px; }
.dl__os { display: flex; align-items: center; justify-content: space-between; }
.dl__os h3 { font-size: 18px; }
.dl__files { display: grid; gap: 6px; }
.dl__files a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper); font-size: 12.5px; font-weight: 600; }
.dl__files a:hover { background: var(--well); }
.dl__files a span:first-child { color: var(--ink-2); }
.dl__name { display: block; margin-top: 2px; color: var(--ink-4); font: 500 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dl__files a span { color: var(--ink-4); font-weight: 500; font-variant-numeric: tabular-nums; }
.dl__note { padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.dl__note b { color: var(--ink-2); font-weight: 650; }
.dl-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.dl-foot .link { font-size: 13px; }

/* ---- Download page ---- */
.page-head { max-width: 720px; margin-bottom: 30px; }
.page-head h1 { margin: 0; font-size: 44px; font-weight: 570; letter-spacing: -0.06em; line-height: 1.04; text-wrap: balance; }
.page-meta { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.page-meta .link { font-size: 14px; white-space: nowrap; }
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.install__card { display: flex; flex-direction: column; gap: 14px; padding: 20px 21px; }
.install__card h3 { font-size: 18px; }
.install__alt { padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.install__alt--first { padding-top: 0; border-top: 0; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 32px; color: var(--ink-2); font-size: 14px; line-height: 1.55; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--well-2); color: var(--ink-2); font-size: 12px; font-weight: 650; }
.steps strong, .install__alt strong, .req strong, .dl__note strong { color: var(--ink); font-weight: 650; }
.steps__note { display: block; margin-top: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.install pre.code { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.steps code, .steps__note code, .install__alt code, .req code, .pair code { padding: 1px 5px; border-radius: 4px; background: var(--well); overflow-wrap: anywhere; }
.install pre.code code { padding: 0; background: none; }
.cmds { display: grid; gap: 16px; }
.cmds b { font-size: 13px; font-weight: 650; }
.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: start; }
.pair__col { display: grid; gap: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
h2.title--sm { font-size: 24px; letter-spacing: -0.04em; }
.pair a, .req a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.req { display: flex; flex-direction: column; gap: 8px; padding: 20px 21px; }
.req h3 { font-size: 16px; }
.req p { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.notfound { min-height: 60vh; }
.notfound h1 { margin: 12px 0 16px; font-size: 44px; font-weight: 570; letter-spacing: -0.06em; line-height: 1.04; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-4); font-weight: 500; font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 2px 18px; max-width: 720px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ---- Footer ---- */
footer { padding: 44px 0 40px; border-top: 1px solid var(--line-sidebar); color: var(--ink-3); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-blurb { margin-top: 10px; max-width: 300px; }
.foot-grid h3 { margin: 0 0 10px; font-size: var(--fs-eyebrow); font-weight: var(--fw-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-4); }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; color: var(--ink-4); font-size: 12px; }


/* ---- Feature blocks: a screenshot on one side, a short text on the other ---- */
.feature { padding: 56px 0; }
.feature__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature--flip .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.feature--flip .feature__copy { order: 2; }
.feature__body { margin-top: 14px; }
.feature__body p { color: var(--ink-3); font-size: 16px; line-height: 1.5; max-width: 560px; }
.ticks { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font-size: 14px; }
.ticks .ic { width: 14px; height: 14px; margin-top: 3px; color: var(--gain); }
.feature__media { position: relative; }
.shot { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; box-shadow: var(--sh-1); }
/* ---- Tracks ---- */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.track { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-3); background: transparent; box-shadow: none; }
.track .logo { width: 36px; height: 36px; }
.track .logo .ic { width: 17px; height: 17px; }
.track b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.track small { display: block; margin-top: 2px; color: var(--ink-4); font-size: 12.5px; font-weight: 500; }
.tracks-foot { margin-top: 18px; color: var(--ink-3); font-size: 13px; font-weight: 600; }

/* ---- Trust ---- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust__card { display: flex; flex-direction: column; gap: 8px; padding: 20px 21px; }
.trust__card .logo { margin-bottom: 6px; }
.trust__card h3 { font-size: 16px; }
.trust__card p { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.trust__link { margin-top: 18px; font-size: 14px; }
/* ---- iPhone and sync sections ---- */
.trust--two, .dl-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sync .block-head .badge { margin-bottom: 14px; }
.sync .block-head p { max-width: 640px; }
.trust__card h3 .badge { margin-inline-start: 6px; vertical-align: 2px; }
.sync__note { max-width: 720px; margin-top: 18px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.sync__note + .sync__note { margin-top: 8px; }
.phone__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.phone--picture .phone__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; }
.phone__copy { max-width: 640px; }
.phone__text { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.phone__transfer { margin-top: 18px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.phone__android { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.phone-sync { max-width: 720px; margin-top: 18px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.phone-sync a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.small-print { margin-top: 6px; color: var(--ink-4); font-size: 12px; }
.dl__note code { padding: 1px 5px; border-radius: 4px; background: var(--well); overflow-wrap: anywhere; }

/* ---- A short introduction, then two focused product examples ---- */
section.overview { padding: 38px 0 32px; }
.overview__intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
.overview__intro p { color: var(--ink-2); font-size: 16px; max-width: 520px; }
.overview__benefits { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink-2); font-size: 14px; }
.overview__benefits li { display: flex; align-items: center; gap: 10px; }
.feature-details { margin-top: 20px; color: var(--ink-2); font-size: 13px; }
.feature-details summary, .track-details summary { cursor: pointer; }
.feature-details summary { padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; }
.feature-details p { margin-top: 10px; font-size: 13px; }
.ticks .ic { color: var(--ink-3); }
.getting-started { background: var(--sidebar); }
.start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: start; }
.start-steps li { counter-increment: start; position: relative; padding-top: 42px; }
.start-steps li::before { content: counter(start); position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-2); font-size: 13px; }
.start-steps h3 { font-size: 17px; letter-spacing: -0.02em; }
.start-steps p { margin-top: 8px; max-width: 290px; color: var(--ink-2); font-size: 14px; }
.track-section { padding: 0 0 36px; background: var(--sidebar); }
.track-details { padding-top: 22px; border-top: 1px solid var(--line); }
.track-details summary { font-weight: 600; font-size: 16px; }
.track-details .tracks { margin-top: 22px; }
.track { padding: 12px 0; border: 0; }
.track .logo { background: var(--well-2); color: var(--ink-2); box-shadow: none; }
.trust__card { background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.trust__card:first-child { border-left: 0; padding-left: 0; }
.maker { padding: 0 0 64px; }
.maker__inner { display: block; }
.maker h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.maker p { max-width: 650px; margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.maker .link { font-size: 14px; }
.download-invite { background: var(--sidebar); border-block: 1px solid var(--line); }
.download-invite__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 48px; align-items: center; }
.download-invite__intro { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.download-invite__meta { margin-top: 14px; color: var(--ink-3); font-size: 12px; }
.download-invite__action { display: grid; justify-items: center; gap: 14px; }
.download-invite__action > .link { font-size: 13px; }
.download-invite__notice { grid-column: 1 / -1; max-width: 730px; color: var(--ink-3); font-size: 12px; }
.download-intro { margin: -12px 0 28px; max-width: 650px; color: var(--ink-2); font-size: 16px; }
.dl { scroll-margin-top: 90px; }
.dl.is-current { border-color: var(--ink-3); }
.dl__warning { color: var(--ink-2); font-size: 13px; }
.dl__warning .link { display: block; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.dl__files { margin-top: auto; }
.dl__files a { align-items: center; min-height: 44px; font-size: 14px; }
.dl__files a span:first-child { color: var(--ink); font-weight: 600; }
.dl__os [hidden] { display: none; }
.install__card[id] { scroll-margin-top: 90px; }
.assistant-page { display: grid; gap: 24px; max-width: 820px; }
.assistant-page .page-head { margin: 0; }
.assistant-page .eyebrow { margin-bottom: 12px; }
.assistant-page p { color: var(--ink-2); }
.assistant-page .code { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-right .btn--ghost { display: none; }
  .overview__intro { gap: 24px; }
}
@media (max-width: 820px) {
  .trust__card { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .trust__card:first-child { border-top: 0; padding-top: 0; }
  .trust { gap: 24px; }
}
@media (max-width: 760px) {
  .overview__intro, .start-steps, .download-invite__inner { grid-template-columns: 1fr; }
  .overview__benefits { gap: 12px; flex-direction: column; }
  .start-steps { gap: 24px; }
  .start-steps li { padding: 0 0 0 44px; }
  .start-steps p { max-width: none; }
  .maker { padding-bottom: 48px; }
  .download-invite__action { justify-items: start; }
  .download-invite__notice { grid-column: auto; }
  .hero-grid { gap: 28px; }
  .hero-copy h1 { letter-spacing: -0.05em; }
}
@media (max-width: 520px) {
  .lang-menu__name { display: none; }
  .lang-menu__code { display: inline; }
}
@media (max-width: 380px) {
  .site-nav .wrap { gap: 8px; }
  .site-nav .brand { gap: 7px; margin-right: 0; }
  .nav-right { gap: 6px; }
  .nav-right .btn { padding-inline: 10px; }
  .lang-menu summary { padding-inline: 7px; gap: 4px; }
}

/* Optional AI help: examples of questions, with the data-sharing context alongside. */
.assistant-preview__grid { display: grid; gap: 28px; }
.assistant-preview__intro { max-width: 760px; }
.assistant-preview .badge { margin-bottom: 16px; }
.assistant-preview__text { margin: 16px 0; color: var(--ink-2); font-size: 16px; }
.assistant-preview__prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.assistant-preview__examples h3 { margin-bottom: 14px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.assistant-preview blockquote { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper); color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.assistant-preview__note { margin-top: 14px; }
.assistant-preview__note, .assistant-preview__privacy { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.assistant-preview__privacy { grid-column: 1 / -1; max-width: 800px; padding-top: 18px; border-top: 1px solid var(--line); }
.link-language { white-space: nowrap; font-size: .9em; font-weight: 500; }
.mcp-flow { margin: 0; }
.mcp-flow__body { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; }
.mcp-flow__node { align-self: stretch; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper); }
.mcp-flow__node--data { background: var(--sidebar); }
.mcp-flow__node .moon { display: block; width: 31px; height: 31px; }
.mcp-flow__icon { width: 28px; height: 31px; color: var(--ink-3); stroke-width: 1.5; }
.mcp-flow__node h3 { margin: 18px 0 10px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.mcp-flow__node p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.mcp-flow__connector { display: grid; justify-items: center; gap: 6px; padding: 5px; color: var(--ink-3); font-size: 10px; }
.mcp-flow__connector svg { width: 40px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; }
@media (max-width: 760px) {
  .assistant-preview__grid { gap: 22px; }
  .assistant-preview__prompts { grid-template-columns: minmax(0, 1fr); }
  .mcp-flow__body { grid-template-columns: minmax(0, 1fr); }
  .mcp-flow__node { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .mcp-flow__node .moon, .mcp-flow__icon { grid-column: 1; grid-row: 1 / 3; width: 28px; height: 28px; }
  .mcp-flow__node h3 { grid-column: 2; margin: 0 0 5px; font-size: 16px; }
  .mcp-flow__node p { grid-column: 2; font-size: 13px; line-height: 1.5; }
  .mcp-flow__connector { display: flex; justify-content: center; gap: 8px; height: 34px; }
  .assistant-preview blockquote { padding: 12px 14px; font-size: 14px; line-height: 1.5; }
  .mcp-flow__connector svg { width: 34px; transform: rotate(90deg); }
}

/* ---- Responsive (the app has none; the site must) ---- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-visual { max-width: 780px; }
  .feature__grid, .feature--flip .feature__grid { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__copy { order: 0; }

  .tracks { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* Five items plus the switch and two buttons do not fit a tablet row: the GitHub button goes first, the hero and footer link to the repository anyway. */
  .nav-right .btn--ghost { display: none; }
  .trust, .dl-grid, .install, .phone--picture .phone__grid { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  :root { --site-pad: 16px; }
  .nav-links { display: none; }
  .hero-section { padding: 40px 0 44px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-visual { max-width: none; }
  section.block { padding: 52px 0; }
  .feature { padding: 36px 0; }
  h2.title { font-size: 26px; }
  h2.title--sm { font-size: 22px; }
  .page-head h1, .notfound h1 { font-size: 36px; }
  .tracks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .track { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---- Markdown pages ---- */
/* The page resets p, a, ul and headings globally, so everything a rendered repo document needs is restored here. */
.prose { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: break-word; }
.prose h1 { font-size: 36px; font-weight: 570; letter-spacing: -0.05em; line-height: 1.1; margin: 0 0 18px; color: var(--ink); }
.prose h2 { font-size: 24px; font-weight: 570; letter-spacing: -0.03em; line-height: 1.2; margin: 36px 0 12px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.prose h2, .prose h3 { scroll-margin-top: 80px; }
.prose p { margin: 0 0 12px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li p { margin: 0 0 6px; }
.prose li > ul, .prose li > ol { margin: 4px 0 0; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h2 a, .prose h3 a { font-weight: inherit; text-decoration: none; }
.prose h2 a:hover, .prose h3 a:hover { text-decoration: underline; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.prose th, .prose td { min-width: 110px; text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--well); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { overflow: auto; margin: 0 0 12px; padding: 14px 16px; background: var(--well); border: 1px solid var(--line); border-radius: 10px; }
.prose pre code { padding: 0; background: none; overflow-wrap: normal; }
.prose blockquote { margin: 0 0 12px; padding: 4px 0 4px 14px; border-left: 3px solid var(--line-strong); color: var(--ink-3); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.provenance { font-size: 13px; color: var(--ink-3); border-left: 3px solid var(--line-strong); padding: 8px 12px; margin: 0 0 28px; }
.prose .provenance { margin: 0 0 28px; }

/* ---- Help page ---- */
/* Built on .prose; these rules add the contents grid, the section rhythm and the warning box. */
.prose .help-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.prose .help-toc li { margin: 0; }
.prose .help-toc a { display: block; height: 100%; padding: 12px 16px; color: var(--ink); font-weight: 600; text-decoration: none; }
.prose .help-toc a:hover { border-color: var(--line-hover); }
.help-sec { margin-top: 44px; border-top: 1px solid var(--line); }
.prose .help-sec > h2 { margin-top: 26px; }
.prose .help-callout { padding: 14px 16px; border: 1px solid var(--loss-line); border-radius: var(--r-3); background: var(--loss-soft); color: var(--ink); }
.prose .help th[scope="row"] { font-weight: 600; }
@media (max-width: 760px) { .prose .help-toc { grid-template-columns: 1fr; } }
