/* =====================================================================
   SITE — the shared look of every INCEPTION page (the "Select" style)
   Black, silver and white; one typeface in one weight (Blauer Nue Medium): hierarchy comes from
   size, case, tracking and tone, never from bold. Squared shapes with one pair of cut corners.
   The owner's artistic edge (2026-11-27, work/store_effects.md), taken from their Skin Changer artwork: product
   names alone in a second face, Archivo Expanded Black in caps (--sx-display: the store and the cart); one accent,
   the icy blue of the black hole's rim light (--sx-accent: the keyboard's rings, a good status, the store's
   chosen row and duration); the hole's echo and a film grain in the backdrop (assets/kc-field.*).
   Everything dashed and hatched means "content the owner still has to supply" and is only ever
   shown in the owner's preview (?stdemo=1), never to a buyer.

   How a page adopts it (manual: C:\website\work\site_style.md):
     - this file is linked in the head of every page except the landing page (layouts/master.njk),
       after assets/base.css (what every page stands on: resets, the dialogs' frame)
     - put class "sx" on the page's own root element: inside it the browser's element defaults (margins
       of p/ul/h1, link colours, button looks) and base.css's focus ring are reset
     - build with the sx- components below; page-specific layout goes into its own file with its own
       prefix (the store: assets/store.css, prefixes xs- and kc-)
     - never use the names base.css or Bootstrap's dialog script give a meaning (.modal..., .fade, .show,
       .visually-hidden, .component, .container on the editor's toolbar)
   Nothing in this file styles an element that does not carry an sx- class or sit inside .sx, except
   the dialogs' section, which reaches into the markup of Bootstrap's dialogs.
   ===================================================================== */

:root {
  /* colour */
  --sx-bg: #050505;                         /* the page */
  --sx-plate: #09090b;                      /* an opaque plate in front of the scene */
  --sx-tile: #0a0a0c;                       /* a tile, a bar at the bottom of a phone */
  --sx-ink: #f5f5f6;                        /* text that is a fact */
  --sx-silver: #d4d4d8;
  --sx-dim: rgba(245, 245, 246, 0.72);      /* secondary text, inactive controls */
  --sx-faint: rgba(245, 245, 246, 0.56);    /* labels (.sx-micro) */
  --sx-ghost: rgba(245, 245, 246, 0.46);    /* the "(your text)" part of a placeholder */
  --sx-line: rgba(255, 255, 255, 0.1);      /* hairlines between rows */
  --sx-line-2: rgba(255, 255, 255, 0.16);   /* borders of controls */
  --sx-line-3: rgba(255, 255, 255, 0.34);   /* strong hairlines, dashes, ticks */
  --sx-accent: #a2b5d8;                     /* the one accent: the lit core of the hole's rim light in the owner's artwork */
  --sx-accent-rgb: 162, 181, 216;

  /* type: one weight; sizes in px */
  --sx-font: 'Blauer Nue', 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* product names only (the store, the cart), in caps, weight 900, width 125 %: Archivo Expanded Black, SIL OFL 1.1
     (assets/archivo-expanded-black-latin.woff2 + Archivo-OFL.txt; its @font-face: snippets/display-font.njk) */
  --sx-display: 'Archivo', 'Blauer Nue', 'Geist', system-ui, sans-serif;
  --sx-t-micro: 12px;     /* uppercase labels, tracked */
  --sx-t-s: 13.5px;       /* status, stock, small facts */
  --sx-t-body: 15px;      /* running text, links, controls */
  --sx-t-l: 17px;         /* a lead line */
  --sx-t-xl: 27px;        /* a name in a list */
  --sx-t-price: 42px;     /* the price */
  --sx-t-title: 76px;     /* a page or product title on a wide window */

  /* space and shape */
  --sx-bar: 72px;         /* the fixed top bar (components/navbar.njk): pages leave this much free at the top (60px on phones) */
  --sx-gut: 56px;         /* left and right margin of the page */
  --sx-cut: 10px;         /* the cut corners of buttons and rows */
  --sx-ease: cubic-bezier(0.19, 0.8, 0.22, 1);
}
@media (max-width: 1700px) { :root { --sx-gut: 40px; } }
@media (max-width: 1320px) { :root { --sx-gut: 28px; } }
@media (max-width: 760px) { :root { --sx-bar: 60px; --sx-gut: 16px; } }

/* =====================================================================
   SCOPE — the reset inside a page root with class "sx"
   :where() keeps these at the weight of one class, so every sx- component below still wins,
   while the browser's and base.css's element rules (weight of one element at most) lose.
   ===================================================================== */
