@import url("select.css");
/* ==========================================================================
   Exsolutio — public site + dashboards. Tokens first; components use tokens only.
   Harbour ink · tide teal · signal amber (used once) · blue-grey neutrals.
   ========================================================================== */
:root {
  /* day: light cream (Brand Book v2.8, 17 Oct 2026) — signal-soft mixed with white; the lines mixed with ink. Was cool white:
     #f5f8f9 · #ffffff · #eef3f5 · #d5dfe4 · #b7c6ce */
  --bg: #fef7ec;
  --surface: #fffcf9;
  --surface-2: #f6ebd6;
  --line: #dfdad2;
  --line-strong: #c2c0ba;
  --ink: #0d1b24;
  --ink-2: #41525d;
  --ink-3: #6b7d88;
  --brand: #0e7c6b;
  --brand-strong: #0a6457;
  --brand-soft: #dff1ec;
  --brand-ink: #ffffff;
  --signal: #b86a07;          /* amber, darkened for text contrast on light */
  --signal-soft: #fdf1dc;
  --ok: #117a4a; --ok-soft: #e0f3e8;
  --warn: #a15c07; --warn-soft: #fdf0d9;
  --bad: #b42318; --bad-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(13, 27, 36, .06), 0 10px 30px rgba(13, 27, 36, .07);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a141b; --surface: #10202a; --surface-2: #142834; --line: #22394a; --line-strong: #325068;
    --ink: #e6eef1; --ink-2: #b3c4cd; --ink-3: #85989f;
    --brand: #3cc3a8; --brand-strong: #5fd6bd; --brand-soft: rgba(60, 195, 168, .14); --brand-ink: #062019;
    --signal: #f2a93b; --signal-soft: rgba(242, 169, 59, .14);
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf57; --warn-soft: rgba(251, 191, 87, .12);
    --bad: #fca5a0; --bad-soft: rgba(248, 113, 106, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a141b; --surface: #10202a; --surface-2: #142834; --line: #22394a; --line-strong: #325068;
  --ink: #e6eef1; --ink-2: #b3c4cd; --ink-3: #85989f;
  --brand: #3cc3a8; --brand-strong: #5fd6bd; --brand-soft: rgba(60, 195, 168, .14); --brand-ink: #062019;
  --signal: #f2a93b; --signal-soft: rgba(242, 169, 59, .14);
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf57; --warn-soft: rgba(251, 191, 87, .12);
  --bad: #fca5a0; --bad-soft: rgba(248, 113, 106, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
a.octa-signin, a.octa-signin:hover { color: var(--os-fg); }   /* Sign in with Octa keeps its own label colour */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: .92rem; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* --- header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 84px; }
/* the flower pin, large enough for its flower to read (Master, 17 Oct 2026: "The logo is so small make it much bigger"):
   a 60 px pin, 12 px, the name at 1.6rem (0.43 of the pin) — Brand Book v2.0, the lock-up */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo svg { width: 60px; height: 60px; flex: none; }
.logo b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .btn { margin-left: 6px; }
.nav a.btn, .nav a.btn:hover { color: var(--brand-ink); background: var(--brand); }
.nav a.btn:hover { background: var(--brand-strong); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; width: 42px; height: 40px; color: var(--ink); }
/* day / night switch (added by site.js) */
.theme-btn { order: 5; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line);
             border-radius: 999px; background: var(--surface); cursor: pointer; font-size: 19px; line-height: 1; padding: 0;
             transition: background .15s, transform .15s; }
