/* AVATAR LIVE — site styles (homepage + documentation) */
:root {
  --bg: #0b0b0f;
  --bg-2: #101016;
  --surface: #14141b;
  --surface-2: #1a1a23;
  --surface-3: #22222d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededf2;
  --text-2: #a3a3b2;
  --text-3: #70707e;
  --accent: #8b7cf6;
  --accent-2: #b4a8ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(139, 124, 246, 0.14);
  --good: #4ade80;
  --bad: #6f6f7d;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-lg: 20px;
  --header: 64px;
  --wrap: 1180px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color-scheme: dark;
}
:root:lang(ja) { --font: "Pretendard JP Variable", "Pretendard JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; }
:root:lang(zh-Hans) { --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif; }
:root[data-theme="light"] {
  --bg: #fafafb;
  --bg-2: #f3f3f6;
  --surface: #ffffff;
  --surface-2: #f6f6f9;
  --surface-3: #ececf2;
  --line: rgba(15, 15, 25, 0.08);
  --line-2: rgba(15, 15, 25, 0.14);
  --text: #111118;
  --text-2: #565665;
  --text-3: #8a8a98;
  --accent: #6b5ce7;
  --accent-2: #5747d6;
  --accent-soft: rgba(107, 92, 231, 0.1);
  --good: #16a34a;
  --bad: #a3a3b0;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.05), 0 24px 60px -30px rgba(20, 20, 60, 0.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: anywhere;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); }
.btn svg { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); border-color: transparent; }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body.doc .site-header { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.bar { height: var(--header); max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: .02em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
nav.primary { display: flex; gap: 4px; margin-left: 8px; }
nav.primary a, .mobile-nav a:not(.btn) { color: var(--text-2); font-size: 14.5px; padding: 8px 12px; border-radius: 9px; }
nav.primary a:hover, nav.primary a[aria-current] { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); border-color: var(--line-2); }
.lang summary svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: 46px; min-width: 160px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.lang-menu a[aria-current] { color: var(--accent-2); font-weight: 600; }
.theme-toggle .moon, .theme-toggle svg:last-child { display: none; }
:root[data-theme="light"] .theme-toggle svg:first-child { display: none; }
:root[data-theme="light"] .theme-toggle svg:last-child { display: block; }
.menu-toggle { display: none; }
.menu-toggle svg:last-child { display: none; }
.menu-toggle[aria-expanded="true"] svg:first-child { display: none; }
.menu-toggle[aria-expanded="true"] svg:last-child { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 20px 20px; display: grid; gap: 4px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav .btn { margin-top: 10px; }

/* reveal on scroll (only with JS; without it everything is visible) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* hero */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: .7; }
.hero-copy { position: relative; text-align: center; max-width: 900px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { margin: 0; font-size: clamp(36px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 750; }
.hero h1 span { display: block; }
.hero h1, .section-head h2, .final-cta h2, .show-text h3 { text-wrap: balance; }
:lang(ja) .eyebrow, :lang(ja) .hero h1, :lang(ja) .lead, :lang(ja) .section-head h2, :lang(ja) .section-head p, :lang(ja) .final-cta h2, :lang(ja) .final-cta p, :lang(ja) .show-text h3, :lang(ja) .bento-text h3, :lang(ja) .step h3 { word-break: auto-phrase; }
:lang(ja) .hero h1 { font-size: clamp(34px, 5.2vw, 64px); }
.grad { background: linear-gradient(100deg, var(--text) 10%, var(--accent-2) 60%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .grad { background: linear-gradient(100deg, var(--text) 10%, var(--accent) 70%); -webkit-background-clip: text; background-clip: text; }
.lead { margin: 22px auto 0; max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.7; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.meta { margin: 18px 0 0; font-size: 13.5px; color: var(--text-3); }
.product { position: relative; margin: 56px auto 0; max-width: 1080px; }
.product::after { content: ""; position: absolute; inset: 8% 10% -6%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); filter: blur(40px); opacity: .6; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 40px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset; }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #121218; border-bottom: 1px solid rgba(255,255,255,.06); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a34; }
.frame-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #7d7d8a; letter-spacing: .04em; }
.hero-video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.product figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-3); }

.works { padding: 28px 0 8px; }
.works .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.works p { margin: 0; color: var(--text-3); font-size: 13.5px; }
.works ul { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.works li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 550; }

/* sections */
.section { padding: 110px 0 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.section-head h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 720; }
.section-head p:not(.kicker) { margin: 16px auto 0; color: var(--text-2); font-size: 17px; max-width: 620px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s; }
.bento-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-media { position: relative; flex: 1; min-height: 220px; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.bento-media img, .bento-media video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bento-card:hover .bento-media img, .bento-card:hover .bento-media video { transform: scale(1.03); }
.bento-card.wide .bento-media { min-height: 300px; }
.bento-card.wide .bento-media img { object-position: left top; }
.bento-card.tall .bento-media img { object-position: 38% 40%; }
.bento-card:not(.wide):not(.tall) .bento-media img { object-position: left top; }
.bento-text { padding: 22px 24px 24px; }
.bento-text h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; font-weight: 680; }
.bento-text p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* how it works */
.steps-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps-line::before { content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step .num { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent-2); font-weight: 700; font-size: 18px; box-shadow: 0 0 0 6px var(--bg); }
.step h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 680; letter-spacing: -0.015em; }
.step p { margin: 0 auto; max-width: 300px; color: var(--text-2); font-size: 15px; }
.how-note { text-align: center; margin: 40px auto 0; color: var(--text-3); font-size: 14px; }
.how-note a, .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.how-note svg, .more svg { width: 15px; height: 15px; }

/* showcase */
.show-row { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 56px; padding: 36px 0; }
.show-row + .show-row { border-top: 1px solid var(--line); }
.show-row.flip .show-media { order: 2; }
.show-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); }
.show-media img, .show-media video { width: 100%; height: auto; }
.show-text h3 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.25; font-weight: 700; }
.show-text p { margin: 0 0 18px; color: var(--text-2); font-size: 16px; }
.points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.points svg { width: 18px; height: 18px; color: var(--accent-2); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.mosaic .cell { aspect-ratio: 10 / 9; overflow: hidden; background: var(--bg-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* comparison */
.ctable { max-width: 900px; margin: 0 auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.chead, .crow { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; align-items: stretch; }
.chead > span { display: flex; flex-direction: column; justify-content: center; }
.clabel { display: flex; align-items: center; }
.chead { background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 15px; }
.chead > span, .crow > span { padding: 16px 22px; }
.chead small { display: block; font-weight: 450; color: var(--text-3); font-size: 12.5px; }
.chead .cright { color: var(--accent-2); }
.crow + .crow { border-top: 1px solid var(--line); }
.clabel { color: var(--text-2); font-size: 14.5px; font-weight: 550; }
.crow .cleft, .crow .cright { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.crow .cleft { color: var(--text-3); }
.crow .cleft svg { color: var(--bad); width: 17px; height: 17px; margin-top: 3px; }
.crow .cright { color: var(--text); background: color-mix(in srgb, var(--accent) 6%, transparent); font-weight: 560; }
.crow .cright svg { color: var(--good); width: 18px; height: 18px; margin-top: 2px; }
.chead .cright { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.compare .foot { text-align: center; color: var(--text-3); font-size: 13.5px; margin: 18px 0 0; }

/* editions */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 30px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.highlight { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 55%); }
.plan header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.plan .badge { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 650; }
.plan .for { flex-basis: 100%; margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.price { margin: 22px 0 22px; font-size: 40px; font-weight: 750; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.plan li svg { width: 18px; height: 18px; color: var(--accent-2); margin-top: 3px; }
.upgrade { text-align: center; margin: 26px auto 0; color: var(--text); font-size: 15px; }
.fineprint { text-align: center; margin: 10px auto 0; max-width: 700px; color: var(--text-3); font-size: 13.5px; }

/* faq */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; color: var(--text-3); transition: transform .25s; }
.qa[open] summary svg { transform: rotate(180deg); color: var(--accent-2); }
.qa summary:hover { color: var(--accent-2); }
.qa .a { padding: 0 4px 22px; color: var(--text-2); }
.qa .a p { margin: 0; }

/* final cta */
.final-cta { padding: 130px 0 120px; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); pointer-events: none; }
.final-cta h2 { position: relative; margin: 0; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 750; }
.final-cta p { position: relative; margin: 18px 0 0; color: var(--text-2); font-size: 18px; }
.final-cta .cta-row { position: relative; }
.final-cta .btn svg { width: 18px; height: 18px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.fbrand p { margin: 10px 0 0; color: var(--text-3); font-size: 14px; }
.fcol h2 { margin: 0 0 12px; font-size: 13px; font-weight: 650; color: var(--text-2); letter-spacing: .04em; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fcol a { color: var(--text-3); font-size: 14px; }
.fcol a:hover { color: var(--text); }
.site-footer .fine { display: block; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.fine p { margin: 4px 0; color: var(--text-3); font-size: 12.5px; }

/* video placeholders */
video.lazyvideo { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ============================ documentation ============================ */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1320px; margin: 0 auto; gap: 0 40px; padding: 0 20px; }
.docs-menu-btn { display: none; }
.docs-side { position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow: auto; padding: 32px 0 40px; scrollbar-width: thin; }
.side-h { margin: 22px 10px 8px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.side-h:first-child { margin-top: 0; }
.docs-side ul { list-style: none; margin: 0; padding: 0; }
.docs-side li a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.docs-side li a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.docs-side li a[aria-current] { color: var(--text); background: var(--accent-soft); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.docs-main { min-width: 0; padding: 44px 0 80px; }
.toc { position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow: auto; padding: 44px 0; font-size: 13.5px; }
.toc-h { margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-3); line-height: 1.45; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.on { color: var(--accent-2); border-left-color: var(--accent); }

.prose { max-width: 780px; }
.prose h1 { margin: 0 0 22px; font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.03em; line-height: 1.2; font-weight: 740; }
.prose h2 { margin: 56px 0 16px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 700; }
.prose h3 { margin: 32px 0 10px; font-size: 18.5px; font-weight: 680; }
.prose h4 { margin: 24px 0 8px; font-size: 16px; }
.prose .anchor { margin-left: 8px; color: var(--text-3); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-2); }
.prose code { font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow: auto; }
.prose pre code { border: 0; background: none; padding: 0; font-size: 13.5px; }
.table-wrap { margin: 20px 0; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 650; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: var(--text-2); }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-2); }
.prose figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--text-3); }
.callout { margin: 22px 0; padding: 14px 18px 14px 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.callout::before { position: absolute; left: 16px; top: 14px; font-size: 16px; line-height: 1.7; }
.callout.tip { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.callout.tip::before { content: "💡"; }
.callout.privacy::before { content: "🔒"; }
.callout.warn::before { content: "⚠️"; }
.callout p { margin: 0; color: var(--text); }
blockquote { margin: 22px 0; padding: 4px 18px; border-left: 2px solid var(--accent); color: var(--text-2); }
.shot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 24px 0; }
.shot figure { margin: 0; }
.shot ul, .shot ol { margin: 4px 0 0; }
.shot li { margin: 0 0 10px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.gallery figure { margin: 0; }
.gallery figure img { aspect-ratio: 10 / 9; object-fit: cover; }
.steps ol { counter-reset: st; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0; }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 13.5px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin-top: 64px; }
.pager a { display: block; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 620; }
.pager a span { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-bottom: 2px; }
.pager a:hover { border-color: var(--line-2); text-decoration: none; }
.pager .next { text-align: right; }
.updated { margin-top: 28px; color: var(--text-3); font-size: 13px; }

/* ============================== responsive ============================== */
@media (max-width: 1180px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 980px) {
  nav.primary, .tools .get { display: none; }
  .menu-toggle { display: inline-grid; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .bento-card.tall { grid-row: auto; }
  .show-row, .show-row.flip { grid-template-columns: 1fr; gap: 26px; }
  .show-row.flip .show-media { order: 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: span 2; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-menu-btn { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; justify-self: start; }
  .docs-side { position: fixed; z-index: 45; top: var(--header); left: 0; bottom: 0; width: min(320px, 86vw); height: auto; padding: 24px 16px; background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .25s ease; }
  .docs-side.open { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .4); }
  .docs-main { padding-top: 20px; }
  .shot { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar { padding: 0 16px; gap: 12px; }
  .lang summary span { display: none; }
  .lang summary { padding: 0 10px; }
  .hero { padding: 56px 0 20px; }
  .eyebrow { font-size: 12.5px; padding: 6px 12px; }
  .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .product { margin-top: 36px; }
  .frame-bar { height: 26px; }
  .frame-bar span { width: 8px; height: 8px; }
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 36px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: auto; }
  .bento-media, .bento-card.wide .bento-media { min-height: 200px; }
  .steps-line { grid-template-columns: 1fr; gap: 28px; }
  .steps-line::before { display: none; }
  .chead, .crow { grid-template-columns: 1fr 1fr; }
  .chead > span:first-child { display: none; }
  .crow .clabel { grid-column: span 2; padding-bottom: 0; font-size: 13px; color: var(--text-3); }
  .chead > span, .crow > span { padding: 12px 14px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px 22px; }
  .price { font-size: 34px; }
  .final-cta { padding: 90px 0 80px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .fbrand { grid-column: auto; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .gallery { gap: 8px; }
  .prose h2 { margin-top: 44px; font-size: 22px; }
}