.sx {
  color: var(--sx-ink);
  font-family: var(--sx-font);
  font-size: var(--sx-t-body);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
.sx :where(h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure, blockquote) {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
.sx :where(ul, ol) { list-style: none; }
/* the browser colours and underlines links: reset here, also under the pointer (where a page's own rule for its
   links weighs less than a class and a pseudo-class, its colour and underline give way to these on hover) */
.sx :where(a), .sx :where(a):hover { color: inherit; text-decoration: none; }
.sx :where(button) { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sx :where(b, strong, small, em, i) { font-size: inherit; font-weight: inherit; font-style: normal; }
.sx :where(svg) { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx :where(img, video, iframe) { display: block; max-width: 100%; border: 0; }
/* the keyboard's ring: the accent, and squared like every shape of the site (also on a control that has rounded corners of its own) */
.sx :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--sx-accent); outline-offset: 3px; border-radius: 0; }
.sx ::selection { background: var(--sx-ink); color: #0a0a0a; }

/* =====================================================================
   TYPE
   ===================================================================== */
/* the small uppercase label: the site's "micro" voice */
.sx-micro { font-size: var(--sx-t-micro); line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sx-faint); }
.sx-micro b { color: var(--sx-ink); }

/* a heading block with a label and one lead line (the reviews strip, components/feedbacks.njk; the pages behind the
   store use the Keycard head, .pg-head below) */
.sx-head { display: grid; gap: 14px; }
.sx-lead { max-width: 46em; font-size: var(--sx-t-l); line-height: 1.45; color: var(--sx-dim); }

/* =====================================================================
   BUTTONS — squared, one pair of cut corners, white primary (the landing page's shapes)
   <a class="sx-btn sx-btn--primary sx-btn--lg sx-btn--block">Buy now <svg>arrow</svg></a>
   ===================================================================== */
.sx-btn {
  --sx-edge: rgba(255, 255, 255, 0.34);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  font-size: var(--sx-t-body);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  clip-path: polygon(var(--sx-cut) 0, 100% 0, 100% calc(100% - var(--sx-cut)), calc(100% - var(--sx-cut)) 100%, 0 100%, 0 var(--sx-cut));
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.sx-btn svg { flex: none; width: 16px; height: 16px; stroke-width: 2; transition: transform 0.35s var(--sx-ease); }
.sx-btn:hover svg { transform: translateX(3px); }
.sx-btn--primary, .sx-btn--primary:hover { color: #0a0a0a; }
.sx-btn--primary { background: #f4f4f5; }
.sx-btn--primary:hover { background: #fff; }
.sx-btn--ghost, .sx-btn--ghost:hover { color: var(--sx-ink); }
.sx-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
/* the clip cuts the border away at the two corners: draw their diagonals */
.sx-btn--ghost::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 50%, var(--sx-edge) 50%, var(--sx-edge) calc(50% + 1px), transparent calc(50% + 1.6px)) top left / var(--sx-cut) var(--sx-cut) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1.6px), var(--sx-edge) calc(50% - 1px), var(--sx-edge) 50%, transparent 50%) bottom right / var(--sx-cut) var(--sx-cut) no-repeat;
}
.sx-btn--ghost:hover { --sx-edge: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1); }
.sx-btn--sm { --sx-cut: 8px; height: 40px; padding: 0 18px; font-size: 14px; }
.sx-btn--lg { --sx-cut: 12px; height: 56px; padding: 0 28px; font-size: 16px; }
.sx-btn--lg svg { width: 18px; height: 18px; }
.sx-btn--block { display: flex; width: 100%; }
.sx-btn:disabled, .sx-btn[aria-disabled='true'] { cursor: default; opacity: 0.45; }
.sx-btn:disabled svg, .sx-btn[aria-disabled='true'] svg { transform: none; }
/* keyboard focus: the clip-path would cut away the ring the scope draws outside (3px out), so a button
   gets its ring inside, 4px in from its edge and along its cut corners: the outer shape minus the inner
   one (fill rule evenodd) leaves a 2px band. Dark on the white button, white on the others.
   --sx-k is the cut at 4px in: --sx-cut - (2 - sqrt 2) x 4px */
.sx-btn:focus-visible { outline: none; }
.sx-btn:focus-visible::before {
  --sx-k: calc(var(--sx-cut) - 2.34px);
  content: '';
  position: absolute;
  inset: 4px;
  pointer-events: none;
  background: var(--sx-ring, var(--sx-accent));
  clip-path: polygon(evenodd,
    var(--sx-k) 0, 100% 0, 100% calc(100% - var(--sx-k)), calc(100% - var(--sx-k)) 100%, 0 100%, 0 var(--sx-k), var(--sx-k) 0,
    calc(var(--sx-k) + 0.83px) 2px, 2px calc(var(--sx-k) + 0.83px), 2px calc(100% - 2px), calc(100% - var(--sx-k) - 0.83px) calc(100% - 2px),
    calc(100% - 2px) calc(100% - var(--sx-k) - 0.83px), calc(100% - 2px) 2px, calc(var(--sx-k) + 0.83px) 2px);
}
.sx-btn--primary { --sx-ring: #0a0a0a; }

/* a text link with an arrow */
.sx-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sx-dim); transition: color 0.2s ease; }
.sx-go svg { flex: none; width: 14px; height: 14px; stroke-width: 2; transition: transform 0.35s var(--sx-ease); }
.sx-go:hover { color: #fff; }
.sx-go:hover svg { transform: translate(2px, -2px); }

/* a small drawn separator between two short facts */
.sx-dot { display: inline-block; flex: none; width: 3px; height: 3px; margin: 0 10px; background: currentColor; opacity: 0.7; vertical-align: middle; }

/* =====================================================================
   FACTS — status, stock, payment
   .sx-status: a dot in the owner's own colour (--sx-c, from the product's status) and the owner's
   own words, printed as they are. No status set: nothing is printed. A good status (a green the owner
   sets, sx-status--good: store-screen.njk) takes the accent; any other colour (a warning, "Down") stays
   the owner's own, as information.
   ===================================================================== */
.sx-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--sx-t-s); line-height: 1.15; color: var(--sx-dim); }
.sx-status > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sx-c, var(--sx-silver)); box-shadow: 0 0 10px var(--sx-c, transparent); }
.sx-status--good > i { background: var(--sx-accent); box-shadow: 0 0 9px rgba(var(--sx-accent-rgb), 0.55); }
.sx-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-stock { display: inline-flex; align-items: center; gap: 7px; font-size: var(--sx-t-s); line-height: 1; color: var(--sx-ink); white-space: nowrap; }
.sx-stock svg { width: 15px; height: 15px; stroke-width: 1.6; opacity: 0.8; }
.sx-stock--out { color: var(--sx-dim); }
/* the payment note beside a price: where the two do not fit one line (a narrow panel), it takes two lines */
.sx-pay { font-size: 14px; line-height: 1.2; color: var(--sx-ink); text-align: right; }
/* several short facts in one row, a hairline between them */
.sx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.sx-meta > * + *::before { content: ''; display: inline-block; flex: none; width: 1px; height: 12px; margin: 0 16px; background: var(--sx-line-3); }
/* an empty placeholder slot (<template>, shown only in the owner's preview) at the start adds no hairline */
.sx-meta > template:first-child + *::before { display: none; }

