/*
 * Lokkio design tokens for every screen: kiosk, admin, virtual locker and
 * the public pages (recipient, courier, shop, payment, configurator).
 *
 * The palette comes from the Lokkio logo: ink #101826 for text and dark
 * surfaces, blue #2F5BFF for the primary action ("the open door"), lighter
 * blue #4D74FF on dark backgrounds, and a cool grey ramp. Shapes echo the
 * mark, five rounded squares (rx 7 on 24): radii 10/14/20 px, buttons 12 px,
 * no gradients, restrained shadows.
 *
 * Figtree (OFL) is bundled under /brand/fonts/ so offline kiosks render the
 * same type; nothing is loaded from third-party font hosts.
 *
 * Pages use the semantic names (--brand, --accent, --ink, --success ...).
 * The old LP EXPRESS names (--green, --lime, --lilac, --gradient ...) stay
 * as aliases so older markup keeps working; do not use them in new code.
 */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/brand/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/brand/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Neutrals */
  --ink: #101826;
  --ink-2: #2a3344;
  --muted: #5b6475;
  --subtle: #8a93a3;
  --line: #e3e7ef;
  --line-strong: #cdd3de;
  --surface: #f4f6fa;
  --surface-2: #e9edf4;
  --paper: #ffffff;

  /* Brand: the primary action. An operator brand on the kiosk overrides these. */
  --brand: #2f5bff;
  --brand-hover: #2449e6;
  --brand-press: #1e3fcc;
  --brand-soft: #eaf0ff;
  --brand-ink: #1e3fcc;
  --brand-on-dark: #4d74ff;
  --on-brand: #ffffff;

  /* Accent: door numbers, codes, highlights. Text on it uses --on-accent. */
  --accent: #2f5bff;
  --accent-soft: #eaf0ff;
  --on-accent: #ffffff;

  /* Secondary tone (outgoing parcels, roles) and status colours. */
  --violet: #6d5ef5;
  --violet-soft: #efedff;
  --violet-ink: #4436b8;
  --success: #12875a;
  --success-soft: #e5f5ee;
  --success-ink: #0d6b47;
  --amber: #e0a106;
  --amber-soft: #fdf3d8;
  --amber-ink: #85590a;
  --red: #d13d3d;
  --red-soft: #fdeded;
  --red-ink: #b02a2a;

  /* Old LP EXPRESS names, kept as aliases. */
  --green: var(--brand);
  --green-hover: var(--brand-hover);
  --green-press: var(--brand-press);
  --green-soft: var(--brand-soft);
  --lime: var(--accent);
  --lime-soft: var(--accent-soft);
  --lilac: var(--violet);
  --lilac-soft: var(--violet-soft);
  --lilac-ink: var(--violet-ink);
  --yellow: var(--amber);
  --gradient: var(--brand-soft);

  --r-xs: 7px;
  --r-sm: 10px;
  --r-btn: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 1px 2px rgba(16, 24, 38, .04), 0 2px 8px rgba(16, 24, 38, .04);
  --shadow-lg: 0 2px 4px rgba(16, 24, 38, .04), 0 16px 40px rgba(16, 24, 38, .10);
  --focus: 0 0 0 3px rgba(47, 91, 255, .28);

  --font: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
a { color: var(--brand-ink); }

/* Logo and wordmark. .logo-lokkio is the official SVG; .wordmark puts the
   Lokkio mark next to a text name (an operator's name, or a page title). */
.logo-lokkio { display: block; height: 28px; width: auto; flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark .mark { width: 24px; height: 24px; flex: none; background: url("/brand/lokkio-mark.svg") center / contain no-repeat; }
.wordmark.inverse { color: #fff; }
.wordmark.inverse .mark { background-image: url("/brand/lokkio-mark-white.svg"); }

/* Eyebrow label: a small blue door square before the text. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2.5px; background: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border-radius: var(--r-btn); border: 1px solid transparent; font: 700 15px/1 var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-primary:active:not(:disabled) { background: var(--brand-press); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn-soft:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--brand-ink); padding: 0 10px; }
.btn-ghost:hover:not(:disabled) { background: var(--brand-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--ink-2); }
.btn-sm { min-height: 32px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; }

/* Pills: small status chips, squared like the mark rather than fully round. */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 8px;
  font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.pill.plain::before { display: none; }
.pill-success, .pill-green { background: var(--success-soft); color: var(--success-ink); }
.pill-brand, .pill-lime { background: var(--brand-soft); color: var(--brand-ink); }
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill-red { background: var(--red-soft); color: var(--red-ink); }
.pill-violet, .pill-lilac { background: var(--violet-soft); color: var(--violet-ink); }
.pill-grey { background: var(--surface); color: var(--muted); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-flat { background: var(--surface); border-radius: var(--r-lg); }

/* Icon tile */
.icon-tile { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; }
.icon-tile svg { width: 22px; height: 22px; }
.tile-success, .tile-green { background: var(--success-soft); color: var(--success-ink); }
.tile-brand, .tile-lime { background: var(--brand-soft); color: var(--brand-ink); }
.tile-violet, .tile-lilac { background: var(--violet-soft); color: var(--violet-ink); }
.tile-amber { background: var(--amber-soft); color: var(--amber-ink); }

svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
