/* SHIPLOG: the page IS the deploy screen. Light is the identity; dark via prefers-color-scheme. One accent (--ship), meaning only. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --page: #ECEEF1; --window: #FAFBFC; --window-2: #F2F4F6; --paper: #FFFFFF;
  --ink: #0E1116; --ink-2: #4A5260; --ink-3: #5E6673;
  --hair: rgba(14, 17, 22, .10); --hair-2: rgba(14, 17, 22, .18);
  --ship: #0E7440; --ship-d: #0A5A31; --ship-wash: #E3F1E8; --reject: #B42318; --reject-wash: #F9E6E3;
  --drop-bg: #E1E4E8; --drop-ink: #5E6673; --grey-sq: #E1E4E8;
  --shadow: 0 1px 0 rgba(14, 17, 22, .06), 0 18px 40px -24px rgba(14, 17, 22, .28);
  --shadow-b: 0 1px 0 rgba(14, 17, 22, .06), 0 24px 48px -22px rgba(14, 40, 30, .32);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px; --gutter: 16px; --gap: 72px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gap: 128px; --gutter: 48px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0D1014; --window: #16191F; --window-2: #1D2129; --ink: #E7EAEE; --ink-2: #B3BAC5; --ink-3: #8B93A1;
    --hair: rgba(231, 234, 238, .10); --hair-2: rgba(231, 234, 238, .18); --ship: #3FB97A; --ship-d: #2E9A62; --ship-wash: rgba(63, 185, 122, .14);
    --reject: #F0544A; --reject-wash: rgba(240, 84, 74, .14); --drop-bg: #252A33; --drop-ink: #8B93A1; --grey-sq: #2A2F38;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -24px rgba(0, 0, 0, .7); --shadow-b: 0 1px 0 rgba(0, 0, 0, .4), 0 24px 48px -22px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { --page: #0D1014; --window: #16191F; --window-2: #1D2129; --ink: #E7EAEE; --ink-2: #B3BAC5; --ink-3: #8B93A1; --hair: rgba(231, 234, 238, .10); --hair-2: rgba(231, 234, 238, .18); --ship: #3FB97A; --ship-wash: rgba(63, 185, 122, .14); --reject: #F0544A; --reject-wash: rgba(240, 84, 74, .14); --drop-bg: #252A33; --drop-ink: #8B93A1; --grey-sq: #2A2F38; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ship); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.muted { color: var(--ink-3); }

/* ---------- buttons: one scale; primary carries the diff gutter (4px darker bar inside the left edge) ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 24px; border-radius: 8px; font: 500 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ship); color: #fff; overflow: hidden; padding-left: 28px; }
.btn.primary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ship-d); }
.btn.primary:hover { background: var(--ship-d); }
.btn.primary[disabled] { background: var(--window-2); color: var(--ink-3); border-color: var(--hair-2); cursor: not-allowed; }
.btn.primary[disabled]::before { background: var(--hair-2); }
.btn-ghost { background: var(--window); color: var(--ink); border-color: var(--hair-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { --h: 40px; padding: 0 16px 0 20px; font-size: 15px; }
.btn.wide { width: 100%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #06140C; } }

/* ---------- nav (page palette, never a black bar) ---------- */
.nav { position: relative; z-index: 20; }
.nav-in { height: 64px; display: flex; align-items: center; gap: 40px; }
.wordmark { font-size: 22px; font-weight: 500; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark .plus, .foot-mark .plus { color: var(--ship); margin-right: .15em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.head { color: var(--ink-3); font-size: 14px; }
.menu-btn { display: none; margin-left: auto; height: 44px; padding: 0 14px; background: none; border: 1px solid var(--hair-2); border-radius: 8px; font: 500 15px var(--sans); color: var(--ink); }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(14, 17, 22, .32); }
.sheet-in { position: absolute; inset: 0 0 auto 0; background: var(--page); padding: 12px var(--gutter) 28px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.sheet nav { display: grid; }
.sheet nav a { font-size: 22px; font-weight: 500; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.menu-close { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--hair-2); border-radius: 8px; color: var(--ink); }
.menu-close .ic { width: 20px; height: 20px; }
@media (max-width: 899px) { .nav-links, .nav-right { display: none; } .menu-btn { display: block; } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 0; }
h1 { margin: 0; font-weight: 600; font-size: 40px; line-height: .96; letter-spacing: -.04em; max-width: 16ch; }
h1 span { display: block; }
.sub { margin: 20px 0 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.ctas { display: flex; gap: 12px; margin-top: 28px; }
@media (min-width: 768px) { h1 { font-size: 56px; max-width: none; } .sub { font-size: 20px; max-width: none; } }
@media (min-width: 1024px) { .hero { padding-top: 56px; } h1 { font-size: 64px; } }
@media (max-width: 767px) { .ctas { flex-direction: column; } .ctas .btn { width: 100%; } }

/* windows: the only bordered rectangles above the fold */
.win { background: var(--window); border: 1px solid var(--hair); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.dots { display: inline-flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #E5534B; }
.dots i:nth-child(2) { background: #E6A93B; } .dots i:nth-child(3) { background: #3FAE5A; }
.desk { position: relative; margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .desk { grid-template-columns: 53fr 47fr; gap: 0; margin-top: 40px; align-items: start; }
  .winB { margin-left: -24px; margin-top: 14px; position: relative; z-index: 2; box-shadow: var(--shadow-b); }
}
.tabbar { height: 40px; display: flex; align-items: flex-end; gap: 12px; padding: 0 12px; background: var(--window-2); }
.tabbar .dots { align-self: center; margin-right: 8px; }
.tab { display: inline-flex; align-items: center; gap: 28px; height: 32px; padding: 0 12px 0 14px; background: var(--window); border-radius: 8px 8px 0 0; font-size: 13px; color: var(--ink); }
.tab-x, .tab-plus { color: var(--ink-3); display: inline-flex; }
.tab-plus { align-self: center; }
.addr { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid var(--hair); }
.addr-ic { display: inline-flex; gap: 12px; color: var(--ink-3); }
.url { flex: 1; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; background: var(--window-2); border-radius: 14px; color: var(--ink-2); font-size: 13px; }
.url .ic { color: var(--ink-3); }
.viewport { position: relative; aspect-ratio: 16 / 9; background: #1B2340; }
.viewport iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.night { position: absolute; inset: 0; background: #1B2340; }
.play { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(233, 237, 242, .35); background: rgba(11, 16, 34, .6); color: #E9EDF2; font: 500 13px var(--sans); cursor: pointer; opacity: .9; }
.play:hover, .play:focus-visible { opacity: 1; }
.flash { position: absolute; inset: 0; background: #E9EDF2; opacity: 0; pointer-events: none; }
.flash.on { animation: flash 180ms linear; }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: .55; } 100% { opacity: 0; } }
.toast { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: var(--window); color: var(--ink); border-radius: 6px; padding: 10px 14px 10px 18px; font-size: 13px; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ship); }
.toast:empty { display: none; }
.toast.in { animation: toastIn .5s var(--ease); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.revert-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 16, 34, .78); color: #E9EDF2; font-size: 14px; }
@media (max-width: 767px) { .tabbar { display: none; } .addr-ic .ic:nth-child(-n+2) { display: none; } .toast { font-size: 12px; padding: 8px 12px 8px 16px; left: 8px; bottom: 8px; } .play { top: 8px; right: 8px; } }

/* commit log window */
.win-bar { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: var(--window-2); }
.log-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 14px; }
.lrow { display: grid; grid-template-columns: 40px minmax(0, auto) minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; min-height: 60px; }
.lrow:last-child { border-bottom: 0; }
a.lrow:hover { background: var(--window-2); }
.lrow .n { color: var(--ink-2); font-size: 13px; }
.chipcell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.req { display: grid; min-width: 0; gap: 2px; }
.req .q { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req .wl { font-size: 12px; color: var(--ink-3); }
.right { display: grid; justify-items: end; gap: 2px; font-size: 13px; white-space: nowrap; }
.right .t { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.right .sub { color: var(--ink-3); font-size: 13px; }
.lrow.dropped { background: color-mix(in srgb, var(--drop-bg) 45%, transparent); }
.lrow.dropped .q, .lrow.dropped .wl, .lrow.dropped .n, .lrow.dropped .sub { color: var(--drop-ink); }
.lrow.dropped .q { text-decoration: line-through; }
.empty { padding: 18px 16px; color: var(--ink-3); font-size: 13px; margin: 0; }
@media (min-width: 1024px) and (max-width: 1279px) { .lrow { grid-template-columns: 36px auto minmax(0, 1fr); } .lrow .right { grid-column: 3; justify-items: start; } }
@media (max-width: 767px) {
  .log-head { font-size: 12px; padding: 10px 12px; }
  .lrow { grid-template-columns: auto auto 1fr; grid-template-areas: "n chip right" "req req req"; row-gap: 4px; padding: 10px 12px; min-height: 0; }
  .lrow .n { grid-area: n; } .lrow .chipcell { grid-area: chip; } .lrow .right { grid-area: right; display: flex; justify-content: flex-end; align-items: center; gap: 10px; } .lrow .req { grid-area: req; grid-template-columns: 1fr auto; } .lrow .req .q { white-space: normal; }
  .lrow .right .sq { display: none; }
  .lrow.m-hide { display: none; }
}

/* chips: text always, colour never alone */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.chip.ship { background: var(--ship-wash); color: var(--ship); }
.chip.reject { background: var(--reject-wash); color: var(--reject); }
.chip.neutral { background: var(--window-2); color: var(--ink-2); border: 1px solid var(--hair); }
.chip.dropped { background: var(--drop-bg); color: var(--drop-ink); }
.chip.new { height: 20px; border: 1px solid color-mix(in srgb, var(--ship) 40%, transparent); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ship); display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 50% { transform: scale(.7); opacity: .6; } }
.demo-tag { font: 400 11px/1 var(--mono); color: var(--ink-3); border: 1px dashed var(--hair-2); border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.ds .add { color: var(--ship); } .ds .del { color: var(--reject); }
.sq { display: inline-flex; gap: 3px; vertical-align: middle; }
.sq i { width: 9px; height: 9px; border-radius: 2px; background: var(--grey-sq); }
.sq i.green { background: var(--ship); } .sq i.red { background: var(--reject); }

/* ---------- sections + the diff-gutter divider ---------- */
.sec { padding-top: var(--gap); }
.divider { position: relative; height: 1px; background: var(--hair-2); margin-bottom: 36px; }
.divider .tick { position: absolute; left: 0; top: -14px; color: var(--ship); font: 500 18px/1 var(--mono); background: var(--page); padding-right: 8px; }
.divider { margin-left: 22px; }
.divider .tick { left: -22px; }
h2 { margin: 0 0 24px; font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
@media (min-width: 768px) { h2 { font-size: 28px; } }
@media (min-width: 1024px) { h2 { font-size: 36px; margin-bottom: 28px; } }

/* ---------- ship: diff window + tilted receipt ---------- */
.ship-grid { position: relative; display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .ship-grid { grid-template-columns: minmax(0, 1fr) 312px; gap: 0; }
  .receipt-slot { margin-left: -36px; margin-top: -122px; position: relative; z-index: 3; }
  /* the strip runs from ~18px above the divider to ~17px below the diff window */
  .receipt-slot .receipt { height: calc(100% + 17px); display: flex; flex-direction: column; }
  .receipt-slot .rbody { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
  .dw .dw-head { padding-right: 64px; }
}
.dw-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--hair); font-size: 14px; flex-wrap: wrap; }
.dw-head .msg { font-weight: 500; }
.dw-meta { display: inline-flex; align-items: center; gap: 18px; color: var(--ink-2); }
.dw-meta a { text-decoration: none; }
.ci-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--hair); background: var(--window-2); }
.cichip { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ship); background: var(--ship-wash); padding: 7px 9px; border-radius: 4px; white-space: nowrap; }
.cichip.fail { color: var(--reject); background: var(--reject-wash); }
.cichip.skip { color: var(--ink-3); background: transparent; border: 1px dashed var(--hair-2); }
.ci-sum { display: inline-flex; gap: 14px; margin-left: 8px; font-size: 14px; }
.dfile { border-bottom: 1px solid var(--hair); }
.dfile summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; font-size: 14px; }
.dfile summary::-webkit-details-marker { display: none; }
.dfile .caret { margin-left: auto; color: var(--ink-3); transition: transform .2s var(--ease); display: none; }
.dfile:not([open]) .caret { transform: rotate(-90deg); }
.dlines { font-size: 13.5px; }
.dl { display: grid; grid-template-columns: 48px 1fr; min-height: 22.5px; align-items: center; }
.dl .ln { color: var(--ink-3); text-align: right; padding-right: 14px; font-size: 13px; user-select: none; }
.dl .code { white-space: pre; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.dl.add { background: var(--ship-wash); } .dl.add .code { color: var(--ship); }
.dl.del { background: var(--reject-wash); } .dl.del .code { color: var(--reject); }
.dl.hunk { background: var(--window-2); color: var(--ink-3); }
.more { margin: 0 0 0 48px; padding: 6px 0 10px; background: none; border: 0; color: var(--ink-3); font-size: 13px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.more-lines[hidden] { display: none; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; background: #1B2340; }
.shots figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.open-diff { margin: 20px 0 0; } .open-diff a { font-weight: 500; text-underline-offset: 4px; }
@media (max-width: 767px) { .shots { grid-template-columns: 1fr; } .dfile .caret { display: inline-flex; } .dl .code { white-space: pre-wrap; word-break: break-all; } .dw-head { padding: 12px 14px; } .ci-strip { padding: 10px 14px; } .dfile summary { padding: 10px 14px; } }
@media (min-width: 768px) and (max-width: 1023px) { .dfile .caret { display: inline-flex; } }
/* SHIP RECEIPT: thermal paper, perforated top, tilted -2deg on desktop only */
.receipt { background: var(--paper); color: #0E1116; font-family: var(--mono); font-size: 14px; position: relative; padding: 30px 22px 24px; box-shadow: 0 1px 0 rgba(14, 17, 22, .06), 0 22px 34px -18px rgba(14, 17, 22, .32); }
/* perforated top edge: half-circles punched out in the page colour */
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: radial-gradient(circle at 6px 0, var(--page) 4.5px, transparent 5px) 0 0 / 12px 6px repeat-x; }
  mask: radial-gradient(circle at 50% 0, transparent 4px, #000 4.5px) 0 0 / 12px var(--perf) repeat-x, linear-gradient(#000, #000) 0 var(--perf) / 100% calc(100% - var(--perf)) no-repeat; }
.receipt a { color: #0E1116; }
.rbody { display: grid; justify-items: center; text-align: center; gap: 0; }
.rl { padding: 7px 0; line-height: 1.35; }
.rtitle { font-weight: 500; font-size: 16px; letter-spacing: .06em; }
.rsep { width: 100%; height: 1px; background: repeating-linear-gradient(90deg, #8A919C 0 6px, transparent 6px 12px); opacity: .8; }
.receipt .add { color: #0E7440; } .receipt .del { color: #B42318; }
.receipt .share { margin-top: 18px; --h: 48px; background: #fff; color: #0E1116; border: 1.5px solid #0E1116; }
.receipt .demo-tag { color: #5E6673; border-color: #B9BEC6; }
@media (min-width: 1024px) {
  .receipt:not(.standalone) { transform: rotate(-2deg); transform-origin: 50% 0; }
  @media (prefers-reduced-motion: no-preference) {
    .receipt-slot .receipt.printing { animation: print 1.4s var(--ease) both; }
    @keyframes print { from { clip-path: inset(0 0 100% 0); transform: rotate(-2deg) translateY(-24px); } to { clip-path: inset(0 0 -40px 0); transform: rotate(-2deg); } }
  }
}
@media (max-width: 1023px) { .receipt { max-width: 520px; width: 100%; margin: 0 auto; } }

/* ---------- file: the real form ---------- */
.composer { border-radius: 10px; }
.win-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--window-2); border-bottom: 1px solid var(--hair); font-size: 13px; letter-spacing: .04em; color: var(--ink-2); flex-wrap: wrap; }
.ccols { display: grid; }
.ccol { padding: 22px 24px 26px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.ccol label { font-size: 15px; font-weight: 500; color: var(--ink); }
@media (min-width: 1024px) { .ccols { grid-template-columns: 1fr 1.32fr 1fr; } .ccol + .ccol { border-left: 1px solid var(--hair); } .ccol { padding: 32px 30px 34px; } }
@media (min-width: 768px) and (max-width: 1023px) { .ccols { grid-template-columns: 1fr 1fr; } .c2 { border-left: 1px solid var(--hair); } .c3 { grid-column: 1 / -1; border-top: 1px solid var(--hair); } }
@media (max-width: 767px) { .ccol + .ccol { border-top: 1px solid var(--hair); } }
.sigwrap { position: relative; display: flex; align-items: stretch; height: 56px; background: var(--window); border: 1px solid var(--hair-2); border-radius: 6px; overflow: hidden; transition: border-color .16s var(--ease); }
.sigwrap::before { content: ""; width: 0; background: var(--ship); transition: width .3s var(--ease); }
.sigwrap.ok { border-color: var(--hair-2); } .sigwrap.ok::before { width: 6px; }
.sigwrap.bad { border-color: var(--reject); }
.sigwrap input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 16px; color: var(--ink); }
.sigwrap input:focus { outline: none; }
.sigwrap:focus-within { box-shadow: 0 0 0 2px var(--ship); }
.paste { width: 48px; border: 0; border-left: 1px solid var(--hair); background: var(--window-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.paste .ic { width: 18px; height: 18px; }
.vout { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); min-height: 44px; line-height: 1.55; }
.vout b { font-weight: 500; color: var(--ink); }
.vout .skel { display: block; height: 12px; width: 80%; border-radius: 3px; background: var(--window-2); margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .vout .skel { animation: skel 1.1s ease-in-out infinite alternate; } }
@keyframes skel { to { opacity: .45; } }
.err { margin: 0; color: var(--reject); font-size: 14px; line-height: 1.45; min-height: 0; }
.err:empty { display: none; }
.err .retry { margin-left: 8px; font: inherit; color: var(--ink); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.reqbox { position: relative; min-height: 110px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--window); font-size: 17px; line-height: 1.55; }
.reqbox:focus-within { box-shadow: 0 0 0 2px var(--ship); }
.reqbox .mirror, .reqbox textarea { position: absolute; inset: 0; margin: 0; padding: 14px 16px; font: inherit; letter-spacing: 0; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.reqbox .mirror { color: var(--ink); pointer-events: none; }
.reqbox .pfx, .reqbox .sfx { color: var(--ink-2); }
.reqbox textarea { resize: none; border: 0; background: transparent; color: transparent; caret-color: var(--ink); width: 100%; height: 100%; outline: none; }
.reqbox textarea::selection { background: rgba(14, 116, 64, .25); color: transparent; }
.counter { justify-self: end; font-size: 13px; color: var(--ink-3); }
.counter.over { color: var(--reject); }
.c2 .btn { margin-top: 6px; }
.c3 .idle { color: var(--ink-3); font-size: 15px; margin: 6px 0 0; }
.placed { margin: 0; font-weight: 600; font-size: 34px; letter-spacing: -.03em; line-height: 1.05; }
.placed-meta { margin: 8px 0 0; font-size: 20px; color: var(--ink-2); line-height: 1.45; }
.c3 .openlog { font-size: 18px; font-weight: 500; text-underline-offset: 5px; margin-top: 10px; display: inline-block; }
.editbox { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--hair-2); display: grid; gap: 10px; font-size: 14px; }
.editcode { font-size: 20px; letter-spacing: .12em; color: var(--ink); }
.editbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.editbtns .btn { --h: 44px; padding: 0 14px; font-size: 14px; }
.editbox .note { color: var(--ink-3); font-size: 13px; }
.rules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 6px 64px; font-size: 15px; color: var(--ink-2); }
.rules li { display: grid; grid-template-columns: 28px 1fr; }
.rules .plus { color: var(--ship); font-weight: 500; }
.rules .rbr { display: none; }
@media (min-width: 1024px) { .rules { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 64px; grid-template-rows: repeat(5, auto); grid-auto-flow: column; font-size: 16px; } }
@media (max-width: 767px) { .rules { font-size: 13px; } .rules li { grid-template-columns: 22px 1fr; } .rules .rbr { display: inline; } }

/* ---------- ledger ---------- */
.ledger-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .ledger-grid { grid-template-columns: 1fr 1.16fr; align-items: start; } }
.qsearch { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--window); color: var(--ink-3); }
.qsearch input { width: 120px; border: 0; background: transparent; font: 400 13px var(--mono); color: var(--ink); outline: none; }
.qrow { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.qrow .n { font-size: 14px; } .qrow .eta { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.qrow .note { font-size: 12px; color: var(--ink-3); } .qrow .note.warn { color: var(--reject); }
.qrow.hit { background: var(--ship-wash); }
.win-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 18px; font-size: 13px; color: var(--ink-3); background: none; border: 0; text-align: left; min-height: 48px; }
button.win-foot { cursor: pointer; display: block; } button.win-foot:hover { color: var(--ink); }
.blog { padding: 16px 18px 18px; font-size: 14px; display: grid; gap: 14px; }
.bh { color: var(--ink-3); margin-bottom: 2px; }
.bl { display: grid; grid-template-columns: 112px auto 1fr; column-gap: 24px; line-height: 1.7; }
.bk { color: var(--ink-3); } .bv { color: var(--ink); white-space: nowrap; }
.bx { color: var(--ink); min-width: 0; } .bx2, .bx3 { display: inline-block; margin-left: 28px; white-space: nowrap; }
.blog a { text-underline-offset: 3px; }
.inv { background: var(--ship-wash); border-top: 1px solid var(--hair); }
.inv.bad { background: var(--reject-wash); }
.inv .chip { background: transparent; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.inv-why { color: var(--reject); font-size: 12px; }
.next { margin-left: auto; }
@media (max-width: 767px) {
  .qrow { grid-template-columns: auto auto 1fr; grid-template-areas: "n chip eta" "req req req"; row-gap: 6px; padding: 12px 14px; }
  .qrow .n { grid-area: n; } .qrow .chipcell { grid-area: chip; } .qrow .eta { grid-area: eta; justify-self: end; } .qrow .req { grid-area: req; } .qrow .req .q { white-space: normal; }
  .qsearch input { width: 96px; }
  .bl { grid-template-columns: 76px auto 1fr; column-gap: 12px; } .bx { grid-column: 3; } .bx2, .bx3 { display: block; margin-left: 0; } .bl:has(.bx2), .bl:has(.bx3) { grid-template-columns: 76px auto; } .bl:has(.bx2) .bx, .bl:has(.bx3) .bx { grid-column: 2; }
  .blog { font-size: 13px; padding: 14px; }
}
.drawers { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.drawer summary { cursor: pointer; font-size: 14px; color: var(--ink-2); list-style: none; padding: 10px 0; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer[open] summary { color: var(--ink); }
.drawer-body { font-size: 13px; padding: 12px 0; display: grid; gap: 4px; color: var(--ink-2); max-height: 320px; overflow: auto; }
.drawer-body .dr { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; }

/* ---------- buy ---------- */
.eyebrow { margin: 0 0 14px; font-size: 14px; letter-spacing: .06em; color: var(--ink-2); }
.buy h2 { font-size: 34px; margin-bottom: 26px; }
@media (min-width: 1024px) { .buy h2 { font-size: 48px; } }
.buy-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-btns .btn { min-width: 160px; }
.ca { display: inline-flex; align-items: center; gap: 18px; margin-top: 22px; font-size: 18px; color: var(--ink-2); }
.ca-v { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; min-height: 44px; }
.fees { margin: 14px 0 0; color: var(--ink-2); font-size: 18px; }
@media (max-width: 767px) { .buy-btns { display: grid; grid-template-columns: 1fr 1fr; } .buy-btns .btn:first-child { grid-column: 1 / -1; } .buy-btns .btn { min-width: 0; padding: 0 12px; } .fees { font-size: 16px; } .ca { font-size: 16px; } }
.copied { color: var(--ship) !important; }

/* ---------- footer: the tail of git log ---------- */
.foot { padding: var(--gap) 0 56px; }
.foot-rule { height: 1px; background: var(--hair-2); margin-bottom: 40px; }
.foot-mark { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.01em; }
@media (min-width: 1024px) { .foot-mark { font-size: 44px; } }
.gitlog { margin-top: 18px; font-size: 16px; display: grid; gap: 2px; }
.gcmd { color: var(--ink-2); margin-bottom: 4px; }
.gl { display: flex; gap: 18px; } .gl .h { color: var(--ink-3); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.foot-ca .ca { margin-top: 0; font-size: 16px; }
.foot-links { display: flex; gap: 32px; font-size: 18px; }
.foot-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.disclaimer { margin: 18px 0 0; color: var(--ink-3); font-size: 15px; }
@media (max-width: 767px) { .gitlog { font-size: 14px; } .gl { gap: 10px; } .foot-row { display: grid; } }

/* ---------- secondary pages ---------- */
.page { padding: 32px 0 0; min-height: 60vh; }
.ph { font-size: 36px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.05; }
@media (min-width: 1024px) { .ph { font-size: 48px; } }
.lede { color: var(--ink-2); max-width: 65ch; margin: 0 0 28px; font-size: 18px; }
.ftabs { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.ftab { text-decoration: none; padding: 0 14px; height: 40px; display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid var(--hair-2); font-size: 14px; color: var(--ink-2); }
.ftab.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.drow { display: grid; grid-template-columns: 52px auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; font-size: 14px; }
.drow:hover { background: var(--window-2); }
.drow .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow .r { display: inline-flex; gap: 12px; align-items: center; white-space: nowrap; }
@media (max-width: 767px) { .drow { grid-template-columns: auto 1fr; } .drow .q { grid-column: 1 / -1; white-space: normal; } .drow .r { grid-column: 1 / -1; } }
.crumbs { color: var(--ink-3); font-size: 14px; margin: 0 0 12px; } .crumbs a { color: var(--ink-2); }
.diffpage .ph { font-size: 28px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.reason { color: var(--reject); font-size: 14px; }
.trailers { background: var(--window-2); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.diffpage .ci-strip { border: 1px solid var(--hair); border-radius: 8px; margin: 14px 0 20px; }
.dfull { margin-bottom: 18px; }
.dfh { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hair); font-size: 14px; flex-wrap: wrap; }
.split { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; display: none; }
.split td { padding: 1px 8px; vertical-align: top; }
.split td.ln { width: 48px; text-align: right; color: var(--ink-3); user-select: none; }
.split td.code { white-space: pre-wrap; word-break: break-all; }
.split td.add { background: var(--ship-wash); color: var(--ship); } .split td.del { background: var(--reject-wash); color: var(--reject); } .split td.hunk { background: var(--window-2); color: var(--ink-3); }
.split td.empty { background: var(--window-2); }
.unified .dl .code { white-space: pre-wrap; word-break: break-all; }
@media (min-width: 1024px) { .split { display: table; } .unified { display: none; } }
.cilog summary { cursor: pointer; font-size: 14px; padding: 10px 0; }
.cilog pre { background: var(--window-2); padding: 14px; border-radius: 8px; font-size: 12px; overflow: auto; max-height: 360px; }
.dlinks { display: flex; gap: 22px; font-size: 14px; margin: 18px 0; flex-wrap: wrap; }
.rpage { display: grid; justify-items: center; gap: 24px; padding: 24px 0; }
.rpage .receipt { width: min(380px, 100%); }
.rpage p { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.nf { padding: 56px 0; } .nf-code { color: var(--ink-3); }
.docs .dsec { padding-top: 48px; max-width: 820px; } .docs .dsec h2 { font-size: 26px; }
.docs p, .docs li, .docs dd { color: var(--ink-2); max-width: 65ch; }
.toc { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; }
.toc a { color: var(--ink-2); }
.steps { padding-left: 20px; display: grid; gap: 10px; }
.plain { padding-left: 18px; display: grid; gap: 8px; }
.states { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; align-items: center; font-size: 14px; }
.states dd, .faq dd { margin: 0; font-family: var(--sans); }
.faq dt { font-weight: 600; margin-top: 16px; } .faq dd { margin-top: 4px; }
.small { font-size: 13px; }
@media (max-width: 767px) { .states { grid-template-columns: 1fr; } .states dd { margin-bottom: 8px; } }
/* OG receipt card 1200x630 */
.og-body { margin: 0; width: 1200px; height: 630px; background: #ECEEF1; overflow: hidden; }
.og-body .skip { display: none; }
.og { width: 1200px; height: 630px; display: grid; place-items: center; background: #ECEEF1; }
.og { position: relative; }
.og .receipt { width: 430px; transform: rotate(-2deg); font-size: 15px; padding: 26px 24px 20px; }
.og .rl { padding: 3px 0; } .og .share { display: none; }
.og-mark { position: absolute; left: 56px; top: 44px; margin: 0; font-size: 30px; font-weight: 500; color: #0E1116; } .og-mark .plus { color: #0E7440; }
.og-home { grid-template-columns: 1fr 430px; gap: 48px; padding: 0 70px 0 56px; place-items: center start; }
.og-home .og-l { position: relative; height: 100%; display: grid; align-content: center; }
.og-home .og-mark { left: 0; top: 44px; }
.og-home h1 { font-size: 64px; line-height: .98; letter-spacing: -.04em; max-width: 11ch; color: #0E1116; }
.og-sub { margin: 24px 0 0; font-size: 18px; color: #4A5260; max-width: 30ch; }

/* motion: transform + opacity only; all off under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal][open] .dl { animation: rev .5s var(--ease) both; }
  [data-reveal][open] .dl:nth-child(2) { animation-delay: 40ms; } [data-reveal][open] .dl:nth-child(3) { animation-delay: 80ms; } [data-reveal][open] .dl:nth-child(4) { animation-delay: 120ms; } [data-reveal][open] .dl:nth-child(5) { animation-delay: 160ms; } [data-reveal][open] .dl:nth-child(6) { animation-delay: 200ms; } [data-reveal][open] .dl:nth-child(7) { animation-delay: 240ms; } [data-reveal][open] .dl:nth-child(8) { animation-delay: 280ms; } [data-reveal][open] .dl:nth-child(9) { animation-delay: 320ms; }
  .js .dw:not(.seen) .dl { animation: none; opacity: 0; }
  @keyframes rev { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
  .lrow.flip .chip { animation: chipIn .45s var(--ease); }
  @keyframes chipIn { from { transform: scale(.86); opacity: .4; } to { transform: none; opacity: 1; } }
  .lrow.flip .sq i { animation: fill .5s var(--ease) both; }
  .lrow.flip .sq i:nth-child(2) { animation-delay: 60ms; } .lrow.flip .sq i:nth-child(3) { animation-delay: 120ms; } .lrow.flip .sq i:nth-child(4) { animation-delay: 180ms; } .lrow.flip .sq i:nth-child(5) { animation-delay: 240ms; }
  @keyframes fill { from { transform: scale(0); } to { transform: none; } }
}
.stale { font: 400 11px var(--mono); color: var(--reject); margin-left: 8px; }
.reconn { font: 400 11px var(--mono); color: var(--ink-3); }
/* 1024-1279: the ledger windows sit side by side but are narrow; the budget extras drop under their value */
@media (min-width: 1024px) and (max-width: 1279px) { .bl { grid-template-columns: 92px auto; column-gap: 16px; } .bx { grid-column: 2; } .bx2, .bx3 { margin-left: 0; margin-right: 20px; } .blog { font-size: 13px; } }
