/* Manasites landing page, "Matchmark" design (2026-11-26). Mobile first. One file.
   Brand: _deliverables/2026-11-26_manasites-brand/README.md. Motion: MOTION-PLAN.md in the same folder.
   Motion rules used here: only transform, opacity, clip-path and stroke-dashoffset move. Start states of
   animated parts exist only under html.motion (set by the inline script in <head>), so the page is
   complete without JavaScript and with reduced motion. */

/* ---------- Fonts: Inter is local; Sora and IBM Plex Mono come from Google Fonts (follow-up: self-host) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
/* Fallback faces with matched metrics, so the swap to the real font moves nothing (no layout shift). */
@font-face { font-family: "Inter Fallback"; font-weight: 400; src: local("Arial"); ascent-override: 91%; descent-override: 22.7%; line-gap-override: 0%; size-adjust: 106.4%; }
@font-face { font-family: "Inter Fallback"; font-weight: 500; src: local("Arial"); ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; size-adjust: 107.6%; }
@font-face { font-family: "Inter Fallback"; font-weight: 600; src: local("Arial"); ascent-override: 89%; descent-override: 22.2%; line-gap-override: 0%; size-adjust: 108.8%; }
@font-face { font-family: "Sora Fallback"; font-weight: 600; src: local("Arial"); ascent-override: 84%; descent-override: 25.1%; line-gap-override: 0%; size-adjust: 115.5%; }
@font-face { font-family: "Plex Fallback"; src: local("Courier New"); ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; size-adjust: 100%; }

/* ---------- Tokens ---------- */
:root {
  --blue: #4055E8;          /* Precision Blue: primary */
  --blue-press: #3445CC;
  --yellow: #D9F05B;        /* Signal Yellow: only for measured, selected or different things (~2%) */
  --ink: #191B24;           /* Carbon Ink */
  --porcelain: #F5F4EF;     /* background */
  --white: #FFFFFF;         /* surfaces */
  --grey: #D9DCE3;          /* Calibration Grey: hairlines */
  --slate: #747B89;         /* Slate: ticks and large text only (3.9:1 on porcelain) */
  --slate-text: #5C6270;    /* darker slate for small secondary text (AA: 5.3:1 on porcelain) */
  --soft: #E5E9FF;          /* Soft Blue: selected surfaces */

  --font-head: "Sora", "Sora Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Plex Fallback", ui-monospace, monospace;

  --r: 10px;
  --r-s: 6px;
  --gutter: 16px;
  --nav-h: 60px;

  /* Motion tokens (MOTION-PLAN.md section 1) */
  --ease-snap: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.65, 0, .35, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --t-press: 90ms;
  --t-hover: 150ms;
  --t-state: 200ms;
  --t-place: 320ms;
  --t-travel: 520ms;
  --t-read: 1200ms;
  --t-scan: 1400ms;
}
@media (min-width: 768px) { :root { --gutter: 32px; --nav-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); color-scheme: light; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 400 16px/1.6 var(--font-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mono { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 600 15px/1.1 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--t-press) ease, background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease;
}
/* The outline copy: on hover it sits 4 px off (unregistered); on press it snaps back under the button. */
.btn::after { content: ""; position: absolute; inset: -1px; border: 1.5px solid var(--blue); border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-snap); }
.btn--primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--grey); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--soon { background: var(--porcelain); color: var(--slate-text); border-color: var(--grey); cursor: default; }
.btn:active { transform: scale(.98); }
.btn:active::after { opacity: 0; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--blue-press); border-color: var(--blue-press); }
  .btn--primary:hover::after { opacity: .35; transform: translate(4px, 4px); }
  .btn--ghost:hover { border-color: var(--blue); }
  .btn--ghost:hover::after { opacity: .18; transform: translate(4px, 4px); }
  .btn--soon:hover { border-color: var(--grey); }
  .btn--soon:hover::after { opacity: 0; }
}

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 5px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.tag--live { background: var(--yellow); color: var(--ink); }
.tag--draft { background: var(--soft); color: #2B3AB0; }
.tag--example { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.tag--soon { background: #ECEDF0; color: var(--slate-text); }
.tag--plain { background: #ECEDF0; color: var(--slate-text); }

/* Registration corners on any box: four L marks just outside it. */
.corners { position: relative; }
.corners::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none; --c: var(--blue); --l: 14px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}

/* ---------- Logo (inline SVG, 7 named parts so it can assemble) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; color: var(--blue); flex: none; overflow: visible; }
.mark__dot { fill: var(--yellow); }
.mark__m, .mark__dot { transform-box: fill-box; transform-origin: center; }
.brand__word { font: 600 24px/1 var(--font-head); letter-spacing: -0.035em; padding-bottom: 2px; }
@media (min-width: 768px) { .brand .mark { width: 34px; height: 34px; } .brand__word { font-size: 27px; } }

/* ---------- 01 Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--porcelain); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grey); transform: scaleX(0); transform-origin: left; transition: transform var(--t-place) var(--ease-snap); }
.nav.is-scrolled::after, .nav.is-open::after { transform: none; }
.nav__inner { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--grey); border-radius: 8px; background: var(--white); cursor: pointer; }
.nav__burger { position: relative; width: 18px; height: 12px; }
.nav__burger i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform var(--t-state) var(--ease-snap), opacity var(--t-state); }
.nav__burger i:nth-child(1) { top: 0; } .nav__burger i:nth-child(2) { top: 5px; } .nav__burger i:nth-child(3) { top: 10px; }
.nav.is-open .nav__burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__burger i:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav__progress { display: none; }

@media (max-width: 1023px) {
  /* Phone and tablet menu: a panel under the bar that wipes open (clip-path). */
  .nav__links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 20px; background: var(--porcelain); border-bottom: 1px solid var(--grey);
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path 160ms var(--ease-exit), visibility 0s linear 160ms;
  }
  .nav.is-open .nav__links { visibility: visible; clip-path: inset(0); transition: clip-path 240ms var(--ease-snap), visibility 0s; }
  .nav__links > a { padding: 14px 2px; border-bottom: 1px solid var(--grey); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
  .nav__menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  html.motion .nav.is-open .nav__links > a { animation: menu-link 240ms var(--ease-snap) backwards; }
  html.motion .nav.is-open .nav__links > a:nth-child(2) { animation-delay: 30ms; }
  html.motion .nav.is-open .nav__links > a:nth-child(3) { animation-delay: 60ms; }
  html.motion .nav.is-open .nav__links > a:nth-child(4) { animation-delay: 90ms; }
}
@keyframes menu-link { from { opacity: 0; transform: translateY(-6px); } }

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
  .nav__links > a { position: relative; color: var(--ink); text-decoration: none; font-size: 15.5px; padding: 6px 0; }
  .nav__links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 160ms var(--ease-exit); }
  .nav__links > a[aria-current="true"]::after { transform: none; }
  .nav__menu-actions { display: none; }
  .nav__cta { display: flex; align-items: center; gap: 22px; padding-left: 26px; margin-left: 8px; border-left: 1px solid var(--grey); }
  .nav__signin { position: relative; color: var(--ink); text-decoration: none; font-size: 15.5px; padding: 6px 0; }
  .nav__signin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 160ms var(--ease-exit); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .nav__links > a:hover::after, .nav__signin:hover::after { transform: none; transform-origin: left; transition: transform var(--t-state) var(--ease-snap); }
}