/* =====================================================================
   LISTS
   ===================================================================== */
/* a short list without numbers (features): a hairline dash in front, a hairline between rows */
.sx-dash li { position: relative; padding-left: 26px; }
.sx-dash li::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--sx-line-3); }
/* numbered lines ("How it works"): the browser counts the lines that are there, so a line left
   empty in the settings leaves no gap in the numbers */
.sx-steps { display: grid; gap: 10px; counter-reset: sx-step; }
.sx-steps li { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; font-size: 14px; line-height: 1.35; color: var(--sx-ink); counter-increment: sx-step; }
.sx-steps li::before { content: counter(sx-step, decimal-leading-zero); font-size: 11px; letter-spacing: 0.12em; color: var(--sx-ghost); }
.sx-steps li > * { justify-self: start; }

/* =====================================================================
   TABS — one control that switches views; the chosen one is lit and underlined
   <div class="sx-tabs" role="tablist"><button role="tab" aria-selected="true" class="is-on">...</button>...</div>
   ===================================================================== */
.sx-tabs { display: flex; height: 46px; border: 1px solid var(--sx-line-2); background: rgba(6, 6, 8, 0.72); }
.sx-tabs > button { position: relative; min-width: 112px; height: 100%; padding: 0 18px; font-size: var(--sx-t-body); letter-spacing: 0.01em; color: var(--sx-dim); transition: color 0.2s ease, background-color 0.2s ease; }
/* of-type: an empty placeholder slot (<template>) between two buttons does not count */
.sx-tabs > button:not(:first-of-type) { border-left: 1px solid var(--sx-line); }
.sx-tabs > button:hover { color: #fff; }
.sx-tabs > button.is-on { color: #fff; background: rgba(255, 255, 255, 0.1); }
.sx-tabs > button.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff; }
/* keyboard focus inside the button: outside, the bar's border and the next button would cover it */
.sx-tabs > button:focus-visible { outline-offset: -3px; }

/* =====================================================================
   PLATES — an opaque surface in front of the scene, with four white corner marks
   <div class="sx-plate"> ... <span class="sx-corners" aria-hidden="true"><i></i><i></i><i></i><i></i></span></div>
   ===================================================================== */
.sx-plate { position: relative; border: 1px solid rgba(255, 255, 255, 0.3); background: var(--sx-plate); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.sx-corners { position: absolute; inset: -1px; pointer-events: none; }
.sx-corners i { position: absolute; width: 14px; height: 14px; border: 0 solid #fff; }
.sx-corners i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.sx-corners i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.sx-corners i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.sx-corners i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }

/* =====================================================================
   CONTROLS
   ===================================================================== */
/* a number stepper (quantity): − [n] + */
.sx-step { display: inline-grid; grid-template-columns: 40px 56px 40px; height: 40px; border: 1px solid var(--sx-line-2); background: rgba(5, 5, 6, 0.5); }
.sx-step > button { display: flex; align-items: center; justify-content: center; color: var(--sx-dim); }
.sx-step > button:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sx-step > button:disabled { opacity: 0.35; cursor: default; }
.sx-step > button svg { width: 14px; height: 14px; stroke-width: 2; }
.sx-step > input {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--sx-line);
  border-right: 1px solid var(--sx-line);
  border-radius: 0;
  background: transparent;
  color: var(--sx-ink);
  font: inherit;
  font-size: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.sx-step > input::-webkit-outer-spin-button, .sx-step > input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.sx-step > input:focus { outline: none; background: rgba(255, 255, 255, 0.06); }
/* keyboard focus inside the stepper's cells, where its border cannot hide it */
.sx-step > button:focus-visible, .sx-step > input:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: -3px; }

/* a row of choices (variants): squared, the chosen one lit */
.sx-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-choice > button { display: grid; gap: 4px; min-width: 0; padding: 10px 14px; border: 1px solid var(--sx-line-2); background: rgba(255, 255, 255, 0.03); color: var(--sx-dim); text-align: left; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.sx-choice > button:hover:not(:disabled) { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.sx-choice > button.is-on { color: #fff; border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1); }
.sx-choice > button:disabled { opacity: 0.4; cursor: default; }
.sx-choice > button:focus-visible { outline-offset: -4px; }
.sx-choice small { font-size: 12.5px; color: var(--sx-faint); }

/* =====================================================================
   PLACEHOLDERS — only in the owner's preview (?stdemo=1). Dashed + hatched = "this comes from you".
   .sx-ph  a framed area (video, screenshot, review)      .sx-pht  a line of text
   ===================================================================== */
.sx-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.46);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.085) 0 1px, transparent 1px 10px), #08080a;
  color: var(--sx-dim);
  text-align: center;
}
.sx-ph svg { width: 30px; height: 30px; stroke-width: 1.3; opacity: 0.8; }
.sx-ph b { font-size: var(--sx-t-body); line-height: 1.2; letter-spacing: 0.02em; color: var(--sx-ink); }
.sx-ph small { padding: 5px 9px 4px; border: 1px dashed rgba(255, 255, 255, 0.4); background: #08080a; font-size: 11px; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 245, 246, 0.82); }
.sx-ph--s { gap: 7px; }
.sx-ph--s svg { width: 20px; height: 20px; }
.sx-ph--s b { font-size: 12.5px; }
.sx-ph--s small { padding: 4px 7px 3px; font-size: 9.5px; letter-spacing: 0.14em; }
.sx-pht { display: inline; padding-bottom: 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.42); color: var(--sx-dim); }
.sx-pht i { color: var(--sx-ghost); }
/* a status that is not set yet: a dashed ring instead of the dot */
.sx-status--ph > i { background: none; box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.7); }
.sx-status--ph > span { padding-bottom: 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.42); }
.sx-status--ph em { color: var(--sx-ghost); }
/* the theme's preview only (isBuilder: placeholders by default, ?stdemo=0 the real state; store.js and
   pages-shop.js add it): a small label says which of the two is shown and switches to the other. Wide
   windows: fixed in the bottom-left corner, in the page's bottom margin; phones and tablets: a line at the
   top of the page, in the flow, so it never lies over the buy panel or the buy bar (store.css, pages-shop.css):
   the state on the left, the link on the right (below it when the line is too short)
   <p class="sx-demo-tag"><span>Preview <i class="sx-dot"></i> Placeholders <i class="sx-dot"></i></span> <a>Show real state</a></p> */
