/* ALOKE — START. The merchant's registration journey.
   Spends the console theme's tokens (console-theme.css) and adds only the
   layout of a stepper: mobile-first, one column, a sticky action bar. */

.st-body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Readex Pro", "Inter", system-ui, sans-serif;
  font-size: var(--t-md); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
.st-app { min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ── top ── */
.st-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.st-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-lg); }
.st-brand img { border-radius: 9px; }
.st-top-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.st-ghost { background: none; border: 1px solid transparent; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-btn);
  font: inherit; font-size: var(--t-sm); cursor: pointer; position: relative; min-height: 40px; }
.st-ghost:hover { background: var(--accent-weak); color: var(--accent); }
.st-ghost:focus-visible, .st-btn:focus-visible, .st-input:focus-visible, .st-card:focus-visible { outline: none; box-shadow: var(--ring); }
.st-dot { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

.st-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 16px 120px; box-sizing: border-box; }
.st-foot { display: flex; gap: 16px; justify-content: center; padding: 18px 16px 28px; font-size: var(--t-xs); }
.st-foot a { color: var(--muted); text-decoration: none; }

/* ── the stepper ── */
.st-steps { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.st-steps::-webkit-scrollbar { display: none; }
.st-step { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--t-xs);
  color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit; padding: 4px 2px; }
.st-step .bar { width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.st-step.done .bar { background: var(--accent); }
.st-step.now { color: var(--accent); font-weight: 600; }
.st-step.now .bar { background: linear-gradient(90deg, var(--accent), var(--accent-hover)); }
.st-step[disabled] { cursor: default; }
.st-progress-label { font-size: var(--t-sm); color: var(--muted); margin: 0 0 6px; }

/* ── headings and cards ── */
.st-h1 { font-size: var(--t-2xl); line-height: var(--lh-tight); margin: 6px 0 4px; font-weight: 600; text-wrap: balance; }
.st-lead { color: var(--ink-2); margin: 0 0 18px; }
.st-h2 { font-size: var(--t-xl); margin: 22px 0 10px; font-weight: 600; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--e-rest);
  padding: 16px; margin: 0 0 12px; }
.st-card.soft { background: var(--surface-2); box-shadow: none; }
.st-card.accent { border-color: var(--accent-weak-2); background: var(--accent-weak); }
.st-card.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-weak); }
.st-card.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-weak); }
.st-card.danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-weak); }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-muted { color: var(--muted); font-size: var(--t-sm); }
.st-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .st-grid.two { grid-template-columns: 1fr 1fr; } }

/* ── fields ── */
.st-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.st-label { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }
.st-label .req { color: var(--danger); margin-inline-start: 3px; }
.st-help { font-size: var(--t-xs); color: var(--muted); }
/* The Pre-Order fee sentence on the system card — its own line, the icon on the baseline. */
.st-fees { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; line-height: 1.5; }
.st-fees svg { flex: 0 0 auto; margin-top: 2px; }
.st-input, .st-select, .st-textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-btn); padding: 11px 12px; min-height: 46px; box-sizing: border-box; width: 100%; }
.st-textarea { min-height: 90px; resize: vertical; }
.st-input[dir="ltr"] { text-align: start; }
.st-input.bad { border-color: var(--danger); }
.st-err { color: var(--danger); font-size: var(--t-sm); }
.st-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.st-choice label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; background: var(--surface); min-height: 42px; box-sizing: border-box; }
.st-choice input { accent-color: var(--accent); }
.st-choice label.on { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
.st-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.st-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }

/* ── buttons ── */
.st-btn { font: inherit; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: var(--r-btn); padding: 11px 18px; min-height: 46px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  justify-content: center; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.st-btn:hover { border-color: var(--accent); color: var(--accent); }
.st-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.st-btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.st-btn.small { min-height: 36px; padding: 6px 12px; font-size: var(--t-sm); font-weight: 500; }
.st-btn[disabled] { opacity: .55; cursor: not-allowed; }
.st-actions { position: fixed; inset-inline: 0; bottom: 0; z-index: 15; display: flex; gap: 10px; justify-content: space-between;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)); background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31, 24, 48, .05); }
.st-actions .grow { flex: 1; }
@media (min-width: 760px) { .st-actions { position: static; background: none; border: 0; box-shadow: none; padding: 18px 0 0; } }

/* ── products ── */
.st-product { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; position: relative; }
.st-product input { position: absolute; opacity: 0; pointer-events: none; }
.st-product .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; margin-top: 2px; }
.st-product.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.st-product.on .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-product .name { font-size: var(--t-lg); font-weight: 600; }
.st-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.st-feats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-feats li { font-size: var(--t-xs); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 3px 8px; }
.st-included { display: flex; align-items: center; gap: 10px; }
.st-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-weak); color: var(--accent); white-space: nowrap; }
.st-badge.ok { background: var(--ok-weak); color: var(--ok); }
.st-badge.warn { background: var(--warn-weak); color: var(--warn); }
.st-badge.danger { background: var(--danger-weak); color: var(--danger); }
.st-badge.muted { background: var(--surface-2); color: var(--muted); }

