/* PromptCompany / PromptFactory one-pager, v2.
   Palette from the v3 identity book, section 06 (direction C "Block P"):
   ink #111418, paper #f4f3ee, green #1e9e64 (graphics only on paper),
   text green #157a4c (on paper), #3ddc84 (on ink), grey #5d636b.
   Layout language from the PromptFactory pilot deck: dark "reverse" slides, the belt with its two
   loops, green square markers, letter keys, white cards on paper, dark panels for the key point.
   No web fonts: system sans, like the deck (Arial). No scripts, no inline styles (CSP style-src 'self'). */

:root {
  --ink: #111418;
  --ink-2: #1a1e24;
  --ink-3: #0b0d10;
  --ink-line: #2d333b;
  --paper: #f4f3ee;
  --paper-card: #ffffff;
  --paper-line: #d8d5cb;
  --green: #1e9e64;
  --green-text: #157a4c;
  --green-on-ink: #3ddc84;
  --grey: #5d636b;
  --body-on-paper: #2f343a;
  --on-ink: #f4f3ee;
  --on-ink-muted: #b3b8bf;
  --on-ink-faint: #8f97a1;
  --arrow: #7c848e;
  --sans:
    "Inter", "Segoe UI", -apple-system, system-ui, Roboto, "Helvetica Neue",
    Arial, "Liberation Sans", sans-serif;
  --mono:
    ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    "DejaVu Sans Mono", monospace;
  --wrap: 1200px;
  --gutter: 20px;
  --radius: 12px;
  --g: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--green-on-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-paper a:focus-visible,
.on-paper .btn:focus-visible {
  outline-color: var(--green-text);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--green-on-ink);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 20, 24, 0.96);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--on-ink-muted); font-size: 15px; }
.nav a:hover { color: var(--on-ink); }
.nav .nav-cta {
  color: var(--ink); background: var(--green-on-ink); font-weight: 650;
  padding: 8px 14px; border-radius: 8px;
}
.nav .nav-cta:hover { color: var(--ink); background: #63e59d; }
.nav .lang {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  border: 1px solid var(--ink-line); border-radius: 6px; padding: 4px 8px;
}

/* one-pager header: section links, then the actions (CTA + EN | PL links to the other language's page) */
.site-header .nav-main { margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; flex-shrink: 0;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; line-height: 1.4;
  border: 1px solid var(--ink-line); border-radius: 6px; padding: 2px;
}
.nav .lang-switch a {
  font: inherit; letter-spacing: inherit; color: var(--on-ink-muted); text-decoration: none;
  border-radius: 4px; margin: 0; padding: 3px 6px;
}
.nav .lang-switch a:hover { color: var(--on-ink); }
.nav .lang-switch a[aria-current="page"] { color: var(--green-on-ink); background: var(--ink-line); font-weight: 700; }
.lang-switch a:focus-visible { outline: 3px solid var(--green-on-ink); outline-offset: 2px; }
.lang-switch .sep { color: #4a525c; padding: 0 1px; }

@media (max-width: 760px) {
  .nav .nav-section { display: none; }
  .nav { gap: 12px; }
  .brand img { height: 24px; }
  html { scroll-padding-top: 112px; }
  .site-header .wrap { flex-wrap: wrap; gap: 4px 12px; min-height: 0; padding-top: 10px; padding-bottom: 6px; }
  .site-header .nav-actions { margin-left: auto; }
  .site-header .nav-main { order: 3; flex: 1 1 100%; margin-left: 0; flex-wrap: wrap; gap: 0 20px; }
  .nav-main .nav-section { display: inline-block; font-size: 14px; padding: 6px 0; }
}
@media (max-width: 400px) {
  .brand img { height: 22px; }
  .site-header .nav-actions { gap: 8px; }
  .nav .nav-cta { padding: 8px 10px; }
  .nav .lang-switch a { padding: 3px 5px; }
}
@media (max-width: 340px) {
  .site-header .wrap { column-gap: 8px; }
  .brand img { height: 18px; }
  .site-header .nav-actions { gap: 6px; }
  .nav .nav-cta { padding: 8px 9px; }
  .lang-switch .sep { display: none; }
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(33px, 3.9vw, 50px);
  font-weight: 750;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 750;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}
p {
  margin: 0;
}
@media (max-width: 360px) {
  h1 {
    font-size: 31px;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-on-ink);
  margin: 0 0 14px;
}
.on-paper .eyebrow {
  color: var(--green-text);
}

/* the deck's section labels: sans, bold, wide tracking */
.card-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-on-ink);
  margin: 0 0 14px;
}
.on-paper .card-label {
  color: var(--green-text);
}
.on-paper .console-card .card-label,
.on-paper .ref .card-label,
.on-paper .spec-ink .card-label {
  color: var(--green-on-ink);
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--on-ink-muted);
  max-width: 64ch;
}
.on-paper .lead {
  color: var(--grey);
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-on-ink);
}
.on-paper .tag {
  color: var(--green-text);
}

