/* Public site e-cmr.com. Ported from prototyp/strona/strona.css (1.10.2026); the prototype stays the design spec.
   Visual changes go to the prototype first, then here. */
/* ==========================================================================
   eCMR — public site (e-cmr.com), version 2026.09
   Direction: grid of thin lines, two-tone headings, hazy map of Europe behind the home hero (route map on inner pages), bento with mock-ups
   + seohost ("live" bar, search under the heading, struck-through price).
   Motion: transform/opacity, springy curves, reduced-motion = final state without motion.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;
  --paper: #ffffff;
  --paper-2: #f6f7fb;
  --paper-3: #eef0f7;
  --ink: #0a0f2c;
  --ink-2: #43486a;
  --ink-3: #676c8e;
  --line: #e6e8f1;
  --line-2: #d5d8e6;
  --rail: rgba(10, 15, 44, .065);
  --rail-d: rgba(10, 15, 44, .05);

  --brand: #5b3df0;
  --btn: #5b3df0;
  --btn-h: #4a2dd8;
  --brand-ink: #4526d6;
  --brand-soft: #efecff;
  --pink: #ff3d6e;
  --coral: #ff7a50;
  --amber: #ffb547;
  --ok: #0d8750;
  --ok-soft: #e0f5e9;
  --warn: #9d5b00;
  --warn-soft: #fff2d9;
  --danger: #cf2a1f;
  --danger-soft: #fdecea;

  --ui: #ffffff;
  --ui-2: #f7f8fb;
  --ui-3: #eceef5;
  --ui-line: #e4e6ef;
  --ui-line-2: #d1d5e3;

  --accent: #5b3df0;       /* brand mark (brandMark) */
  --on-accent: #ffffff;

  --sh-card: 0 1px 2px rgba(10, 15, 44, .04), 0 8px 24px -12px rgba(10, 15, 44, .12);
  --sh-float: 0 50px 100px -20px rgba(50, 50, 93, .25), 0 30px 60px -30px rgba(0, 0, 0, .3);
  --sh-mk: 0 1px 1px rgba(10, 15, 44, .03), 0 12px 32px -14px rgba(40, 30, 110, .28);

  --map-dot: #bfc3d9;
  --map-dot-2: #9384f0;
  --map-a: #5b3df0;
  --map-b: #ff3d6e;
  --map-ink: #0a0f2c;
  --map-card: #ffffff;
  --logo-bg: #ffffff;

  --f-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-text: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --wrap: 1120px;
  --pad: clamp(16px, 4vw, 32px);
  --hdr-h: 64px;
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.34, 1.36, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0a0a19; --paper-2: #0f1025; --paper-3: #161834; --ink: #eef0ff; --ink-2: #b6b9d8; --ink-3: #8b8fb2;
    --line: #20233f; --line-2: #2d3057; --rail: rgba(255, 255, 255, .06); --rail-d: rgba(255, 255, 255, .045);
    --brand: #8d7bff; --btn: #6a4ff5; --btn-h: #7b63ff; --brand-ink: #b5aaff; --brand-soft: #1c1944;
    --ok: #44d094; --ok-soft: #0e2a1d; --warn: #f2aa45; --warn-soft: #2d210c; --danger: #ff7166; --danger-soft: #3a1512;
    --ui: #131430; --ui-2: #181a3a; --ui-3: #222550; --ui-line: #292c58; --ui-line-2: #393d72;
    --accent: #6a4ff5;
    --sh-card: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --sh-float: 0 50px 100px -20px rgba(0, 0, 0, .6), 0 30px 60px -30px rgba(0, 0, 0, .7);
    --sh-mk: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .75);
    --map-dot: #262a4f; --map-dot-2: #463c9d; --map-a: #8d7bff; --map-b: #ff5a85; --map-ink: #eef0ff; --map-card: #1b1d40; --logo-bg: #0a0a19;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a0a19; --paper-2: #0f1025; --paper-3: #161834; --ink: #eef0ff; --ink-2: #b6b9d8; --ink-3: #8b8fb2;
  --line: #20233f; --line-2: #2d3057; --rail: rgba(255, 255, 255, .06); --rail-d: rgba(255, 255, 255, .045);
  --brand: #8d7bff; --btn: #6a4ff5; --btn-h: #7b63ff; --brand-ink: #b5aaff; --brand-soft: #1c1944;
  --ok: #44d094; --ok-soft: #0e2a1d; --warn: #f2aa45; --warn-soft: #2d210c; --danger: #ff7166; --danger-soft: #3a1512;
  --ui: #131430; --ui-2: #181a3a; --ui-3: #222550; --ui-line: #292c58; --ui-line-2: #393d72;
  --accent: #6a4ff5;
  --sh-card: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --sh-float: 0 50px 100px -20px rgba(0, 0, 0, .6), 0 30px 60px -30px rgba(0, 0, 0, .7);
  --sh-mk: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .75);
  --map-dot: #262a4f; --map-dot-2: #463c9d; --map-a: #8d7bff; --map-b: #ff5a85; --map-ink: #eef0ff; --map-card: #1b1d40; --logo-bg: #0a0a19;
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .35s ease !important; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-text); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--brand) 26%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.tnum, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.center { justify-content: center; }
.center { text-align: center; }
.muted { color: var(--ink-2); }

/* sections that once carried vertical guide lines ("rails", removed 9.11.2026 on the owner's request) */
.rails { position: relative; }
.rails > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ typography */
.display, .h1, .h2, .h3, .h4 { font-family: var(--f-display); color: var(--ink); font-weight: 500; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.35rem, 1.1rem + 3.35vw, 3.55rem); line-height: 1.04; letter-spacing: -.037em; }
.h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.18; letter-spacing: -.022em; }
.h4 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.012em; }
.tone { color: var(--ink-3); }
.h2.split { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.h2.center { text-align: center; margin-inline: auto; }
.lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.22rem); line-height: 1.55; color: var(--ink-2); max-width: 640px; margin: 20px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 14px/1.2 var(--f-text); color: var(--brand-ink); letter-spacing: .005em; }
.eyebrow-pink { color: var(--pink); }
.link-arr { display: inline-flex; align-items: center; gap: 2px; color: var(--brand-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.link-arr:hover { color: var(--brand); }
.tag-new { font: 700 10.5px/1 var(--f-text); font-style: normal; letter-spacing: .02em; text-transform: uppercase; color: var(--pink); background: color-mix(in oklab, var(--pink) 12%, transparent); padding: 3px 6px; border-radius: 6px; vertical-align: 1px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 12.5px/1 var(--f-text); padding: 5px 9px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* hover arrow as in Stripe: the head moves, the shaft is drawn in */
.arr { position: relative; display: inline-block; width: .72em; height: .72em; margin-left: .3em; flex: none; }
.arr::after { content: ""; position: absolute; right: .06em; top: 50%; width: .4em; height: .4em; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: translate(0, -50%) rotate(45deg); transition: transform .22s var(--e-out); }
.arr::before { content: ""; position: absolute; left: -.05em; top: 50%; width: .62em; height: 1.8px; background: currentColor; transform: translateY(-50%) scaleX(0); transform-origin: left; transition: transform .22s var(--e-out); border-radius: 2px; }
:is(a, button):hover > .arr::before, :is(a, button):focus-visible > .arr::before { transform: translateY(-50%) scaleX(1); }
:is(a, button):hover > .arr::after, :is(a, button):focus-visible > .arr::after { transform: translate(.2em, -50%) rotate(45deg); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 var(--f-text); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .12s var(--e-out);
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 1px 2px rgba(20, 10, 80, .2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--btn-h); }
.btn-soft { background: var(--paper); color: var(--brand-ink); border-color: var(--line-2); }
.btn-soft:hover { border-color: color-mix(in oklab, var(--brand) 55%, var(--line-2)); background: color-mix(in oklab, var(--brand-soft) 45%, var(--paper)); }
.btn-light { background: #fff; color: #3a1fc8; }
.btn-light:hover { background: #f1eeff; }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, opacity .2s, transform .12s; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .38; pointer-events: none; }
kbd { font: 600 .82em/1 var(--f-mono); padding: .22em .45em; border-radius: .35em; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); }

/* ------------------------------------------------------------------ "live" bar (seohost) */
.topbar { position: relative; z-index: 52; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.tb-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.tb-stats { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.tb-stats li { display: inline-flex; align-items: center; gap: 7px; }
.tb-stats li > svg { color: var(--ink-3); }
.tb-pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font: 650 12.5px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.tb-pill-n { background: var(--brand-soft); color: var(--brand-ink); }
.tb-pill.is-bump { animation: bump .7s var(--e-spring); }
@keyframes bump { 30% { transform: scale(1.12); } 100% { transform: none; } }
.tb-news { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 520px; }
.tb-view { position: relative; height: 40px; flex: 1; overflow: hidden; min-width: 0; }
.tb-track { list-style: none; margin: 0; padding: 0; }
.tb-track li { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; opacity: 0; transform: translateY(100%); transition: transform .55s var(--e-out), opacity .45s; }
.tb-track li.is-on { opacity: 1; transform: none; }
.tb-track li.is-up { opacity: 0; transform: translateY(-100%); }
.tb-track li.is-down { opacity: 0; transform: translateY(100%); }
.tb-track li.from-down { transition: none; transform: translateY(100%); }
.tb-track li.from-up { transition: none; transform: translateY(-100%); }
.tb-track a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--ink-2); }
.tb-track a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tb-track em { font-style: normal; font-weight: 700; color: var(--brand-ink); margin-right: 8px; }
.tb-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); cursor: pointer; flex: none; }
.tb-btn:hover { color: var(--ink); border-color: var(--ink-3); }

/* ------------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.hdr.is-stuck { background: color-mix(in srgb, var(--paper) 76%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.hdr.dd-open { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; border-radius: 8px; }
/* production logo (the same files e-cmr.com serves); white variant in the dark theme */
.logo-img { display: block; width: 120px; height: auto; }
.logo-img-dark { display: none; }
:root[data-theme="dark"] .logo-img-light { display: none; }
:root[data-theme="dark"] .logo-img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img-light { display: none; }
  :root:not([data-theme="light"]) .logo-img-dark { display: block; }
}
.nav { flex: 1; min-width: 0; }
.nav-l { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-t { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 9px; background: none; font: 500 15px/1 var(--f-text); color: var(--ink); cursor: pointer; text-decoration: none; transition: color .2s, background-color .2s; }
.nav-t:hover { color: var(--ink-2); }
.nav-t[aria-expanded="true"], .nav-t[aria-current="page"], .nav-t.is-cur { color: var(--brand-ink); }
.nav-t .chev { transition: transform .3s var(--e-out); opacity: .7; }
.nav-t[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr-login { font: 500 15px/1 var(--f-text); color: var(--ink); text-decoration: none; padding: 9px 10px; border-radius: 9px; }
.hdr-login:hover { color: var(--brand-ink); }
.hdr-act .icon-btn { width: 36px; height: 36px; border-color: transparent; background: transparent; }
.hdr-act .icon-btn:hover { background: var(--paper-2); }
.hdr-panel .av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 10.5px; margin-right: 4px; }
/* language picker as on production: a flag button with all 26 languages (flag + native name) in a list */
.lang { position: relative; }
.lang-flag { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 12%, transparent); }
.lang-b { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); font: inherit; }
.lang-b .chev { transition: transform .25s var(--e-out); }
.lang.is-open .lang-b .chev { transform: rotate(180deg); }
.hdr-lang .lang-b { height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.hdr-lang .lang-b:hover, .hdr-lang.is-open .lang-b { background: var(--paper-2); color: var(--ink); }
.hdr-lang .lang-b .lang-flag { width: 22px; height: 16px; }
.lang-list { margin: 0; padding: 0; list-style: none; }
.lang-list[hidden] { display: none; }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 1.2; color: var(--ink-2); text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--paper-2); color: var(--ink); }
.lang-list a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.lang-ok { margin-left: auto; flex: none; color: var(--ok); }
.hdr-lang .lang-list { position: absolute; top: calc(100% + 12px); right: -8px; z-index: 60; width: min(680px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 6px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-float); }
.hdr-lang .lang-list[hidden] { display: none; }
/* narrow desktops (1024-1180): the flag button joined the header, so the header items move closer together */
@media (min-width: 1024px) and (max-width: 1180px) {
  .hdr-in { gap: 16px; }
  .hdr-act { gap: 4px; }
  .nav-t { padding-inline: 8px; }
  .hdr-lang .lang-b .chev { display: none; }
}
@media (min-width: 1024px) and (max-width: 1100px) { .hdr-act > .icon-btn[data-theme-btn] { display: none; } }
.dr-lang { border-bottom: 1px solid var(--line); }
.dr-lang .lang-b { display: flex; width: 100%; gap: 10px; padding: 18px 2px; border: 0; background: none; font: 600 18px/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.dr-lang .lang-b .chev { margin-left: auto; }
.dr-lang .lang-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0 0 14px; }
.dr-lang .lang-list[hidden] { display: none; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 17px; height: 1.8px; border-radius: 2px; background: var(--ink); }

