/* matteflux.com — site styles. The video layer itself comes from the
   product's own matteflux.css, loaded before this file. */

:root {
  --bg: #0c0c0b;
  --surface: #121210;
  --surface-2: #171715;
  --line: rgba(237, 232, 222, 0.1);
  --line-2: rgba(237, 232, 222, 0.18);
  --text: #ede8de;
  --text-on-media: #e6e0d4;
  --muted: #a8a297;
  --faint: #8e897f;
  --accent: #e8aa68;
  --on-accent: #1a1206;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ type */
.display { font-family: var(--serif); font-size: clamp(52px, 7.4vw, 116px); line-height: 0.98; letter-spacing: -0.02em; max-width: 12ch; }
.h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.h1-num { font-size: 0.32em; vertical-align: 0.9em; color: var(--muted); letter-spacing: 0; }
.h2 { font-family: var(--serif); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.015em; }
.lead { font-size: 16px; color: var(--muted); max-width: 34em; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kicker a { text-decoration: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.placeholder { padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--accent); font-family: var(--mono); font-size: 14px; }

/* ---------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--line { border-bottom: 1px solid var(--line); }
.stack > * + * { margin-top: 32px; }
.stack-lg > * + * { margin-top: clamp(36px, 4vw, 56px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head .kicker { margin-bottom: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.split__side > * + * { margin-top: 20px; }
.split--detail { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.sticky { position: sticky; top: 100px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-cards { gap: 48px 24px; }
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--detail { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
}

/* ---------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: #fff; color: var(--bg); }
.btn--ghost { border-color: rgba(237, 232, 222, 0.4); color: var(--text); }
.btn--ghost:hover { background: rgba(237, 232, 222, 0.1); color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line-2); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg--block { display: flex; }
.seg--block .seg__btn { flex: 1; }
.seg__btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; white-space: nowrap; }
.seg__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.pill { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.pill:hover { color: var(--text); }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tag--soft { color: var(--accent); border-color: rgba(232, 170, 104, 0.4); }
.tag--on-media { background: rgba(8, 8, 9, 0.6); border-color: transparent; color: var(--text); }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); white-space: nowrap; }

/* ---------------------------------------------------------- header */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header--overlay { position: fixed; inset: 0 0 auto 0; border-bottom: 0; padding-top: env(safe-area-inset-top, 0px); }
.site-header--overlay::after { content: ""; position: absolute; inset: 0; height: 180px; background: linear-gradient(var(--bg), transparent); pointer-events: none; z-index: -1; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.wordmark { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.wordmark--lg { font-size: clamp(44px, 5vw, 64px); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 14px; }
.site-nav a:not(.btn) { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle__close, .nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12, 12, 11, 0.4); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 0; z-index: 50; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 96px var(--gutter) 48px; background: var(--bg); font-size: 28px; font-family: var(--serif); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .site-nav .btn { margin-top: 16px; font-family: var(--sans); font-size: 15px; }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .nav-open .nav-toggle, .nav-open .wordmark { position: relative; z-index: 60; }
  .nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------ heroes */
.site-hero { display: flex; flex-direction: column; justify-content: center; min-height: max(640px, 100svh); position: sticky; top: 0; z-index: 0; will-change: transform, opacity; }
.site-hero ~ * { position: relative; z-index: 1; background: var(--bg); }
.site-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-block: 140px 120px; }
.site-hero__inner .display { margin-inline: auto; }
.lead--hero { color: var(--text-on-media); margin-inline: auto; max-width: 36em; }
.site-hero .kicker, .page-hero .kicker { color: #d9d3c7; }
.site-hero__bar { position: absolute; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: #d9d3c7; }
.now-playing { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; text-align: left; }
.now-playing .dot { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.page-hero { min-height: clamp(420px, 56svh, 620px); display: flex; align-items: flex-end; }
.page-hero--set { min-height: clamp(520px, 78svh, 820px); }
.page-hero__inner { padding-block: 140px 56px; display: flex; flex-direction: column; gap: 18px; }
.page-hero__inner .lead { color: var(--text-on-media); }
.page-head { padding-block: 64px 24px; }
.page-head .lead { margin-top: 16px; }

/* ------------------------------------------------------ set switcher */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: #1a1814; }
.chip__thumb { flex: none; width: 64px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; }
.chip__thumb img { width: 100%; height: 100%; object-fit: cover; }
.chip__text { display: flex; flex-direction: column; font-size: 14px; font-weight: 500; line-height: 1.3; }
.chip__text .mono { font-size: 11px; font-weight: 400; }

@media (max-width: 1080px) {
  .chips { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
}

.pv-controls { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.pv-controls > * + * { margin-top: 20px; }
.pv-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.pv-slider > * + * { margin-top: 10px; }
.pv-slider input { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); }

/* ----------------------------------------------------- preview frame */
.pv { --pv-ink: #f3efe7; }
.pv[data-device="desktop"] .pv-mobile, .pv[data-device="mobile"] .pv-desktop { display: none; }
.pv-desktop { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #f3f0ea; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.pv-chrome { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: #1a1a18; }
.pv-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: #3a3935; }
.pv-url { flex: 1; margin-left: 8px; height: 24px; border-radius: 6px; background: #252522; font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pv-hero, .pv-footer { position: relative; overflow: hidden; background: #0a0b0e; color: var(--pv-ink); }
.pv-hero { aspect-ratio: 16 / 9; }
.pv-footer { aspect-ratio: 3 / 1; }
.pv-hero--m { aspect-ratio: 9 / 16; }
.pv-footer--m { aspect-ratio: 4 / 5; }
.pv-media, .pv-poster, .pv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-video { opacity: 0; transition: opacity .5s; }
.pv-media.is-playing .pv-video { opacity: 1; }
.pv-media .mf-bg__overlay { position: absolute; inset: 0; background: rgb(8 8 9 / var(--mf-overlay, 0.2)); }
.pv-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 4% 4.5%; font-size: clamp(9px, 1.1vw, 12px); letter-spacing: 0.06em; }
.pv-hero-copy { position: absolute; left: 4.5%; right: 25%; bottom: 7%; display: flex; flex-direction: column; gap: 10px; font-size: clamp(10px, 1.1vw, 13px); color: #e3ddd1; }
.pv-h { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 44px); line-height: 1.02; color: var(--pv-ink); }
.pv-btn { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: var(--pv-ink); color: #121211; font-size: 0.95em; }
.pv-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 3.5% 4.5%; color: #1c1b18; font-size: clamp(10px, 1vw, 12px); font-weight: 500; }
.pv-body i { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 4px; background: #d6cfc3; }
.pv-footer-copy { position: absolute; inset: auto 4.5% 8% 4.5%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: clamp(10px, 1vw, 12px); color: #e3ddd1; }
.pv-footer-copy .pv-h { font-size: clamp(18px, 2.4vw, 32px); }
.pv-mobile { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pv-phone { width: min(320px, 100%); height: 660px; padding: 10px; border-radius: 48px; background: #1a1a18; border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); overflow: hidden; }
.pv-phone > div:first-child { border-radius: 38px 38px 0 0; }
.pv-phone { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background-clip: padding-box; }
.pv-phone::-webkit-scrollbar { display: none; }
.pv-phone .pv-h { font-size: 34px; }
.pv-phone .pv-footer-copy { flex-direction: column; align-items: flex-start; }
.pv-phone .pv-footer-copy .pv-h { font-size: 28px; }
.pv-phone .pv-hero-copy { right: 6%; left: 7%; font-size: 12px; }
.pv-phone .pv-nav { padding: 24px 22px; font-size: 11px; }
.pv-body--m { grid-template-columns: minmax(0, 1fr); background: #f3f0ea; padding: 20px 22px; }
.pv-footer--m { border-radius: 0 0 38px 38px; }
.pv-note { font-size: 13px; color: var(--faint); text-align: center; max-width: 30em; }

/* -------------------------------------------------------- set cards */
.set-card__link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.set-card__media { display: flex; flex-direction: column; gap: 3px; border-radius: 12px; overflow: hidden; }
.set-card__hero, .set-card__footer { position: relative; overflow: hidden; background: #111; }
.set-card__hero { aspect-ratio: 16 / 9; }
.set-card__footer { aspect-ratio: 3 / 1; }
.set-card__media img, .set-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.set-card__media video { opacity: 0; transition: opacity .4s; }
.set-card__media .is-playing video { opacity: 1; }
.set-card__media .tag { position: absolute; left: 10px; top: 10px; }
.set-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 4px; }
.set-card__name { font-family: var(--serif); font-size: 30px; line-height: 1; }
.set-card__num { font-size: 12px; color: var(--muted); margin-right: 6px; vertical-align: 0.35em; }
.set-card__link:hover .set-card__name { color: var(--accent); }
.set-card__price { font-size: 14px; color: var(--muted); white-space: nowrap; }
.set-card__desc { color: var(--muted); font-size: 15px; }
.set-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
[data-view="hero"] .set-card__footer, [data-view="footer"] .set-card__hero { display: none; }
[data-view="footer"] .set-card__footer { aspect-ratio: 3 / 1.4; }

.filters { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter__label { margin-right: 4px; }

/* ------------------------------------------------------- how / why */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.steps__n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 20px; font-weight: 500; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps + .code { margin-top: clamp(48px, 5vw, 72px); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature svg { color: var(--accent); }
.feature h3 { font-size: 18px; font-weight: 500; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.works { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.works__list { list-style: none; display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 5vw, 72px); font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: #d9d3c7; }
.works__note { max-width: 240px; }

/* ------------------------------------------------------------- code */
.code { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.code pre { margin: 0; padding: 22px 20px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #d9d3c7; tab-size: 2; }

/* ---------------------------------------------------------- pricing */
.pricing > * + * { margin-top: 24px; }
.pricing__bar { display: flex; justify-content: flex-end; }
.price-card { display: flex; flex-direction: column; gap: 22px; padding: 32px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.price-card--featured { border-color: var(--accent); background: #16140f; }
.price-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price-card h3 { font-size: 18px; font-weight: 500; }
.price-card__price { font-family: var(--serif); font-size: 56px; line-height: 1; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; color: #d9d3c7; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; color: var(--accent); }
@media (max-width: 1080px) { .pricing .grid-3 { grid-template-columns: minmax(0, 1fr); } .pricing__bar { justify-content: flex-start; } }

.buy__panel { padding: 28px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.buy__price { font-family: var(--serif); font-size: 48px; line-height: 1; }

/* ------------------------------------------------------------- free */
.free { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 20px; background: #141412; border: 1px solid var(--line); }
.free__copy > * + * { margin-top: 16px; }
.free__cta > * + * { margin-top: 20px; }
.free__form { display: flex; flex-direction: column; gap: 12px; }
.free__form label { font-size: 14px; color: #d9d3c7; }
.free__row { display: flex; gap: 8px; flex-wrap: wrap; }
.free__row input { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); }
.free__row input::placeholder { color: var(--faint); }
[data-free-status].is-error { color: var(--accent); }
@media (max-width: 860px) { .free { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 14px 0; font-size: 18px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--muted); }
.faq__icon::after { transform: rotate(90deg); transition: transform .2s; }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { padding: 0 48px 26px 0; color: var(--muted); }
.faq-more { margin-top: 32px; }

/* ------------------------------------------------------ tables, docs */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font-weight: 500; }
.table tr:last-child > * { border-bottom: 0; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
.specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
@media (max-width: 680px) { .specs { grid-template-columns: minmax(0, 1fr); } .specs div:nth-child(odd) { border-right: 0; } .specs div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); } .specs div:last-child { border-bottom: 0; } }
.tree { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.tree strong { color: var(--text); font-weight: 500; margin-right: 8px; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.docs__toc { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.docs__toc a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.docs__toc a:hover { color: var(--text); }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } .docs__toc { position: static; } }
.foot-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #d9d3c7; padding-bottom: 8px; }

.prose { max-width: 760px; font-size: 16.5px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin-top: 64px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--faint); }
.prose :not(pre) > code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.prose .code { margin-top: 32px; margin-bottom: 32px; }
.qa dt { font-weight: 500; margin-top: 18px; }
.qa dd { margin: 6px 0 0; color: var(--muted); }

/* ----------------------------------------------------------- footer */
.site-footer { display: flex; }
.site-footer__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding-block: 56px max(32px, env(safe-area-inset-bottom, 0px)); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; color: var(--text-on-media); }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 24px clamp(28px, 4vw, 56px); font-size: 14px; }
.site-footer__nav > div { display: flex; flex-direction: column; }
.site-footer__nav a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: #d9d3c7; }
@media (max-width: 680px) { .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__nav a { min-height: 40px; } }

/* ------------------------------------------------------ small screens */
.seg--block .seg__btn { white-space: normal; line-height: 1.2; padding: 6px 10px; }
@media (max-width: 680px) {
  .table { font-size: 14px; }
  .table th, .table td { padding: 12px 12px; }
  .pv-controls .seg__btn { padding: 0 12px; }
}