.nw {
  white-space: nowrap;
}
.asof {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--on-ink-faint);
}

.mark-sq {
  display: inline-block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: var(--green-on-ink);
  margin-right: 10px;
  vertical-align: 0;
}

/* ---------- sections ---------- */
section {
  padding: clamp(64px, 8.5vw, 104px) 0;
}
.on-paper {
  background: var(--paper);
  color: var(--ink);
}
.section-head {
  max-width: 800px;
  margin-bottom: 40px;
}
.section-head h2 + .lead {
  margin-top: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--green-on-ink);
  color: var(--ink);
}
.btn-primary:hover {
  background: #63e59d;
}
.btn-ghost {
  border-color: #4a525c;
  color: var(--on-ink);
}
.btn-ghost:hover {
  border-color: var(--on-ink-muted);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 480px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* person icon (human decisions) */
.person {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.person circle,
.person rect {
  fill: currentColor;
}

/* square ticks */
.ticks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding-left: 24px;
  margin-top: 8px;
  font-size: 17px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 11px;
  height: 11px;
  background: var(--green);
}
.console-card .ticks li::before,
#pilot .ticks li::before {
  background: var(--green-on-ink);
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(244, 243, 238, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 238, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  max-width: 13em;
}
.hero .claim {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.45;
  color: var(--on-ink);
}
.hero .claim strong {
  color: var(--green-on-ink);
  font-weight: 650;
}
.hero .sub {
  margin-top: 16px;
  color: var(--on-ink-muted);
}
@media (max-width: 1000px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero h1 {
    max-width: 20ch;
  }
}

/* ---------- the line (deck slide 1): seven stages, two loops back to BUILD ---------- */
.line {
  margin: 56px 0 0;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  padding: 26px 28px 24px;
}
.line-title {
  margin: 0;
}
.belt {
  list-style: none;
  margin: 0;
  padding: 78px 0 140px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--g);
  align-items: stretch;
}
.st {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 116px;
  padding: 14px 8px;
  text-align: center;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  background: var(--ink);
}
.st .n {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.st .s {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--green-on-ink);
}
.st .when {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--on-ink-faint);
}
.st-task {
  border-color: #6b727c;
}
.st-task .s {
  color: var(--on-ink-muted);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 14px;
}
.st-gate {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}
.st-gate .s {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 14px;
}
.st-done {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.st-done .s {
  color: var(--green-text);
}

/* arrows between the stages */
.st:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 3px);
  width: calc(var(--g) - 10px);
  height: 2px;
  margin-top: -1px;
  background: var(--arrow);
}
.st:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--g) - 9px);
  margin-top: -5px;
  border-left: 7px solid var(--arrow);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* notes under a stage */
.st .note {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 100%;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  color: var(--on-ink-muted);
}
.st .note.human {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--on-ink);
  font-weight: 600;
}
.st-task .note {
  width: 175%;
}

/* the two loops: dashed brackets that end in an arrow into BUILD */
.loop {
  position: absolute;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--green-on-ink);
  text-align: center;
}
.loop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  border: 2px dashed var(--green-on-ink);
}
.loop::after {
  content: "";
  position: absolute;
  left: -6px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}