.sx-demo-tag { position: fixed; z-index: 85; left: var(--sx-gut); bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 0; max-width: calc(100vw - 2 * var(--sx-gut)); padding: 7px 10px 6px; border: 1px dashed rgba(255, 255, 255, 0.3); background: rgba(5, 5, 6, 0.9); font-size: 10.5px; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sx-faint); }
.sx-demo-tag > span { display: inline-flex; align-items: center; }
.sx-demo-tag .sx-dot { margin: 0 9px; }
.sx-demo-tag a { border-bottom: 1px solid rgba(255, 255, 255, 0.38); color: var(--sx-ink); transition: border-color 0.2s ease; }
.sx-demo-tag a:hover { border-bottom-color: #fff; color: #fff; }
@media (max-width: 1099px) {
  .sx-demo-tag { position: relative; z-index: 3; left: auto; bottom: auto; max-width: none; gap: 4px 16px; font-size: 10px; letter-spacing: 0.1em; }
  .sx-demo-tag > span > .sx-dot:last-child { display: none; }
}

/* =====================================================================
   FOOTER — on every page except the landing page (components/footer.njk): the name, then four
   columns (Store, Help, Account, Legal)
   ===================================================================== */
.sx-foot { position: relative; z-index: 3; border-top: 1px solid var(--sx-line-2); background: #040405; }
html.sx-tab .sx-foot > .builder-toolbar { display: none !important; }
.sx-foot-in { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 200px); gap: 0 24px; align-items: start; padding: 52px var(--sx-gut) 44px; }
.sx-foot-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
/* the mark (logo.svg, the bar's) has a little empty space on its left (a 25th of its width): pulled out by that
   much, it starts on the line where the text below starts */
.sx-foot-brand img { width: 36px; height: 36px; margin-left: -1px; object-fit: contain; filter: brightness(1.6); }
/* the name is one word in the markup (read as a word); the spacing that used to come from spaces between
   the letters is tracking now, the same width as before. The last letter's tracking is taken back */
.sx-foot-brand span { font-size: 15px; line-height: 1; letter-spacing: 0.556em; margin-right: -0.556em; white-space: nowrap; color: #fff; }
.sx-foot-col h2 { margin-bottom: 18px; }
.sx-foot-col a, .sx-foot-col button { display: flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 0; font-size: var(--sx-t-body); line-height: 1.3; color: var(--sx-dim); text-align: left; transition: color 0.2s ease; }
.sx-foot-col a:hover, .sx-foot-col button:hover { color: #fff; }
.sx-foot-col svg { width: 12px; height: 12px; stroke-width: 2; opacity: 0.6; }
.sx-foot-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0 var(--sx-gut); padding: 18px 0 22px; border-top: 1px solid var(--sx-line); font-size: 13px; line-height: 1.3; color: var(--sx-faint); }
.sx-foot-copy { margin-left: auto; padding-left: 24px; }
@media (max-width: 1320px) {
  .sx-foot-in { grid-template-columns: minmax(0, 1fr) repeat(4, 170px); }
}
@media (max-width: 1099px) {
  .sx-foot-in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; padding: 40px var(--sx-gut) 34px; }
  .sx-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sx-foot-in { grid-template-columns: 1fr 1fr; padding: 34px var(--sx-gut) 30px; }
  .sx-foot-brand img { width: 30px; height: 30px; margin-left: -1px; }
  .sx-foot-col h2 { margin-bottom: 12px; }
  .sx-foot-meta { padding-bottom: 26px; }
  .sx-foot-copy { flex-basis: 100%; margin: 8px 0 0; padding-left: 0; }
}

/* =====================================================================
   DIALOGS — on every page behind the gate (the landing page has none). Their frame is Bootstrap's
   (.modal, .modal-dialog: assets/base.css); its script opens and closes them.
   ===================================================================== */
/* Every dialog lives inside #app (its own stacking context, base.css) while Bootstrap's script adds its dark
   layer to <body>: that layer would lie on top of the dialog and swallow every click. So the layer stays
   hidden, and the dialog's own full-screen box dims the page instead. */
html .modal-backdrop { display: none; }
html .modal { background: rgba(2, 2, 3, 0.82); }

/* a DIALOG in the site's look (the shop's login, components/navbar.njk "Dashboard"; the customer area has
   the same in assets/account.css as .ac-dialog). Root: <div class="modal fade sx sx-modal">, Bootstrap's
   .modal-dialog inside it, then the plate:
   <div class="sx-dialog"><header class="sx-dialog-head"><h2 class="sx-dialog-title"/><button class="sx-x"/></header>
   <div class="sx-dialog-body"> ... </div></div> */
.sx-modal .modal-dialog { max-width: 460px; }
.sx-dialog { position: relative; width: 100%; pointer-events: auto; border: 1px solid rgba(255, 255, 255, 0.3); background: var(--sx-plate); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.sx-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 18px 28px; border-bottom: 1px solid var(--sx-line); }
.sx-dialog-title { font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; color: #fff; }
.sx-x { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--sx-line-2); color: var(--sx-dim); transition: color 0.2s ease, border-color 0.2s ease; }
.sx-x:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.sx-x svg { width: 16px; height: 16px; stroke-width: 2; }
.sx-dialog-body { padding: 24px 28px 28px; }
@media (max-width: 760px) {
  .sx-dialog-head { padding: 16px 14px 14px 18px; }
  .sx-dialog-title { font-size: 21px; }
  .sx-dialog-body { padding: 20px 18px 22px; }
}

/* a FORM in a dialog: a label over each field, a hint under the label, squared fields */
.sx-form { display: grid; gap: 18px; }
.sx-field { display: grid; gap: 10px; margin: 0; }
.sx-hint { font-size: 13.5px; line-height: 1.45; color: var(--sx-dim); }
.sx-input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--sx-line-2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sx-ink);
  font: inherit;
  font-size: 16px;   /* 16px: phones do not zoom into the field */
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.sx-input::placeholder { color: var(--sx-ghost); opacity: 1; }
.sx .sx-input:focus, .sx .sx-input:focus-visible { outline: none; border-color: rgba(255, 255, 255, 0.62); background: rgba(255, 255, 255, 0.05); }
/* a one-time code, one box per digit */
.sx-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sx-otp .sx-input { padding: 0; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.sx-err { margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 160, 150, 0.42); background: #140b0a; color: #ffdcd7; font-size: 13.5px; line-height: 1.4; }
/* the other way to sign in: a quiet underlined line under the main button */
.sx-textbtn { justify-self: center; padding: 4px 2px; font-size: 14px; color: var(--sx-dim); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.sx-textbtn:hover { color: #fff; }
/* the busy sign in a button while the shop answers */
.sx-spin { animation: sx-spin 0.9s linear infinite; }
@keyframes sx-spin { to { transform: rotate(360deg); } }

/* =====================================================================
   TOP BAR — on every page behind the gate (components/navbar.njk): the approved Keycard prototype's bar
   (mock/store2/shared/base.css .sb), verbatim, with the decided content: logo and name; Contact us, the cart,
   Dashboard. Its root also carries "sx" (the reset above)
   ===================================================================== */
.sb {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  top: 0;
  height: var(--sx-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sx-gut);
  border-bottom: 1px solid var(--sx-line);
  background: rgba(5, 5, 6, 0.94);
}
.sb-logo { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; height: 40px; }
.sb-logo img { width: 40px; height: 40px; object-fit: contain; filter: brightness(1.6); }
.sb-logo span { position: relative; padding-left: 13px; font-size: 14px; line-height: 1; letter-spacing: 0.0925em; margin-right: -0.0925em; font-kerning: none; white-space: nowrap; color: #fff; }
/* (2026-12-03, the owner's pick for the corner, "Instrument": a hairline between the mark and the name, the name in measured
   capitals. The landing page's corner is the same picture (assets/deck.css, CORNER C): 0.5 em from letter to letter, here the
   font's space (0.315 em) and twice 0.0925 em of tracking, the last letter's taken back, so the name the passage carries into the
   store does not change at the cut) */
.sb-logo span::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; margin-top: -11px; background: rgba(255, 255, 255, 0.4); transition: background-color 0.25s ease; }
.sb-logo:hover span::before { background: rgba(255, 255, 255, 0.85); }
.sb-links { position: absolute; left: 50%; top: 0; display: flex; height: 100%; transform: translateX(-50%); }
.sb-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--sx-dim);
  transition: color 0.2s ease;
}
.sb-links a:hover, .sb-links a.is-on { color: #fff; }
.sb-links svg { width: 12px; height: 12px; opacity: 0.6; }
.sb-act { display: flex; align-items: center; gap: 8px; }
.sb-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease;
}
.sb-ico:hover { background: rgba(255, 255, 255, 0.14); }
.sb-ico svg { width: 18px; height: 18px; }
.sb-ico .sb-n { position: absolute; right: -4px; top: -4px; min-width: 17px; height: 17px; padding: 0 4px; background: #f4f4f5; color: #0a0a0a; font-size: 10.5px; line-height: 17px; text-align: center; }
.sb-dash {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-left: 8px;
  padding: 0 20px;
  border: 1px solid var(--sx-line-2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  white-space: nowrap;
}
.sb-menu { display: none; }
/* a tap flashes as on the prototype's page (the browser's own tap colour; base.css turns it off for the page) */
.sb, .sb-sheet { -webkit-tap-highlight-color: initial; }
/* (decided content) "Contact us" stands on the right, before the cart, in the look of the prototype's links */
.sb-act > .sb-links { position: relative; left: auto; top: auto; height: 40px; transform: none; }
/* keyboard focus inside the bar's own boxes */
.sb-ico:focus-visible, .sb-dash:focus-visible { outline-offset: -3px; }
/* the menu button: its lines, or its cross while the menu is open */
.sb-menu .sb-i-x, html.sb-lock .sb-menu .sb-i-menu { display: none; }
html.sb-lock .sb-menu .sb-i-x { display: block; }

@media (max-width: 760px) {
  .sb { padding: 0 12px 0 14px; }
  .sb-logo { gap: 10px; }
  .sb-logo img { width: 32px; height: 32px; }
  .sb-logo span { padding-left: 11px; font-size: 12.5px; }
  .sb-logo span::before { height: 18px; margin-top: -9px; }
  .sb-links, .sb-dash { display: none; }
  .sb-act { gap: 6px; }
  .sb-menu { display: inline-flex; }
  /* opaque on phones: the page scrolls under it */
  .sb { background: #050506; }
}

/* the PHONE MENU (components/navbar.njk): under the bar, in its look: Contact us as a row, Dashboard as the bar's
   outlined button, then FAQ and the legal pages small and muted, two by two. It scrolls when it is higher than a
   small phone's screen */
.sb-sheet { position: fixed; z-index: 99; left: 0; right: 0; top: var(--sx-bar); bottom: 0; display: none; overflow-y: auto; overscroll-behavior: contain; background: #050506; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.sb-sheet.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sb-sheet-in { display: flex; flex-direction: column; padding: 16px var(--sx-gut) calc(28px + env(safe-area-inset-bottom, 0px)); }
.sb-row { display: grid; grid-template-columns: 1fr 16px; align-items: center; height: 56px; border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); font-size: 16px; color: var(--sx-ink); }
.sb-row svg { width: 15px; height: 15px; stroke-width: 2; color: var(--sx-dim); }
.sb-row:focus-visible { outline-offset: -3px; }
.sb-sheet .sb-dash--block { display: flex; justify-content: center; width: 100%; height: 48px; margin: 20px 0 0; font-size: 15px; }
html.sb-lock, html.sb-lock body { overflow: hidden; }
@media (max-width: 760px) { .sb-sheet { display: block; } }
html .sx-menu-legal { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; margin-top: 18px; }
html .sx-menu-legal a { font-size: 13px; line-height: 44px; white-space: nowrap; text-decoration: none; color: rgba(245, 245, 246, 0.6); transition: color 0.2s ease; }
html .sx-menu-legal a:hover { color: #fff; }

/* =====================================================================
   ROLL — a price that rolls its digits when it changes (assets/roll.js; the store's prices, the cart's total). While it
   rolls, each digit stands in a cell (its width and its window, clip-path, set by roll.js), the cell's own digit
   hidden and its ::before the strip of digits it passes, sliding up (the price rises) or down (it falls); then the
   price is its plain text again
   ===================================================================== */
.sx-tab { position: relative; display: inline-block; text-align: center; }
.sx-tab.is-rolling { color: transparent; }
.sx-tab.is-rolling::before { content: attr(data-strip); position: absolute; left: -1em; right: -1em; top: 0; white-space: pre; text-align: center; color: var(--sx-roll-c, #fff); will-change: transform; }

/* =====================================================================
   KEYCARD PAGES — every page behind the store (the cart, the legal pages, the FAQ, the notes /feedback and
   /status, custom pages, maintenance, the customer area) in the approved Keycard prototype's page frame:
   mock/store2/keycard/cart.html, legal.html, status.html (mock/store2/shared/pages.css and keycard/pages.css,
   their values verbatim; manual: work/site_style.md section 10).
   A page's root carries "sx kc-pg" (the prototype's body) and data-kc-field="<the element the lines lie
   around>"; inside it the backdrop comes first:
     <div class="kc-back" aria-hidden="true"><i class="kc-glow" style="left: 36%; top: 52%;"></i><canvas class="kc-field"></canvas><i class="kc-side"></i></div>
   (its look: assets/kc-field.css; the calm line field: assets/kc-field.js, loaded in place at the end of the
   page's markup), then <main class="pg pg-xxx">: the store's three columns (list · middle · panel, the store's
   widths), the head (a small kicker over the big title) and the page's own parts. Phones and tablets: the
   prototype's pages have no layout for them (they run off the screen), so they take one column with the
   store's phone values. Nothing here reaches the store: its root has no kc-pg, and the pg- names are the pages'.
   ===================================================================== */
.kc-pg {
  /* the prototype's tokens (shared/base.css), as the store maps them (store.css .kc) */
  --bar: var(--sx-bar);
  --gut: var(--sx-gut);
  --ink: #f5f5f6;
  --dim: rgba(245, 245, 246, 0.72);
  --faint: rgba(245, 245, 246, 0.56);
  --ghost: rgba(245, 245, 246, 0.46);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.34);
  --ease: cubic-bezier(0.19, 0.8, 0.22, 1);
  --col-l: 344px;
  --col-r: 400px;
  --gap: 56px;
  --screen-h: max(calc(100vh - var(--bar)), 600px);
  position: relative;
  /* the frame's top margin (the bar's height) stays inside the root, so the backdrop's top is the bar's foot */
  display: flow-root;
  background: #050505;
  /* a tap flashes as on the prototype's pages (base.css turns the browser's tap colour off for the page) */
  -webkit-tap-highlight-color: initial;
}
@media (max-width: 1700px) { .kc-pg { --col-l: 300px; --col-r: 352px; --gap: 40px; } }
@media (max-width: 1320px) { .kc-pg { --col-l: 260px; --col-r: 320px; --gap: 28px; } }
/* the visual editor's toolbar of such a page: below the bar inside the editor, not at all in a real tab */
.kc-pg > .builder-toolbar { top: calc(var(--sx-bar) + 16px); z-index: 95; }
html.sx-tab .kc-pg > .builder-toolbar { display: none !important; }
.kc-pg .num { font-variant-numeric: tabular-nums; }
/* the prototype's base pieces are the site's sx- components; where one differs by a value, the prototype's value
   (as the store sets them, store.css): the ghost button's fill, the "Get in touch" link, the placeholder's dash */
.kc-pg .sx-btn--ghost { background: rgba(255, 255, 255, 0.04); }
.kc-pg .sx-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.kc-pg .sx-go { gap: 8px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.kc-pg .sx-go svg { width: 13px; height: 13px; stroke-width: 2; opacity: 0.8; }
.kc-pg .sx-go:hover { color: var(--ink); }
.kc-pg .sx-go:hover svg { transform: none; }
.kc-pg .sx-pht { border-bottom-color: rgba(255, 255, 255, 0.4); }

/* the frame (shared/pages.css) */
.pg {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--col-l) minmax(0, 1fr) var(--col-r);
  gap: 0 var(--gap);
  grid-template-rows: auto 1fr;
  min-height: var(--screen-h);
  margin-top: var(--bar);
  padding: 40px var(--gut) 36px;
}
.pg-head { grid-column: 1 / 3; align-self: start; min-width: 0; }
.pg-kick { display: flex; gap: 18px; margin-bottom: 18px; }
.pg-kick b { color: var(--ink); }
.pg-title { font-size: 72px; line-height: 0.98; letter-spacing: -0.02em; overflow-wrap: break-word; }
.pg-lead { margin-top: 16px; font-size: 16.5px; color: var(--dim); }
@media (max-width: 1700px) { .pg-title { font-size: 60px; } }
@media (max-height: 860px) { .pg-title { font-size: 52px; } }

/* a NOTE: a page that only says one thing and shows the way on (/status without script, /feedback): the frame's
   head alone, at the place of the prototype's status page head, its line and link under the title */
.pg-note .pg-lead { max-width: 36em; }
.pg-note .sx-go { margin-top: 22px; }
.pg-note .sx-btn { margin-top: 28px; }   /* /feedback: "Vouches ↗" (the maintenance screen's distance) */

/* the SHEET: the opened card's material (store.css .kc-edge under .kc-body, as an opened card has them): cut
   corners (--c), a near-black body with a faint light at its top left, and its edge, a lit hairline that is
   brighter at the top left, drawn as a 1px band along the cut corners. A panel or a dialog of these pages:
   <section class="pg-sheet"> ... </section>; its content keeps clear of the corners (padding) */
.pg-sheet {
  --c: 16px;
  position: relative;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  background: radial-gradient(60% 80% at 10% 0%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #0f0f11, #0a0a0c);
}
/* the band: the outer shape minus the shape 1px in (its cut 0.59px shorter), filled with the edge's light */
.pg-sheet::after {
  --k: calc(var(--c) - 0.59px);
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16) 38%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0.3));
  clip-path: polygon(evenodd,
    var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c), var(--c) 0,
    calc(var(--k) + 1px) 1px, 1px calc(var(--k) + 1px), 1px calc(100% - 1px), calc(100% - var(--k) - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - var(--k) - 1px), calc(100% - 1px) 1px, calc(var(--k) + 1px) 1px);
}

/* a DIALOG in the sheet material (the shop's login dialog, the owner's maintenance login; the customer area's
   dialogs, account.css): <div class="sx-dialog pg-sheet">. The sheet's edge takes the place of the dialog's
   border; its cut corners would clip a shadow, so there is none (the dialog's own box dims the page) */
.sx-dialog.pg-sheet { border: 0; box-shadow: none; }

/* phones and tablets: one column; the store's phone values below 761 px */
@media (max-width: 1099px) {
  .pg { display: flex; flex-direction: column; min-height: 0; padding: 32px var(--gut) 56px; }
}
@media (max-width: 760px) {
  .pg { padding: 24px var(--gut) 44px; }
  .pg-kick { margin-bottom: 14px; }
  .pg-title { font-size: 44px; }
  .pg-lead { font-size: 15.5px; }
}
@media (max-width: 374px) {
  .pg-title { font-size: 40px; }
}