/* Cutpeek. A craft-room palette: cutting-mat mint, vinyl coral, mustard and sage on warm backing paper. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --card: #fffdf9;
  --ink: #1b3431;
  --ink-2: #4a5d5a;
  --line: #ddd4c4;
  --teal: #1d4b47;
  --teal-2: #2c6a5f;
  --mat: #d3e7df;
  --mat-minor: #b9d7cb;
  --mat-major: #8fbfb0;
  --coral: #d65a43;
  --coral-ink: #a8402b;
  --coral-btn: #b8462f;
  --mustard: #e3a93f;
  --sage: #4f8a68;
  --sage-ink: #3b6b50;
  --focus: #1663a6;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(27, 52, 49, .06), 0 10px 30px -12px rgba(27, 52, 49, .22);
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  font-feature-settings: 'tnum' 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); font-weight: 760; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.05rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: .92em ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--paper-2); padding: .08em .35em; border-radius: 5px; }

.wrap { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }
.small { font-size: .9rem; color: var(--ink-2); }
.eyebrow { font: 700 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: ''; width: 22px; height: 0; border-top: 2px dashed currentColor; }
.lede { font-size: 1.16rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- header */
.site-head { position: relative; z-index: 2; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 760 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 38px; height: 38px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------------------------------------------------------------- buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--body); color: var(--ink); background: var(--card);
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 18px; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { background: #fff; color: var(--ink); transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--coral-btn); border-color: #7e2f1f; color: #fff; box-shadow: 0 2px 0 #7e2f1f; }
.btn.primary:hover { background: #a63f2a; color: #fff; box-shadow: 0 3px 0 #7e2f1f; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; }
.tag { font: 800 .72rem/1 var(--body); letter-spacing: .04em; padding: 5px 7px; border-radius: 6px; }
.tag.free { background: rgba(255, 255, 255, .22); color: #fff; }
.tag.paid { background: var(--mustard); color: #3b2a07; }
.link-btn { background: none; border: 0; padding: 4px 0; font: 600 .95rem var(--body); color: var(--teal-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--coral-ink); }
.field { display: grid; gap: 6px; font-weight: 650; font-size: .86rem; color: var(--ink-2); }
select {
  font: 600 .98rem var(--body); color: var(--ink); background: var(--card);
  border: 1.5px solid #b9ae9b; border-radius: 10px; padding: 10px 34px 10px 12px; width: 100%;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231b3431' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select:hover { border-color: var(--ink-2); }
input[type="number"] {
  font: 600 .98rem var(--body); color: var(--ink); background: var(--card);
  border: 1.5px solid #b9ae9b; border-radius: 10px; padding: 9px 12px; width: 100%;
}
input[type="number"]:hover { border-color: var(--ink-2); }

/* ---------------------------------------------------------------- converter tabs */
.mode-tabs {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 22px; padding: 4px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 1px 0 rgba(27, 52, 49, .05);
}
.mode-tabs a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  padding: 9px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font: 700 .94rem/1.1 var(--body);
}
.mode-tabs a:hover { color: var(--ink); background: var(--paper); }
.mode-tabs a[aria-current="page"] { background: var(--teal); color: #fff; box-shadow: 0 2px 0 #0f2e2b; }
.mode-tabs a[aria-current="page"] .mode-arrow { color: var(--mustard); }
.mode-tabs a + a::before { content: ''; position: absolute; left: -1px; top: 9px; bottom: 9px; border-left: 2px dashed var(--line); }
.mode-tabs a[aria-current="page"]::before, .mode-tabs a[aria-current="page"] + a::before { display: none; }
.mode-arrow { color: var(--coral); font-weight: 800; }
.pill-beta {
  font: 800 .64rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px 3px; border-radius: 6px;
  background: var(--mustard); color: #3b2a07;
}
.beta-note {
  margin: 18px 0 0; padding: 12px 14px 2px 16px; border-radius: 12px; background: #fbf1d9;
  border: 1.5px solid #e7c87d; border-left: 6px solid var(--mustard); color: #4a3608;
}
.beta-note strong { display: block; font: 720 1rem/1.3 var(--display); margin-bottom: 3px; color: #3b2a07; }
.beta-note p { font-size: .93rem; margin-bottom: 10px; }
.tag.beta { background: #fff1cf; color: #5a3f06; }
.export-opts-w { grid-template-columns: 1fr 1fr; }
.export-opts-w .field:first-child { grid-column: auto; }
.export-opts-w .span-2 { grid-column: 1 / -1; }
.layer-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; }
.mat-edge { fill: none; stroke: var(--mat-major); stroke-width: 1.4px; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-more { margin: 18px 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- hero / the bench */
.hero {
  position: relative;
  padding: 26px 0 56px;
  background:
    linear-gradient(var(--paper) 0, rgba(246, 242, 234, 0) 120px),
    repeating-linear-gradient(0deg, rgba(44, 106, 95, .055) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(44, 106, 95, .055) 0 1px, transparent 1px 32px),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  grid-template-areas: "copy mat" "export mat" "export side";
  grid-template-rows: auto 1fr auto;
  column-gap: 44px;
  row-gap: 22px;
  align-items: start;
}
.hero-copy { grid-area: copy; padding-top: 34px; }
.hero-copy h1 { margin-bottom: .35em; }
.open-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.open-row .btn { font-size: 1.08rem; padding: 16px 22px; }
.hint { color: var(--ink-2); font-size: .95rem; }
.trust { display: flex; align-items: center; gap: 8px; color: var(--sage-ink); font-weight: 650; font-size: .95rem; margin: 0; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--sage-ink); }

.error {
  margin-top: 18px; padding: 14px 16px 4px; border-radius: 12px; background: #fdecea;
  border: 1.5px solid #e7a397; border-left-width: 6px; color: #5a1d12;
}
.error strong { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.05rem; }
.error p { margin-bottom: 10px; }
.error:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

.mat-card { grid-area: mat; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 14px 16px; border: 1px solid #e7dfd0; }
.mat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 6px 12px; }
.file-label { display: grid; min-width: 0; }
.file-kicker { font: 700 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.file-name { font: 700 1.12rem/1.3 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat { position: relative; border-radius: 12px; background: var(--mat); min-height: 220px; overflow: hidden; }
.mat-svg { width: 100%; height: auto; max-height: min(64vh, 640px); margin: 0 auto; }
.noscript { padding: 24px; margin: 0; }
.mat-bg { fill: var(--mat); }
.mat-grid line { vector-effect: non-scaling-stroke; }
.mat-grid .minor { stroke: var(--mat-minor); stroke-width: .7px; }
.mat-grid .major { stroke: var(--mat-major); stroke-width: 1.1px; }
.mat-ruler text { fill: var(--teal-2); font-family: var(--body); font-weight: 700; }
.sheet { fill: #fffefb; fill-opacity: .86; }
.sheet-shadow { fill: rgba(27, 52, 49, .13); }
.cut { stroke-width: 1.7px; stroke-linejoin: round; stroke-linecap: round; transition: opacity .2s; }
.cut.filled { fill-opacity: .92; stroke-width: .9px; }
.cut.anim { stroke-dasharray: 1; stroke-dashoffset: 1; animation: blade 1.15s cubic-bezier(.55, 0, .3, 1) forwards; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
.cut.anim.filled { fill-opacity: 0; }
@keyframes blade {
  0% { stroke-dashoffset: 1; }
  70% { stroke-dashoffset: 0; fill-opacity: 0; }
  99% { stroke-dasharray: 1; }
  100% { stroke-dashoffset: 0; stroke-dasharray: none; fill-opacity: .92; }
}
.cut.dim { opacity: .2; }
.cut.off { opacity: .1; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.facts div { background: var(--paper); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.facts dt { font: 700 .7rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.facts dd { margin: 0; font: 700 1rem/1.3 var(--display); font-variant-numeric: tabular-nums; }
.facts dd span { display: block; font: 500 .82rem/1.35 var(--body); color: var(--ink-2); }

.export {
  grid-area: export; position: relative; background: var(--card); border-radius: 18px; padding: 20px 20px 10px;
  border: 1px solid #e7dfd0; box-shadow: var(--shadow);
}
.export::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 0;
  border-top: 2px dashed var(--coral); opacity: .55;
}
.export-h { font-size: 1.15rem; margin-bottom: 14px; }
.export-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.export-opts .field:first-child { grid-column: 1 / -1; }
.export-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.export-buttons .btn { flex: 1 1 180px; }
.note { font-size: .9rem; color: var(--ink-2); margin: 0 0 6px; min-height: 1.4em; }
.status { font-size: .92rem; color: var(--sage-ink); font-weight: 600; margin: 0 0 10px; }
.status:empty { margin: 0; }

.side-grid { grid-area: side; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border-radius: 16px; padding: 16px 18px 12px; border: 1px solid #e7dfd0; }
.panel-h { font-size: 1.05rem; margin-bottom: 2px; }
.panel-sub { font-size: .86rem; color: var(--ink-2); margin-bottom: 10px; }
.layers, .notes { list-style: none; margin: 0; padding: 0; }
.layers li { border-top: 1px dashed var(--line); }
.layers li:first-child { border-top: 0; }
.layers label { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; cursor: pointer; }
.layers input { width: 18px; height: 18px; accent-color: var(--teal-2); margin: 0; }
.layer-name { font-weight: 650; overflow-wrap: anywhere; }
.layer-n { color: var(--ink-2); font-size: .86rem; white-space: nowrap; }
.swatches { display: inline-flex; }
.swatches span {
  width: 18px; height: 22px; border-radius: 4px 9px 9px 4px; background: var(--c, #000);
  box-shadow: inset -4px 0 0 rgba(255, 255, 255, .28), 0 0 0 1.5px var(--card); margin-left: -6px;
}
.swatches span:first-child { margin-left: 0; }
.layers .empty { color: var(--ink-2); padding: 8px 0; }
.notes li { position: relative; padding: 0 0 10px 18px; font-size: .92rem; color: var(--ink-2); }
.notes li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--mustard); transform: rotate(45deg); }
.saved-preview { margin: 6px 0 8px; display: flex; gap: 12px; align-items: center; }
.saved-preview img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.saved-preview figcaption { font-size: .84rem; color: var(--ink-2); }

#drop-veil {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(211, 231, 223, .9);
}
#drop-veil[hidden] { display: none; }
#drop-veil div {
  display: grid; gap: 6px; text-align: center; padding: 40px 56px; border-radius: 22px; background: var(--card);
  border: 3px dashed var(--coral); box-shadow: var(--shadow);
}
#drop-veil strong { font: 760 1.8rem var(--display); }

/* ---------------------------------------------------------------- bands */
.band { padding: 26px 0 64px; }
.cutline {
  position: relative; height: 22px; margin: 0 0 30px;
  background: linear-gradient(90deg, var(--line) 0 60%, transparent 60% 100%) left center / 14px 2px repeat-x;
}
.cutline::before {
  content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 22px; background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M3 15.5 22 6.5l7.5 1.6-4 5.4L3 15.5z' fill='%23d65a43'/%3E%3Cpath d='M3 15.5 22 6.5' stroke='%237e2f1f' stroke-width='1.2'/%3E%3Ccircle cx='25' cy='10' r='1.4' fill='%23fffdf9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; padding-right: 6px;
}
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: end; margin-bottom: 26px; }
.band-head p { color: var(--ink-2); margin: 0 0 .4em; }
.band-head h2 { margin: 0; }

.reads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.reads li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.reads li div { display: grid; }
.reads strong { font-family: var(--display); font-size: 1.04rem; }
.reads span { color: var(--ink-2); font-size: .95rem; }
.mark-yes, .mark-no { width: 28px; height: 28px; border-radius: 50%; display: block; margin-top: 2px; background-repeat: no-repeat; background-position: center; }
.mark-yes { background-color: var(--sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='m8 14.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mark-no { background-color: transparent; border: 2px dashed #c3b8a4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12h9' stroke='%238a7f6c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.steps-band { background: var(--paper-2); padding-top: 34px; }
.steps-band .cutline::before { background-color: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { position: relative; background: var(--card); border-radius: 16px; padding: 22px 22px 8px; border: 1px solid #e3dac9; overflow: hidden; }
.steps li::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--paper-2) 0 50%, #e9c7bd 50% 100%);
  border-top-left-radius: 6px; box-shadow: -2px -2px 4px rgba(27, 52, 49, .08);
}
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 800 1.05rem var(--display); color: #fff; background: var(--teal-2); margin-bottom: 12px; }
.steps li:nth-child(2) .step-n { background: var(--sage-ink); }
.steps li:nth-child(3) .step-n { background: var(--coral-btn); }
.steps p { color: var(--ink-2); }

/* ---------------------------------------------------------------- unlock */
.unlock { padding: 70px 0; background: linear-gradient(180deg, var(--paper) 0, #e7f0eb 100%); }
.unlock-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 48px; align-items: center; }
.unlock-copy p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px; background-color: var(--sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6 11.5 3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ticket {
  position: relative; background: var(--card); border-radius: 18px; padding: 34px 26px 18px; box-shadow: var(--shadow);
  border: 1px solid #dfe9e3;
}
.ticket::before {
  content: ''; position: absolute; top: 14px; left: 50%; width: 26px; height: 10px; margin-left: -13px; border-radius: 6px;
  background: #e7f0eb; box-shadow: inset 0 1px 2px rgba(27, 52, 49, .2);
}
.ticket::after { content: ''; position: absolute; left: 18px; right: 18px; top: 36px; border-top: 2px dashed var(--line); }
.ticket-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; }
.ticket-price span { font: 780 3.2rem/1 var(--display); letter-spacing: -0.03em; }
.ticket-price small { font-weight: 650; color: var(--ink-2); }
.soon { font: 720 1.2rem var(--display); color: var(--teal-2); margin-bottom: 6px; }
.ticket .field { margin-bottom: 14px; }
.batch-results { list-style: none; padding: 0; margin: 0; font-size: .88rem; display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.batch-results li { padding: 6px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.batch-results .ok { background: #e8f2ec; }
.batch-results .bad { background: #fdecea; color: #5a1d12; }

/* ---------------------------------------------------------------- guides */
.guide-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide-cards a {
  position: relative; display: grid; gap: 6px; height: 100%; padding: 18px 20px 20px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid #e3dac9; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.guide-cards a::after {
  content: ''; position: absolute; right: 0; top: 0; width: 0; height: 0;
  background: linear-gradient(225deg, var(--paper) 0 50%, #f0c9be 50% 100%); transition: width .18s ease, height .18s ease;
  border-bottom-left-radius: 6px;
}
.guide-cards a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.guide-cards a:hover::after, .guide-cards a:focus-visible::after { width: 30px; height: 30px; }
.guide-cards strong { font: 700 1.1rem/1.25 var(--display); }
.guide-cards span { color: var(--ink-2); font-size: .93rem; }

.page-head {
  position: relative; padding: 44px 0 34px; margin-bottom: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(44, 106, 95, .055) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(44, 106, 95, .055) 0 1px, transparent 1px 32px),
    var(--paper);
  border-bottom: 2px dashed var(--line);
}
.page-head::after {
  content: ''; position: absolute; right: max(16px, calc((100% - 1240px) / 2)); bottom: -2px; width: 210px; height: 120px;
  background:
    radial-gradient(circle at 30px 30px, var(--coral) 0 18px, transparent 19px),
    linear-gradient(var(--mustard), var(--mustard)) 64px 22px / 58px 98px no-repeat,
    linear-gradient(var(--sage), var(--sage)) 136px 46px / 58px 74px no-repeat,
    linear-gradient(#cfe0f0, #cfe0f0) 6px 66px / 46px 54px no-repeat;
  border-radius: 6px; opacity: .9;
}
.page-head .lede { margin-bottom: 0; }
.page-head .wrap > :not(.eyebrow) { position: relative; z-index: 1; }
.article-band { padding-top: 46px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose h2 { margin-top: 1.5em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--coral); }
.compare { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; background: var(--card); border-radius: 12px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--paper-2); font-family: var(--display); }
.compare tbody th { font-weight: 700; width: 22%; }
.aside { position: sticky; top: 20px; display: grid; gap: 12px; }
.aside h2 { font-size: 1.1rem; margin: 0; }
.aside .guide-cards { grid-template-columns: 1fr; }

.ad-slot { margin: 10px auto 30px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--paper-2); padding: 34px 0 40px; margin-top: 0; }
.site-foot .cutline { width: min(1240px, calc(100% - 32px)); margin: 0 auto 26px; }
.site-foot .cutline::before { background-color: var(--paper-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); gap: 36px; }
.foot-brand p { color: var(--ink-2); margin: 12px 0 0; }
.site-foot h2 { font-size: .8rem; font-family: var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--coral-ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "mat" "export" "side"; grid-template-rows: auto; }
  .hero-copy { padding-top: 8px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-row { padding-top: 12px; }
  .site-nav { width: 100%; justify-content: space-between; margin: 0 -10px; width: calc(100% + 20px); }
  .site-nav a { padding: 8px 10px; font-size: .92rem; }
  .side-grid, .steps, .steps.steps-4, .reads, .band-head, .unlock-grid, .foot-grid, .export-opts-w { grid-template-columns: minmax(0, 1fr); }
  .mode-tabs { display: grid; width: 100%; }
  .mode-tabs a { padding: 10px 8px; font-size: .9rem; }
  .band-head { gap: 8px; }
  .export-opts { grid-template-columns: minmax(0, 1fr); }
  .mat-card { padding: 10px 10px 12px; border-radius: 16px; }
  .open-row .btn { width: 100%; }
  .hint { display: none; }
  .unlock { padding: 48px 0; }
  .page-head::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .cut.anim { stroke-dasharray: none; stroke-dashoffset: 0; }
  .cut.anim.filled { fill-opacity: .92; }
}
@media print {
  .site-head, .site-foot, .export, .unlock, .side-grid { display: none; }
}
/* the SVG -> .studio3 bench: its option panel is taller, so the side panels sit under the mat */
@media (min-width: 1081px) {
  .hero-reverse .hero-grid { grid-template-areas: "copy mat" "export side"; grid-template-rows: auto auto; }
  .hero-reverse .side-grid { align-self: start; }
}
