/* Hallmark · checked: 2026-10-31 · genre: modern-minimal (inferred)
 * floor: 0 FAIL · fixed: 7a, 20, 24a, 26a, 34, 39a, 48, 50, 62, 67 · structural: hero and footer shapes noted in docs/REVIEW_V4.md
 * built: the project · redesign: polish · v2.0.0 */
/* MonsiKit v3: "the project binder". One stylesheet, self-hosted Instrument Sans and IBM Plex Mono, tokens documented in docs/DESIGN.md.
   Light and dark follow the OS (prefers-color-scheme). Signature element: the live project tracker card (.tracker). */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, 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("/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  color-scheme: light dark;
  --surface: #f6f7f9;
  --surface-2: #eceef2;
  --raised: #ffffff;
  --ink: #1a2930;
  --muted: #4a5160;
  --line: #dde1e7;
  --line-strong: #7c8494;
  --accent: #0d6b4b;
  --accent-soft: #e0f2ea;
  --accent-text: #0d6b4b;
  --pending: #b4690e;
  --pending-soft: #fbf0dc;
  --pending-text: #8f5309;
  --focus: #2557d6;
  --btn-bg: #1a2930;
  --btn-ink: #ffffff;
  --btn-hover: #2c424d;
  /* dark band (one per page) */
  --band: #1a2930;
  --band-raised: #1b1f27;
  --band-ink: #eceef2;
  --band-muted: #a3aab8;
  --band-line: #2e3440;
  --band-accent: #3dd39a;
  --shadow-sm: 0 1px 2px rgb(26 41 48 / 0.06), 0 8px 24px -8px rgb(26 41 48 / 0.18);
  --shadow-md: 0 2px 4px rgb(26 41 48 / 0.06), 0 24px 56px -16px rgb(26 41 48 / 0.32);
  --display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-card: var(--r-lg);
  --r-ctl: var(--r-md);
  --check-clip: polygon(0 55%, 14% 41%, 38% 64%, 86% 12%, 100% 26%, 38% 92%);
  --chev-clip: polygon(0 25%, 12% 12%, 50% 52%, 88% 12%, 100% 25%, 50% 82%);
  --measure: 66ch;
  --header-h: 4.5rem;
  --maker-gold: #e6a832;
  --paper: #fbfcfc;
  --print-ink: #1a2930;
  --btn-light-ink: #0e1014;
  --btn-light-hover: #ffffff;
  --band-focus: #8db0ff;
  --band-line-strong: #6f7889;
  --btn-shadow: 0 1px 2px rgb(26 41 48 / 0.2), 0 6px 16px -6px rgb(26 41 48 / 0.35);
  --shot-shadow: 0 1px 2px rgb(26 41 48 / 0.08);
  --drop: drop-shadow(0 2px 3px rgb(26 41 48 / 0.08)) drop-shadow(0 18px 24px rgb(26 41 48 / 0.14));
  --scrim: rgb(10 16 20 / 0.62);
  --demo-light-bg: #f6f7f9; --demo-light-ink: #1a2930; --demo-light-accent: #0d6b4b;
  --demo-dark-bg: #1a2930; --demo-dark-ink: #eceef2; --demo-dark-accent: #3dd39a;
  --demo-pending: #b4690e;
  /* type scale, ratio 1.25 */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: clamp(1.625rem, 3vw, 2.125rem);
  --text-section: var(--text-2xl); /* h2 of a supporting section: 26px phone, 34px desktop */
  --text-3xl: clamp(2.25rem, 4.5vw, 3.25rem);
  --text-display: clamp(2.5rem, 2.1rem + 2vw, 3.5rem); /* hero h1: 40px phone, 56px desktop max */
  /* space, 4/8 scale */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem; --space-10: 8rem;
  --section-pad: clamp(3rem, 6vw, 6rem); /* 48px phone, 96px desktop max */
  --hero-pad: clamp(3rem, 5vw, 5rem);
  --head-gap: clamp(2rem, 4vw, 3rem); /* section head to content */
  --gap-card: clamp(1.5rem, 2.5vw, 2rem);
  --pad-card: clamp(1.75rem, 3vw, 2.5rem);
  --gutter: 1.25rem;
  /* motion */
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e1014;
    --surface-2: #13161c;
    --raised: #171a21;
    --ink: #eef1f3;
    --muted: #a3aab8;
    --line: #272c36;
    --line-strong: #6f7889;
    --accent: #3dd39a;
    --accent-soft: #11281f;
    --accent-text: #3dd39a;
    --pending: #f2b35c;
    --pending-soft: #2b2210;
    --pending-text: #f2b35c;
    --focus: #8db0ff;
    --btn-bg: #eef1f3;
    --btn-ink: #0e1014;
    --btn-hover: #ffffff;
    --band: #0c1519;
    --band-raised: #12151b;
    --band-line: #262b35;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 56px -16px rgb(0 0 0 / 0.8);
    --drop: drop-shadow(0 2px 3px rgb(0 0 0 / 0.5)) drop-shadow(0 18px 24px rgb(0 0 0 / 0.5));
  }
}
:root[data-theme="dark"] {
  --surface: #0e1014;
  --surface-2: #13161c;
  --raised: #171a21;
  --ink: #eef1f3;
  --muted: #a3aab8;
  --line: #272c36;
  --line-strong: #6f7889;
  --accent: #3dd39a;
  --accent-soft: #11281f;
  --accent-text: #3dd39a;
  --pending: #f2b35c;
  --pending-soft: #2b2210;
  --pending-text: #f2b35c;
  --focus: #8db0ff;
  --btn-bg: #eef1f3;
  --btn-ink: #0e1014;
  --btn-hover: #ffffff;
  --band: #0c1519;
  --band-raised: #12151b;
  --band-line: #262b35;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 56px -16px rgb(0 0 0 / 0.8);
  --drop: drop-shadow(0 2px 3px rgb(0 0 0 / 0.5)) drop-shadow(0 18px 24px rgb(0 0 0 / 0.5));
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--surface); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; scrollbar-gutter: stable; }
body { margin: 0; background: var(--surface); color: var(--ink); font: var(--text-base)/1.6 var(--display); accent-color: var(--accent); touch-action: manipulation; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.num, code, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.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: 1rem; top: -4rem; background: var(--btn-bg); color: var(--btn-ink); padding: var(--space-3) var(--space-4); z-index: 30; font-weight: 600; }
.skip:focus { top: 0.75rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); color: inherit; margin: 0 0 var(--space-5); text-wrap: balance; }
h1 { font-size: var(--text-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: var(--text-section); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.h2-major { font-size: var(--text-3xl); } /* at most one per page */
h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.15; }
h4 { font-weight: 600; line-height: 1.15; }
p, ul, ol, dl, table, figure { margin: 0 0 1.25em; }
.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 34em; color: var(--muted); }
.sec-lede { font-size: var(--text-base); color: var(--muted); max-width: 40em; }
.small { font-size: var(--text-sm); color: var(--muted); }
.muted { color: var(--muted); }
code, kbd { font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line); padding: 0.08em 0.4em; }
.prose p, .prose ul, .prose ol, .measure { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; font-size: var(--text-2xl); }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: 0.6em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.7rem 1.25rem; font: 600 var(--text-base)/1.25 var(--display); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; text-align: center; transition: background-color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast) var(--ease-out); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active, .icon-btn:active { transform: translateY(1px); }
.btn-primary:active { box-shadow: none; }
.btn-ghost { background: var(--raised); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn-light { background: var(--band-ink); color: var(--btn-light-ink); }
.btn-light:hover { background: var(--btn-light-hover); text-decoration: none; }
.btn-sm { min-height: 2.75rem; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { display: flex; width: 100%; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-5); }

/* ---------- bands ---------- */
.band { padding-block: var(--section-pad); }
.band-alt { background: var(--surface-2); }
.band-page { padding-top: clamp(var(--space-6), 6vw, 4.5rem); }
.band-dark { background: var(--band); color: var(--band-ink); --muted: var(--band-muted); --line: var(--band-line); --accent-text: var(--band-accent); --focus: var(--band-focus); }
.band-dark .sec-lede, .band-dark .muted { color: var(--band-muted); }
.sec-head { max-width: 44rem; margin-bottom: var(--head-gap); }
.sec-head h2, .band h2 { margin-bottom: var(--space-5); }
.page-head { background: var(--surface-2); padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: var(--text-3xl); max-width: 16em; margin-bottom: var(--space-5); }
.page-head .lede { margin-bottom: 0; }
.page-head .draft-note { margin-top: var(--space-5); }
.draft-note { max-width: var(--measure); background: var(--pending-soft); color: var(--ink); border: 1px solid var(--pending); padding: var(--space-4) var(--space-5); font-size: var(--text-sm); margin-bottom: 0; }
.e404 { font-size: var(--text-display); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 0 0 0.1em; color: var(--accent-text); }

/* ---------- hero + tracker (signature) ---------- */
.hero { padding-block: var(--hero-pad); overflow-x: clip; }
.hero-grid { display: grid; gap: clamp(3rem, 7vw, 4.5rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); } .hero-kit .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero-copy h1 { margin-bottom: 0.35em; }
.hero-copy .lede { margin-bottom: var(--space-6); }
.buy .price { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); }
.buy .price strong { color: var(--ink); font-size: var(--text-base); margin-right: 0.15rem; }
.buy .small { margin: 0; max-width: 34em; }