/* ── branches, documents ── */
.st-branch { display: flex; gap: 12px; align-items: flex-start; }
.st-branch .pin { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; }
.st-coords { font-family: "Inter", monospace; font-size: var(--t-xs); color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.st-doc { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.st-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); padding: 14px; text-align: center; cursor: pointer; background: var(--surface-2); }
.st-drop:hover { border-color: var(--accent); }
.st-progressbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.st-progressbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--dur-move) var(--ease); }

/* ── money ── */
.st-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.st-lines td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-lines td:last-child { text-align: end; white-space: nowrap; }
.st-lines tr.total td { font-weight: 700; font-size: var(--t-lg); border-bottom: 0; padding-top: 12px; }
.st-lines tr.discount td { color: var(--ok); }
.st-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.st-kv dt { color: var(--muted); font-size: var(--t-sm); }
.st-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.st-iban { font-family: "Inter", monospace; direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }

/* ── timeline ── */
.st-timeline { list-style: none; margin: 0; padding: 0; }
.st-timeline li { position: relative; padding: 0 22px 16px 0; }
[dir="ltr"] .st-timeline li { padding: 0 0 16px 22px; }
.st-timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.st-timeline li::after { content: ""; position: absolute; inset-inline-start: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.st-timeline li:last-child::after { display: none; }
.st-timeline .when { font-size: var(--t-xs); color: var(--muted); }

.st-status-hero { text-align: center; padding: 26px 16px; }
.st-status-hero .ic-big { width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--accent-weak); color: var(--accent); margin-bottom: 10px; }
.st-status-hero .ic-big .ic { width: 28px; height: 28px; }

/* ── toast and notices ── */
.st-toast { position: fixed; top: 72px; inset-inline: 16px; margin: 0 auto; max-width: 560px; z-index: 40; padding: 12px 14px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--surface); box-shadow: var(--e-float); font-size: var(--t-sm); }
.st-toast.bad { background: var(--danger); color: #fff; }
.st-notices { position: fixed; top: 62px; inset-inline-end: 12px; z-index: 30; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--e-float); padding: 8px; }
.st-notice { padding: 10px; border-radius: var(--r-btn); }
.st-notice.unread { background: var(--accent-weak); }
.st-notice h4 { margin: 0 0 2px; font-size: var(--t-sm); }
.st-notice p { margin: 0; font-size: var(--t-xs); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── the systems as cards (2026-09-18) ──
   One card per system from the catalogue; the paid ones tick, the free one
   (the menu) shows what it brings and cannot be the only choice. Layout
   only — which is which comes from `sellable` / `includes` / `requires_any`. */
.st-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 12px; }
@media (min-width: 640px) { .st-cards { grid-template-columns: 1fr 1fr; } }
.st-cards .st-product { margin: 0; align-items: stretch; min-height: 100%; box-sizing: border-box; }
.st-product .pic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; }
.st-product .pic .ic { width: 22px; height: 22px; }
.st-product .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-product .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-product .desc { font-size: var(--t-sm); }
.st-product .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.st-product.free { cursor: default; border-style: dashed; }
.st-product.free.on { border-style: solid; border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.st-product.free .pic { background: var(--ok-weak); color: var(--ok); }
.st-product:focus-visible { outline: none; box-shadow: var(--ring); }
.st-dep { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* ── requirements, grouped by system ── */
.st-h3 { font-size: var(--t-md); font-weight: 600; margin: 0 0 10px; }
.st-reqgroup + .st-reqgroup { margin-top: 6px; }
.st-when-false { display: block; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-btn); background: var(--accent-weak); color: var(--ink-2); }
.st-payout .st-iban { font-family: "Inter", monospace; letter-spacing: .06em; }
.st-input.st-iban { direction: ltr; text-align: left; }

/* ── the review: a sticky summary on a desk, a card on top on a phone ── */
.st-main.wide { max-width: 1080px; }
.st-review { display: grid; gap: 12px; grid-template-columns: 1fr; }
.st-review-main { min-width: 0; }
.st-summary { min-width: 0; }
.st-summary-cta { display: none; width: 100%; margin-top: 12px; }
.st-syslist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.st-syslist li { display: flex; align-items: center; gap: 6px; }
.st-syslist li .ic { color: var(--ok); }
.st-syslist li.free { color: var(--ink-2); }
.st-due { font-size: var(--t-lg); }
.st-coupon { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.st-coupon summary { cursor: pointer; font-weight: 500; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 6px; }
.st-coupon summary::-webkit-details-marker { display: none; }
.st-refund-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-refund-line a { color: var(--accent); }
@media (min-width: 900px) {
  .st-review { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .st-summary { order: 2; position: sticky; top: 72px; }
  .st-review-main { order: 1; }
  .st-summary-cta { display: inline-flex; }
}

/* ── payment methods ── */
.st-methods { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0 0 12px; }
@media (min-width: 640px) { .st-methods { grid-template-columns: 1fr 1fr; } }
.st-method { display: flex; align-items: center; gap: 12px; margin: 0; text-align: start; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.st-method .pic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-weak); color: var(--accent); display: grid; place-items: center; }
.st-method .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-method .name { font-weight: 600; }
.st-method .tick { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.st-method.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.st-method.on .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
