/* Afterboard. A drafting-table palette: paper, ink, a dot-grid canvas and one redline accent. */
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/xd/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/xd/inter-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/xd/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --canvas: #e4e2da;
  --card: #ffffff;
  --ink: #15171c;
  --ink-2: #4a4f59;
  --ink-3: #80848d;
  --line: #d8d5cb;
  --line-2: #e7e5dd;
  --red: #e5452e;
  --red-ink: #b8321d;
  --red-soft: #fbe3dd;
  --green: #2f6b4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 10px 30px -12px rgba(21, 23, 28, .18);
  --head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; }
.dim { color: var(--ink-3); }
.small { font-size: .875rem; color: var(--ink-2); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 239, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--head); letter-spacing: -0.02em; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--body); padding: 12px 18px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2a2d35; }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 9px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--red-ink); }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font: 500 18px/1 var(--body); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.tag { display: inline-block; font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: var(--red-soft); color: var(--red-ink); vertical-align: 2px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 64px; background:
  radial-gradient(circle at 1px 1px, rgba(21, 23, 28, .13) 1px, transparent 0) 0 0 / 22px 22px,
  linear-gradient(var(--paper), var(--paper)); border-bottom: 1px solid var(--line-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-grid.no-art { grid-template-columns: minmax(0, 1fr); }
.hero-grid.no-art .hero-copy { max-width: 820px; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--red); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 18px; }
.hero-grid.no-art h1 { font-size: clamp(34px, 4.6vw, 54px); }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); line-height: 1.55; margin-bottom: 28px; }
.tray { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 22px 22px 20px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.tray::before { content: ''; position: absolute; inset: 7px; border: 1.5px dashed var(--line); border-radius: 13px; pointer-events: none; transition: border-color .2s; }
.tray:hover::before { border-color: var(--red); }
.tray-icon { width: 46px; height: 46px; color: var(--ink); flex: none; }
.tray-text { flex: 1; min-width: 0; }
.tray-title { font: 600 18px/1.25 var(--head); margin: 0 0 3px; }
.tray-sub { margin: 0; color: var(--ink-3); font-size: 14px; }
.trust { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.trust .link-btn { margin-left: 4px; }
.progress { margin: 14px 0 0; font: 500 14px/1.4 var(--mono); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.progress::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { margin-top: 18px; background: #fff; border: 1px solid #f0c4ba; border-left: 4px solid var(--red); border-radius: 12px; padding: 16px 18px; }
.error:focus { outline: none; }
.error strong { font: 600 17px/1.3 var(--head); display: block; margin-bottom: 6px; }
.error p { margin: 0 0 8px; color: var(--ink-2); }
.error-file { font: 13px/1.4 var(--mono); color: var(--ink-3) !important; }
.hero-visual { position: relative; }
.hero-art { display: block; width: 100%; height: auto; }
.hero-art .redline { stroke-dasharray: 400; animation: draw 1.4s .4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
#drop-veil { position: fixed; inset: 0; z-index: 60; background: rgba(21, 23, 28, .55); display: grid; place-items: center; backdrop-filter: blur(3px); }
#drop-veil div { background: var(--paper); border: 2px dashed var(--red); border-radius: 22px; padding: 40px 56px; text-align: center; display: grid; gap: 6px; }
#drop-veil strong { font: 600 26px/1.2 var(--head); }
body.busy .tray { opacity: .7; pointer-events: none; }

/* ---------------------------------------------------------------- workspace */
.work { padding: 36px 0 56px; background: var(--canvas); background-image: radial-gradient(circle at 1px 1px, rgba(21, 23, 28, .12) 1px, transparent 0); background-size: 22px 22px; border-bottom: 1px solid var(--line); }
.filebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.file-id h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 4px 0 4px; word-break: break-word; }
.kicker { margin: 0; font: 500 13px/1.4 var(--mono); color: var(--ink-3); word-break: break-all; }
.file-meta { margin: 0; color: var(--ink-2); }
.notes { display: grid; gap: 10px; margin-bottom: 20px; }
.notes details { background: var(--card); border-radius: 12px; border: 1px solid var(--line-2); padding: 0 16px; }
.notes summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; gap: 10px; align-items: center; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.notes .note-warn summary::before, .notes .note-fonts:has(li.swap, li.warn) summary::before { background: #e3a13b; }
.notes summary::after { content: '+'; margin-left: auto; font: 500 18px/1 var(--mono); color: var(--ink-3); }
.notes details[open] summary::after { content: '–'; }
.notes ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.notes li { margin: 4px 0; }
.notes li.ok::marker { color: var(--green); }
.notes li.swap::marker, .notes li.warn::marker { color: #d38a19; }
.count { font-family: var(--mono); color: var(--ink-3); font-size: 13px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font: 600 15px/1 var(--body); color: var(--ink-3); cursor: pointer; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.tabs button:hover { color: var(--ink); }
.panel-hint { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }

.board-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 22px; align-items: start; }
.board-btn { display: flex; flex-direction: column; gap: 10px; width: 100%; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.board-frame { position: relative; display: block; width: 100%; max-height: 420px; background: #fff; box-shadow: 0 1px 2px rgba(21, 23, 28, .08), 0 6px 18px -8px rgba(21, 23, 28, .25); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.board.paste .board-frame { background: repeating-conic-gradient(#eeece6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.board-frame img { display: block; width: 100%; height: auto; }
.board-frame img:not([src]) { aspect-ratio: inherit; min-height: 100%; background: linear-gradient(90deg, #f3f2ee, #fafaf8, #f3f2ee); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.board-btn:hover .board-frame { box-shadow: 0 0 0 2px var(--red), 0 10px 24px -10px rgba(21, 23, 28, .35); }
.board-btn:focus-visible { outline: none; }
.board-btn:focus-visible .board-frame { box-shadow: 0 0 0 3px var(--red); }
.board-cap { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.board-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-size { font: 12px/1 var(--mono); color: var(--ink-3); flex: none; }
.board.failed .board-frame::after { content: 'Preview unavailable'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }

.spec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 28px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.panel section { margin-bottom: 28px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.swatch { display: grid; gap: 2px; font-size: 13px; }
.chip { --c: #000; --a: 1; position: relative; height: 64px; border-radius: 10px; border: 1px solid rgba(21, 23, 28, .1); cursor: pointer; background: repeating-conic-gradient(#e6e4de 0 25%, #fff 0 50%) 0 0 / 12px 12px; overflow: hidden; margin-bottom: 6px; }
.chip::before { content: ''; position: absolute; inset: 0; background: var(--c); opacity: var(--a); }
.chip.copied::after { content: 'Copied'; position: absolute; inset: auto 6px 6px; background: var(--ink); color: #fff; font: 600 11px/1.8 var(--body); border-radius: 6px; }
.sw-hex { font: 600 12.5px/1.3 var(--mono); }
.sw-name { color: var(--ink-2); }
.sw-sub { color: var(--ink-3); font-size: 12px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 12px; border: 1px solid var(--line-2); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { text-align: left; font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table .num { text-align: right; }
.spec-sample.on-dark span { background: #2a2d35; padding: 2px 8px; border-radius: 6px; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.spec-sample { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.plain, .font-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; font-size: 15px; }
.font-list li { padding-left: 18px; position: relative; color: var(--ink-2); }
.font-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.font-list li.swap::before, .font-list li.warn::before { background: #e3a13b; }

.asset-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.asset { background: var(--card); border-radius: 12px; padding: 10px; display: grid; gap: 4px; border: 1px solid var(--line-2); font-size: 13.5px; }
.asset-frame { display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-conic-gradient(#eeece6 0 25%, #fff 0 50%) 0 0 / 14px 14px; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.asset-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.asset-none { font: 600 13px/1 var(--mono); color: var(--ink-3); }
.asset-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { color: var(--ink-3); font: 12px/1.4 var(--mono); }
.asset .link-btn { justify-self: start; font-size: 13.5px; }

.export-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; background: var(--card); border-radius: 16px; padding: 28px; border: 1px solid var(--line-2); }
.checks { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.checks legend { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 12px; }
.checks label { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--ink); }
.x-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.x-run { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.x-run progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.x-run progress::-webkit-progress-bar { background: var(--paper-2); }
.x-run progress::-webkit-progress-value { background: var(--red); }
.x-run progress::-moz-progress-bar { background: var(--red); }
.x-side { border-left: 1px solid var(--line-2); padding-left: 28px; }
.soon { font: 600 20px/1.2 var(--head); margin-bottom: 8px; }
.soon.ok { color: var(--green); }

/* ---------------------------------------------------------------- viewer */
body.viewing { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 40; background: var(--canvas); display: grid; grid-template-rows: auto auto 1fr; }
.v-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.v-bar .btn svg { width: 16px; height: 16px; }
.v-nav { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.v-nav select { min-width: 0; max-width: 340px; flex: 0 1 auto; font: 600 15px/1.2 var(--body); padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315171c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; color: var(--ink); }
.v-size { color: var(--ink-3); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.v-zoom, .v-export { display: flex; align-items: center; gap: 6px; }
.zoom-label { min-width: 62px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); cursor: pointer; color: var(--ink); }
.v-panels { display: none; }
.v-status { margin: 0; font-size: 13.5px; color: var(--ink-2); padding: 0 16px; min-height: 0; background: var(--paper); }
.v-status:not(:empty) { padding: 6px 16px; border-bottom: 1px solid var(--line-2); }
.v-body { display: grid; grid-template-columns: 260px minmax(0, 1fr) 290px; min-height: 0; }
.v-layers, .v-inspect { background: var(--paper); overflow: auto; min-height: 0; }
.v-layers { border-right: 1px solid var(--line); }
.v-inspect { border-left: 1px solid var(--line); padding: 0 16px 24px; }
.v-layers h2, .v-inspect h2 { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0; padding: 16px 16px 10px; position: sticky; top: 0; background: var(--paper); z-index: 1; }
.v-inspect h2 { padding-left: 0; }
.v-stage { position: relative; overflow: hidden; cursor: default; touch-action: none; background-image: radial-gradient(circle at 1px 1px, rgba(21, 23, 28, .14) 1px, transparent 0); background-size: 20px 20px; outline: none; }
.v-stage.panning { cursor: grabbing; }
.v-paper { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.v-paper .v-svg { display: block; background: #fff; box-shadow: 0 1px 2px rgba(21, 23, 28, .1), 0 18px 50px -20px rgba(21, 23, 28, .35); }
.v-paper.paste .v-svg { background: repeating-conic-gradient(#eeece6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.v-sel, .v-hover { position: absolute; pointer-events: none; }
.v-sel { outline: 1.5px solid var(--red); box-shadow: 0 0 0 4000px rgba(21, 23, 28, 0); }
.v-hover { outline: 1px solid rgba(229, 69, 46, .55); }
.v-tree { padding: 0 6px 24px; font-size: 13.5px; }
.lt { list-style: none; margin: 0; padding: 0; }
.lt-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px calc(6px + var(--d) * 14px); border-radius: 7px; cursor: pointer; white-space: nowrap; }
.lt-row:hover { background: var(--paper-2); }
li[aria-selected="true"] > .lt-row { background: var(--red-soft); color: var(--red-ink); }
.lt-row.hidden { color: var(--ink-3); }
.lt-tog { width: 16px; height: 16px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; color: var(--ink-3); }
.lt-tog::before { content: '▸'; font-size: 11px; display: inline-block; transition: transform .12s; }
.lt-tog[aria-expanded="true"]::before { transform: rotate(90deg); }
.lt-sp { width: 16px; flex: none; }
.lt-ic { width: 16px; text-align: center; font: 600 12px/1 var(--mono); color: var(--ink-3); flex: none; }
.lt-ic.k-text { font-family: var(--head); font-size: 13px; }
.lt-ic.k-component { color: #8a4fd8; }
.lt-name { overflow: hidden; text-overflow: ellipsis; }
.lt-flag { margin-left: auto; font: 10.5px/1 var(--mono); color: var(--ink-3); }
.i-empty { color: var(--ink-2); font-size: 14px; }
.i-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; margin-bottom: 8px; }
.i-crumbs .link-btn::after { content: ' ›'; color: var(--ink-3); }
.i-title { font-size: 17px; margin: 0 0 2px; word-break: break-word; }
.i-kind { font: 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 14px; }
.i-grid { display: grid; grid-template-columns: 72px 1fr; gap: 6px 10px; margin: 0 0 6px; font-size: 13.5px; }
.i-grid dt { color: var(--ink-3); }
.i-grid dd { margin: 0; min-width: 0; word-break: break-word; }
.i-paint { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 12px; }
.i-paint h4 { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 10px; display: flex; justify-content: space-between; }
.i-paint h4 .link-btn { font: 600 12px/1 var(--body); text-transform: none; letter-spacing: 0; }
.i-paint p { font-size: 13px; margin: 6px 0 0; }
.i-color { display: flex; align-items: center; gap: 8px; }
.dot { --c: #000; --a: 1; position: relative; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(21, 23, 28, .12); background: repeating-conic-gradient(#e6e4de 0 25%, #fff 0 50%) 0 0 / 8px 8px; overflow: hidden; flex: none; }
.dot::before { content: ''; position: absolute; inset: 0; background: var(--c); opacity: var(--a); }
.i-grad { height: 16px; border-radius: 8px; border: 1px solid rgba(21, 23, 28, .1); }
.copy { background: none; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 5px; font: inherit; color: inherit; cursor: copy; text-align: left; }
.copy:hover { background: var(--paper-2); }
.copy.copied { background: var(--ink); color: #fff; }
.i-text { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; max-height: 220px; overflow: auto; }
.i-runs { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 12.5px; }
.i-note { color: #9a6410; }
.v-fail { padding: 40px; color: var(--ink-2); }

/* ---------------------------------------------------------------- bands */
.band { padding: 80px 0; }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.band-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.band-head p { color: var(--ink-2); margin: 0; font-size: 17px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.features li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.features li:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.f-n { color: var(--red); font-size: 13px; }
.features h3 { font-size: 21px; margin: 14px 0 8px; }
.features p { color: var(--ink-2); margin: 0; }
.band.dark { background: var(--ink); color: #f1f0eb; }
.band.dark h2 { font-size: clamp(30px, 3.6vw, 44px); color: #fff; }
.band.dark p { color: #c4c6cc; font-size: 17px; }
.priv-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.priv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #2c2f37; border: 1px solid #2c2f37; border-radius: 14px; overflow: hidden; margin: 0; }
.priv-facts div { background: var(--ink); padding: 20px; }
.priv-facts dt { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #8b8f98; margin-bottom: 10px; }
.priv-facts dd { margin: 0; font: 600 20px/1.25 var(--head); color: #fff; }

.unlock { padding: 80px 0; background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.unlock-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.unlock h2 { font-size: clamp(28px, 3.4vw, 40px); }
.unlock-copy > p { color: var(--ink-2); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translate(0, -2px); }
.ticks strong { color: var(--ink); }
.ticket { position: relative; background: var(--card); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.ticket::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line-2); border-radius: 12px; pointer-events: none; }
.ticket-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.ticket-price span { font: 600 56px/1 var(--head); letter-spacing: -0.04em; }
.ticket-price small { font: 500 14px/1 var(--mono); color: var(--ink-3); }

.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.guide-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-cards a { display: grid; gap: 6px; height: 100%; padding: 20px 22px; background: var(--card); border-radius: 14px; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .15s, transform .15s; }
.guide-cards a:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.guide-cards strong { font: 600 18px/1.25 var(--head); letter-spacing: -0.01em; }
.guide-cards span { color: var(--ink-2); font-size: 15px; }

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line-2); background: radial-gradient(circle at 1px 1px, rgba(21, 23, 28, .12) 1px, transparent 0) 0 0 / 22px 22px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.article-band { padding-top: 56px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose { font-size: 17.5px; line-height: 1.7; }
.prose h2 { font-size: 27px; margin: 1.6em 0 .55em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--red); }
.aside { position: sticky; top: 90px; }
.aside h2 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.aside .guide-cards strong { font-size: 16px; }
.aside .guide-cards span { font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--ink); color: #c4c6cc; padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-foot .brand { color: #fff; margin-bottom: 14px; }
.site-foot .brand .mark rect:first-child { fill: #2a2d35; }
.site-foot h2 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #8b8f98; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #e8e7e2; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .small { color: #8b8f98; font-size: 13.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .v-body { grid-template-columns: 220px minmax(0, 1fr) 260px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { max-width: 520px; }
  .band-head, .priv-grid, .unlock-grid, .article-grid, .export-grid, .spec-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .x-side { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line-2); padding-bottom: 20px; order: -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .features li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .guide-cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  /* Viewer: the stage takes the screen; layers and inspector open below it on request. */
  .v-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "stage stage"; }
  .v-stage { grid-area: stage; }
  .v-layers, .v-inspect { display: none; border: 0; border-top: 1px solid var(--line); }
  .v-layers { grid-area: layers; border-right: 1px solid var(--line); }
  .v-inspect { grid-area: inspect; }
  body.panels-open .v-body { grid-template-rows: minmax(0, 1fr) 42%; grid-template-areas: "stage stage" "layers inspect"; }
  body.panels-open .v-layers, body.panels-open .v-inspect { display: block; }
  .v-panels { display: inline-flex; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .site-nav a:not(:first-child):not(:nth-child(2)) { display: none; }
  .site-nav a { padding: 8px 8px; font-size: 14px; }
  .hero { padding: 36px 0 44px; }
  .tray { flex-wrap: wrap; padding: 18px; }
  .tray .btn { width: 100%; }
  .band, .unlock { padding: 56px 0; }
  .features, .guide-cards.three, .guide-cards.two, .checks, .priv-facts { grid-template-columns: minmax(0, 1fr); }
  .features li:nth-child(even) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .board-size { display: none; }
  .tabs button { padding: 12px 9px; font-size: 14px; }
  .filebar .btn { width: 100%; }
  .v-size { display: none; }
  .export-grid { padding: 20px; }
  .v-bar { gap: 8px; padding: 8px 10px; }
  .v-bar #v-back span { display: none; }
  .v-nav { order: 3; flex-basis: 100%; }
  .v-nav select { flex: 1; max-width: none; }
  .v-zoom #v-100 { display: none; }
  .v-export { margin-left: auto; }
  .v-export #v-png2 { display: none; }
  body.panels-open .v-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 30% 22%; grid-template-areas: "stage" "inspect" "layers"; }
  .v-layers { border-right: 0; }
  .prose { font-size: 17px; }
  .spec-sample { max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
