/* LineUp's design system, from design/print-label-20261001/canvas: a green cutting mat with a grid and rulers, white
   paper with a soft shadow, cyan dimension lines, apricot buttons, an airmail envelope and a postmark. The tokens in
   :root are shared with the editor (web/editor.css). Production CSP: no inline styles anywhere, so positions to
   scale are SVG attributes or classes, and modules move things through element.style. Fonts: latin subsets, OFL. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque.a79fdb52d4.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans.2ee17598a9.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/martian-mono.d0be3a78a8.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* The design's palette (shared with the editor). */
  --mat: #1E4A3B;
  --paper: #FFFFFF;
  --desk: #EEF0EA;
  --ink: #13233A;
  --line: #DDE3DA;
  --cyan: #8FD8E6;
  --cyan-ink: #1B6E80;
  --apricot: #F2A65A;
  --postmark: #C8463D;
  --airmail: #2F5DA8;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Derived, contrast-checked: ink-2 7.3:1 and muted 4.8:1 on the desk; mint 7.2:1 and mat-text 8.1:1 on the mat. */
  --ink-2: #3D4F62;
  --ink-3: #4A5B6B;
  --muted: #5B6B7B;
  --mint: #BFE3D5;
  --mat-text: #DCEBE4;
  --desk-2: #F4F6F2;
  --line-2: #D3DAD0;
  --field: #7D8E84;
  --apricot-hover: #F5B371;
  --apricot-tint: #FFF1DF;
  --shadow-paper: 0 1px 0 rgba(19, 35, 58, 0.06), 0 18px 40px -18px rgba(9, 26, 20, 0.55), 0 3px 8px rgba(9, 26, 20, 0.18);
  --focus: var(--ink);
  --gutter: clamp(16px, 4.4vw, 64px);
  --masthead: 120px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--mat); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 500 0.88em var(--font-mono); background: var(--desk-2); padding: 1px 5px; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
main { display: block; }
main:focus { outline: none; }
.icon { flex: none; vertical-align: middle; }