.loop-low {
  top: 100%;
  left: calc(-50% - var(--g));
  right: 50%;
  padding-top: 46px;
}
.loop-low::before {
  top: 0;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
.loop-low::after {
  top: 0;
  border-bottom: 10px solid var(--green-on-ink);
}
.loop-high {
  bottom: 100%;
  left: calc(-150% - 2 * var(--g));
  right: 50%;
  padding-bottom: 46px;
}
.loop-high::before {
  bottom: 0;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.loop-high::after {
  bottom: 0;
  border-top: 10px solid var(--green-on-ink);
}

.ledger-bar {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--on-ink-muted);
  font-size: 16px;
}
.ledger-bar strong {
  color: var(--on-ink);
}
.ledger-bar .mark-sq {
  margin-right: 6px;
}

@media (max-width: 1000px) {
  .line {
    padding: 22px 18px 18px;
  }
  .line-title {
    margin-bottom: 16px;
  }
  .belt {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 18px;
  }
  .st {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 12px;
    min-height: 0;
    padding: 11px 14px;
    text-align: left;
  }
  .st .when {
    margin: 0;
  }
  .st .note,
  .loop {
    position: static;
    flex-basis: 100%;
    width: auto;
    padding: 0;
    text-align: left;
    margin-top: 4px;
  }
  .st-task .note {
    width: auto;
  }
  .st-gate .note,
  .st-gate .note.human {
    color: var(--ink);
  }
  .st-done .note {
    color: var(--grey);
  }
  .loop {
    padding-left: 10px;
    border-left: 2px dashed var(--green-on-ink);
  }
  .loop::before,
  .loop::after {
    display: none;
  }
  .st:not(:last-child)::after {
    top: 100%;
    left: 26px;
    width: 2px;
    height: 14px;
    margin: 0;
  }
  .st:not(:last-child)::before {
    display: none;
  }
}

/* ---------- in numbers (deck slide 4 tiles) ---------- */
.figures {
  margin-top: 56px;
}
.figures-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 20px;
  margin-bottom: 18px;
}
.figures-head h2 {
  margin: 0;
}
.figures-head p {
  color: var(--on-ink-faint);
  font-size: 15px;
}
.figs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.fig {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.fig .v {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(40px, 4.4vw, 54px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fig .v::before {
  content: "";
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 0.14em;
  background: var(--green);
}
.fig .k {
  margin-top: 6px;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--on-ink);
}
.fig .d {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--on-ink-muted);
}
.fig .asof {
  margin-top: auto;
  padding-top: 10px;
}
@media (max-width: 900px) {
  .figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .figs {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .fig {
    padding: 16px 16px 14px;
    gap: 4px;
  }
  .fig .v {
    font-size: 36px;
  }
  .fig .k {
    font-size: 15.5px;
  }
  .fig .d {
    font-size: 14px;
  }
  .fig .asof {
    padding-top: 6px;
  }
}

/* ---------- how it works (deck slide 2) ---------- */
.how-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.size-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 26px;
}
.size {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.size th,
.size td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--paper-line);
  text-align: center;
  vertical-align: middle;
}
.size thead th {
  font-size: 14.5px;
  font-weight: 700;
  vertical-align: bottom;
  line-height: 1.2;
}
.size thead th .lbl {
  display: block;
}
.size thead th .code {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-text);
}
.size thead th:first-child,
.size tbody th {
  text-align: left;
  padding-left: 0;
}
.size tbody th {
  font-weight: 700;
}
.size td.yes::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
  vertical-align: -2px;
}
.size td.no::before {
  content: "–";
  color: #9aa0a7;
}
.size td.rv {
  font-weight: 700;
  white-space: nowrap;
}
.size .by-size {
  color: var(--grey);
  font-size: 14.5px;
}
.size tr.risky th,
.size tr.risky td {
  border-bottom: 0;
}
.size-foot {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-on-paper);
}
.size-foot.models {
  padding-top: 12px;
  border-top: 1px dashed var(--paper-line);
  color: var(--grey);
}