.tracker { margin: 0; position: relative; padding: var(--space-2) 0 var(--space-4); }
.tracker::before, .tracker::after { content: ""; position: absolute; inset: 0; background: var(--raised); border: 1px solid var(--line); z-index: 0; }
.tracker::before { transform: translate(14px, 18px) rotate(1.8deg); opacity: 0.6; }
.tracker::after { transform: translate(7px, 9px) rotate(0.9deg); opacity: 0.85; }
.tr-card { position: relative; z-index: 1; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--pad-card); overflow: hidden; }
.tr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-5); }
.tr-title { font-size: var(--text-base); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 var(--space-1); }
.tr-sub { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.tr-tag { flex: none; margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); padding: 0.2rem 0.6rem; white-space: nowrap; }
.tr-meter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-1); margin-bottom: var(--space-5); }
.tr-meter i { height: 6px; background: var(--line); }
.tr-meter i.on { background: var(--accent); }
.tr-meter i.mid { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.tr-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.tr-row { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); }
.tr-n { font-size: var(--text-sm); color: var(--muted); text-align: center; }
.tr-name { font-weight: 600; font-size: var(--text-base); line-height: 1.25; min-width: 0; }
.tr-name small { display: block; margin-top: 0.1rem; font-weight: 400; font-size: var(--text-sm); color: var(--muted); }
.tr-scope { background: var(--pending-soft); border: 1px dashed var(--pending); grid-template-columns: 1.75rem minmax(0, 1fr); row-gap: var(--space-2); }
.tr-scope .pill { grid-column: 2; justify-self: start; white-space: normal; }
.tr-scope .tr-n { color: var(--pending-text); font-weight: 700; }
.tr-foot { display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-5) 0 0; padding: var(--space-4); background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: var(--text-sm); }
.tr-foot-k { color: var(--muted); font-weight: 500; }
.tr-foot-d { margin-left: auto; font-weight: 700; }
/* status pills: glyph + word, never colour alone */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); font-weight: 700; line-height: 1.2; padding: var(--space-1) 0.6rem var(--space-1) 0.45rem; white-space: nowrap; border: 1.5px solid currentColor; }
.pill::before { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border: 2px solid currentColor; box-sizing: border-box; }
.pill-done { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.pill-done::before { background: currentColor; box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.pill-review { color: var(--ink); background: var(--surface-2); border-color: var(--line-strong); }
.pill-review::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.pill-pending { color: var(--pending-text); background: transparent; }
.tr-scope .pill-pending { background: var(--raised); }
.tr-row .pill-pending::before { border-style: dashed; }
@media (max-width: 29.99rem) {
  .tr-row { grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: var(--space-2); }
  .tr-scope { grid-template-columns: 1.25rem minmax(0, 1fr); row-gap: 0.4rem; }
  .tr-scope .pill { grid-column: 2; justify-self: start; }
  .tr-name small { font-size: var(--text-sm); }
  .tr-card { padding: var(--space-5); }
  .tr-head { flex-direction: column; gap: var(--space-2); }
}
@keyframes row-in { from { transform: translateY(var(--space-2)); } }
@keyframes meter-in { from { transform: scaleX(0); } }
.tr-row { animation: row-in var(--motion-slow) var(--ease-out) backwards; }
.tr-row:nth-child(1) { animation-delay: 60ms; }
.tr-row:nth-child(2) { animation-delay: 100ms; }
.tr-row:nth-child(3) { animation-delay: 140ms; }
.tr-row:nth-child(4) { animation-delay: 180ms; }
.tr-row:nth-child(5) { animation-delay: 220ms; }
.tr-row:nth-child(6) { animation-delay: 260ms; }
.tr-row:nth-child(7) { animation-delay: 300ms; }
.tr-row:nth-child(8) { animation-delay: 340ms; }
.tr-meter { transform-origin: left; animation: meter-in var(--motion-slow) var(--ease-out) backwards; }
.tr-foot { animation: row-in var(--motion-base) 380ms backwards; }

/* kit hero spec card */
.spec { background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: var(--pad-card); }
.spec-title { font-size: var(--text-base); font-weight: 700; margin: 0 0 var(--space-5); display: flex; justify-content: space-between; gap: var(--space-4); letter-spacing: -0.015em; }
.spec-title .num { font-weight: 500; color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; font-size: var(--text-sm); }
.spec-list dt { color: var(--muted); font-weight: 600; }
.spec-list dd { margin: 0; }

/* ---------- binder tabs ---------- */
.binder { position: relative; }
.binder-tabs { display: none; }
.is-tabs .binder-tabs { display: block; }
[role="tablist"] { display: flex; gap: var(--space-3); overflow-x: auto; padding: var(--space-1); margin: 0 0 var(--space-5); scrollbar-width: none; }
[role="tablist"]::-webkit-scrollbar { display: none; }
.b-tab { appearance: none; flex: none; font: 700 var(--text-sm)/1 var(--display); color: var(--muted); background: var(--raised); border: 1px solid var(--line-strong); padding: var(--space-3) var(--space-5); min-height: 2.75rem; cursor: pointer; position: relative; transition: color var(--motion-fast), background-color var(--motion-fast); }
.b-tab:hover { color: var(--ink); }
.b-tab[aria-selected="true"] { color: var(--btn-ink); background: var(--btn-bg); border-color: var(--btn-bg); }
.b-tab:focus-visible { outline-offset: -3px; }
.b-panel { display: grid; gap: var(--gap-card); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: var(--pad-card); margin-bottom: var(--gap-card); align-items: start; }
.b-panel[hidden] { display: none; }
.is-tabs .b-panel { margin-bottom: 0; }
@media (min-width: 48rem) { .b-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(var(--space-6), 4vw, var(--space-7)); align-items: center; } }
.b-shot { margin: 0; position: relative; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shot-shadow); }
.b-shot a { display: block; }
.b-shot img { width: 100%; height: auto; }
.b-shot.b-wide { align-self: center; }
.b-text h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.025em; margin-bottom: var(--space-5); }
.b-facts { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-4); }
.b-facts li { position: relative; padding: 0 0 0 1.75rem; max-width: 34em; }
.b-facts li::before { content: ""; position: absolute; left: 0.1rem; top: 0.4rem; width: 0.9rem; height: 0.9rem; background: var(--accent); clip-path: var(--check-clip); }
.b-more { margin: 0; font-weight: 600; }
.binder-note { margin: 1.25rem 0 0; color: var(--muted); font-size: var(--text-sm); }