/* ---------- the cutting mat, paper, rulers ---------- */
.mat {
  --focus: var(--apricot);
  background-color: var(--mat);
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: #FFFFFF;
}
.mat a:not(.btn) { color: #FFFFFF; }
/* A hero right under the header carries on the header's grid. */
.mat-continued { background-position: -1px calc(-1px - var(--masthead)); }
.paper { background: var(--paper); box-shadow: var(--shadow-paper); }
.ruler {
  display: flex; height: 27px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 96px 14px, 48px 9px, 12px 5px; background-repeat: repeat-x;
}
.ruler span { flex: none; width: 96px; padding: 13px 0 0 4px; font: 500 9px/1 var(--font-mono); color: rgba(255, 255, 255, 0.72); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(1040px + 2 * var(--gutter)); }
.section { padding: 112px 0; }
.section-white { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 52px; }
.section-head .section-title { margin: 0; max-width: 700px; }
.section-head .lede { margin: 0; max-width: 400px; }
.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.two-flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 18px; font: 500 12px/1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-ink); }
.mat .eyebrow { color: var(--mint); }
.hero-title, .page-title, .section-title, .section-title-small, .group-title { font-family: var(--font-display); letter-spacing: -0.025em; }
.hero-title { font-size: clamp(46px, 6.2vw, 92px); line-height: 0.94; font-weight: 800; }
.page-title { font-size: clamp(40px, 5.4vw, 80px); line-height: 0.98; font-weight: 800; }
.section-title { margin-bottom: 22px; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 750; }
.section-title-wide { max-width: 860px; margin-bottom: 52px; }
.section-title-small { margin-bottom: 30px; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; font-weight: 750; }
.reg { position: relative; top: -0.85em; margin-left: 0.03em; font-size: 0.42em; font-weight: 600; letter-spacing: 0; vertical-align: baseline; }
.lede { max-width: 540px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); }
.mat .lede { color: var(--mat-text); }
.field-key { display: block; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mat .field-key { color: var(--mint); }
.hint { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.link-arrow .icon { transition: transform 0.2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.badge { display: inline-block; margin-left: 8px; padding: 4px 9px; border-radius: 999px; background: var(--apricot); color: var(--ink); font: 600 10px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
.group-count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--desk-2); color: var(--muted); font: 600 12px/1 var(--font-mono); letter-spacing: 0; vertical-align: 0.3em; }

/* ---------- buttons, chips, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  font: 600 17px/1.15 var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-main { background: var(--apricot); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(242, 166, 90, 0.9); }
.btn-main:hover { background: var(--apricot-hover); color: var(--ink); }
.mat .btn-main { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55); }
.btn-ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { color: #FFFFFF; box-shadow: inset 0 0 0 1.5px #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: var(--mat); color: #FFFFFF; }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { color: var(--ink); background: var(--desk-2); }
.btn-small { min-height: 46px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #CBD3C8; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: 500 15px/1 var(--font-body); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--mat); transform: translateY(-1px); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip-num { font: 600 13px/1 var(--font-mono); }
.number-input { position: relative; }
.number-input .icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; }
.number-input input {
  width: 100%; height: 84px; padding: 0 24px 0 70px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper);
  font: 600 40px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--ink);
}
.number-input input::placeholder { color: #8796A3; }
.number-input-small input { height: 60px; padding-left: 58px; border-radius: 14px; font-size: 24px; }
.number-input-small .icon { left: 18px; width: 22px; height: 22px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .measure select, .stepper input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--paper); color: var(--ink); font: 500 17px/1.2 var(--font-body);
}
.field select, .measure select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field select:hover { border-color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 76px; min-height: 44px; padding: 0 6px; text-align: center; font: 750 22px/1 var(--font-display); }
.step-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid #CBD3C8; border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 600 22px/1 var(--font-body); cursor: pointer;
}
.step-btn:hover { border-color: var(--ink); }

/* ---------- header and footer ---------- */
.site-header { height: var(--masthead); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; height: calc(var(--masthead) - 27px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font: 700 23px/1 var(--font-display); letter-spacing: -0.025em; }
.site-header .brand, .site-header .brand:hover { color: #FFFFFF; }
.site-nav { justify-self: end; display: flex; align-items: center; gap: 30px; }
.site-nav a { padding: 6px 0; color: #FFFFFF; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--apricot); }
.header-cta { white-space: nowrap; }
.crumbs { margin: 0 0 30px; font: 500 12px/1.5 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.7; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.mat .crumbs, .mat .crumbs a { color: var(--mint); }
.mat .crumbs [aria-current] { color: #FFFFFF; }
.site-footer { background: var(--ink); color: var(--mat-text); font-size: 15px; --focus: var(--apricot); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand .brand { color: #FFFFFF; font-size: 22px; margin-bottom: 16px; }
.footer-brand p { max-width: 380px; margin: 0; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-title { margin: 0 0 12px; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: #FFFFFF; text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal { padding-bottom: 36px; }
.footer-legal p { margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; line-height: 1.6; color: var(--mint); }
.app-footer { padding: 14px var(--gutter); background: var(--ink); color: var(--mint); font-size: 13px; }
.app-footer p { margin: 0; }

/* ---------- home: hero and scene ---------- */
.hero { padding: 40px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 40px; align-items: center; }
.hero .lede { max-width: 520px; margin: 28px 0 0; font-size: clamp(18px, 1.5vw, 20px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--mat-text); }
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points .icon { color: var(--mint); }
.scene-wrap { margin: 0; width: 100%; max-width: 660px; justify-self: end; }
.scene { --u: 1px; --tick: 0.45s; position: relative; width: 100%; aspect-ratio: 660 / 600; container-type: inline-size; overflow: hidden; border-radius: 6px; }
@supports (width: 1cqw) { .sc-stage { --u: calc(100cqw / 660); } }
.sc-stage { position: absolute; inset: 0; animation: sc-fade 0.45s ease both; }
.sc-stage > * { position: absolute; }
.sc-sheet { left: calc(240 * var(--u)); top: calc(62 * var(--u)); width: calc(300 * var(--u)); height: calc(388 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--paper); box-shadow: var(--shadow-paper); animation: sc-feed 1.2s cubic-bezier(0.2, 0.75, 0.15, 1) var(--tick) both; }
.sc-labels { display: grid; grid-template-columns: repeat(3, calc(92.6 * var(--u))); grid-auto-rows: calc(35.29 * var(--u)); column-gap: calc(4.46 * var(--u)); padding: calc(17.65 * var(--u)) 0 0 calc(6.62 * var(--u)); }
.sc-label { --row: 0s; --col: 0s; position: relative; overflow: hidden; border: 1px solid #DCE2D9; border-radius: calc(5 * var(--u)); background: var(--paper); }
.sc-text { position: absolute; left: calc(7 * var(--u)); top: calc(5 * var(--u)); right: calc(4 * var(--u)); font: 500 calc(6.4 * var(--u)) / 1.28 var(--font-body); color: var(--ink); white-space: nowrap; clip-path: inset(0 0 0 0); animation: sc-print 0.5s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
.sc-text b, .sc-text span { display: block; overflow: hidden; text-overflow: clip; }
.sc-text b { font-weight: 700; }
.sc-label:nth-child(1) .sc-text { animation-delay: calc(var(--tick) * 3); }
.sc-label:nth-child(2) .sc-text { animation-delay: calc(var(--tick) * 4); }
.sc-label:nth-child(3) .sc-text { animation-delay: calc(var(--tick) * 5); }
.sc-label:nth-child(5) .sc-text { animation-delay: calc(var(--tick) * 7); }
.sc-label:nth-child(6) .sc-text { animation-delay: calc(var(--tick) * 8); }
.sc-label:nth-child(3n + 2) { --col: 0.05s; }
.sc-label:nth-child(3n) { --col: 0.1s; }
.sc-label:nth-child(n + 10) { --row: 0.15s; }
.sc-label:nth-child(n + 13) { --row: 0.3s; }
.sc-label:nth-child(n + 16) { --row: 0.45s; }
.sc-label:nth-child(n + 19) { --row: 0.6s; }
.sc-label:nth-child(n + 22) { --row: 0.75s; }
.sc-label:nth-child(n + 25) { --row: 0.9s; }
.sc-label:nth-child(n + 28) { --row: 1.05s; }
.sc-label:nth-child(n + 7) .sc-text { animation-delay: calc(var(--tick) * 9 + var(--row) + var(--col)); }
.sc-label-lifted { background: #F3F5F0; border-style: dashed; border-color: #C7CFC3; animation: sc-gone 0.3s linear calc(var(--tick) * 10) both; }
.sc-label-lifted .sc-text { opacity: 0; animation: sc-print 0.5s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--tick) * 6) both, sc-hide 0.2s linear calc(var(--tick) * 10) both; }
.sc-note { left: calc(8 * var(--u)); bottom: calc(6 * var(--u)); margin: 0; position: absolute; font: 500 calc(6 * var(--u)) / 1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #9AA7A0; }
.sc-printer { left: calc(186 * var(--u)); top: 0; width: calc(408 * var(--u)); height: calc(80 * var(--u)); border-radius: 0 0 calc(16 * var(--u)) calc(16 * var(--u)); background: linear-gradient(180deg, #E9ECE6 0%, #D9DED6 100%); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6); }
.sc-printer span { position: absolute; display: block; }
.sc-slot { left: calc(28 * var(--u)); top: calc(20 * var(--u)); width: calc(72 * var(--u)); height: calc(10 * var(--u)); border-radius: calc(5 * var(--u)); background: #C5CCC3; }
.sc-key { right: calc(60 * var(--u)); top: calc(19 * var(--u)); width: calc(30 * var(--u)); height: calc(12 * var(--u)); border-radius: calc(4 * var(--u)); background: #C5CCC3; }
.sc-led { right: calc(30 * var(--u)); top: calc(16 * var(--u)); width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%; background: #7BCB9E; box-shadow: 0 0 0 calc(4 * var(--u)) rgba(123, 203, 158, 0.2); animation: sc-busy calc(var(--tick) * 8) steps(1) var(--tick) both; }
.sc-mouth { left: calc(24 * var(--u)); right: calc(24 * var(--u)); bottom: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: calc(4 * var(--u)); background: #24342E; }
.sc-xlsx { left: 0; top: calc(304 * var(--u)); width: calc(252 * var(--u)); overflow: hidden; border-radius: calc(12 * var(--u)); background: var(--paper); box-shadow: var(--shadow-paper); }
.sc-bar { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(36 * var(--u)); padding: 0 calc(12 * var(--u)); background: var(--desk-2); border-bottom: 1px solid #E3E8E0; font: 500 calc(10 * var(--u)) / 1 var(--font-mono); color: #33465C; }
.sc-bar svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.sc-count { margin-left: auto; font-size: calc(9 * var(--u)); color: #7A8A99; }
.sc-row { display: grid; grid-template-columns: calc(22 * var(--u)) 1.15fr 1.1fr 1fr; align-items: center; height: calc(28 * var(--u)); border-bottom: 1px solid #EEF1EC; font: 500 calc(10.5 * var(--u)) / 1 var(--font-body); color: #8A98A5; }
.sc-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-right: calc(6 * var(--u)); }
.sc-row .sc-n { padding: 0; text-align: center; font: 500 calc(9 * var(--u)) / 1 var(--font-mono); color: #8A98A5; }
.sc-row:not(.sc-head) { animation: sc-row var(--tick) linear both; }
.sc-row:nth-child(3) { animation-delay: calc(var(--tick) * 3); }
.sc-row:nth-child(4) { animation-delay: calc(var(--tick) * 4); }
.sc-row:nth-child(5) { animation-delay: calc(var(--tick) * 5); }
.sc-row:nth-child(6) { animation-delay: calc(var(--tick) * 6); }
.sc-row:nth-child(7) { animation-delay: calc(var(--tick) * 7); }
.sc-row:nth-child(8) { animation-delay: calc(var(--tick) * 8); }
.sc-head { height: calc(24 * var(--u)); background: #FAFBF9; color: #7A8A99; font-size: calc(9 * var(--u)); font-weight: 600; text-transform: uppercase; }
.sc-envelope { left: calc(318 * var(--u)); top: calc(432 * var(--u)); width: calc(335 * var(--u)); height: calc(146 * var(--u)); transform: rotate(4deg); }
.sc-envelope > * { position: absolute; }
.sc-envelope-body { inset: 0; background: repeating-linear-gradient(45deg, var(--postmark) 0 calc(9 * var(--u)), #FFFFFF calc(9 * var(--u)) calc(18 * var(--u)), var(--airmail) calc(18 * var(--u)) calc(27 * var(--u)), #FFFFFF calc(27 * var(--u)) calc(36 * var(--u))); box-shadow: 0 22px 34px -18px rgba(9, 26, 20, 0.65), 0 3px 8px rgba(9, 26, 20, 0.2); }
.sc-envelope-body::after { content: ""; position: absolute; inset: calc(7 * var(--u)); background: #FFFFFF; }
.sc-sender { left: calc(22 * var(--u)); top: calc(18 * var(--u)); margin: 0; font: 500 calc(7 * var(--u)) / 1.35 var(--font-body); color: var(--ink-3); }
.sc-stamp { right: calc(18 * var(--u)); top: calc(16 * var(--u)); width: calc(40 * var(--u)); height: calc(48 * var(--u)); padding: calc(4 * var(--u)); background: radial-gradient(circle at calc(3 * var(--u)) calc(3 * var(--u)), transparent calc(2.4 * var(--u)), #FFFFFF calc(2.6 * var(--u))) calc(-3 * var(--u)) calc(-3 * var(--u)) / calc(7 * var(--u)) calc(7 * var(--u)); }
.sc-stamp span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--airmail); }
.sc-stamp svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.sc-postmark { right: calc(44 * var(--u)); top: calc(20 * var(--u)); width: calc(86 * var(--u)); height: calc(56 * var(--u)); opacity: 0.88; transform: rotate(-14deg); animation: sc-stamp 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) calc(var(--tick) * 13) both; }
.sc-postmark text { font-family: var(--font-mono); }
.sc-fly { left: calc(246.6 * var(--u)); top: calc(114.9 * var(--u)); width: calc(92.6 * var(--u)); height: calc(35.3 * var(--u)); border: 1px solid #DCE2D9; border-radius: calc(5 * var(--u)); background: var(--paper); box-shadow: 0 12px 20px -6px rgba(9, 26, 20, 0.45); transform: translate(calc(193 * var(--u)), calc(373 * var(--u))) rotate(4deg); animation: sc-fly 1.45s cubic-bezier(0.35, 0.7, 0.15, 1) calc(var(--tick) * 10) both; }
.sc-fly .sc-text { animation: none; }
.sc-cross { left: calc(196 * var(--u)); top: calc(236 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); opacity: 0.8; }
.scene-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 32px; margin-top: 14px; font: 500 10px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.scene-toggle { min-height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: transparent; color: #FFFFFF; font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.scene-toggle:hover { border-color: #FFFFFF; }
@keyframes sc-fade { from { opacity: 0; } }
@keyframes sc-feed { from { transform: translateY(calc(-300 * var(--u))); } }
@keyframes sc-print { from { clip-path: inset(0 100% 0 0); } }
@keyframes sc-hide { from { opacity: 1; } }
@keyframes sc-gone { from { background: #FFFFFF; border-style: solid; border-color: #DCE2D9; } }
@keyframes sc-row { 0% { background: transparent; color: #33465C; } 1%, 99% { background: var(--apricot-tint); color: var(--ink); } 100% { background: transparent; color: #8A98A5; } }
@keyframes sc-busy { 0%, 100% { background: #7BCB9E; } 1%, 25%, 50%, 75% { background: var(--apricot); } 12.5%, 37.5%, 62.5%, 87.5% { background: #F8D4AE; } }
@keyframes sc-stamp { from { opacity: 0; transform: scale(1.6) rotate(-14deg); } }
@keyframes sc-fly {
  0% { opacity: 0; transform: none; box-shadow: none; }
  6% { opacity: 1; }
  30% { opacity: 1; transform: translate(calc(-6 * var(--u)), calc(-10 * var(--u))) rotate(-6deg); box-shadow: 0 12px 20px -6px rgba(9, 26, 20, 0.45); }
}

/* ---------- home: finder ---------- */
.finder .lede { margin-bottom: 32px; }
.finder-form .field-key { margin-bottom: 10px; }
.finder-hint { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 34px 0 0; border-top: 1.5px solid var(--ink); }
.figures > div { min-width: 0; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-2); }
.figures dt { font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: 8px 0 0; font: 700 clamp(19px, 1.9vw, 26px)/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.same-line { margin: 22px 0 0; font-size: 15px; color: var(--ink-2); }
.same-line .field-key { display: inline; margin-right: 10px; }
.same-line a { color: var(--ink-2); }
.finder-go { margin: 26px 0 0; }
.finder-art { display: flex; justify-content: center; }
.mat-card { position: relative; width: 100%; padding: 26px 20px 18px; border-radius: 24px; overflow: hidden; }
.finder-art .mat-card { max-width: 540px; }
.mat-caption { margin: 8px 0 0; font: 500 11px/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: rgba(255, 255, 255, 0.75); }

/* drawings to scale (src/drawing.ts) */
.dwg { display: block; width: 100%; height: auto; overflow: visible; }
.dwg-paper { fill: var(--paper); }
.dwg .lb { fill: var(--paper); stroke: #9FB0A6; stroke-width: 1.5px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.dwg .lb-first { fill: #FFF7EC; stroke: var(--apricot); }
.dwg.is-drawing .lb { animation: lb-in 0.42s cubic-bezier(0.3, 0.75, 0.2, 1) both; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.86); } }
.dim-line { fill: none; stroke: var(--cyan); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.dim-text { fill: #CDEFF5; font-family: var(--font-mono); font-size: 20px; font-weight: 600; }
.dim-key { fill: var(--apricot); font-weight: 700; }
.mini { display: block; width: 92px; height: auto; aspect-ratio: 612 / 792; border-radius: 2px; background: var(--paper); box-shadow: 0 1px 0 rgba(19, 35, 58, 0.05), 0 10px 18px -12px rgba(9, 26, 20, 0.5); }
.mini .lb { fill: none; stroke: #9FB0A6; stroke-width: 1px; vector-effect: non-scaling-stroke; }

/* ---------- home: uses ---------- */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.use-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.35s; }
.use-card:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -24px rgba(19, 35, 58, 0.45); }
.use-art { overflow: hidden; border-radius: 14px; }
.use-art svg { display: block; width: 100%; height: auto; }
.use-art .lift { transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1); transform-box: fill-box; transform-origin: center; }
.use-card:hover .lift { transform: translateY(-8px) rotate(-2deg); }
.use-card h3 { margin: 20px 0 6px; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
.use-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.use-card .use-links { margin-top: 14px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--cyan-ink); }
.use-links a { display: inline-block; padding: 8px 2px; color: var(--cyan-ink); text-decoration: underline; text-decoration-color: rgba(27, 110, 128, 0.35); }
.use-links a:hover { color: var(--ink); text-decoration-color: currentColor; }
.art-display { font-family: var(--font-display); }
.art-mono { font-family: var(--font-mono); }

/* ---------- home: three moves ---------- */
.moves { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.move-list { display: flex; flex-direction: column; gap: 10px; }
.move { display: flex; gap: 18px; align-items: flex-start; width: 100%; padding: 22px; border: 1.5px solid transparent; border-radius: 18px; background: transparent; text-align: left; cursor: pointer; transition: background-color 0.25s, border-color 0.25s; }
.move:hover { background: var(--paper); }
.move[aria-selected="true"] { background: var(--paper); border-color: var(--line); }
.move-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--line); font: 800 20px/1 var(--font-display); }
.move[aria-selected="true"] .move-n { background: var(--apricot); }
.move-copy { display: flex; flex-direction: column; gap: 6px; }
.move-title { font-size: 21px; font-weight: 650; }
.move-text { font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.move-panels { min-height: 470px; border-radius: 26px; overflow: hidden; }
.move-panel { min-height: 470px; display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.move-panel:focus-visible { outline-offset: -6px; }
.mp { width: 100%; max-width: 560px; }
.mp-sheet, .mp-label, .mp-dialog { background: var(--paper); box-shadow: var(--shadow-paper); color: var(--ink); }
.mp-sheet { overflow: hidden; border-radius: 14px; }
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px; background: var(--desk-2); border-bottom: 1px solid #E3E8E0; font: 500 12px/1.4 var(--font-mono); color: #33465C; }
.mp-kbd { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); animation: blink 1.1s steps(1) 4; }
@keyframes blink { 50% { opacity: 0.25; } }
.mp-table { display: grid; grid-template-columns: 30px repeat(5, minmax(0, 1fr)); font-size: 13px; }
.mp-table span { padding: 11px 8px; border-top: 1px solid #EEF1EC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-table span:nth-child(-n + 6) { border-top: 0; background: #FAFBF9; font: 500 11px/1.2 var(--font-mono); color: #7A8A99; text-transform: uppercase; }
.mp-table span:nth-child(6n + 1) { color: #8A98A5; font: 500 10px/1.3 var(--font-mono); text-align: center; padding-left: 4px; padding-right: 4px; }
.mp-table span:nth-child(6n) { font-family: var(--font-mono); font-size: 12px; }
.mp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.mp-chips span { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.mp-chips .warm { background: var(--apricot); color: var(--ink); }
.mp-match { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 0; }
.mp-fields { display: flex; flex-direction: column; gap: 14px; }
.mp-fields span { display: flex; align-items: center; width: 150px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--paper); color: var(--ink); font: 500 12px/1 var(--font-mono); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5); }
.mp-wires { width: 100%; height: 270px; }
.mp-wires path { fill: none; stroke: var(--mint); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 7; animation: wire 1.6s linear 4; }
.mp-wires .wire-warm { stroke: var(--apricot); }
@keyframes wire { to { stroke-dashoffset: -26; } }
.mp-label { display: flex; flex-direction: column; gap: 4px; width: 250px; padding: 20px 22px; border-radius: 10px; font-size: 16px; color: var(--ink-2); }
.mp-label b { font-size: 18px; color: var(--ink); }
.mp-label mark { padding: 0 4px; border-radius: 4px; background: var(--apricot-tint); color: inherit; }
.mp-label mark.cool { background: #E6F2EE; }
.mp-match .mp-chips { grid-column: 1 / -1; }
.mp-print { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.mp-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 14px 8px; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow-paper); }
.mp-mini span { display: grid; place-items: center; height: 28px; border: 1px solid #DCE2D9; border-radius: 3px; font: 600 8px/1 var(--font-mono); color: #8A98A5; }
.mp-mini .used { border-style: dashed; border-color: #C7CFC3; background: #F3F5F0; }
.mp-mini .start { border: 2px solid var(--apricot); background: var(--apricot-tint); color: var(--ink); text-transform: uppercase; }
.mp-print-copy { display: flex; flex-direction: column; gap: 14px; }
.mp-print-copy p { margin: 0; color: var(--mat-text); line-height: 1.55; }
.mp-print-copy .mp-big { font: 750 clamp(24px, 2.3vw, 30px)/1.05 var(--font-display); letter-spacing: -0.02em; color: #FFFFFF; }
.mp-dialog { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 12px; }
.mp-dialog-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.mp-dialog-row b { padding: 6px 10px; border-radius: 8px; background: var(--apricot-tint); font: 600 12px/1.2 var(--font-mono); }
.mp-dialog-row:last-child b { background: none; padding: 0; }
.moves-cta { margin: 36px 0 0; }

/* ---------- home: calibration ---------- */
.calib { overflow: hidden; }
.calib-two { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.pad-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 34px; }
.pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 6px; }
.pad-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid #CBD3C8; border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color 0.2s, transform 0.15s; }
.pad-btn:hover { border-color: var(--ink); }
.pad-btn:active { transform: scale(0.94); }
.pad-up { grid-area: 1 / 2; }
.pad-left { grid-area: 2 / 1; }
.pad-reset { grid-area: 2 / 2; }
.pad-right { grid-area: 2 / 3; }
.pad-down { grid-area: 3 / 2; }
.pad-readout { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pad-value { margin: 0; font: 750 clamp(24px, 2.4vw, 30px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.pad-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font: 500 11px/1.3 var(--font-mono); color: #FFFFFF; }
.calib-cta { margin: 36px 0 0; }
.calib-art { display: flex; justify-content: center; }
.test-page { --step: 6px; position: relative; width: min(100%, 400px); aspect-ratio: 400 / 480; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow-paper); transform: rotate(-2deg); }
.tp-head { position: absolute; left: 6%; top: 4%; margin: 0; font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tp-target { position: absolute; inset: 0; width: 100%; height: 100%; }
.tp-target circle, .tp-target path { fill: none; stroke: #DCE2D9; stroke-width: 1.5; }
.tp-target .tp-bull { stroke: var(--ink); }
.tp-cross { position: absolute; left: 35%; top: 35.4%; width: 30%; height: 25%; overflow: visible; transform: translate(calc(var(--dx, 3) * var(--step)), calc(var(--dy, -2) * var(--step))); transition: transform 0.6s cubic-bezier(0.3, 0.75, 0.2, 1); }
.tp-cross path, .tp-cross circle { fill: none; stroke: var(--postmark); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tp-cross.is-on-target path, .tp-cross.is-on-target circle { stroke: var(--mat); }
.tp-ruler { position: absolute; left: 7%; right: 7%; bottom: 6%; width: 86%; height: auto; }
.tp-ruler-bg { fill: var(--desk-2); }
.tp-ticks { fill: none; stroke: var(--ink); stroke-width: 1; }
.tp-num { font: 500 9px var(--font-mono); fill: var(--muted); }

/* ---------- home: privacy, plans, questions ---------- */
.private-art svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.private-art .wire-flow { stroke-dasharray: 6 7; animation: wire 1.6s linear 4; }
.checklist { display: grid; gap: 14px; margin: 30px 0 28px; padding: 0; list-style: none; font-size: 17px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.checklist .icon-dot { color: var(--mat); margin-top: 1px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.plan-pro { background: var(--ink); border-color: var(--ink); color: #FFFFFF; --focus: var(--apricot); }
.plan-pro::before { content: ""; position: absolute; inset: 0; opacity: 0.32; background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.plan > * { position: relative; }
.plan-name { margin: 0; font: 500 12px/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan-pro .plan-name { color: var(--apricot); }
.plan-price { margin: 14px 0 0; font: 800 64px/1 var(--font-display); letter-spacing: -0.03em; }
.plan-price span { font-size: 20px; font-weight: 600; color: var(--mint); letter-spacing: 0; }
.plan-for { margin: 14px 0 26px; font-size: 17px; color: var(--ink-2); }
.plan-pro .plan-for { color: var(--mat-text); }
.features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.features li { display: flex; gap: 10px; line-height: 1.45; }
.features .icon-check { margin-top: 3px; color: var(--mat); }
.features-warm .icon-check { color: var(--apricot); }
.plan-action { margin: 32px 0 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-section { padding-top: 40px; }
.faq-grid .section-title { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
.faqs { border-top: 1.5px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 600 clamp(18px, 1.6vw, 20px)/1.3 var(--font-body); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 6px; border-radius: 4px; }
.faq-plus { transition: transform 0.25s; }
.faq[open] .faq-plus { transform: rotate(45deg); }
.faq-answer p { max-width: 640px; margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- page heroes ---------- */
.page-hero { padding: 36px 0 88px; }
.page-hero .lede { margin-top: 24px; }

/* ---------- templates catalog ---------- */
.catalog-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.catalog-hero .page-title { font-size: clamp(38px, 4.8vw, 68px); }
.catalog-head .lede { margin-bottom: 30px; }
.catalog-art { margin: 0; }
.fan { position: relative; width: 100%; max-width: 480px; aspect-ratio: 48 / 37; margin: 0 auto; }
.fan-sheet { position: absolute; width: 44%; transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1); }
.fan-sheet .mini { width: 100%; box-shadow: var(--shadow-paper); }
.fan-1 { left: 3%; top: 14%; transform: rotate(-9deg); }
.fan-2 { left: 28%; top: 3%; transform: rotate(4deg); }
.fan-3 { left: 53%; top: 12%; transform: rotate(-2deg); }
.fan:hover .fan-1 { transform: rotate(-11deg) translateX(-6px); }
.fan:hover .fan-3 { transform: rotate(0deg) translateX(6px); }
.mini .lb-first { fill: #FFF7EC; stroke: var(--apricot); }
.mini-labels { fill: none; stroke: #9FB0A6; }
.unsure-art { display: flex; justify-content: center; }
.package { width: 100%; max-width: 520px; height: auto; }
.pk-front { fill: var(--paper); stroke: #D3DAD0; }
.pk-top { fill: var(--desk-2); stroke: #D3DAD0; }
.pk-side { fill: #E3E8E0; stroke: #D3DAD0; }
.pk-band { fill: var(--mat); }
.pk-kind { font: 700 20px var(--font-display); fill: #FFFFFF; }
.pk-number { font: 700 58px var(--font-mono); fill: var(--ink); }
.pk-facts { font: 500 13px var(--font-body); fill: var(--muted); }
.pk-sheet rect { fill: none; stroke: #9FB0A6; stroke-width: 0.8; }
.pk-sheet rect:first-child { fill: var(--paper); stroke: #C7CFC3; }
.pk-ring { fill: none; stroke: var(--apricot); stroke-width: 3; }
.pk-leader { fill: none; stroke: var(--cyan-ink); stroke-width: 1.6; stroke-dasharray: 5 5; }
.pk-callout { font: 600 13px var(--font-mono); fill: var(--cyan-ink); }
.package { overflow: visible; }
.catalog-filter .field-key { margin-bottom: 10px; }
.catalog-result { min-height: 3em; margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--mat-text); }
.catalog-result a { font-weight: 600; }
.group-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.group-jump a { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-size: 15px; text-decoration: none; }
.group-jump a:hover { background: rgba(255, 255, 255, 0.22); }
.catalog-group { padding: 72px 0 0; }
.catalog-group:last-child { padding-bottom: 104px; }
.catalog-group:nth-child(odd) .tpl-card { background: var(--paper); }
.group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.group-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; font-weight: 750; }
.group-head p { max-width: 460px; margin: 0; color: var(--ink-2); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.tpl-card {
  display: grid; grid-template-rows: auto auto auto auto 1fr; gap: 4px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
  color: var(--ink); text-decoration: none; transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
.tpl-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 22px 36px -24px rgba(19, 35, 58, 0.45); }
.tpl-card-art { display: grid; place-items: center; height: 160px; margin-bottom: 12px; border-radius: 12px; background: var(--desk-2); }
.tpl-card-art .mini { width: 96px; transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.3, 1); }
.tpl-card:hover .mini { transform: translateY(-4px) rotate(-1.5deg); }
.tpl-card-id { font: 600 14px/1.3 var(--font-mono); letter-spacing: 0.02em; }
.tpl-card-kind { font-size: 17px; font-weight: 600; }
.tpl-card-facts { font-size: 15px; color: var(--ink-3); }
.tpl-card-same { margin-top: 6px; font: 500 11px/1.5 var(--font-mono); color: var(--cyan-ink); }
li.is-match .tpl-card { border-color: var(--apricot); box-shadow: 0 0 0 3px var(--apricot); }

/* ---------- template page ---------- */
.tpl-hero { padding: 36px 0 104px; }
.tpl-top { align-items: start; }
.answer { max-width: 560px; margin: 24px 0 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); }
.tpl-copy .hint { max-width: 520px; }
.tpl-art .mat-card { padding: 24px 18px 16px; }
.try-copy .lede { margin-bottom: 30px; }
.try-form { display: grid; gap: 14px; max-width: 520px; }
.stepper-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 12px 16px; border-radius: 12px; background: var(--desk-2); }
.stepper-row label { font-size: 16px; font-weight: 500; }
.try-actions { margin: 8px 0 0; }
.try-art { display: flex; justify-content: center; }
.preview { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow-paper); transform: rotate(-1.5deg); }
.preview .cut { fill: none; stroke: #DCE2D9; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.preview .cut-used { fill: #F3F5F0; stroke: #C7CFC3; stroke-dasharray: 4 3; }
.preview .run { font-family: Helvetica, Arial, "Liberation Sans", sans-serif; fill: var(--ink); }
.spec-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.spec-intro .lede { margin-bottom: 22px; }
.detail-card { margin: 34px 0 0; padding: 18px 16px 12px; }
.detail { display: block; width: 100%; height: auto; max-height: 520px; }
.detail .lb { fill: var(--paper); stroke: #9FB0A6; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.detail .lb-first { fill: #FFF7EC; stroke: var(--apricot); }
.dt-text { fill: #CDEFF5; font-family: var(--font-mono); font-weight: 600; }
.dt-note .dt-text { fill: var(--ink-2); font-weight: 500; }
.dt-leader { fill: none; stroke: var(--apricot); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.spec-card { padding: 8px 28px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 40px -32px rgba(19, 35, 58, 0.5); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 44%; padding-right: 16px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec-table td { font: 700 clamp(18px, 1.6vw, 21px)/1.3 var(--font-display); letter-spacing: -0.015em; }
.spec-note { display: block; margin-top: 2px; font: 400 14px/1.4 var(--font-body); letter-spacing: 0; color: var(--muted); }
.compat { margin-top: 56px; padding: 32px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.compat-title { margin: 0 0 8px; font: 750 clamp(22px, 2.2vw, 28px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.compat p { margin: 0 0 20px; color: var(--ink-2); }
.number-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.number-list li { padding: 8px 12px; border-radius: 10px; background: var(--desk-2); border: 1px solid var(--line); font: 600 13px/1 var(--font-mono); }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tip-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.section-white .tip-card { background: var(--desk-2); border-color: transparent; }
.tip-art { display: grid; place-items: center; height: 150px; border-radius: 14px; background: var(--desk-2); }
.section-white .tip-art { background: var(--paper); }
.tip-art svg { width: 200px; height: 120px; }
.tip-card h3 { margin: 20px 0 8px; font-size: 21px; font-weight: 650; }
.tip-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.tip-dialog { display: flex; flex-direction: column; gap: 8px; width: 220px; padding: 14px 16px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-paper); }
.tip-option { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.tip-option i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #9FB0A6; }
.tip-option.is-on { font-weight: 600; }
.tip-option.is-on i { border: 5px solid var(--apricot); }
.related { padding-top: 0; }
.tpl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cta-band { padding: 88px 0; }
.cta-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.cta-two .section-title { margin-bottom: 14px; }
.fan-cta { max-width: 380px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-row .section-title { margin-bottom: 14px; }
.cta-row .lede { margin: 0; }
.cta-row .actions { margin: 0; }

/* ---------- calibrate ---------- */
.cal-hero { padding-bottom: 72px; }
.cal-hero-art { display: flex; justify-content: center; }
.ruler-art { display: block; width: 100%; max-width: 500px; height: auto; }
.ra-glow { fill: rgba(9, 26, 20, 0.35); }
.ra-desk { fill: #17392E; }
.ra-paper { fill: var(--paper); }
.ra-print { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.ra-ruler { fill: #E9ECE6; stroke: #C5CCC3; }
.ra-ruler-ticks { fill: none; stroke: #24342E; stroke-width: 1.4; }
.ra-num { font: 600 13px var(--font-mono); fill: var(--ink); }
.ra-num-ruler { font-size: 14px; }
.ra-guide { stroke: var(--cyan-ink); stroke-width: 1.8; stroke-dasharray: 5 5; }
.ra-ring { fill: rgba(242, 166, 90, 0.12); stroke: var(--apricot); stroke-width: 2.6; }
.ra-rim { fill: none; stroke: #FFFFFF; stroke-width: 6; }
.ra-callout rect { fill: var(--paper); }
.ra-dim-text { font: 700 18px var(--font-mono); fill: var(--ink); }
.ra-dim-note { font: 500 14px var(--font-body); fill: var(--muted); }
.hero-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-steps li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-weight: 600; }
.hero-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--apricot); color: var(--ink); font: 800 15px/1 var(--font-display); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.cal-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cal-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.cal-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--apricot); font: 800 20px/1 var(--font-display); }
.cal-body h3 { margin: 8px 0 10px; font: 650 21px/1.25 var(--font-body); }
.cal-body > p { color: var(--ink-2); line-height: 1.55; }
.cal-body .field { max-width: 460px; margin-top: 16px; }
.mini-list { display: grid; gap: 6px; margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); }
.cal-actions { margin: 4px 0 0; }
.measure-grid { display: grid; gap: 12px; margin: 18px 0 4px; }
.measure { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; background: var(--desk-2); }
.measure label { display: flex; gap: 10px; align-items: center; flex: 1 1 200px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.measure .stepper select { width: 140px; }
.measure-key { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #FFFFFF; font: 700 12px/1 var(--font-mono); }
.measure .stepper select { min-height: 44px; padding: 0 30px 0 12px; font: 600 16px/1 var(--font-mono); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; }
.cal-body .pad-row { margin-top: 10px; }
.cal-body .pad-btn { border-color: var(--field); }
.cal-body .pad-value { color: var(--ink); }
.cal-body .pad-readout .hint { margin: 0; max-width: 300px; }
.save-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 24px; }
.save-row .field { flex: 1 1 220px; margin: 0; }
.cal-side { position: sticky; top: 24px; display: grid; gap: 18px; }
.cal-card { padding: 22px 16px 14px; }
.dwg-test .ts-labels .lb { fill: none; stroke: #B8C2BC; stroke-width: 1px; }
.ts-marks { fill: none; stroke: var(--ink); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.ts-num { font: 600 15px var(--font-mono); fill: var(--ink); }
.dwg-test .dim-text { font-size: 24px; }
.ts-ring { fill: rgba(143, 216, 230, 0.25); stroke: var(--cyan-ink); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.ts-guide { fill: none; stroke: var(--cyan); stroke-width: 1.2px; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.printers { padding: 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.printers-title { margin: 0 0 6px; font: 650 19px/1.3 var(--font-body); }
.printers .hint { margin: 0; }
.printer-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.printer { display: flex; gap: 8px; align-items: stretch; }
.printer-use { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--desk-2); text-align: left; cursor: pointer; }
.printer-use:hover { border-color: var(--ink); }
.printer-use[aria-pressed="true"] { border-color: var(--mat); background: #E6F2EE; }
.printer-name { font-weight: 600; }
.printer-offset { font: 500 12px/1.3 var(--font-mono); color: var(--muted); }
.printer-tag { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--mat); color: #FFFFFF; font: 600 10px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.printer-remove { flex: none; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; cursor: pointer; }
.printer-remove:hover { border-color: var(--postmark); color: #9C2F28; }

/* ---------- pricing ---------- */
.pricing-hero { padding-bottom: 220px; }
.pricing-head { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-head .lede { margin: 24px auto 0; max-width: 620px; }
.pricing-hero .crumbs { margin-bottom: 40px; }
.plans-band { position: relative; margin-top: -160px; padding-bottom: 32px; }
.plans-raised { max-width: 1120px; }
.plans-raised .plan { padding: 44px; border-radius: 28px; }
.plans-raised .plan-free { box-shadow: 0 30px 60px -40px rgba(19, 35, 58, 0.5); }
.plans-raised .plan-pro { box-shadow: 0 30px 60px -36px rgba(19, 35, 58, 0.8); }
.plans-raised .plan-price { font-size: 76px; }
.plan-foot { margin-top: auto; padding-top: 34px; }
.plan-note { margin: 14px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.plan-soon { margin: 0; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; line-height: 1.55; color: var(--mat-text); }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 8px; border-bottom: 1px solid var(--line-2); }
.compare thead th { padding-top: 0; border-bottom: 1.5px solid var(--ink); font: 600 13px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.compare thead th:first-child { font: 600 16px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; }
.compare th[scope="row"] { text-align: left; font-weight: 500; padding-left: 0; }
.compare thead th:first-child { text-align: left; padding-left: 0; }
.compare td, .compare thead th:not(:first-child) { width: clamp(96px, 18vw, 170px); text-align: center; }
.cmp-pro { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--apricot); color: var(--ink); }
.cmp-yes { display: inline-grid; place-items: center; color: var(--mat); }
.cmp-warm { color: #9A5A12; }
.cmp-no { color: #8A98A5; }
.cmp-soon { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--apricot-tint); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- privacy and terms ---------- */
.legal-hero { padding: 40px 0 56px; border-bottom: 1px solid var(--line-2); }
.legal-hero .lede { margin-top: 20px; }
.legal-date { margin: 18px 0 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal { padding-top: 64px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-summary { position: sticky; top: 24px; padding: 28px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-paper); }
.legal-summary ul { display: grid; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.legal-summary li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; color: var(--mat); }
.legal-summary li span { color: var(--ink-2); line-height: 1.5; }
.legal-summary b { display: block; color: var(--ink); font-size: 17px; }
.prose { max-width: 680px; }
.prose h2 { margin: 40px 0 12px; font: 750 clamp(24px, 2.4vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 404 ---------- */
.nf { padding-bottom: 104px; }
.nf-search { margin-top: 44px; max-width: 460px; }
.nf-search .field-key { margin-bottom: 10px; }
.nf-search-row { display: flex; gap: 10px; }
.nf-search-row .number-input { flex: 1; }
.nf-search-row .btn { min-height: 60px; }
.nf-figure { display: flex; justify-content: center; }
.nf-art { width: 100%; max-width: 360px; height: auto; transform: rotate(2deg); filter: drop-shadow(0 18px 24px rgba(9, 26, 20, 0.45)); }
.nf-paper { fill: var(--paper); }
.nf-cut { fill: none; stroke: #C7CFC3; stroke-dasharray: 4 3; }
.nf-ink rect { fill: var(--ink); opacity: 0.78; }
.nf-ink rect:first-child { opacity: 1; }

/* ---------- the phase-1 editor (until web/editor.css replaces it) ---------- */
.editor-v1 { padding-top: 40px; padding-bottom: 64px; }
.editor-v1 h1 { font: 800 clamp(36px, 4.6vw, 56px)/1 var(--font-display); letter-spacing: -0.025em; margin-bottom: 16px; }
.editor-v1 h2 { font: 700 22px/1.2 var(--font-display); margin-bottom: 14px; }
.editor-v1 h3 { font: 650 16px/1.3 var(--font-body); margin: 18px 0 8px; }
.editor-v1 .panel { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.editor-v1 .field { margin-bottom: 12px; }
.editor-v1 .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }
.editor-v1 .map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 16px; }
.editor-v1 textarea, .editor-v1 input[type="number"], .editor-v1 select { width: 100%; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--field); border-radius: 12px; background-color: var(--paper); }
.editor-v1 textarea { font: 400 14px/1.5 var(--font-mono); resize: vertical; }
.editor-v1 .actions { margin: 0 0 12px; }
.editor-v1 .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 600; cursor: pointer; }
.editor-v1 .button-primary { background: var(--apricot); box-shadow: none; }
.editor-v1 .button:disabled { opacity: 0.5; cursor: not-allowed; }
.editor-v1 #file:focus-visible + .file-button { outline: 3px solid var(--focus); outline-offset: 3px; }
.editor-v1 .checks { display: grid; gap: 6px; margin: 8px 0 16px; }
.editor-v1 .check { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.editor-v1 .check input { width: 20px; height: 20px; accent-color: var(--cyan-ink); }
.editor-v1 .offset { margin: 0 0 16px; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 14px; }
.editor-v1 .status.is-error { color: #9A3412; }
.editor-v1 .summary { font: 500 14px/1.5 var(--font-mono); color: var(--mat); }
.editor-v1 .notice { padding: 12px; border: 1px solid var(--apricot); border-radius: 10px; background: var(--apricot-tint); }
.editor-v1 .label-preview { min-height: 4.5em; margin: 0; padding: 12px 14px; border: 1px dashed #C7CFC3; border-radius: 10px; background: #FBFCFA; font: 400 15px/1.35 Arial, Helvetica, sans-serif; white-space: pre-wrap; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .scene-wrap { justify-self: center; }
  .site-nav { gap: 22px; }
}
@media (max-width: 960px) {
  .two, .two-flip, .moves, .plans, .spec-layout, .cal-layout, .catalog-head, .legal-layout, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .two { gap: 48px; }
  .uses, .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-side, .legal-summary { position: static; }
  .calib-two, .cta-two { grid-template-columns: minmax(0, 1fr); }
  .catalog-art { max-width: 420px; margin: 8px auto 0; }
  .faq-grid { gap: 24px; }
  .catalog-head { gap: 32px; }
}
@media (max-width: 760px) {
  :root { --masthead: 128px; }
  .header-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand cta" "nav nav"; row-gap: 6px; column-gap: 12px; align-content: center; }
  .brand { grid-area: brand; font-size: 21px; gap: 10px; }
  .site-header .logo { width: 32px; height: 32px; }
  .header-cta { grid-area: cta; min-height: 42px; padding: 0 14px; font-size: 14px; }
  .site-nav { grid-area: nav; justify-self: stretch; justify-content: space-between; gap: 12px; font-size: 15px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title-wide { margin-bottom: 36px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .move-panels, .move-panel { min-height: 0; }
  .move-panel { padding: 28px 18px; }
  .mp-match { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; }
  .mp-fields { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .mp-fields span { width: auto; height: 34px; }
  .mp-wires { display: none; }
  .mp-print { grid-template-columns: minmax(0, 1fr); }
  .mp-table { grid-template-columns: 26px repeat(3, minmax(0, 1fr)); }
  .mp-table span:nth-child(6n + 4), .mp-table span:nth-child(6n + 5) { display: none; }
  .mp-mini { width: min(100%, 240px); justify-self: center; }
  .cal-step { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 10px; }
}
@media (max-width: 640px) {
  .uses, .tips, .tpl-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 28px 0 64px; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); }
  .page-title { font-size: clamp(36px, 10vw, 52px); }
  .section-title { font-size: clamp(32px, 8.6vw, 44px); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-input input { height: 72px; padding-left: 60px; font-size: 30px; }
  .number-input .icon { left: 18px; }
  .number-input-small input { height: 60px; font-size: 22px; }
  .mat-card { padding: 18px 10px 12px; border-radius: 18px; }
  .dim-text { font-size: 28px; }
  .plan, .plans-raised .plan { padding: 30px 24px; }
  .plans-raised .plan-price, .plan-price { font-size: 60px; }
  .spec-card { padding: 4px 18px; }
  .spec-table th { width: 46%; }
  .compat { padding: 24px 18px; }
  .page-hero { padding-bottom: 64px; }
  .pricing-hero { padding-bottom: 200px; }
  .cta-band { padding: 64px 0; }
  .test-page { --step: 4px; }
  .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .tpl-card { padding: 12px; }
  .tpl-card-art { height: 132px; }
  .tpl-card-art .mini { width: 78px; }
  .tpl-card-kind { font-size: 16px; }
  .tpl-card-facts { font-size: 14px; }
  .nf-search-row { flex-wrap: wrap; }
  .footer-grid { padding-top: 48px; }
}
@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .site-nav { font-size: 14px; }
  .header-cta { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