.console-card {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius);
  padding: 26px;
}
.console-card h3 {
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.console-card p {
  color: var(--on-ink-muted);
}
.console-card .ticks li {
  font-size: 16px;
  color: var(--on-ink);
}

.mech {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mech li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 20px;
}
.mech .key {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 3px;
}
.mech h3 {
  font-size: 18px;
}
.mech p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-on-paper);
}

@media (max-width: 1100px) {
  .mech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .how-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .mech {
    grid-template-columns: minmax(0, 1fr);
  }
  .size-card,
  .console-card {
    padding: 20px 16px;
  }
  .size {
    font-size: 14.5px;
  }
  .size th,
  .size td {
    padding: 10px 4px;
  }
  .size thead th {
    font-size: 13px;
  }
  .size thead th .lbl {
    display: none;
  }
  .size thead th:first-child .lbl {
    display: block;
  }
  .size thead th .code {
    margin-top: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .size td.rv {
    white-space: normal;
  }
}

/* ---------- testing (deck slide 3) ---------- */
.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.levels-head,
.levels li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}
.levels-head {
  padding: 0 20px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-on-ink);
}
.levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.levels li {
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 14px 20px;
}
.levels h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.levels h3::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--green-on-ink);
}
.levels .what {
  font-size: 15px;
  color: var(--on-ink-muted);
}
.levels .tools {
  font-size: 15px;
  color: var(--on-ink);
}
.counts {
  margin-top: 14px;
  font-size: 15px;
  color: var(--on-ink-muted);
}
.counts strong {
  color: var(--on-ink);
}
.counts .asof {
  margin-left: 4px;
  white-space: nowrap;
}

.test-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
}
.side-card p + p {
  margin-top: 10px;
}
.side-card p {
  color: var(--on-ink-muted);
  font-size: 15.5px;
}
.side-card p strong {
  color: var(--on-ink);
}
.side-card .card-label {
  color: var(--green-on-ink);
}
.side-card.when-card {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.when-card .card-label {
  color: var(--green-text);
}
.when-list {
  margin: 0;
}
.when-list dt {
  font-weight: 700;
}
.when-list dd {
  margin: 2px 0 12px;
  color: var(--body-on-paper);
  font-size: 15.5px;
}
.when-list dd:last-child {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .test-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .levels-head {
    display: none;
  }
  .levels li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 14px 16px;
  }
  .levels h3 {
    margin-bottom: 2px;
  }
}

/* ---------- what it builds (deck slides 2 and 4) ---------- */
.spec {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.spec-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px;
}
.spec-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.spec-card p {
  color: var(--body-on-paper);
}
.spec-card p + p {
  margin-top: 10px;
}
.spec-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.spec-ink p {
  color: var(--on-ink-muted);
}
.spec-ink .hl {
  color: var(--green-on-ink);
}

.stack-label {
  margin-bottom: 12px;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 16.5px;
  color: var(--ink);
}

/* reference project: one self-contained block */
.ref {
  margin-top: 48px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 16px;
  border-left: 6px solid var(--green-on-ink);
}
.ref-text {
  padding: 32px 36px 34px;
}
.ref-text p {
  max-width: 72ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-ink-muted);
}
.ref-text strong {
  color: var(--on-ink);
}

.spans-label {
  margin: 32px 0 12px;
  font-weight: 700;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cards li {
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--paper-card);
}
.cards li strong {
  display: block;
  font-size: 16.5px;
  margin-bottom: 3px;
}
.cards li span {
  color: var(--grey);
  font-size: 15px;
}

