/* V3 "Pult prvi": conversion product page for the counter and fast food register.
 *
 * Design system from ui-ux-pro-max (queries and picks in NOTES.md):
 *   pattern   Real-Time / Operations Landing + Comparison Table + CTA
 *   style     Bento Box Grid, kept to Swiss Modernism 2.0 discipline (one grid, one accent)
 *   colour    SaaS (General) trust blue + B2B Service navy ink; CTA orange darkened to AA
 *   type      Plus Jakarta Sans (Friendly / Enterprise SaaS) + Fira Code for data labels
 * No words live in this file: every visible string is a copy slot in index.html.
 */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --counter: #E7ECF2;

  /* ink */
  --ink: #0F172A;          /* 17.0:1 on --bg */
  --ink-2: #334155;        /* 10.3:1 on white */
  --muted: #475569;        /*  7.2:1 on --bg */
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --rule: #64748B;         /*  4.7:1, dashed borders that carry meaning */

  /* brand */
  --primary: #2563EB;      /* 5.2:1 on white, focus ring and highlights */
  --primary-strong: #1D4ED8; /* 6.7:1 on white, text links and kickers */
  --primary-soft: #EFF6FF;
  --primary-soft-2: #DBEAFE;
  --cta: #C2410C;          /* white text 5.2:1 (skill #EA580C fails AA for text) */
  --cta-strong: #9A3412;   /* white text 7.3:1 */

  /* dark band */
  --dark: #0F172A;
  --dark-2: #1E293B;
  --on-dark: #F8FAFC;
  --on-dark-muted: #CBD5E1; /* 12.1:1 on --dark */
  --on-dark-accent: #93C5FD; /* 9.9:1 on --dark */

  /* status chips: text + marker shape, never colour alone */
  --wip-bg: #FEF3C7;
  --wip-line: #F5C451;
  --wip-ink: #92400E;      /* 6.4:1 on --wip-bg */
  --pilot-bg: #DBEAFE;
  --pilot-line: #93C5FD;
  --pilot-ink: #1E40AF;    /* 7.2:1 on --pilot-bg */

  --focus: #2563EB;
  --focus-on-dark: #93C5FD;

  /* type */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Fira Code", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* shape, depth, motion */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-3: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 40px rgba(15, 23, 42, 0.10);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 200ms;

  /* layout */
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --z-header: 40;
  --z-skip: 100;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: auto;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

a { color: var(--primary-strong); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus { outline: none; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--focus-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font: 600 1rem/1.25 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn--cta {
  background: var(--cta);
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 6px 16px rgba(194, 65, 12, 0.22);
}
.btn--cta:hover { background: var(--cta-strong); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink-2); }

.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
/* Sticky only when the header is compact: with JS (menu panel) or on wide screens. */
.site-header {
  position: relative;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.js .site-header { position: sticky; }

.header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--header-h);
  padding-block: 8px;
}

.brand {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
.brand__name { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__by { display: none; margin-top: 2px; font-size: 0.8125rem; color: var(--muted); }

.site-nav { flex-basis: 100%; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.site-nav__list a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav__list a[aria-current] { color: var(--primary-strong); box-shadow: inset 0 -2px 0 var(--primary); }
.site-nav__cta { margin-top: 8px; width: 100%; }

.header__cta { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.9375rem/1.2 var(--font-sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--ink-2); }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px, -2px); }

/* With JS: below the inline breakpoint the nav is a disclosure panel under the header. */
.js .nav-toggle { display: inline-flex; }
.js .site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.js .site-nav[data-open] { display: block; }
.js .site-nav__list { flex-direction: column; gap: 0; }
.js .site-nav__list a { width: 100%; min-height: 48px; border-bottom: 1px solid var(--line); border-radius: 0; }

@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .site-nav__cta { display: none; }
}