/* mega menu: one panel that morphs in size and position */
.dd { position: absolute; left: 0; right: 0; top: 100%; height: 0; pointer-events: none; }
.dd-bg, .dd-sec { position: absolute; top: 6px; left: 0; }
.dd-bg {
  background: var(--paper); border-radius: 16px; box-shadow: var(--sh-float), 0 0 0 1px var(--line);
  opacity: 0; scale: .97; transform-origin: 50% 0;
  transition: transform .42s var(--e-out), width .42s var(--e-out), height .42s var(--e-out), opacity .22s, scale .3s var(--e-out);
}
.dd-caret { position: absolute; top: 0; left: 0; width: 14px; height: 14px; background: var(--paper); border-radius: 3px 0 0 0; box-shadow: -1px -1px 0 var(--line); opacity: 0; transition: transform .42s var(--e-out), opacity .2s; }
.dd.is-open .dd-bg, .dd.is-open .dd-caret { opacity: 1; scale: 1; }
.dd-sec { opacity: 0; visibility: hidden; transition: opacity .22s, translate .42s var(--e-out), visibility 0s .42s; }
.dd-sec.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s .06s, translate .42s var(--e-out), visibility 0s; }
.dd-sec.from-r { translate: 48px 0; transition: none; }
.dd-sec.from-l { translate: -48px 0; transition: none; }
.dd-sec.to-l { translate: -48px 0; }
.dd-sec.to-r { translate: 48px 0; }
.dd:not(.is-open) .dd-sec { opacity: 0 !important; visibility: hidden; pointer-events: none; }
.dd.is-instant .dd-bg, .dd.is-instant .dd-caret, .dd.is-instant .dd-sec { transition: opacity .22s, scale .3s var(--e-out) !important; }
#dd-produkty { width: min(1040px, calc(100vw - 32px)); }
#dd-rozwiazania { width: min(760px, calc(100vw - 32px)); }
#dd-dev { width: min(680px, calc(100vw - 32px)); }
.dd-body { display: grid; }
.dd-prod { grid-template-columns: 1fr 1fr 1fr 260px; }
.dd-sol { grid-template-columns: 1fr 250px; }
.dd-dev { grid-template-columns: 1fr 280px; }
.dd-col { padding: 22px 14px 18px; }
.dd-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd-2 { grid-template-columns: 1fr 1fr; }
.dd-stack { display: grid; align-content: start; }
.dd-stack .dd-col + .dd-col { padding-top: 4px; }
.dd-h { margin: 0 10px 10px; font: 600 12.5px/1 var(--f-text); color: var(--ink-3); letter-spacing: .01em; }
.dd-it { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 11px; text-decoration: none; color: var(--ink); transition: background-color .18s; }
.dd-it:hover, .dd-it:focus-visible { background: var(--paper-2); }
.dd-it b { display: block; font: 600 14px/1.3 var(--f-text); }
.dd-it small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.dd-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; background: hsl(var(--h) 90% 96%); color: hsl(var(--h) 72% 48%); transition: background .25s, color .25s, transform .3s var(--e-spring); }
.dd-it:hover .dd-ic { background: linear-gradient(135deg, hsl(var(--h) 85% 60%), hsl(calc(var(--h) + 40) 90% 62%)); color: #fff; transform: scale(1.06); }
:root[data-theme="dark"] .dd-ic { background: hsl(var(--h) 45% 17%); color: hsl(var(--h) 95% 78%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dd-ic { background: hsl(var(--h) 45% 17%); color: hsl(var(--h) 95% 78%); } }
.dd-aside { background: var(--paper-2); border-left: 1px solid var(--line); padding: 22px 18px; border-radius: 0 16px 0 0; display: grid; align-content: start; gap: 10px; }
.dd-sol .dd-aside, .dd-dev .dd-aside { border-radius: 0 16px 16px 0; }
.dd-aside .dd-h { margin: 0; }
.dd-feat { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.dd-feat b { font: 600 15px/1.3 var(--f-display); }
.dd-feat small { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.dd-thumb { display: block; height: 126px; border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); padding: 10px; --mk: 6.4px; pointer-events: none; transition: transform .35s var(--e-out), box-shadow .35s; }
.dd-feat:hover .dd-thumb { transform: translateY(-2px); box-shadow: var(--sh-card); }
.dd-quote blockquote { margin: 4px 0 0; font: 500 16px/1.4 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.dd-who { display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; }
.dd-who b { display: block; font-size: 13.5px; }
.dd-who small { font-size: 12.5px; color: var(--ink-3); }
.dd-code { background: #0b0b20; border-left-color: transparent; color: #d6d8f5; }
.dd-code pre { margin: 0; font: 12px/1.65 var(--f-mono); white-space: pre; overflow: hidden; }
.dd-code .link-arr { color: #c4baff; font-size: 14px; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.dd-foot a:not(.link-arr) { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(12, 10, 40, .16); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* drawer on a phone */
.drawer {
  position: fixed; inset: 0; z-index: 80; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; opacity: 0; transform: translateY(-10px) scale(.99); transition: opacity .28s, transform .38s var(--e-out);
}
.drawer.is-on { opacity: 1; transform: none; }
/* display:flex above would override [hidden]; a closed drawer must not cover the page */
.drawer[hidden] { display: none; }
.dr-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; height: var(--hdr-h); padding: 0 var(--pad); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.dr-top .logo { margin-right: auto; }
.dr-nav { padding: 8px var(--pad) 16px; flex: 1; }
.dr-g { border-bottom: 1px solid var(--line); }
.dr-g summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font: 600 18px/1 var(--f-display); letter-spacing: -.01em; cursor: pointer; }
.dr-g summary::-webkit-details-marker { display: none; }
.dr-g summary .chev { width: 14px; height: 14px; transition: transform .3s var(--e-out); }
.dr-g[open] summary .chev { transform: rotate(180deg); }
.dr-g::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--e-out), content-visibility .35s allow-discrete; }
.dr-g[open]::details-content { block-size: auto; }
.dr-b { display: grid; gap: 2px; padding-bottom: 14px; }
.dr-b .dd-h { margin: 12px 10px 6px; }
.dr-l { display: block; padding: 18px 2px; font: 600 18px/1 var(--f-display); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dr-auth { position: sticky; bottom: 0; display: grid; gap: 8px; padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ HERO */
.hero { position: relative; overflow: clip; padding-top: clamp(40px, 7vw, 88px); }
.hero-bg { position: absolute; inset: calc(-1 * (var(--hdr-h) + 40px)) 0 0 0; pointer-events: none; z-index: 0 !important; }
/* Route map behind the hero (site-hero-map.tpl): a dot graticule on a soft brand wash, a faint road network and one
   CMR route with its stops (loading, border, destination). The map is anchored to the content column, not to the
   viewport, so the route keeps running under the mock-ups at every desktop width. Static; the route is drawn once on
   load only when motion is allowed. */
.hero-map-dots {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, color-mix(in oklab, var(--ink) 15%, transparent) 1px, transparent 1.5px),
    radial-gradient(48% 62% at 76% 38%, color-mix(in oklab, var(--brand-soft) 90%, transparent), transparent 74%);
  background-size: 24px 24px, 100% 100%;
  background-position: calc(50% + 12px) 4px, 0 0;
  -webkit-mask-image: radial-gradient(56% 74% at 76% 40%, #000 28%, transparent 80%);
  mask-image: radial-gradient(56% 74% at 76% 40%, #000 28%, transparent 80%);
}
.hero-map {
  position: absolute; top: 0; left: calc(50% - 746px); width: 1900px; max-width: none; height: 714px; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 19%, #000 37%), linear-gradient(#000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 19%, #000 37%), linear-gradient(#000 84%, transparent);
  mask-composite: intersect;
}
.hm-roads path { fill: none; stroke: var(--ink); stroke-opacity: .085; stroke-width: 1; }
.hm-nodes circle { fill: var(--paper); stroke: var(--ink); stroke-opacity: .2; stroke-width: 1; }
.hm-route { fill: none; stroke: var(--brand); stroke-opacity: .7; stroke-width: 1.6; stroke-linecap: round; }
.hm-route-next { fill: none; stroke: var(--brand); stroke-opacity: .55; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .5 7; }
.hm-stop { fill: var(--paper); stroke: var(--brand); stroke-width: 1.6; }
.hm-stop.is-done { fill: var(--brand); stroke: var(--paper); stroke-width: 2; }
.hm-stop-halo { fill: color-mix(in oklab, var(--brand) 13%, transparent); }
.hm-labels text { font: 500 9.5px/1 var(--f-mono); letter-spacing: .08em; fill: var(--ink-3); fill-opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .hm-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hm-draw 1.8s var(--e-out) .3s forwards; }
  .hm-route-next, .hm-stops, .hm-labels { opacity: 0; animation: hm-fade .9s ease-out 1.1s forwards; }
}
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
@keyframes hm-fade { to { opacity: 1; } }
/* Home hero backdrop (site-hero-europe.tpl): a hazy, low-contrast map of Europe. The land is one small SVG used as a
   mask (so it takes the theme colour) and blurred; the routes arc like the panel map, the stops glow softly (blue
   loading, orange on the road, green delivered). The map is anchored to the content column, fades out under the copy
   and at the bottom, and is static apart from a one-time fade-in when motion is allowed. */
.hero-eu {
  --eu-land: color-mix(in oklab, var(--brand) 8%, var(--paper-2));
  --eu-route: var(--brand);
  --eu-load: #3b82f6; --eu-move: #ff9a3d; --eu-done: #19b46a;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 18%, #000 52%), linear-gradient(transparent, #000 20%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 18%, #000 52%), linear-gradient(transparent, #000 20%, #000 72%, transparent);
  mask-composite: intersect;
}
.eu-map {
  position: absolute; width: 1700px; aspect-ratio: 1600 / 1443; left: calc(50% - 773px); top: calc(50% - 707px);
  /* haze: the map dissolves into the page before its own edges, so wide screens never see a border */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.eu-land {
  position: absolute; inset: 0; background: var(--eu-land);
  -webkit-mask: url(../img/europe-land.svg) center / 100% 100% no-repeat;
  mask: url(../img/europe-land.svg) center / 100% 100% no-repeat;
  filter: blur(2.5px);
}
.eu-net {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  /* routes and stops step back under the copy column (12-46% of the map box at every desktop width) */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .12) 38%, #000 52%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .12) 38%, #000 52%);
}
.eu-routes path { fill: none; stroke: var(--eu-route); stroke-opacity: .34; stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eu-dot { stroke: var(--paper); stroke-width: 1.5; }
.is-load .eu-dot { fill: var(--eu-load); } .is-load .eu-glow { fill: url(#eu-g-load); }
.is-move .eu-dot { fill: var(--eu-move); } .is-move .eu-glow { fill: url(#eu-g-move); }
.is-done .eu-dot { fill: var(--eu-done); } .is-done .eu-glow { fill: url(#eu-g-done); }
.eu-g-load stop { stop-color: var(--eu-load); }
.eu-g-move stop { stop-color: var(--eu-move); }
.eu-g-done stop { stop-color: var(--eu-done); }
.eu-pts { opacity: .8; }
:root[data-theme="dark"] .hero-eu { --eu-land: color-mix(in oklab, var(--brand) 8%, var(--paper-2)); --eu-load: #5b9dff; --eu-move: #ffa95c; --eu-done: #3fd08c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-eu { --eu-land: color-mix(in oklab, var(--brand) 8%, var(--paper-2)); --eu-load: #5b9dff; --eu-move: #ffa95c; --eu-done: #3fd08c; } }
@media (prefers-reduced-motion: no-preference) {
  .eu-map { animation: eu-in 1.4s var(--e-out) .15s both; }
}
@keyframes eu-in { from { opacity: 0; scale: 1.025; } }
@media (max-width: 1023px) {
  .hero-eu {
    opacity: .75;
    -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 55%, transparent 85%);
    mask-image: linear-gradient(transparent, #000 12%, #000 55%, transparent 85%);
  }
  .eu-map { width: 1100px; left: auto; right: -330px; top: -70px; }
  .eu-land { filter: blur(1.5px); }
  .eu-net { -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 40%, #000 70%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 40%, #000 70%); }
  .eu-net { opacity: .7; }
  .eu-pts { opacity: .6; }
}
.hero-in { display: grid; grid-template-columns: minmax(0, 590px) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-copy { padding-top: 12px; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.hero-live b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero .display .tone { color: color-mix(in oklab, var(--ink-3) 88%, var(--brand)); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 14px 9px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 600 14.5px/1 var(--f-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.btn-google:hover { border-color: var(--ink-3); box-shadow: var(--sh-card); }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--ink-2); }
.hero-ticks li { display: inline-flex; gap: 6px; align-items: center; }
/* official store badges (the files production uses), same height, Apple's clear space of a quarter of the height */
.hero-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-stores a { display: block; line-height: 0; border-radius: 7px; }
.hero-stores a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.hero-stores img { display: block; width: auto; height: 40px; }
.hero-stores + .hero-ticks { margin-top: 22px; }
/* home hero fills the first screen below the sticky header and grows when its content is taller (phones) */
.hero-full { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--hdr-h)); min-height: calc(100svh - var(--hdr-h)); padding-block: clamp(32px, 5vh, 64px); }
.hero-full > .hero-in { flex: none; align-items: center; }
.hero-full .hero-copy { padding-top: 0; }
/* keep the route under the mock-ups now that the content sits in the middle of the screen */
@media (min-width: 1024px) { .hero-full .hero-map { top: calc(50% - 383px); } }
.hero-ticks svg { color: var(--ok); }

/* rolling digits of the counter */
.roll { display: inline-flex; overflow: hidden; line-height: 1.2; height: 1.2em; vertical-align: bottom; }
.rd { display: inline-block; height: 1.2em; overflow: hidden; }
.rd-s { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1.2em)); transition: transform .8s var(--e-out); }
.rd-s i { font-style: normal; height: 1.2em; line-height: 1.2em; }
.rs { display: inline-block; }

/* live product composition */
.hero-vis { position: relative; width: 620px; height: 520px; transform-origin: 0 0; scale: var(--s, 1); margin-bottom: calc(520px * (var(--s, 1) - 1)); font-size: 12px; }
.hv-layer { position: absolute; will-change: translate; }
.hv-win { left: 0; top: 34px; width: 548px; height: 392px; background: var(--ui); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-float), 0 0 0 1px var(--ui-line); }
.hv-body { display: grid; grid-template-columns: 46px 1fr; height: calc(100% - 2.4em); }
.hv-side { background: var(--ui-2); border-right: 1px solid var(--ui-line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.hv-side i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3); }
.hv-side i.on { background: var(--brand-soft); color: var(--brand-ink); }
.hv-main { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hv-top { display: flex; justify-content: space-between; align-items: center; }
.hv-top b { font: 600 15px/1 var(--f-display); letter-spacing: -.01em; }
.hv-st { font: 600 12px/1 var(--f-text); padding: 6px 10px; border-radius: 999px; background: var(--ui-3); color: var(--ink-2); transition: background-color .35s, color .35s; }
.hv-st.brand { background: var(--brand-soft); color: var(--brand-ink); }
.hv-st.ok { background: var(--ok-soft); color: var(--ok); }
.hv-order { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: 9px; padding: 7px 10px; }
.hv-order > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-ai { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--f-text); padding: 4px 8px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 14%, transparent), color-mix(in oklab, var(--pink) 14%, transparent)); color: var(--brand-ink); white-space: nowrap; }
.hv-ai b { font-variant-numeric: tabular-nums; }
.hv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.hv-f { position: relative; border: 1px solid var(--ui-line); border-radius: 9px; padding: 6px 9px; height: 46px; background: var(--ui); transition: border-color .5s, background-color .5s; overflow: hidden; }
.hv-f small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-3); line-height: 1.3; }
.hv-f .no { font: 500 9.5px/1.4 var(--f-mono); background: var(--ui-3); border-radius: 4px; padding: 0 4px; color: var(--ink-3); }
.hv-f b { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.hv-f:not(.is-f) b::before { content: ""; display: block; height: 8px; width: 62%; margin-top: 5px; border-radius: 4px; background: linear-gradient(90deg, var(--ui-3) 30%, var(--ui-2) 50%, var(--ui-3) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.hv-f.is-f { animation: hvfill .7s var(--e-out); }
.hv-f.is-f b { animation: hvin .45s var(--e-out); }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes hvfill { 0% { border-color: var(--brand); background: var(--brand-soft); } 100% { border-color: var(--ui-line); background: var(--ui); } }
@keyframes hvin { from { opacity: 0; transform: translateY(5px); filter: blur(3px); } }
.hv-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.hv-sigs { display: flex; gap: 6px; align-items: center; }
.hv-sig { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ui-3); color: var(--ink-3); font: 700 11px/1 var(--f-text); transition: background-color .35s, color .35s; }
.hv-sig.on { background: var(--ok); color: #fff; animation: sigpop .5s var(--e-spring); }
@keyframes sigpop { 0% { transform: scale(.7); } 100% { transform: none; } }
.hv-sigs small { margin-left: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hv-send { display: inline-flex; align-items: center; gap: 8px; background: var(--btn); color: #fff; font: 600 12.5px/1 var(--f-text); padding: 9px 12px; border-radius: 9px; transition: transform .15s var(--e-out), box-shadow .2s; box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--brand) 70%, transparent); }
.hv-send.is-press { transform: scale(.94); }
.hv-phone { right: -64px; top: 104px; }
.hv-phone .mk-phone { font-size: 12px; }
.hv-ph { padding: 4px 14px; }
.hv-ph small { font-size: 11px; color: var(--ink-3); }
.hv-ph-t { display: block; font: 700 16px/1.2 var(--f-display); margin: 2px 0 10px; transition: color .4s; }
.is-signed .hv-ph-t { color: var(--ok); }
.hv-ph-qr { width: 128px; margin: 0 auto; padding: 8px; background: #fff; color: #111; border-radius: 12px; border: 1px solid var(--ui-line); opacity: .28; filter: blur(1.6px); transition: opacity .6s, filter .6s; }
.is-signed .hv-ph-qr { opacity: 1; filter: none; }
.hv-ph-pl { display: flex; gap: 6px; justify-content: center; margin-top: 10px; font-size: 11px; }
.hv-ph-s { display: grid; gap: 5px; margin-top: 10px; }
.hv-ph-s span { display: flex; justify-content: space-between; font-size: 11.5px; padding: 6px 9px; border-radius: 8px; background: var(--ui-2); color: var(--ink-3); transition: color .3s; }
.hv-ph-s span::after { content: "czeka"; color: var(--ink-3); }
.hv-ph-s span.on { color: var(--ink); }
.hv-ph-s span.on::after { content: "✓ podpisano"; color: var(--ok); font-weight: 600; }
.hv-toast { left: -34px; bottom: 44px; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--ui) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: var(--sh-float), 0 0 0 1px var(--ui-line); opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .35s, transform .6s var(--e-spring); }
.hv-toast.is-on { opacity: 1; transform: none; }
.hv-ok { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; }
.hv-toast b { display: block; font-size: 14px; }
.hv-toast small { font-size: 12px; color: var(--ink-3); }
.hv-pill { right: 170px; top: 4px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--ui); box-shadow: var(--sh-mk), 0 0 0 1px var(--ui-line); font: 600 12.5px/1 var(--f-text); color: var(--brand-ink); opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .35s, transform .55s var(--e-spring); }
.hv-pill.is-on { opacity: 1; transform: none; }

/* customer logos (made-up brands) */
.logos { margin-top: clamp(40px, 6vw, 72px); overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); background: color-mix(in srgb, var(--paper) 55%, transparent); }
.logos-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-track ul { display: flex; align-items: center; gap: 64px; padding: 0 32px; margin: 0; list-style: none; }
.logos-track li { color: var(--ink-2); opacity: .72; transition: opacity .2s; }
.logos-track li:hover { opacity: 1; }
.logos-track svg { height: 26px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec-tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec-soft { background: var(--paper-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.sec-head .h2.split { margin: 0; }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--e-out), transform 1s var(--e-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ BENTO */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bc { grid-column: span 2; position: relative; display: flex; flex-direction: column; min-height: 440px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: box-shadow .4s var(--e-out), transform .4s var(--e-out), border-color .3s; }
.bc:hover { box-shadow: var(--sh-card); border-color: var(--line-2); }
.bc-w4 { grid-column: span 4; }
.bc-w3 { grid-column: span 3; }
.bc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; position: relative; z-index: 2; }
.bc-head h3 { margin: 0; font: 500 20px/1.3 var(--f-display); letter-spacing: -.014em; max-width: 440px; }
.bc-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; flex: none; background: var(--brand-soft); color: var(--brand-ink); cursor: pointer; transition: background-color .2s, transform .3s var(--e-spring); }
.bc-x:hover { background: var(--btn); color: #fff; transform: scale(1.06); }
.bc-vis { position: relative; flex: 1; display: grid; place-items: center; padding: 22px 24px 26px; container-type: inline-size; }
.bc-mk { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; --mk: 13px; }
.bc-blob { position: absolute; left: -15%; right: -15%; bottom: -55%; height: 95%; border-radius: 50%; background: conic-gradient(from 210deg at 50% 50%, var(--g1, #5b3df0), var(--g2, #ff3d6e), var(--g3, #ffb547), var(--g1, #5b3df0)); filter: blur(46px); opacity: .45; transition: transform 1.2s var(--e-out), opacity .6s; z-index: 0; }
.bc:hover .bc-blob { transform: translateY(-4%) scale(1.06); opacity: .55; }
.bc[data-b="mail"] { --g1: #7c5cff; --g2: #ff7ab8; --g3: #ffc38a; }
.bc[data-b="sign"] { --g1: #ff3d6e; --g2: #ff9a62; --g3: #b46bff; }
.bc[data-b="verdict"] { --g1: #33c28a; --g2: #5b3df0; --g3: #7fd3ff; }
.bc[data-b="dispatch"] { --g1: #5b3df0; --g2: #3fb6ff; --g3: #ff7ab8; }
.bc[data-b="tracking"] { --g1: #ff7a50; --g2: #ff3d6e; --g3: #7c5cff; }
.bc[data-b="reports"] { --g1: #7c5cff; --g2: #29c4ae; --g3: #ffd166; }
.bc[data-b="portal"] { --g1: #2ec4b6; --g2: #5b3df0; --g3: #ff9ac2; }
.bc[data-b="invoicing"] { --g1: #ffb547; --g2: #ff3d6e; --g3: #7c5cff; }
.bc[data-b="timocom"] { --g1: #3f8cff; --g2: #7c5cff; --g3: #ff7a50; }
.bc[data-b="tacho"] { --g1: #5b3df0; --g2: #ff7ab8; --g3: #ffd166; }
.bc[data-b="fleet"] { --g1: #33c28a; --g2: #3fb6ff; --g3: #5b3df0; }
.bc[data-b="forecast"] { --g1: #7c5cff; --g2: #ff3d6e; --g3: #7fd3ff; }
.bc[data-b="tripcost"] { --g1: #ffb547; --g2: #29c4ae; --g3: #5b3df0; }
.bc[data-b="returns"] { --g1: #ff3d6e; --g2: #ffb547; --g3: #7c5cff; }
.bc[data-b="docflow"] { --g1: #2ec4b6; --g2: #5b3df0; --g3: #ffc38a; }
.bc-head h3 > .tag-new, .bc-head h3 > .soon { margin: 0 .45em 0 0; vertical-align: 2px; }
:root[data-theme="dark"] .bc-blob { opacity: .32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bc-blob { opacity: .32; } }

/* ------------------------------------------------------------------ MOCK-UPS (.mk) — em relative to --mk */
.mk { position: relative; font-size: var(--mk, 12px); line-height: 1.35; color: var(--ink); font-family: var(--f-text); text-align: left; width: 100%; }
.mk, .mk * { animation-play-state: paused; }
.mk.is-live, .mk.is-live * { animation-play-state: running; }
.mk.is-static, .mk.is-static * { animation: none !important; }
.mk b { font-weight: 600; }
.mk small { font-size: .78em; color: var(--ink-3); }
.mk em { font-style: normal; }
.mk-card { background: var(--ui); border: 1px solid var(--ui-line); border-radius: .9em; box-shadow: var(--sh-mk); }
.mk-win { background: var(--ui); border-radius: 1em; overflow: hidden; box-shadow: var(--sh-mk), 0 0 0 1px var(--ui-line); width: 100%; }
.mk-bar { display: flex; align-items: center; gap: .8em; height: 2.4em; padding: 0 .9em; background: var(--ui-2); border-bottom: 1px solid var(--ui-line); }
.mk-dots { display: flex; gap: .35em; }
.mk-dots i { width: .62em; height: .62em; border-radius: 50%; background: var(--ui-line-2); }
.mk-url { display: inline-flex; align-items: center; gap: .35em; margin-inline: auto; padding: .25em 1em; border-radius: 1em; background: var(--ui); border: 1px solid var(--ui-line); font-size: .82em; color: var(--ink-3); white-space: nowrap; }
.mk-url svg { width: .9em; height: .9em; }
.mk-body { padding: .9em; }
.mk-phone { width: 16.5em; height: 33em; padding: .55em; border-radius: 2.7em; background: #0d0d1c; box-shadow: var(--sh-float), inset 0 0 0 1.5px #2b2b44; margin-inline: auto; }
.mk-screen { position: relative; height: 100%; border-radius: 2.2em; background: var(--ui); overflow: hidden; }
.mk-status { display: flex; justify-content: space-between; align-items: center; padding: .95em 1.5em .5em; font-size: .78em; }
.mk-notch { position: absolute; left: 50%; top: .55em; width: 5.8em; height: 1.55em; border-radius: 1em; background: #0d0d1c; transform: translateX(-50%); }
.mk-chip { display: inline-flex; align-items: center; gap: .3em; font-size: .76em; font-weight: 600; line-height: 1; padding: .38em .65em; border-radius: 1em; background: var(--ui-3); color: var(--ink-2); white-space: nowrap; }
.mk-chip svg { width: 1em; height: 1em; }
.mk-chip-ok { background: var(--ok-soft); color: var(--ok); }
.mk-chip-warn { background: var(--warn-soft); color: var(--warn); }
.mk-chip-brand { background: var(--brand-soft); color: var(--brand-ink); }
.mk-av { display: inline-grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; flex: none; background: hsl(var(--h, 252) 85% 92%); color: hsl(var(--h, 252) 60% 38%); font: 700 .82em/1 var(--f-text); }
.mk .mk-av { font-size: .82em; width: 2.6em; height: 2.6em; }
.mk-plate { display: inline-flex; align-items: stretch; border: 1.5px solid #1a1a2a; border-radius: .35em; overflow: hidden; background: #fff; color: #111; font: 700 .9em/1.6 var(--f-mono); padding-right: .45em; gap: .4em; white-space: nowrap; }
.mk-plate i { font-style: normal; background: #1f4bd8; color: #ffd84a; font-size: .62em; padding: 0 .3em; display: grid; place-items: end center; }
.mk-sig { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--ui-3); color: var(--ink-3); font-size: .78em; font-weight: 700; }
.mk-sig.on { background: var(--ok); color: #fff; }
.mk-btn { display: block; text-align: center; background: var(--btn); color: #fff; font-weight: 600; font-size: .85em; padding: .75em; border-radius: .7em; }
.mk-btn-s { display: inline-flex; gap: .4em; align-items: center; padding: .5em .8em; font-size: .78em; }
.mk-btn kbd { font-size: .8em; }
.mk-seg { display: flex; background: var(--ui-3); border-radius: .6em; padding: .2em; gap: .2em; font-size: .82em; }
.mk-seg span { flex: 1; text-align: center; padding: .35em .5em; border-radius: .45em; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .25em; }
.mk-seg span.on { background: var(--ui); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 600; }
.mk-seg-s { flex: none; font-size: .72em; }
.mk-sec { display: block; font-size: .66em !important; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--ink-3); margin: .2em 0 .45em; }
.mk-dl { margin: 0; padding: 0 1em .7em; }
.mk-dl div { display: flex; justify-content: space-between; gap: 1em; align-items: center; padding: .5em 0; border-top: 1px solid var(--ui-line); }
.mk-dl dt { font-size: .78em; color: var(--ink-3); }
.mk-dl dd { margin: 0; font-size: .82em; font-weight: 600; display: inline-flex; gap: .25em; align-items: center; text-align: right; }
.mk-okt { color: var(--ok); }
.mk .qr { width: 100%; height: auto; color: #111; }

/* shared mock-up keyframes (base style = final state) */
@keyframes mk-in { 0% { opacity: 0; transform: translateY(.4em); filter: blur(2px); } 7% { opacity: 1; transform: none; filter: none; } 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes mk-pop { 0% { opacity: 0; transform: scale(.85); } 5% { opacity: 1; transform: scale(1.04); } 8% { transform: none; } 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.95); } }
@keyframes mk-row { 0% { opacity: 0; transform: translateX(-.6em); } 6% { opacity: 1; transform: none; } 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* 1. CMR from an e-mail */
.mk-mail { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.18fr); gap: .9em; align-items: center; }
.mk-mail-src { position: relative; padding: 1em; }
.mk-mail-h { display: flex; gap: .6em; align-items: center; }
.mk-mail-h b { display: block; font-size: .95em; }
.mk-mail-h small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16em; }
.mk-mail-t { font-size: .82em; color: var(--ink-2); margin: .9em 0 0; line-height: 1.75; }
.mk-mail-t mark { color: inherit; border-radius: .25em; padding: .05em .15em; background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 18%, transparent), color-mix(in oklab, var(--pink) 16%, transparent)) no-repeat 0 0 / 100% 100%; animation: mk-hl 8s calc(.5s + var(--d) * .35s) infinite both; }
@keyframes mk-hl { 0% { background-size: 0 100%; } 7% { background-size: 100% 100%; } 90% { background-size: 100% 100%; } 97%, 100% { background-size: 0 100%; } }
.mk-keys { position: absolute; top: .9em; right: .9em; display: flex; gap: .2em; animation: mk-pop 8s .2s infinite both; }
.mk-keys kbd { background: var(--ui-2); border-color: var(--ui-line-2); color: var(--ink-2); font-size: .72em; box-shadow: 0 .12em 0 var(--ui-line-2); }
.mk-flow { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--pink)); box-shadow: 0 .6em 1.4em -.5em color-mix(in oklab, var(--pink) 70%, transparent); animation: mk-spin 8s 1.2s infinite both; }
@keyframes mk-spin { 0% { transform: scale(.9) rotate(0); } 10% { transform: scale(1.12) rotate(180deg); } 20%, 100% { transform: scale(1) rotate(360deg); } }
.mk-cmr { padding: 1em; }
.mk-cmr-h { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-bottom: .75em; }
.mk-cmr-h b { font-size: .95em; }
.mk-done { animation: mk-pop 8s 3.9s infinite both; }
.mk-cmr-g { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.mk-f { position: relative; background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: .55em; padding: .45em .6em; min-height: 3.3em; animation: mk-flash 8s calc(1.5s + var(--d) * .28s) infinite both; }
.mk-f small { display: block; font-size: .7em; }
.mk-f b { display: block; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-f em { display: block; font-size: .7em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-f b, .mk-f em { animation: mk-in 8s calc(1.5s + var(--d) * .28s) infinite both; }
.mk-no { position: absolute; top: .4em; right: .5em; font: 500 .62em/1 var(--f-mono); color: var(--ink-3); }
@keyframes mk-flash { 0% { border-color: var(--ui-line); background: var(--ui-2); } 3% { border-color: var(--brand); background: var(--brand-soft); } 12%, 100% { border-color: var(--ui-line); background: var(--ui-2); } }
.mk-prog { height: .3em; border-radius: 1em; background: var(--ui-3); margin-top: .8em; overflow: hidden; }
.mk-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--pink)); transform-origin: left; animation: mk-prog 8s 1.5s infinite both; }
@keyframes mk-prog { 0% { transform: scaleX(0); } 25% { transform: scaleX(1); } 90% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
.mk-time { display: flex; align-items: center; gap: .35em; margin-top: .6em; font-size: .74em; color: var(--ink-3); }
.mk-time b { color: var(--ink); font-variant-numeric: tabular-nums; }
@container (max-width: 560px) {
  .mk-mail { grid-template-columns: 1fr; }
  .mk-mail-src, .mk-flow { display: none; }
}

/* 2. signature in the consignee's language */
.mk-sign { display: grid; place-items: center; }
.mk-langs { display: flex; gap: .3em; padding: .2em 1.1em .5em; }
.mk-langs span { font: 600 .66em/1 var(--f-mono); padding: .4em .5em; border-radius: .5em; background: var(--ui-3); color: var(--ink-3); }
.mk-langs span.on { background: var(--btn); color: #fff; }
.mk-sp { padding: 0 1.1em; }
.mk-sp > small { display: block; font-size: .7em; }
.mk-sp-t { display: block; font: 700 1.15em/1.2 var(--f-display); margin: .15em 0 .6em; letter-spacing: -.01em; }
.mk-sp-sum { display: grid; gap: .3em; font-size: .74em; color: var(--ink-2); background: var(--ui-2); border-radius: .6em; padding: .6em .7em; }
.mk-sp-sum span { display: flex; gap: .45em; align-items: center; }
.mk-sp-sum svg { width: 1.1em; height: 1.1em; color: var(--ink-3); }
.mk-sp-q { font-size: .78em; margin-top: .7em; display: grid; gap: .35em; }
.mk-sp-q .mk-seg { font-size: .95em; }
.mk-sp-q .mk-seg span.on { color: var(--ok); }
.mk-sp-l { display: block; font-size: .7em; color: var(--ink-3); margin-top: .55em; }
.mk-sp-l > span { display: block; margin-top: .25em; font-size: 1.3em; color: var(--ink); border: 1px solid var(--ui-line-2); border-radius: .45em; padding: .4em .55em; background: var(--ui); min-height: 2.1em; }
.mk-type { display: inline-block; font-style: normal !important; white-space: nowrap; overflow: hidden; vertical-align: bottom; max-width: 12em; border-right: 1.5px solid transparent; animation: mk-typing 8s 1s steps(14) infinite both; }
@keyframes mk-typing { 0% { max-width: 0; border-color: var(--brand); } 18% { max-width: 12em; border-color: var(--brand); } 22% { border-color: transparent; } 92% { max-width: 12em; } 100% { max-width: 0; border-color: transparent; } }
.mk-code { display: flex !important; gap: .35em; border: 0 !important; padding: 0 !important; background: none !important; }
.mk-code i { display: grid; place-items: center; width: 2.1em; height: 2.3em; border-radius: .45em; border: 1px solid var(--ui-line-2); font: 700 1em/1 var(--f-mono); font-style: normal; background: var(--ui); animation: mk-digit 8s calc(2.6s + var(--d) * .22s) infinite both; }
@keyframes mk-digit { 0% { color: transparent; border-color: var(--ui-line-2); } 3% { color: var(--ink); border-color: var(--brand); } 8% { border-color: var(--ui-line-2); } 92% { color: var(--ink); } 98%, 100% { color: transparent; } }
.mk-sign .mk-btn { margin-top: .75em; animation: mk-press 8s 3.8s infinite both; }
@keyframes mk-press { 0%, 2% { transform: none; } 3% { transform: scale(.95); } 5%, 100% { transform: none; } }
.mk-signed { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5em; text-align: center; background: var(--ui); opacity: 0; animation: mk-over 8s 4s infinite both; }
.mk-signed b { font: 700 1.3em/1.2 var(--f-display); }
.mk-signed small { font-size: .78em; line-height: 1.5; }
.mk-ok-ring { display: grid; place-items: center; width: 4.4em; height: 4.4em; border-radius: 50%; background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 .6em color-mix(in oklab, var(--ok) 10%, transparent); }
@keyframes mk-over { 0% { opacity: 0; transform: scale(1.04); } 5% { opacity: 1; transform: none; } 45% { opacity: 1; } 52%, 100% { opacity: 0; } }

/* 3. roadside inspection */
.mk-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1em; align-items: center; }
.mk-scan { display: grid; gap: .6em; justify-items: center; }
.mk-scan-f { position: relative; width: 7.4em; padding: .55em; background: #fff; border-radius: .8em; box-shadow: var(--sh-mk), 0 0 0 1px var(--ui-line); }
.mk-scan-f::before { content: ""; position: absolute; inset: -.35em; border-radius: 1em; border: 2px solid var(--brand); -webkit-mask: conic-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(90deg, #000 22%, transparent 22% 78%, #000 78%), linear-gradient(#000 22%, transparent 22% 78%, #000 78%); mask-composite: intersect; -webkit-mask-composite: source-in; }
.mk-laser { position: absolute; left: .3em; right: .3em; top: .5em; height: 2px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 .8em .2em color-mix(in oklab, var(--pink) 60%, transparent); animation: mk-laser 2.2s ease-in-out infinite alternate; }
@keyframes mk-laser { from { transform: translateY(0); } to { transform: translateY(6.4em); } }
.mk-vd { overflow: hidden; animation: mk-vd 7s infinite both; }
@keyframes mk-vd { 0%, 22% { opacity: 0; transform: translateY(.8em) scale(.97); } 30% { opacity: 1; transform: none; } 92% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
.mk-vd-h { display: flex; gap: .7em; align-items: center; padding: .85em 1em; background: linear-gradient(135deg, #10935a, #16b06d); color: #fff; }
.mk-vd-h b { display: block; font: 700 1.05em/1.2 var(--f-display); }
.mk-vd-h small { color: rgba(255, 255, 255, .85); font-size: .72em; }
.mk-vd-t { margin-left: auto; font: 600 .78em/1 var(--f-mono); background: rgba(255, 255, 255, .2); padding: .35em .5em; border-radius: .4em; }
.mk-vd-p { display: flex; gap: .5em; padding: .8em 1em; flex-wrap: wrap; }
@container (max-width: 400px) {
  .mk-verdict { grid-template-columns: 1fr; }
  .mk-scan { display: none; }
}

/* 4. dispatch board */
.mk-disp { display: grid; grid-template-columns: 9.4em minmax(0, 1fr); gap: .8em; }
.mk-disp-q { background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: .8em; padding: .7em; align-self: start; }
.mk-disp-q small { display: block; font-size: .72em; font-weight: 600; }
.mk-disp-q small b { color: var(--pink); }
.mk-job { background: var(--ui); border: 1px solid var(--ui-line); border-left: .25em solid var(--brand); border-radius: .45em; padding: .45em .55em; font-size: .74em; font-weight: 600; margin-top: .45em; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.mk-job em { display: block; font-size: .88em; color: var(--ink-3); font-weight: 500; }
.mk-job-ghost { animation: mk-ghost 7s infinite both; }
@keyframes mk-ghost { 0%, 7% { opacity: 1; } 9%, 90% { opacity: .25; border-style: dashed; } 97%, 100% { opacity: 1; } }
.mk-disp-b { position: relative; background: var(--ui); border: 1px solid var(--ui-line); border-radius: .8em; padding: .35em .55em .8em; box-shadow: var(--sh-mk); }
.mk-disp-r { display: grid; grid-template-columns: 7.4em repeat(4, minmax(0, 1fr)); gap: .3em; align-items: center; min-height: 3em; border-top: 1px dashed var(--ui-line); }
.mk-disp-r > * { grid-row: 1; }
.mk-disp-hd { min-height: 2.2em; border-top: 0; }
.mk-disp-hd span { font-size: .7em; font-weight: 600; color: var(--ink-3); text-align: center; }
.mk-truck { display: grid; grid-template-columns: auto 1fr; column-gap: .35em; align-items: center; font-size: .72em; grid-column: 1; }
.mk-truck svg { color: var(--ink-3); }
.mk-truck em { grid-column: 2; font-size: .9em; color: var(--ink-3); }
.mk-slot { display: flex; align-items: center; gap: .3em; min-width: 0; font-size: .68em; font-weight: 600; padding: .55em .5em; border-radius: .45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: hsl(var(--h) 90% 95%); color: hsl(var(--h) 55% 32%); border-left: .3em solid hsl(var(--h) 75% 58%); }
:root[data-theme="dark"] .mk-slot { background: hsl(var(--h) 40% 20%); color: hsl(var(--h) 90% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-slot { background: hsl(var(--h) 40% 20%); color: hsl(var(--h) 90% 82%); } }
.mk-slot.is-svc { background: repeating-linear-gradient(135deg, var(--ui-3) 0 .4em, var(--ui-2) .4em .8em); color: var(--ink-3); border-left-color: var(--ui-line-2); }
.mk-drop { height: 2.2em; border-radius: .45em; border: 1.5px dashed var(--brand); background: color-mix(in oklab, var(--brand-soft) 60%, transparent); opacity: 0; animation: mk-drop 7s infinite both; }
@keyframes mk-drop { 0%, 8% { opacity: 0; } 12%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
.mk-drag { position: relative; z-index: 3; box-shadow: 0 .1em .2em rgba(0, 0, 0, .06); animation: mk-drag 7s infinite both; }
@keyframes mk-drag {
  0% { opacity: 0; transform: translate(calc(-100% - 9em), -1.8em) rotate(-2deg) scale(1.05); }
  8% { opacity: 1; transform: translate(calc(-100% - 9em), -1.8em) rotate(-2deg) scale(1.05); box-shadow: 0 1em 2em -.6em rgba(40, 20, 120, .45); }
  30% { transform: translate(-6%, -.5em) rotate(1.5deg) scale(1.05); box-shadow: 0 1em 2em -.6em rgba(40, 20, 120, .45); }
  37% { transform: none; box-shadow: 0 .1em .2em rgba(0, 0, 0, .06); }
  90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: none; }
}
.mk-fit { position: absolute; right: .8em; bottom: -.95em; box-shadow: var(--sh-mk); animation: mk-fit 7s infinite both; }
@keyframes mk-fit { 0%, 37% { opacity: 0; transform: translateY(.4em); } 42% { opacity: 1; transform: none; } 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@container (max-width: 520px) {
  .mk-disp { grid-template-columns: 1fr; }
  .mk-disp-q { display: none; }
  .mk-drag { animation-name: mk-drag-s; }
}
@keyframes mk-drag-s { 0% { opacity: 0; transform: translateY(-3em) scale(1.05); } 10% { opacity: 1; transform: translateY(-3em) scale(1.05); } 35% { transform: none; } 90% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* 5. tracking and ETA */
.mk-track { position: relative; border-radius: 1em; overflow: hidden; aspect-ratio: 420 / 250; background: var(--ui-2); box-shadow: var(--sh-mk), 0 0 0 1px var(--ui-line); }
.mk-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-map-dot { fill: var(--ui-line-2); }
.mk-road { fill: none; stroke: var(--ui); stroke-width: 9; stroke-linecap: round; }
.mk-route-bg { fill: none; stroke: color-mix(in oklab, var(--brand) 25%, transparent); stroke-width: 5; stroke-linecap: round; }
.mk-route { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: mk-route 9s linear infinite both; }
@keyframes mk-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mk-pin-a { fill: var(--brand); stroke: var(--ui); stroke-width: 2.5; }
.mk-pin-b { fill: var(--pink); stroke: var(--ui); stroke-width: 2.5; }
.mk-truckdot { fill: var(--pink); }
.mk-truckdot circle:last-of-type { stroke: #fff; stroke-width: 2; }
.mk-halo { fill: var(--pink); opacity: .25; transform-box: fill-box; transform-origin: center; animation: mk-halo 1.6s ease-out infinite; }
@keyframes mk-halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
.mk-eta { position: absolute; top: .9em; left: .9em; padding: .7em .9em; display: grid; gap: .15em; min-width: 10em; }
.mk-eta b { font: 600 1.7em/1 var(--f-display); letter-spacing: -.02em; }
.mk-eta .mk-chip { justify-self: start; }
.mk-eta em { font-size: .7em; color: var(--ink-3); }
.mk-tl { position: absolute; left: .9em; right: .9em; bottom: .9em; display: flex; gap: .6em; padding: .6em .8em; font-size: .74em; }
.mk-tl span { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: .35em; align-items: center; color: var(--ink-3); }
.mk-tl span em { grid-column: 2; font-size: .9em; }
.mk-tl .done { color: var(--ok); font-weight: 600; }
.mk-tl .now { color: var(--ink); font-weight: 600; }
.mk-tl .now i { width: .6em; height: .6em; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 .25em color-mix(in oklab, var(--pink) 25%, transparent); }
@container (max-width: 380px) { .mk-eta em, .mk-tl span:last-child { display: none; } }

/* 6. reports */
.mk-rep { padding: 1.1em 1.2em; background: var(--ui); border: 1px solid var(--ui-line); border-radius: 1em; box-shadow: var(--sh-mk); }
.mk-rep-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .8em; }
.mk-rep-h small { display: block; font-size: .76em; }
.mk-kpi { font: 600 2.3em/1.1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mk-delta { display: inline-flex; gap: .25em; align-items: center; margin-left: .5em; font-size: .78em; font-weight: 600; color: var(--ok); }
.mk-chart { position: relative; display: flex; align-items: flex-end; gap: .45em; height: 9.5em; margin-top: 1em; border-bottom: 1px solid var(--ui-line); }
.mk-chart i { flex: 1; height: calc((var(--v) - 80) * 5%); border-radius: .3em .3em 0 0; background: linear-gradient(to top, color-mix(in oklab, var(--brand) 55%, var(--ui)), var(--brand)); transform-origin: bottom; animation: mk-bar 7s calc(var(--d) * .07s) infinite both; }
.mk-chart i.last { background: linear-gradient(to top, #ff8a9f, var(--pink)); }
@keyframes mk-bar { 0% { transform: scaleY(0); } 12% { transform: scaleY(1); } 92% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.mk-target { position: absolute; left: 0; right: 0; bottom: calc((var(--v) - 80) * 5%); border-top: 1.5px dashed var(--ok); z-index: 1; }
.mk-target em { position: absolute; right: 0; top: -1.55em; font-size: .68em; font-weight: 600; color: var(--ok); background: var(--ui); padding: 0 .3em; }
.mk-rep-f { display: flex; gap: 1em; align-items: center; margin-top: .7em; font-size: .72em; color: var(--ink-3); }
.mk-rep-f span { display: inline-flex; gap: .35em; align-items: center; }
.mk-rep-f .sw { display: inline-block; width: .7em; height: .7em; border-radius: .2em; background: var(--c); }
.mk-rep-f .r { margin-left: auto; }
@container (max-width: 380px) { .mk-rep-f .r, .mk-rep .mk-seg-s { display: none; } }

/* 7. customer portal */
.mk-po-h { display: flex; align-items: center; gap: .6em; margin-bottom: .4em; }
.mk-po-h b { font-size: .88em; flex: 1; }
.mk-logo-c { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .5em; background: linear-gradient(135deg, #0f9a8a, #2ec4b6); color: #fff; font-weight: 800; font-size: .85em; }
.mk-po-r { display: grid; grid-template-columns: minmax(0, 1fr) 4.5em auto; gap: .7em; align-items: center; padding: .6em .1em; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(.3s + var(--d) * .35s) infinite both; }
.mk-po-r b { display: block; font-size: .82em; }
.mk-po-r small { display: block; font-size: .7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bar-p { display: block; height: .4em; border-radius: 1em; background: var(--ui-3); overflow: hidden; }
.mk-bar-p i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 1em; background: var(--brand); }
.mk-bar-p.ok i { background: var(--ok); }
.mk-bar-p.now i { background: linear-gradient(90deg, var(--brand), var(--pink), var(--brand)) 0 0 / 200% 100%; animation: shimmer 2.4s linear infinite; }
.mk-dl-b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid var(--ui-line-2); color: var(--ink-3); }

/* 8. settlements */
.mk-inv-c { padding: 1em; }
.mk-inv-h { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-bottom: .4em; }
.mk-inv-h b { font-size: .9em; }
.mk-inv-r { display: grid; grid-template-columns: 1.4em minmax(0, 1fr) 5.4em auto; gap: .6em; align-items: center; padding: .5em 0; border-top: 1px solid var(--ui-line); }
.mk-inv-r b { font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cb { display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: .35em; background: var(--btn); color: #fff; border: 1.5px solid var(--btn); animation: mk-cb 8s calc(.6s + var(--d) * .45s) infinite both; }
.mk-cb svg { width: .9em; height: .9em; }
@keyframes mk-cb { 0% { background: transparent; color: transparent; border-color: var(--ui-line-2); } 3% { background: var(--btn); color: #fff; border-color: var(--btn); transform: scale(1.12); } 6% { transform: none; } 92% { background: var(--btn); color: #fff; } 98%, 100% { background: transparent; color: transparent; border-color: var(--ui-line-2); } }
.mk-marg { display: flex; align-items: center; gap: .35em; }
.mk-marg i { flex: 1; height: .38em; border-radius: 1em; background: linear-gradient(90deg, var(--ok) calc(var(--m) * 3%), var(--ui-3) 0); }
.mk-marg em { font-size: .68em; font-weight: 600; color: var(--ok); }
.mk-amt { font-size: .8em; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mk-inv-f { display: flex; justify-content: space-between; align-items: center; gap: .6em; margin-top: .3em; padding-top: .7em; border-top: 1px solid var(--ui-line); font-size: .8em; }
.mk-inv-f b { color: var(--ok); }
.mk-inv-f .mk-btn { font-size: .9em; animation: mk-glow 8s 2.6s infinite both; }
@keyframes mk-glow { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 50%, transparent); } 6% { box-shadow: 0 0 0 .5em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@container (max-width: 340px) { .mk-marg { display: none; } .mk-inv-r { grid-template-columns: 1.4em minmax(0, 1fr) auto; } }

/* 9. TIMOCOM */
.mk-tc { position: relative; padding-bottom: 1.2em; }
.mk-tc-c { padding: .9em; }
.mk-tc-h { display: flex; gap: .5em; align-items: center; font-size: .8em; color: var(--ink-2); background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: .6em; padding: .45em .6em; }
.mk-tc-h .mk-chip { margin-left: auto; font-size: .85em; }
.mk-tc-l { height: 11.4em; overflow: hidden; margin-top: .6em; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.mk-tc-s { animation: mk-scroll 12s linear infinite both; }
@keyframes mk-scroll { from { transform: translateY(0); } to { transform: translateY(-13.5em); } }
.mk-tc-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6em; align-content: center; height: 2.7em; padding: 0 .5em; border-radius: .5em; }
.mk-tc-r b { font-size: .8em; }
.mk-tc-r small { grid-column: 1; font-size: .68em; }
.mk-tc-r span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .8em; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-tc-r.hot { background: var(--brand-soft); }
.mk-tc-ok { position: absolute; right: -.4em; bottom: 0; display: flex; gap: .6em; align-items: center; padding: .6em .85em; animation: mk-pop 6s 1.5s infinite both; }
.mk-tc-ok svg { color: var(--ok); }
.mk-tc-ok b { display: block; font-size: .8em; }
.mk-tc-ok small { font-size: .68em; }

/* orders */
.mk-or-h { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding-bottom: .5em; }
.mk-or-h b { font-size: .95em; }
.mk-or-r { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5em; align-items: center; padding: .5em 0; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(.3s + var(--d) * .4s) infinite both; }
.mk-or-r > b, .mk-or-r > span:not(.mk-chip):not(.mk-ch) { font-size: .78em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-or-r > span:nth-child(3) { color: var(--ink-2); }
.mk-ch { display: inline-flex; gap: .3em; align-items: center; font-size: .7em; color: var(--ink-2); background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: .4em; padding: .25em .4em; justify-self: start; }
.mk-or-f { display: flex; gap: .35em; align-items: center; margin-top: .5em; font-size: .74em; color: var(--brand-ink); background: var(--brand-soft); border-radius: .5em; padding: .5em .65em; }
@container (max-width: 420px) { .mk-or-r { grid-template-columns: 5.6em minmax(0, 1fr) auto; } .mk-or-r > span:nth-child(3) { display: none; } .mk-or-h .mk-seg { display: none; } }

/* signatures of the three parties */
.mk-sigs .mk-card { padding: .9em 1em .5em; }
.mk-sigs-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3em; }
.mk-sigs-r { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: .6em; align-items: center; padding: .55em 0; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(.3s + var(--d) * .5s) infinite both; }
.mk-sigs-r b { display: block; font-size: .8em; }
.mk-sigs-r small { font-size: .7em; }
.mk-sigs-r.wait .mk-sig { background: var(--warn-soft); color: var(--warn); }

/* CMR editor */
.mk-ed-g { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .8em; }
.mk-tbl { display: grid; grid-template-columns: 2.2em 5.2em minmax(0, 1fr) 4em; gap: .25em; font-size: .72em; margin-bottom: .25em; }
.mk-tbl span { background: var(--ui-2); border: 1px solid var(--ui-line); padding: .4em .45em; border-radius: .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.mk-tbl-sum span { background: none; border-color: transparent; font-weight: 700; }
.mk-ready { display: flex; gap: .4em; align-items: center; margin-top: .5em; font-size: .72em; color: var(--warn); }
.mk-ready .mk-chip { margin-left: auto; }
.mk-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: .25em; align-content: start; }
.mk-sheet span { font-size: .64em; border: 1px solid var(--ui-line); padding: .45em .4em; border-radius: .3em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-sheet .hl { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.mk-ed-b { display: flex; justify-content: space-between; align-items: center; padding: .55em .9em; border-top: 1px solid var(--ui-line); background: var(--ui-2); font-size: .74em; color: var(--ink-3); }
.mk-ed-b .mk-btn { font-size: .95em; }

/* contractors */
.mk-ct .mk-card { padding: .8em; }
.mk-inp { display: flex; gap: .5em; align-items: center; border: 1.5px solid var(--brand); border-radius: .6em; padding: .5em .6em; font-size: .85em; box-shadow: 0 0 0 .25em var(--brand-soft); margin-bottom: .3em; }
.mk-inp svg { color: var(--ink-3); }
.mk-ct-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6em; padding: .5em .3em; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(2.2s + var(--d, 0) * .3s) infinite both; }
.mk-ct-r:nth-of-type(2) { --d: 0; } .mk-ct-r:nth-of-type(3) { --d: 1; } .mk-ct-r:nth-of-type(4) { --d: 2; } .mk-ct-r:nth-of-type(5) { --d: 3; }
.mk-ct-r b { font-size: .8em; }
.mk-ct-r small { grid-column: 1; font-size: .7em; }
.mk-ct-r .mk-chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* driver app */
.mk-drv-c { padding: 0 1.1em; }
.mk-drv-c > small { display: block; font-size: .7em; }
.mk-steps { display: flex; gap: .3em; margin: .1em 0 .6em; }
.mk-steps i { flex: 1; height: .3em; border-radius: 1em; background: var(--ui-3); }
.mk-steps i.ok { background: var(--ok); }
.mk-steps i.on { background: var(--brand); }
.mk-qr-mini { display: flex; gap: .6em; align-items: center; background: var(--ui-2); border-radius: .7em; padding: .5em; margin-top: .7em; }
.mk-qr-mini .qr { width: 3.6em; flex: none; background: #fff; padding: .2em; border-radius: .3em; }
.mk-qr-mini b { display: block; font-size: .8em; color: var(--ok); }
.mk-qr-mini small { font-size: .68em; }
.mk-drv .mk-btn { margin-top: .7em; }

/* team */
.mk-team .mk-card { padding: .4em 1em .8em; }
.mk-tm-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6em; align-items: center; padding: .55em 0; border-bottom: 1px solid var(--ui-line); }
.mk-tm-r b { display: block; font-size: .82em; }
.mk-tm-r small { display: block; font-size: .7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tm-f { display: flex; gap: .5em; align-items: center; margin-top: .7em; font-size: .74em; color: var(--ink-2); }
.mk-tm-f svg { color: var(--ok); }
.mk-tm-f .mk-chip { margin-left: auto; }

/* DeCA */
.mk-deca .mk-card { overflow: hidden; }
.mk-deca-h { display: flex; gap: .7em; align-items: center; padding: .9em 1em; background: linear-gradient(135deg, color-mix(in oklab, #c60b1e 10%, var(--ui)), color-mix(in oklab, #ffc400 14%, var(--ui))); }
.mk-deca-h small { display: block; font-size: .7em; }
.mk-deca-h b { font: 700 1.05em/1.2 var(--f-display); }
.mk-deca-h .qr { width: 3.2em; margin-left: auto; background: #fff; padding: .2em; border-radius: .35em; }
.mk-flag { width: 2.3em; height: 1.6em; border-radius: .3em; background: linear-gradient(#c60b1e 25%, #ffc400 25% 75%, #c60b1e 75%); flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.mk-deca .mk-dl { padding-top: .2em; }
.mk-deca-f { font: 500 .72em/1 var(--f-mono); color: var(--ink-3); padding: .8em 1em; border-top: 1px solid var(--ui-line); background: var(--ui-2); }

/* API (short) */
.mk-code { margin: 0; }
pre.mk-code { background: #0a0a1f; color: #d8dcf5; font: .8em/1.7 var(--f-mono); padding: 1.1em 1.2em; border-radius: 1em; overflow: hidden; box-shadow: var(--sh-mk); white-space: pre; }
.mk-code .c, .dd-code .c, .code .c { color: #7477a0; font-style: italic; }
.mk-code .k, .dd-code .k, .code .k { color: #ff7ab6; }
.mk-code .p, .dd-code .p, .code .p { color: #b9adff; }
.mk-code .s, .dd-code .s, .code .s { color: #8fe8b8; }
.mk-code .n, .code .n { color: #ffc47a; }
.code .v, .code .t { color: #7fd3ff; }
.code .f { color: #ffd88a; }

/* ------------------------------------------------------------------ new mockups (29.09.2026): fleet, position, tachograph, forecast, trip cost, returns, paperwork */
.mk-chip-danger { background: var(--danger-soft); color: var(--danger); }

/* fleet health from the truck maker (rFMS) */
.mk-fleet { position: relative; padding-bottom: 1.2em; }
.mk-fl-h { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding-bottom: .5em; }
.mk-fl-h b { font-size: .95em; }
.mk-fl-r { display: grid; grid-template-columns: .55em auto minmax(0, 1fr) auto; gap: .6em; align-items: center; padding: .5em 0; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(.3s + var(--d) * .35s) infinite both; }
.mk-fl-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--warn); }
.mk-fl-r.is-danger .mk-fl-dot { background: var(--danger); box-shadow: 0 0 0 .25em color-mix(in oklab, var(--danger) 20%, transparent); }
.mk-fl-r .mk-plate { font-size: .76em; }
.mk-fl-r b { display: block; font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fl-r small { display: block; font-size: .68em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fl-visit { display: flex; gap: .6em; align-items: center; margin-top: .5em; padding: .6em .7em; border-radius: .6em; background: var(--brand-soft); color: var(--brand-ink); animation: mk-pop 8s 1.9s infinite both; }
.mk-fl-visit > div { flex: 1; min-width: 0; }
.mk-fl-visit b { display: block; font-size: .8em; }
.mk-fl-visit small { display: block; font-size: .68em; color: inherit; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fl-block { position: absolute; right: .8em; bottom: 0; box-shadow: var(--sh-mk); animation: mk-fit 8s 1s infinite both; }
@container (max-width: 460px) {
  .mk-fl-r { grid-template-columns: .55em auto minmax(0, 1fr); }
  .mk-fl-r .mk-chip, .mk-fl-visit .mk-btn { display: none; }
}

/* position pinned to the shipment */
.mk-pos { border-radius: 1em; overflow: hidden; background: var(--ui); box-shadow: var(--sh-mk), 0 0 0 1px var(--ui-line); }
.mk-pos-map { position: relative; aspect-ratio: 420 / 200; background: var(--ui-2); }
.mk-pos-fence { fill: color-mix(in oklab, var(--ok) 12%, transparent); stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 5 4; }
.mk-pos-lbl { font: 600 11px var(--f-text); fill: var(--ink-2); }
.mk-pos-eta { position: absolute; top: .8em; left: .8em; padding: .6em .8em; display: grid; gap: .15em; }
.mk-pos-eta small { font-size: .7em; }
.mk-pos-eta b { font: 600 1.5em/1 var(--f-display); letter-spacing: -.02em; }
.mk-pos-eta .mk-chip { justify-self: start; }
.mk-pos-eta em { font-size: .68em; color: var(--ink-3); }
.mk-pos-t { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ui-line); }
.mk-pos-t > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .45em; align-content: start; padding: .7em .8em; animation: mk-row 8s calc(.8s + var(--d) * .35s) infinite both; }
.mk-pos-t > div + div { border-left: 1px solid var(--ui-line); }
.mk-pos-t svg { grid-row: 1 / span 3; margin-top: .15em; color: var(--brand); }
.mk-pos-t small, .mk-pos-t b, .mk-pos-t em { grid-column: 2; min-width: 0; }
.mk-pos-t small { font-size: .68em; }
.mk-pos-t b { font: 600 1.05em/1.25 var(--f-display); white-space: nowrap; }
.mk-pos-t em { font-size: .66em; color: var(--ink-3); }
.mk-pos-t em.warn { color: var(--warn); font-weight: 600; }
@container (max-width: 440px) {
  .mk-pos-t { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-pos-t > div:last-child { display: none; }
  .mk-pos-eta em { display: none; }
}

/* tachograph in the driver's phone */
.mk-tacho { position: relative; display: grid; place-items: center; }
.mk-th { display: grid; gap: .45em; padding: 0 1.1em; }
.mk-th > small { font-size: .7em; }
.mk-th-bt { display: inline-flex; align-items: center; gap: .4em; justify-self: start; font-size: .66em; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 1em; padding: .35em .7em; white-space: nowrap; }
.mk-th-bt i { width: .55em; height: .55em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 .2em color-mix(in oklab, var(--ok) 25%, transparent); }
.mk-th-bt span { color: var(--ok); }
.mk-th-ring { position: relative; width: 9.2em; margin: .1em auto 0; }
.mk-th-ring svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.mk-th-track { fill: none; stroke: var(--ui-3); stroke-width: 10; }
.mk-th-arc { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 38 100; animation: mk-th-ring 8s .4s infinite both; }
@keyframes mk-th-ring { 0% { stroke-dasharray: 0 100; } 14% { stroke-dasharray: 38 100; } 92% { stroke-dasharray: 38 100; } 100% { stroke-dasharray: 0 100; } }
.mk-th-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mk-th-ring small { font-size: .62em; }
.mk-th-ring b { font: 700 1.15em/1.15 var(--f-display); letter-spacing: -.02em; }
.mk-th-brk { display: flex; align-items: center; justify-content: center; gap: .35em; font-size: .74em; color: var(--warn); }
.mk-th-c { display: grid; grid-template-columns: auto 1fr; gap: .2em .5em; font-size: .7em; animation: mk-row 8s calc(.8s + var(--d) * .3s) infinite both; }
.mk-th-c span { color: var(--ink-3); }
.mk-th-c em { text-align: right; font-weight: 600; }
.mk-th-c i { grid-column: 1 / -1; height: .45em; border-radius: 1em; background: linear-gradient(90deg, var(--brand) calc(var(--p) * 1%), var(--ui-3) 0); }
.mk-th-ok { display: flex; gap: .5em; align-items: center; margin-top: .15em; padding: .5em .6em; border-radius: .6em; background: var(--ok-soft); color: var(--ok); animation: mk-pop 8s 2s infinite both; }
.mk-th-ok b { display: block; font-size: .78em; }
.mk-th-ok small { display: block; font-size: .66em; color: inherit; opacity: .85; }
.mk-th-cmr { position: absolute; right: 0; bottom: 3.2em; display: flex; gap: .55em; align-items: center; max-width: 14em; padding: .6em .8em; animation: mk-pop 8s 3s infinite both; }
.mk-th-cmr svg { color: var(--ok); }
.mk-th-cmr b { display: block; font-size: .78em; }
.mk-th-cmr small { font-size: .66em; }
@container (max-width: 460px) { .mk-th-cmr { display: none; } }

/* AI forecast of next week */
.mk-fc-h { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding-bottom: .5em; }
.mk-fc-h b { font-size: .95em; }
.mk-fc-r { display: grid; grid-template-columns: 4em minmax(0, 1.35fr) minmax(0, 1fr) 4em; gap: .6em; align-items: center; padding: .5em 0; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(.3s + var(--d) * .4s) infinite both; }
.mk-fc-day { font: 600 .68em/1 var(--f-text); color: var(--ink-2); background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: .4em; padding: .4em .3em; text-align: center; white-space: nowrap; }
.mk-fc-m b { display: block; font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fc-m small { display: flex; align-items: center; gap: .4em; font-size: .66em; white-space: nowrap; overflow: hidden; }
.mk-fc-r.is-gap .mk-fc-m small { color: var(--danger); font-weight: 600; }
.mk-fc-dots { display: inline-flex; gap: .2em; flex: none; }
.mk-fc-dots i { width: .5em; height: .5em; border-radius: 50%; background: var(--ui-line-2); }
.mk-fc-dots i.on { background: var(--brand); }
.mk-fc-who { font-size: .7em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-fc-p { display: grid; gap: .25em; justify-items: end; }
.mk-fc-p b { font-size: .8em; font-variant-numeric: tabular-nums; }
.mk-fc-p i { width: 100%; height: .35em; border-radius: 1em; background: linear-gradient(90deg, var(--ok) calc(var(--p) * 1%), var(--ui-3) 0); }
.mk-fc-r.is-gap .mk-fc-p i { background: linear-gradient(90deg, var(--warn) calc(var(--p) * 1%), var(--ui-3) 0); }
.mk-fc-ai { display: flex; gap: .55em; align-items: center; margin-top: .45em; padding: .55em .65em; border-radius: .6em; background: var(--brand-soft); color: var(--brand-ink); font-size: .74em; line-height: 1.4; animation: mk-pop 8s 2.2s infinite both; }
.mk-fc-ai > span:not(.mk-btn) { flex: 1; min-width: 0; }
.mk-fc-ai .mk-btn-s { flex: none; font-size: .95em; }
.mk-fc-f { display: flex; justify-content: space-between; gap: .6em; margin-top: .55em; font-size: .7em; color: var(--ink-3); }
.mk-fc-f span { display: inline-flex; gap: .3em; align-items: center; }
.mk-fc-f b { color: var(--ok); }
@container (max-width: 520px) {
  .mk-fc-r { grid-template-columns: 3.8em minmax(0, 1fr) 3.4em; }
  .mk-fc-who, .mk-fc-ai .mk-btn, .mk-fc-f span:last-child { display: none; }
}

/* trip cost before accepting the order */
.mk-cost .mk-card { padding: .9em 1em; }
.mk-cost-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .6em; }
.mk-cost-h small { display: block; font-size: .7em; }
.mk-cost-h b { font: 700 1.05em/1.2 var(--f-display); }
.mk-cost-cc { font: 600 .62em/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); background: var(--ui-2); border: 1px solid var(--ui-line); border-radius: .4em; padding: .4em .5em; white-space: nowrap; }
.mk-cost-k { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5em; margin: .7em 0 .45em; }
.mk-cost-k > div { display: grid; padding: .5em .65em; border-radius: .6em; background: var(--ui-2); }
.mk-cost-k small { font-size: .68em; }
.mk-cost-k b { font: 600 1.45em/1.15 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-cost-k b.is-brand { color: var(--brand-ink); }
.mk-cost-k em { font-size: .66em; color: var(--ink-3); }
.mk-cost-r { display: grid; grid-template-columns: minmax(0, 1fr) 4.6em 4.4em; gap: .5em; align-items: center; padding: .26em 0; font-size: .72em; animation: mk-row 8s calc(.4s + var(--d) * .2s) infinite both; }
.mk-cost-r span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cost-r i { position: relative; height: .5em; border-radius: 1em; background: var(--ui-3); overflow: hidden; }
.mk-cost-r i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--pink)); }
.mk-cost-r b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-cost-f { display: flex; flex-wrap: wrap; gap: .45em .8em; align-items: center; margin-top: .55em; padding-top: .6em; border-top: 1px solid var(--ui-line); font-size: .72em; color: var(--ok); }
.mk-cost-f > span:last-child { display: inline-flex; gap: .3em; align-items: center; font-weight: 600; }
.mk-cost-f .mk-chip { font-size: .95em; animation: mk-pop 8s 2s infinite both; }
@container (max-width: 300px) {
  .mk-cost-r { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-cost-r i, .mk-cost-cc { display: none; }
}

/* returns: refusal, sender's instruction, return CMR */
.mk-ret { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8em; align-items: start; }
.mk-ret-a { display: grid; gap: .6em; }
.mk-ret-drv { display: flex; gap: .6em; padding: .75em .8em; animation: mk-pop 8s .2s infinite both; }
.mk-ret-drv > div { min-width: 0; }
.mk-ret-ic { display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--warn-soft); color: var(--warn); }
.mk-ret-drv small { display: block; font-size: .68em; }
.mk-ret-drv b { display: block; font-size: .85em; }
.mk-ret-drv em { display: block; font-size: .7em; color: var(--ink-3); }
.mk-ret-out { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.mk-ret-out li { display: flex; gap: .45em; align-items: center; min-width: 0; font-size: .72em; font-weight: 600; background: var(--ui); border: 1px solid var(--ui-line); border-radius: .55em; padding: .45em .6em; animation: mk-row 8s calc(2.6s + var(--d) * .3s) infinite both; }
.mk-ret-out svg { color: var(--ok); }
.mk-ret-out small { margin-left: auto; padding-left: .4em; font-weight: 500; white-space: nowrap; }
.mk-ret-p { display: grid; gap: .4em; padding: .8em; animation: mk-pop 8s 1s infinite both; }
.mk-ret-ph { display: flex; gap: .55em; align-items: center; margin-bottom: .2em; }
.mk-ret-ph small { display: block; font-size: .68em; }
.mk-ret-ph b { font-size: .88em; }
.mk-ret-o { display: flex; gap: .5em; align-items: center; font-size: .74em; padding: .5em .6em; border: 1px solid var(--ui-line); border-radius: .5em; color: var(--ink-2); }
.mk-ret-o i { flex: none; width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid var(--ui-line-2); }
.mk-ret-o.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.mk-ret-o.is-on i { border: .3em solid var(--brand); }
.mk-ret-p .mk-btn { margin-top: .2em; animation: mk-press 8s 2.3s infinite both; }
@container (max-width: 480px) {
  .mk-ret { grid-template-columns: minmax(0, 1fr); gap: .6em; }
  .mk-ret-a { display: contents; }
  .mk-ret-p { order: 1; }
  .mk-ret-out { order: 2; }
  .mk-ret-o:nth-of-type(3), .mk-ret-out li:nth-child(n + 3) { display: none; }
}

/* trip paperwork */
.mk-dc-h { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding-bottom: .5em; }
.mk-dc-h b { display: block; font-size: .95em; }
.mk-dc-h small { display: block; font-size: .7em; }
.mk-dc-r { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: .6em; align-items: center; padding: .45em 0; border-top: 1px solid var(--ui-line); animation: mk-row 8s calc(.3s + var(--d) * .35s) infinite both; }
.mk-dc-ic { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .55em; background: var(--ui-2); color: var(--ink-2); }
.mk-dc-r > div { min-width: 0; }
.mk-dc-r b { display: block; font-size: .8em; }
.mk-dc-r small { display: block; font-size: .68em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-dc-f { display: flex; justify-content: space-between; align-items: center; gap: .6em; margin-top: .3em; padding-top: .6em; border-top: 1px solid var(--ui-line); font-size: .72em; }
.mk-dc-link { display: inline-flex; gap: .35em; align-items: center; font-family: var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.mk-dc-open { display: inline-flex; gap: .35em; align-items: center; color: var(--ok); font-weight: 600; animation: mk-pop 8s 2.4s infinite both; }
@container (max-width: 440px) { .mk-dc-link, .mk-dc-h .mk-chip { display: none; } }

/* ------------------------------------------------------------------ numbers strip + map */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-block: 1px solid var(--line); }
.stat { padding: 30px 16px 28px; text-align: center; cursor: default; border-radius: 0; outline-offset: -3px; }
.stat b { display: block; font: 500 clamp(2rem, 1.2rem + 2.4vw, 3.1rem)/1.05 var(--f-display); letter-spacing: -.035em; color: color-mix(in oklab, var(--ink-3) 70%, var(--paper)); transition: color .5s var(--e-out); font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.stat.is-on b { color: var(--ink); }
.stats-ind { position: absolute; left: 0; top: -1px; bottom: -1px; pointer-events: none; transition: transform .7s var(--e-out), width .7s var(--e-out);
  background:
    linear-gradient(90deg, transparent, var(--brand) 30%, var(--pink) 70%, transparent) top / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent, var(--brand) 30%, var(--pink) 70%, transparent) bottom / 100% 1.5px no-repeat,
    radial-gradient(60% 50% at 50% 100%, color-mix(in oklab, var(--brand) 9%, transparent), transparent);
}
.net { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.net-head { position: absolute; left: 0; top: 4%; z-index: 2; max-width: 330px; }
.net-head .h3 { margin: 0 0 12px; }
.net-head p { font-size: 15.5px; margin: 0; }
.net-live { display: grid; gap: 10px; margin: 22px 0 0; }
.net-live div { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--paper) 80%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.net-live dt { font-size: 12.5px; color: var(--ink-3); }
.net-live dd { margin: 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.net-live dd b { font: 500 24px/1.1 var(--f-display); letter-spacing: -.02em; }
#net-ev.is-new { animation: evin .5s var(--e-out); }
@keyframes evin { from { opacity: 0; transform: translateY(4px); } }
.net-map { position: relative; width: 100%; aspect-ratio: 1.32; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent), linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent); }
.net-map canvas { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ How it works */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); margin-top: 16px; }
.story-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.story-steps::before { content: ""; position: absolute; left: 15px; top: 24px; bottom: 24px; width: 1px; background: var(--line-2); }
.st { position: relative; min-height: 46vh; padding: 20px 0 20px 56px; display: flex; flex-direction: column; justify-content: center; }
.st:last-child { min-height: 52vh; }
.st-h { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 8px; }
.st-n { position: absolute; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper-2); font: 600 12px/1 var(--f-mono); color: var(--ink-3); transition: background-color .4s, color .4s, border-color .4s, box-shadow .5s var(--e-out); }
.st.is-on .st-n { background: var(--btn); color: #fff; border-color: var(--btn); box-shadow: 0 0 0 6px var(--brand-soft); }
.st-t { font: 500 clamp(1.5rem, 1.1rem + 1.1vw, 2rem)/1.1 var(--f-display); letter-spacing: -.025em; color: var(--ink-3); transition: color .4s; }
.st.is-on .st-t { color: var(--ink); }
.st p { margin: 12px 0 0; max-width: 420px; color: var(--ink-3); font-size: 16px; transition: color .4s; }
.st.is-on p { color: var(--ink-2); }
.st-mk { display: none; }
.story-stage { position: sticky; top: calc(var(--hdr-h) + 32px); height: min(560px, calc(100vh - var(--hdr-h) - 64px)); align-self: start; }
.story-card { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--sh-card); isolation: isolate; }
.story-card::before { content: ""; position: absolute; inset: 40% -20% -40%; background: conic-gradient(from 200deg, #7c5cff, #ff7ab8, #ffc38a, #7c5cff); filter: blur(60px); opacity: .35; z-index: -1; }
.story-bar { height: 3px; background: var(--line); }
.story-prog { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--pink)); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--e-out); }
.story-mocks { position: relative; flex: 1; }
.story-mk { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .45s, transform .7s var(--e-out); container-type: inline-size; --mk: 13px; pointer-events: none; }
.story-mk > .mk { max-width: 560px; }
.story-mk.is-past { transform: translateY(-26px) scale(.98); }
.story-mk.is-on { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Check your company */
.check-box { max-width: 880px; margin-inline: auto; text-align: center; }
.check-head .h2 { margin: 0 0 12px; }
.check-head p { max-width: 600px; margin: 0 auto; }
.nip { display: flex; gap: 8px; margin: 32px auto 0; max-width: 720px; padding: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--sh-card); transition: border-color .2s, box-shadow .2s; }
.nip:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--sh-card); }
.nip.has-error { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.nip-cc { border: 0; background: var(--paper-2); border-radius: 12px; padding: 0 10px 0 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.nip-in { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 20px/1 var(--f-text); letter-spacing: .02em; padding: 0 8px; outline: none; font-variant-numeric: tabular-nums; }
.nip-in::placeholder { color: var(--ink-3); opacity: .7; }
.nip .btn { height: 52px; border-radius: 12px; }
.nip-reg { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.nip-reg > span b { color: var(--ink); margin-right: 4px; }
.nip-reg small { margin-left: 6px; color: var(--ok); font-weight: 600; }
.nip-try { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand-ink); font-weight: 600; cursor: pointer; padding: 0; }
.nip-try:hover { text-decoration: underline; text-underline-offset: 3px; }
.nip-out { max-width: 720px; margin: 22px auto 0; text-align: left; }
.nip-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nip-steps li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); font-size: 14.5px; color: var(--ink-2); opacity: .45; transition: opacity .3s; }
.nip-steps li.is-run, .nip-steps li.is-ok { opacity: 1; }
.nip-steps li.is-ok svg { color: var(--ok); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand); flex: none; }
.is-run .spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nip-err { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--danger); font-size: 14.5px; margin: 0; }
.firm { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-float); padding: 22px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s, transform .7s var(--e-spring); }
.firm.is-on { opacity: 1; transform: none; }
.firm-h { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.firm-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff; font: 700 17px/1 var(--f-display); }
.firm-h b { display: block; font: 600 18px/1.25 var(--f-display); letter-spacing: -.01em; }
.firm-h small { font: 500 13px/1.4 var(--f-mono); color: var(--ink-3); }
.firm-h .chip { margin-left: auto; }
.firm-d { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.firm-d dt { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.firm-d dd { margin: 3px 0 0; font-size: 14.5px; color: var(--ink); }
.firm-f { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.firm-f small { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); flex: 1; min-width: 240px; }

/* ------------------------------------------------------------------ Segments */
.seg-tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs [role="tab"] { position: relative; z-index: 1; padding: 10px 16px; border: 0; background: none; font: 600 14.5px/1 var(--f-text); color: var(--ink-3); border-radius: 10px; cursor: pointer; white-space: nowrap; transition: color .3s; }
.seg-tabs [role="tab"][aria-selected="true"] { color: var(--brand-ink); }
.seg-tabs [role="tab"]:hover { color: var(--ink); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: var(--brand-soft); transition: transform .5s var(--e-spring), width .5s var(--e-spring); }
.seg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 40px); }
.seg.is-in .seg-copy { animation: fadeup .6s var(--e-out); }
.seg.is-in .seg-vis { animation: fadeup .8s var(--e-out); }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
.seg .anchor { position: absolute; top: -160px; }
.seg-copy .h3 { margin: 0 0 12px; }
.seg-pts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.seg-pts li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.seg-pts svg { color: var(--brand); margin-top: 3px; }
.seg-pts b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.seg-vis { position: relative; min-height: 400px; display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: var(--paper-2); padding: 24px; container-type: inline-size; isolation: isolate; --g1: #7c5cff; --g2: #ff7ab8; --g3: #ffc38a; }
.seg-mk { position: relative; z-index: 1; width: 100%; --mk: 12.5px; display: grid; place-items: center; }

/* ------------------------------------------------------------------ Stories */
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: var(--sh-card); }
.case-art { position: relative; min-height: 440px; background: #140f3d; }
.case-art svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.case-art .lane { animation: lane 1.1s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -32; } }
.case-art .truck { animation: truck 3s ease-in-out infinite; }
@keyframes truck { 50% { transform: translate(300px, 316.5px); } }
.case-art .route path { animation: lane 2.4s linear infinite; }
.case-art .stars circle { animation: twinkle 3s ease-in-out infinite; }
.case-art .stars circle:nth-child(3n) { animation-delay: 1s; }
.case-art .stars circle:nth-child(3n+1) { animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .3; } }
.case-badge { position: absolute; left: 20px; bottom: 20px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font: 600 13px/1 var(--f-text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.case-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.case-brand { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.case-logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, hsl(var(--h, 252) 75% 58%), hsl(calc(var(--h, 252) + 40) 85% 62%)); color: #fff; font: 800 14px/1 var(--f-display); flex: none; }
.case-body .h3 { font-size: clamp(1.3rem, 1.05rem + .8vw, 1.65rem); line-height: 1.3; }
.case-body p.muted { margin: 0; }
.case-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.case-nums dt { font-size: 12.5px; color: var(--ink-3); }
.case-nums dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.case-nums dd b { font: 500 22px/1.1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.case-who { display: flex; gap: 10px; align-items: center; margin: auto 0 0; }
.case-who b { display: block; font-size: 14.5px; }
.case-who small { font-size: 13px; color: var(--ink-3); }
.acc-stories { margin-top: 12px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc h3 { margin: 0; }
.acc button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 4px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 8px; }
.acc-t { flex: 1; font: 500 17.5px/1.35 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.acc-t small { display: block; font: 500 13px/1.4 var(--f-text); color: var(--ink-3); margin-bottom: 2px; letter-spacing: 0; }
.acc-pm { position: relative; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); flex: none; transition: background-color .2s, transform .4s var(--e-out); }
.acc-pm::before, .acc-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; border-radius: 2px; background: var(--brand-ink); transform: translate(-50%, -50%); transition: transform .4s var(--e-out); }
.acc-pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc-pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc button:hover .acc-pm { background: color-mix(in oklab, var(--brand) 22%, var(--paper)); }
.acc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--e-out); }
.acc.is-open .acc-p { grid-template-rows: 1fr; }
.acc-in { overflow: hidden; padding-left: 50px; }
.acc-in p { max-width: 680px; margin: 0; }
.acc-in .case-nums { max-width: 680px; margin-bottom: 22px; border-top: 0; padding-top: 14px; }
.quotes-head { display: flex; justify-content: space-between; align-items: center; margin: 64px 0 16px; }
.quotes-head .h4 { margin: 0; }
.car-btns { display: flex; gap: 8px; }
.car-btns .icon-btn { border-radius: 50%; }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 16px; overscroll-behavior-x: contain; }
.quotes::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 240px; }
.quote blockquote { margin: 0; font: 400 16.5px/1.55 var(--f-text); color: var(--ink); }
.quote figcaption { display: grid; }
.quote figcaption b { font-size: 14.5px; }
.quote figcaption small { font-size: 13px; color: var(--ink-3); }
.sig { height: 40px; width: auto; margin-bottom: 4px; overflow: visible; }
.sig path { fill: none; stroke: var(--brand-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .35, 1); }
.quote.is-drawn .sig path { stroke-dashoffset: 0; }

/* ------------------------------------------------------------------ Developers (dark) */
.sec-dark {
  --ink: #f1f0ff; --ink-2: #b9b8dc; --ink-3: #8a89b3; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .16); --rail: rgba(255, 255, 255, .07); --rail-d: rgba(255, 255, 255, .05);
  --paper: #0b0b24; --paper-2: #10102c; --brand-ink: #c4baff; --brand-soft: rgba(143, 123, 255, .16); --ok: #5de0a4; --ok-soft: rgba(93, 224, 164, .14);
  color-scheme: dark;
  background: radial-gradient(50% 60% at 10% 0%, rgba(91, 61, 240, .35), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(255, 61, 110, .18), transparent 70%), #0a0a22;
  color: var(--ink);
}
.dev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 48px; }
.dev-head .h2.split { margin: 0; }
.dev-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.code-card { background: #06061a; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); min-width: 0; }
.code-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); align-items: center; }
.code-tabs [role="tab"] { padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: 600 13.5px/1 var(--f-text); color: var(--ink-3); cursor: pointer; transition: color .2s, background-color .2s; }
.code-tabs [role="tab"][aria-selected="true"] { background: rgba(255, 255, 255, .09); color: #fff; }
.code-tabs [role="tab"]:hover { color: #fff; }
.code-copy { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: none; color: var(--ink-2); font: 600 12.5px/1 var(--f-text); cursor: pointer; }
.code-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.code-copy.is-ok { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 50%, transparent); }
.code { margin: 0; padding: 18px 0 20px; font: 13.2px/1.72 var(--f-mono); color: #d6d8f5; overflow-x: auto; min-height: 340px; tab-size: 2; white-space: pre; }
.code.is-in { animation: codein .45s var(--e-out); }
@keyframes codein { from { opacity: 0; transform: translateY(6px); } }
.code .ln { display: inline; }
.code .ln::before { content: attr(data-n); display: inline-block; width: 44px; padding-right: 18px; text-align: right; color: rgba(255, 255, 255, .2); user-select: none; }
.hook-card { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hook-h { display: flex; justify-content: space-between; align-items: center; }
.hook-h b { font: 600 16px/1 var(--f-display); }
.hook-svg { width: 100%; height: auto; }
.hk-l { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.hk-f { fill: none; stroke: url(#hk); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 14 400; stroke-dashoffset: 14; animation: hk 2.6s linear infinite; }
.hk-f.d1 { animation-delay: 1.1s; } .hk-f.d2 { animation-delay: 1.3s; } .hk-f.d3 { animation-delay: 1.5s; }
@keyframes hk { from { stroke-dashoffset: 14; } 60%, to { stroke-dashoffset: -110; } }
.hk-n rect { fill: #15153c; stroke: rgba(255, 255, 255, .16); }
.hk-n text { fill: #d3d4f7; font: 600 11.5px var(--f-text); text-anchor: middle; }
.hk-main rect { fill: url(#hk); stroke: none; }
.hk-main text { fill: #fff; font-weight: 700; }
.hook-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 12px/1.3 var(--f-mono); }
.hook-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .045); animation: hookin .5s var(--e-out); }
@keyframes hookin { from { opacity: 0; transform: translateY(-8px); } }
.hook-log code { color: #b9adff; }
.hook-log span { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-text); }
.hook-log time { color: var(--ink-3); }
.hook-log b { color: #8fe8b8; background: rgba(143, 232, 184, .12); border-radius: 5px; padding: 2px 6px; }
.dev-feats { list-style: none; padding: 28px 0 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); }
.dev-feats li { font-size: 14.5px; color: var(--ink-3); }
.dev-feats svg { color: #b9adff; margin-bottom: 10px; }
.dev-feats b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.chip.chip-ok .pulse { width: 7px; height: 7px; }

/* ------------------------------------------------------------------ DeCA */
.deca { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(120deg, color-mix(in oklab, #ffc400 9%, var(--paper)), var(--paper) 45%, color-mix(in oklab, #c60b1e 7%, var(--paper))); }
.deca::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 120px; background: linear-gradient(#c60b1e 25%, #ffc400 25% 75%, #c60b1e 75%); opacity: .08; transform: rotate(12deg); border-radius: 12px; }
.deca-copy .h3 { margin: 0 0 12px; }
.deca-copy p { margin: 0 0 20px; }
.deca-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.deca-count > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 6px; text-align: center; }
.deca-count b { display: block; font: 500 clamp(26px, 3vw, 36px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.deca-count span { font-size: 12.5px; color: var(--ink-3); }
.deca-over { grid-column: 1 / -1; text-align: center; }

/* ------------------------------------------------------------------ Pricing */
.period { position: relative; display: inline-flex; padding: 4px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; }
.period button { position: relative; z-index: 1; padding: 10px 18px; border: 0; background: none; font: 600 14.5px/1 var(--f-text); color: var(--ink-3); border-radius: 999px; cursor: pointer; transition: color .3s; display: inline-flex; gap: 6px; align-items: center; }
.period button[aria-pressed="true"] { color: #fff; }
.period em { font-style: normal; font-size: 12px; background: color-mix(in oklab, var(--pink) 14%, transparent); color: var(--pink); padding: 3px 6px; border-radius: 20px; transition: background-color .3s, color .3s; }
.period button[aria-pressed="true"] em { background: rgba(255, 255, 255, .22); color: #fff; }
.period-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--btn); box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--brand) 70%, transparent); }
.period.is-ready .period-thumb { transition: transform .5s var(--e-spring), width .5s var(--e-spring); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; transition: opacity .16s, transform .16s var(--e-out); }
.plans.is-swapping { opacity: 0; transform: translateY(6px); }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.plan.is-pop { border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(160deg, var(--brand), var(--pink) 55%, var(--coral)) border-box; box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--brand) 55%, transparent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 22px; }
.plan-top h3 { margin: 0; font: 600 18px/1 var(--f-display); letter-spacing: -.01em; }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); box-shadow: 0 6px 14px -6px var(--pink); font: 600 11px/1 var(--f-text); color: #fff; background: linear-gradient(90deg, var(--btn), var(--pink)); padding: 5px 8px; border-radius: 20px; white-space: nowrap; }
.plan-for { margin: 0; font-size: 13.5px; color: var(--ink-3); min-height: 2.7em; line-height: 1.35; }
.plan-price { position: relative; display: flex; align-items: flex-end; gap: 6px; padding-top: 18px; }
.plan-old { position: absolute; top: 0; left: 0; font-size: 13px; color: var(--ink-3); text-decoration-color: var(--pink); text-decoration-thickness: 1.5px; }
.plan-amt { font: 500 42px/1 var(--f-display); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-amt small { font-size: 21px; letter-spacing: -.02em; }
.plan-cur { font-size: 11.5px; line-height: 1.25; color: var(--ink-3); padding-bottom: 4px; }
.plan-net { margin: 0; font-size: 12.5px; color: var(--ink-3); min-height: 3.2em; line-height: 1.4; }
.plan-net .save { display: block; color: var(--ok); font-weight: 600; }
.plan-docs { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.plan-docs b { color: var(--ink); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan li svg { color: var(--brand); margin-top: 2px; }
.plans-note { margin: 24px 0 0; font-size: 14px; color: var(--ink-3); max-width: 780px; }
.plans-note .link-arr { font-size: 14px; }

/* ------------------------------------------------------------------ Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 16px; }
.cover { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at var(--x) var(--y), color-mix(in oklab, var(--c) 40%, #fff) 0, transparent 50%),
    conic-gradient(from var(--a) at 70% 60%, var(--c), #ff3d6e, color-mix(in oklab, var(--c) 60%, #ffb547), color-mix(in oklab, var(--c) 70%, #1b0f5e), var(--c));
}
.cover-lines { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transition: transform 1.2s var(--e-out); }
.cover-lines path { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: .9; }
.cover-ico { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .38); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.post:hover .cover-lines { transform: scale(1.08) rotate(-1deg); }
.post-b { padding: 16px 2px 0; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.post-cat { color: var(--c); font-weight: 650; }
:root[data-theme="dark"] .post-cat { color: color-mix(in oklab, var(--c) 55%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .post-cat { color: color-mix(in oklab, var(--c) 55%, #fff); } }
.post h3 { margin: 0 0 8px; font: 500 20px/1.3 var(--f-display); letter-spacing: -.015em; color: var(--ink); transition: color .2s; }
.post:hover h3 { color: var(--brand-ink); }
.post-ex { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .link-arr { margin-top: auto; font-size: 14px; }
.post mark { background: color-mix(in oklab, var(--amber) 40%, transparent); color: inherit; border-radius: 3px; }
.post-big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.post-big .cover { aspect-ratio: 16 / 10; }
.post-big h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.025em; }
.post-big .post-ex { -webkit-line-clamp: 4; font-size: 16px; }

/* ------------------------------------------------------------------ FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 72px); }
.faq-side { position: sticky; top: calc(var(--hdr-h) + 40px); align-self: start; }
.faq-side .h2 { margin-bottom: 14px; }
.faq-side p { margin: 0 0 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font: 500 17px/1.4 var(--f-display); letter-spacing: -.008em; color: var(--ink); position: relative; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--brand); background: linear-gradient(currentColor, currentColor) center / 100% 1.8px no-repeat, linear-gradient(currentColor, currentColor) center / 1.8px 100% no-repeat; transition: transform .35s var(--e-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-ink); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--e-out), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq-a p { margin: 0 0 20px; color: var(--ink-2); max-width: 660px; }
.faq-a a { color: var(--brand-ink); }

/* ------------------------------------------------------------------ closing CTA on a gradient */
.cta-end { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px); color: #fff; background: #1a0e5c; isolation: isolate; }
.cta-glow { position: absolute; inset: 0; z-index: -1; }
.cta-glow i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .9; animation: drift 16s ease-in-out infinite alternate; }
.cta-glow i:nth-child(1) { background: #5b3df0; left: -20%; top: -60%; }
.cta-glow i:nth-child(2) { background: #ff3d6e; right: -25%; top: -10%; animation-delay: -5s; animation-duration: 19s; }
.cta-glow i:nth-child(3) { background: #ff8a50; left: 25%; bottom: -80%; animation-delay: -9s; opacity: .7; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.1); } 100% { transform: translate(-6%, 10%) scale(.95); } }
.cta-in .h2 { color: #fff; max-width: 680px; }
.cta-in p { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .85); max-width: 580px; margin: 16px 0 28px; }
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 24px; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
.news b { display: block; font-size: 16px; }
.news small { font-size: 14px; color: rgba(255, 255, 255, .78); }
.news-f { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.news-f input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 15px; padding: 0 12px; outline: none; }
.news-f input::placeholder { color: rgba(255, 255, 255, .65); }
.news-f input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 #ffb3c2; }
.news-f:focus-within { border-color: rgba(255, 255, 255, .7); }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; min-height: 0; }
.form-msg.is-err { color: #ffd0da; }
.form-msg.is-ok { color: #c9ffe2; }

/* ------------------------------------------------------------------ footer */
.ftr { border-top: 1px solid var(--line); background: var(--paper-2); padding: 72px 0 32px; font-size: 14px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 32px; }
.ft-about p { color: var(--ink-3); margin: 16px 0 18px; max-width: 300px; }
.ft-stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); background: var(--paper); text-decoration: none; transition: border-color .2s; }
.store:hover { border-color: var(--ink-3); }
.store small { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.1; }
.store b { font-size: 13.5px; line-height: 1.2; }
.ft-status { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; margin-top: 18px; padding: 9px 13px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.ft-status small { grid-column: 2; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.ft-col h2 { font: 600 13.5px/1.2 var(--f-text); color: var(--ink); margin: 0 0 14px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-col a { color: var(--ink-3); text-decoration: none; transition: color .2s; }
.ft-col a:hover { color: var(--brand-ink); }
.ft-mid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.ft-contact { font-style: normal; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--ink-3); }
.ft-contact b { color: var(--ink); }
.ft-contact > a, .ft-contact > span { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: inherit; }
.ft-contact > a:hover { color: var(--brand-ink); }
.ft-lang { position: relative; }
.ft-lang-b { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); cursor: pointer; font: 600 13.5px/1 var(--f-text); }
.ft-langs { position: absolute; bottom: calc(100% + 8px); right: 0; width: min(560px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 8px; margin: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-float); z-index: 5; }
.ft-langs[hidden] { display: none; }
.ft-langs a { display: flex; gap: 8px; align-items: center; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; text-decoration: none; color: var(--ink-2); }
.ft-langs a:hover, .ft-langs a:focus-visible { background: var(--paper-2); color: var(--ink); }
.ft-langs a[aria-current] { color: var(--brand-ink); font-weight: 600; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 12.5px; color: var(--ink-3); }
.ft-credit { margin-left: auto; color: inherit; text-decoration: none; }
.ft-credit:hover { text-decoration: underline; }
.ft-demo { flex-basis: 100%; display: flex; gap: 6px; align-items: center; }

/* ------------------------------------------------------------------ "expand" window */
.modal { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(10, 8, 34, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.is-on::backdrop { opacity: 1; }
.modal-in { position: relative; width: min(1060px, calc(100% - 32px)); margin: max(24px, 7vh) auto; background: var(--paper); border-radius: 24px; box-shadow: var(--sh-float), 0 0 0 1px var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); overflow: hidden; opacity: 0; transform: translate(calc(var(--ox) - 50vw), calc(var(--oy) - 50vh)) scale(.25); transition: opacity .25s, transform .55s var(--e-out); }
.modal.is-on .modal-in { opacity: 1; transform: none; }
.modal-copy { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.modal-copy .h3 { margin: 0 0 14px; }
.modal-copy p.muted { margin: 0; }
.modal-copy .row { margin-top: auto; padding-top: 12px; }
.ticks-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.ticks-list svg { color: var(--brand); margin-top: 3px; }
.modal-vis { position: relative; background: var(--paper-2); display: grid; place-items: center; padding: 36px 32px; min-height: 480px; overflow: hidden; container-type: inline-size; isolation: isolate; --g1: #7c5cff; --g2: #ff7ab8; --g3: #ffc38a; }
.modal-mk { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; --mk: 14px; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; border-radius: 50%; }

/* ------------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 120; display: flex; gap: 10px; align-items: center; max-width: min(500px, calc(100vw - 32px)); padding: 12px 16px 12px 12px; border-radius: 14px; background: #14142e; color: #f3f2ff; font-size: 14px; box-shadow: var(--sh-float); opacity: 0; transform: translate(-50%, 16px) scale(.97); transition: opacity .25s, transform .45s var(--e-spring); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; }
.toast-i.ok { background: #13a063; }
.toast small { display: block; opacity: .75; margin-top: 2px; }

/* ================================================================== SUBPAGES */
.phero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: clip; }
.phero .hero-bg { inset: calc(-1 * (var(--hdr-h) + 40px)) 0 0 0; }
/* subpages: the same map, smaller and pushed to the right edge so the route stays clear of the wider copy */
.phero .hero-map { transform: scale(.66); transform-origin: 1410px 156px; }
.phero .hm-labels { display: none; }
.hero-map path, .hero-map circle { vector-effect: non-scaling-stroke; }
.phero-in { max-width: 760px; }
.phero .lead { margin-top: 18px; }
.phero .row { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }

/* features: sticky sub-navigation (Stripe) */
.subnav { position: sticky; top: var(--hdr-h); z-index: 40; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-block: 1px solid var(--line); }
.subnav-in { display: flex; align-items: center; gap: 20px; height: 52px; }
.subnav-in > b { font: 600 15px/1 var(--f-display); flex: none; }
.subnav-l { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.subnav-l::-webkit-scrollbar { display: none; }
.subnav-l a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.subnav-l a:hover { color: var(--ink); }
.subnav-l a[aria-current="true"] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
.subnav .btn { opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .3s, transform .4s var(--e-out); }
.subnav.is-stuck .btn { opacity: 1; transform: none; pointer-events: auto; }
.fgroup { padding-top: clamp(56px, 7vw, 96px); }
.fgroup-h { max-width: 760px; margin-bottom: 8px; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.feat:last-child { border-bottom: 0; }
.feat.flip .feat-vis { order: -1; }
.feat-copy .h3 { margin: 0 0 14px; }
.feat-copy > p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.feat-copy .ticks-list { margin-bottom: 22px; }
.soon { display: inline-block; font: 600 11px/1.4 var(--f-text); background: var(--warn-soft); color: var(--warn); padding: 1px 7px; border-radius: 6px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.feat-vis { position: relative; min-height: 420px; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; padding: clamp(20px, 3vw, 36px); overflow: hidden; container-type: inline-size; isolation: isolate; }
.feat-mk { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; --mk: 12.5px; }
.feat-vis .bc-blob { opacity: .38; }

/* pricing: comparison table, trial, rules */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.cmp { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink-2); position: sticky; left: 0; background: var(--paper); z-index: 1; min-width: 260px; }
.cmp thead th { position: sticky; top: 0; background: var(--paper); z-index: 2; padding-top: 18px; vertical-align: bottom; }
.cmp thead th b { display: block; font: 600 16px/1.2 var(--f-display); color: var(--ink); }
.cmp thead th small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 3px; }
.cmp .col-pop { background: color-mix(in oklab, var(--brand-soft) 55%, var(--paper)); }
.cmp thead .col-pop { box-shadow: inset 0 3px 0 var(--brand); }
.cmp .grp th { text-align: left; background: var(--paper-2); font: 700 12px/1 var(--f-text); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 14px; }
.cmp .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.cmp .no { color: var(--ink-3); opacity: .55; }
.cmp tfoot td { border-bottom: 0; padding: 16px 10px; }
.trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trial-steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 0; }
.trial-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--brand), var(--pink)); opacity: .35; }
.trial-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 12px 0; }
.trial-steps .d { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); font: 600 13px/1 var(--f-mono); color: var(--brand-ink); z-index: 1; }
.trial-steps b { display: block; font: 600 17px/1.3 var(--f-display); margin-top: 10px; }
.trial-steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.rule .eyebrow { margin-bottom: 8px; }
.rule h3 { margin: 0 0 8px; font: 500 19px/1.3 var(--f-display); letter-spacing: -.01em; }
.rule p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* blog */
.blog-tools { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cats button { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 500 14px/1 var(--f-text); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.cats button span { font-size: 12px; color: var(--ink-3); }
.cats button:hover { border-color: var(--ink-3); }
.cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cats button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.search { position: relative; display: flex; align-items: center; }
.search > svg { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }
.search input { height: 42px; width: min(300px, 100%); padding: 0 40px 0 38px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search kbd { position: absolute; right: 10px; color: var(--ink-3); background: var(--paper-2); border-color: var(--line-2); font-size: 12px; }
.results-info { margin: 0 0 20px; font-size: 14px; color: var(--ink-3); }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-2); border-radius: 18px; }
.empty-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; background: var(--paper-2); color: var(--ink-3); }
.empty .h4 { margin-bottom: 6px; }
.featured { padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.newsbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.newsbox .h3 { margin: 0 0 8px; }
.newsbox p { margin: 0; }
.inline-form { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); }
.inline-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 10px; font-size: 15px; outline: none; }
.inline-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.newsbox .form-msg.is-err { color: var(--danger); }
.newsbox .form-msg.is-ok { color: var(--ok); }

/* post */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--brand), var(--pink)); transform: scaleX(0); transform-origin: left; }
.art-head { max-width: 820px; margin: 0 auto; text-align: center; }
.art-head .crumbs, .art-head .post-meta { justify-content: center; }
.art-h { margin: 6px 0 0; }
.art-head .lead { margin-inline: auto; }
.art-by { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 24px 0 0; text-align: left; }
.art-by b { display: block; font-size: 14.5px; }
.art-by small { font-size: 13px; color: var(--ink-3); }
.art-cover { max-width: 1040px; margin: 40px auto 0; }
.art-cover .cover { aspect-ratio: 21 / 8; border-radius: 22px; }
.art-cover .cover-ico { width: 64px; height: 64px; left: 24px; bottom: 24px; }
.art-grid { display: grid; grid-template-columns: 220px minmax(0, 720px) minmax(0, 1fr); gap: 48px; padding: 56px 0 80px; }
.art-side { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; display: grid; gap: 20px; }
.toc-h { font: 600 12px/1 var(--f-text); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 10px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
.share { display: flex; gap: 8px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 500 clamp(1.4rem, 1.15rem + .7vw, 1.75rem)/1.25 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin: 2em 0 .6em; scroll-margin-top: 100px; }
.prose h2 span { color: var(--brand-ink); margin-right: 10px; font: 500 .7em/1 var(--f-mono); vertical-align: 2px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--brand-ink); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); font-size: 1.05em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; margin: 1.2em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lead-p { font-size: 1.14em; color: var(--ink); }
.keybox { background: var(--brand-soft); border-radius: 18px; padding: 22px 26px; margin: 0 0 32px; }
.keybox h2 { font: 700 12.5px/1 var(--f-text) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink) !important; margin: 0 0 10px !important; }
.keybox ul { margin: 0; padding-left: 1.1em; color: var(--ink); }
.art-cta { position: relative; margin-top: 48px; padding: 28px; border-radius: 22px; overflow: hidden; color: #fff; background: radial-gradient(60% 80% at 100% 0%, #ff3d6e, transparent 70%), radial-gradient(70% 90% at 0% 100%, #ff8a50aa, transparent 70%), #3b1fd0; display: grid; gap: 18px; }
.art-cta b { font: 600 21px/1.3 var(--f-display); }
.art-cta p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); font-size: 15.5px; }

/* legal */
.legal-note { display: flex; gap: 12px; padding: 14px 16px; background: var(--warn-soft); color: var(--ink-2); border-radius: 14px; margin-top: 24px; max-width: 840px; font-size: 14.5px; }
.legal-note svg { color: var(--warn); margin-top: 2px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-3); margin-top: 14px; align-items: center; }
.link { display: inline-flex; gap: 6px; align-items: center; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.reading { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 72px); padding: 24px 0 96px; }
.reading .prose { max-width: 740px; }
.reading-one { grid-template-columns: minmax(0, 1fr); }
/* Legal pages: the text is a Word export with inline colours, white backgrounds and pt sizes on most elements.
   The wording must stay as it is, so the page only neutralises those styles; otherwise the dark theme
   would show white stripes with dark text. */
.legal-doc * { background: transparent !important; color: inherit !important; }
.legal-doc p, .legal-doc span, .legal-doc b, .legal-doc i, .legal-doc a { font-size: inherit !important; line-height: inherit !important; }
.legal-doc span[style*="Times New Roman"] { font: inherit !important; }
.legal-doc a { color: var(--brand-ink) !important; overflow-wrap: anywhere; }
.legal-doc b { color: var(--ink) !important; font-weight: 600; }
.legal-doc h2 { text-align: left !important; margin-top: 0 !important; }
.legal-doc h2 span { font: inherit !important; color: inherit !important; margin: 0; vertical-align: baseline; }
.doc-meta button.link { border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-weight: 600; }
@media (max-width: 640px) { .legal-doc p { margin-left: 0 !important; text-indent: 0 !important; } }
@media print { .doc-meta, .legal-note { display: none !important; } .legal-doc { font-size: 11pt; } }
.side { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; display: grid; gap: 16px; }
.side-box { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--paper); }
.side-box h2 { font: 600 12px/1 var(--f-text); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 12px; }
.toc-box ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-box a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.toc-box a:hover { color: var(--ink); background: var(--paper-2); }
.toc-box a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px; padding-bottom: 96px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-card, .form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); }
.form-card { box-shadow: var(--sh-card); }
.contact-card .h4 { margin-bottom: 14px; }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.c-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; }
.c-list .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.c-list small { display: block; font-size: 12.5px; color: var(--ink-3); }
.c-list a, .c-list b { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 15px; }
.c-list a:hover { color: var(--brand-ink); }
.contact-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 16px; }
.form-card .h3 { margin: 0 0 4px; }
.form-card > p.muted { margin: 0 0 20px; font-size: 14.5px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.topics button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 500 14px/1 var(--f-text); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.topics button:hover { border-color: var(--ink-3); }
.topics button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 40%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.inp { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.inp { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.inp { cursor: pointer; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.has-error .inp { border-color: var(--danger); }
.has-error .inp:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.err { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: 13px; }
.err:empty { display: none; }
.hint { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.hint .is-warn { color: var(--warn); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 6px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--btn); flex: none; }
.check a { color: var(--brand-ink); }
.check.has-error { color: var(--danger); }
.err-sum { border: 1px solid var(--danger); background: var(--danger-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.err-sum ul { margin: 6px 0 0; padding-left: 1.1em; }
.err-sum a { color: var(--danger); font-weight: 600; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.form-foot small { color: var(--ink-3); font-size: 13px; }
.sent { text-align: center; padding: 36px 8px; }
.sent:focus { outline: none; }
.sent-i { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; background: var(--ok-soft); color: var(--ok); animation: sigpop .6s var(--e-spring); }
.sent .h3 { margin-bottom: 10px; }
.sent p { max-width: 460px; margin: 0 auto 22px; }

/* 404 */
.nf { position: relative; min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 80px 0; overflow: clip; }
.nf .hero-map { opacity: .8; }
.nf .hm-labels, .nf .hm-route, .nf .hm-route-next, .nf .hm-stops { display: none; }
.nf-code { margin: 0; font: 600 clamp(6rem, 22vw, 13rem)/.9 var(--f-display); letter-spacing: -.07em; background: linear-gradient(120deg, var(--brand), var(--pink) 55%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .h2 { margin: 12px auto 12px; }
.nf .lead { margin-inline: auto; }
.nf .row { justify-content: center; margin-top: 28px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; list-style: none; padding: 0; margin: 28px 0 0; }

/* ================================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-about { grid-column: 1 / -1; }
  .dd-prod { grid-template-columns: 1fr 1fr 1fr; }
  .dd-prod .dd-aside { display: none; }
  .art-grid { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .nav, .hdr-login, .hdr-lang { display: none; }
  .burger { display: inline-flex; }
  .hdr-act > .icon-btn { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-map, .phero .hero-map, .nf .hero-map { left: auto; right: -250px; transform: scale(.62); transform-origin: 100% 0; opacity: .75; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 50%); mask-image: linear-gradient(90deg, transparent 30%, #000 50%); }
  .hm-labels, .hm-route, .hm-route-next, .hm-stops { display: none; }
  .hero-map-dots { -webkit-mask-image: radial-gradient(90% 46% at 90% 8%, #000 20%, transparent 80%); mask-image: radial-gradient(90% 46% at 90% 8%, #000 20%, transparent 80%); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc, .bc-w4, .bc-w3 { grid-column: span 1; }
  .bc-w4 { grid-column: 1 / -1; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-stage { display: none; }
  .story-steps::before { display: none; }
  .st { min-height: 0; padding: 0 0 48px 52px; }
  .st:last-child { min-height: 0; padding-bottom: 0; }
  .st .st-t { color: var(--ink); }
  .st p { color: var(--ink-2); }
  .st .st-n { background: var(--btn); color: #fff; border-color: var(--btn); }
  .st-mk { display: grid; place-items: center; margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); container-type: inline-size; --mk: 11.5px; overflow: hidden; }
  .seg { grid-template-columns: minmax(0, 1fr); }
  .seg-vis { min-height: 340px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-art { min-height: 300px; }
  .quotes { grid-auto-columns: calc((100% - 16px) / 2); }
  .dev-head { grid-template-columns: minmax(0, 1fr); }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .deca { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net-head { position: static; max-width: 560px; margin-bottom: 8px; }
  .net-live { grid-template-columns: 1fr 1fr; }
  .modal-in { grid-template-columns: minmax(0, 1fr); }
  .modal-vis { min-height: 360px; order: -1; }
  .feat, .feat.flip { grid-template-columns: minmax(0, 1fr); }
  .feat.flip .feat-vis { order: 0; }
  .feat-vis { min-height: 340px; }
  .reading, .art-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .art-side { position: static; }
  .art-side .toc-box, .art-side > nav { display: none; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .trial { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .newsbox { grid-template-columns: minmax(0, 1fr); }
  .post-big { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .tb-stats li:not(:first-child) { display: none; }
}
@media (max-width: 720px) {
  .tb-stats { display: none; }
  .tb-news { flex: 1; }
  .tb-track li { justify-content: flex-start; }
  .hdr-act .btn-sm { display: none; }
  .hdr-act .hdr-panel { display: inline-flex; }
  .hdr-panel { padding: 0 10px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bc, .bc-w4, .bc-w3, .bc-w2 { grid-column: 1 / -1; min-height: 0; }
  .bc-vis { min-height: 320px; padding: 18px 16px 22px; }
  .bc-head { padding: 20px 20px 0; }
  .bc-head h3 { font-size: 18.5px; }
  .bc-mk { --mk: 11px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 8px; }
  .stats-ind { display: none; }
  .stat b { color: var(--ink); }
  .nip { flex-wrap: wrap; }
  .nip-in { flex-basis: calc(100% - 90px); height: 48px; font-size: 18px; }
  .nip .btn { width: 100%; }
  .firm-d { grid-template-columns: minmax(0, 1fr); }
  .seg-vis { min-height: 300px; padding: 16px; }
  .seg-mk { --mk: 11px; }
  .case-nums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .acc-in { padding-left: 0; }
  .quotes { grid-auto-columns: 86%; }
  .dev-feats { grid-template-columns: minmax(0, 1fr); }
  .code { font-size: 12px; min-height: 0; }
  .code .ln::before { width: 34px; padding-right: 12px; }
  .hook-log li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hook-log time { display: none; }
  .deca-count { gap: 6px; }
  .deca-count > div { padding: 12px 4px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); }
  .news-f { flex-wrap: wrap; }
  .news-f input { height: 44px; flex-basis: 100%; }
  .news-f .btn { width: 100%; }
  .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
  .ft-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); right: auto; left: 0; }
  .sec-head { align-items: flex-start; }
  .net-live { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .modal-in { margin: 12px auto; border-radius: 20px; }
  .modal-vis { min-height: 300px; padding: 24px 16px; }
  .modal-mk { --mk: 11.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .btn-google { width: 100%; justify-content: center; }
  .cmp tbody th { min-width: 190px; }
  .feat-vis { min-height: 280px; padding: 16px; }
  .feat-mk { --mk: 11px; }
  .dr-top .icon-btn:not(.dr-x) { display: inline-grid; }
}
@media (max-width: 400px) {
  .display { font-size: 2.15rem; }
  .deca-count b { font-size: 24px; }
}

/* ================================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mk, .mk * { animation: none !important; }
  .mk-signed { opacity: 0; }
  .js .rv { opacity: 1; transform: none; }
  .logos-track { animation: none; }
  .logos-track ul[aria-hidden] { display: none; }
  .logos-track ul { flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .logos-track { width: 100%; }
  .cta-glow i, .case-art *, .pulse { animation: none !important; }
  .hv-f:not(.is-f) b::before { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr.is-stuck, .subnav, .dr-top, .dr-auth, .hv-toast { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-3: #464b6c; --line: #b9bdd0; }
}
@media print {
  .topbar, .hdr, .ftr, .scrim, .drawer, .progress, .art-side, .side, .art-cta { display: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
.has-error .check { color: var(--danger); }
.search > [data-ico] { position: absolute; left: 12px; display: flex; color: var(--ink-3); pointer-events: none; }
.feat-mk { --mk: 13.5px; }
@media (max-width: 720px) { .feat-mk { --mk: 11px; } }
.dd-thumb { --mk: 12px; position: relative; }
.dd-thumb > .mk { position: absolute; left: 10px; top: 10px; width: 560px; transform: scale(.4); transform-origin: 0 0; }
@media (max-width: 1023px) { .dd, .scrim { display: none; } }
@media (max-width: 720px) { .subnav .btn, .subnav-in > b { display: none; } }

/* ================================================================== Price list (offer of 1.10.2026): DeCA, free eCMR, SMS credits, plans, savings, modules, API, AI */
.pr-jump { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 22px; }
.pr-jump a { padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid var(--line); transition: color .2s, border-color .2s, background-color .2s; }
.pr-jump a:hover { color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); }
.pr-jump a.is-deca { color: var(--pink); border-color: color-mix(in oklab, var(--pink) 40%, var(--line)); font-weight: 600; }

/* month/year and PLN/EUR switches, currency note */
.pr-switches { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.cur-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; max-width: 700px; font-size: 14px; color: var(--ink-2); }
.cur-note svg { flex: none; margin-top: 2px; color: var(--brand); }
.tbc { display: inline-block; font: 600 11px/1.4 var(--f-text); background: var(--warn-soft); color: var(--warn); padding: 1px 7px; border-radius: 6px; white-space: nowrap; vertical-align: 1px; }

/* price block: large amount (gross in PLN, net in EUR), period, net in small print */
.pr { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.pr-big { font: 600 22px/1.1 var(--f-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-per { font-size: 13px; color: var(--ink-3); }
.pr-net { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cmp .pr { justify-content: center; }
.cmp .pr-big { font-size: 16px; }

/* DeCA: mandatory in Spain since 5.10.2026 */
.deca-pr { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: 22px; overflow: hidden; border: 1.5px solid color-mix(in oklab, #c60b1e 35%, var(--line)); background: linear-gradient(120deg, color-mix(in oklab, #ffc400 12%, var(--paper)), var(--paper) 50%, color-mix(in oklab, #c60b1e 8%, var(--paper))); box-shadow: 0 24px 50px -32px color-mix(in oklab, #c60b1e 60%, transparent); }
.deca-pr::before { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 130px; background: linear-gradient(#c60b1e 25%, #ffc400 25% 75%, #c60b1e 75%); opacity: .1; transform: rotate(12deg); border-radius: 12px; }
.deca-pr-copy .h3 { margin: 0 0 12px; }
.deca-pr-copy > p { margin: 0; color: var(--ink-2); }
.deca-pr-copy .ticks-list { margin: 18px 0 20px; }
.deca-pr-box { position: relative; display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.deca-pr-l { margin: 0; font: 600 14px/1.3 var(--f-text); color: var(--ink-2); }
.deca-pr-box .pr-big { font-size: 34px; }
.deca-pr-sms { font-size: 12.5px; color: var(--ink-3); }

/* free eCMR: what is in it and what is not */
.free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.free-col { padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.free-col .h4 { display: flex; gap: 8px; align-items: center; }
.free-col .h4 svg { color: var(--ok); flex: none; }
.free-no .h4 svg { color: var(--danger); }
.free-col .ticks-list { margin: 16px 0; }
.free-fair { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); }
.free-no > p { margin: 12px 0 14px; font-size: 15px; }
.where { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.where li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.where-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); color: var(--brand-ink); }
.where b { display: block; font-size: 14.5px; color: var(--ink); }
.where small { display: block; font-size: 13px; color: var(--ink-3); }
.where a { font-size: 13px; font-weight: 600; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }

/* SMS credits: zones, actions, examples, calculator, packs */
.sms-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.sms-zones, .sms-side { padding: clamp(18px, 3vw, 26px); border-radius: 18px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.sms-zones .h4, .sms-side .h4, .sms-packs-h { margin: 0 0 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.tbl thead th { font: 600 12px/1.3 var(--f-text); color: var(--ink-3); }
.tbl tbody th { font-weight: 500; color: var(--ink); }
.tbl td small { font-size: 12px; color: var(--ink-3); }
.tbl tr.is-best { background: color-mix(in oklab, var(--brand-soft) 55%, var(--paper)); }
.sms-acts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; font-size: 14px; }
.sms-acts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sms-acts b { text-align: right; color: var(--ink); font-weight: 600; }
.sms-acts small { grid-column: 2; text-align: right; font-size: 12px; color: var(--ink-3); }
.sms-ex { display: grid; gap: 8px; }
.sms-ex-c { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); }
.sms-ex-c b { font: 600 15px/1.3 var(--f-display); color: var(--ink); }
.sms-ex-n { font: 600 15px/1.3 var(--f-display); color: var(--brand-ink); text-align: right; white-space: nowrap; }
.sms-ex-c small { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.sms-calc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sms-calc-f { display: grid; gap: 8px; }
.sms-calc-f label { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); }
.sms-calc-f select { min-width: 0; height: 38px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); font: 500 13.5px/1 var(--f-text); }
.sms-calc-f .sms-calc-x { grid-template-columns: 20px minmax(0, 1fr); }
.sms-calc-out { margin-top: 12px; }
.sms-calc-n { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.sms-calc-n b { font: 600 24px/1.1 var(--f-display); color: var(--ink); }
.sms-calc-n span { font-size: 13px; color: var(--ink-3); }
.sms-calc-c { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.sms-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.sms-notes h4 { margin: 0; font: 600 16px/1.3 var(--f-display); color: var(--ink); }
.sms-notes .ticks-list { margin: 12px 0 0; font-size: 14px; }

/* packs (SMS and AI) */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.packs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pack { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.pack-h { display: flex; gap: 12px; align-items: center; }
.pack-h h4, .pack-h h3 { margin: 0; font: 600 16px/1.3 var(--f-display); color: var(--ink); }
.pack-unit { margin: 0; font-size: 13px; color: var(--ink-2); }
.pack-fit { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.pack .btn { margin-top: auto; align-self: flex-start; }

/* plan picker: highlights the plan that fits the company size */
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 26px; }
.pick-l { font: 600 14px/1 var(--f-text); color: var(--ink-2); margin-right: 4px; }
.pick button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 500 14px/1 var(--f-text); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--e-out); }
.pick button:hover { border-color: var(--ink-3); }
.pick button:active { transform: scale(.97); }
.pick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick-hint { flex-basis: 100%; min-height: 1.4em; font-size: 13.5px; color: var(--ink-3); }

/* plan cards: free + three plans */
.plan { transition: transform .45s var(--e-spring), box-shadow .3s, opacity .3s; }
.plan.is-free { background: var(--paper-2); border-style: dashed; border-color: var(--line-2); }
.plan.is-match { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--brand), 0 30px 60px -30px color-mix(in oklab, var(--brand) 60%, transparent); }
.plans.has-match .plan:not(.is-match) { opacity: .62; }
.plan-target { margin: -4px 0 0; font: 600 13px/1.3 var(--f-text); color: var(--brand-ink); }
.plan-for { min-height: 4.1em; }
.plan-buy { align-self: center; margin-top: -4px; font-size: 13.5px; text-align: center; }
span.plan-buy { font-size: 12.5px; }
.plan-lim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.plan-lim div { min-width: 0; }
.plan-lim dt { font-size: 11.5px; color: var(--ink-3); }
.plan-lim dd { margin: 2px 0 0; font: 600 15px/1.2 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-lim dd small { display: block; margin-top: 2px; font: 400 11px/1.35 var(--f-text); color: var(--ink-3); }
.plan-inc { margin: 2px 0 -2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.plan li .pl-soon, .mod .pl-soon { font-style: normal; font-size: 11px; color: var(--warn); margin-left: 4px; white-space: nowrap; }
.plan-out { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.plan-out b { color: var(--ink-2); }
.plan-out a { color: var(--brand-ink); }
.plan-more { margin-top: auto; padding-top: 4px; font-size: 13.5px; }
.plan-save { display: grid; grid-template-columns: 14px 1fr; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ok); font-weight: 600; }
.plan-save svg { margin-top: 2px; }
.plan-save a { color: inherit; }

/* comparison table: module rows */
.cmp .m-n { display: block; font-weight: 500; color: var(--ink); }
.cmp .m-p { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.cmp .dis { display: inline-block; font: 600 12px/1 var(--f-text); padding: 5px 7px; border-radius: 7px; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.cmp .buy { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cmp td b.tnum { font-variant-numeric: tabular-nums; }
.cmp td small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.cmp .col-free { background: color-mix(in oklab, var(--paper-2) 70%, var(--paper)); }

/* savings table */
.sv { min-width: 760px; }
.sv tbody th { min-width: 120px; }
.sv td { vertical-align: top; text-align: left; display: table-cell; }
.sv td .sv-l { display: block; font: 600 11px/1.2 var(--f-text); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-top: 6px; }
.sv td .sv-l:first-child { margin-top: 0; }
.sv td .sv-v { display: block; }
.sv td .sv-v small { display: inline; }
.sv .sv-save { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.sv .sv-low .sv-save { color: var(--warn); }
.sv .sv-low { background: color-mix(in oklab, var(--warn-soft) 55%, var(--paper)); }
.sv .sv-note { display: inline-block; margin-top: 6px; font: 600 11px/1.4 var(--f-text); font-style: normal; background: var(--warn-soft); color: var(--warn); padding: 1px 7px; border-radius: 6px; }
.sv .sv-na { color: var(--ink-3); text-align: center; vertical-align: middle; }
.sv-honest { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--ink-2); }
.sv-honest svg { flex: none; margin-top: 2px; color: var(--warn); }

/* module catalog */
.mods-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.mods-nums { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.veh { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.veh-in { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); overflow: hidden; }
.veh-in button { width: 36px; height: 38px; border: 0; background: none; font: 600 18px/1 var(--f-text); color: var(--brand-ink); cursor: pointer; transition: background-color .2s; }
.veh-in button:hover { background: var(--brand-soft); }
.veh-in input { width: 56px; height: 38px; border: 0; border-inline: 1px solid var(--line); background: none; text-align: center; font: 600 15px/1 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.veh-in input::-webkit-inner-spin-button, .veh-in input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: border-color .25s, box-shadow .3s; animation: mod-in .45s var(--e-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes mod-in { from { opacity: 0; transform: translateY(8px); } }
.mod.is-on { border-color: color-mix(in oklab, var(--brand) 65%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--brand) 65%, transparent), 0 18px 40px -26px color-mix(in oklab, var(--brand) 70%, transparent); }
.mod-h { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.mod-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: hsl(var(--h, 252) 90% 95%); color: hsl(var(--h, 252) 70% 45%); flex: none; }
:root[data-theme="dark"] .mod-ic { background: hsl(var(--h, 252) 45% 17%); color: hsl(var(--h, 252) 95% 78%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mod-ic { background: hsl(var(--h, 252) 45% 17%); color: hsl(var(--h, 252) 95% 78%); } }
.mod-h h3 { margin: 0; font: 600 16px/1.3 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.mod-cat { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.mod-s { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mod-price { display: grid; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.mod-unit { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.mod-tag { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1.25 var(--f-text); padding: 5px 7px; border-radius: 7px; background: var(--paper-3); color: var(--ink-2); }
.mod-tag.is-plan { background: var(--brand-soft); color: var(--brand-ink); }
.mod-tag.is-soon { background: var(--warn-soft); color: var(--warn); }
.mod-tag.is-live { background: var(--ok-soft); color: var(--ok); }
.mod-req { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.mod-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font: 600 13px/1 var(--f-text); color: var(--brand-ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--e-out); }
.mod-add:hover { border-color: color-mix(in oklab, var(--brand) 55%, var(--line-2)); }
.mod-add:active { transform: scale(.97); }
.mod-add[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.mod-add[aria-pressed="true"] .mod-add-ic { transform: rotate(45deg); }
.mod-add-ic { display: inline-flex; transition: transform .35s var(--e-spring); }
.mod .link-arr { font-size: 13px; }
.mods-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--ink-3); }
.mod-more { color: var(--brand-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mod-more:hover { text-decoration: underline; }

/* calculator: sticks to the bottom of the viewport inside the modules section */
.calc { position: sticky; bottom: 14px; z-index: 5; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 16px 20px; border-radius: 18px; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border: 1px solid var(--line-2); box-shadow: var(--sh-float); }
.calc-sum { margin: 0; font: 600 17px/1.35 var(--f-display); color: var(--ink); }
.calc-sum small { font: 400 13px/1.4 var(--f-text); color: var(--ink-3); }
.calc-v { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.calc-v.is-plan { color: var(--ok); font-weight: 600; }
.calc-note { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.calc .row { margin: 0; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.calc-empty { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink-3); }
.calc-n { display: inline-block; }

/* eCMR via API */
.api-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.api-copy .ticks-list { margin-top: 0; }
.api-calc { padding: 18px 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.api-calc .h4 { margin: 0 0 12px; font-size: 1.05rem; }
.api-calc-in { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.api-calc-in input { width: 120px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font: 600 15px/1 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; }
.api-calc .tbl td:last-child { text-align: right; }
.tiers { display: grid; gap: 12px; }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding: 20px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.tier.is-pop { border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(160deg, var(--brand), var(--pink) 60%, var(--coral)) border-box; }
.tier h3 { margin: 0; font: 600 17px/1.3 var(--f-display); }
.tier p { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink-2); }
.tier-p { text-align: right; }
.tier-p .pr { justify-content: flex-end; }
.tier-p > b { display: block; font: 600 22px/1.1 var(--f-display); letter-spacing: -.02em; }
.tier-p > span { font-size: 12px; color: var(--ink-3); }
.tier ul { grid-column: 1 / -1; list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.tier li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.tier li svg { color: var(--brand); margin-top: 2px; }

/* AI */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ai-side { display: grid; gap: 14px; }
.ai-side .ticks-list { margin: 0; font-size: 14.5px; }
.ai-rep { display: grid; gap: 8px; justify-items: start; padding: 20px; border-radius: 18px; background: var(--paper); border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(160deg, var(--brand), var(--pink) 60%, var(--coral)) border-box; }
.ai-rep .eyebrow, .ai-rep .h4, .ai-rep p { margin: 0; }

/* trial */
.trial-in { max-width: 860px; }
.trial-in .row { margin-top: 28px; }

/* features page and home: which module and which plan */
.feat-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 22px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.feat-offer > b { color: var(--ink); font-weight: 600; }
.feat-offer a { color: var(--brand-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.feat-offer a:hover { text-decoration: underline; }
.feat-offer.is-free { background: var(--ok-soft); border-color: color-mix(in oklab, var(--ok) 25%, transparent); }
.feat-offer + .feat-offer { margin-top: -14px; }
.feat-deca { display: grid; gap: 4px; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid color-mix(in oklab, #c60b1e 35%, var(--line)); background: linear-gradient(120deg, color-mix(in oklab, #ffc400 12%, var(--paper)), var(--paper) 60%); font-size: 14px; color: var(--ink-2); }
.feat-deca b { color: var(--ink); }
.deca-offer { margin: 0 0 20px; }
.deca-offer .pr-big { font-size: 26px; }
.deca-offer .deca-pr-l { margin: 0; }

.rules-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-list { margin: 0 0 16px; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; max-width: 660px; }
.tag-free { font: 700 10.5px/1 var(--f-text); font-style: normal; letter-spacing: .02em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 3px 6px; border-radius: 6px; vertical-align: 1px; }

@media (max-width: 1023px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-pr, .deca-pr, .sms-grid, .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .packs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mods, .packs, .packs-4, .free-grid, .sms-notes { grid-template-columns: minmax(0, 1fr); }
  .rules-6 { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); bottom: 8px; padding: 14px 16px; }
  .calc .row { justify-content: flex-start; }
  .plan.is-match { transform: none; }
  .mods-tools { align-items: flex-start; flex-direction: column; }
  .tier { grid-template-columns: minmax(0, 1fr); }
  .tier-p { text-align: left; }
  .tier-p .pr { justify-content: flex-start; }
  .pr-jump { display: none; }
  .sms-calc-f label { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sms-calc-f label > span:first-child { grid-column: 1 / -1; }
  .where li { grid-template-columns: 34px minmax(0, 1fr); }
  .where a { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .mod { animation: none; }
  .plan.is-match { transform: none; }
}
@media print {
  .calc, .pick, .mod-add, .pr-switches, .sms-calc, .api-calc { display: none !important; }
}
@media (max-width: 400px) { .period button { padding: 10px 12px; } }


/* ------------------------------------------------------------------ site port: language links (server-side ?lang=) */
.ft-langs a { display: flex; gap: 8px; align-items: center; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; text-align: left; color: var(--ink-2); text-decoration: none; }
.ft-langs a:hover, .ft-langs a[aria-current="true"] { background: var(--paper-2); color: var(--ink); }
.ft-langs a code { font: 500 11px/1 var(--f-mono, ui-monospace, monospace); color: var(--ink-3); width: 20px; }
/* site port: blog cards on the home page use the real post image (from the blog backend) */
.cover-img { background: linear-gradient(135deg, var(--brand), var(--pink)); }
.cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-detail[hidden] { display: none; }
/* site port: the pricing page renders both billing periods; the switch shows one of them */
.pricing[data-period="month"] .if-year, .pricing[data-period="year"] .if-month { display: none; }
.mods-cat-h { margin: 36px 0 14px; }
.mods-cat-h:first-of-type { margin-top: 8px; }
/* site port: the currency switch is two links (prices are rendered on the server per currency), the current one filled */
.cur-switch a { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font: 600 14.5px/1 var(--f-text); color: var(--ink-3); text-decoration: none; transition: color .3s, background-color .3s; }
.cur-switch a:hover { color: var(--ink); }
.cur-switch a[aria-current="true"] { color: #fff; background: var(--btn); box-shadow: 0 4px 12px -4px color-mix(in oklab, var(--brand) 70%, transparent); }
.deca-pr-box .btn { margin-top: 4px; }
/* site port: the old English anchors of the price list (/pricing#plans, #modules) next to the new section ids */
.pricing section > .anchor { display: block; position: relative; top: -80px; height: 0; }

/* site port: blog categories are links (the list is rendered on the server per category) and the list has pages */
.cats a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font: 500 14px/1 var(--f-text); color: var(--ink-2); text-decoration: none; transition: border-color .2s; }
.cats a:hover { border-color: var(--ink-3); }
.cats a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search input { padding-right: 14px; }
.pager { display: flex; gap: 12px 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); }
.pager-n { font-size: 14px; color: var(--ink-3); }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }

/* ================================================================ partner programme (/partners, /partners/agreement) */
.pt-calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.pt-calc-in { display: grid; gap: 24px; }
.pt-range { display: grid; gap: 12px; font: 600 14px/1.3 var(--f-text); color: var(--ink-2); }
.pt-range > span { display: flex; justify-content: space-between; align-items: baseline; }
.pt-range b { font: 600 28px/1 var(--f-display); color: var(--ink); }
.pt-range input[type=range] { width: 100%; accent-color: var(--brand); }
.pt-plans { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-plans legend { font: 600 14px/1.3 var(--f-text); color: var(--ink-2); margin-bottom: 8px; }
.pt-plan { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.pt-plan:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pt-plan input { margin-top: 3px; accent-color: var(--brand); }
.pt-plan b { display: block; font: 600 15px/1.3 var(--f-display); color: var(--ink); }
.pt-plan small { color: var(--ink-3); font-size: 13px; }
.pt-out { display: grid; gap: 18px; padding: 22px; border-radius: 18px; background: var(--paper-2); }
.pt-out-main small { display: block; font-size: 13px; color: var(--ink-3); }
.pt-out-main b { display: block; margin: 6px 0; font: 650 clamp(32px, 5vw, 48px)/1 var(--f-display); color: var(--brand-ink); letter-spacing: -.02em; }
.pt-out-main span { font-size: 14px; color: var(--ink-2); }
.pt-out-dl { margin: 0; display: grid; gap: 8px; }
.pt-out-dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pt-out-dl dt { color: var(--ink-2); }
.pt-out-dl dd { margin: 0; color: var(--ink); }
.pt-video-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.pt-video { margin: 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--brand-soft), var(--paper-2)); }
.pt-video-ph { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; }
.pt-video-play { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--paper); color: var(--brand-ink); box-shadow: var(--sh-float); margin-bottom: 8px; }
.pt-video-ph b { font: 600 18px/1.3 var(--f-display); color: var(--ink); }
.pt-video-ph small { max-width: 380px; color: var(--ink-2); font-size: 14px; }
.pt-draft { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: 14px; }
.pt-draft > span:first-child { color: var(--warn); flex: none; margin-top: 1px; }
@media (max-width: 900px) {
  .pt-calc, .pt-video-wrap { grid-template-columns: minmax(0, 1fr); }
}
.pt-agreement { padding-top: calc(var(--hdr-h, 64px) + 24px); }
.pt-agreement h1 { margin: 24px 0 12px; }
.pt-agreement h2 { margin: 28px 0 8px; }
.pt-agreement ol { padding-left: 1.3em; }
.pt-agreement li { margin: 4px 0; }
@media print { .pt-no-print { display: none !important; } .pt-agreement { padding-top: 0; } }
.pt-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.pt-ref { display: inline-flex; gap: 8px; align-items: center; margin: 16px 0 0; padding: 8px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; }
.pt-ref[hidden] { display: none; }
.pt-captcha { margin: 4px 0 16px; min-height: 65px; }
/* trap for robots: off screen for people, still a field for scripts that fill every input */
.pt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ================================================================ e-CMR documents on the price list (#docs) */
.docs-box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; margin-bottom: 24px; padding: clamp(18px, 3vw, 28px); border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.docs-box h3 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 0 0 8px; }
.docs-box h3 small { font: 500 14px/1.3 var(--f-text); color: var(--ink-3); }
.docs-calc label { display: grid; gap: 8px; font: 600 13px/1.3 var(--f-text); color: var(--ink-2); }
.docs-calc input { font: 500 15px/1 var(--f-text); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); max-width: 180px; }
.docs-calc-out { margin: 12px 0 0; font: 600 15px/1.4 var(--f-text); color: var(--ink); }
@media (max-width: 900px) { .docs-box { grid-template-columns: minmax(0, 1fr); } }
@media print { .docs-calc { display: none !important; } }

/* ================================================================ live bar above the header: real data (site-topbar.tpl, site-topbar.js) */
/* The base .topbar/.tb-* rules come with the prototype port near the top of this file; this block adds what real data
   needs: a tile without data is [hidden], no tiles and no news hide the whole bar, focus rings, reduced motion. */
.topbar[hidden], .tb-stats li[hidden] { display: none; }
.tb-stats { flex: none; }
.tb-stats li { cursor: default; }
.tb-stats li > [data-ico] { display: inline-flex; color: var(--ink-3); }
.tb-news { margin-left: auto; }
.tb-track a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 4px; }
.tb-btn { padding: 0; }
.tb-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tb-track li { transition: none; }
  .tb-pill.is-bump { animation: none; }
}
/* next to the news there is room for two tiles below 1180 px */
@media (max-width: 1180px) {
  .topbar:not(.tb-no-news) .tb-stats li:not([hidden]) ~ li:not([hidden]) ~ li { display: none; }
}
/* narrower screens: the first tile that has data (not just the first tile), then news only */
@media (max-width: 900px) {
  .topbar .tb-stats li:not(:first-child):not([hidden]) { display: inline-flex; }
  .topbar .tb-stats li:not([hidden]) ~ li:not(:first-child) { display: none; }
}
@media (max-width: 720px) {
  .tb-in { gap: 12px; }
  .tb-news { margin-left: 0; }
  /* without news the numbers stay, one tile */
  .topbar.tb-no-news .tb-stats { display: flex; }
}

/* ================================================================ spacing system (owner 10.11.2026)
   One rhythm for the whole public site, on a 4/8 px scale. The block only sets spacing (margins, gaps, padding),
   it does not touch colours, type or the hero map, and it sits last so it wins over the older per-section values.
   Scale:  --sp-1 4 | --sp-2 8 | --sp-3 12 | --sp-4 16 | --sp-5 20 | --sp-6 24 | --sp-8 32 | --sp-10 40 | --sp-12 48
   Roles:  --card-pad (cards) and --card-pad-lg (large section cards), --card-gap (cards side by side or stacked),
           --stack-gap (heading -> text -> list inside a card), --cta-gap (last list item -> link or button). */
:root {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --card-pad: clamp(20px, 2.4vw, 28px);
  --card-pad-lg: clamp(24px, 4vw, 40px);
  --card-gap: clamp(16px, 1.6vw, 24px);
  --stack-gap: var(--sp-4);
  --cta-gap: var(--sp-8);
}
.row { gap: var(--sp-3); }

/* home: "For every scale" cards (each segment is its own card; they are stacked) */
.seg-panels { display: grid; gap: var(--card-gap); }
.seg { padding: var(--card-pad-lg); gap: clamp(32px, 4vw, 56px); }
.seg-copy .h3 { margin: 0 0 var(--sp-3); }
.seg-copy > p.muted { margin: 0; }
.seg-pts { margin-top: var(--sp-6); }
.seg-copy > .link-arr { display: flex; width: fit-content; margin-top: var(--cta-gap); }

/* home: product bento, developers, DeCA, plans */
.bento { gap: var(--card-gap); }
.dev-grid { gap: var(--card-gap); }
.deca { padding: var(--card-pad-lg); }
.deca-copy .row { gap: var(--sp-3); }
.deca-count.is-over > div { padding: var(--sp-6) var(--sp-5); }
.deca-over > span { display: block; margin-top: var(--sp-2); line-height: 1.5; }
.plans { gap: var(--card-gap); }
.plan { padding: var(--sp-6) var(--sp-5); }
.plan-top { flex-wrap: wrap; row-gap: var(--sp-2); }
.plan-top h3 { flex: none; }
#cennik .plan > .btn-block:last-child { margin-top: auto; }
.plans-note { margin-top: var(--sp-8); }
.plans-note + .plans-note { margin-top: var(--sp-4); }

/* features: offer boxes under the text are their own blocks, not glued to the paragraph or to each other */
.feat-copy > .feat-offer { margin: var(--sp-5) 0 0; padding: var(--sp-3) var(--sp-4); }
.feat-copy > .feat-offer + .feat-offer { margin-top: var(--sp-3); }
.feat-copy > .feat-deca { margin: var(--sp-5) 0 0; }
.feat-copy > .ticks-list { margin: var(--sp-6) 0; }
.feat-copy > .store-row { margin-top: var(--sp-6); }

/* official store badges (site-store-badges.tpl): hero, footer and the driver app on /features use the same files */
.store-badge { display: block; line-height: 0; border-radius: 7px; }
.store-badge img { display: block; width: auto; height: 40px; }
.store-row, .ft-stores { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* pricing page: cards in grids, text before lists */
.rules, .mods, .packs, .free-grid, .sms-grid, .sms-notes, .ai-grid { gap: var(--card-gap); }
.rule, .free-col, .sms-zones, .sms-side { padding: var(--card-pad); }
.api-copy .ticks-list { margin-top: var(--sp-5); }

/* contact: cards and the reCAPTCHA note under the button (was split into columns by the flex .hint) */
.contact { gap: var(--card-gap); }
.contact-card, .form-card { padding: var(--card-pad); }
.form-foot + .hint { display: block; margin: var(--sp-4) 0 0; line-height: 1.5; }

/* blog post: closing call to action */
.art-cta { padding: var(--card-pad); }
.art-cta .row { gap: var(--sp-3); }
.prose .art-cta .btn-outline-light, .art-cta .btn-outline-light { color: #fff; text-decoration: none; }
.prose .art-cta .btn-light { text-decoration: none; }

@media (max-width: 1023px) {
  .seg { gap: var(--sp-8); }
}
@media (max-width: 720px) {
  .plan { padding: var(--sp-6) var(--sp-5); }
}
/* Legal documents written from scratch (LegalDocumentService): numbered sections with numbered paragraphs */
.legal-doc .legal-title { margin: 0 0 6px; }
.legal-doc .legal-version { margin: 0 0 28px; opacity: .75; font-size: 14.5px; }
.legal-doc .legal-section { margin-top: 28px; scroll-margin-top: 96px; }
.legal-doc .legal-section h3 { margin: 0 0 10px; }
.legal-doc .legal-paras { padding-left: 1.6em; margin: 0; }
.legal-doc .legal-paras li { margin: 0 0 10px; overflow-wrap: anywhere; }