/* ---------- Shared section layout ---------- */
.section { padding-block: clamp(64px, 5rem + 3vw, 128px); }
.section--tint { background: #EFEEE8; border-block: 1px solid #E4E3DC; }
.head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.head > p:not(.eyebrow) { margin-top: 16px; color: var(--slate-text); font-size: 17.5px; max-width: 700px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 12.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-text); }
.eyebrow .mono { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--blue); border-radius: 5px; color: var(--blue); letter-spacing: 0; }
.eyebrow::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--grey); transform-origin: left; }
.num { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--soft); color: #2B3AB0; font-size: 13px; }

/* ---------- 02 Hero ---------- */
.hero { padding-block: clamp(28px, 4vw, 64px) clamp(56px, 6vw, 96px); }
.hero__grid { display: grid; gap: 40px; }
.hero__copy { max-width: 600px; }
/* The headline's size follows its column width, so its line breaks are the same at every screen width and
   don't change when Sora replaces its fallback (no layout shift). */
.hero h1 { font-size: min(calc((100vw - 2 * var(--gutter)) * .1), 60px); text-wrap: wrap; }
.br-wide { display: none; }
@media (min-width: 1100px) { .br-wide { display: inline; } }
.lede { margin-top: 22px; font-size: clamp(17px, 1rem + .35vw, 20px); line-height: 1.55; color: #3A3E4B; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 auto; }
.assure { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15.5px; color: #3A3E4B; }
.assure svg, .note svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.45fr); align-items: center; gap: 48px; }
  .hero h1 { font-size: calc((min(100vw - 64px, 1280px) - 48px) * .0485); }
}
.nowrap { white-space: nowrap; }

/* The calibration bench: original site, measurement spine with markers, theme editor, match ruler */
.bench { --spine: 64px; --bar: 30px; position: relative; margin: 0; padding: 14px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; }
.bench__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--blue); pointer-events: none; }
.bench__corner--tl { top: -9px; left: -9px; border-top-width: 3px; border-left-width: 3px; --dx: -8px; --dy: -8px; }
.bench__corner--tr { top: -9px; right: -9px; border-top-width: 3px; border-right-width: 3px; --dx: 8px; --dy: -8px; }
.bench__corner--br { bottom: -9px; right: -9px; border-bottom-width: 3px; border-right-width: 3px; --dx: 8px; --dy: 8px; }
.bench__corner--bl { bottom: -9px; left: -9px; border-bottom-width: 3px; border-left-width: 3px; --dx: -8px; --dy: 8px; }
.bench__grid { position: relative; display: grid; gap: 12px; }
.bench__orig, .bench__editor { min-width: 0; background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); }
.browser { display: flex; align-items: center; gap: 5px; height: var(--bar); padding: 0 10px; border-bottom: 1px solid var(--grey); background: #FAFAF8; border-radius: var(--r) var(--r) 0 0; }
.browser i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); }
.browser span { margin-left: 8px; font: 500 11.5px/1 var(--font-mono); color: var(--slate-text); }
.bench__page { position: relative; }
.bench__shot { position: relative; overflow: hidden; border-radius: 0 0 calc(var(--r) - 1px) calc(var(--r) - 1px); }
.bench__shot img { width: 100%; }
.bench__parts { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.bench__parts li { position: absolute; left: 0; right: 0; top: calc(var(--top) * 1%); height: calc(var(--h) * 1%); transition: background-color var(--t-hover); }
.bench__parts li.is-hot { background: rgba(217, 240, 91, .28); box-shadow: inset 0 0 0 2px var(--yellow); }
.bench__cut { position: absolute; left: 0; right: 0; top: calc(var(--y) * 1%); height: 0; border-top: 1px dashed var(--blue); transform-origin: left; }
.bench__scan { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.bench__scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue); }
.bench__scan span { position: absolute; right: 6px; top: 4px; padding: 3px 6px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 11px; line-height: 1; }
.bench__spine { display: none; }
.bench__strip { position: relative; display: flex; justify-content: space-between; gap: 6px; padding: 6px 4px; }
.bench__strip::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--grey); }
.bench__strip span { position: relative; padding: 4px 8px; border: 1px solid var(--blue); border-radius: 6px; background: var(--white); font: 500 12px/1 var(--font-mono); color: var(--ink); transition: background-color var(--t-hover); }
.bench__strip span.is-hot { background: var(--yellow); }