/* ---------- covers (dark band) ---------- */
.covers { display: grid; gap: var(--head-gap); } /* head above a two-column list, so no text column is narrower than 240px */
.covers-head { max-width: 44rem; }
.covers-head h2 { margin-bottom: var(--space-4); }
.covers-head p:last-child { margin-bottom: 0; }
.covers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6) var(--space-7); }
@media (min-width: 40rem) { .covers-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.covers-list h3 { margin-bottom: var(--space-2); color: var(--band-ink); }
.covers-list p { margin: 0; color: var(--band-muted); font-size: var(--text-base); }

/* ---------- buy block + receipt ---------- */
.buy-grid { display: grid; gap: clamp(var(--space-7), 6vw, 4rem); align-items: start; }
@media (min-width: 62rem) { .buy-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; } }
.how { padding-left: 0; list-style: none; counter-reset: h; margin: 0 0 var(--space-5); }
.how li { counter-increment: h; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3); padding: 0 0 var(--space-4); max-width: 36em; }
.how li::before { content: counter(h); font: 700 var(--text-sm)/1.9 var(--mono); width: 1.75rem; height: 1.75rem; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.buy-card { filter: var(--drop); max-width: 30rem; width: 100%; justify-self: center; }
.receipt { margin: 0; }
.receipt-sheet { position: relative; background: var(--raised); border: 1px solid var(--line); padding: var(--pad-card); }
.rc-head { text-align: center; margin-bottom: var(--space-5); }
.rc-store { margin: 0 0 var(--space-1); font: 500 var(--text-sm)/1 var(--display); color: var(--muted); letter-spacing: 0; }
.rc-head h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.rc-meta { margin: var(--space-1) 0 0; font: var(--text-sm) var(--mono); color: var(--muted); }
.rc-lines { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.rc-lines li, .rc-total { display: flex; align-items: baseline; gap: var(--space-2); padding: 0; font-size: var(--text-base); }
.rc-lines .num { color: var(--muted); font-size: var(--text-sm); }
.rc-fill { flex: 1; min-width: 1rem; }
.rc-total { margin: var(--space-5) 0 var(--space-4); padding: var(--space-4); background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: var(--text-base); }
.rc-total strong { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.rc-fine { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-3); }
.rc-action { margin-top: var(--space-5); }
.rc-action .small { margin: var(--space-3) 0 0; font-size: var(--text-sm); }

/* ---------- lists ---------- */
.limits { display: grid; gap: var(--space-7); }
@media (min-width: 48rem) { .limits { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); } }
.limits h3 { font-size: var(--text-lg); font-weight: 700; }
.marks { list-style: none; padding: 0; margin: 0 0 1.1em; max-width: var(--measure); }
.marks li { position: relative; padding: 0.15rem 0 0.15rem 2rem; margin-bottom: 0.9rem; }
.marks li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.2rem; height: 1.2rem; box-sizing: border-box; }
.marks-yes li::before { background: var(--accent-soft); }
.marks-yes li::after { content: ""; position: absolute; left: 0.2rem; top: 0.4rem; width: 0.8rem; height: 0.8rem; background: var(--accent-text); clip-path: var(--check-clip); }
.marks-no li::before { background: var(--surface-2); border: 1.5px solid var(--line-strong); }
.marks-no li::after { content: ""; position: absolute; left: 0.33rem; top: 0.74rem; width: 0.55rem; height: 2px; background: var(--muted); }
.band-dark .marks-no li::before { background: transparent; border-color: var(--band-line-strong); }
.band-dark .marks-no li::after { background: var(--band-muted); }
.band-dark .marks li { color: var(--band-ink); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts { display: grid; gap: var(--space-4); }
.facts li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-4); }
.facts strong { font-weight: 700; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-6); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-base); margin: 0; }
caption { text-align: left; font-weight: 700; padding: var(--space-4) var(--space-5); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--muted); font-size: var(--text-sm); font-weight: 700; }
th[scope="row"] { font-weight: 700; }
td.num, th.num { text-align: right; }
.band-alt .table-wrap { background: var(--raised); }
.compare thead th:not(:first-child), .compare td { width: 24%; }
.compare .gl { display: inline-block; vertical-align: -0.2em; width: 1.2rem; height: 1.2rem; margin-right: var(--space-2); position: relative; box-sizing: border-box; }
.compare .yes { color: var(--ink); }
.compare .yes .gl { background: var(--accent-soft); }
.compare .yes .gl::after { content: ""; position: absolute; left: 0.2rem; top: 0.2rem; width: 0.8rem; height: 0.8rem; background: var(--accent-text); clip-path: var(--check-clip); }
.compare .no { color: var(--muted); }
.compare .no .gl { border: 1.5px solid var(--line-strong); }
.compare .no .gl::after { content: ""; position: absolute; left: 0.28rem; top: 0.45rem; width: 0.5rem; height: 2px; background: var(--muted); }
@media (max-width: 40rem) {
  .table-wrap { overflow: visible; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tr { padding: var(--space-4) var(--space-5); border: 1px solid var(--line); margin-bottom: var(--space-4); background: var(--raised); }
  .table-wrap { border: 0; box-shadow: none; background: transparent; }
  th, td { border: 0; padding: var(--space-1) 0; }
  .compare td { width: 100%; }
  th[scope="row"] { overflow-wrap: anywhere; }
  td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  caption { display: block; }
}

/* ---------- gallery ---------- */
.gallery { display: grid; gap: var(--gap-card); }
@media (min-width: 48rem) { .gallery.three { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
@media (min-width: 48rem) { .gallery.cols { display: block; columns: 2; column-gap: var(--gap-card); } .gallery.cols figure { break-inside: avoid; margin-bottom: var(--gap-card); } .gallery.cols figure.wide { column-span: all; } }
.gallery .shot { display: block; width: 100%; height: auto; }
.shot { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
figure figcaption { font-size: var(--text-sm); color: var(--muted); padding: var(--space-3) 0.1rem 0; }

/* ---------- quote preview ---------- */
.qp { background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: var(--pad-card); display: grid; gap: var(--space-7); }
@media (min-width: 56rem) { .qp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-7); } }
.qp fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.qp .grid2 { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: var(--space-5); align-items: end; }
.qp .field label { font-size: var(--text-sm); }
.qp .field + .field { margin-top: var(--space-5); }
.qp .btn-row { margin: var(--space-5) 0 0; }
.qp .btn { min-height: 2.75rem; }
.qp-result { background: var(--surface-2); border: 1px solid var(--line); padding: var(--pad-card); align-self: start; }
.qp-result .qp-h { font-size: var(--text-lg); }
.qp-result .qp-h { margin: 0 0 var(--space-5); }
.qp dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-3); margin: 0; }
.qp dt { color: var(--muted); padding-right: var(--space-4); }
.qp dd { margin: 0; text-align: right; font: 600 var(--text-base) var(--mono); font-variant-numeric: tabular-nums; }
.qp dt.total, .qp dd.total { padding-top: var(--space-3); margin-top: var(--space-2); background: var(--raised); color: var(--ink); font-size: var(--text-base); font-weight: 700; }
.qp dd.total { font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.02em; }
.qp .verdict { margin: var(--space-5) 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--raised); border: 1px solid var(--line-strong); font-weight: 700; }
.qp .small { margin: 0; font-size: var(--text-sm); }

/* ---------- forms ---------- */
.form { max-width: 34rem; display: grid; gap: var(--space-5); }
.field label, .field legend { display: block; font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-sm); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--raised); border: 1.5px solid var(--line-strong); padding: var(--space-3) var(--space-4); min-height: 2.75rem; transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
textarea { min-height: 7.5rem; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--pending); outline: 2px solid var(--pending); outline-offset: 0; }
.err { color: var(--pending-text); font-weight: 600; font-size: var(--text-sm); margin: 0.35rem 0 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: var(--space-4) var(--space-5); border: 1px solid var(--line); background: var(--raised); max-width: 34rem; margin-top: var(--space-4); }
.status:empty { display: none; }
.status.ok { border-color: var(--accent); background: var(--accent-soft); }
.status.bad { border-color: var(--pending); background: var(--pending-soft); }
.contact-grid { display: grid; gap: var(--space-7); max-width: none; }
.contact-grid > * { min-width: 0; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } }
.contact-grid h2 { margin-top: 0; }

/* ---------- faq ---------- */
.qa { display: grid; gap: var(--space-4); }
.qa details { border: 1px solid var(--line); background: var(--raised); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 3.5rem; padding: var(--space-4) var(--space-5); font-weight: 700; font-size: var(--text-base); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 0.9rem; height: 0.9rem; background: var(--muted); clip-path: var(--chev-clip); transition: transform 150ms; }
.qa details[open] > summary::after { transform: rotate(180deg); }
.qa summary:hover { color: var(--accent-text); }
.qa details p { margin: 0; padding: 0 var(--space-5) var(--space-5); max-width: 44rem; }

/* ---------- free sample downloads ---------- */
.dl-row { display: grid; gap: var(--gap-card); margin-bottom: var(--space-6); }
@media (min-width: 40rem) { .dl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dl-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-5); align-items: center; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: var(--pad-card); color: var(--ink); text-decoration: none; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base); }
.dl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.dl-ext { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); background: var(--accent-soft); color: var(--accent-text); }
.dl-name { font-weight: 700; font-size: var(--text-base); letter-spacing: -0.015em; }
.dl-name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-sm); letter-spacing: 0; }
.dl-card .btn { grid-column: 1 / -1; margin-top: var(--space-3); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } .btn-primary:hover, .dl-card:hover { transform: none; } }

/* no-JS: panels stack; JS-only tab bar stays hidden (see tabs.js) */

/* ---------- v2 additions: hero fact line, breadcrumbs, guides, about ---------- */
.hero-home h1, .hero-copy h1 { font-size: var(--text-display); }
.hero-kit .hero-copy h1 { font-size: var(--text-3xl); }
.fact-line { margin: var(--space-6) 0 0; font-size: var(--text-sm); color: var(--muted); max-width: 34em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0; margin: 0 0 var(--space-6); padding: 0; font-size: var(--text-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 var(--space-2); color: var(--line-strong); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a, .crumbs [aria-current] { display: inline-block; padding: 0.35rem 0; line-height: 1.4; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs-solo { padding-top: var(--space-6); }
.byline { margin: var(--space-5) 0 0; }
.answer { font-size: var(--text-lg); line-height: 1.55; padding: var(--pad-card); background: var(--accent-soft); border: 1px solid var(--accent); max-width: none; margin-bottom: var(--space-6); color: var(--ink); }
.formula { background: var(--surface-2); border: 1px solid var(--line); padding: var(--space-4) var(--space-5); font-size: var(--text-base); }
.formula code { background: none; border: 0; padding: 0; font-size: 1em; }
.sample { background: var(--raised); border: 1px solid var(--line-strong); padding: var(--space-5) var(--space-5) var(--space-2); margin-bottom: var(--space-5); max-width: var(--measure); box-shadow: var(--shadow-sm); }
.article .table-wrap { max-width: 54rem; }
.guide-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--gap-card); }
.guide-card { display: block; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: var(--pad-card); color: var(--ink); text-decoration: none; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base); }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-card h2 { font-size: var(--text-xl); margin: 0 0 var(--space-3); }
.guide-card p { color: var(--muted); max-width: 40em; }
.guide-more { font-weight: 700; color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }
.nw { white-space: nowrap; }

/* =====================================================================
   v3 (round 3): display settings, header, footer, layout grid, visual components, distribution pages
   ===================================================================== */
.only-js { display: none !important; }
html.js .only-js { display: inline-flex !important; }
html.js p.only-js { display: block !important; }
.ico { width: 1.5rem; height: 1.5rem; flex: none; }
.btn .ico { width: 1.25rem; height: 1.25rem; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
body { overflow-wrap: break-word; }
::selection { background: color-mix(in srgb, var(--maker-gold) 35%, transparent); color: inherit; }
main:focus { outline: none; }
.btn-row.stack { flex-direction: column; }
.btn-row.stack .btn { width: 100%; }
.btn-soon { gap: 0.6rem; }
.waitlist { gap: var(--space-3); }
.waitlist .btn-row, .waitlist .small, .waitlist .status { margin: 0; }
.soon-badge { font-size: var(--text-sm); font-weight: 700; background: var(--pending-soft); color: var(--pending-text); border: 1px solid var(--pending); padding: 0.1rem 0.55rem; }
.narrow { width: min(100% - 2.5rem, 48rem); }
.gap-top { margin-top: clamp(3rem, 7vw, 4.5rem); }
.gap-top-s { margin-top: var(--space-5); }
.sub-h { font-size: var(--text-lg); margin: var(--space-7) 0 var(--space-5); }
.split-even { display: grid; gap: var(--space-7); }
.split-even > * { min-width: 0; }
@media (min-width: 48rem) { .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7) var(--space-8); align-items: start; } }
.split-even h2:first-child { margin-top: 0; }
.wrap.prose, .band-page > .wrap > .measure { }
.band-page .wrap.prose { width: min(100% - 2.5rem, 46rem); }
.page-head:has(+ .band-page > .wrap.prose) > .wrap { width: min(100% - 2.5rem, 46rem); }
.page-head:has(+ .band-page > .wrap.narrow) > .wrap { width: min(100% - 2.5rem, 48rem); }
.band-page h2 { margin-top: var(--space-7); font-size: var(--text-2xl); }
.band-page h2:first-child, .band-page .split-even > div > h2:first-child { margin-top: 0; }
.measure { max-width: var(--measure); }

