/* Artemii marketing site. No third-party assets. Inter is bundled locally (see /fonts). */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-Bold.woff") format("woff"); }

:root {
  --black: #0f0f0f; --amber: #ffa800;
  --bg: #fbfbfa; --bg2: #f4f4f2; --surface: #ffffff; --text: #0f0f0f; --muted: #5e5e58; --line: #e7e7e3; --line-strong: #d2d2cc;
  --accent-text: #8a5200; --btn-bg: #0f0f0f; --btn-fg: #ffffff; --btn-hover: #2a2a2a;
  --shadow: 0 1px 2px rgba(15,15,15,.04), 0 2px 8px rgba(15,15,15,.04), 0 30px 80px -24px rgba(15,15,15,.22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px; --read: 700px; --radius: 22px; --header-h: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0f0f; --bg2: #161616; --surface: #1a1a1a; --text: #f4f4f2; --muted: #a2a29b; --line: #262626; --line-strong: #363636;
  --accent-text: #ffb52e; --btn-bg: #ffffff; --btn-fg: #0f0f0f; --btn-hover: #e4e4e1;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 40px 90px -28px rgba(0,0,0,.85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--text); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.read { max-width: var(--read); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* wordmark: Orbit mark + plain Artemii */
.wm { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 20px; letter-spacing: -0.04em; line-height: 1; color: var(--text); text-decoration: none; white-space: nowrap; }
.mark { display: block; flex: none; color: var(--text); overflow: visible; transform-origin: 50% 50%; }
.mark-nav { width: 22px; height: 22px; }
.mark-foot { width: 20px; height: 20px; }
.wm-foot { gap: 7px; }
.mark-hero { width: clamp(56px, 8vw, 80px); height: clamp(56px, 8vw, 80px); margin: 0 auto 28px; animation: orbit-once 1.8s cubic-bezier(.45,0,.2,1) .15s 1 both; }
@keyframes orbit-once { to { transform: rotate(360deg); } }
@keyframes orbit-hover { to { transform: rotate(360deg); } }
.wm-nav:hover .mark-nav, .wm-nav:focus-visible .mark-nav { animation: orbit-hover 1.2s ease 1; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a.link { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: color .2s; position: relative; }
.site-nav a.link:hover { color: var(--text); }
.site-nav a.link[aria-current="page"] { color: var(--text); }
.site-nav a.link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.icon-btn:hover { color: var(--text); background: var(--bg2); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .burger { display: none; }

/* buttons: black (white in dark) primary, outlined secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-link { color: var(--text); font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.btn-link span { transition: transform .25s; }
.btn-link:hover span { transform: translateX(4px); }
.btn-link:hover { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* type */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.hero .eyebrow { justify-content: center; }
.display { font-size: clamp(3.2rem, 9vw, 7rem); letter-spacing: -0.05em; line-height: 1; }
.h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 15em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.06; }
.h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; font-weight: 600; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 36em; letter-spacing: -0.012em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* sections */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section.alt { background: var(--bg2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 20px; max-width: 36em; }
.page-hero { padding: clamp(72px, 11vw, 144px) 0 clamp(32px, 5vw, 64px); }
.page-hero .lead { margin-top: 24px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 144px) 0 0; text-align: center; }
.hero .lead { margin: 28px auto 40px; max-width: 30em; }
.hero .actions { justify-content: center; }
.hero-shot { margin: clamp(56px, 8vw, 104px) auto 0; width: min(100%, 1080px); }
.hero + .section { padding-top: clamp(96px, 13vw, 180px); }

/* product frames: large, soft, hairline */
.device { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.device-bar span { margin-left: 14px; flex: 1; max-width: 300px; height: 22px; border-radius: 999px; background: var(--bg); font-size: 12px; line-height: 22px; text-align: center; color: var(--muted); overflow: hidden; white-space: nowrap; }
.device img { width: 100%; }
.phone { position: relative; width: min(100%, 250px); border-radius: 40px; padding: 8px; background: #161616; box-shadow: var(--shadow); border: 1px solid var(--line-strong); margin-inline: auto; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 62px; height: 16px; margin-left: -31px; border-radius: 99px; background: #161616; z-index: 2; }
.phone picture, .phone img { border-radius: 32px; overflow: hidden; }
.phone + .phone { margin-top: 28px; }
.caption { margin-top: 20px; font-size: 14.5px; color: var(--muted); text-align: center; }
.caption strong { color: var(--text); font-weight: 600; }

/* cards & grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; transition: border-color .3s; }
.section.alt .card { background: var(--bg); }
:root[data-theme="dark"] .section.alt .card { background: var(--surface); }
.card:hover { border-color: var(--line-strong); }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .h3 { margin-bottom: 10px; }
.icon { width: 24px; height: 24px; color: var(--text); display: block; margin-bottom: 28px; }
.icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; letter-spacing: .01em; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); align-self: flex-start; line-height: 1.5; }
.tag.soon::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.model-card .name { font-size: 2.2rem; letter-spacing: -0.045em; margin: 22px 0 6px; }
.model-card .tagline { color: var(--text); font-weight: 500; margin-bottom: 14px; }
.model-card.featured { border-color: var(--text); }
.meters { display: grid; gap: 10px; margin-top: auto; padding-top: 26px; }
.meter-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.meter i { height: 3px; border-radius: 99px; background: var(--line-strong); display: block; }
.meter i.on { background: var(--amber); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.steps { counter-reset: s; display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; position: relative; padding: 32px 0 32px 76px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 36px; font: 500 14px/1 var(--mono); color: var(--muted); }
.steps h3, .steps h2 { font-size: 1.3rem; margin-bottom: 8px; letter-spacing: -0.025em; }
.steps p { margin: 0; color: var(--muted); max-width: 40em; }
.steps.compact li { padding: 28px 0 28px 76px; }
.steps.compact li::before { top: 32px; }
.readiness { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.readiness span { font-size: 13px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

/* tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15.5px; }
th, td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; letter-spacing: .02em; color: var(--muted); font-weight: 500; background: transparent; }
tbody th { font-weight: 600; width: 22%; }
td .meter { width: 80px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 26px 40px 26px 0; font-weight: 500; font-size: 1.15rem; list-style: none; position: relative; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 28px; color: var(--muted); max-width: 44em; }

/* CTA: quiet, neutral, large type */
.cta { background: var(--bg2); border-top: 1px solid var(--line); text-align: center; padding: clamp(96px, 14vw, 176px) 0; }
.cta .h1 { margin-inline: auto; }
.cta p { color: var(--muted); font-size: 1.2rem; margin: 22px auto 40px; max-width: 28em; }
.cta .actions { justify-content: center; }

/* plans */
.plan { position: relative; }
.plan .tag { margin-bottom: 24px; }
.plan .h2 { font-size: 2.2rem; letter-spacing: -0.045em; margin-bottom: 6px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; border-top: 1px solid var(--line); padding-top: 22px; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1.5px; background: var(--amber); }
.notice { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 28px 32px; }
.notice .h3 { margin-bottom: 8px; }
.notice p:last-child { margin: 0; }

/* prose (legal, long pages) */
.prose { max-width: var(--read); }
.prose h2 { font-size: 1.6rem; margin: 2.4em 0 .6em; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.1rem; margin: 1.8em 0 .5em; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--text); }
.prose li { margin-bottom: .45em; }
.prose .meta { color: var(--muted); font-size: 15px; margin-bottom: 2em; }
.prose pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; overflow-x: auto; font: 14px/1.6 var(--mono); white-space: pre-wrap; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--bg2); padding: 2px 6px; border-radius: 6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 28px; max-width: var(--read); margin-bottom: 2em; }
.toc ol { margin: 8px 0 0; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-nav a { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.legal-nav a:hover { color: var(--text); border-color: var(--line-strong); }
.legal-nav a[aria-current="page"] { color: var(--text); border-color: var(--text); }

/* footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 80px 0 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 13px; letter-spacing: 0; color: var(--text); font-weight: 600; margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid a.wm { color: var(--text); }
.foot-brand p { color: var(--muted); margin-top: 16px; max-width: 24em; }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* motion: slow, small, calm */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mark { animation: none !important; }
}

/* responsive */
@media (max-width: 960px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .js .menu-btn { display: inline-grid; }
  .js .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 24px 28px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; margin-left: 0; }
  .js .site-nav.open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a.link { font-size: 20px; letter-spacing: -0.02em; color: var(--text); padding: 14px 4px; border-radius: 12px; }
  .site-nav a.link[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .site-nav .nav-cta { display: grid; gap: 10px; margin-top: 18px; }
  .bar-actions { margin-left: auto; }
  .bar-actions .btn { display: none; }
  .no-js .site-nav { position: static; flex-wrap: wrap; }
}
@media (min-width: 1001px) { .nav-cta { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .steps li, .steps.compact li { padding: 28px 0 28px 48px; }
  .steps li::before, .steps.compact li::before { top: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { padding: 0 22px; }
  .hero .actions .btn, .cta .actions .btn { width: 100%; }
  .device { border-radius: 14px; }
  .device-bar span { display: none; }
}
@media (forced-colors: active) { .btn-primary { border-color: ButtonText; } }

/* spacing utilities (no inline styles allowed by CSP) */
.mt0 { margin-top: 0 !important; } .mt18 { margin-top: 18px; } .mt20 { margin-top: 20px; } .mt28 { margin-top: 28px; } .mt44 { margin-top: 44px; }
.pt8 { padding-top: 8px !important; } .pt24 { padding-top: 24px !important; }
.meter-row.wide { grid-template-columns: 84px 1fr; }
.usage-bar { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }
.usage-bar i.p40 { width: 40%; } .usage-bar i.p25 { width: 25%; }
td span[aria-hidden="true"] { color: var(--text); font-weight: 500; }
.overlap { position: relative; }
.overlap .phone { position: absolute; right: -3%; bottom: -8%; width: 24%; min-width: 120px; }
@media (max-width: 640px) { .overlap .phone { display: none; } }
.h1 + .lead, .h2 + .lead, .h2 + p, .display + .lead { margin-top: 20px; }
.more { margin-top: 40px; }
.hero + .section { padding-top: clamp(80px, 10vw, 140px); }

.model-card .ver { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.about { padding: clamp(40px, 6vw, 72px) 0; }
.about .lead { margin: 0; font-size: 1.1rem; }


/* ---------- v2 additions ---------- */
.tag.req::before, .tag.unv::before, .tag.new::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.tag.unv::before { background: var(--line-strong); box-shadow: inset 0 0 0 1px var(--muted); }
.tag.new { color: var(--text); border-color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; padding-top: 14px; }
.eyebrow .tag, .h3 .tag { margin-left: 4px; vertical-align: middle; }
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
a.cardlink { text-decoration: none; color: inherit; }
a.cardlink:hover { border-color: var(--text); }
a.cardlink .h3 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
a.cardlink:hover .h3 { text-decoration-color: var(--line-strong); }
.section.tight { padding: clamp(56px, 8vw, 104px) 0; }
.read-wide { max-width: 860px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.chips a:hover { color: var(--text); border-color: var(--line-strong); }
.mt44 { margin-top: 44px; }
.sidepanel { width: min(100%, 300px); margin-inline: auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.sidepanel img { width: 100%; }
.ext-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ext-pair .sidepanel:nth-child(2) { margin-top: 36px; }
@media (max-width: 640px) { .ext-pair { grid-template-columns: 1fr; } .ext-pair .sidepanel:nth-child(2) { display: none; } }
.diagram-wrap { max-width: 720px; }
.diagram { width: 100%; height: auto; color: var(--text); }
.dg-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.dg-hero { fill: var(--bg2); stroke: var(--text); stroke-width: 1.4; }
.dg-amber { fill: var(--surface); stroke: var(--amber); stroke-width: 1.6; }
.dg-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 3 5; }
.dg-t { fill: var(--text); font: 500 14px var(--font); }
.dg-sm { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.dg-ink { stroke: var(--text); }
.levels { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 22px 0 6px; background: var(--surface); }
.levels > div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.levels > div:last-child { border-bottom: 0; }
.levels span:last-child { color: var(--muted); }
.notice.read { max-width: 760px; }
.release { padding: 40px 0; border-bottom: 1px solid var(--line); }
.release time { font: 500 14px var(--mono); color: var(--muted); }
.release h2 { margin: 10px 0 24px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.release h3 { margin: 26px 0 8px; font-size: 1.05rem; }
.release ul { color: var(--text); }
.release li { margin-bottom: .5em; }
code { font-family: var(--mono); font-size: .92em; }
.card code, .notice code, .answer code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; }

/* faq search */
.faq-search { display: none; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.js .faq-search { display: flex; }
.faq-search input { width: min(100%, 460px); min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 400 16px var(--font); }
.faq-search input:focus-visible { outline-offset: 2px; }
.faq-group { margin-bottom: 48px; }
.faq-h { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -.01em; color: var(--muted); font-weight: 500; }
.faq-group .faq { border-top: 1px solid var(--line); }
.faq-none { color: var(--muted); }
[data-faq-item][hidden], [data-faq-group][hidden] { display: none; }

/* code blocks */
.code { position: relative; margin: 1.2em 0 1.4em; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font); color: var(--muted); min-height: 42px; }
.copy { font: 500 12.5px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 30px; }
.copy:hover { border-color: var(--text); }
.copy[data-done="1"] { border-color: var(--amber); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.65 var(--mono); tab-size: 2; -moz-tab-size: 2; background: transparent; border: 0; border-radius: 0; white-space: pre; color: var(--text); }
.code pre:focus-visible { outline-offset: -3px; }
.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.code-cap { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tk-c { color: #5e5e58; font-style: italic; } .tk-s { color: #0b6b3a; } .tk-k { color: #6b3fa0; } .tk-n { color: #0b5cad; } .tk-f { color: #8a5200; } .tk-v { color: #0b5cad; } .tk-t { color: #6b3fa0; }
:root[data-theme="dark"] .tk-c { color: #a2a29b; } :root[data-theme="dark"] .tk-s { color: #86d9a1; } :root[data-theme="dark"] .tk-k { color: #c9aef7; } :root[data-theme="dark"] .tk-n { color: #7fb8f6; } :root[data-theme="dark"] .tk-f { color: #ffb52e; } :root[data-theme="dark"] .tk-v { color: #7fb8f6; } :root[data-theme="dark"] .tk-t { color: #c9aef7; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; padding: 16px 20px; margin: 1.4em 0; background: var(--surface); }
.callout h3 { margin: 0 0 6px !important; font-size: 1rem !important; }
.callout p { margin: 0; }
.callout.warn { border-left-color: var(--text); }

/* docs layout */
.docs-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); }
.docs-h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.docs-hero .lead { margin-top: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: clamp(28px, 4vw, 56px); padding-bottom: 96px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.docs-group { margin-bottom: 24px; }
.docs-group h2 { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.docs-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-group a { display: block; padding: 7px 12px; margin-left: -12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.docs-group a:hover { color: var(--text); background: var(--bg2); }
.docs-group a[aria-current="page"] { color: var(--text); background: var(--bg2); box-shadow: inset 2px 0 0 var(--amber); }
.docs-menu { display: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.docs-menu summary { cursor: pointer; padding: 14px 18px; font-weight: 500; list-style: none; }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary::after { content: "+"; float: right; color: var(--muted); }
.docs-menu[open] summary::after { content: "\2212"; }
.docs-menu nav { padding: 4px 18px 14px; }
.docs-body { min-width: 0; max-width: 780px; }
.docs-body > :first-child { margin-top: 0; }
.docs-body h2 { font-size: 1.7rem; margin: 2.2em 0 .6em; padding-top: .2em; }
.docs-body > h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 1.12rem; margin: 1.7em 0 .5em; }
.docs-body table.dt { min-width: 0; font-size: 14.5px; }
.docs-body table.dt th, .docs-body table.dt td { padding: 12px 16px; }
.docs-body table.dt tbody th { width: auto; font-weight: 600; }
.docs-body .table-wrap { margin: 1.2em 0 1.6em; }
.docs-body .grid { margin: 1.4em 0 2em; }
.docs-body .card { padding: 26px; }
.docs-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.docs-toc h2 { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 2px 0 2px 14px; color: var(--muted); text-decoration: none; }
.docs-toc a:hover { color: var(--text); }
.docs-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.docs-pn a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; text-decoration: none; font-weight: 500; }
.docs-pn a:hover { border-color: var(--text); }
.docs-pn a span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.docs-pn .next { text-align: right; grid-column: 2; }
.docs-cards .card { padding: 28px; }
@media (max-width: 1180px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; } .docs-side { position: static; max-height: none; overflow: visible; } .docs-nav { display: none; } .docs-menu { display: block; } }

/* print: legal and docs read well on paper */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --bg2: #fff; --surface: #fff; --text: #000; --muted: #333; --line: #bbb; --line-strong: #888; --accent-text: #000; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .site-header, .site-footer, .skip, .cta, .legal-nav, .docs-side, .docs-toc, .docs-pn, .copy, .chips, .faq-search, .reveal.more { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .section, .section.tight, .page-hero, .docs-hero { padding: 12pt 0 !important; background: none !important; }
  .wrap { width: 100%; }
  .docs { display: block; }
  .prose a[href^="http"]::after, .prose a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333; word-break: break-all; }
  .prose a[href^="mailto"]::after { content: ""; }
  pre, .code pre { white-space: pre-wrap; word-break: break-word; overflow: visible; border: 1px solid #bbb; page-break-inside: avoid; }
  .code { border: 0; } .code-head { display: none; }
  h1, h2, h3 { page-break-after: avoid; }
  .card, .notice, details { break-inside: avoid; }
  details > summary::after { display: none; }
  .tk-c, .tk-s, .tk-k, .tk-n, .tk-f, .tk-v, .tk-t { color: #000 !important; }
  .device, .phone, .sidepanel { box-shadow: none; }
}
.section.tight .split .h2, .section.tight .read-wide .h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.split > *, .grid > *, .docs > * { min-width: 0; }
.code { max-width: 100%; }
.legal-banner { padding: 16px 20px; margin-bottom: 18px; border-left: 3px solid var(--accent, #ffa800); }
.legal-banner p { font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--muted); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
@media (min-width: 1000px) { .prose .table-wrap { width: min(1000px, 100%); max-width: none; } .prose:has(.table-wrap) { max-width: none; } .prose:has(.table-wrap) > :not(.table-wrap):not(h2):not(h3) { max-width: var(--read); } }

/* Scrollbars: thin, rounded, theme-aware (Claude-style) instead of the device's default bars. */
* { scrollbar-gutter: auto; }
*::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--text, #888) 20%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; min-width: 40px; }
*::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--text, #888) 38%, transparent); }
*::-webkit-scrollbar-thumb:active { background-color: color-mix(in srgb, var(--text, #888) 50%, transparent); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text, #888) 28%, transparent) transparent; }
}
@media (hover: none) and (pointer: coarse) { *::-webkit-scrollbar { width: 6px; height: 6px; } *::-webkit-scrollbar-thumb { border-width: 1px; } }