.editor__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--bar); padding: 0 10px; border-bottom: 1px solid var(--grey); background: #FAFAF8; border-radius: var(--r) var(--r) 0 0; }
.editor__name { font: 600 12.5px/1 var(--font-body); }
.editor__body { display: grid; padding: 10px; gap: 10px; }
.editor__title { font: 600 12px/1 var(--font-body); margin: 2px 0 8px 4px; }
.rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; padding: 7px 8px; border: 1px solid var(--grey); border-radius: 7px; font-size: 13px; line-height: 1.25; background: var(--white); transition: background-color var(--t-hover), border-color var(--t-hover); }
.row b { font-size: 11px; color: var(--slate-text); }
.row small { font: 500 10.5px/1 var(--font-mono); color: var(--slate-text); }
.row.is-hot { background: var(--yellow); border-color: #B9D13A; }
.row--open { border-color: var(--blue); }
.row__settings { grid-column: 1 / -1; display: grid; gap: 4px; margin: 7px 0 1px; }
.row__settings div { display: grid; gap: 1px; padding: 5px 7px; border-radius: 5px; background: var(--porcelain); }
.row__settings dt { font: 500 10px/1.2 var(--font-mono); color: var(--slate-text); text-transform: uppercase; letter-spacing: .05em; }
.row__settings dd { margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor__preview { display: none; }
.bench__wires { display: none; }

.bench__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px 18px; margin-top: 16px; padding: 4px 4px 0; }
.reading { display: grid; gap: 2px; }
.reading__label { font-size: 11.5px; color: var(--slate-text); text-transform: uppercase; letter-spacing: .08em; }
.reading__num { font: 600 34px/1 var(--font-head); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.reading__num [data-reading] { display: inline-block; min-width: 2ch; text-align: right; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0 64px 0 0; list-style: none; }
.chips li { padding: 6px 10px; border: 1px solid #C9CDD6; border-radius: 6px; background: var(--white); font-size: 12.5px; line-height: 1; }
.bench__foot { position: relative; }
.replay { position: absolute; right: 2px; bottom: -4px; border: 0; background: none; color: var(--blue); font: 500 12.5px/1 var(--font-mono); padding: 8px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bench figcaption { margin-top: 14px; padding: 12px 4px 0; border-top: 1px solid var(--grey); font-size: 14px; color: var(--slate-text); }
.bench figcaption .tag { margin-right: 6px; }

@media (min-width: 760px) {
  .bench { padding: 18px; }
  .bench__grid { grid-template-columns: minmax(0, 1fr) calc(var(--spine) + 30px) minmax(0, 1.28fr); gap: 0; align-items: start; }
  .bench__strip { display: none; }
  .bench__spine { display: block; position: absolute; top: 0; bottom: 0; left: calc(100% + 1px); width: var(--spine); }
  .bench__spine::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: 50%; width: 9px; transform: translateX(-4px);
    background: linear-gradient(var(--slate), var(--slate)) 4px 0 / 1px 100% no-repeat, repeating-linear-gradient(to bottom, #B5BAC5 0 1px, transparent 1px 10px) 0 0 / 9px 100% no-repeat; }
  .bench__marker { position: absolute; left: 50%; top: calc(var(--y) * 1%); width: 36px; transform: translate(-50%, -50%); padding: 4px 0; text-align: center; border: 1px solid var(--blue); border-radius: 6px; background: var(--white); font: 500 12px/1 var(--font-mono); color: var(--ink); transition: background-color var(--t-hover); }
  .bench__marker::before, .bench__marker::after { content: ""; position: absolute; top: 50%; width: 14px; height: 1px; background: var(--blue); }
  .bench__marker::before { right: 100%; }
  .bench__marker::after { left: 100%; }
  .bench__marker.is-hot { background: var(--yellow); }
  .bench__wires { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .bench__wires path { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .7; transition: opacity var(--t-hover); }
  .bench__wires path.is-hot { opacity: 1; stroke-width: 2; }
  .bench__editor { grid-column: 3; }
  .bench__foot { grid-template-columns: auto minmax(0, 1fr); gap: 6px 28px; padding-inline: 6px; }
  .chips { margin-top: 14px; }
}
@media (min-width: 1100px) {
  .editor__body { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; }
  .editor__preview { display: block; border: 1px solid var(--grey); border-radius: 7px; overflow: hidden; }
}

/* ---------- Match ruler (hero, section 04, compare). --v = value 0-100, --target = 92 ---------- */
.ruler { --target: 92; --v: 0; position: relative; padding-top: 22px; }
.ruler__track { position: relative; height: 26px; }
.ruler__track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px; border-right: 1px solid var(--slate);
  background:
    linear-gradient(var(--slate), var(--slate)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--slate) 0 1px, transparent 1px 10%) 0 100% / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, #B5BAC5 0 1px, transparent 1px 2%) 0 100% / 100% 6px no-repeat; }
.ruler__fill { position: absolute; left: 0; right: 0; bottom: 5px; height: 3px; background: var(--blue); transform-origin: left; transform: scaleX(calc(var(--v) / 100)); }
.ruler__target { position: absolute; top: -22px; bottom: 0; left: calc(var(--target) * 1%); width: 0; border-left: 1px dashed var(--ink); }
.ruler__target b { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: 3px 5px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-size: 11px; line-height: 1; white-space: nowrap; }
.ruler__target b::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--yellow); border-radius: 6px; opacity: 0; }
.ruler.is-hit .ruler__target b::after { animation: target-flash 400ms var(--ease-snap) 1; }
@keyframes target-flash { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
.ruler__needle { position: absolute; inset: 0; pointer-events: none; transform: translateX(calc((var(--v) - 100) * 1%)); }
.ruler__needle::before { content: ""; position: absolute; right: 0; bottom: 1.5px; width: 10px; height: 10px; margin-right: -5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--white); }
.ruler__needle b { position: absolute; right: 0; top: -24px; transform: translateX(50%); padding: 3px 5px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 11px; line-height: 1; white-space: nowrap; }
.ruler__ghosts { position: absolute; inset: 0; }
.ruler__ghosts i { position: absolute; bottom: 3px; left: calc(var(--at) * 1%); width: 2px; height: 10px; margin-left: -1px; background: var(--slate); opacity: .55; }
.ruler__scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--slate-text); }
.ruler--small .ruler__target { top: -4px; }
.ruler--small .ruler__target b { top: -20px; }
.ruler--small { padding-top: 26px; }
.ruler--small .ruler__needle b { top: 22px; }
.ruler--small { padding-bottom: 18px; }

/* ---------- 03 What makes this different ---------- */
.convert { background: var(--white); border: 1px solid var(--grey); border-radius: 14px; padding: 8px; }
.convert__head { display: none; }
.convert__rows { margin: 0; padding: 0; list-style: none; display: grid; }
.convert__rows li { position: relative; display: grid; gap: 10px; padding: 18px 14px; border-bottom: 1px solid var(--grey); }
.convert__rows li:last-child { border-bottom: 0; }
.convert__from { font-weight: 600; }
.convert__how { justify-self: start; padding: 4px 9px; border-radius: 5px; background: var(--soft); color: #2B3AB0; font: 500 12.5px/1.3 var(--font-mono); }
.convert__to { position: relative; padding: 9px 12px; border: 1px solid var(--blue); border-radius: 7px; font-weight: 500; }
@media (min-width: 860px) {
  .convert { padding: 10px 26px; }
  .convert__head, .convert__rows li { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 0 28px; }
  .convert__head { padding: 16px 0 12px; border-bottom: 1px solid var(--grey); font-size: 12px; color: var(--slate-text); text-transform: uppercase; letter-spacing: .08em; }
  .convert__rows li { padding: 20px 0; }
  .convert__how { justify-self: center; }
  /* hairlines that join the three cells of a row */
  .convert__rows li::before, .convert__rows li::after { content: ""; position: absolute; top: 50%; height: 1px; background: var(--grey); transform-origin: left; transition: background-color var(--t-hover); }
  .convert__rows li::before { left: calc(100% / 6 + 40px); width: calc(100% / 6 - 40px); }
  .convert__rows li::after { left: calc(100% / 2 + 70px); width: calc(100% / 6 - 70px); }
  .convert__rows .convert__how, .convert__rows .convert__to { position: relative; z-index: 1; background-clip: padding-box; }
  .convert__rows .convert__to { background: var(--white); }
}
@media (min-width: 860px) and (hover: hover) and (pointer: fine) {
  .convert__rows li:hover::before, .convert__rows li:hover::after { background: var(--blue); }
}

/* ---------- 04 Measure. Section. Rebuild. Match. ---------- */
.proc { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.proc__panel { display: grid; gap: 22px; padding: 22px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; }
.proc__text h3 { margin: 14px 0 8px; font-size: 1.4rem; }
.proc__text p { color: var(--slate-text); }
.proc__vis { min-width: 0; align-self: center; }
@media (min-width: 600px) { .proc__panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; } }
@media (min-width: 1000px) { .proc { grid-template-columns: 1fr 1fr; } }

/* Page slices: the demo screenshot cropped to one part (top t%, height h% of the page) */
.vis-measure__shot, .slice, .vis-rebuild__preview, .vis-match__shot { background: url("img/site-golden-crumb-1200.webp") no-repeat; background-color: #F3E6CF; }
.vis-measure__frame { margin: 8px; border-radius: 6px; }
.vis-measure__shot { aspect-ratio: 1200 / 454; border: 1px solid var(--grey); border-radius: 6px; background-size: 100% calc(10000% / 38.44); background-position: 0 9.5%; }
.vis-measure__scan { position: absolute; inset: 0; transform: translateY(46%); pointer-events: none; }
.vis-measure__scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--blue); }
.vis-measure__scan::after { content: ""; position: absolute; left: 46%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.vis-measure__dim { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 5px; background: var(--white); border: 1px solid var(--ink); font-size: 12px; line-height: 1; }

.vis-section { width: 100%; max-width: 250px; justify-self: center; }
.vis-section ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.vis-section li { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 8px; }
.vis-section b { display: grid; place-items: center; height: 20px; border: 1px solid var(--blue); border-radius: 5px; font-size: 11px; background: var(--white); }
.slice { display: block; aspect-ratio: 1200 / calc(11.8 * var(--h)); outline: 1px dashed var(--blue); outline-offset: 1px; background-size: 100% calc(10000% / var(--h)); background-position: 0 calc(var(--top) / (100 - var(--h)) * 100%); }

.vis-rebuild { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--grey); border-radius: 10px; background: #FAFAF8; }
.vis-rebuild__list { display: grid; gap: 4px; align-content: start; }
.vis-rebuild__list p { font-size: 11px; color: var(--slate-text); margin-bottom: 4px; }
.vis-rebuild__list span { padding: 6px 8px; border: 1px solid var(--grey); border-radius: 6px; background: var(--white); font-size: 12.5px; line-height: 1.2; }
.vis-rebuild__list .is-on { background: var(--soft); border-color: var(--blue); }
.vis-rebuild__preview { border: 1px solid var(--grey); border-radius: 6px; aspect-ratio: 1200 / 830; background-size: 100% auto; background-position: 0 0; }

.vis-match__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vis-match__pair figure { margin: 0; display: grid; gap: 6px; }
.vis-match__pair .mono { font-size: 11.5px; color: var(--slate-text); }
.vis-match__shot { aspect-ratio: 1200 / 700; border: 1px solid var(--grey); border-radius: 6px; background-size: 100% auto; background-position: 0 0; }
.vis-match .ruler { margin-top: 8px; }

/* ---------- 05 Compare widget ---------- */
.compare { background: var(--white); border: 1px solid var(--grey); border-radius: 14px; padding: 14px; }
.compare__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.compare__bar .tag--example { margin-left: auto; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--grey); border-radius: 9px; background: var(--porcelain); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; color: var(--ink); transition: background-color var(--t-hover), color var(--t-hover); }
.seg button[aria-checked="true"] { background: var(--blue); color: var(--white); }
.seg--rounds button { font: 500 12.5px/1 var(--font-mono); padding: 9px 10px; }
.seg--rounds button[aria-checked="true"] { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-checked="false"]:hover { background: var(--white); } }
.compare__body { display: grid; gap: 18px; }
.compare__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; align-self: start; touch-action: pan-y; }
.pane { margin: 0; min-width: 0; }
.pane__label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--slate-text); }
.pane__shot { position: relative; overflow: hidden; border: 1px solid var(--grey); border-radius: 8px; background: #F3E6CF; }
.pane__shot img { width: 100%; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.patch { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); background: var(--c); transition: opacity 300ms ease; }
.patch.is-fixed { opacity: 0; }
.veil { position: absolute; inset: 0; background: rgba(25, 27, 36, .45); opacity: 0; transition: opacity var(--t-state) ease; pointer-events: none; }
.dbox { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border: 2px solid var(--yellow); border-radius: 3px; box-shadow: 0 0 0 1px rgba(25, 27, 36, .6); opacity: 0; transform: scale(.96); transition: opacity var(--t-state) ease, transform var(--t-state) var(--ease-snap); pointer-events: none; }
.dbox b { position: absolute; left: -2px; bottom: 100%; margin-bottom: 3px; padding: 2px 5px; border-radius: 3px; background: var(--yellow); color: var(--ink); font-size: 11px; line-height: 1.1; }
.dbox.is-hot { border-width: 3px; }
.dbox--below b { bottom: auto; top: 100%; margin: 3px 0 0; }
.slider { display: none; }
.slider__input { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; margin: 0; }

/* Overlay: the draft sits on top of the original and a handle wipes between them */
.compare[data-mode="overlay"] .compare__stage, .compare[data-mode="diff"] .compare__stage { grid-template-columns: 1fr; }
.compare[data-mode="overlay"] .pane { grid-area: 1 / 1; }
.compare[data-mode="overlay"] .pane__label { position: absolute; top: 8px; z-index: 3; margin: 0; padding: 4px 7px; border-radius: 4px; background: rgba(25, 27, 36, .82); color: var(--white); }
.compare[data-mode="overlay"] .pane--orig .pane__label { left: 8px; }
.compare[data-mode="overlay"] .pane--draft .pane__label { right: 8px; }
.compare[data-mode="overlay"] .pane--draft { clip-path: inset(0 0 0 calc(var(--pos, 50) * 1%)); }
.compare[data-mode="overlay"] .slider { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; transform: translateX(calc((var(--pos, 50) - 100) * 1%)); }
.slider__line { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; margin-right: -1px; background: var(--blue); }
.slider__grip { position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin: -18px -18px 0 0; display: grid; grid-auto-flow: column; place-content: center; gap: 5px; border-radius: 8px; background: var(--blue); box-shadow: 0 0 0 3px var(--white); pointer-events: auto; cursor: ew-resize; touch-action: none; }
.slider__grip i { width: 2px; height: 14px; background: var(--white); }
.compare.is-focus .slider__grip { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare[data-mode="overlay"] .compare__stage { cursor: ew-resize; }
/* Differences: only the draft, a carbon veil and yellow boxes on sections that still differ */
.compare[data-mode="diff"] .pane--orig { display: none; }
.compare[data-mode="diff"] .veil { opacity: 1; }
.compare[data-mode="diff"] .dbox.is-open { opacity: 1; transform: none; }
.compare[data-mode="diff"] .pane__label { margin-bottom: 6px; }

.compare__side { min-width: 0; }
.score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.score__label { width: 100%; font-size: 12px; color: var(--slate-text); text-transform: uppercase; letter-spacing: .08em; }
.score__num { font: 600 52px/1 var(--font-head); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score__num [data-score] { display: inline-block; min-width: 2ch; text-align: right; }
.score__state { font-size: 14px; font-weight: 600; color: #2B3AB0; }
.score__state.is-under { color: var(--slate-text); }
.ruler--main { margin-top: 6px; }
.subs { margin: 18px 0 0; display: grid; gap: 10px; }
.sub dt { display: flex; justify-content: space-between; font-size: 13.5px; }
.sub dt small { color: var(--slate-text); font-size: 11px; }
.sub dd { margin: 4px 0 0; display: grid; grid-template-columns: 1fr 3ch; align-items: center; gap: 10px; }
.sub dd .mono { font-size: 12.5px; text-align: right; }
.sub__bar { position: relative; height: 6px; border-radius: 3px; background: #ECEDF0; overflow: hidden; }
.sub__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(calc(var(--v, 100) / 100)); transition: transform 700ms var(--ease-snap); }
.diffs__title { margin: 22px 0 8px; font: 600 15px/1.2 var(--font-body); }
.diffs__title .mono { font-size: 12px; color: var(--slate-text); font-weight: 500; }
.diffs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.diffs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 10px; border: 1px solid var(--grey); border-radius: 8px; font-size: 13.5px; line-height: 1.35; transition: border-color var(--t-hover), opacity var(--t-state); }
.diffs b { display: grid; place-items: center; height: 22px; border-radius: 4px; background: var(--yellow); font-size: 11.5px; }
.diffs small { display: block; color: var(--slate-text); font-size: 12.5px; margin-top: 2px; }
.diffs em { font: 500 11.5px/22px var(--font-mono); font-style: normal; color: var(--ink); }
.diffs li.is-fixed { background: #FAFAF8; }
.diffs li.is-fixed b { background: var(--soft); color: #2B3AB0; }
.diffs li.is-fixed em { color: #2B3AB0; }
.diffs li.is-hot { border-color: var(--ink); }
.compare__note { margin-top: 14px; font-size: 13.5px; color: var(--slate-text); }
.compare__note .tag { margin-right: 6px; }
@media (min-width: 1000px) {
  .compare { padding: 20px; }
  .compare__body { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .compare[data-mode="overlay"] .compare__stage, .compare[data-mode="diff"] .compare__stage { width: min(100%, 560px); justify-self: center; }
}

/* ---------- 06 What you receive ---------- */
.get { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.get__card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; transition: border-color var(--t-hover); }
.get__card p { color: var(--slate-text); }
.get__demo { margin-top: auto; padding-top: 12px; }
@media (hover: hover) and (pointer: fine) { .get__card:hover { border-color: var(--blue); } }
@media (min-width: 700px) { .get { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .get { grid-template-columns: repeat(4, 1fr); } }
.tree { display: grid; gap: 2px; font-size: 12px; color: var(--ink); }
.tree span { padding: 5px 8px; border-left: 2px solid var(--grey); background: var(--porcelain); border-radius: 0 4px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree span:nth-child(3) { border-left-color: var(--blue); background: var(--soft); }
.editdemo { display: grid; gap: 10px; }
.editdemo__fields { display: grid; gap: 6px; }
.editdemo__fields > label { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--slate-text); }
.editdemo input[type="text"] { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--grey); border-radius: 7px; font: 400 14px/1.2 var(--font-body); color: var(--ink); background: var(--white); }
.editdemo input[type="text"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 32px; }
.switch input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.editdemo__preview { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 104px; padding: 14px; border-radius: 8px; background: #EFDBB8; text-align: center; }
.editdemo__preview p { font: 700 17px/1.15 Georgia, "Times New Roman", serif; color: #3C2A19; overflow-wrap: anywhere; }
.editdemo__btn { padding: 6px 12px; border-radius: 99px; background: #3C2A19; color: #FFF; font-size: 12px; transition: opacity var(--t-state), transform var(--t-state) var(--ease-snap); }
.editdemo__btn.is-off { opacity: 0; transform: scale(.9); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: auto 0 0; }
.counts div { padding: 10px; border: 1px solid var(--grey); border-radius: 8px; }
.counts dt { font-size: 11px; color: var(--slate-text); text-transform: uppercase; letter-spacing: .06em; }
.counts dd { margin: 4px 0 0; font: 600 26px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.count { display: inline-block; min-width: 1ch; }
.report { margin: auto 0 0; padding: 12px 0 0; list-style: none; display: grid; gap: 8px; }
.report li { display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 10px; font-size: 13.5px; }
.report .mono { font-size: 12.5px; text-align: right; }
.report__bar { position: relative; height: 6px; border-radius: 3px; background: #ECEDF0; }
.report__bar i { position: absolute; inset: 0; border-radius: 3px; background: var(--blue); transform-origin: left; transform: scaleX(calc(var(--v) / 100)); }
.report__bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 92%; width: 1px; background: var(--ink); }

/* ---------- 07 Draft theme protection ---------- */
.flow { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.flow__step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--grey); border-radius: 12px; }
.flow__step strong { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 15.5px; }
.flow__step > span:last-child { font-size: 14.5px; color: var(--slate-text); }
.flow__thumb { height: 48px; border-radius: 6px; border: 1px solid var(--grey); background: linear-gradient(#E4E6EB, #E4E6EB) 8px 8px / 40% 6px no-repeat, linear-gradient(#ECEDF0, #ECEDF0) 8px 20px / calc(100% - 16px) 20px no-repeat, #F7F7F5; }
.flow__thumb--draft { border-color: var(--blue); background: linear-gradient(#C9D1FB, #C9D1FB) 8px 8px / 40% 6px no-repeat, linear-gradient(var(--soft), var(--soft)) 8px 20px / calc(100% - 16px) 20px no-repeat, #F7F8FF; }
.flow__thumb--ok { display: grid; place-items: center; background: var(--soft); border-color: var(--soft); }
.flow__thumb--ok svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .flow__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: calc(100% + 10px); width: 20px; height: 10px; transform: translateY(-50%);
    background: var(--blue); clip-path: polygon(0 42%, 62% 42%, 62% 0, 100% 50%, 62% 100%, 62% 58%, 0 58%); }
}
.lib { margin: 0 auto; max-width: 760px; }
.lib__card { padding: 18px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; }
.lib__title { font-size: 12px; color: var(--slate-text); margin-bottom: 12px; }
.lib__rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lib__row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--grey); border-radius: 10px; background: var(--white); }
.lib__row--draft { border-style: dashed; border-color: var(--blue); }
.lib__row--draft.is-live { border-style: solid; }
.lib__thumb { width: 64px; height: 44px; object-fit: cover; object-position: top; border-radius: 5px; border: 1px solid var(--grey); }
.lib__thumb--plain { background: linear-gradient(#E4E6EB, #E4E6EB) 6px 6px / 50% 5px no-repeat, linear-gradient(#ECEDF0, #ECEDF0) 6px 16px / calc(100% - 12px) 18px no-repeat, #F7F7F5; }
.lib__name { display: grid; font-weight: 600; font-size: 15px; line-height: 1.3; }
.lib__name small { font-weight: 400; font-size: 13px; color: var(--slate-text); }
.lib__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey); }
.lib__sees { font-size: 14.5px; color: var(--slate-text); }
.lib__sees strong { color: var(--ink); }
.lib figcaption { margin-top: 12px; font-size: 13.5px; color: var(--slate-text); }
.lib figcaption .tag { margin-right: 6px; }
.note { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 22px auto 0; padding: 12px 16px; border-radius: 10px; background: var(--soft); font-weight: 500; font-size: 15px; }

/* ---------- 08 Three steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; }
.step h3 { margin-top: 6px; }
.step p { color: var(--slate-text); }
.step .num { align-self: flex-start; }
.step__ui { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
.field { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--grey); border-radius: 7px; background: var(--porcelain); font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.field--bar { position: relative; }
.field--bar i { position: absolute; left: 12px; right: 12px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--blue); }
.step__ok { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: #2B3AB0; }
.step__ok::before { content: ""; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 09 Two ways to build ---------- */
.ways { display: grid; gap: 16px; }
.way { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; }
.way__kicker { display: flex; align-items: center; gap: 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.way h3 { font-size: 1.45rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: #3A3E4B; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.route { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; padding-top: 10px; }
.route span { padding: 8px 6px; border: 1px solid var(--grey); border-radius: 7px; background: var(--white); font: 500 11.5px/1.25 var(--font-mono); text-align: center; }
.route span.is-here { border-color: var(--blue); background: var(--soft); color: #2B3AB0; }
.route i { width: 14px; height: 1px; background: var(--blue); position: relative; }
.route i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--blue); border-right: 0; }
.chip { display: inline-block; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 6px; font-size: 12.5px; line-height: 1; }
.seats { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--grey); border-radius: 10px; background: var(--porcelain); }
.seats__fallback { font-size: 14px; color: var(--slate-text); }
.seats__pick { display: flex; flex-wrap: wrap; gap: 6px; }
.seats__pick label { position: relative; cursor: pointer; }
.seats__pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seats__pick span { display: inline-block; padding: 7px 12px; border: 1px solid var(--grey); border-radius: 7px; background: var(--white); font-size: 14px; font-weight: 500; transition: background-color var(--t-hover), border-color var(--t-hover), color var(--t-hover); }
.seats__pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.seats__pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.seats__grid { display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; align-content: flex-start; }
.pc { position: relative; width: 30px; height: 28px; }
.pc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 19px; border: 2px solid var(--blue); border-radius: 3px; background: var(--white); }
.pc::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 6px; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.seats__count { font-size: 13px; color: var(--slate-text); }
@media (min-width: 900px) { .ways { grid-template-columns: 1fr 1fr; gap: 0; } .way:first-child { border-radius: 14px 0 0 14px; } .way:last-child { border-radius: 0 14px 14px 0; border-left-style: dashed; border-left-color: var(--blue); } }

/* ---------- 10 Pricing (cards are drawn by main.js from the config block) ---------- */
.prices { display: grid; gap: 16px; min-height: 200px; }
.prices__noscript { padding: 16px; background: var(--white); border: 1px solid var(--grey); border-radius: 10px; }
.pgroup { padding: 20px; background: var(--white); border: 1px solid var(--grey); border-radius: 14px; display: flex; flex-direction: column; gap: 14px; }
.pgroup__head h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pgroup__head p { margin-top: 4px; font-size: 14px; color: var(--slate-text); }
.pcards { display: grid; gap: 10px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--grey); border-radius: 10px; background: var(--white); }
.pcard h4 { margin: 0; font: 600 16px/1.2 var(--font-body); }
.pcard__price { display: flex; align-items: baseline; gap: 6px; }
.pcard__price strong { font: 600 32px/1.05 var(--font-head); letter-spacing: -0.04em; }
.pcard__price span { font-size: 13.5px; color: var(--slate-text); }
.pcard__line { font-size: 14px; color: #3A3E4B; }
.pcard__buy { display: grid; gap: 6px; margin-top: auto; padding-top: 8px; }
.pcard__buy .btn { min-height: 42px; font-size: 14px; padding: 0 12px; }
.pcard__alt { justify-self: center; font-size: 13px; padding: 6px 4px; }
.pgroup__note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--porcelain); font-size: 14px; }
.pgroup__note::before { content: ""; flex: none; width: 11px; height: 6px; margin: 0 4px 3px 2px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.pgroup__note--plain::before { display: none; }
.fineprint { margin-top: 16px; font-size: 13.5px; color: var(--slate-text); }
@media (min-width: 560px) { .pcards { grid-template-columns: repeat(3, 1fr); } .pcard { padding: 14px; } .pcard__price strong { font-size: 28px; } }
@media (min-width: 1200px) { .prices { grid-template-columns: 1fr 1fr; } .pcard__price strong { font-size: 30px; } }

/* ---------- 11 FAQ ---------- */
.faq { border-top: 1px solid var(--grey); }
.faq details { border-bottom: 1px solid var(--grey); }
.faq summary { position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font: 600 17px/1.4 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--blue); transition: transform var(--t-state) var(--ease-snap); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__a { padding: 0 0 22px; color: #3A3E4B; display: grid; gap: 10px; max-width: 70ch; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--blue); } }

/* ---------- 12 Final call to action ---------- */
.final { overflow: hidden; background: var(--ink); color: var(--porcelain); padding-block: clamp(64px, 8vw, 112px); }
.final__grid { display: grid; gap: 40px; align-items: center; }
.final h2 { color: var(--white); font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 16ch; }
.final p { margin: 18px 0 30px; max-width: 46ch; color: #C9CCD6; font-size: 17.5px; }
.final .btn--primary::after { border-color: var(--white); }
.final__mark { position: relative; isolation: isolate; justify-self: center; width: min(78vw, 420px); color: #8E9BF5; }
.final__mark::before { content: ""; position: absolute; top: -18%; bottom: -18%; left: 50%; width: 1px; background: #5C6AE8; opacity: .5; z-index: -1; }
.final__mark svg { width: 100%; height: auto; overflow: visible; }
.final__mark g { stroke-width: .55; }
.final__mark .fm { transform-box: fill-box; transform-origin: center; }
.fm--tl, .fm--tr, .fm--br, .fm--bl { stroke: var(--white); stroke-width: 1.1; }
.fm--dot { fill: var(--yellow); }
.final__ruler { position: absolute; left: -20%; right: -20%; top: 50%; height: 12px; margin-top: -6px; transform-origin: left; opacity: .5;
  background: linear-gradient(#5C6AE8, #5C6AE8) 0 50% / 100% 1px no-repeat, repeating-linear-gradient(90deg, #5C6AE8 0 1px, transparent 1px 12px) 0 0 / 100% 12px no-repeat; z-index: -1; }
.final__mark svg { position: relative; z-index: 1; }
@media (min-width: 900px) { .final__grid { grid-template-columns: 1.2fr 1fr; } .final__mark { width: min(100%, 440px); } }

/* ---------- 13 Footer ---------- */
.footer { position: relative; padding-block: 44px 36px; border-top: 1px solid var(--grey); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(90deg, #C9CDD6 0 1px, transparent 1px 16px); transform-origin: left; }
.footer__inner { display: grid; gap: 18px; }
.brand--footer .mark { width: 28px; height: 28px; }
.brand--footer .brand__word { font-size: 22px; }
.footer__tag { font-size: 12.5px; color: var(--slate-text); letter-spacing: .04em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; text-decoration-color: var(--blue); }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { font-size: 13px; color: var(--slate-text); max-width: 80ch; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; } .footer__legal { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--grey); } }

/* Without JavaScript the demo controls can't work, so they are not shown (the content stays). */
html:not(.js) .compare__bar .seg, html:not(.js) [data-publish-btn], html:not(.js) .editdemo__fields, html:not(.js) .slider__input { display: none; }

/* ---------- Thanks page (after Stripe checkout) ---------- */
.nav__end { margin-left: auto; }
.thanks { padding-block: clamp(48px, 8vw, 112px); }
.thanks__card { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--grey); border-radius: 14px; }
.thanks__card h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); }
.thanks__lead { font-size: 17.5px; color: #3A3E4B; max-width: 60ch; }
.thanks__steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Phone dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--grey);
  transform: translateY(110%); transition: transform var(--t-place) var(--ease-snap); }
.dock.is-on { transform: none; }
.dock__price { font-weight: 600; font-size: 15px; }
.dock .btn { min-height: 44px; }
@media (min-width: 760px) { .dock { display: none; } }
@media (max-width: 759px) { html.js body { padding-bottom: 72px; } }

/* =====================================================================================================
   MOTION. Everything below is extra: start states only under html.motion; nothing here hides content
   for screen readers (only opacity / transform / clip-path), and a failsafe shows all of it after 3 s
   if motion.js never runs (html gets .motion-ready when it does).
   ===================================================================================================== */
@keyframes ms-failsafe { from, to { opacity: 1; transform: none; clip-path: none; stroke-dashoffset: 0; } }
html.motion:not(.motion-ready) [data-anim]:not([data-scan]), html.motion:not(.motion-ready) [data-reveal] { animation: ms-failsafe 1ms 3s forwards; }

/* Logo on load (once): the M rises in, the word wipes in, then the yellow point pops into the V. */
html.motion .nav .mark__m { animation: lg-m 420ms var(--ease-move) 80ms backwards; }
html.motion .nav .brand__word { animation: lg-word 360ms var(--ease-snap) 300ms backwards; }
html.motion .nav .mark__dot { animation: lg-dot 520ms var(--ease-snap) 560ms backwards; }
@keyframes lg-m { from { opacity: 0; transform: translateY(5px); } }
@keyframes lg-word { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lg-dot { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: none; } }

/* Reading ruler on the nav's bottom edge (scroll-driven CSS where supported). */
@supports (animation-timeline: scroll()) {
  html.motion:not(.no-sda) .nav__progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform-origin: left; transform: scaleX(0); animation: nav-read linear both; animation-timeline: scroll(root); }
}
@keyframes nav-read { to { transform: scaleX(1); } }

/* Section heads and cards: place once (opacity + 12 px), stagger by --i. */
html.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }
html.motion [data-reveal].is-in { transition: opacity var(--t-place) ease, transform var(--t-place) var(--ease-snap); transition-delay: calc(var(--i, 0) * 60ms); }
html.motion .head.is-in .eyebrow::after { animation: draw-x var(--t-place) var(--ease-snap) 120ms backwards; }
@keyframes draw-x { from { transform: scaleX(0); } }

/* --- Hero calibration sequence (motion.js adds .is-in to the bench; delays come from --t in ms) --- */
html.motion .bench:not(.is-in) [data-anim] { opacity: 0; }
html.motion .bench:not(.is-in) .bench__wires path { stroke-dashoffset: 1; }
html.motion .bench.is-in .bench__corner { animation: bench-corner 400ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .bench__scan { animation: bench-scan var(--t-scan) linear 400ms both; }
html.motion .bench.is-in .bench__cut { animation: bench-cut 180ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .bench__marker { animation: bench-marker 640ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .bench__strip span { animation: bench-strip 640ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .bench__wires path { animation: bench-wire 320ms var(--ease-move) calc(1900ms + var(--i) * 80ms) backwards; }
html.motion .bench.is-in .row { animation: bench-row 240ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .row__settings { animation: bench-open 300ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .editor__preview { animation: bench-wipe 600ms linear calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .editor__bar .tag { animation: bench-tag 220ms var(--ease-snap) calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .reading, html.motion .bench.is-in .bench__foot .ruler { animation: bench-fade 200ms ease calc(var(--t) * 1ms) backwards; }
html.motion .bench.is-in .chips { animation: bench-fade 300ms ease calc(var(--t) * 1ms) backwards; }
@keyframes bench-corner { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes bench-scan { 0% { opacity: 1; transform: translateY(0); } 97% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }
@keyframes bench-cut { from { opacity: 1; transform: scaleX(0); } }
@keyframes bench-marker { 0% { opacity: 0; transform: translate(-50%, calc(-50% - 8px)); background-color: var(--yellow); } 35% { opacity: 1; transform: translate(-50%, -50%); background-color: var(--yellow); } 70% { background-color: var(--yellow); } 100% { background-color: var(--white); } }
@keyframes bench-strip { 0% { opacity: 0; transform: translateY(-8px); background-color: var(--yellow); } 35% { opacity: 1; transform: none; background-color: var(--yellow); } 70% { background-color: var(--yellow); } 100% { background-color: var(--white); } }
@keyframes bench-wire { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bench-row { from { opacity: 0; transform: translateX(12px); } }
@keyframes bench-open { from { clip-path: inset(0 0 100% 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes bench-wipe { from { clip-path: inset(0 0 100% 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes bench-tag { from { opacity: 0; transform: scale(.92); } }
@keyframes bench-fade { from { opacity: 0; } }
html.motion .bench.is-in .row__settings[data-anim], html.motion .bench.is-in .editor__preview[data-anim] { opacity: 1; }

/* --- Section 04 panels: each plays once when it enters (motion.js adds .is-in) --- */
html.motion .proc__panel:not(.is-in) [data-anim] { opacity: 0; }
html.motion .proc__panel.is-in .vis-measure__scan { animation: vm-scan 1800ms linear backwards; }
html.motion .proc__panel.is-in .vis-measure__dim { animation: bench-tag 220ms var(--ease-snap) 1700ms backwards; }
@keyframes vm-scan { 0% { opacity: 1; transform: translateY(0); } 70% { transform: translateY(100%); } 100% { transform: translateY(46%); } }
html.motion .proc__panel.is-in .vis-section .slice { animation: vs-cut 520ms var(--ease-move) calc(200ms + var(--i) * 60ms) backwards; }
html.motion .proc__panel.is-in .vis-section b { animation: bench-strip 640ms var(--ease-snap) calc(500ms + var(--i) * 80ms) backwards; }
@keyframes vs-cut { from { opacity: 1; transform: translateY(calc((2 - var(--i)) * 5px)); outline-color: transparent; } }
html.motion .proc__panel.is-in .vis-rebuild__list span { animation: bench-row 240ms var(--ease-snap) calc(150ms + var(--i) * 60ms) backwards; }
html.motion .proc__panel.is-in .vis-rebuild__preview { animation: bench-wipe 700ms linear 400ms backwards; }
html.motion .proc__panel.is-in .vis-match__draft { animation: vm-register var(--t-travel) var(--ease-move) 200ms backwards; }
@keyframes vm-register { from { opacity: .6; transform: translate(-14px, 10px); } }
html.motion .proc__panel.is-in [data-anim] { opacity: 1; }

/* --- Final call to action: the mark assembles once (motion.js adds .is-in) --- */
html.motion .final:not(.is-in) .fm--tl { transform: translate(-48px, -48px); opacity: 0; }
html.motion .final:not(.is-in) .fm--tr { transform: translate(48px, -48px); opacity: 0; }
html.motion .final:not(.is-in) .fm--br { transform: translate(48px, 48px); opacity: 0; }
html.motion .final:not(.is-in) .fm--bl { transform: translate(-48px, 48px); opacity: 0; }
html.motion .final:not(.is-in) .fm--back { transform: translate(8px, -9px); }
html.motion .final:not(.is-in) .fm--front { transform: translate(-8px, 9px); }
html.motion .final:not(.is-in) .fm--dot { transform: scale(0); }
html.motion .final:not(.is-in) .final__ruler { transform: scaleX(0); }
html.motion .final .fm, html.motion .final .final__ruler { transition: transform 800ms var(--ease-snap), opacity 400ms ease; }
html.motion .final .fm--back, html.motion .final .fm--front { transition-delay: 200ms; }
html.motion .final .fm--dot { transition: transform 260ms var(--ease-snap) 760ms; }

/* --- FAQ: the answer opens with a clip wipe (height never animates) --- */
html.motion .faq details[open] > .faq__a { animation: faq-open 220ms var(--ease-snap); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* --- Pricing and seats: small state changes --- */
html.motion .pc.is-new { animation: bench-row 240ms var(--ease-snap) calc(var(--i) * 30ms) backwards; }

/* Reduced motion: no timed or scroll-linked motion anywhere (blanket safety rule). "none", not a tiny
   duration: with transition-property "all", a tiny duration still turns the first style change after load
   into a transition (WebKit then reports default font sizes for a moment). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