/* ---------- header: logo left; one right-aligned group: theme toggle, four links, call to action. 72px, one row. Under 64rem: theme toggle and hamburger. ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--raised); box-shadow: var(--shadow-sm); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.bar-right { display: flex; align-items: center; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; padding-block: var(--space-2); flex: none; }
.brand-logo { width: 123px; height: 36px; }
.brand-mark { display: block; width: 28px; height: 28px; flex: none; }
.wordmark { font: 700 var(--text-lg)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.wordmark b { font-weight: 700; color: var(--accent-text); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: var(--space-2); background: transparent; color: var(--ink); border: 1.5px solid transparent; font: 500 var(--text-sm)/1 var(--display); text-decoration: none; cursor: pointer; transition: background-color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast) var(--ease-out); }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); text-decoration: none; }
.nav-cta { display: none; white-space: nowrap; }
.theme-toggle .ico-moon, .menu-btn .ico-x { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }
.menu-btn[aria-expanded="true"] .ico-menu { display: none; }
.menu-btn[aria-expanded="true"] .ico-x { display: block; }
.site-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.site-nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--text-base); padding: var(--space-3) 0; min-height: 2.75rem; transition: color var(--motion-fast); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.nav-cta-m { display: none; }
/* without JavaScript the links stay visible as a second row, so navigation never disappears */
html:not(.js) .site-header .bar { height: auto; flex-wrap: wrap; padding-block: var(--space-3); }
html:not(.js) .bar-right { display: contents; }
html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
html:not(.js) .site-nav ul { gap: var(--space-5); }
@media (min-width: 64rem) {
  html.js .menu-btn { display: none !important; }
  .nav-cta { display: inline-flex; }
}
@media (max-width: 63.99rem) {
  .bar-right { gap: var(--space-3); }
  html.js .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); padding: var(--space-5) var(--gutter) var(--space-8); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--motion-base), transform var(--motion-base) var(--ease-out), visibility 0s var(--motion-base); z-index: 19; }
  html.js.menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.js .site-nav ul { flex-direction: column; gap: var(--space-2); }
  html.js .site-nav a { font-size: var(--text-lg); padding: var(--space-4) 0; }
  html.js .nav-cta-m { display: block; padding-top: var(--space-5); }
  html.js .nav-cta-m .btn { width: 100%; font-size: var(--text-base); }
  html.menu-open { overflow: clip; }
}


/* ---------- start strip, steps, rows, numbers ---------- */
.start { background: var(--raised); padding-block: var(--space-8); }
.start h2 { font-size: var(--text-lg); letter-spacing: -0.015em; margin-bottom: var(--space-5); }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-card); }
@media (min-width: 45rem) { .start-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.start-list a { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border: 1px solid var(--line); height: 100%; min-height: 4rem; color: var(--ink); text-decoration: none; transition: background-color var(--motion-fast); }
.start-list a:hover { background: var(--surface-2); }
.start-list a:hover strong { color: var(--accent-text); text-decoration: underline; }
.start-list .ico { width: 2rem; height: 2rem; color: var(--accent-text); }
.start-list strong { display: block; font-size: var(--text-base); }
.start-list span > span { display: block; color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.steps { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-7); counter-reset: st; }
@media (min-width: 70rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
@media (min-width: 30rem) and (max-width: 69.99rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li { position: relative; counter-increment: st; }
.steps .ico { width: 3rem; height: 3rem; padding: var(--space-3); background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent); margin-bottom: var(--space-4); }
.steps h3::before { content: "Step " counter(st); display: block; font: 600 var(--text-sm)/1.4 var(--mono); color: var(--muted); margin-bottom: 0.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: var(--text-base); max-width: 22em; }
.steps-compact { gap: var(--space-5); margin: var(--space-5) 0 var(--space-6); }
.steps-compact li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--space-4); }
.steps-compact .ico { grid-row: 1 / span 2; margin: 0; }
.steps-compact h3 { margin: 0; align-self: end; }
.steps-compact h3::before { display: inline; margin-right: var(--space-2); }
.steps-compact p { grid-column: 2; max-width: none; }
.file-rows { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-6) var(--space-7); }
@media (min-width: 48rem) { .file-rows:not(.tight) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.file-rows li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-4); }
.file-rows .ico { width: 1.75rem; height: 1.75rem; margin-top: 0.15rem; color: var(--accent-text); }
.file-rows h3 { margin-bottom: var(--space-2); }
.file-rows p { margin: 0; color: var(--muted); font-size: var(--text-base); }
.checks-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-6) var(--space-8); }
@media (min-width: 48rem) { .checks-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.checks-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-4); }
.checks-list .ico { color: var(--accent-text); }
.checks-list p { margin: 0; }
.glance { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-card); margin: 0 0 var(--space-6); padding: 0; }
@media (min-width: 45rem) { .glance { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.glance > div { padding: var(--space-5) var(--space-5); border: 1px solid var(--line); background: var(--raised); min-width: 0; }
.glance dt { font: 600 var(--text-2xl)/1.1 var(--mono); letter-spacing: -0.03em; color: var(--accent-text); margin: 0 0 var(--space-1); }
.glance dd { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.35; }
.glance-wide { margin-block: 0 var(--space-7); }
.keynums { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); margin: 0 0 var(--space-5); }
.keynums dt { font: 600 var(--text-2xl)/1 var(--mono); letter-spacing: -0.03em; color: var(--accent-text); }
.keynums dd { margin: 0.2rem 0 0; color: var(--muted); font-size: var(--text-sm); }
.keynums > div { min-width: 5rem; }
.takeaways { background: var(--accent-soft); border: 1px solid var(--accent); padding: var(--pad-card); margin: 0 0 var(--space-7); }
.takeaways h2 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
.takeaways ul { margin: 0; padding-left: 1.25rem; }
.takeaways li { margin-bottom: 0.9rem; }
.takeaways li:last-child { margin-bottom: 0; }
.note-box { display: flex; gap: var(--space-4); align-items: flex-start; max-width: var(--measure); margin: var(--space-6) 0; padding: var(--space-5); background: var(--raised); border: 1px solid var(--line-strong); }
.note-box .ico { color: var(--accent-text); margin-top: 0.1rem; }
.note-box p { margin: 0; }
.ba th[scope="row"] { white-space: nowrap; }
.ba td:nth-child(2) { color: var(--muted); }
.ba td:nth-child(3) { font-weight: 600; }
.dodont { display: grid; gap: var(--gap-card); margin: 0 0 var(--space-6); }
@media (min-width: 40rem) { .dodont { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); } }
.dodont h3 { display: flex; align-items: center; gap: 0.4rem; }
.dodont h3 .ico { width: 1.25rem; height: 1.25rem; }
.step-list { padding-left: 1.25rem; max-width: var(--measure); }
.step-list li { margin-bottom: 0.9rem; padding-left: var(--space-1); }
.step-list li::marker { font-weight: 700; color: var(--accent-text); }

/* ---------- read layout: guides and docs ---------- */
.page-head-read > .wrap { width: min(100% - 2.5rem, 59rem); }
.read { padding-top: clamp(var(--space-6), 5vw, 3.5rem); }
.wrap.read-grid { width: min(100% - 2.5rem, 59rem); display: grid; gap: var(--space-5) var(--space-7); }
.read-grid > * { min-width: 0; }
@media (min-width: 62rem) { .wrap.read-grid { grid-template-columns: 14rem minmax(0, 1fr); } .wrap.read-grid.no-toc { grid-template-columns: minmax(0, 1fr); } .toc-wrap { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100dvh - 7rem); overflow: auto; } }
.read .article { max-width: none; }
.read .article > p, .read .article > ul, .read .article > ol { max-width: var(--measure); }
.article p { margin-bottom: 1.25em; }
.article h2 { margin-top: 2.6em; scroll-margin-top: 6rem; }
.article > :first-child { margin-top: 0; }
.toc { font-size: var(--text-sm); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.toc li a { display: block; padding: var(--space-2) var(--space-3); color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc li a:hover { color: var(--ink); }
.toc li a[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.toc-h { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-base); letter-spacing: -0.01em; margin: 0 0 var(--space-4); }
.toc-h .ico, .toc summary .ico { width: 1.25rem; height: 1.25rem; color: var(--accent-text); }
.toc-up { margin: var(--space-3) 0 0; }
.toc-up a { display: inline-flex; align-items: center; gap: 0.4rem; padding: var(--space-2) 0; font-weight: 600; }
.toc-up .ico, .back-top .ico { width: 1.1rem; height: 1.1rem; }
.toc-m { background: var(--raised); border: 1px solid var(--line); padding: 0 var(--space-5); }
.toc-m summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.6rem; min-height: 3rem; font-weight: 700; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-count { margin-left: auto; font-weight: 400; color: var(--muted); font-size: var(--text-sm); }
.toc-m ol { margin-bottom: var(--space-4); }
@media (min-width: 62rem) { .toc-m { display: none; } }
@media (max-width: 61.99rem) { .toc-desk { display: none; } }
.back-top { margin: var(--space-7) 0 0; }
.back-top a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; padding: 0.6rem 0; }
.cite { margin: var(--space-8) 0 0; padding: var(--pad-card); border: 1px solid var(--line); background: var(--raised); max-width: var(--measure); }
.cite h2 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-5); font-size: var(--text-lg); }
.cite .field { margin-bottom: var(--space-5); }
.cite textarea, .snips textarea, .embed-code textarea, .field textarea[readonly] { font: var(--text-sm)/1.5 var(--mono); min-height: 0; resize: vertical; margin-bottom: var(--space-2); }
.guide-list .guide-card { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.guide-card > .ico { width: 3rem; height: 3rem; padding: var(--space-3); background: var(--accent-soft); color: var(--accent-text); }
.guide-meta { display: block; font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-2); }
.guide-list { max-width: 46rem; }
.byline { color: var(--muted); }
.sample p { max-width: none; }