@media (min-width: 1280px) {
  .site-header { position: sticky; }
  .header__row { flex-wrap: nowrap; gap: 24px; }
  .brand { flex: 0 1 auto; max-width: 260px; }
  .brand__by { display: block; }
  .site-nav,
  .js .site-nav {
    display: block;
    position: static;
    flex-basis: auto;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list,
  .js .site-nav__list { flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .js .site-nav__list a { width: auto; min-height: 44px; border-bottom: 0; border-radius: var(--r-sm); }
  .nav-toggle,
  .js .nav-toggle { display: none; }
}

/* ---------- Shared bits ---------- */
.chev {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease-out);
}

.kicker {
  font: 600 0.8125rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font: 500 0.8125rem/1.2 var(--font-mono);
}
.chip__mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

/* in progress: half-filled ring */
.chip[data-state="izrada"] { background: var(--wip-bg); border-color: var(--wip-line); color: var(--wip-ink); }
.chip[data-state="izrada"] .chip__mark { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* in pilot: full dot */
.chip[data-state="pilot"] { background: var(--pilot-bg); border-color: var(--pilot-line); color: var(--pilot-ink); }
.chip[data-state="pilot"] .chip__mark { background: currentColor; }

/* next step: ring with a centre dot */
.chip[data-state="next"] { background: var(--surface); border-color: var(--primary); color: var(--primary-strong); }
.chip[data-state="next"] .chip__mark { background: radial-gradient(circle, currentColor 0 2.5px, transparent 3px); }

/* planned: hollow ring */
.chip[data-state="plan"] { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-2); }

/* later: dashed ring */
.chip[data-state="later"] { background: transparent; border-style: dashed; border-color: var(--rule); color: var(--muted); }
.chip[data-state="later"] .chip__mark { border-style: dashed; }

/* optional: dashed square */
.chip[data-state="option"] { background: var(--surface); border-style: dashed; border-color: var(--rule); color: var(--ink-2); }
.chip[data-state="option"] .chip__mark { border-radius: 2px; border-style: dashed; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0 72px; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

@media (min-width: 1024px) {
  .section { padding: 112px 0; }
  .section--tight { padding: 48px 0 112px; }
}

.section__head { max-width: 760px; }
.section__head h2 {
  margin-top: 12px;
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ---------- B1 Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 48px 0 64px;
}
/* The counter: a plain slab the status board rests on. Structure, not a picture. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: -1;
  background: var(--counter);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.hero__grid { display: grid; gap: 40px; }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--ink-2);
  font: 500 0.8125rem/1.4 var(--font-mono);
}

.pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: pulse 2s var(--ease-out) infinite; }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero__title {
  margin-top: 20px;
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.55rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero__lead {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 20px;
  max-width: 52ch;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 0.875rem;
  color: var(--muted);
}

.board {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}
.board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}
.board__title {
  font: 600 0.8125rem/1.35 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.board__list { margin-top: 12px; }
.board__row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.board__row:last-child { padding-bottom: 0; }
.board__row dt {
  font: 500 0.8125rem/1.35 var(--font-mono);
  color: var(--muted);
}
.board__row dd {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

/* Desktop: the copy column stops above the counter edge, the board hangs onto the counter. */
@media (min-width: 1024px) {
  .hero { padding: 80px 0 56px; }
  .hero::after { height: 150px; }
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 56px;
  }
  .hero__copy { padding-bottom: 124px; }
  .board { padding: 28px; }
}

/* ---------- B3 Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "no chip"
    "label label"
    "body body";
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}
.tile__no {
  grid-area: no;
  align-self: center;
  font: 500 0.875rem/1 var(--font-mono);
  color: var(--muted);
}
.tile > .chip { grid-area: chip; justify-self: end; }
.tile__label {
  grid-area: label;
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}
.tile__body {
  grid-area: body;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* The counter tile: the visual centre of the grid. */
.tile--pult {
  grid-template-areas:
    "no chip"
    "label label"
    "body body"
    "points points";
  padding: 28px;
  background: var(--dark);
  border-color: var(--dark);
  box-shadow: var(--shadow-3);
  color: var(--on-dark);
}
.tile--pult .tile__no { color: #94A3B8; }
.tile--pult .tile__label {
  margin-top: 24px;
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.tile--pult .tile__body {
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--on-dark-muted);
}
.tile--pult > .chip[data-state="izrada"] {
  background: rgba(253, 230, 138, 0.12);
  border-color: rgba(253, 230, 138, 0.45);
  color: #FDE68A;
}
.tile--pult > .chip[data-state="pilot"] {
  background: rgba(147, 197, 253, 0.14);
  border-color: rgba(147, 197, 253, 0.5);
  color: var(--on-dark-accent);
}

.tile__points {
  grid-area: points;
  margin-top: 12px;
  border-top: 1px solid rgba(248, 250, 252, 0.16);
}
.tile__points li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.10);
  font-size: 0.9375rem;
  color: var(--on-dark);
}
.tile__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--on-dark-accent);
}