@media (max-width: 900px) {
  .spec {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .chips li {
    font-size: 15px;
    padding: 7px 12px;
  }
  .ref-text {
    padding: 22px 18px 24px;
  }
  .ref-text p {
    font-size: 17px;
  }
  .cards li {
    padding: 12px 14px;
  }
  .cards li strong {
    font-size: 15.5px;
  }
  .cards li span {
    font-size: 14.5px;
  }
}

/* ---------- pilot (deck slide 7) ---------- */
.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ink-2);
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 22px;
}
.phase.main {
  border-color: var(--green-on-ink);
}
.phase h3 {
  font-size: 22px;
}
.phase p {
  color: var(--on-ink-muted);
  font-size: 16px;
}
.phase:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 12px;
  height: 2px;
  background: var(--arrow);
}
.phase:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -23px;
  margin-top: -4px;
  border-left: 6px solid var(--arrow);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.give-get {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.give-get .box {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 24px;
}
.note {
  margin-top: 24px;
  font-size: 14.5px;
  color: var(--on-ink-muted);
  max-width: 80ch;
}
.pilot-cta {
  margin-top: 20px;
}
@media (max-width: 900px) {
  .phases {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .give-get {
    grid-template-columns: minmax(0, 1fr);
  }
  .phase:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 26px;
    bottom: -17px;
    width: 2px;
    height: 16px;
  }
  .phase:not(:last-child)::before {
    display: none;
  }
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
}
.contact .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact .company-mark {
  height: 34px;
  width: auto;
  margin-bottom: 28px;
}
.contact h2 {
  margin-bottom: 16px;
}
.mail-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 28px;
}
.mail-card .label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-text);
  font-weight: 600;
}
.mail-card a.mail {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(18px, 4.9vw, 28px);
  font-weight: 700;
  color: var(--green-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-card a.mail:hover {
  text-decoration: underline;
}
.mail-card a.mail:focus-visible {
  outline-color: var(--green-text);
}
.mail-card .who {
  margin-top: 14px;
  color: var(--grey);
}
@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* ---------- footer ---------- */
.site-footer { background: var(--ink-3); color: var(--on-ink-muted); padding: 48px 0 36px; font-size: 14.5px; border-top: 1px solid var(--ink-line); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.legal { font-style: normal; }
.legal .brand-line { color: var(--on-ink); font-weight: 650; font-size: 15.5px; margin-bottom: 8px; }
.legal p + p { margin-top: 4px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-links a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #4a525c; }
.foot-links a:hover { text-decoration-color: var(--on-ink); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--ink-line); padding-top: 18px; margin-top: 4px; font-size: 13.5px; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- legal page (privacy) ---------- */
.legal-page { padding: 56px 0 88px; }
.legal-page .wrap { max-width: 800px; }
.legal-page h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 8px; }
.legal-page .updated { color: var(--grey); font-size: 15px; margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: 0; }
.legal-page p, .legal-page li { color: #262a30; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 22px; margin: 12px 0 0; }
.legal-page li + li { margin-top: 8px; }
.legal-page a { color: var(--green-text); }
.legal-page .back { margin-top: 44px; }
.legal-page .back a { font-weight: 650; }

/* ---------- EU-funded projects page (eu-projects.html, pl/projekty-ue.html) ---------- */
/* The marks are the official images as published, on white, never recoloured or cropped: the horizontal strip,
   and on narrow screens the programme's own vertical set (handbook 2014-2020, 17.2), so the names stay legible. */
.eu-page section { padding: 0; }
.eu-marks { margin: 20px 0 8px; padding: 14px 18px; background: #ffffff; border: 1px solid var(--paper-line); border-radius: var(--radius); }
.eu-marks img { width: 100%; height: auto; }
.legal-page .eu-funding { margin-top: 8px; }
.eu-facts { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 24px 0 0; border-top: 1px solid var(--paper-line); }
.eu-facts dt, .eu-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--paper-line); color: #262a30; }
.eu-facts dt { font-weight: 650; padding-right: 16px; }
.eu-facts .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
  .eu-marks { padding: 10px 12px; }
  .eu-marks img { width: 78%; margin: 0 auto; }
  .eu-facts { grid-template-columns: 1fr; }
  .eu-facts dt { padding-bottom: 0; border-bottom: 0; }
  .eu-facts dd { padding-top: 2px; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found p { margin-top: 16px; color: var(--on-ink-muted); }