/* ---------- ask box and footer ---------- */
.ask { background: var(--surface-2); }
.ask-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--space-6) var(--space-8); padding-block: var(--space-8); }
.ask-in > div:first-child { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--space-3); row-gap: var(--space-2); align-items: center; }
.ask-in .ico { color: var(--accent-text); grid-row: 1 / span 2; width: 1.75rem; height: 1.75rem; }
.ask h2 { font-size: var(--text-lg); margin: 0; letter-spacing: -0.015em; }
.ask p { margin: 0; color: var(--muted); }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); flex: none; max-width: 100%; }
.ask-actions .btn { margin: 0; flex: none; white-space: nowrap; overflow-wrap: normal; max-width: none; }
.site-footer { background: var(--band); color: var(--band-ink); padding-block: clamp(var(--space-8), 8vw, 6rem) var(--space-7); font-size: var(--text-base); }
.site-footer a { color: var(--band-ink); text-decoration-color: var(--band-muted); }
.site-footer a:hover { color: var(--band-accent); }
.foot-grid { display: grid; gap: var(--space-8) var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 62rem) { .foot-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: auto; } }
.foot-tagline { color: var(--band-ink); font-size: var(--text-lg); font-weight: 600; margin: var(--space-4) 0 0; }
.foot-tagline + .foot-about { margin-top: var(--space-2); }
.foot-about { color: var(--band-muted); max-width: 26em; margin: var(--space-4) 0 var(--space-5); }
.foot-contact, .foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: var(--space-3); }
.foot-contact a { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; text-decoration: none; word-break: break-word; }
.foot-contact .ico { width: 1.25rem; height: 1.25rem; color: var(--band-accent); }
.foot-h { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; color: var(--band-ink); margin: 0 0 var(--space-5); white-space: nowrap; }
.foot-col a { display: inline-block; padding: var(--space-1) 0; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-6); margin-top: clamp(3rem, 7vw, 5rem); }
.foot-bar p { margin: 0; }
.foot-copy { color: var(--band-muted); }
.family { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.family-h { color: var(--band-muted); font-size: var(--text-sm); margin: 0; flex: 1 1 100%; }
@media (min-width: 48rem) { .family-h { flex: none; } }
.family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.family a { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 2.75rem; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border: 1px solid color-mix(in srgb, var(--band-ink) 35%, transparent); text-decoration: none; font-size: var(--text-sm); transition: border-color var(--motion-fast), background-color var(--motion-fast), color var(--motion-fast); }
.family a:hover { border-color: var(--band-ink); background: color-mix(in srgb, var(--band-ink) 8%, transparent); color: var(--band-ink); }
.family a:focus-visible { outline: 3px solid var(--band-focus); outline-offset: 2px; }
.fam-dot { display: grid; place-items: center; width: 28px; height: 28px; background: var(--paper); flex: none; }
.fam-dot img { width: 20px; height: 20px; }
.maker-star { display: inline-block; width: 0.75em; height: 0.75em; margin-inline: 0.35em 0.1em; background: var(--maker-gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); vertical-align: -0.02em; }
.foot-mail { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-2); }

/* ---------- distribution pages ---------- */
.embed-grid { display: grid; gap: var(--space-7); }
@media (min-width: 62rem) { .embed-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } }
.embed-frame { display: block; width: 100%; border: 1px solid var(--line); background: var(--surface); }
.embed-code h2, .embed-live h2 { margin-top: 0; }
.snips { display: grid; gap: var(--space-6); }
.banners { display: grid; gap: var(--gap-card); }
@media (min-width: 48rem) { .banners { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.banners img { width: 100%; height: auto; border: 1px solid var(--line); }
.logo-grid { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--gap-card); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.logo-grid li { display: grid; gap: var(--space-4); align-content: space-between; padding: var(--pad-card); border: 1px solid var(--line); font-size: var(--text-sm); }
.logo-grid .lg-light { background: var(--demo-light-bg); color: var(--demo-light-ink); }
.logo-grid .lg-dark { background: var(--demo-dark-bg); color: var(--demo-dark-ink); }
.logo-grid .lg-light a { color: var(--demo-light-accent); }
.logo-grid .lg-dark a { color: var(--demo-dark-accent); }
.logo-grid img { height: 3rem; width: auto; max-width: 100%; }
.lg-links { display: flex; gap: var(--space-5); }
.lg-links a { display: inline-block; padding: 0.35rem 0.1rem; font-weight: 600; }
.swatches { list-style: none; margin: var(--space-5) 0 var(--space-6); padding: 0; display: grid; gap: var(--gap-card); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 62rem) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.swatches li { display: grid; gap: 0.15rem; align-content: start; }
.sw { display: block; height: 4rem; border: 1px solid var(--line-strong); margin-bottom: var(--space-3); }
.sw-ink { background: var(--demo-dark-bg); } .sw-accent { background: var(--demo-light-accent); } .sw-pending { background: var(--demo-pending); } .sw-surface { background: var(--demo-light-bg); }
.sitemap-groups { display: grid; gap: var(--space-8) var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 45rem) { .sitemap-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sitemap-groups h2 { margin-top: 0; font-size: var(--text-lg); }
.sm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.sm-list li { display: grid; gap: var(--space-1); }
.sm-list a { font-weight: 700; padding: 0.1rem 0; }
.sm-list span { color: var(--muted); font-size: var(--text-sm); }
.qp-note { margin: var(--space-1) 0 var(--space-2); }
.share-row { margin-top: var(--space-5); }

/* ---------- embed page ---------- */
body.embed { background: var(--surface); }
.embed-main { max-width: 48rem; margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-6); }
.embed-h1 { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: var(--space-5); }
.powered { margin: var(--space-4) 0 0; text-align: right; }
.powered a { display: inline-block; padding: 0.35rem 0.1rem; font-weight: 600; }

/* ---------- layout polish (no lopsided columns) ---------- */
.b-panel { align-items: center; }
@media (min-width: 48rem) { .b-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.b-text .keynums { margin-top: 0; }
.covers-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-4); }
.covers-list .ico { width: 1.75rem; height: 1.75rem; color: var(--band-accent); margin-top: 0.1rem; }
.covers-list h3 { margin-bottom: var(--space-2); }
.limits { align-items: start; }
.limits > div { min-width: 0; }
.band-dark .split-even { align-items: start; }
.band-dark .marks-no { max-width: none; }
@media (max-width: 44.99rem) { .logo-grid { grid-template-columns: minmax(0, 1fr); } .qp .grid2 { grid-template-columns: minmax(0, 1fr); } }

@media print {
  .site-header, .site-footer, .skip, .tracker, .ask, .toc-wrap, .share-row, .qp .btn-row, .back-top, .cite, .only-js { display: none !important; }
  .read-grid { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
  .qp { box-shadow: none; border: 1px solid var(--print-ink); break-inside: avoid; }
  .qp textarea, .qp input { border: 1px solid var(--print-ink); }
}

.steps.steps-compact { grid-template-columns: minmax(0, 1fr); }
.article table { font-size: var(--text-sm); }
.article th, .article td { padding: var(--space-3) var(--space-4); }
.article .table-wrap { max-width: none; }
.hero-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .hero-kit .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero-grid > *, .buy-grid > *, .covers > *, .b-panel > *, .qp > *, .embed-grid > *, .contact-grid > * { min-width: 0; }
h1, h2 { overflow-wrap: anywhere; hyphens: auto; }
.btn { max-width: 100%; }
.btn-row .btn { flex: 0 1 auto; }
.btn { overflow-wrap: anywhere; }
.ask-in > p { max-width: 100%; }
@media (max-width: 29.99rem) { .tr-scope .pill { white-space: normal; text-align: left; } }
html[data-spacing="wide"] .pill, html[data-text="130"] .pill { white-space: normal; }
.qp dl { grid-template-columns: minmax(0, 1fr) auto; }
.qp dt { min-width: 0; overflow-wrap: anywhere; }
.qp-result { min-width: 0; }
@media (max-width: 29.99rem) { .qp dd.total { font-size: var(--text-xl); } }


/* =====================================================================
   Round 4: motion, feedback, visitor conveniences, print. Animate opacity and transform only.
   ===================================================================== */
/* reveal: content is visible without JavaScript; the hidden start state exists only when theme-init.js set .js */
html.js [data-reveal]:not(.in) { transform: translateY(var(--space-5)); } /* transform only, so content is never dim */
html.js [data-reveal] { transition: transform var(--motion-slow) var(--ease-out); }
html.js [data-reveal].in { transform: none; }

/* feedback */
.btn:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.copy-btn, .heading-link { font: 500 var(--text-sm)/1 var(--display); color: inherit; background: transparent; border: 1px solid var(--band-line); padding: var(--space-2) var(--space-3); min-height: 2rem; cursor: pointer; transition: background-color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast) var(--ease-out); }
.copy-btn:hover { border-color: var(--band-accent); }
.copy-btn:active, .heading-link:active { transform: translateY(1px); }
.copy-btn.is-done, .btn.is-done { border-color: var(--accent); color: var(--accent-text); }
.heading-link { margin-left: var(--space-2); min-width: 1.75rem; min-height: 1.75rem; padding: 0 var(--space-2); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--muted); font-size: var(--text-sm); vertical-align: middle; }
.heading-link:hover { background: var(--raised); color: var(--accent-text); }
.site-footer .copy-btn { background: var(--band-line); border: 1px solid var(--band-line-strong); border-radius: var(--r-sm); min-width: 1.75rem; }
.site-footer .copy-btn:hover { background: var(--band); }
.guide-card:hover, .dl-card:hover { transform: translateY(-2px); }
.guide-card:active, .dl-card:active { transform: translateY(1px); }
.more-guides { margin-top: var(--space-9); }
.more-guides h2 { font-size: var(--text-xl); }
.more-guides .guide-card h3 { margin: 0 0 var(--space-1); font-size: var(--text-xl); }
input:user-valid:not(:placeholder-shown), textarea:user-valid:not(:placeholder-shown) { border-color: var(--accent); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--pending); outline: 2px solid var(--pending); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.consent { margin: var(--space-3) 0; }
.consent label { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; border-radius: var(--r-ctl); }
/* Checkout page */
.checkout { max-width: 40rem; display: grid; gap: var(--space-5); }
.checkout .picks { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout legend { padding: 0; margin: 0 0 var(--space-1); font-size: var(--text-lg); font-weight: 700; }
.picks-hint { margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.pick-list { display: grid; gap: var(--space-2); }
.pick { display: grid; grid-template-columns: 1.375rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); min-height: 3.5rem; padding: var(--space-3) var(--space-5); background: var(--raised); border: 1.5px solid var(--line); cursor: pointer; transition: border-color var(--motion-fast), background-color var(--motion-fast); }
.pick:hover { border-color: var(--line-strong); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick input { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 1.375rem; height: 1.375rem; min-height: 0; padding: 0; margin: 0; border: 1.5px solid var(--line-strong); background: var(--raised); display: grid; place-items: center; cursor: pointer; }
.pick input::after { content: ""; width: 0.85rem; height: 0.85rem; background: var(--btn-ink); clip-path: var(--check-clip); transform: scale(0); transition: transform var(--motion-fast) var(--ease-out); }
.pick input:checked { background: var(--accent); border-color: var(--accent); }
.pick input:checked::after { transform: scale(1); }
.pick input:focus-visible { outline: none; }
.pick .pick-name { font-weight: 600; overflow-wrap: break-word; }
.pick .pick-price { font-weight: 600; white-space: nowrap; }
.checkout-total { margin: 0; font-size: var(--text-base); }
.checkout-total strong { font-size: var(--text-lg); }
.checkout .consent { margin: 0; padding: var(--space-4); background: var(--surface-2); border: 1px solid var(--line); }
.checkout .consent label { max-width: 36rem; font-size: var(--text-base); line-height: 1.55; gap: var(--space-3); }
.checkout .consent input { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; margin-top: 0.2rem; }
.pay { display: grid; gap: var(--space-3); }
.pay > p { margin: 0; color: var(--muted); font-size: var(--text-sm); max-width: 36rem; }
.pay > p[hidden] { display: none; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.pay-step { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.pay-step[hidden] { display: none; }
.pay-step .btn { flex: 1 1 18rem; white-space: normal; }
.pay-done { font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); }
.pay-done[hidden] { display: none; }
.pay-done::before { content: ""; display: inline-block; width: 0.9rem; height: 0.9rem; margin-right: var(--space-2); vertical-align: -0.1em; background: var(--accent-text); clip-path: var(--check-clip); }
.pay-step .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.checkout > .small { margin: 0; max-width: 36rem; }
/* Pricing table: the buy button never wraps; the table reflows to cards on narrow screens */
.price-table th[scope="row"] { white-space: nowrap; }
.price-table td.num { white-space: nowrap; width: 1%; }
.price-table td.buy-cell { width: 1%; white-space: nowrap; vertical-align: middle; }
.price-table .btn { white-space: nowrap; overflow-wrap: normal; min-width: 5.5rem; }
@media (max-width: 56rem) {
  .price-table th[scope="row"] { white-space: normal; }
}
@media (max-width: 40rem) {
  .price-table td.num, .price-table td.buy-cell { width: 100%; white-space: normal; }
  .price-table td.num { text-align: left; font-weight: 700; }
  .price-table td.buy-cell { padding-top: var(--space-3); }
  .price-table .btn { width: 100%; }
  .price-table td[data-label]::before { content: none; }
}
@keyframes tick { from { background-color: var(--accent-soft); } to { background-color: transparent; } }
[data-out].tick { animation: tick 700ms var(--ease-out); }
@keyframes flash { from { outline: 3px solid var(--maker-gold); outline-offset: 4px; } to { outline: 3px solid transparent; outline-offset: 4px; } }
details.flash, .article h2.flash { animation: flash 1400ms var(--ease-out); }
details summary { transition: color var(--motion-fast); }
details summary:hover { color: var(--accent-text); }

/* toast and back to top */
.toast { position: fixed; left: 50%; bottom: var(--space-6); z-index: 40; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--btn-bg); color: var(--btn-ink); font-size: var(--text-sm); font-weight: 500; padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-md); transition: opacity var(--motion-base), transform var(--motion-base) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 18; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: var(--raised); color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-sm); cursor: pointer; transition: opacity var(--motion-base), transform var(--motion-base) var(--ease-out), background-color var(--motion-fast); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--surface-2); }
.to-top:active { transform: translateY(1px); }
html.js .to-top.aside { opacity: 0; pointer-events: none; transform: translateY(8px); }
html:not(.js) .only-js { display: none !important; }