.theme-btn:hover { background: var(--surface-2); transform: rotate(-12deg); }
.theme-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.topbar .theme-btn { width: 34px; height: 34px; font-size: 16px; }
/* language picker (added by site.js) */
.lang-select { order: 4; flex: none; height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238a96a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--ink); font: 500 .88rem var(--font-body); -webkit-appearance: none; appearance: none; cursor: pointer; }
.lang-select:hover { background-color: var(--surface-2); }
.lang-select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.topbar .lang-select { height: 34px; font-size: .84rem; }
@media (max-width: 760px) {
  .lang-select { order: 0; margin-left: auto; height: 40px; padding-left: 10px; max-width: 118px; }
  .lang-select + .theme-btn { margin-left: 0; }
  .theme-btn { order: 0; margin-left: auto; }
  .site-header .menu-btn { margin-left: 0; }
  .menu-btn { display: grid; place-items: center; }
  .site-header .wrap { height: 72px; }
  .logo svg { width: 48px; height: 48px; }
  .logo { gap: 10px; }
  .logo b { font-size: 1.28rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
         background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* --- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); }

/* --- hero --------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 48px; align-items: start; grid-template-columns: 1.15fr .85fr; }
.hero-grid > div:first-child { padding-top: clamp(0px, 3vw, 40px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .rate { color: var(--signal); white-space: nowrap; }
.hero .lede { font-size: 1.18rem; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.facts li { position: relative; padding-left: 15px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* the product in the hero: an interactive example checkout with its fee receipt */
.demo { position: relative; min-width: 0; }
.demo-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 6px; font-size: .82rem; color: var(--ink-3); }
.demo-steps li { display: flex; align-items: center; gap: 7px; flex: 1; padding: 6px 4px; border-top: 2px solid var(--line); transition: color .2s, border-color .2s; }
.demo-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700;
                      border: 1.5px solid currentColor; font-variant-numeric: tabular-nums; flex: none; }
.demo-steps li[aria-current="step"] { color: var(--ink); font-weight: 600; border-color: var(--brand); }
.demo-steps li[aria-current="step"] span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.demo-steps li.done { color: var(--ink-2); border-color: var(--brand); }
.demo-steps li.done span { border-color: var(--brand); color: var(--brand); }

.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
/* one screen at a time; the card never gets shorter than the basket screen (set by demo.js), so it doesn't jump */
.demo-screens { display: grid; min-height: var(--demo-min, 0px); }
.demo-screen { min-width: 0; }
.demo-screen:not(.is-on) { display: none; }
.demo-screen.is-on { animation: demo-in .22s ease both; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; min-width: 0; }
.demo-head > div { min-width: 0; }
.demo-mark { width: 40px; height: 40px; border-radius: 11px; background: #7c2d12; color: #fff; display: grid; place-items: center;
             font-family: var(--font-display); font-weight: 800; flex: none; }
.demo-mark--teya { background: #334155; }
.demo-head b { display: block; font-size: 1rem; outline: none; }
.demo-head > div > span { display: block; color: var(--ink-3); font-size: .82rem; }
.demo-head b span { color: inherit; font-size: inherit; }
.demo-lines { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.demo-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.2em; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.demo-lines li.is-zero .demo-item, .demo-lines li.is-zero .demo-amt { color: var(--ink-3); }
.demo-item { min-width: 0; line-height: 1.3; }
.demo-item small { display: block; color: var(--ink-3); font-size: .78rem; }
.demo-amt { text-align: right; }
.demo-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 9px; }
.demo-qty button { width: 30px; height: 30px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.demo-qty button:hover:not(:disabled) { background: var(--surface-2); }
.demo-qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.demo-qty output { min-width: 1.4em; text-align: center; font-weight: 600; }
.demo-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 14px; min-width: 0; }
.demo-total strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.02em; }
.demo-pay { width: 100%; border: 0; border-radius: 11px; padding: 13px; background: #7c2d12; color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
            cursor: pointer; transition: filter .15s, transform .1s; }
