/* Steelyard documentation + support site. Tokens first, then base, chrome, landing, docs, support. */
:root {
  --ink: #101214;
  --ink-2: #3d4247;
  --muted: #676d74;
  --surface: #f4f5f6;
  --line: #e4e6e9;
  --accent: #0f2bff;
  --accent-hover: #0a1fcc;
  --accent-on-dark: #8c9bff;
  --field: #9299a1;
  --btn-line: #c9cdd2;
  --dark-line: #2e3338;
  --dark-text: #c9cdd2;
  --white: #ffffff;
  --danger: #b42318;
  --ok: #0b7a43;

  --gutter: max(20px, 3.9%);
  --maxw: 1560px;
  --header-h: 76px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step-h2: clamp(30px, 3.2vw, 44px);
  --panel-pad: clamp(12px, 1.7vw, 24px);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button { font-family: inherit; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main, .page > .docs { flex: 1 0 auto; }

.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.strong-ink { font-weight: 600; color: var(--ink); }
.strong-white { font-weight: 600; color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit; letter-spacing: -0.01em;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #000; color: var(--white); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { color: var(--ink); background: var(--surface); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; gap: 10px; }
.btn--outline.btn--lg { padding: 0 26px; }
.site-cta--soon { cursor: default; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; flex: none; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__bar {
  position: relative; max-width: var(--maxw); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { flex: none; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 22px; line-height: 24px; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.site-nav { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 2px; font-size: 15px; line-height: 20px; font-weight: 500; }
.site-nav a { height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink); text-decoration: none; display: flex; align-items: center; }
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--surface); font-weight: 600; }

.site-search { position: relative; flex: 0 1 300px; min-width: 0; }
body.docs-page .site-search { flex-basis: 340px; }
.site-search__field {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--surface);
}
.site-search__field svg { flex: none; }
.site-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; outline: none; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 15px; letter-spacing: -0.01em; -webkit-appearance: none; appearance: none;
}
.site-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search__field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-search__results {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: min(560px, calc(100vw - 40px)); max-height: min(70vh, 520px);
  overflow-y: auto; padding: 8px; border: 1px solid var(--btn-line); border-radius: var(--r-md); background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 18, 20, 0.12);
}
.sr-item { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.sr-item:hover, .sr-item.is-active { background: var(--surface); color: var(--ink); }
.sr-item.is-active { outline: 2px solid var(--accent); outline-offset: -2px; }
.sr-item__path { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }
.sr-item__title { display: block; font-size: 15px; line-height: 22px; font-weight: 600; }
.sr-item__snip { display: block; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.sr-item mark { background: rgba(15, 43, 255, 0.12); color: inherit; border-radius: 3px; }
.sr-empty { padding: 12px; color: var(--ink-2); font-size: 15px; }

.icon-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }

html:not(.js) .site-search { display: none; }

/* ---------- footer ---------- */
.site-footer { flex: none; margin-top: 96px; border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px;
}
.site-footer__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.site-footer__brand { font-weight: 700; font-size: 20px; line-height: 24px; letter-spacing: -0.03em; }
.site-footer__meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.site-footer__meta a { color: var(--ink); font-weight: 600; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 15px; line-height: 20px; font-weight: 500; }
.site-footer__nav a, .footer-soon { min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; color: var(--ink); }
.footer-soon { color: var(--muted); }

/* ---------- landing ---------- */
.sec { box-sizing: border-box; max-width: var(--maxw); margin: 0 auto; padding: 96px var(--gutter) 0; width: 100%; }
.sec h2, .head-split h2 { font-weight: 600; font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
.sec h2.wide { max-width: 900px; }
.sec__fine { margin: 16px 0 32px; max-width: 900px; font-size: 14px; line-height: 22px; color: var(--muted); text-wrap: pretty; }
.sec__note { margin: 24px 0 0; max-width: 820px; color: var(--ink-2); text-wrap: pretty; scroll-margin-top: 100px; }
#presets, .sec [id] { scroll-margin-top: 96px; }
.body { margin-top: 20px; color: var(--ink-2); text-wrap: pretty; }
.body--tight { margin-top: 12px; }
.sub { margin: 28px 0 12px; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.sub--sm { margin: 0 0 6px; }

.hero { padding-top: 56px; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-weight: 600; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.hero__sub { margin-top: 24px; max-width: 560px; font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; text-wrap: pretty; }
.hero__body { margin-top: 12px; max-width: 560px; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.hero__price { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.hero__amount { font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -0.04em; }
.hero__note { font-size: 15px; line-height: 22px; color: var(--muted); }
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__meta { margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--muted); }
.hero__shot { flex: 1 1 560px; min-width: 0; }

/* panels and screenshot crops (the boards crop one 1512x771 capture per panel) */
.panel { padding: var(--panel-pad); border-radius: var(--r-lg); background: var(--surface); }
.panel--stack { display: flex; flex-direction: column; gap: 16px; }
.panel--gap { display: flex; flex-direction: column; gap: 12px; }
.panel--row { display: flex; align-items: flex-start; gap: 12px; }
.panel--sm { padding: 16px; border-radius: var(--r-md); }
.crop { position: relative; overflow: hidden; background: var(--white); border-radius: var(--r-md); }
.crop img { position: absolute; max-width: none; height: auto; }
.inset { padding: clamp(8px, 1.1vw, 16px); border-radius: var(--r-md); background: var(--white); }
.panel--sm .inset { padding: 12px; border-radius: var(--r-sm); }
.panel--sm .crop { border-radius: var(--r-sm); }
.inset .crop { border-radius: 0; background: transparent; }
.shot-in { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shot-in figcaption { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.shot { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.shot + .shot { margin-top: 20px; }
.shot figcaption { font-size: 14px; line-height: 20px; color: var(--muted); }

.crop--hero { aspect-ratio: 528 / 500; }
.crop--hero img { top: -19.2%; left: -178.977%; width: 286.364%; }
.crop--pdp { aspect-ratio: 637 / 279; }
.crop--pdp img { top: -41.577%; left: -131.24%; width: 237.363%; }
.crop--cart { aspect-ratio: 680 / 104; }
.crop--cart img { top: -319.231%; left: -10%; width: 222.353%; }
.crop--quick1 { aspect-ratio: 1433 / 296; }
.crop--quick1 img { top: -32.432%; left: -2.791%; width: 105.513%; }
.crop--quick2 { aspect-ratio: 1394 / 88; background: var(--ink); border-radius: clamp(12px, 2.1vw, 28px); }
.crop--quick2 img { top: -748.864%; left: -4.232%; width: 108.465%; }
.crop--showcase { aspect-ratio: 366 / 444; }
.crop--showcase img { top: -37.613%; left: -100.273%; width: 413.115%; }
.crop--counter { aspect-ratio: 1092 / 444; }
.crop--counter img { top: -73.649%; left: -34.158%; width: 138.462%; }
.crop--search { aspect-ratio: 1063 / 652; border-radius: 26px; }
.crop--search img { top: -0.613%; left: -37.441%; width: 142.239%; }
.crop-scroll { border-radius: var(--r-md); }
.crop-scroll > .crop { border-radius: var(--r-md); }
.shot-in--card { flex: 366 1 0; }
.shot-in--list { flex: 1092 1 0; }

.presets { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.preset { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-md); background: var(--surface); }
.preset__head { display: flex; flex-direction: column; gap: 20px; }
.preset h3 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.dot { width: 14px; height: 14px; border-radius: var(--r-pill); flex: none; display: block; }
.dot--steelyard { background: #0f2bff; }
.dot--axle { background: #c81e0f; }
.dot--solder { background: #ffc400; }
.dot--trellis { background: #0b7a43; }
.dot--refill { background: #007a7a; }
.preset__blurb { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.preset__demo { font-size: 14px; line-height: 20px; color: var(--muted); }
.preset__link {
  margin-top: auto; padding-top: 10px; min-height: 44px; display: flex; align-items: center; gap: 6px;
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.preset__link svg { flex: none; }
.preset__link--static { color: var(--muted); }

/* two-column feature blocks: text, shot, details (stacked in that order on small screens) */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; }
.split__intro, .split__details { min-width: 0; }
.split__intro .body:first-of-type { margin-top: 16px; }
.split__details .sub:first-child { margin-top: 28px; }
.split__shot { min-width: 0; }
.split__intro { order: 1; }
.split__shot { order: 2; }
.split__details { order: 3; }
@media (min-width: 1100px) {
  .split { align-items: center; }
  .split--tiers { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .split--tiers .split__intro { grid-column: 1; grid-row: 1; align-self: end; order: 0; }
  .split--tiers .split__details { grid-column: 1; grid-row: 2; align-self: start; order: 0; }
  .split--tiers .split__shot { grid-column: 2; grid-row: 1 / span 2; order: 0; }
  .split--search { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
  .split--search .split__shot { grid-column: 1; grid-row: 1 / span 2; order: 0; }
  .split--search .split__intro { grid-column: 2; grid-row: 1; align-self: end; order: 0; }
  .split--search .split__details { grid-column: 2; grid-row: 2; align-self: start; order: 0; }
}
.split--search .split__intro .body:first-of-type { margin-top: 20px; }
.split--search .split__details { margin-top: 8px; }
.rows { list-style: none; padding: 0; display: flex; flex-direction: column; color: var(--ink-2); }
.rows > li { padding: 12px 0; border-top: 1px solid var(--line); }
.rows--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px; }
.rows--narrow { margin-top: 24px; max-width: 420px; border-bottom: 1px solid var(--line); }
.rows-note { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--muted); }
.feature { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); text-wrap: pretty; }
.split--search .feature:first-child { margin-top: 28px; }

.head-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; margin-bottom: 40px; }
.head-split > h2 { flex: 1 1 420px; min-width: 0; }
.head-split__body { flex: 1.6 1 560px; min-width: 0; color: var(--ink-2); }
.body-stack { display: flex; flex-direction: column; gap: 12px; }
.body-stack p { text-wrap: pretty; }
.head-split--faq { margin-bottom: 0; }
.head-split--faq > h2 { flex-basis: 300px; }
.head-split--faq .faq { flex: 2.2 1 560px; }

/* quick order: heading and list on top, screenshot below; on phones the screenshot sits between them */
.quick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.quick__head { order: 1; }
.quick__shot { order: 2; margin-top: 24px; }
.quick__list { order: 3; margin-top: 20px; }
@media (min-width: 761px) {
  .quick { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 48px; }
  .quick__head { grid-column: 1; grid-row: 1; order: 0; }
  .quick__list { grid-column: 2; grid-row: 1; order: 0; margin-top: 0; }
  .quick__shot { grid-column: 1 / -1; grid-row: 2; order: 0; margin-top: 40px; }
}
.quick__head h2 { font-weight: 600; font-size: var(--step-h2); line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }

.dark-panel {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; padding: clamp(24px, 3.9vw, 56px);
  border-radius: var(--r-lg); background: var(--ink); color: var(--white);
}
.dark-panel h2 { flex: 1 1 380px; min-width: 0; }
.dark-list { flex: 1.5 1 520px; min-width: 0; list-style: none; padding: 0; display: flex; flex-direction: column; color: var(--dark-text); }
.dark-list li { padding: 16px 0; border-top: 1px solid var(--dark-line); text-wrap: pretty; }
.dark-list li:first-child { padding-top: 0; padding-bottom: 16px; border-top: 0; }
.dark-list li:last-child { padding-bottom: 0; }
.dark-list a { color: var(--accent-on-dark); font-weight: 600; }
.dark-list a:focus-visible, .dark-panel a:focus-visible { outline-color: var(--accent-on-dark); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; }
.compare { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 20px; font-variant-numeric: tabular-nums; }
.compare thead tr { background: var(--surface); }
.compare thead td:first-child { width: 23%; padding: 16px 16px 16px 24px; }
.compare thead th { padding: 16px; text-align: start; font-weight: 600; color: var(--ink-2); }
.compare thead th:nth-child(2) { width: 14%; font-weight: 700; color: var(--ink); }
.compare tbody { vertical-align: top; color: var(--ink-2); }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { padding: 14px 16px 14px 24px; text-align: start; font-weight: 600; color: var(--ink); }
.compare td { padding: 14px 16px; }
.compare td.is-ours { background: var(--surface); font-weight: 600; color: var(--ink); }
.compare td.is-quiet { color: var(--muted); }
.link-arrow {
  margin-top: 8px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

.faq { border-bottom: 1px solid var(--line); min-width: 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 0;
  font-size: 18px; line-height: 24px; font-weight: 600;
}
.faq__x { width: 32px; height: 32px; flex: none; border-radius: var(--r-pill); background: var(--surface); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.faq__item[open] .faq__x { transform: rotate(45deg); }
.faq__a { max-width: 720px; padding: 0 0 24px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; text-wrap: pretty; }
.faq__a a { font-weight: 600; }

.simple { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 0; width: 100%; }
.simple h1 { font-weight: 600; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.simple .lead { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--ink-2); }

/* ---------- docs ---------- */
.docs {
  box-sizing: border-box; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 0;
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 232px; column-gap: 56px; align-items: start;
}
.docs-nav {
  position: sticky; top: 101px; max-height: calc(100vh - 125px); overflow-y: auto; margin-inline-start: -12px; padding-bottom: 24px;
  display: flex; flex-direction: column; font-size: 15px; line-height: 20px;
}
.docs-nav > * { flex: none; }
.docs-toc > * { flex: none; }
.docs-nav__group { padding: 22px 12px 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.docs-nav__group:first-child { padding-top: 6px; }
.docs-nav__link { min-height: 40px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; }
.docs-nav__link:hover { background: var(--surface); color: var(--ink); }
.docs-nav__link.is-current { color: var(--ink); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.docs-nav__link.is-current svg { flex: none; }
.docs-nav__sub { margin-inline-start: 16px; display: flex; flex-direction: column; font-size: 14px; }
.docs-nav__sub a { min-height: 36px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; }
.docs-nav__sub a:hover { background: var(--surface); color: var(--ink); }
.docs-nav__sub a.is-active { background: var(--surface); color: var(--ink); font-weight: 600; }

.docs-main { min-width: 0; padding-top: 6px; }
.docs-toc {
  position: sticky; top: 101px; max-height: calc(100vh - 125px); overflow-y: auto; padding-top: 6px;
  display: flex; flex-direction: column; font-size: 14px; line-height: 20px;
}
.docs-toc h2 { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.docs-toc__help { margin-top: 20px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.toc__a { min-height: 36px; padding: 6px 0; display: flex; align-items: center; color: var(--ink-2); text-decoration: none; }
.toc__a:hover { color: var(--ink); text-decoration: underline; }
.toc__a--3 { padding-inline-start: 14px; font-size: 13px; }
.toc__a.is-active { color: var(--ink); font-weight: 600; }
.docs-bar { display: none; }
.toc-d { display: none; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs__cur { color: var(--ink); }

.prose { color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h1 { margin-top: 20px; font-weight: 600; font-size: 48px; line-height: 52px; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.prose .lead { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.prose h2 { margin-top: 48px; font-weight: 600; font-size: 30px; line-height: 34px; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: 36px; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; color: var(--ink); }
.prose h4 { margin-top: 28px; font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; color: var(--ink); }
.prose h5, .prose h6 { margin-top: 24px; font-weight: 600; font-size: 16px; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose h4 + * { margin-top: 12px; }
.prose [id] { scroll-margin-top: 100px; }
.prose p { margin-top: 16px; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: inherit; font-weight: 600; color: var(--ink); padding: 2px 7px; border-radius: 7px; background: var(--surface);
  overflow-wrap: anywhere;
}
.prose ul { margin-top: 16px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; list-style: disc; }
.prose ul li::marker { color: var(--muted); }
.prose ul ul { margin-top: 8px; }
.prose li > ul { margin-top: 10px; }
.prose ol.steps { margin-top: 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; }
.prose ol.steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
.step-n {
  width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 15px; line-height: 32px;
  font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
.step-body { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step-body > * { margin-top: 0 !important; }
.step-body > p:first-child { margin-top: 4px !important; }
.prose dl.kv { display: grid; grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); margin-top: 0; }
.prose dl.kv dt { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.prose dl.kv dd { padding: 12px 0; border-top: 1px solid var(--line); text-wrap: pretty; }

.callout { margin-top: 24px; padding: 20px 24px; border-radius: var(--r-md); background: var(--surface); display: flex; align-items: flex-start; gap: 14px; }
.callout svg { flex: none; margin-top: 2px; }
.callout p { margin: 0; text-wrap: pretty; }

.code { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 16px; background: var(--surface); }
.step-body .code { margin-top: 0 !important; }
.code pre { margin: 0; min-width: 0; flex: 1; overflow-x: auto; font-family: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: pre; padding: 4px 0; }
.prose .code code { padding: 0; background: none; font-weight: inherit; border-radius: 0; overflow-wrap: normal; }
.copy-btn {
  display: none; height: 40px; flex: none; padding: 0 16px; border: 1px solid var(--btn-line); border-radius: var(--r-pill); background: var(--white);
  color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
}
.js .copy-btn { display: inline-flex; align-items: center; }
.copy-btn:hover { border-color: var(--ink); }

.prose .table-wrap { margin-top: 24px; }
.prose td code { overflow-wrap: normal; white-space: nowrap; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.prose th, .prose td { padding: 12px 16px; text-align: start; vertical-align: top; min-width: 120px; }
.prose thead th { padding: 14px 16px; background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose tbody tr { border-top: 1px solid var(--line); }
.prose tbody td:first-child { font-weight: 600; color: var(--ink); }

.prose .panel--bleed { margin-top: 0; }
.pn-wrap { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-decoration: none; }
.pn:hover { color: var(--ink); background: var(--line); }
.pn--next { align-items: flex-end; text-align: end; }
.pn__k { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.pn__t { font-size: 18px; line-height: 24px; font-weight: 600; }
.help-line { margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--muted); }
.help-line a { font-weight: 600; }

/* ---------- support ---------- */
.support { box-sizing: border-box; flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 48px var(--gutter) 0; }
.support__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 40px; }
.support__head h1 { font-weight: 600; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.support__head p { max-width: 520px; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.support__cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; }
.support-form { flex: 1.6 1 560px; min-width: 0; padding: clamp(20px, 2.8vw, 40px); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.support-form h2, .support-aside h2 { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.support-form h2 { margin: 0 0 4px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field .label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 20px; border: 1px solid var(--field); border-radius: var(--r-pill); background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 16px; letter-spacing: -0.01em;
}
.field select { padding-right: 44px; -webkit-appearance: none; appearance: none; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap svg { position: absolute; right: 18px; pointer-events: none; }
.field textarea { height: 196px; padding: 14px 20px; border-radius: var(--r-md); line-height: 24px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.hint { font-size: 13px; line-height: 18px; color: var(--muted); }
.field-error { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); }
.upload { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 76px; padding: 12px 14px 12px 20px; border: 1px solid var(--field); border-radius: var(--r-md); background: var(--white); }
.upload[data-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.upload__hint { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.upload__btn { position: relative; height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: var(--r-pill); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.upload__btn input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.upload__btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.file-list li { overflow-wrap: anywhere; }
.file-list .is-bad { color: var(--danger); font-weight: 600; }
.form-actions { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-actions p { flex: 1 1 260px; min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.error-summary { padding: 16px 20px; border-radius: var(--r-md); background: var(--white); border: 2px solid var(--danger); }
.error-summary h2 { font-size: 18px; line-height: 24px; color: var(--danger); }
.error-summary ul { margin: 8px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 4px; }
.error-summary a { color: var(--danger); font-weight: 600; }
.error-summary:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.success { flex: 1.6 1 560px; min-width: 0; padding: clamp(24px, 3.2vw, 48px); border-radius: var(--r-lg); background: var(--surface); }
.success h2 { font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -0.03em; }
.success:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.success__ticket { margin-top: 20px; display: inline-block; padding: 8px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.success p { margin-top: 16px; max-width: 560px; color: var(--ink-2); text-wrap: pretty; }
.success .btn { margin-top: 24px; }

.support-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.support-aside > p { margin: 8px 0 12px; color: var(--ink-2); }
.aside-list { list-style: none; padding: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 22px; }
.aside-list li { border-top: 1px solid var(--line); }
.aside-list li:last-child { border-bottom: 1px solid var(--line); }
.aside-list a { min-height: 48px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); text-decoration: none; }
.aside-list a:hover { text-decoration: underline; color: var(--ink); }
.aside-list a svg { flex: none; }
.aside-list .is-strong a { font-weight: 600; color: var(--accent); }
.pill-link { align-self: flex-start; margin-top: 16px; height: 44px; padding: 0 18px; border: 1px solid var(--btn-line); border-radius: var(--r-pill); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.pill-link:hover { color: var(--ink); border-color: var(--ink); }
.support-aside h2.mt { margin-top: 40px; }
.include { padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.include li { padding-inline-start: 4px; }

/* ---------- tablet and below: docs collapse to one column ---------- */
@media (max-width: 1199px) {
  .docs { grid-template-columns: 280px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .toc-d { display: block; margin-top: 20px; border-radius: 16px; background: var(--surface); }
  .toc-d summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--ink); }
  .toc-d[open] .toc-d__x { transform: rotate(180deg); }
  .toc-d__x { display: flex; transition: transform 0.2s; }
  .toc-d__list { padding: 0 16px 8px; display: flex; flex-direction: column; font-size: 15px; }
  .toc-d__list a { min-height: 44px; display: flex; align-items: center; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
  .toc-d__list a.toc__a--3 { padding-inline-start: 16px; color: var(--ink-2); font-size: 14px; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-header__bar { padding: 0 10px 0 20px; gap: 4px; }
  .brand { margin-inline-end: auto; font-size: 20px; }
  .site-cta { height: 40px; margin-inline-end: 4px; padding: 0 16px; font-size: 14px; }
  .js .icon-btn { display: flex; }
  .site-nav, .site-search { display: none; }
  .js .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; z-index: 35;
    padding: 8px 20px 16px; background: var(--white); border-bottom: 1px solid var(--line); gap: 0; font-size: 16px;
  }
  .js .site-nav.is-open a { height: 48px; border-radius: var(--r-sm); }
  .js .site-search.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 35; padding: 8px 20px 12px; background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-search__results { left: 0; right: 0; width: auto; top: calc(100% - 4px); margin: 0 20px; }
  html:not(.js) .site-header__bar { height: auto; flex-wrap: wrap; padding: 10px 20px; }
  html:not(.js) .site-nav { display: flex; order: 5; width: 100%; flex: none; margin-inline: -14px; }

  .docs { display: block; padding-top: 24px; }
  .docs-main { padding-top: 0; }
  .js .docs-bar {
    display: block; position: sticky; top: var(--header-h); z-index: 29; padding: 8px 20px; background: var(--white); border-bottom: 1px solid var(--line);
  }
  .docs-bar__btn {
    width: 100%; height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
    font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; cursor: pointer;
  }
  .docs-bar__btn svg { flex: none; }
  .docs-bar__label { flex: 1; min-width: 0; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .js .docs-nav { display: none; }
  .js .docs-nav.is-open {
    display: flex; position: fixed; z-index: 28; top: calc(var(--header-h) + 61px); left: 0; right: 0; bottom: 0; max-height: none; margin: 0;
    padding: 12px 20px 40px; background: var(--white); overflow-y: auto;
  }
  html:not(.js) .docs-nav { position: static; max-height: none; margin: 0 0 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .prose h1 { margin-top: 16px; font-size: 34px; line-height: 38px; }
  .prose .lead { margin-top: 16px; font-size: 17px; line-height: 26px; }
  .prose h2 { margin-top: 40px; font-size: 26px; line-height: 30px; }
  .prose h3 { font-size: 20px; line-height: 26px; }
  .callout { padding: 16px 18px; border-radius: 16px; }
  .callout svg { display: none; }
  .prose ol.steps { gap: 24px; }
  .prose ol.steps > li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  .step-n { width: 28px; height: 28px; font-size: 14px; line-height: 28px; }
  .step-body > p:first-child { margin-top: 2px !important; }
  .prose dl.kv { display: flex; flex-direction: column; }
  .prose dl.kv dt { padding: 12px 0 0; }
  .prose dl.kv dd { padding: 0 0 12px; border-top: 0; }
  .code { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px 12px; }
  .code pre { max-width: 100%; width: 100%; font-size: 15px; line-height: 22px; }
  .pn-wrap { margin-top: 40px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pn { padding: 16px 20px; }
  .pn__t { font-size: 17px; }
  .site-footer { margin-top: 64px; }
  .site-footer__inner { padding: 28px 20px 32px; flex-direction: column; align-items: stretch; gap: 4px; }
  .site-footer__id { flex-direction: column; gap: 4px; }
  .site-footer__nav { margin-top: 12px; flex-direction: column; align-items: stretch; gap: 0; }
  .site-footer__nav a, .footer-soon { padding: 0; border-top: 1px solid var(--line); justify-content: space-between; }
}

@media (max-width: 760px) {
  .sec { padding: 64px 20px 0; }
  .hero { padding-top: 32px; }
  .hero__grid { display: block; }
  .hero h1 { font-size: 40px; line-height: 40px; }
  .hero__sub { margin-top: 20px; font-size: 20px; line-height: 28px; }
  .hero__body { font-size: 16px; line-height: 24px; }
  .hero__price { margin-top: 28px; gap: 2px 12px; }
  .hero__amount { font-size: 40px; line-height: 44px; }
  .hero__actions { margin-top: 20px; flex-direction: column; gap: 8px; align-self: stretch; width: 100%; }
  .hero__actions .btn { height: 52px; padding: 0; }
  .hero__meta { margin-top: 16px; }
  .hero__shot { margin-top: 28px; }
  .sec h2, .head-split h2, .quick__head h2 { font-size: 30px; line-height: 33px; }
  .sec h2 + .body, .split__intro h2 + .body { margin-top: 16px; }
  .head-split { margin-bottom: 0; gap: 16px; }
  .head-split > h2, .head-split__body { flex: none; width: 100%; }
  .head-split--faq { gap: 16px; }
  .head-split--faq .faq { flex: none; width: 100%; }
  .sec__fine { margin: 12px 0 20px; }
  .sec__note { margin-top: 20px; }

  .panel { padding: 12px; border-radius: 24px; }
  .panel--bleed { padding: 12px 0 12px 12px; overflow: hidden; }
  .panel--gap { gap: 8px; }
  .panel--row { flex-direction: column; align-items: stretch; gap: 12px; overflow: hidden; }
  .panel--sm.panel--bleed { border-radius: var(--r-md); }
  .crop, .crop--search, .crop--quick2 { border-radius: 16px; }
  .crop--bleed { border-radius: 16px 0 0 16px; }
  .crop--search.crop--bleed { border-radius: 28px 0 0 16px; }
  .crop--quick2.crop--bleed { border-radius: 29px 0 0 29px; }
  .panel--sm .crop--bleed { border-radius: 12px 0 0 12px; }
  .panel--sm .inset { padding: 8px 0 8px 8px; border-radius: 12px 0 0 12px; }
  .inset--bleed { padding: 8px 0 8px 8px; border-radius: 16px 0 0 16px; }
  .shot-in { gap: 6px; }
  .shot-in--list { margin-right: -12px; }
  .crop-scroll { overflow-x: auto; border-radius: 16px 0 0 16px; background: var(--white); }
  .crop-scroll > .crop { border-radius: 0; }

  .crop--hero, .crop--pdp, .crop--cart, .crop--quick1, .crop--quick2, .crop--showcase, .crop--counter, .crop--search { aspect-ratio: auto; }
  .crop--hero { height: 387px; }
  .crop--hero img { top: -148px; left: -979px; width: 1347px; }
  .crop--pdp { height: 274px; }
  .crop--pdp img { top: -133px; left: -896px; width: 1597px; }
  .crop--cart { height: 96px; }
  .crop--cart img { top: -336px; left: -76px; width: 1512px; }
  .crop--quick1 { height: 402px; }
  .crop--quick1 img { top: -183px; left: -47px; width: 1512px; }
  .crop--quick2 { height: 88px; }
  .crop--quick2 img { top: -659px; left: -59px; width: 1512px; }
  .crop--showcase { height: 396px; }
  .crop--showcase img { top: -149px; left: -327px; width: 1347px; }
  .crop--counter { width: 878px; height: 244px; }
  .crop--counter img { top: -373px; left: -294px; width: 1210px; }
  .crop--search { height: 424px; }
  .crop--search img { top: -4px; left: -398px; width: 1512px; }

  .presets { display: flex; flex-direction: column; gap: 8px; }
  .preset { gap: 0; padding: 18px 20px 8px; }
  .preset__head { flex-direction: row; align-items: center; gap: 10px; }
  .preset h3 { font-size: 20px; line-height: 26px; }
  .dot { width: 12px; height: 12px; }
  .preset__blurb { margin-top: 6px; }
  .preset__demo { margin-top: 2px; }
  .preset__link { margin-top: 0; padding-top: 0; align-self: flex-start; overflow-wrap: normal; }

  .split { gap: 24px; }
  .split__shot { margin-top: 0; }
  .split__details .sub:first-child { margin-top: 0; }
  .split--search .feature:first-child { margin-top: 0; }
  .split--search .split__details { margin-top: 0; }
  .quick__shot { margin-top: 24px; }

  .rows--grid { display: flex; }
  .quick__list .rows { border-bottom: 1px solid var(--line); }
  .dark-panel { padding: 28px 24px; border-radius: 24px; display: block; }
  .dark-panel h2 { margin-bottom: 20px; }
  .table-wrap { border-radius: 20px; }
  .compare { min-width: 0; width: 1000px; font-size: 14px; }
  .compare thead td:first-child { width: 220px; padding: 14px 12px 14px 16px; }
  .compare thead th { padding: 14px 12px; }
  .compare thead th:nth-child(2) { width: 150px; }
  .compare tbody th { padding: 12px 12px 12px 16px; }
  .compare td { padding: 12px; }
  .link-arrow { margin-top: 4px; }
  .faq__item summary { font-size: 17px; }
  .faq__a { padding-bottom: 20px; max-width: none; }

  .support { padding-top: 28px; padding-inline: 20px; }
  .support__head { display: block; margin-bottom: 0; }
  .support__head h1 { font-size: 40px; }
  .support__head p { margin-top: 12px; font-size: 16px; line-height: 24px; }
  .support__cols { display: block; margin-top: 24px; }
  .support-form { padding: 20px 16px; border-radius: 24px; gap: 16px; }
  .support-form h2 { font-size: 22px; line-height: 28px; margin: 0; }
  .fgrid { gap: 16px; }
  .field textarea { height: 172px; }
  .upload { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .form-actions { display: block; }
  .form-actions .btn { width: 100%; height: 52px; }
  .form-actions p { margin-top: 12px; }
  .support-aside { margin-top: 48px; }
  .support-aside h2.mt { margin-top: 40px; }
  .success { padding: 24px 20px; border-radius: 24px; }
  .success h2 { font-size: 26px; line-height: 30px; }
}

@media print {
  .site-header, .docs-nav, .docs-toc, .docs-bar, .site-footer, .copy-btn { display: none !important; }
  .docs { display: block; }
}