/* motion off: instant, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .guide-card:hover, .dl-card:hover { transform: none; }
}

/* print: no chrome, black on white, link addresses after links in guides */
@media print {
  .site-header, .site-footer, .skip, .tracker, .ask, .toc-wrap, .share-row, .qp .btn-row, .back-top, .cite, .only-js, .to-top, .toast, .more-guides, .heading-link { display: none !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body, .band, .band-alt, .band-dark, .page-head { background: var(--paper) !important; color: var(--print-ink) !important; }
  a { color: var(--print-ink); }
  .article a[href^="http"]::after, .article a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 0.9em; word-break: break-all; }
  .article a[href^="/"]::after { content: " (https://monsikit.com" attr(href) ")"; }
  .article a[href^="#"]::after { content: none; }
  h2, h3 { break-after: avoid; }
  table, figure, .sample { break-inside: avoid; }
}

button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
button:disabled:hover, [aria-disabled="true"]:hover { transform: none; }

/* standalone text links that act as buttons get a 44px hit area; one filled button per view, so the header call to action is outlined */
.b-more a, .toc-up a, .back-top a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (pointer: coarse) { .foot-col a, .foot-contact a { display: inline-flex; align-items: center; min-height: 2.75rem; } }
.nav-cta.btn-primary { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.nav-cta.btn-primary:hover { background: var(--ink); color: var(--surface); }
/* the menu call to action sits inside .site-nav, whose link colour would otherwise match the button fill */
.site-nav .btn-primary { color: var(--btn-ink); }
.site-nav .btn-primary:hover { color: var(--btn-ink); background: var(--btn-hover); }

/* guide cards: two columns on the guides index, one column in "More guides" */
.more-guides .guide-card { display: block; }
@media (min-width: 48rem) { .guide-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .more-guides .guide-list, .guide-list-stack { grid-template-columns: minmax(0, 1fr); } }

/* icon rows: heading starts at the icon's top edge; family chips stack in one column on phones (no lone chip) */
.file-rows li h3, .checks-list li h3, .covers-list li h3 { margin-top: 0; }
@media (max-width: 29.99rem) { .family ul { flex-direction: column; align-items: stretch; width: 100%; } .family a { width: 100%; } }

/* =====================================================================
   Round 6: polish. Texture from a ruled-notebook mask (lines every 32px plus a margin rule) (colour stays a token), layered shadows, tinted sections, a step rail, calmer fact rows.
   ===================================================================== */
:root {
  --rule-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect y='31' width='32' height='1'/%3E%3C/svg%3E");
  --rule-line: var(--line-strong);
  --rule-line-a: 0.07;
  --rule-margin: color-mix(in srgb, var(--pending) 55%, transparent);
  --tint: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  --shadow-sm: 0 1px 1px rgb(26 41 48 / 0.05), 0 2px 4px rgb(26 41 48 / 0.05), 0 12px 24px -12px rgb(26 41 48 / 0.18);
  --shadow-md: 0 1px 2px rgb(26 41 48 / 0.06), 0 6px 12px rgb(26 41 48 / 0.06), 0 28px 48px -20px rgb(26 41 48 / 0.34);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow-sm: 0 1px 1px rgb(0 0 0 / 0.4), 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 24px -12px rgb(0 0 0 / 0.7);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 12px rgb(0 0 0 / 0.3), 0 28px 48px -20px rgb(0 0 0 / 0.9);
  }
}
:root[data-theme="dark"] {
  --shadow-sm: 0 1px 1px rgb(0 0 0 / 0.4), 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 24px -12px rgb(0 0 0 / 0.7);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 12px rgb(0 0 0 / 0.3), 0 28px 48px -20px rgb(0 0 0 / 0.9);
}

/* type rhythm */
body { line-height: 1.65; text-rendering: optimizeLegibility; }
h1 { letter-spacing: -0.035em; line-height: 1.04; }
h2 { letter-spacing: -0.03em; line-height: 1.12; }
h3 { letter-spacing: -0.015em; line-height: 1.25; }
.lede { line-height: 1.55; max-width: 32em; }
.sec-lede { line-height: 1.6; }

.sec-head h2, .band h2 { margin-bottom: var(--space-4); }