.demo-pay:hover:not(:disabled) { filter: brightness(1.12); }
.demo-pay:active:not(:disabled) { transform: translateY(1px); }
.demo-pay:disabled { opacity: .5; cursor: not-allowed; }
.demo-pay--teya { background: #334155; }
/* the shop's buttons carry Exsolutio's small mark (Brand Book v2.3): 36 px, turning at the logo's pace */
.demo-pay--mark { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 14px; min-height: 52px; }
/* the flower in its own button, beside the shop's button (Master, 19 Oct 2026: "Make the logo in it's own button and Go to Checkout it's own button");
   the flower button is the Offer finder: pressed, it searches for offers (offers.py; on the real checkout web/js/exs-offer.js) */
.demo-pay-row { display: flex; align-items: stretch; border-radius: 11px; background: #7c2d12; overflow: hidden; }
/* one button, two presses (Master, 19 Oct 2026: "It must be embedded inside the button not in top of it"): the flower is the
   left end of the shop's own button, divided by a thin line; the rest of the button says what it does */
.demo-pay-row .demo-pay { flex: 1; min-width: 0; border-radius: 0; background: transparent; }
.demo-offer { flex: none; width: 56px; min-height: 52px; padding: 0; border: 0; border-right: 1px solid rgba(255,255,255,.22);
  border-radius: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.demo-offer:hover, .demo-pay-row .demo-pay:hover:not(:disabled) { background: rgba(255,255,255,.08); filter: none; }
.demo-offer:focus-visible, .demo-pay-row .demo-pay:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.demo-pay-mark { flex: none; width: 36px; height: 36px; display: inline-flex; }
.demo-pay-mark svg { width: 36px; height: 36px; display: block; }
.demo-pay-mark [class$="-ring"] { transform-box: view-box; transform-origin: 256px 256px; animation: demo-mark-turn 20s linear infinite; }
@keyframes demo-mark-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-pay-mark [class$="-ring"] { animation: none; } }
/* the coin: Octa Exchange's colour stream flowing through it, one round in 40 s, as in the logo (Brand Book v2.6) */
.demo-pay-mark [class$="-coin-flow"] { animation: demo-mark-flow 40s linear infinite; }
@keyframes demo-mark-flow { to { transform: translateX(-200px); } }
@media (prefers-reduced-motion: reduce) { .demo-pay-mark [class$="-coin-flow"] { animation: none; } }
.demo-pay-l { font-weight: 700; }
.demo-pay:disabled .demo-pay-mark { opacity: .6; }
.demo-note { text-align: center; color: var(--ink-3); font-size: .8rem; margin-top: 10px; }
.demo-btn { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px; background: transparent; color: var(--ink);
            font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.demo-btn:hover { background: var(--surface-2); }
.demo-link { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.demo-link:hover { color: var(--ink); }
.demo-actions { display: grid; gap: 8px; }
.demo-cardchip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px;
                 background: var(--surface-2); font-size: .95rem; }
.demo-visa { font: italic 800 .8rem/1 var(--font-body); letter-spacing: .04em; color: #1a1f71; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; }
.demo-tag { margin-left: auto; font-size: .74rem; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 2px 8px; }
.demo-ask { font-size: .88rem; color: var(--ink-2); margin: 14px 0 8px; }
.demo-wait { display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--ink-2); }
.demo-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: demo-spin .8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-result { display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.demo-result h3 { font-size: 1.35rem; outline: none; }
.demo-result p { color: var(--ink-2); font-size: .95rem; max-width: 30ch; }
.demo-result .demo-btn, .demo-result .demo-actions { margin-top: 8px; width: min(100%, 280px); }
.demo-mono { font-family: var(--font-mono); font-size: .84rem !important; }
.demo-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.demo-badge--ok { background: var(--ok-soft); color: var(--ok); }
.demo-badge--bad { background: var(--bad-soft); color: var(--bad); }
.demo-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.demo-sum strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
/* "Shop settings" card in the example: a small settings panel with switches, like the dashboard */
.demo-shop { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; overflow: hidden; }
.demo-shop-h { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px 10px; }
.demo-shop-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.demo-shop-t { margin: 0; font-size: .86rem; font-weight: 700; color: var(--ink); }
.demo-shop-t span { font-weight: 500; color: var(--ink-3); }
.demo-shop-s { margin: 1px 0 0; font-size: .78rem; line-height: 1.4; color: var(--ink-3); }
.demo-toggles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); background: var(--surface); }
.demo-toggles button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 9px 12px 9px 14px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: .83rem; font-weight: 500;
  text-align: left; cursor: pointer; }
.demo-toggles button:nth-child(odd) { border-right: 1px solid var(--line); }
.demo-toggles button:hover { background: var(--surface-2); color: var(--ink); }
.demo-toggles button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.demo-toggles button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the switch */
.demo-toggles i { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.demo-toggles i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.demo-toggles button[aria-checked="true"] { color: var(--ink); }
.demo-toggles button[aria-checked="true"] i { background: var(--brand); }
.demo-toggles button[aria-checked="true"] i::after { transform: translateX(12px); }
.demo-toggles > :nth-last-child(-n+2) { border-bottom: 0; }
.demo-toggles-note { margin: 0; padding: 9px 14px; font-size: .74rem; color: var(--ink-3); border-bottom: 1px solid var(--line); display: flex; align-items: center; }
@media (max-width: 380px) {
  .demo-toggles { grid-template-columns: 1fr; }
  .demo-toggles button:nth-child(odd) { border-right: 0; }
}
.demo-form { display: grid; gap: 10px; margin-top: 14px; }
.demo-form [data-fields] { display: grid; gap: 10px; }
/* the example's form uses the same look as the real checkout page (web/styles/checkout.css) */
.demo-form .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-field { display: grid; gap: 5px; min-width: 0; }
.dg-label { margin: 0; font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.dg-group { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); overflow: hidden;
            box-shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 3px 6px rgba(0, 0, 0, .02); }
.dg-row + .dg-row { border-top: 1px solid var(--line); }
.dg-row--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dg-row--2 > .dg-cell + .dg-cell { border-left: 1px solid var(--line); }
.dg-cell { position: relative; min-width: 0; }
.dg-in { display: block; width: 100%; height: 40px; margin: 0; padding: 0 11px; border: 0; background: transparent; color: var(--ink);
         font: inherit; font-size: .92rem; outline: none; -webkit-appearance: none; appearance: none; }
.dg-in::placeholder { color: var(--ink-3); opacity: .8; }
select.dg-in { padding-right: 30px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23687385' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; }
.dg-cell:focus-within { box-shadow: inset 0 0 0 2px rgba(124, 45, 18, .55); z-index: 1; }
.dg-cell.is-err { box-shadow: inset 0 0 0 1px var(--bad); }
.dg-cell.is-err .dg-in { color: var(--bad); }
.dg-errs { list-style: none; margin: 0; padding: 0; color: var(--bad); font-size: .78rem; }
.dg-errs:empty { display: none; }
.dg-hint { margin: 0; color: var(--ink-3); font-size: .74rem; }
.dg-checks { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); overflow: hidden; }
.dg-check { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.dg-check + .dg-check { border-top: 1px solid var(--line); }
.dg-check input { width: 15px; height: 15px; margin: 2px 0 0; flex: none; accent-color: #7c2d12; }
.dg-check.is-err { box-shadow: inset 0 0 0 1px var(--bad); }
.demo-form .demo-pay { border-radius: 6px; }
.demo-f { display: grid; gap: 4px; min-width: 0; }
.demo-f label, .demo-f .demo-lab { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.demo-f label i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.demo-f input:not([type=checkbox]), .demo-f select { width: 100%; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 10px; }
.demo-f input:focus, .demo-f select:focus { outline: 2px solid #7c2d12; outline-offset: 0; border-color: transparent; }
.demo-f.bad input:not([type=checkbox]), .demo-f.bad select { border-color: var(--bad); }
.demo-f .err { color: var(--bad); font-size: .78rem; margin: 0; }
.demo-f .hint { color: var(--ink-3); font-size: .76rem; margin: 0; }
.demo-row2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; }
.demo-f label.demo-check { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.demo-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #7c2d12; flex: none; }
.demo-check a { color: inherit; }
.demo-error { margin: 0; background: var(--bad-soft); color: var(--bad); border-radius: 9px; padding: 8px 10px; font-size: .84rem; }
.demo-fill { display: block; margin: 8px auto 0; }
.demo-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 0; }
.demo-methods span { font-size: .72rem; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
/* wallet buttons in the example: plain black buttons with text; the real ones are drawn by Teya's page */
.demo-wallet { width: 100%; border: 0; border-radius: 11px; padding: 12px; background: #000; color: #fff; font: inherit; font-weight: 700;
               font-size: .98rem; cursor: pointer; }
.demo-wallet:hover { background: #1f1f1f; }
:root[data-theme="dark"] .demo-wallet { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-wallet { background: #fff; color: #000; } }
.demo-or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .8rem; margin: 14px 0 10px; }
.demo-or::before, .demo-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-actions--card { margin-top: 10px; }
/* official wallet buttons (Apple Pay JS SDK, Google Pay API) fill their slot; placeholders show until they load */
.demo-wallet-slot { min-height: 46px; display: grid; }
.demo-wallet-slot apple-pay-button { --apple-pay-button-width: 100%; --apple-pay-button-height: 46px; --apple-pay-button-border-radius: 11px;
  --apple-pay-button-padding: 0px; --apple-pay-button-box-sizing: border-box; display: block; width: 100%; }
.demo-wallet-slot .gpay-card-info-container, .demo-wallet-slot > div { width: 100%; }
.demo-wallet-slot button.gpay-button, .demo-wallet-slot .gpay-card-info-container { height: 46px; min-height: 46px; }
/* official acceptance marks (web/assets/pay/*.svg), all the same height; card brands sit on a white tile */
.demo-methods span.is-img, .demo-mark-slot.is-img { padding: 0; border: 0; display: inline-flex; align-items: center; height: 24px; }
.demo-methods span.is-img img, .demo-mark-slot.is-img img { height: 24px; width: auto; display: block; }
.demo-methods span.is-tile, .demo-mark-slot.is-tile { background: #fff; border: 1px solid #d9dde3; border-radius: 5px; padding: 0;
  width: 38px; height: 24px; box-sizing: border-box; justify-content: center; overflow: hidden; }
.demo-methods span.is-tile[data-mark="visa"] img, .demo-mark-slot.is-tile[data-mark="visa"] img { height: 28px; }
.demo-methods span.is-tile[data-mark="mastercard"] img { height: 22px; }
.demo-mark-slot { font-weight: 700; color: var(--ink); font-size: .9rem; }
/* Google's SVG carries its clear space inside the file; enlarge it so the visible mark matches the others */
.demo-methods span.is-img[data-mark="google-pay"] img { height: 44px; margin: -10px -5px; }
.demo-methods span.is-img[data-mark="apple-pay"] { margin: 0 3px; }
.demo-sent { font-size: .86rem !important; }
.demo-why { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.5; color: var(--ink-3); min-height: 4.5em; }
.demo-why b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
/* the receipt is its own card: same width, border and corner radius as the checkout card above */
.receipt {
  margin: 12px 0 0; position: relative; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 22px 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2);
}
.receipt > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.receipt .keep { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line-strong); margin-top: 6px; padding-top: 8px; }
.receipt .keep.is-paid { color: var(--ok); }
.receipt-title { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.receipt .receipt-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; margin-bottom: 10px; padding: 0; }
.receipt-controls label { display: grid; gap: 3px; min-width: 0; font-family: var(--font-body); font-size: .74rem; color: var(--ink-3); }
.receipt-controls select { width: 100%; min-width: 0; font: 500 .84rem var(--font-body); color: var(--ink); background: var(--surface);
                           border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; }
.receipt-foot { margin: 8px 0 0; font-family: var(--font-body); font-size: .76rem; color: var(--ink-3); }
[data-r] { transition: color .2s; }
.flash { color: var(--brand) !important; }
@media (max-width: 420px) {
  .demo-card { padding: 18px 16px; }
  .demo-lines li { grid-template-columns: minmax(0, 1fr) auto 4.6em; gap: 8px; }
  .demo-item small { display: none; }
  .receipt { padding: 16px; }
  .receipt .receipt-controls { grid-template-columns: 1fr; }
}

/* --- sections -------------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; display: grid; gap: 12px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.07rem; }

.ways { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }
.way { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); display: grid; gap: 10px; align-content: start; }
.section-alt .way { background: var(--bg); }
.way .tag { font-family: var(--font-mono); font-size: .76rem; color: var(--brand); }
.way p { color: var(--ink-2); font-size: .95rem; }
.way code { font-family: var(--font-mono); font-size: .8rem; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 2px solid var(--brand); padding-top: 16px; display: grid; gap: 8px; }
.steps li::before { content: "Step " counter(s); font-family: var(--font-mono); font-size: .8rem; color: var(--brand); }
.steps p { color: var(--ink-2); }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.points { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.points .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.points b { display: block; }
.points span { color: var(--ink-2); font-size: .95rem; }

/* --- tables -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t th { text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- FAQ ----------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 14px; }

/* --- CTA + footer ------------------------------------------------------------------------ */
.cta { background: var(--ink); color: var(--bg); border-radius: 20px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 16px; }
.cta p { color: color-mix(in srgb, var(--bg) 78%, transparent); max-width: 40em; }
.cta .btn { justify-self: start; }
:root[data-theme="dark"] .cta { background: var(--surface-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: var(--surface-2); color: var(--ink); } }
:root[data-theme="dark"] .cta p { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta p { color: var(--ink-2); } }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 44px; color: var(--ink-3); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }

/* --- forms -------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.input, .select, textarea.input {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.input:focus, .select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.input.bad { border-color: var(--bad); }
.hint { font-size: .82rem; color: var(--ink-3); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.alert { border-radius: 10px; padding: 11px 14px; font-size: .94rem; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--brand-soft); color: var(--ink); }

/* --- code (developer docs) -------------------------------------------------------------------- */
pre.code {
  margin: 0; overflow-x: auto; background: #0d1b24; color: #d7e6ec; border-radius: 12px; padding: 16px 18px;
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.6; border: 1px solid #1e3442;
}
pre.code .k { color: #6fe3c8; } pre.code .s { color: #f7c572; } pre.code .c { color: #7b93a0; }
code.inline { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* --- pills / chips ---------------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }

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

/* --- closed drop-downs: same chevron everywhere (the open list is web/styles/select.css) --- */
select.select, .receipt-controls select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238a96a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.receipt-controls select { padding-right: 28px; background-position: right 9px center; }
select.select.dd-open, .receipt-controls select.dd-open, select.dg-in.dd-open { outline: 2px solid var(--brand); outline-offset: 0; }

/* example form: clearer dividers in night mode, and browser autofill keeps our colours */
.dg-row + .dg-row, .dg-check + .dg-check { border-top-color: color-mix(in srgb, var(--line-strong) 65%, var(--line)); }
.dg-row--2 > .dg-cell + .dg-cell { border-left-color: color-mix(in srgb, var(--line-strong) 65%, var(--line)); }
.dg-in:-webkit-autofill, .dg-in:-webkit-autofill:hover, .dg-in:-webkit-autofill:focus, .input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 99999s ease 0s; }

@media (max-width: 420px) { .lang-select { max-width: 76px; padding-right: 26px; } }

/* long German compound words: hyphenate instead of pushing the layout wider */
:lang(de) :is(h1, h2, h3, p, li, dt, dd, td, th, label, .k, .s, .hint) { -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 480px) {
  .demo-steps li { flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; font-size: .76rem; overflow-wrap: anywhere; }
}
/* a word that still doesn't fit (long compound, URL, header name) breaks instead of widening the page */
h1, h2, h3, p, li, dt, dd, td, th, label, .hint { overflow-wrap: break-word; }
code.inline { overflow-wrap: anywhere; }
