/* Digitale Firma design tokens — standalone brand, dark-first glass canvas.
 *
 * Replaced 2026-10-22 (CEO: "take new Digitale Firma CI from html"). The previous set
 * inherited Baltasaar's petrol authority (#0E5561) and lime (#C8D400). The new
 * surface is a near-black ground with a desaturated olive-lime accent and a
 * mint positive — read out of the delivered glass landing page, not invented
 * here, so the page and anything built next to it agree on the same values.
 *
 * Shared source of truth for index.html, the checkout page, the legal pages and
 * the booking re-skin in nginx.conf. When one of those drifts from this file,
 * this file wins.
 *
 * What changed, and why it matters: petrol is GONE. Any surface still painting
 * #0E5561 or #C8D400 is on the old brand. Those two values survive in exactly
 * one place on purpose — the booking widget proxied from the Pi — and they are
 * being migrated with the rest of the re-skin.
 */
:root {
  /* ── Ground ──────────────────────────────────────────────────────────────
   * Three steps of near-black, not one. The page reads as glass because the
   * panels sit a fraction above the ground, so a single flat background would
   * flatten every card on it. */
  --cxo-ground: #050605;        /* html/body — the floor */
  --cxo-ground-2: #070806;      /* hero tail, where the photo fades out */
  --cxo-ground-3: #141414;      /* raised surfaces on light sections */

  /* ── Ink ─────────────────────────────────────────────────────────────── */
  --cxo-ink: #fbfbfa;           /* primary text on the dark ground */
  --cxo-ink-soft: #c6c8c4;      /* secondary copy */
  --cxo-ink-mute: #9a9c99;      /* labels, captions */
  --cxo-ink-dim: #7c7d7c;       /* the quietest legible step */
  --cxo-ink-invert: #1a1d0c;    /* text ON the lime accent */

  /* ── Accent ──────────────────────────────────────────────────────────────
   * One high-energy accent, and it has to earn each appearance: CTAs, live
   * signals, the active rail dot. Everything else is ink on glass. */
  --cxo-lime: #d2dc4f;
  --cxo-lime-deep: #c6c85a;     /* hover / pressed */
  --cxo-lime-shade: #8f9a4a;    /* lime at low emphasis, e.g. meters */

  /* ── Status ──────────────────────────────────────────────────────────────
   * Mint for positive, because the accent is already spending the page's
   * attention budget and a second yellow-green would compete with it. */
  --cxo-pos: #8fce9d;
  --cxo-pos-2: #77c18c;
  --cxo-pos-3: #5f9c6c;
  --cxo-track: #373a34;         /* unfilled meter / progress track */

  /* ── Glass ───────────────────────────────────────────────────────────────
   * The panel look is a 1px gradient hairline over a blurred, barely-tinted
   * fill. Keep the fill below 10% white or the "glass" turns into grey card. */
  --cxo-panel: rgba(255, 255, 255, 0.055);
  --cxo-panel-line: rgba(255, 255, 255, 0.055);
  --cxo-panel-strong: rgba(255, 255, 255, 0.10);
  --cxo-blur: blur(24px) saturate(1.25);

  /* ── Type ────────────────────────────────────────────────────────────────
   * Roboto 300–600 from Google Fonts. 300 carries the display sizes; anything
   * below 16px goes to 400 or it disappears on the dark ground. */
  --cxo-font: "Roboto", "Helvetica Neue", "Segoe UI", system-ui, Arial, sans-serif;
  --cxo-font-mono: "SF Mono", Consolas, Menlo, monospace;

  /* ── System ──────────────────────────────────────────────────────────────
   * The hero scales off --u (one unit of the 1341×958 design frame) rather
   * than rem, so the composition holds at any viewport instead of reflowing
   * into a different picture. Do not convert the hero to rem/px. */
  --cxo-u: min(calc(100vw / 1341), calc(100vh / 958));
  --cxo-space: 8px;
  --cxo-radius: 14px;
  --cxo-radius-pill: 36px;
}

/* ── Light version (CEO 2026-11-14) ──────────────────────────────────────────
 * Dark stays the default. A visitor who picks light gets data-theme="light"
 * on <html> (inline script in each page's <head>, choice in localStorage,
 * button wired by /assets/theme.js). Palette = the Digitale Firma app's light set —
 * ground #F2F5F6, teal #0E5561, lime #C8D400, dark ink — values duplicated on
 * purpose, no shared code.
 *
 * The --L-* names only exist in light. Rules in partner.css and the checkout
 * page write var(--L-name, <dark value>), so without them every rule keeps
 * the value it always had. */
:root[data-theme="light"] {
  color-scheme: light;
  --cxo-ground: #F2F5F6;
  --cxo-ground-2: #F2F5F6;
  --cxo-ground-3: #ffffff;
  --cxo-ink: #0E2A32;
  --cxo-ink-soft: #33505A;
  --cxo-ink-mute: #48626C;
  --cxo-ink-dim: #56707A;
  --cxo-lime: #C8D400;
  --cxo-lime-deep: #b6c100;
  --cxo-lime-shade: #8f9a00;
  --cxo-pos: #23694b;
  --cxo-pos-2: #2c7a58;
  --cxo-pos-3: #3a8a66;
  --cxo-track: rgba(14, 42, 50, .13);
  --cxo-panel: rgba(255, 255, 255, .78);
  --cxo-panel-line: rgba(14, 42, 50, .11);
  --cxo-panel-strong: rgba(255, 255, 255, .94);
  --cxo-blur: blur(22px) saturate(1.4);
  --L-w: 14, 42, 50;
  --L-l3: 14, 85, 97;
  --L-bg: #F2F5F6;
  --L-ink: #0E2A32;
  --L-limetxt: #0E5561;
  --L-limetxt-hi: #08333B;
  --L-accent-line: #0E5561;
  --L-focus: #0E5561;
  --L-err: #B23030;
  --L-opt: #ffffff;
  --L-field: #ffffff;
  --L-field-line: rgba(14, 42, 50, .30);
  --L-card-sh: 0 1px 1px rgba(11, 68, 80, .04), 0 12px 32px -16px rgba(11, 68, 80, .20);
}
/* The sun/moon button (partner pages, checkout). */
.themebtn { display: inline-grid; place-items: center; width: 34px; height: 28px; padding: 0; font-size: 15px; }
.th-sun, .th-moon { display: block; width: 1em; height: 1em; }
.th-moon { display: none; }
:root[data-theme="light"] .th-sun { display: none; }
:root[data-theme="light"] .th-moon { display: block; }
