/* CTpos – ctpos.online. Hand-written, no framework. Tokens follow the till's "CT POS" colour scheme (Pos.Domain/Ui/UiTheme.cs). */

:root {
  color-scheme: light dark;
  --ground: #f7f7f8;
  --surface: #ffffff;
  --sunk: #efeff1;
  --line: #e2e1e5;
  --line-strong: #cfced2;
  --ink: #111111;
  --muted: #5b5b60;
  --red: #d0141c;
  --red-hover: #b3111a;
  --on-red: #ffffff;
  --red-ink: #c0121a;
  --red-wash: #fbe7e8;
  --ok: #127a4b;
  --ok-dot: #16915a;
  --warn-dot: #e39a0e;
  --warn-wash: #fff3dc;
  --bar: #111111;
  --on-bar: #f7f7f8;
  --on-bar-muted: #b4b4b8;
  --paper: #ffffff;
  --paper-ink: #1a1a1a;
  --paper-muted: #6a6a6a;
  --shadow: 0 1px 2px rgb(17 17 17 / 6%), 0 12px 32px -12px rgb(17 17 17 / 18%);
  --focus: #1d5fd1;

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-receipt: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --gutter: 16px;
  --max: 1200px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111111;
    --surface: #1b1b1a;
    --sunk: #161615;
    --line: #2b2b2b;
    --line-strong: #3a393a;
    --ink: #f7f7f8;
    --muted: #a9a9ad;
    --red: #ec6670;
    --red-hover: #f0828a;
    --on-red: #111111;
    --red-ink: #f07d86;
    --red-wash: #3a1a1d;
    --ok: #5fd39b;
    --warn-wash: #3a2c10;
    --bar: #0b0b0b;
    --paper: #f4f4f1;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 70%);
    --focus: #8fb3ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: var(--on-red); }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); line-height: 1.08; font-weight: 750; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: .8em; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.measure { max-width: 64ch; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--red); color: var(--on-red); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink); --b-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { --b-bg: var(--red); --b-ink: var(--on-red); --b-line: var(--red); }
.btn-primary:hover { --b-bg: var(--red-hover); border-color: var(--red-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kbd { font: 600 .72rem/1 var(--font); padding: 3px 6px; border-radius: 5px; background: rgb(255 255 255 / 22%); }
.btn:not(.btn-primary) .kbd { background: var(--sunk); color: var(--muted); }

/* ---------- Header: the till's black top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bar); color: var(--on-bar); }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a, .nav button.nav-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 9px;
  border: 1px solid rgb(255 255 255 / 0%); color: var(--on-bar); text-decoration: none; font: 500 .95rem/1 var(--font); background: none;
}
.nav a:hover { border-color: rgb(255 255 255 / 55%); }
.nav a[aria-current="page"] { border-color: rgb(255 255 255 / 85%); }
.nav .nav-cta { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 600; }
.nav .nav-cta:hover { background: var(--red-hover); border-color: var(--red-hover); }
.nav .nav-quiet { color: var(--on-bar-muted); }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid rgb(255 255 255 / 45%); background: none; color: var(--on-bar); font: 600 .95rem/1 var(--font); cursor: pointer; }
.nav-sep { width: 1px; height: 24px; background: rgb(255 255 255 / 22%); margin: 0 4px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px var(--gutter) 18px; background: var(--bar); border-top: 1px solid rgb(255 255 255 / 12%); }
  .nav.is-open { display: flex; }
  .nav a { min-height: 48px; font-size: 1.05rem; }
  .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .js .nav { animation: none; }
}
.no-js .nav-toggle { display: none; }
@media (max-width: 1080px) { .no-js .nav { display: flex; position: static; flex-wrap: wrap; flex-direction: row; padding: 0 0 10px; } .no-js .bar-in { flex-wrap: wrap; } }

/* ---------- Chips (the till's status chips) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font: 500 .875rem/1.2 var(--font); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); flex: none; }
.chip-warn { background: var(--warn-wash); border-color: #e7c27a; }
.chip-warn::before { background: var(--warn-dot); }
.chip-plain::before { display: none; }
.soon { display: inline-block; font: 600 .75rem/1.1 var(--font); padding: 3px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); border: 1px solid var(--line); vertical-align: .12em; margin-left: 4px; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 5vw + 24px, 96px) 0; }
.section-tight { padding: clamp(40px, 4vw + 20px, 72px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 3vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 5vw + 16px, 96px) 0 clamp(56px, 6vw, 104px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }

/* The receipt printer: paper feeds out of a slot, one thermal "step" at a time. */
.printer { position: relative; max-width: 410px; width: 100%; margin: 0 auto; padding-top: 18px; }
.printer-slot { position: relative; z-index: 2; height: 34px; border-radius: 14px 14px 10px 10px; background: var(--bar); box-shadow: inset 0 -6px 0 rgb(255 255 255 / 6%); }
.printer-slot::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 4px; border-radius: 2px; background: #000; box-shadow: 0 1px 0 rgb(255 255 255 / 14%); }
.printer-led { position: absolute; right: 22px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); }
.paper-clip { position: relative; z-index: 1; margin: -8px 22px 0; overflow: hidden; padding-bottom: 26px; }
.receipt {
  position: relative; background: var(--paper); color: var(--paper-ink);
  padding: 28px 24px 32px; font: 400 .875rem/1.55 var(--font-receipt);
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / 35%);
  transform-origin: top center;
}
.receipt::after { /* torn edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 10px repeat-x;
}
.receipt .r-logo { width: 116px; margin: 0 auto 6px; }
.receipt .r-center { text-align: center; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-row span:last-child { white-space: nowrap; }
.receipt .r-dash { border-top: 1px dashed #b9b9b9; margin: 10px 0; }
.receipt .r-total { font-weight: 700; font-size: 1rem; }
.receipt .r-muted { color: var(--paper-muted); }
.receipt .r-qr { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.receipt .r-qr svg { width: 64px; height: 64px; flex: none; }
.receipt .r-stamp {
  position: absolute; right: 18px; bottom: 168px; transform: rotate(-8deg);
  padding: 4px 10px; border: 2px solid var(--ok-dot); color: #0f7a4a; border-radius: 6px;
  font: 700 .8rem/1.2 var(--font); letter-spacing: .02em; background: rgb(255 255 255 / 70%);
}
.js .receipt { transform: translateY(-100%); }
.js .printer.is-printing .receipt { animation: feed 2.6s steps(13, end) .2s both; }
.js .receipt .r-stamp { opacity: 0; }
.js .printer.is-printing .receipt .r-stamp { animation: stamp .45s var(--ease) 2.9s both; }
.js .printer.is-printing .printer-led { animation: blink .32s steps(2) .2s 8; }
@keyframes feed { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes blink { 50% { background: var(--warn-dot); } }

/* ---------- Branch tabs: the till's group pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  font: 600 1rem/1 var(--font); cursor: pointer; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pill:hover { border-color: var(--ink); text-decoration: none; }
.pill[aria-selected="true"], .pill.is-current { background: var(--red); border-color: var(--red); color: var(--on-red); }
.branch-panel { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .branch-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; } }
.js .branch-panel[hidden] { display: none; }
.js .branch-panel.is-entering { animation: panel-in .35s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.branch-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.branch-panel p { margin-top: 12px; color: var(--muted); }
.no-js .branch-panel + .branch-panel { margin-top: 56px; }
.words { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.word { font: 600 .9rem/1 var(--font); padding: 8px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg);
}
.ticks-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .ticks-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--ground); font: 700 .95rem/1 var(--font);
}
.steps strong { display: block; }

/* ---------- Split rows ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .split.flip > :first-child { order: 2; }
  .split.even { grid-template-columns: 1fr 1fr; }
}
.split h2 + p, .split h2 + .lead { margin-top: 16px; }

/* ---------- Device frames ---------- */
.monitor { position: relative; }
.monitor-screen { background: #0a0a0a; padding: 10px; border-radius: 16px 16px 6px 6px; box-shadow: var(--shadow); }
.monitor-screen img { border-radius: 4px; width: 100%; aspect-ratio: 1424 / 861; object-fit: cover; background: var(--sunk); }
.monitor-chin { height: 18px; margin: 0 2px; background: linear-gradient(#1a1a1a, #0d0d0d); border-radius: 0 0 10px 10px; }
.monitor-neck { width: 11%; height: 26px; margin: 0 auto; background: linear-gradient(90deg, #2a2a2a, #3a3a3a 50%, #2a2a2a); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.monitor-foot { width: 24%; height: 8px; margin: 0 auto; border-radius: 6px 6px 3px 3px; background: #2b2b2b; }

.browser { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.browser-url { flex: 1; min-width: 0; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font: 500 .8125rem/1.2 var(--font); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-lock { width: 10px; height: 12px; flex: none; border: 2px solid var(--muted); border-radius: 2px; position: relative; top: 2px; }
.browser-lock::before { content: ""; position: absolute; left: 0; top: -7px; width: 6px; height: 6px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 4px 4px 0 0; }
.browser img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }

.terminal { width: min(300px, 78vw); margin: 0 auto; padding: 16px 12px 46px; border-radius: 36px 36px 30px 30px; background: linear-gradient(160deg, #2a2a2b, #0e0e0f 60%); box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 8%); position: relative; }
.terminal::before { content: ""; position: absolute; left: 50%; top: 7px; width: 46px; height: 4px; margin-left: -23px; border-radius: 2px; background: #000; }
.terminal::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: 64px; height: 10px; margin-left: -32px; border-radius: 6px; background: #050505; box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%); }
.terminal img { border-radius: 18px; width: 100%; aspect-ratio: 720 / 1400; object-fit: cover; background: #111; }

figure { margin: 0; }
figcaption { margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.js .reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Offline: the queue counter ---------- */
.queue { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.queue-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.queue-chip { font-size: 1rem; padding: 8px 16px 8px 13px; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.queue-chip.is-online { background: var(--surface); border-color: var(--line-strong); }
.queue-chip.is-online::before { background: var(--ok-dot); }
.queue-track { position: relative; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.queue-fill { position: absolute; inset: 0; width: 100%; background: var(--ok-dot); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease); }
.queue.is-synced .queue-fill { transform: scaleX(1); }
.queue-legend { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.queue-legend li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.queue-legend span:last-child { font-weight: 600; text-align: right; }
.yes { color: var(--ok); }

/* ---------- Order status ticket (as on <shop>.ctpos.online) ---------- */
.ticket { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); position: relative; }
.ticket-top { padding: 24px 26px 20px; }
.ticket-no { font: 700 .95rem/1 var(--font-receipt); color: var(--muted); }
.ticket-status { margin-top: 10px; font: 750 1.6rem/1.15 var(--font-display); letter-spacing: -0.02em; min-height: 2.3em; }
.ticket-perf { position: relative; border-top: 2px dashed var(--line-strong); margin: 0 18px; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground); border: 1px solid var(--line-strong); }
.ticket-perf::before { left: -32px; clip-path: inset(0 0 0 50%); }
.ticket-perf::after { right: -32px; clip-path: inset(0 50% 0 0); }
.ticket-steps { list-style: none; margin: 0; padding: 20px 26px 26px; display: grid; gap: 14px; }
.ticket-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color .3s var(--ease); }
.ticket-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.ticket-steps li.is-done { color: var(--ink); }
.ticket-steps li.is-done::before { background: var(--ok-dot); border-color: var(--ok-dot); box-shadow: inset 0 0 0 3px var(--surface); }
.ticket-steps li.is-now { color: var(--ink); font-weight: 700; }
.ticket-steps li.is-now::before { border-color: var(--ok-dot); background: var(--ok-dot); box-shadow: 0 0 0 5px rgb(22 145 90 / 18%); }

/* ---------- Dark band (compliance) ---------- */
.band { background: var(--bar); color: var(--on-bar); }
.band .muted, .band .section-head p { color: var(--on-bar-muted); }
.band .ticks li::before { border-color: #ec6670; }
.band a { color: var(--on-bar); }
.facts { display: grid; gap: 1px; background: rgb(255 255 255 / 12%); border-radius: var(--r-m); overflow: hidden; margin-top: 8px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--bar); padding: 26px 24px; }
.fact h3 { font-size: 1.125rem; }
.fact p { margin-top: 8px; color: var(--on-bar-muted); font-size: .98rem; }

/* ---------- Product parts list ---------- */
.parts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.part { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .part { grid-template-columns: 15rem 1fr auto; align-items: baseline; } }
.part h3 { font-size: 1.15rem; }
.part p { color: var(--muted); }
.part a { font-weight: 600; white-space: nowrap; }

/* ---------- Feature groups (Funktioner) ---------- */
.groups { display: grid; gap: 40px 48px; }
@media (min-width: 800px) { .groups { grid-template-columns: 1fr 1fr; } }
.group h2 { font-size: 1.4rem; letter-spacing: -0.015em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.group .ticks { margin-top: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; font: 650 1.0625rem/1.4 var(--font); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-ink); }
.faq .answer { padding: 0 2px 22px; color: var(--muted); max-width: 64ch; }
.faq details[open] .answer { animation: open .28s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Page header (sub pages) ---------- */
.page-head { padding: clamp(40px, 5vw + 12px, 88px) 0 clamp(28px, 3vw, 48px); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem); }
.page-head .lead { margin-top: 18px; max-width: 46ch; }
.crumbs { font-size: .9375rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ---------- Branch overview grid ---------- */
.branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.branches li { border-bottom: 1px solid var(--line-strong); }
.branches a { display: grid; gap: 4px 28px; padding: 24px 4px; text-decoration: none; transition: padding-left .25s var(--ease), color .2s var(--ease); }
@media (min-width: 800px) { .branches a { grid-template-columns: 16rem 1fr auto; align-items: baseline; } }
.branches a:hover { padding-left: 14px; }
.branches a:hover h3 { color: var(--red-ink); }
.branches p { color: var(--muted); }
.branches .go { font-weight: 600; color: var(--red-ink); white-space: nowrap; }

/* ---------- Price & CTA ---------- */
.cta { display: grid; gap: 28px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) { .cta { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.cta .btn-row { margin-top: 0; }
@media (min-width: 900px) { .cta .btn-row { justify-content: flex-end; } }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--sunk); }
tr:last-child td { border-bottom: 0; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .form-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }
.form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-weight: 650; margin-bottom: 10px; padding: 0; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; }
.kinds input:checked + label { background: var(--red); border-color: var(--red); color: var(--on-red); }
.kinds input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .98rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--ground); color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field .err { color: var(--red-ink); font-size: .9rem; font-weight: 600; }
.field .err:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgb(22 145 90 / 12%); border: 1px solid rgb(22 145 90 / 45%); }
.form-status.is-error { background: var(--red-wash); border: 1px solid var(--red); }
.form .btn-primary[disabled] { opacity: .6; cursor: progress; }
.sent { display: grid; gap: 10px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid rgb(22 145 90 / 45%); border-radius: var(--r-l); }
.sent h2 { font-size: 1.6rem; }
.js .sent { animation: panel-in .45s var(--ease) both; }
altcha-widget { display: block; }
.altcha { --altcha-max-width: 100%; --altcha-border-radius: 10px; --altcha-color-base: var(--ground); --altcha-color-text: var(--ink); --altcha-color-border: var(--line-strong); --altcha-color-border-focus: var(--focus); --altcha-color-error-text: var(--red-ink); --altcha-color-footer-bg: var(--sunk); }

/* ---------- Footer ---------- */
.foot { background: var(--bar); color: var(--on-bar); padding: 56px 0 32px; margin-top: 0; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; color: var(--on-bar); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--on-bar); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { color: var(--on-bar-muted); font-size: .95rem; max-width: 36ch; }
.foot .brand img { width: 180px; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 14%); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--on-bar-muted); font-size: .9rem; }
.foot-base a { color: var(--on-bar-muted); }

/* ---------- Prose (privacy, about) ---------- */
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.monogram { width: 120px; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; align-content: center; }

/* ---------- Motion: honour the user's choice everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .receipt { transform: none; }
  .js .receipt .r-stamp { opacity: 1; }
}

@media print {
  .bar, .foot, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Small spacing rules (no inline styles: strict CSP) ---------- */
.cta p { margin-top: 12px; }
.ticks + p, .branches + p, .table-wrap + p, .ticks + .words { margin-top: 18px; }
[data-tabs] + p { margin-top: 36px; }
.branch-panel .ticks + p { margin-top: 16px; }
.wrap > h2 + .table-wrap, .wrap > h2 + .ticks { margin-top: 20px; }
.faq-gap { height: 18px; }
.soon-head { margin-top: 32px; }
.privacy-head { margin-top: 40px; }
.notfound p[lang] { margin-top: 28px; }
.page-head .monogram { margin-bottom: 24px; }
.split.even + .groups, .section-tight + .section-tight { padding-top: 0; }
.foot .brand { display: inline-flex; margin-bottom: 14px; }
.form-grid > div > h2 { font-size: 1.5rem; }
.row-2 { align-items: start; }
.split.even { align-items: start; }

/* ---------- Download (/download/ here and the backoffice's /download, which links a copy of this file) ---------- */
.dl-grid { display: grid; gap: 24px; }
@media (min-width: 880px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl-card { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); border-top: 4px solid var(--red); }
.dl-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.dl-card-head p { margin-top: 6px; }
.dl-card .btn-row { margin-top: 0; }
.dl-card > .small:last-child { margin-top: auto; }
.dl-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: .98rem; }
.dl-facts dt { color: var(--muted); }
.dl-facts dd { margin: 0; font-weight: 600; }
.dl-hash { font: 400 .8125rem/1.45 var(--font-receipt) !important; word-break: break-all; }
.dl-state .btn-row { margin-top: 14px; }
.dl-p { margin-top: 14px; }
.dl-contact { margin-top: 14px; }
.dl-releases { border-top: 1px solid var(--line-strong); max-width: 52rem; }
.dl-release { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
@media (min-width: 800px) { .dl-release { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; } }
.dl-release h3 { font-size: 1.1rem; }
.dl-notes { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.dl-notes :is(h1, h2, h3, h4, h5, h6) { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; color: var(--ink); margin: 10px 0 4px; }
.dl-notes > :first-child { margin-top: 0; }
.dl-notes ul, .dl-notes ol { margin: 0; padding-left: 1.2em; }
.dl-notes li + li, .dl-notes p + p, .dl-notes p + ul, .dl-notes ul + p, .dl-notes p + ol, .dl-notes ol + p { margin-top: 6px; }
.dl-notes strong { color: var(--ink); }
.dl-notes code { font: .875em/1.4 var(--font-receipt); padding: 1px 5px; border-radius: 5px; background: var(--sunk); }