.legend {
  margin-top: 20px;
  max-width: 70ch;
  padding-left: 14px;
  border-left: 2px solid var(--wip-line);
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "pult pult"
      "kuh smj"
      "nap izv";
  }
  .tile--pult { grid-area: pult; }
  .tile--kuhinja { grid-area: kuh; }
  .tile--naplata { grid-area: nap; }
  .tile--smjena { grid-area: smj; }
  .tile--izvjestaji { grid-area: izv; }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "kuh pult pult smj"
      "nap pult pult izv";
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 20px;
  }
  .tile--pult { padding: 36px; }
  .tile--pult .tile__label { margin-top: 40px; }
}

/* ---------- B2 Comparison ---------- */
.cmp {
  margin-top: 40px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.cmp__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.cmp__caption {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  caption-side: top;
  text-align: left;
  font: 500 0.8125rem/1.4 var(--font-mono);
  color: var(--muted);
}
.cmp__h {
  padding: 16px 24px;
  text-align: left;
  vertical-align: bottom;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}
.cmp__h--aspect { width: 24%; color: var(--muted); }
.cmp__h--old { width: 38%; background: var(--surface-2); color: var(--ink-2); }
.cmp__h--new { width: 38%; background: var(--primary-strong); color: #FFFFFF; }

.cmp__table tbody th {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.cmp__table td {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.cmp__old { background: var(--bg); color: var(--muted); }
.cmp__new { background: var(--primary-soft); color: var(--ink); border-left: 1px solid var(--primary-soft-2); }
.cmp__row--option th,
.cmp__row--option td { border-top-style: dashed; border-top-color: var(--rule); }

.cmp__tag { display: none; }

.cmp__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
}
.cmp__note {
  flex: 1 1 320px;
  max-width: 64ch;
  padding-left: 14px;
  border-left: 2px solid var(--wip-line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Small screens: each row becomes a card; the roles in the markup keep the table semantics. */
@media (max-width: 767px) {
  .cmp__table,
  .cmp__table caption,
  .cmp__table tbody,
  .cmp__table tr,
  .cmp__table th,
  .cmp__table td { display: block; width: auto; }
  .cmp__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cmp__caption { padding: 16px 20px; }
  .cmp__table tbody tr { padding-bottom: 16px; border-top: 1px solid var(--line); }
  .cmp__table tbody tr:first-child { border-top: 0; }
  .cmp__table tbody th { padding: 16px 20px 8px; border-top: 0; }
  .cmp__table td { padding: 10px 20px; border-top: 0; }
  .cmp__old { background: transparent; }
  .cmp__new { margin: 4px 12px 0; padding: 12px 14px; border: 1px solid var(--primary-soft-2); border-radius: var(--r-md); }
  .cmp__row--option { border-top-style: dashed; border-top-color: var(--rule); }
  .cmp__tag {
    display: block;
    margin-bottom: 4px;
    font: 500 0.75rem/1.35 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .cmp__new .cmp__tag { color: var(--primary-strong); }
  .cmp__foot .btn { width: 100%; }
}

/* ---------- B8 Phases ---------- */
.track {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.grp__label {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid currentColor;
  font: 600 0.8125rem/1.35 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
.grp--stolovi .grp__label { border-bottom-style: dashed; color: var(--muted); }

.phases { display: grid; gap: 12px; }

.phase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "no chip"
    "title title"
    "body body";
  align-content: start;
  gap: 10px 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.phase__no {
  grid-area: no;
  align-self: center;
  font: 500 1.75rem/1 var(--font-mono);
  color: var(--ink);
}
.phase > .chip { grid-area: chip; justify-self: end; align-self: center; }
.phase__title {
  grid-area: title;
  margin-top: 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}
.phase__body {
  grid-area: body;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.phase--next {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft-2);
}
.grp--stolovi .phase {
  background: transparent;
  border-style: dashed;
  border-color: var(--rule);
}
.grp--stolovi .phase__no { color: var(--muted); }

.mvp {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.mvp__label { font-size: 1.125rem; font-weight: 700; }
.mvp__list { display: grid; gap: 0 32px; margin-top: 12px; }
.mvp__list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.mvp__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--primary);
}

@media (min-width: 720px) {
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mvp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .mvp { padding: 28px 32px; }
}

@media (min-width: 1280px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- B4 Optional band ---------- */
.spoj {
  display: grid;
  gap: 24px;
  padding: 28px 24px;
  background: var(--surface);
  border: 2px dashed var(--rule);
  border-radius: var(--r-xl);
}
.spoj h2 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.spoj__lead { margin-top: 12px; max-width: 60ch; color: var(--ink-2); }
.spoj__items { display: grid; gap: 12px; }
.spoj__item {
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.spoj__item h3 { font-size: 1rem; font-weight: 700; }
.spoj__item p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.spoj__note { font-size: 0.875rem; color: var(--muted); }

@media (min-width: 720px) {
  .spoj { padding: 32px; }
  .spoj__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .spoj {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "head items"
      "head note";
    gap: 20px 48px;
    padding: 40px;
  }
  .spoj__head { grid-area: head; }
  .spoj__items { grid-area: items; }
  .spoj__note { grid-area: note; }
}

/* ---------- B11 Questions ---------- */
.faq { display: grid; gap: 32px; }
.faq__head h2 {
  margin-top: 12px;
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.faq__lead { margin-top: 16px; max-width: 48ch; color: var(--ink-2); }
.faq__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
}

.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease-out);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--primary-strong); }
.qa summary .chev { margin-right: 6px; }
.qa[open] summary .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.qa p {
  max-width: 68ch;
  padding: 0 4px 20px;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- B10 Pilot ---------- */
.pilot {
  padding: 72px 0;
  background: var(--dark);
  color: var(--on-dark);
}
.pilot :focus-visible { outline-color: var(--focus-on-dark); }
.pilot__grid { display: grid; gap: 40px; }
.kicker--dark { color: var(--on-dark-accent); }
.pilot h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.pilot__lead {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 1.125rem;
  color: var(--on-dark-muted);
}

.pilot__card {
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: var(--ink);
}
.pilot__card :focus-visible { outline-color: var(--focus); }
.pilot__card h3 { font-size: 1.125rem; font-weight: 700; }
.pilot__who { margin: 16px 0 24px; }
.pilot__who li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.pilot__n { font: 500 0.875rem/1.7 var(--font-mono); color: var(--primary-strong); }
.pilot__contact {
  margin-top: 16px;
  padding: 4px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .pilot { padding: 112px 0; }
  .pilot__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 64px; }
  .pilot__card { padding: 36px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__grid { display: grid; gap: 20px; }
.footer__name { font-size: 1rem; font-weight: 800; color: var(--ink); }
.footer__meta { display: grid; gap: 8px; max-width: 72ch; }

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active { transform: none; }
}