/* ruled-notebook texture on hero, page heads and the dark band: "client work, written down". Static, so nothing to turn off for reduced motion. */
.hero, .page-head, .band-dark { position: relative; isolation: isolate; }
.hero::before, .page-head::before, .band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rule-line); opacity: var(--rule-line-a); -webkit-mask-image: var(--rule-tile); mask-image: var(--rule-tile); -webkit-mask-size: 32px 32px; mask-size: 32px 32px; pointer-events: none; }
.hero::after, .page-head::after, .band-dark::after { content: ""; position: absolute; top: 0; bottom: 0; left: max(0.5rem, calc(50% - 36rem - 1.5rem)); width: 1px; z-index: -1; background: var(--rule-margin); pointer-events: none; }
.band-dark::before { background: var(--band-line-strong); opacity: 0.32; }

/* signed-off tick: key callouts carry the same approval mark as the tracker (check shape from --check-clip) */
.answer, .takeaways, .fact-line { position: relative; }
.answer, .takeaways { padding-right: calc(var(--pad-card) + 1.75rem); }
.fact-line { padding-right: calc(var(--space-5) + 1.75rem); }
.answer::after, .takeaways::after, .fact-line::after { content: ""; position: absolute; top: var(--space-4); right: var(--space-4); width: 1.25rem; height: 1.25rem; background: var(--accent); -webkit-clip-path: var(--check-clip); clip-path: var(--check-clip); pointer-events: none; }
.hero { background: var(--tint); }
.page-head { background: var(--tint); }
.band-alt { background: var(--surface-2); }

/* hero copy hierarchy */
.hero-copy .lede { margin-bottom: var(--space-6); }
.hero-copy .buy { display: grid; gap: var(--space-4); }
.hero-copy .buy .btn-row { margin: 0; gap: var(--space-4); }
.buy .price { margin: 0; font-size: var(--text-base); color: var(--ink); }
.buy .price strong { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; margin-right: 0.35rem; }
.buy .small { max-width: 32em; line-height: 1.55; }
.btn-soon { gap: var(--space-4); padding-inline: var(--space-4) var(--space-5); }
.soon-badge { font-size: var(--text-sm); line-height: 1.3; padding: 0.15rem 0.65rem; white-space: nowrap; }
.fact-line { margin: var(--space-6) 0 0; padding: var(--space-4) var(--space-5); background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: var(--text-sm); line-height: 1.55; color: var(--muted); max-width: 32em; }
.tr-card { box-shadow: var(--shadow-sm); }

/* start strip: raised cards that lift */
.start { background: var(--surface-2); padding-block: var(--section-pad); }
.start h2 { font-size: var(--text-xl); letter-spacing: -0.02em; margin-bottom: var(--space-5); } /* compact strip heading uses the card tier */
.start-list a { background: var(--raised); box-shadow: var(--shadow-sm); padding: var(--pad-card); gap: var(--space-5); min-height: 6.5rem; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base), border-color var(--motion-fast); }
.start-list a:hover { background: var(--raised); transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.start-list a:active { transform: translateY(1px); }
.start-list a:hover strong { text-decoration: none; }
.start-list .ico { width: 3rem; height: 3rem; padding: 0.75rem; background: var(--accent-soft); flex: none; }
.start-list strong { font-size: var(--text-lg); letter-spacing: -0.015em; margin-bottom: var(--space-1); }
.start-list span > span { font-size: var(--text-base); line-height: 1.5; }

/* steps: a rail joins the four stages */
.steps { gap: var(--space-8) var(--space-6); }
.steps li { padding-right: var(--space-2); }
.steps .ico { width: 3.5rem; height: 3.5rem; padding: 0.9rem; background: var(--accent-soft); border: 1px solid var(--accent); box-shadow: var(--shadow-sm); position: relative; z-index: 1; margin-bottom: var(--space-5); }
.steps h3 { font-size: var(--text-xl); letter-spacing: -0.025em; margin-bottom: var(--space-3); }
.steps h3::before { font-size: var(--text-sm); margin-bottom: var(--space-1); color: var(--accent-text); }
.steps p { color: var(--ink); opacity: 0.78; line-height: 1.55; max-width: 20em; }
@media (min-width: 70rem) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.7rem; left: 3.5rem; right: calc(-1 * var(--space-6)); height: 2px; background: var(--accent); opacity: 0.55; }
}
.steps-compact li::after { content: none !important; }
.steps-compact .ico { width: 3rem; height: 3rem; padding: 0.75rem; box-shadow: none; margin: 0; }

/* facts row: one calm panel, hairline gaps, no big numbers */
.glance { gap: 1px; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: var(--space-7); }
.glance > div { border: 0; padding: var(--space-5) var(--space-5); display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-4); align-items: baseline; }
.glance dt { font-size: var(--text-xl); margin: 0; letter-spacing: -0.02em; white-space: nowrap; }
.glance dd { font-size: var(--text-base); line-height: 1.4; color: var(--ink); }
@media (min-width: 75rem) { .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } .glance > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-6) var(--space-5); } }
@media (min-width: 45rem) and (max-width: 74.99rem) { .glance > div { padding: var(--space-5) var(--space-6); } }

/* cards and panels */
.b-panel, .spec, .guide-card, .dl-card, .table-wrap { box-shadow: var(--shadow-sm); }
.guide-card:hover, .dl-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.guide-card, .dl-card { transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base), border-color var(--motion-fast); }
.qa details { box-shadow: var(--shadow-sm); transition: box-shadow var(--motion-base), border-color var(--motion-fast); }
.qa details:hover { border-color: var(--line-strong); }
.qa details[open] { box-shadow: var(--shadow-md); }
.qa summary { padding-block: var(--space-5); }
.qa details p { line-height: 1.65; }
.b-tab { transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast); }
.covers-list { gap: var(--space-7) var(--space-8); }
.covers-list li { padding: var(--space-5); background: var(--band-raised); border: 1px solid var(--band-line); }
.covers-list li { grid-template-columns: 2rem minmax(0, 1fr); }
.ba th[scope="row"], .ba td { padding-block: var(--space-5); }
.how li::before { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }
.buy-card { filter: none; }
.receipt-sheet { box-shadow: var(--shadow-md); }
.takeaways, .answer { box-shadow: var(--shadow-sm); }
.ask { background: var(--tint); }
.site-footer { position: relative; }
.article p, .article li { line-height: 1.7; }
.article h2 { margin-top: 2.8em; margin-bottom: var(--space-4); }
.guide-meta { margin-bottom: var(--space-3); }
.buy-copy h2, .band > .wrap > h2, .band-page > .wrap > h2 { margin-bottom: var(--space-6); }
.limits { margin-top: var(--space-2); }
.limits h3 { margin-bottom: var(--space-4); }
.guide-list { max-width: none; }
.more-guides .guide-list { max-width: 46rem; }
.guide-card h2, .guide-card h3 { letter-spacing: -0.02em; }
.guide-list .guide-card { gap: var(--space-5) var(--space-5); }
.note-box { box-shadow: var(--shadow-sm); }
.guide-list { align-items: stretch; }
@media (max-width: 44.99rem) {
  .start-list a { padding: var(--space-5); gap: var(--space-4); min-height: 0; }
  .start-list .ico { width: 2.5rem; height: 2.5rem; padding: 0.55rem; }
  .start-list strong { font-size: var(--text-base); }
}

/* ---------- product listing: one column of cards, so an odd number of products never leaves a half-empty row ---------- */
.prod-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-card); }
.prod-list .guide-card { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.prod-list .guide-card h2 { margin-bottom: var(--space-2); }

/* =====================================================================
   Round 7: type tiers, rhythm, honest buy state, calmer tracker.
   Tiers on a landing page: hero h1 (--text-display), section h2 (--text-section), card h3 (--text-lg / --text-xl).
   ===================================================================== */
.keep { display: inline-block; } /* keeps a phrase on one line when it fits, wraps only if it must */
.hero-copy h1 { max-width: 20ch; text-wrap: balance; hyphens: manual; overflow-wrap: normal; }
.fact-line { padding-right: calc(var(--space-5) + 1.75rem); }
.hero-copy .lede { max-width: 30em; }

/* buy state: free sample is the one primary; notify is secondary; the price is the planned price tied to the not-on-sale note */
.buy-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; font-size: var(--text-base); color: var(--ink); }
.buy-state .num { font-weight: 600; }
.buy-state .soon-badge { padding: 0.1rem var(--space-3); }
.hero-copy .buy { gap: var(--space-4); }
.hero-copy .buy .btn-row { align-items: stretch; }
.btn-soon { padding-inline: var(--space-5); }
@media (max-width: 29.99rem) { .hero-copy .buy .btn-row .btn { width: 100%; } }

/* tracker: fewer boxes. Rows are separated by space, only the scope-change row keeps a box, one sheet sits behind the card. */
.tracker::before { content: none; }
.tr-rows { gap: var(--space-1); }
.tr-row { border: 0; padding: var(--space-2) 0; }
.tr-row.is-done .pill-done { background: transparent; padding-inline: 0; font-weight: 600; }
.tr-row.is-done .pill-done::before { box-shadow: none; }
.tr-row.is-review { background: var(--surface-2); padding-inline: var(--space-3); }
.tr-scope { margin-block: var(--space-2); padding: var(--space-3) var(--space-3); }
.tr-meter { margin-bottom: var(--space-4); }

/* Motion: page heading block settles in on load (transform only, content is visible from the first frame). */
@media (prefers-reduced-motion: no-preference) {
  .js .enter { animation: enter-rise var(--motion-slow) var(--ease-out) both; }
  @keyframes enter-rise { from { transform: translateY(var(--space-4)); } to { transform: none; } }
}

