/* Shopleez pricing — "The live receipt"
   One light source: the receipt. Everything else is the dark counter. */

/* Self-hosted fonts (Google Fonts, OFL): Alexandria, Readex Pro, Geist Mono */
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(assets/fonts/alexandria-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(assets/fonts/alexandria-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(assets/fonts/alexandria-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/geist-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/geist-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/readex-pro-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/readex-pro-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/readex-pro-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --counter: #121212;
  --counter-2: #191918;
  --counter-3: #222220;
  --rule: #2c2c2a;
  --fg: #ecebe6;
  --fg-2: #a8a7a0;
  --paper: #fbfbf8;
  --paper-low: #f1f1ec;
  --ink: #141413;
  --ink-2: #5a5953;
  --ink-3: #8a8982;
  --red: #d42a1b;          /* thermal second ink: on paper + button fills */
  --red-hi: #ff6a5a;       /* the same red where it sits on the dark counter */
  --red-wash: rgba(212, 42, 27, .075);
  --c-basic: #f4f4ef;
  --c-growth: #f5c3cf;
  --c-pro: #f6dc63;
  --c-basic-dim: #2e2e2c;
  --c-growth-dim: #362a2d;
  --c-pro-dim: #35301b;
  --f-display: "Alexandria", "Readex Pro", system-ui, sans-serif;
  --f-body: "Readex Pro", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, "Readex Pro", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: dark;
  accent-color: var(--red);
}
html:lang(en) { --f-display: "Alexandria", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 96px; scrollbar-color: #3a3a37 var(--counter); }
body {
  margin: 0;
  background: var(--counter);
  color: var(--fg);
  font: 400 16px/1.65 var(--f-body);
  overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--counter); }
::-webkit-scrollbar-thumb { background: #3a3a37; border-radius: 8px; border: 3px solid var(--counter); }
::-webkit-scrollbar-thumb:hover { background: #55554f; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 4px; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.lead { color: var(--fg-2); max-width: 60ch; margin-block-start: 12px; font-size: 1.05rem; }
kbd {
  font: 500 11px/1 var(--f-mono);
  padding: 4px 6px; border-radius: 5px;
  border: 1px solid #3b3b38; color: var(--fg-2); background: #1d1d1c;
}

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin-inline: auto; padding: 18px var(--pad);
}
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--fg); direction: ltr; }
.logo__word { font: 800 24px/1 var(--f-display); letter-spacing: -.035em; }
.logo__z { width: 25px; height: 25px; color: var(--red-hi); margin-inline-start: -1px; transform: translateY(-1px); }
.top__nav { display: flex; align-items: center; gap: 8px; }
.find-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding-inline: 12px 8px;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--counter-2); color: var(--fg-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.find-btn:hover { border-color: #46463f; color: var(--fg); }
.find-btn svg { width: 17px; height: 17px; }
.find-btn--icon { display: none; padding: 0; width: 44px; height: 44px; justify-content: center; }
.lang, .top__wa {
  height: 40px; padding-inline: 14px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px;
}
.lang { border: 1px solid var(--rule); background: transparent; color: var(--fg); }
.lang:hover { border-color: #46463f; }
.top__wa { background: var(--red); color: #fff; font-weight: 500; }
.top__wa:hover { background: #bb2316; }
.top__wa svg { width: 18px; height: 18px; }

/* ---------- stage ---------- */
.stage {
  position: relative;
  max-width: 1240px; margin-inline: auto;
  padding: clamp(24px, 5vw, 56px) var(--pad) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  grid-template-areas: "text paper" "side paper";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
}
.stage__text { grid-area: text; padding-block-start: 48px; }
.stage__side { grid-area: side; align-self: start; position: sticky; top: 24px; margin-block-start: 40px; }
.stage__paper { grid-area: paper; position: relative; isolation: isolate; }

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: #f6f5f0;
}
html:lang(en) h1 { letter-spacing: -.035em; line-height: 1.02; }
h1 span { display: block; }
h1 span:last-child { color: var(--fg-2); font-weight: 700; }
.stage__lead { color: var(--fg-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 46ch; margin-block-start: 22px; }

/* the light: a single pool on the counter under the receipt */
.stage__paper::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  inset: -140px -220px auto; height: min(1400px, 140%);
  background:
    radial-gradient(52% 36% at 50% 22%, rgba(255, 246, 228, .105), rgba(255, 246, 228, .035) 55%, transparent 75%);
}

/* ---------- package sheets (carbon copies) ---------- */
.sheets { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-width: 0; }
.sheet {
  --c: var(--c-basic); --dim: var(--c-basic-dim);
  position: relative; display: grid; gap: 2px; cursor: pointer;
  padding: 16px 14px 14px;
  background: var(--dim); color: var(--fg);
  border-radius: 2px 2px 3px 3px;
  /* perforated top edge */
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 3px, #000 3.5px) 0 0 / 12px 100% repeat-x;
          mask: radial-gradient(circle at 6px 0, transparent 3px, #000 3.5px) 0 0 / 12px 100% repeat-x;
  transition: background-color .35s var(--ease), transform .35s var(--ease), filter .35s;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.9);
}
.sheet--growth { --c: var(--c-growth); --dim: var(--c-growth-dim); }
.sheet--pro { --c: var(--c-pro); --dim: var(--c-pro-dim); }
.sheet:hover { transform: translateY(-2px); }
.sheet:has(input:checked) { background: var(--c); color: #0d0d0c; transform: translateY(-4px); box-shadow: 0 18px 30px -14px rgba(0,0,0,.95), 0 -30px 60px -30px rgba(255,246,228,.2); }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--c); opacity: .55; }
.sheet:has(input:checked)::before { opacity: 0; }
.sheet:has(input:focus-visible) { outline: 2px solid var(--red-hi); outline-offset: 4px; }
.sheet input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sheet__code { font: 600 12px/1 var(--f-mono); letter-spacing: .04em; display: flex; justify-content: space-between; }
.sheet__code i { font-style: normal; font-weight: 500; }
.sheet__name { font: 700 20px/1.25 var(--f-display); margin-block-start: 8px; }
.sheet__price { font: 600 17px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.sheet__price { color: var(--c); }
.sheet__note { font-size: 12px; line-height: 1.35; color: var(--fg-2); }
.sheet:has(input:checked) .sheet__price { color: #0d0d0c; }
.sheet:has(input:checked) .sheet__note { color: #3a3934; }
.sheet:hover:not(:has(input:checked)) { background: color-mix(in srgb, var(--dim) 80%, var(--c) 20%); }

/* ---------- diff panel ---------- */
.diff { margin-block-start: 22px; min-height: 120px; }
.diff__pitch { color: var(--fg-2); max-width: 44ch; }
.diff__title { font: 700 1.35rem/1.3 var(--f-display); color: var(--fg); }
.diff__count { margin-block-start: 8px; color: var(--fg-2); }
.diff__count b { color: var(--fg); font-weight: 600; }
.diff__count .mono { color: var(--red-hi); }
.diff__next {
  margin-block-start: 16px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid #47463f; background: var(--counter-2); color: var(--fg); font-size: 15px;
  transition: border-color .2s, background-color .2s;
}
.diff__next:hover { border-color: var(--red-hi); background: #1f1d1c; }
.diff__next .mono { color: var(--red-hi); }
.diff__next svg { width: 16px; height: 16px; }
[dir="rtl"] .diff__next svg, [dir="rtl"] .arrow-flip { transform: scaleX(-1); }
.diff__host { margin-block-start: 12px; font-size: 14px; color: var(--fg-2); }
.side__links { margin-block-start: 22px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.side__links a, .linkish { color: var(--fg-2); }
.side__links a:hover, .linkish:hover { color: var(--fg); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* ---------- printer + receipt ---------- */
.printer {
  position: relative; z-index: 2;
  height: 26px; margin-inline: -14px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(#2b2b29, #121211 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 14px 22px -10px rgba(0,0,0,.85);
}
.printer__slot { position: absolute; inset: auto 10px 5px; height: 2px; border-radius: 2px; background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.06); }

.rc { position: relative; margin-block-start: -4px; }
.rc__paper {
  position: relative;
  background: linear-gradient(var(--paper) 0, var(--paper) 40%, var(--paper-low) 100%);
  color: var(--ink);
  padding: 30px clamp(18px, 4.6vw, 30px) 18px;
  box-shadow:
    0 2px 3px rgba(0,0,0,.35),
    0 30px 50px -18px rgba(0,0,0,.85),
    0 70px 120px -40px rgba(0,0,0,.9);
  font-size: 15px; line-height: 1.5;
}
/* the duplicate peeking under the original, coloured by the chosen copy */
.rc::before {
  content: ""; position: absolute; z-index: -1; inset: 14px -7px 60px 7px;
  background: var(--dup, transparent);
  transition: background-color .4s var(--ease);
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.8);
}
[dir="rtl"] .rc::before { inset: 14px 7px 60px -7px; }
.rc[data-pkg="basic"]::before { --dup: #d9d9d3; }
.rc[data-pkg="growth"]::before { --dup: #e3aebb; }
.rc[data-pkg="pro"]::before { --dup: #e2c74f; }

.rc__head { text-align: center; }
.rc__mark { width: 34px; height: 34px; color: var(--ink); }
.rc__store { font: 800 clamp(1.3rem, 1.1rem + 1vw, 1.65rem)/1.25 var(--f-display); margin-block-start: 10px; text-wrap: balance; }
.rc__meta { margin: 18px 0 0; padding-block-start: 14px; border-block-start: 1.5px dashed #bdbcb5; display: grid; gap: 4px; font-size: 14px; }
.rc__meta div { display: flex; justify-content: space-between; gap: 12px; }
.rc__meta dt { color: var(--ink-2); }
.rc__meta dd { margin: 0; font-weight: 500; }
.rc__meta dd.mono { font-size: 13.5px; }

.rc__sec { margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1.5px dashed #bdbcb5; }
.rc__sh { font: 600 13px/1.4 var(--f-body); color: var(--ink-2); margin-block-end: 6px; }
.rc__plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.rc__plain li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.rc__plain svg { width: 15px; height: 15px; margin-block-start: 4px; color: var(--ink); }
.rc__plain--no { color: var(--ink-2); }
.rc__plain--no svg { color: var(--ink-3); }
.rc__fine { font-size: 13px; color: var(--ink-2); margin-block-start: 8px; }

.rc__menu { margin-block-start: 18px; padding-block: 18px; border-block-start: 1.5px dashed #bdbcb5; text-align: center; }
.rc__prompt { font: 500 15px/1.5 var(--f-body); color: var(--ink-2); }
.rc[data-pkg] .rc__menu { display: none; }

/* package blocks */
.blk { margin-block-start: 18px; padding-block-start: 12px; border-block-start: 1.5px dashed #bdbcb5; }
.blk[hidden] { display: none; }
.blk__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); margin-block-end: 6px; }
.blk__h b { font: 700 15px/1.3 var(--f-display); color: var(--ink); }
.blk__h .mono { font-size: 12.5px; }
.blk.is-new .blk__h b, .blk.is-new .blk__h .mono { color: var(--red); }
.blk__list { list-style: none; margin: 0; padding: 0; }

.ln { display: grid; grid-template-rows: 1fr; }
.ln__in {
  display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto auto; align-items: start; column-gap: 8px;
  padding: 6px 6px; margin-inline: -6px; border-radius: 3px; cursor: pointer;
  transition: background-color .5s var(--ease);
  min-height: 0; overflow: hidden;
}
.ln__in:hover { background: rgba(0,0,0,.04); }
.ln__code { font: 500 12.5px/1.9 var(--f-mono); color: var(--ink-2); direction: ltr; text-align: start; }
.ln__name { font-size: 14.5px; line-height: 1.55; }
.ln__ok { width: 15px; height: 15px; margin-block-start: 5px; color: var(--ink); }
.blk.is-new .ln__in { background: var(--red-wash); }
.blk.is-new .ln__in:hover { background: rgba(212, 42, 27, .12); }
.blk.is-new .ln__code, .blk.is-new .ln__ok { color: var(--red); }
.blk.is-new .ln__in { border-radius: 0; }
.ln.is-found .ln__in, .blk.is-new .ln.is-found .ln__in, .ln.is-found .ln__in:hover { background: var(--ink); color: var(--paper); }
.ln.is-found .ln__code, .ln.is-found .ln__ok, .blk.is-new .ln.is-found .ln__code, .blk.is-new .ln.is-found .ln__ok { color: #ffb2a8; }
.ln.is-found .q { color: var(--paper); }
.ln:focus-visible { outline: none; }
.ln:focus-visible .ln__in { outline: 2px solid var(--red); outline-offset: 1px; }

/* the "?" toggletip trigger */
.q {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin: -3px -4px -3px 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.q svg { width: 18px; height: 18px; }
.q:hover, .q[aria-expanded="true"] { color: var(--red); background: rgba(212,42,27,.1); }
.q:focus-visible { outline-offset: 0; border-radius: 50%; outline-color: var(--red); }
.q--dark { color: #8f8e87; }
.q--dark:hover, .q--dark[aria-expanded="true"] { color: var(--red-hi); background: rgba(255,106,90,.12); }

/* total */
.rc__total {
  position: relative; margin-block-start: 20px; padding-block: 16px 6px;
  border-block-start: 2px solid var(--ink);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.rc__tl { font: 700 18px/1 var(--f-display); }
.rc__tv { font: 600 clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem)/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.rc__tv output { font: inherit; }
.rc__cur { font: 500 14px/1 var(--f-body); color: var(--ink-2); letter-spacing: 0; }
.stamp {
  position: absolute; inset-inline-start: 34%; top: -14px;
  font: 800 14px/1 var(--f-display); color: var(--red);
  padding: 7px 10px 8px; border: 2px solid var(--red); border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--red);
  transform: rotate(-7deg); background: var(--paper);
  opacity: 0; transition: opacity .2s;
}
.rc[data-pkg] .stamp { opacity: 1; }
.rc.stamping .stamp { animation: stamp .42s var(--ease) both; }
@keyframes stamp { 0% { transform: rotate(-7deg) scale(1.9); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(-7deg) scale(1); opacity: 1; } }
.rc__pay { font-size: 13.5px; color: var(--ink-2); }
.rc__host { font-size: 13.5px; color: var(--ink); margin-block-start: 6px; padding: 8px 10px; background: rgba(0,0,0,.05); border-radius: 3px; }
.rc__sec--fine { margin-block-start: 20px; }
.rc__bars { display: block; width: 100%; height: 44px; margin-block-start: 22px; color: var(--ink); }
.rc__url { text-align: center; font-size: 11.5px; letter-spacing: .18em; color: var(--ink-2); margin-block-start: 6px; }

/* tear-off stub */
.stub { display: block; text-decoration: none; color: var(--ink); position: relative; transform-origin: 85% 0; }
[dir="rtl"] .stub { transform-origin: 15% 0; }
.stub__cut {
  display: block; height: 12px;
  background:
    radial-gradient(circle at 7px 6px, var(--counter) 3px, transparent 3.5px) 0 0 / 14px 12px repeat-x,
    var(--paper-low);
}
.stub__body {
  display: flex; align-items: center; gap: 14px;
  padding: 18px clamp(18px, 4.6vw, 30px) 22px;
  background: var(--paper-low);
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.85);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from 135deg at 50% 100%, #000 90deg, transparent 0) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from 135deg at 50% 100%, #000 90deg, transparent 0) bottom / 12px 8px repeat-x;
  padding-block-end: 28px;
}
.stub__wa { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--red); color: #fff; }
.stub__txt { display: grid; gap: 2px; }
.stub__txt strong { font: 700 17px/1.35 var(--f-display); }
.stub__pkg { font-size: 14px; color: var(--ink-2); }
.stub:hover .stub__body, .stub:focus-visible .stub__body { background: #fff; }
.stub:hover { transform: rotate(-1.2deg) translateY(3px); transition: transform .25s var(--ease); }
[dir="rtl"] .stub:hover { transform: rotate(1.2deg) translateY(3px); }
.stub:focus-visible { outline-offset: 6px; }
.stub.is-torn { animation: tear .9s var(--ease) both; }
[dir="rtl"] .stub.is-torn { animation-name: tear-rtl; }
@keyframes tear { 0% { transform: none; } 30% { transform: rotate(-5deg) translateY(10px); } 100% { transform: rotate(-9deg) translate(-30px, 90px); opacity: 0; } }
@keyframes tear-rtl { 0% { transform: none; } 30% { transform: rotate(5deg) translateY(10px); } 100% { transform: rotate(9deg) translate(30px, 90px); opacity: 0; } }
.stub.is-back { animation: back .5s var(--ease) both; }
@keyframes back { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* printing motion: a fast paper feed with the thermal ink darkening in */
.js .ln.is-printing { animation: feed .26s var(--ease) both; animation-delay: var(--d, 0ms); }
.js .ln.is-printing .ln__in { animation: ink .42s ease-out both; animation-delay: var(--d, 0ms); }
.js .blk.is-printing .blk__h { animation: ink .3s ease-out both; }
.js .rc__head.is-printing > * { animation: ink .4s ease-out both, feedin .28s var(--ease) both; }
.js .rc__head.is-printing > :nth-child(2) { animation-delay: 120ms; }
.js .rc__head.is-printing > :nth-child(3) { animation-delay: 240ms; }
@keyframes feed { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@keyframes feedin { from { transform: translateY(-10px); } to { transform: none; } }
@keyframes ink { from { color: #c9c8c1; filter: blur(.7px); } 60% { filter: none; } to { filter: none; } }
.rc.is-feeding .rc__paper { animation: jog .5s var(--ease); }
@keyframes jog { 0% { transform: translateY(-3px); } 100% { transform: none; } }

/* ---------- toggletip ---------- */
.tip {
  position: absolute; z-index: 40; width: min(340px, calc(100vw - 32px));
  background: var(--paper); color: var(--ink);
  padding: 12px 16px 14px; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 22px 44px -10px rgba(0,0,0,.6);
  border-block-start: 3px solid var(--red);
}
.tip[hidden] { display: none; }
.tip__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tip__code { font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: .04em; }
.tip__x { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -6px -8px -4px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.tip__x:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.tip__x svg { width: 16px; height: 16px; }
.tip__name { font: 600 15px/1.45 var(--f-display); margin-block-start: 2px; }
.tip__text { font-size: 15px; line-height: 1.65; margin-block-start: 6px; color: #2b2a27; }
.tip.is-in { animation: tipin .22s var(--ease) both; }
@keyframes tipin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- counter: real screens ---------- */
.counter { padding-block: 72px 24px; border-block-start: 1px solid var(--rule); }
.counter h2, .ledger h2, .clients h2, .faq h2, .contact h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 800; line-height: 1.2; color: #f4f3ee; }
html:lang(en) .counter h2, html:lang(en) .ledger h2, html:lang(en) .clients h2, html:lang(en) .faq h2, html:lang(en) .contact h2 { letter-spacing: -.025em; }
.pins {
  list-style: none; margin: 36px 0 0; padding: 8px var(--pad) 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(232px, 64vw, 290px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
}
@media (min-width: 1300px) { .pins { padding-inline: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))); } }
.pin { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.pin img { border-radius: 14px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.9); background: #1a1a19; }
.pin__tag { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 4px 10px; padding-inline: 2px; }
.pin__tag p { font-size: 15px; color: var(--fg); grid-column: 1 / -1; }
.chip {
  font: 600 12.5px/1 var(--f-mono); color: var(--red-hi); background: transparent;
  border: 1px solid #4a2b27; border-radius: 6px; padding: 7px 8px; cursor: pointer; direction: ltr;
  min-height: 30px;
}
.chip:hover { border-color: var(--red-hi); }
.pin__name { font-size: 14px; color: var(--fg-2); line-height: 1.5; padding-block-start: 4px; }
.desks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-block-start: 40px; }
.desk { margin: 0; }
.desk img { border-radius: 10px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.9); }
.desk figcaption { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 4px 10px; align-items: start; margin-block-start: 12px; }
.desk__cap { grid-column: 1 / -1; color: var(--fg); font-size: 15px; }

/* ---------- ledger table ---------- */
.ledger { padding-block: 88px 24px; }
.ledger__scroll { position: relative; margin-block-start: 28px; border: 1px solid var(--rule); border-radius: 12px; overflow: clip; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 14px; border-block-end: 1px solid var(--rule); text-align: start; vertical-align: top; }
.tbl thead th { position: sticky; top: 0; background: var(--counter-2); font: 600 14px/1.3 var(--f-body); color: var(--fg); padding-block: 14px; z-index: 1; }
.tbl thead th.col { text-align: center; width: 104px; }
.tbl thead th small { display: block; font: 500 12.5px/1.4 var(--f-mono); color: var(--fg-2); margin-block-start: 2px; }
.tbl .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; vertical-align: 1px; }
.tbl tbody th { font-weight: 400; }
.tbl .row-h { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.tbl .row-h .mono { font-size: 12.5px; color: var(--fg-2); line-height: 1.9; direction: ltr; text-align: start; }
.tbl .grp { display: block; font-size: 12.5px; color: var(--fg-2); }
.tbl td { text-align: center; color: #6e6d67; }
.tbl td svg { width: 17px; height: 17px; vertical-align: -3px; }
.tbl td.y { color: var(--fg); }
.tbl td.first { color: var(--red-hi); }
.tbl .sect th { background: #161615; font: 700 15px/1.3 var(--f-display); color: var(--fg); padding-block: 14px 10px; }
.tbl .sect th .mono { font: 500 12.5px var(--f-mono); color: var(--fg-2); margin-inline-start: 8px; }
.tbl .is-col { background: rgba(255, 246, 228, .045); }
.tbl thead th.is-col { background: #23221f; box-shadow: inset 0 -2px 0 var(--red-hi); }
.tbl .price th, .tbl .price td { font: 600 15px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--fg); border-block-end: 0; padding-block: 16px; }
.tbl .price th { font-family: var(--f-body); }
.tbl tbody tr:not(.sect):hover { background: rgba(255,255,255,.025); }

/* ---------- clients ---------- */
.clients { padding-block: 88px 24px; }
.cl { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.cl li { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 4px 16px; align-items: center; padding: 22px 0; padding-inline-end: 20px; }
.cl li + li { padding-inline-start: 22px; border-inline-start: 1px solid var(--rule); }
.cl img { width: 64px; height: 64px; border-radius: 15px; grid-row: span 2; }
.cl__name { font: 700 17px/1.35 var(--f-display); color: var(--fg); }
.cl__links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.cl__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); text-decoration: none; min-height: 32px; }
.cl__links a:hover { color: var(--fg); text-decoration: underline; }
.cl__links svg { width: 15px; height: 15px; }
.more { margin-block-start: 18px; }
.more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--fg); min-height: 44px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more[open] summary svg { transform: rotate(180deg); }
.more__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 24px; }
.more__list li { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.more__list img { width: 44px; height: 44px; border-radius: 11px; }
.more__all { display: inline-block; margin-block-start: 18px; color: var(--fg-2); }

/* ---------- faq ---------- */
.faq { padding-block: 88px 24px; max-width: 900px; margin-inline: auto; }
.faq h2 { margin-block-end: 22px; }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; cursor: pointer; list-style: none; font: 600 17px/1.45 var(--f-display); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--fg-2); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-block-end: 20px; color: var(--fg-2); max-width: 65ch; }

/* ---------- contact ---------- */
.contact { padding-block: 88px 64px; max-width: 900px; margin-inline: auto; }
.pick { border: 0; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { font-size: 14px; color: var(--fg-2); margin-block-end: 8px; padding: 0; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 10px; color: var(--fg-2); cursor: pointer; transition: all .2s; }
.pick input:checked + span { background: #2a1513; color: var(--fg); border-color: var(--red-hi); font-weight: 600; }
.pick input:focus-visible + span { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 22px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; font-weight: 500; font-size: 16px; }
.btn svg { width: 20px; height: 20px; }
.btn--wa { margin-block-start: 20px; background: var(--red); color: #fff; }
.btn--wa:hover { background: #bb2316; }
.contact__or { margin-block-start: 36px; color: var(--fg-2); }
.form { margin-block-start: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--fg); }
.field input, .field select {
  height: 48px; padding-inline: 14px; border-radius: 10px; border: 1px solid #3a3a37;
  background: var(--counter-2); color: var(--fg); font: inherit; caret-color: var(--red-hi);
}
.field input::placeholder { color: #8b8a83; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 1px; border-color: transparent; }
.field__err { display: none; font-size: 13.5px; color: var(--red-hi); }
.field.is-bad input { border-color: var(--red-hi); }
.field.is-bad .field__err { display: block; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.btn--submit { grid-column: 1 / -1; justify-self: start; background: transparent; color: var(--fg); border: 1px solid #55554f; }
.btn--submit:hover { border-color: var(--red-hi); }
.btn--submit:disabled { opacity: .6; cursor: progress; }
.form__status { grid-column: 1 / -1; color: var(--fg-2); min-height: 1.5em; }
.form__status a { color: var(--red-hi); font-weight: 600; margin-inline-start: 6px; }
.done { margin-block-start: 24px; padding: 22px; border: 1px solid var(--rule); border-radius: 12px; }
.done h3 { font-size: 1.3rem; }
.done p { color: var(--fg-2); margin-block-start: 6px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px 40px; border-block-start: 1px solid var(--rule); color: var(--fg-2); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- find palette ---------- */
.find {
  width: min(640px, calc(100vw - 24px)); max-height: min(560px, 80vh);
  margin: 10vh auto auto; padding: 0;
  border: 1px solid #3a3a37; border-radius: 14px;
  background: #1a1a19; color: var(--fg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.95);
  overflow: hidden;
}
.find::backdrop { background: rgba(6, 6, 6, .72); }
.find[open] { animation: tipin .2s var(--ease); }
.find__box { display: flex; flex-direction: column; max-height: inherit; }
.find__row { display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-block-end: 1px solid var(--rule); }
.find__row > svg { width: 20px; height: 20px; color: var(--fg-2); }
.find__row input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; color: var(--fg); font: 400 17px var(--f-body); caret-color: var(--red-hi); outline: none; }
.find__row input::placeholder { color: #8b8a83; }
.find__x { border: 0; background: none; cursor: pointer; padding: 6px; }
.find__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.find__opt { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 10px; border-radius: 8px; cursor: pointer; }
.find__opt[aria-selected="true"] { background: #2a2926; box-shadow: inset 0 0 0 1px #3d3c37; }
.find__opt .mono { color: var(--red-hi); font-size: 13px; direction: ltr; text-align: start; }
.find__nm { font-size: 15px; line-height: 1.45; }
.find__nm mark { background: none; color: #fff; text-decoration: underline; text-decoration-color: var(--red-hi); text-underline-offset: .2em; text-decoration-thickness: 2px; }
.find__in { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.find__in .sw { width: 10px; height: 10px; border-radius: 2px; }
.find__empty, .find__hint { padding: 12px 18px 16px; color: var(--fg-2); font-size: 14px; }
.find__empty a { color: var(--red-hi); }
.find__hint { border-block-start: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.find__hint button { font: 500 13px var(--f-body); border: 1px solid var(--rule); background: none; color: var(--fg); border-radius: 999px; padding: 5px 12px; cursor: pointer; min-height: 32px; }
.find__hint button:hover { border-color: var(--red-hi); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: 40px; }
}
@media (max-width: 860px) {
  .top__nav .find-btn span, .top__nav .find-btn kbd { display: none; }
  .top__nav .find-btn { padding: 0; width: 40px; justify-content: center; }
  .stage { display: flex; flex-direction: column; padding-block-end: 64px; }
  .stage__text { order: 1; } .ctrl { order: 2; } .stage__paper { order: 3; width: 100%; } .diff { order: 4; } .side__links { order: 5; }
  h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3rem); }
  .stage__text { padding-block-start: 8px; }
  .stage__side { position: static; margin-block-start: 26px; display: contents; }
  .ctrl {
    position: sticky; top: 0; z-index: 30;
    margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad) 12px;
    background: var(--counter); border-block-end: 1px solid var(--rule);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end;
    margin-block-start: 24px;
  }
  .find-btn--icon { display: inline-flex; }
  .sheet { padding: 12px 10px 10px; }
  .sheet__name { font-size: 16px; margin-block-start: 4px; }
  .sheet__price { font-size: 14.5px; }
  .sheet__note { display: none; }
  .sheet:has(input:checked) { transform: translateY(-2px); }
  .diff { margin-block-start: 40px; min-height: 0; }
  .ctrl { margin-block-end: 26px; }
  .side__links { margin-block: 18px 0; }
  .stage__paper { max-width: 480px; margin-inline: auto; }
  .stage__paper::before { inset: -80px -60px auto; }
  .desks { grid-template-columns: 1fr; }
  .ledger__scroll { margin-inline: calc(var(--pad) * -1); border-inline: 0; border-radius: 0; }
  .tbl { font-size: 14.5px; }
  .tbl th, .tbl td { padding: 10px 6px; }
  .tbl tbody th, .tbl thead th:first-child, .tbl .sect th, .tbl .sub td, .tbl .price th { padding-inline-start: var(--pad); }
  .tbl thead th.col { width: 50px; font-size: 12.5px; padding-inline: 2px; }
  .tbl .row-h { grid-template-columns: minmax(0,1fr) auto; gap: 0 4px; }
  .tbl .row-h .mono { grid-column: 1; grid-row: 1; line-height: 1.4; }
  .tbl .row-h > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .tbl .row-h .q { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tbl .grp { display: none; }
  .tbl .sw { display: block; margin: 0 auto 4px; }
  .cl { grid-template-columns: 1fr; border-block-end: 0; }
  .cl li { border-block-end: 1px solid var(--rule); padding-inline: 0; }
  .cl li + li { padding-inline-start: 0; border-inline-start: 0; }
  .form { grid-template-columns: 1fr; }
  .tip.is-sheet {
    position: fixed; inset: auto 0 0 0; width: auto; border-radius: 14px 14px 0 0;
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 40px rgba(0,0,0,.6);
  }
  .tip.is-sheet.is-in { animation: sheetin .26s var(--ease) both; }
  @keyframes sheetin { from { transform: translateY(100%); } to { transform: none; } }
}
@media (max-width: 420px) {
  .lang, .top__wa { padding-inline: 11px; }
  .top__wa span { display: none; }
  .top__wa { width: 40px; padding: 0; justify-content: center; }
  .sheets { gap: 7px; }
  .rc__meta div { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .sheet { -webkit-mask: none; mask: none; border: 1px solid; }
  .sheet:has(input:checked) { outline: 3px solid Highlight; }
}

/* ---------- production additions ---------- */
.rc__plain li.is-pos span { font-weight: 500; }
.rc__how { color: var(--red); font-weight: 600; white-space: nowrap; }
.rc__meta dd a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.blk__sub {
  display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px;
  font: 700 13.5px/1.4 var(--f-display); color: var(--ink);
}
.blk__sub::after { content: ""; flex: 1; border-block-end: 1px solid #cfcec7; transform: translateY(-4px); order: 1; }
.blk__sub .mono { order: 2; font: 500 12.5px var(--f-mono); color: var(--ink-2); }
.blk.is-new .blk__sub { color: var(--red); }
.blk__sum {
  display: flex; justify-content: flex-end; margin-block-start: 10px; padding-block-start: 8px;
  border-block-start: 1.5px solid var(--ink); font: 700 15px/1.4 var(--f-display);
}
.blk.is-new .blk__sum { color: var(--red); border-color: var(--red); }
.rc__count { display: flex; justify-content: space-between; gap: 12px; margin-block-start: 18px; font-size: 14px; color: var(--ink-2); }
.rc__count[hidden] { display: none; }
.rc__count .mono { color: var(--ink); font-weight: 600; font-size: 15px; }
.js .blk__sub.is-printing, .js .blk__sum.is-printing { animation: ink .42s ease-out both; animation-delay: var(--d, 0ms); }

.diff__groups { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; }
.diff__groups li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; color: var(--fg); }
.diff__groups .mono { color: var(--red-hi); font-size: 12.5px; }
.diff__peek { margin-block-start: 10px; font-size: 14px; color: var(--fg-2); max-width: 46ch; }
.tbl__host { display: block; font: 400 12px var(--f-body); color: var(--fg-2); }
.tbl .sub td { text-align: start; background: #151514; color: var(--fg-2); font: 600 13px/1.3 var(--f-display); padding-block: 10px 6px; }
.tbl .sub .mono { color: var(--red-hi); font-weight: 500; margin-inline-start: 4px; }
.tbl .sect th .mono { color: var(--red-hi); }

/* POS or standalone */
.pos { border-block-start: 1px solid var(--rule); padding-block: 80px; }
.pos__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.pos h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 800; line-height: 1.2; color: #f4f3ee; }
html:lang(en) .pos h2 { letter-spacing: -.025em; }
.seg { display: inline-flex; gap: 4px; margin-block-start: 24px; padding: 4px; border: 1px solid var(--rule); border-radius: 12px; background: var(--counter-2); flex-wrap: wrap; }
.seg__b { min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--fg-2); cursor: pointer; font-size: 15px; transition: background-color .2s, color .2s; }
.seg__b:hover { color: var(--fg); }
.seg__b[aria-pressed="true"] { background: #2a2926; color: var(--fg); border-color: #4a4944; }
.pos__explain { margin-block-start: 18px; color: var(--fg); max-width: 56ch; }
.flow { margin: 0; padding: 32px 24px 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--counter-2); }
.flow__row { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 12px; }
.node { display: grid; justify-items: center; gap: 4px; text-align: center; width: 140px; }
.node__ic { width: 80px; height: 80px; color: var(--fg); margin-block-end: 6px; }
.node__name { font: 700 16px/1.3 var(--f-display); color: var(--fg); }
.node__sub { font-size: 13px; color: var(--fg-2); }
.flow[data-mode="sync"] .only-solo, .flow[data-mode="solo"] .only-sync,
.flow[data-mode="sync"] .node__ic--dash, .flow[data-mode="solo"] .node__ic--pos { display: none; }
.wire { position: relative; height: 64px; }
.wire__line { position: absolute; inset-inline: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #4a4944 0 6px, transparent 6px 11px); }
.wire__dot { position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); inset-inline-start: 20%; animation: flow 2.4s linear infinite; }
.wire__dot:nth-of-type(2) { inset-inline-start: 50%; animation-delay: -.8s; }
.wire__dot:nth-of-type(3) { inset-inline-start: 80%; animation-delay: -1.6s; }
.flow[data-mode="solo"] .wire__dot { background: var(--fg-2); animation-duration: 3.6s; }
@keyframes flow { 0% { inset-inline-start: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { inset-inline-start: calc(100% - 8px); opacity: 0; } }
.wire__lbl { position: absolute; inset-inline: 0; top: 0; text-align: center; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.flow figcaption { margin-block-start: 22px; padding-block-start: 16px; border-block-start: 1px solid var(--rule); color: var(--fg); font-size: 15px; }
@media (max-width: 860px) {
  .pos { padding-block: 64px; }
  .pos__in { grid-template-columns: 1fr; gap: 32px; }
  .flow { padding: 24px 14px 18px; }
  .node { width: 96px; }
  .node__ic { width: 52px; height: 52px; }
  .node__name { font-size: 14.5px; }
}
