/* vobli.pl landing page. One family (Archivo, variable width), map-paper base, road-sign blue,
   amber only for empty kilometres. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eef1ec;   /* topographic map paper */
  --ink: #16202b;     /* navy ink */
  --road: #1f4aa8;    /* Polish road-sign blue */
  --signal: #e2a100;  /* empty kilometres */
  --muted: #56616d;
  --grid: #dde2db;
  --rule: #c9d0c6;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--road); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: .5rem .8rem; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.mark { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; }
.mark svg { width: 30px; height: 30px; color: var(--road); }
.mark span { font-weight: 800; font-stretch: 125%; font-size: 1.45rem; letter-spacing: -.01em; }
.bar nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { color: var(--road); }
.bar nav .nav-cta { color: var(--road); font-weight: 600; }
.bar nav .nav-login { padding: .35rem .8rem; border: 1px solid currentColor; border-radius: 6px; font-weight: 600; }

/* ---------- hero ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hero { padding: 4.5rem 0 2.5rem; }
.hero h1 {
  margin: 0; max-width: 17ch;
  font-size: clamp(2.4rem, 6.4vw, 5.1rem); line-height: 1.02;
  font-weight: 800; font-stretch: 118%; letter-spacing: -.025em;
}
.lead { max-width: var(--measure); margin: 1.75rem 0 0; font-size: 1.22rem; color: #2b3642; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2.25rem 0 0; }
.note { color: var(--muted); font-size: .95rem; }

.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 4px;
  background: var(--road); color: #fff; text-decoration: none; font-weight: 650; font-stretch: 108%;
}
.btn:hover { background: #183c8a; }
.btn-light { background: #fff; color: var(--road); }
.btn-light:hover { background: #e7ecf7; }

/* ---------- route figure: the one memorable thing ---------- */
.route { margin: 1rem 0 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.route svg { display: block; width: 100%; height: auto; }
.leg-empty, .leg-loaded { fill: none; stroke-linecap: round; }
.leg-empty { stroke: var(--signal); stroke-width: 6; stroke-dasharray: 2 14; }
.leg-loaded { stroke: var(--road); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drive 2.4s .5s cubic-bezier(.45,.05,.3,1) backwards; }
@keyframes drive { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .leg-loaded { animation: none; stroke-dashoffset: 0; } }
.stop circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.stop.pick circle { fill: var(--signal); }
.route text { font-family: "Archivo", sans-serif; font-size: 17px; font-weight: 650; fill: var(--ink); }
.route text.sub { font-size: 14px; font-weight: 400; fill: var(--muted); }
.route text.km { font-size: 15px; font-weight: 650; fill: var(--road); }
.route text.km.empty { fill: #9a6e00; }

.route figcaption { display: grid; grid-template-columns: 1fr minmax(0, 30ch); gap: 1.5rem 3rem; padding: 1.5rem 0 1.75rem; }
.route dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.route dt { font-size: .9rem; color: var(--muted); }
.route dd { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.route dl div:first-child dd { color: #9a6e00; }
.route figcaption p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- sections ---------- */
.block { padding: 5rem 0 0; }
.block h2, .contact h2 {
  margin: 0 0 2rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1;
  font-weight: 750; font-stretch: 112%; letter-spacing: -.015em;
}
h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 700; font-stretch: 104%; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.features article { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--rule); }
.features p, .steps p { margin: 0; max-width: 56ch; color: #2b3642; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; }
.split h2 { max-width: 14ch; }
.split p { margin: 0 0 2rem; max-width: var(--measure); }
.sources { width: 100%; border-collapse: collapse; }
.sources th, .sources td { text-align: left; padding: .85rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.sources tr:last-child th, .sources tr:last-child td { border-bottom: 1px solid var(--rule); }
.sources th { width: 40%; font-weight: 650; padding-right: 1.5rem; }
.sources td { color: #2b3642; }

.principles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 4rem; }
.principles li { max-width: 56ch; padding-left: 1.1rem; border-left: 3px solid var(--road); }
.principles strong { display: block; font-weight: 700; margin-bottom: .2rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.1rem; left: 2.8rem; right: -2.4rem;
  border-top: 2px dashed var(--rule);
}

.contact {
  margin: 6rem 0 0; padding: 3.5rem 2.5rem; border-radius: 6px;
  background: var(--road); color: #fff;
}
.contact h2 { margin-bottom: 1rem; }
.contact p { margin: 0 0 2rem; max-width: 56ch; color: #dfe6f6; }

.foot { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .bar nav a:not(.nav-cta):not(.nav-login) { display: none; }
  .hero { padding-top: 2.5rem; }
  .route text.sub { display: none; }
  .route figcaption { grid-template-columns: 1fr; }
  .route dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .split, .principles ul, .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .contact { padding: 2.5rem 1.5rem; }
}