/* Motion 2: headline word mask, heading wipe, button feedback, card lift. Transform and clip only. */
@media (prefers-reduced-motion: no-preference) {
  .words .w { display: inline-block; animation: word-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes word-rise { from { transform: translateY(0.35em); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
  h2.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 760ms cubic-bezier(0.16, 1, 0.3, 1), transform var(--motion-slow) var(--ease-out); }
  h2.wipe.wiped { clip-path: inset(0 0 0 0); }
  .btn { transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
  main :is(.plan, .card, .rung, .trade):hover { transform: translateY(-3px); }
  main :is(.plan, .card, .rung, .trade) { transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
}
@media print { h2.wipe { clip-path: none !important; } }
.js .words.enter { animation: none; }

/* Motion graphics kit: classes are added by script only (see the main script). Accent comes from --accent. */
.mg-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.mg-host { position: relative; isolation: isolate; }
.mg-field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mask-image: radial-gradient(ellipse 55% 60% at 60% 40%, #000 30%, transparent 100%); }
@media (max-width: 700px) { .mg-field, .fx-canvas { mask-image: linear-gradient(90deg, transparent 82%, #000 100%) !important; } } /* phones: the moving marks stay at the right edge, clear of the text column */
.mg-grid { position: absolute; inset: -64px; opacity: 0.5; background-image: linear-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px); background-size: 64px 64px; animation: mg-drift 24s linear infinite; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
@keyframes mg-drift { to { transform: translate(64px, 64px); } }
.mg-spot { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.mg-lit .mg-spot { opacity: 1; }
.mg-mark { position: absolute; width: 18px; height: 18px; opacity: 0.55; animation: mg-float 11s ease-in-out infinite; }
.mg-plus::before, .mg-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: var(--accent); transform: translate(-50%, -50%); }
.mg-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.mg-square { border: 2px solid var(--accent); }
.mg-diamond { border: 2px solid var(--accent); rotate: 45deg; width: 14px; height: 14px; }
.mg-ring { border: 2px dashed var(--accent); width: 26px; height: 26px; animation-name: mg-spin; }
@keyframes mg-float { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(14px, -22px) rotate(30deg); } 66% { transform: translate(-12px, 10px) rotate(-20deg); } }
@keyframes mg-spin { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-16px); } 100% { transform: rotate(360deg) translateY(0); } }
.mg-off .mg-grid, .mg-off .mg-mark { animation-play-state: paused; }
.mg-par { translate: var(--px, 0) calc(var(--sy, 0px) + var(--py, 0px)); transition: translate 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.mg-cta { position: relative; overflow: hidden; transition: translate 380ms cubic-bezier(0.16, 1, 0.3, 1), transform 140ms ease, box-shadow 220ms ease, background-color 140ms ease; }
.mg-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 35%, rgb(255 255 255 / 0.38) 50%, transparent 65%); transform: translateX(-120%); animation: mg-sheen 4.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite; }
@keyframes mg-sheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.mg-rip-host { position: relative; overflow: hidden; }
.mg-ripple { position: absolute; rotate: 45deg; pointer-events: none; background: currentColor; opacity: 0.22; transform: scale(0); animation: mg-ripple 560ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes mg-ripple { to { transform: scale(1); opacity: 0; } }
.mg-tilt { position: relative; transform-style: preserve-3d; transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 380ms ease; }
.mg-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.mg-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); }
.mg-tilt:hover .mg-glare { opacity: 1; }
.mg-draw { stroke-dasharray: 100; stroke-dashoffset: 100; }
.mg-draw.mg-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms cubic-bezier(0.65, 0, 0.35, 1); }
@media print { .mg-draw { stroke-dashoffset: 0 !important; } }
.mg-on main p a:not(.btn), .mg-on main li a:not(.btn) { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 320ms cubic-bezier(0.16, 1, 0.3, 1), color 140ms ease; }
.mg-on main p a:not(.btn):hover, .mg-on main li a:not(.btn):hover { background-size: 100% 2px; }
.mg-on footer [class*="family"] a { transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.mg-on footer [class*="family"] a:hover { transform: translateY(-4px) rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .mg-field, .mg-sheen, .mg-glare, .mg-ripple { display: none; } .mg-draw { stroke-dashoffset: 0; } }
/* Site motion theme */
@media (prefers-reduced-motion: no-preference) {
.th-checklist .mg-progress { height: 4px; }
.th-checklist .mg-grid { background-image: radial-gradient(color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1.5px); background-size: 22px 22px; }
.mg-t { position: absolute; pointer-events: none; color: var(--accent); }
.ck-box { opacity: 0.55; animation: ck-bob 6s ease-in-out infinite; }
.ck-box .ck { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ck-tick 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; animation-delay: inherit; }
@keyframes ck-tick { 0%, 20% { stroke-dashoffset: 30; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
@keyframes ck-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.ck-route { opacity: 0.35; }
.ck-route path { animation: ck-march 2s linear infinite; }
@keyframes ck-march { to { stroke-dashoffset: -28; } }
.ck-runner { position: absolute; width: 12px; height: 12px; background: var(--accent); offset-path: path("M10 140C150 140 120 30 280 40S450 140 590 20"); offset-rotate: auto; animation: ck-run 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; pointer-events: none; }
@keyframes ck-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ck-fill i { transform-origin: 0 50%; animation: ck-seg 520ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.ck-fill i:nth-child(1) { animation-delay: 300ms; } .ck-fill i:nth-child(2) { animation-delay: 420ms; } .ck-fill i:nth-child(3) { animation-delay: 540ms; } .ck-fill i:nth-child(4) { animation-delay: 660ms; } .ck-fill i:nth-child(5) { animation-delay: 780ms; } .ck-fill i:nth-child(6) { animation-delay: 900ms; } .ck-fill i:nth-child(7) { animation-delay: 1020ms; }
@keyframes ck-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ck-pop { position: fixed; z-index: 1001; pointer-events: none; color: var(--accent); animation: ck-pop 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.ck-pop path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: ck-draw 300ms ease-out forwards; }
@keyframes ck-pop { 0% { transform: scale(0.6); opacity: 1; } 60% { transform: scale(1.3) translateY(-10px); opacity: 1; } 100% { transform: scale(1) translateY(-26px); opacity: 0; } }
@keyframes ck-draw { to { stroke-dashoffset: 0; } }
.th-checklist .mg-ripple { display: none; }
.mg-off .ck-box, .mg-off .ck-box .ck, .mg-off .ck-route path, .mg-off .ck-runner { animation-play-state: paused; }
}

/* Motion set 2: shared mechanics, themed below. */
@media (prefers-reduced-motion: no-preference) {
  .fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mask-image: radial-gradient(ellipse 45% 55% at 72% 40%, #000 25%, transparent 100%); }
  .fx-cursor { position: fixed; left: 0; top: 0; z-index: 1002; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; border: 1.5px solid var(--accent); transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1), height 260ms cubic-bezier(0.16, 1, 0.3, 1), margin 260ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms; }
  .fx-cursor.fx-big { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .fx-sec { transition: clip-path 1100ms cubic-bezier(0.16, 1, 0.3, 1); }
  .fx-lean { transform: skewY(var(--fx-lean, 0deg)); }
  .fx-roll-host { overflow: hidden; }
  .fx-roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
  .fx-roll > span { display: block; text-shadow: 0 1.6em 0 currentColor; transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1); }
  .fx-roll-host:hover .fx-roll > span { transform: translateY(-1.6em); }
  .fx-swell { transition: scale 360ms cubic-bezier(0.16, 1, 0.3, 1); }
  .fx-warp { filter: url(#fx-warp); }
  .fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
  .fx-rail { position: fixed; right: 14px; top: 25vh; height: 50vh; width: 2px; z-index: 900; background: color-mix(in srgb, var(--accent) 22%, transparent); pointer-events: none; }
  .fx-rail-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); }
  .fx-dot { position: absolute; left: -4px; width: 10px; height: 10px; margin-top: -5px; background: var(--bg, #fff); border: 2px solid var(--accent); transition: background-color 300ms, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .fx-dot.on { background: var(--accent); transform: scale(1.2); }
  .fx-foot-host { position: relative; overflow-x: clip; }
  .fx-foot { position: absolute; left: 0; right: 0; top: 0; height: 6px; pointer-events: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .fx-checklist .fx-cursor.fx-big::after { content: ""; position: absolute; inset: 12px; background: var(--accent); clip-path: polygon(0 55%, 16% 40%, 40% 63%, 84% 12%, 100% 27%, 40% 92%); }
  .fx-checklist .fx-sec { clip-path: inset(45% 45% 45% 45%); }
  .fx-checklist .fx-sec.fx-in { clip-path: inset(0 0 0 0); }
  
}

/* Footer seam and progress head: a line with a travelling marker, themed. No stripes. */
@media (prefers-reduced-motion: no-preference) {
  .fx-foot { height: 1px; background: color-mix(in srgb, var(--accent) 50%, transparent); }
  .fx-foot::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--accent); animation: fx-travel 9s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }
  @keyframes fx-travel { from { transform: translateX(0); } to { transform: translateX(calc(100vw - 40px)); } }
  .fx-blueprint .fx-foot::after { width: 14px; height: 8px; top: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .fx-checklist .fx-foot::after { clip-path: polygon(0 55%, 16% 40%, 40% 63%, 84% 12%, 100% 27%, 40% 92%); width: 16px; height: 14px; top: -7px; }
  .fx-atelier .fx-foot::after { width: 28px; height: 2px; top: 0; animation-duration: 6s; }
  .fx-loom .fx-foot::after { width: 40px; height: 6px; top: -3px; animation-duration: 4s; }
  .th-blueprint .mg-progress::after, .th-checklist .mg-progress::after, .th-atelier .mg-progress::after { content: ""; position: absolute; right: 0; top: -3px; width: 2px; height: 8px; background: var(--accent); }
}

/* Count-up keeps its final width; digits share one width. */
.mg-count { font-variant-numeric: tabular-nums; }
