/* Animation paper: ink for finished lines, blue pencil for roughs and notes, red pencil for keys. */
:root {
  --paper: #f5f6f3; --sheet: #ffffff; --well: #eceeea;
  --ink: #1a1b1f; --graphite: #5b5e68; --faint: #8b8e97;
  --rule: #dfe2dc; --rule-2: #cfd3cc;
  --blue: #3d68cf; --blue-soft: #9db5ec; --blue-wash: #e9effc;
  --red: #d63c2c; --red-wash: #fbe9e6;
  --size: 26px; --stroke: 1.75;
  font: 400 16px/1.55 'Wix Madefor Text', ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; scroll-padding-top: 76px; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, code, pre, kbd { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue-wash); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 28px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.04; }
.lead { color: var(--graphite); font-size: 18px; margin: 14px 0 0; max-width: 44ch; }
.sec { padding-top: 128px; }
code { font-size: .92em; background: var(--well); padding: 1px 6px; border-radius: 5px; }

.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 11px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: #33353c; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.line { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule-2) inset; font-weight: 500; }
.btn.line:hover { box-shadow: 0 0 0 1px var(--ink) inset; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn.icon { width: 34px; padding: 0; }
.btn svg { width: 18px; height: 18px; }
.btn.sm svg { width: 16px; height: 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgb(245 246 243 / .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.nav .wrap { height: 62px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.03em; margin-right: auto; }
.brand .popcon svg { width: 22px; height: 22px; }
.nav nav { display: flex; gap: 24px; font-size: 15px; color: var(--graphite); }
.nav nav a:hover { color: var(--ink); }
.gh { gap: 7px; }
.gh .star svg { color: var(--red); }
#stars { font-variant-numeric: tabular-nums; }

/* hero */
.hero { padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: 64px; align-items: start; }
.hero h1 { grid-column: 1 / -1; font-size: clamp(40px, 8.2vw, 104px); line-height: .94; letter-spacing: -.05em; font-weight: 800; margin-bottom: 44px; }
.hero-copy { padding-top: 8px; }
.hero .lead { font-size: 19px; max-width: 30ch; margin-top: 0; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.npm .dollar { color: var(--faint); }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; color: var(--graphite); font-size: 15px; }
.hero-facts li { display: flex; gap: 10px; align-items: center; }
.hero-facts svg { width: 18px; height: 18px; color: var(--blue); }

/* the animation sheet */
.sheet { position: relative; margin: 0; background: var(--sheet); border-radius: 6px; padding: 40px 26px 20px; box-shadow: 0 1px 0 var(--rule-2), 0 18px 40px -28px rgb(26 27 31 / .35);
  background-image: linear-gradient(var(--blue-wash) 1px, transparent 1px), linear-gradient(90deg, var(--blue-wash) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.pegs { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 46px; align-items: center; }
.pegs i { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgb(0 0 0 / .14); }
.pegs i.slot { width: 40px; height: 9px; border-radius: 5px; }
.sheet-meta { position: absolute; top: 11px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--blue); pointer-events: none; }
.sheet-meta b { font-weight: 600; color: var(--red); }
.stage-big { position: relative; height: 290px; display: grid; place-items: end center; padding-bottom: 46px; cursor: pointer; }
.fig { position: relative; width: 168px; height: 168px; --popcon-lift: 7; }
.fig > .popcon { position: absolute; left: 0; bottom: 0; }
.fig svg { width: 168px; height: 168px; }
.fig .ghost { color: var(--blue-soft); opacity: .7; }
.fig .main { color: var(--ink); }
.floor { position: absolute; left: 12%; right: 12%; bottom: 44px; border-top: 1.5px solid var(--ink); }
.floor::after { content: 'floor'; position: absolute; right: 0; top: 5px; font-size: 12px; color: var(--blue); }
.chart { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.chart text { font: 500 11px 'Wix Madefor Text', sans-serif; }
.controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--blue-soft); }
.controls input[type=range] { flex: 1; accent-color: var(--ink); min-width: 0; }
.controls output { font-size: 13.5px; color: var(--graphite); font-variant-numeric: tabular-nums; min-width: 13ch; text-align: right; }
.subjects { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.subjects .hint { font-size: 14px; color: var(--graphite); margin-right: 8px; }
.subj { all: unset; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--graphite); }
.subj svg { width: 21px; height: 21px; }
.subj:hover { background: var(--sheet); color: var(--ink); }
.subj[aria-pressed=true] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1.5px var(--red) inset; }
.subj:focus-visible { outline: 2px solid var(--blue); }

/* catalogue */
.browser { margin-top: 36px; }
.toolbar { position: sticky; top: 62px; z-index: 6; display: grid; gap: 12px; padding: 14px 0; background: rgb(245 246 243 / .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.tool-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 15px; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule-2) inset; }
.search:focus-within { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.search svg { width: 19px; height: 19px; color: var(--graphite); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--graphite); }
.search .clear:hover { background: var(--well); color: var(--ink); }
.search .clear svg { width: 16px; height: 16px; }
kbd.k { font-size: 12px; color: var(--graphite); border: 1px solid var(--rule-2); border-radius: 6px; padding: 1px 7px; background: var(--paper); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--well); height: 48px; }
.seg button { all: unset; cursor: pointer; padding: 0 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--graphite); display: inline-flex; align-items: center; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.select { position: relative; height: 48px; }
.select select { appearance: none; height: 100%; padding: 0 36px 0 14px; border-radius: 12px; background: var(--sheet); border: 0; box-shadow: 0 0 0 1px var(--rule-2) inset; font-size: 14.5px; cursor: pointer; max-width: 210px; }
.select::after { content: ''; position: absolute; right: 15px; top: 20px; width: 6px; height: 6px; border-right: 1.5px solid var(--graphite); border-bottom: 1.5px solid var(--graphite); transform: rotate(45deg); pointer-events: none; }
.tool-row.sub { justify-content: space-between; font-size: 14px; color: var(--graphite); gap: 16px; }
.knobs { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.knob { display: flex; align-items: center; gap: 9px; }
.knob output { color: var(--ink); min-width: 3.3ch; font-variant-numeric: tabular-nums; }
.knob input[type=range] { accent-color: var(--ink); width: 90px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
#status b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick { gap: 7px; }
.pick[aria-pressed=true] { background: var(--red); color: #fff; box-shadow: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 4px; padding: 16px 0; }
.cell { all: unset; box-sizing: border-box; cursor: pointer; position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 8px 6px 11px; transition: background .12s; }
.cell .fig2 { display: grid; justify-items: center; align-self: center; }
.cell svg { width: var(--size); height: var(--size); }
.cell svg[stroke] { stroke-width: var(--stroke); }
.cell .shadow { width: calc(var(--size) * .85); height: 4px; margin-top: 3px; border-radius: 50%; background: radial-gradient(closest-side, rgb(26 27 31 / .28), transparent); opacity: 0; }
.cell .name { font-size: 12px; color: var(--faint); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell:hover, .cell:focus-visible { background: var(--sheet); }
.cell:hover .shadow, .cell:focus-visible .shadow { opacity: 1; }
.cell:hover .name, .cell:focus-visible .name { color: var(--ink); }
.cell:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cell.open { background: var(--sheet); box-shadow: 0 0 0 1.5px var(--red) inset; }
.cell .tick { position: absolute; top: 7px; right: 7px; color: var(--red); display: none; }
.cell .tick svg { width: 20px; height: 20px; stroke-width: 2; }
.cell.in .tick { display: inline-flex; }
.cell.in { background: var(--red-wash); }
.skel { aspect-ratio: 1; border-radius: 12px; background: var(--well); opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: pulse 1.4s ease-in-out infinite; }
  .cell:hover .shadow, .cell:focus-visible .shadow, .popcon-play + .shadow { animation: shadow var(--popcon-speed, .7s); }
  .popcon-loop + .shadow { animation: shadow-loop 2.1s infinite; }
}
@keyframes pulse { 50% { opacity: .25; } }
@keyframes shadow { 0% { transform: none; } 24% { transform: scaleX(.75); opacity: .5; } 40% { transform: scaleX(1.15); opacity: 1; } 54% { transform: scaleX(.97); } 67% { transform: scaleX(1.03); } 100% { transform: none; } }
@keyframes shadow-loop { 0% { transform: none; } 8% { transform: scaleX(.75); opacity: .5; } 13.3% { transform: scaleX(1.15); opacity: 1; } 18% { transform: scaleX(.97); } 22.3% { transform: scaleX(1.03); } 33.3%, 100% { transform: none; } }
.empty { grid-column: 1 / -1; padding: 80px 20px; text-align: center; color: var(--graphite); }
.empty b { display: block; color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.empty .btn { margin-top: 18px; }
.more { display: flex; justify-content: center; }

/* set tray */
.tray { position: fixed; left: 50%; bottom: 18px; z-index: 35; width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 16px;
  background: var(--ink); color: var(--paper); box-shadow: 0 24px 50px -20px rgb(26 27 31 / .6); transform: translate(-50%, 140%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .9, .3, 1.1), visibility .35s; }
.tray.on { transform: translate(-50%, 0); visibility: visible; }
.tray .count { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tray .strip { flex: 1; display: flex; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.tray .strip button { all: unset; cursor: pointer; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #c9ccd4; }
.tray .strip button:hover { background: rgb(255 255 255 / .1); color: #fff; }
.tray .strip button:focus-visible { outline: 2px solid var(--blue-soft); }
.tray .strip svg { width: 18px; height: 18px; }
.tray .btn { background: var(--paper); color: var(--ink); }
.tray .btn.ghosty { background: transparent; color: var(--paper); box-shadow: 0 0 0 1px rgb(255 255 255 / .22) inset; }
.tray .btn.ghosty:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / .5) inset; }

/* inspector */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgb(26 27 31 / .25); opacity: 0; pointer-events: none; transition: opacity .25s; }
.inspector { position: fixed; z-index: 40; top: 74px; right: 14px; bottom: 14px; width: 380px; display: flex; flex-direction: column; border-radius: 14px; background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule-2), 0 30px 60px -30px rgb(26 27 31 / .45); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .38s cubic-bezier(.2, .9, .3, 1.05), visibility .38s; }
.inspector.on { transform: none; visibility: visible; }
.ins-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 0 18px; }
.ins-head .crumb { margin-right: auto; font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.ins-scroll { overflow-y: auto; padding: 12px 18px 18px; display: grid; gap: 16px; align-content: start; }
.stage { position: relative; aspect-ratio: 1.5; border-radius: 8px; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(var(--blue-wash) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, var(--blue-wash) 1px, transparent 1px) 0 0 / 16px 16px, var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; transition: background-color .2s, color .2s; }
.stage.dark { background: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 16px 16px, #1c1d22; color: #f1f1ee; box-shadow: none; }
.stage .fig3 { display: grid; justify-items: center; --popcon-lift: 3; }
.stage svg { width: 72px; height: 72px; }
.stage .shadow { width: 60px; height: 8px; margin-top: 5px; border-radius: 50%; background: radial-gradient(closest-side, rgb(26 27 31 / .22), transparent); }
.stage.dark .shadow { background: radial-gradient(closest-side, rgb(0 0 0 / .6), transparent); }
.stage-tools { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; }
.mini-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule-2); }
.mini-seg button { all: unset; cursor: pointer; padding: 3px 9px; border-radius: 6px; font-size: 12px; color: var(--graphite); }
.mini-seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.mini-seg button:focus-visible { outline: 2px solid var(--blue); }
.ins-title { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.ins-title h3 { font-size: 23px; word-break: break-word; letter-spacing: -.02em; }
.ins-sub { font-size: 13.5px; color: var(--graphite); margin-top: 4px; }
.ins-sub .mv { color: var(--blue); }
.addset { flex: none; }
.addset[aria-pressed=true] { background: var(--red); color: #fff; box-shadow: none; }
.copy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.copy-grid .btn { height: 40px; font-size: 14px; padding: 0 8px; }
.copy-grid .wide { grid-column: 1 / -1; height: 46px; font-size: 15px; }
.field-label { font-size: 12.5px; color: var(--graphite); margin-bottom: 6px; display: flex; justify-content: space-between; }
.code { margin: 0; padding: 12px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; font-size: 11.5px; line-height: 1.6; color: var(--graphite); white-space: pre-wrap; word-break: break-all; max-height: 140px; overflow: auto; }
.note { margin: 0; font-size: 13.5px; color: var(--blue); line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--blue-soft); }
.note code { background: var(--blue-wash); }
.tags { font-size: 13px; color: var(--graphite); line-height: 1.8; }
.tags button { all: unset; cursor: pointer; margin-right: 10px; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.tags button:hover { color: var(--ink); text-decoration-color: var(--ink); }
.tags button:focus-visible { outline: 2px solid var(--blue); }
.ins-foot { display: flex; justify-content: space-between; padding: 10px 12px 10px 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--graphite); align-items: center; }

/* in use: a model sheet */
.model { margin-top: 40px; background: var(--sheet); border-radius: 6px; box-shadow: 0 1px 0 var(--rule-2); display: grid; grid-template-columns: repeat(3, 1fr); }
.spec { padding: 34px 30px 28px; display: grid; gap: 22px; align-content: space-between; min-height: 250px; border-right: 1px dashed var(--blue-soft); border-bottom: 1px dashed var(--blue-soft); }
.spec:nth-child(3n) { border-right: 0; }
.spec:nth-last-child(-n+3) { border-bottom: 0; }
.spec .thing { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.spec .memo { margin: 0; font-size: 14px; color: var(--blue); line-height: 1.45; }
.spec .memo code { background: var(--blue-wash); }
.tabbar { display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; }
.tabbar button { all: unset; cursor: pointer; position: relative; width: 58px; height: 52px; border-radius: 13px; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; color: var(--graphite); }
.tabbar button svg { width: 21px; height: 21px; }
.tabbar button[aria-current=page] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.tabbar button:focus-visible { outline: 2px solid var(--blue); }
.dot { position: absolute; top: 7px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); }
.belled { all: unset; cursor: pointer; position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; }
.belled svg { width: 24px; height: 24px; }
.belled .num { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.belled:focus-visible, .likeb:focus-visible, .row:focus-visible, .delb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.likeb { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 23px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; font-weight: 600; font-variant-numeric: tabular-nums; }
.likeb svg { width: 21px; height: 21px; }
.likeb[aria-pressed=true] { color: var(--red); background: var(--red-wash); box-shadow: none; }
.exportb { min-width: 168px; }
.exportb.done, .exportb.done:hover { background: #1f7a4d; }
.row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 270px; padding: 14px 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; font-weight: 500; }
.row svg { width: 20px; height: 20px; }
.row .grow { margin-right: auto; }
.row .chev { color: var(--faint); }
.delb { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 11px; color: var(--red); background: var(--red-wash); font-weight: 600; }
.delb svg { width: 20px; height: 20px; }

/* install */
.install { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 56px; margin-top: 40px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 26px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 6px; }
.steps li::before { content: counter(s); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--red); letter-spacing: -.03em; }
.steps h3 { font-size: 18px; letter-spacing: -.015em; }
.steps p { margin: 4px 0 0; color: var(--graphite); }
.codebox { border-radius: 12px; background: var(--ink); color: #e7e8e3; overflow: hidden; }
.tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid rgb(255 255 255 / .09); overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #a2a5ae; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected=true] { background: rgb(255 255 255 / .1); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: -2px; }
.tabs .copy-code { margin-left: auto; background: rgb(255 255 255 / .08); color: #fff; }
.codebox pre { margin: 0; padding: 20px; font-size: 13.5px; line-height: 1.75; overflow-x: auto; min-height: 250px; }
pre .t { color: #9db5ec; } pre .s { color: #f2b8a8; } pre .c { color: #868993; }
.ref { margin-top: 30px; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ref td { padding: 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.ref td:first-child { white-space: nowrap; width: 1%; padding-right: 22px; }
.ref td:last-child { color: var(--graphite); }

/* safety */
.claims { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.claims li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.claims .ic svg { width: 26px; height: 26px; }
.claims h3 { font-size: 18px; letter-spacing: -.015em; }
.claims p { margin: 4px 0 0; color: var(--graphite); max-width: 62ch; }
.claims a.src { font-size: 14.5px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding-top: 2px; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 4px; }
.claims a.src:hover { text-decoration-color: var(--ink); }
.claims a.src svg { width: 15px; height: 15px; }

footer { margin-top: 128px; padding: 36px 0 44px; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; transition: .25s; pointer-events: none;
  display: flex; gap: 9px; align-items: center; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; background: var(--ink); color: var(--paper); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .5); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast.lift { bottom: 92px; }
.toast svg { width: 18px; height: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1020px) {
  .hero .wrap, .install { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { margin-bottom: 0; }
  .model { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(3n) { border-right: 1px dashed var(--blue-soft); }
  .spec:nth-child(2n) { border-right: 0; }
  .spec:nth-last-child(-n+3) { border-bottom: 1px dashed var(--blue-soft); }
  .spec:nth-last-child(-n+2) { border-bottom: 0; }
  .nav nav { display: none; }
}
@media (max-width: 760px) {
  .inspector { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 84vh; border-radius: 16px 16px 0 0; transform: translateY(105%); }
  .inspector.on { transform: none; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .stage { aspect-ratio: 2.2; }
  .knob { display: none; }
  .toolbar { position: static; }
  .model { grid-template-columns: 1fr; }
  .spec, .spec:nth-child(3n), .spec:nth-last-child(-n+3), .spec:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px dashed var(--blue-soft); min-height: 0; }
  .spec:last-child { border-bottom: 0; }
  .claims li { grid-template-columns: 32px minmax(0, 1fr); }
  .claims a.src { grid-column: 2; }
  .copy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .sec { padding-top: 96px; }
  .hero { padding-top: 40px; }
  .gh .lbl { display: none; }
  .sheet { padding: 38px 14px 16px; }
  .stage-big { height: 230px; }
  .fig { width: 128px; height: 128px; --popcon-lift: 5.3; }
  .fig svg { width: 128px; height: 128px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 2px; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 0 6px; }
  .select { flex: 1; } .select select { width: 100%; max-width: none; }
  .tray { gap: 8px; padding-left: 14px; }
  .tray .strip { display: none; }
  .tray .count { margin-right: auto; }
  .tray .hide-sm { display: none; }
  .subjects { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; }
  .subj { flex: none; }
  .chart text { font-size: 14px; }
  .subjects .hint { display: none; }
}
/* pages */
.nav nav a[aria-current=page] { color: var(--ink); font-weight: 600; }
.page-head { padding-top: 56px; }
.page-title { font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.teaser-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; }
.home-search { flex: 0 1 420px; margin-top: 24px; }
.home-search .btn { height: 36px; }
.teaser { margin-top: 28px; }
.teaser-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 560px) { .home-search { flex-basis: 100%; } }
