/* Naharek's shop on the Hayetek web kit (`b1df7375`, SHAPE §8). The kit's tokens, base, controls and
   shell come from `static/kit/` (a snapshot, see `static/kit/SNAPSHOT.md`); this file holds only what
   the shop adds. Every colour and size is a `--hk-*` token; logical properties only, so `dir="rtl"`
   mirrors the page (`8dec70ca`). */

/* Light only in v1 (#176): "only" keeps a browser's own dark mode out. */
html[data-theme="light"] { color-scheme: only light; }

/* Where Hayetek speaks (the header, the footer, the lock-up, the language row) the kit's tokens stay
   untouched (#101). Inside the shop, the controls take Naharek's own colour, TA1, through the tokens'
   two per-app inputs: `<main class="shop" data-theme="light">` declares the light tokens again on
   itself, so they read these. GA1 (`--hk-product-naharek-accent`) is decoration only, never text. */
.shop {
  --hk-app-primary-light: var(--hk-product-naharek-primary);
  --hk-app-on-primary-light: var(--hk-product-naharek-on-primary);
}

/* ---------- the page column ---------- */
.page { padding-block: var(--hk-space-xl) var(--hk-kit-band); }
/* No cap on each paragraph (F4 walk): 34em on a caption is a third of the column, so every hint
   broke on an invisible wall. A page that wants a reading width puts the kit's `.hk-measure` on its
   container, where the em is the body's. */

/* ---------- the design page on a wide screen (the friend's review, F1): it leaves the centred
   1200 column for the window's width, so the choices get room beside the preview and the rail stands
   at the window's edge; capped far beyond the kit's column so a very wide screen keeps its lines ---------- */
@media (min-width: 901px) {
  .stage-wide { max-inline-size: calc(2 * var(--hk-size-content-max) + 2 * var(--hk-kit-pad)); }
}

/* ---------- the paid page (Melek's walk after F4): a thank-you, what happens now in three numbered
   steps, then leave in peace; as wide as the order page's column (46rem), no narrower ---------- */
/* the pay page (2b): Stancer's frame in the kit's embed, one column like the paid page */
.pay-page { display: grid; gap: var(--hk-space-md); max-inline-size: 46rem; }
.pay-page > * { margin: 0; }
/* no box of our own: Stancer's form lies on the page's sand; pay.js sets its height from Stancer's */
.pay-page__frame { display: block; inline-size: 100%; block-size: 42rem; border: 0; background: transparent; }
.paid { display: grid; gap: var(--hk-space-lg); max-inline-size: 46rem; }
.paid > * { margin: 0; }
.paid__lead { font-size: var(--hk-font-size-title-sm); }
.paid__next { margin-block-start: var(--hk-space-md); font-size: var(--hk-font-size-title-sm); }
.paid__steps { display: grid; gap: var(--hk-space-lg); padding: 0; list-style: none; counter-reset: paid; }
.paid__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--hk-space-xxs) var(--hk-space-md);
  counter-increment: paid;
}
.paid__steps li::before {
  content: counter(paid);
  grid-row: span 2;
  display: grid;
  place-items: center;
  inline-size: var(--hk-size-touch-target);
  block-size: var(--hk-size-touch-target);
  border-radius: var(--hk-radius-full);
  background: var(--hk-color-surface-raised);
  font-weight: var(--hk-font-weight-semibold);
}
.paid__steps strong { align-self: end; }
.paid__steps span { color: var(--hk-color-text-muted); }
.paid__help { color: var(--hk-color-text-muted); }

/* ---------- the order page (I-CW15): three steps, the one reached in bold ---------- */
.my-order__steps { display: grid; gap: var(--hk-space-xs); padding-inline-start: var(--hk-space-lg); }
.my-order__steps [data-state="later"] { opacity: 0.6; }
.my-order__steps [data-state="now"] { font-weight: 700; }

/* the legal pages draw with the kit's `.hk-doc` (v1.4.0, K22); `.legal` keeps only their page band */
.legal { padding-block: var(--hk-space-xl) var(--hk-space-xxl); }
.legal__note,
.legal__version { color: var(--hk-color-text-muted); font-size: var(--hk-font-size-small); }
