/* ==========================================================================
   AUTOŠKOLA HOLAS
   "L-Plate" — the client's logo is a white L on a blue plate, so the whole
   system is built from that: hard-edged blue blocks on an off-white page,
   oversized Archivo headlines, and no rounded corners anywhere. Radius is 0
   because the plate has none.

   Brand blue #024088 is taken from the logo file. It is unusually versatile:
   9.61:1 as text on the page background AND 10.04:1 with white type on it,
   so one tone works as ink and as a fill.

   Order: fonts · tokens · reset · base · layout · buttons · components
          · sections · motion · utilities · responsive
   Mobile-first throughout; only min-width media queries.
   ========================================================================== */

/* ==========================================================================
   Fonts — Archivo (display) and Inter (body), variable, self-hosted so no
   request ever leaves for fonts.gstatic.com.
   latin-ext carries the Czech diacritics (ě š č ř ž ů ď ť ň) — never drop it.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Design tokens
   Contrast ratios below are measured, not estimated (WCAG relative
   luminance). Do not "tidy" a colour without re-measuring it — see BRAND.md §5.
   Breakpoints used throughout: 375 (base) · 640 · 768 · 1024 · 1280
   ========================================================================== */

:root {
  /* ---- Surfaces ---- */
  --color-bg: #fafaf9;       /* page */
  --color-card: #ffffff;     /* raised surfaces */
  --color-bg-alt: #eef0f3;   /* alternating bands — slightly cool */
  --color-ink: #0d121c;      /* dark bands, and primary text */
  --color-ink-deep: #070a11;

  /* ---- Brand blue, straight from the logo file (#024088) ----
     Text on light: 9.61 bg / 10.04 card / 8.79 alt — AAA everywhere.
     White on it as a fill: 10.04 — AAA. One tone does both jobs. */
  --color-blue: #024088;
  --color-blue-deep: #012e63;  /* hover — DARKER, so white on it rises to 13.36 */
  --color-blue-mid: #0a55a8;   /* 6.99 bg / 7.30 card — secondary blue text */
  --color-blue-lift: #7fb2f5;  /* on ink 8.56 AAA. Only 2.2 on light — never text there */
  --color-blue-pale: #dbe6f5;  /* on blue 7.96 AAA — muted type inside a blue block */

  /* ---- Text ---- */
  --color-ink-soft: #1e2532;      /* 14.72 / 15.37 / 13.47 — AAA */
  --color-muted: #4b5563;         /*  7.24 /  7.56 /  6.62 — AAA, AA on alt.
                                     THE FLOOR. #6b7280 is only 4.23 on
                                     --color-bg-alt and fails. */
  --color-on-blue: #ffffff;       /* 10.04 on blue — AAA */
  --color-on-blue-muted: #dbe6f5; /*  7.96 on blue — AAA */
  --color-on-ink: #ffffff;        /* 18.74 on ink — AAA */
  --color-on-ink-muted: #a3adbf;  /*  8.29 on ink — AAA */

  /* ---- Lines ----
     A divider between rows is DECORATIVE: the text carries the meaning.
     A border that is the only thing defining a control is NOT — use
     --color-line-interactive, which clears WCAG 1.4.11 at 4.63:1. */
  --color-line: #e4e4e2;              /* 1.22 — decorative */
  --color-line-strong: #d2d5da;       /* 1.41 — decorative block edges */
  --color-line-interactive: #6b7280;  /* 4.63 — control borders */
  --color-line-on-ink: rgba(255, 255, 255, 0.16);
  --color-line-on-blue: rgba(255, 255, 255, 0.24);

  /* ---- Status. Exactly one green and one red. ---- */
  --color-success-ink: #166534;
  --color-success-bg: #dcfce7;
  --color-warning-ink: #92400e;
  --color-warning-bg: #fef3c7;
  --color-error-ink: #991b1b;
  --color-error-bg: #fee2e2;

  /* Focus ring. Reassigned on blue and ink surfaces where the brand blue
     would disappear into its own background. */
  --color-focus: var(--color-blue);

  /* ---- Spacing, 4px base ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4rem, 3rem + 6vw, 8.5rem);

  /* ---- Type scale. Deliberately oversized at the top end: with no
     photography, the headlines ARE the artwork. ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.9vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.7rem + 2.8vw, 4rem);
  --text-5xl: clamp(2.75rem, 1.9rem + 4.2vw, 5.5rem);
  --text-6xl: clamp(3rem, 1.8rem + 5.8vw, 7.5rem);

  /* Component type sizes. A component must never inherit its size from the
     heading level it happens to use — h2 vs h3 is semantics, not styling. */
  --text-card-title: var(--text-xl);
  --text-step-title: var(--text-lg);
  --text-ledger-label: var(--text-lg);
  --text-ledger-price: var(--text-2xl);
  --text-eyebrow: var(--text-xs);

  --leading-tight: 0.98;
  --leading-snug: 1.25;
  --leading-body: 1.65;

  --tracking-tight: -0.035em;
  --tracking-label: 0.1em;

  --font-display: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ---- Geometry. RADIUS IS ZERO. The logo's plate is a hard rectangle and
     every block on this site is cut from the same stock. ---- */
  --max: 1240px;
  --max-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 0;
  --header-h: 72px;
  --tap-min: 44px;
  --rule: 1px solid var(--color-line);
  --bar: 6px; /* the blue edge that marks a block as ours */

  /* ---- Depth & motion. No shadows: blocks are separated by colour and
     edge, the way the logo separates the plate from the wordmark. ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
  --dur-slow: 420ms;

  /* ---- Layers ---- */
  --z-header: 100;
  --z-menu: 200;
  --z-banner: 300;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100svh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* the drifting lane layer is wider than the viewport */
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Base typography
   Archivo carries every heading; Inter carries every paragraph.
   Headings are set very tight — at these sizes default tracking looks loose.
   Inter never gets letter-spacing.
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  color: var(--color-ink);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 900;
}

h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--text-lg);
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

.num,
.ledger__price,
.stat__num,
.price,
td,
th {
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.muted {
  color: var(--color-muted);
}

/* The letterspaced uppercase label. Archivo only — never Inter.
   A small solid plate stands in for the logo's L-plate at label scale. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-blue);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 18px;
  background: var(--color-blue);
  flex: none;
}

.section--ink .eyebrow,
.section--blue .eyebrow {
  color: currentColor;
}

.section--ink .eyebrow::before {
  background: var(--color-blue-lift);
}

.section--blue .eyebrow::before {
  background: var(--color-on-blue);
}

/* Section index numbers. Oversized — a graphic element, not a caption. */
.index-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-blue);
  margin-bottom: var(--space-4);
}

.section--ink .index-num {
  color: var(--color-blue-lift);
}

.section--blue .index-num {
  color: var(--color-on-blue);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--ink {
  background: var(--color-ink);
  color: var(--color-on-ink);
  --color-focus: var(--color-blue-lift);
}

.section--blue {
  background: var(--color-blue);
  color: var(--color-on-blue);
  --color-focus: #ffffff;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4,
.section--blue h1,
.section--blue h2,
.section--blue h3,
.section--blue h4 {
  color: currentColor;
}

.section--ink .muted,
.section--ink .lead {
  color: var(--color-on-ink-muted);
}

.section--blue .muted,
.section--blue .lead {
  color: var(--color-on-blue-muted);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.55);
}

.section__head {
  max-width: 44rem;
  margin-bottom: var(--space-8);
}

.section__title {
  font-size: var(--text-4xl);
}

.section__intro {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-muted);
}

.section--ink .section__intro {
  color: var(--color-on-ink-muted);
}

.section--blue .section__intro {
  color: var(--color-on-blue-muted);
}

/* Grids. Every track is minmax(0, 1fr) — a bare fraction refuses to shrink
   below min-content and silently overflows narrow screens. */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}

/* Blocks butt together, separated only by the page showing through. */
.grid--tight {
  gap: 1px;
  background: var(--color-line-strong);
  border: 1px solid var(--color-line-strong);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: calc(var(--z-banner) + 10);
  padding: var(--space-3) var(--space-5);
  background: var(--color-blue);
  color: var(--color-on-blue);
  font-family: var(--font-display);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ==========================================================================
   Buttons — hard rectangles, like the plate
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn svg {
  flex: none;
  width: 1.125em;
  height: 1.125em;
}

/* White on brand blue is 10.04:1. Hover DARKENS to #012e63, which raises it
   to 13.36 — a hover state must never reduce contrast. */
.btn--primary {
  background: var(--color-blue);
  color: var(--color-on-blue);
  border: 2px solid var(--color-blue);
}

.btn--primary:hover {
  background: var(--color-blue-deep);
  border-color: var(--color-blue-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}

.btn--ghost:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.section--ink .btn--ghost,
.section--blue .btn--ghost {
  color: currentColor;
  border-color: currentColor;
}

.section--ink .btn--ghost:hover {
  background: var(--color-on-ink);
  color: var(--color-ink);
}

.section--blue .btn--ghost:hover {
  background: var(--color-on-blue);
  color: var(--color-blue);
}

/* On a blue field the primary action inverts: white plate, blue type. */
.section--blue .btn--primary {
  background: var(--color-on-blue);
  color: var(--color-blue);
  border-color: var(--color-on-blue);
}

.section--blue .btn--primary:hover {
  background: var(--color-blue-pale);
  border-color: var(--color-blue-pale);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.link {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.section--ink .link {
  color: var(--color-blue-lift);
}

.section--blue .link {
  color: var(--color-on-blue);
}

/* Arrow link — a standalone CTA, so it carries a full tap target. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-blue);
}

.arrow-link svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--dur) var(--ease);
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

.section--ink .arrow-link {
  color: var(--color-blue-lift);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  transition: border-color var(--dur) var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--color-line-interactive);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

/* The logo is a raster supplied by the client — see CREDITS.md and TODO.md.
   Height is fixed and width derived, so it can never distort. */
.brand {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-2);
}

.brand img {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-soft);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--color-blue);
}

/* Current page gets the plate, not just a colour change. */
.nav__link[aria-current="page"] {
  background: var(--color-blue);
  color: var(--color-on-blue);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-ink);
  white-space: nowrap;
}

.header__phone svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-blue);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: 2px solid var(--color-ink);
  color: var(--color-ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle__close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-menu);
  background: var(--color-bg);
  padding: var(--space-5) 0 var(--space-8);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  border-top: var(--rule);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: var(--space-3) 0;
  border-bottom: var(--rule);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.mobile-nav__link[aria-current="page"] {
  color: var(--color-blue);
}

.mobile-nav__link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-blue);
}

.mobile-nav__foot {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}

body.is-locked {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 9vw, 8rem);
  border-bottom: 1px solid var(--color-line);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__est {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-on-blue);
  background: var(--color-blue);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 900;
  letter-spacing: -0.045em;
  max-width: 15ch;
}

/* A forced break that only applies where there is room for it. On a phone the
   headline must wrap naturally, or short words get stranded on their own line. */
.br-md {
  display: none;
}

/* One phrase set in the brand blue, so the headline carries the plate colour. */
.hero__title em {
  font-style: normal;
  color: var(--color-blue);
}

/* Inner-page h1. The homepage headline is a statement and runs to --text-6xl;
   an inner page is a signpost and must not shout as loudly, so it sets its own
   size rather than inheriting whatever h1 happens to be. */
.page-title {
  font-size: var(--text-5xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.hero__lead {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 50ch;
}

.hero__actions {
  margin-top: var(--space-7);
}

/* Stats as a row of plates butted together. */
.hero__stats {
  margin-top: var(--space-8);
  display: grid;
  gap: 1px;
  background: var(--color-line-strong);
  border: 1px solid var(--color-line-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  background: var(--color-card);
  padding: var(--space-5);
}

.stat--blue {
  background: var(--color-blue);
  color: var(--color-on-blue);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-blue);
}

.stat--blue .stat__num {
  color: var(--color-on-blue);
}

.stat__label {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.stat--blue .stat__label {
  color: var(--color-on-blue-muted);
}

/* ==========================================================================
   The drifting lane markings.
   The one decorative motif on the site: a slow, looping road-marking rhythm
   behind the hero. Felt rather than seen — 7% blue on off-white — and it
   stops completely under prefers-reduced-motion.
   Animated with transform on an oversized layer, never background-position,
   so it stays on the compositor.
   ========================================================================== */

.lanes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lanes__row {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(2, 64, 136, 0.07) 0 64px,
    transparent 64px 128px
  );
  will-change: transform;
  animation: lane-drift 13s linear infinite;
}

.lanes__row:nth-child(1) { top: 14%; animation-duration: 17s; }
.lanes__row:nth-child(2) { top: 36%; animation-duration: 13s; height: 14px; }
.lanes__row:nth-child(3) { top: 60%; animation-duration: 22s; }
.lanes__row:nth-child(4) { top: 81%; animation-duration: 15s; height: 8px; }

@keyframes lane-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(128px, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lanes__row {
    animation: none;
  }
}

/* A single oversized L-plate, ghosted, anchored right of the hero.
   Hidden below 1024px where it would crowd the headline. */
.hero__plate {
  display: none;
}

/* ==========================================================================
   Cards — flat plates with a blue edge
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-card);
  border-top: var(--bar) solid var(--color-blue);
}

.card__title {
  font-size: var(--text-card-title);
  font-weight: 800;
}

.card__text {
  color: var(--color-muted);
  font-size: var(--text-base);
}

.card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-blue);
}

.card__foot {
  margin-top: auto;
  padding-top: var(--space-4);
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--color-blue);
  color: var(--color-on-blue);
  margin-bottom: var(--space-2);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* .card is a flex column, so its children stretch on the cross axis by
   default and a badge would run the full width of the card. It must hug
   its own text. */
.card > .badge,
.badge {
  align-self: flex-start;
}

.badge--blue {
  background: var(--color-blue);
  color: var(--color-on-blue);
}

.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success-ink);
}

.badge--neutral {
  background: var(--color-ink);
  color: var(--color-on-ink);
}

/* ==========================================================================
   The ledger — prices as blocks.
   The site's signature: each row is a plate, and the row that matters most
   is filled solid blue.
   ========================================================================== */

.ledger {
  display: grid;
  gap: 1px;
  background: var(--color-line-strong);
  border: 1px solid var(--color-line-strong);
}

.ledger__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-5);
  background: var(--color-card);
}

.ledger__row--feature {
  background: var(--color-blue);
  color: var(--color-on-blue);
}

.ledger__label {
  font-family: var(--font-display);
  font-size: var(--text-ledger-label);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.ledger__row--feature .ledger__label {
  color: var(--color-on-blue);
}

.ledger__note {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-muted);
}

.ledger__row--feature .ledger__note {
  color: var(--color-on-blue-muted);
}

.ledger__price {
  font-family: var(--font-display);
  font-size: var(--text-ledger-price);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-blue);
  white-space: nowrap;
  line-height: 1;
}

.ledger__row--feature .ledger__price {
  color: var(--color-on-blue);
}

.ledger__price--sm {
  font-size: var(--text-xl);
}

/* On an ink band the ledger inverts. */
.section--ink .ledger {
  background: var(--color-line-on-ink);
  border-color: var(--color-line-on-ink);
}

.section--ink .ledger__row {
  background: var(--color-ink);
}

.section--ink .ledger__label {
  color: var(--color-on-ink);
}

.section--ink .ledger__note {
  color: var(--color-on-ink-muted);
}

.section--ink .ledger__price {
  color: var(--color-blue-lift);
}

.ledger__group {
  padding: var(--space-4) var(--space-5);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ==========================================================================
   Steps — big numerals
   ========================================================================== */

.steps {
  display: grid;
  gap: 1px;
  background: var(--color-line-strong);
  border: 1px solid var(--color-line-strong);
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
  background: var(--color-card);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--color-blue);
}

.step__title {
  font-size: var(--text-step-title);
  font-weight: 800;
}

.step__text {
  margin-top: var(--space-2);
  color: var(--color-muted);
}

/* ==========================================================================
   Checklist
   ========================================================================== */

.checklist {
  display: grid;
  gap: var(--space-4);
}

.checklist__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: var(--rule);
}

.card .checklist__item {
  border-bottom: 0;
  padding-bottom: 0;
}

.card .checklist {
  gap: var(--space-3);
}

.checklist__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checklist__item svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15em;
  color: var(--color-blue);
}

.section--ink .checklist__item {
  border-bottom-color: var(--color-line-on-ink);
}

.section--ink .checklist__item svg {
  color: var(--color-blue-lift);
}

/* ==========================================================================
   Placeholder media — deliberately obvious. It should look unfinished,
   because it is. See BRAND.md §8 and TODO.md.
   ========================================================================== */

.ph {
  display: grid;
  place-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-line-interactive);
  color: var(--color-muted);
  text-align: center;
}

.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--1x1 { aspect-ratio: 1 / 1; }

.ph svg {
  width: 30px;
  height: 30px;
  opacity: 0.7;
}

.ph__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  max-width: 32ch;
}

.ph__size {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.section--ink .ph {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-on-ink-muted);
}

/* ==========================================================================
   Note strip
   ========================================================================== */

.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-card);
  border-left: var(--bar) solid var(--color-blue);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
}

.note svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1em;
  color: var(--color-blue);
}

/* ==========================================================================
   Info rows
   ========================================================================== */

.info-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: var(--rule);
}

.info-row:first-child {
  border-top: var(--rule);
}

.info-row__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--color-blue);
  color: var(--color-on-blue);
}

.info-row__icon svg {
  width: 20px;
  height: 20px;
}

.info-row__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.info-row__value {
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.info-row__value a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

.info-row__value a:hover {
  color: var(--color-blue);
}

.section--ink .info-row,
.section--ink .info-row:first-child {
  border-color: var(--color-line-on-ink);
}

.section--ink .info-row__label {
  color: var(--color-on-ink-muted);
}

.section--ink .info-row__value {
  color: var(--color-on-ink);
}

.section--ink .info-row__icon {
  background: var(--color-blue-lift);
  color: var(--color-ink);
}

/* ==========================================================================
   Consent-gated map — a panel with a button, never a live iframe.
   ========================================================================== */

.map {
  border-top: var(--bar) solid var(--color-blue);
  background: var(--color-bg-alt);
}

.map__placeholder {
  display: grid;
  place-items: center;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  min-height: 320px;
}

.map__text {
  max-width: 40ch;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ==========================================================================
   Table
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: var(--rule);
}

th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--color-ink);
  color: var(--color-on-ink);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-ink);
  color: var(--color-on-ink-muted);
  --color-focus: var(--color-blue-lift);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}

.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
}

.footer__logo img {
  height: 84px;
  width: auto;
}

.footer__tagline {
  margin-top: var(--space-5);
  max-width: 34ch;
  color: var(--color-on-ink-muted);
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-blue-lift);
  margin-bottom: var(--space-4);
}

.footer__list {
  display: grid;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  color: var(--color-on-ink-muted);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--color-on-ink);
}

.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line-on-ink);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
}

.footer__legal a:hover {
  color: var(--color-on-ink);
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: var(--space-4);
  z-index: var(--z-banner);
  width: min(34rem, calc(100% - var(--space-4) * 2));
  padding: var(--space-5);
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-left: var(--bar) solid var(--color-blue-lift);
  --color-focus: var(--color-blue-lift);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

.cookie-banner.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--color-on-ink-muted);
  margin-bottom: var(--space-4);
}

.cookie-banner__text a {
  color: var(--color-blue-lift);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.cookie-banner .btn--ghost {
  color: var(--color-on-ink);
  border-color: var(--color-on-ink);
}

.cookie-banner .btn--ghost:hover {
  background: var(--color-on-ink);
  color: var(--color-ink);
}

.cookie-banner .btn--primary {
  background: var(--color-blue-lift);
  color: var(--color-ink);
  border-color: var(--color-blue-lift);
}

/* ==========================================================================
   Reveal on scroll
   Hidden only when JS is alive; the 2.5s failsafe in <head> un-hides
   everything if initReveal() never runs.
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.js [data-reveal].is-visible,
.reveal-failsafe [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.prose p + p {
  margin-top: var(--space-4);
}

.prose ul {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.prose ul li {
  padding-left: var(--space-5);
  position: relative;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-blue);
}

.prose a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Responsive — every media query lives here, min-width only.
   375 · 640 · 768 · 1024 · 1280
   ========================================================================== */

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger__row {
    padding: var(--space-5) var(--space-6);
    flex-wrap: nowrap;
  }

  .step {
    padding: var(--space-6);
  }
}

@media (min-width: 768px) {
  .br-md {
    display: inline;
  }

  :root {
    --tap-min: 32px;
    --header-h: 80px;
  }

  .btn {
    min-height: 52px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header__phone {
    display: inline-flex;
  }

  .split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
    align-items: start;
  }

  .split--center {
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }

  .brand img {
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split--wide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-9);
  }

  .hero__plate {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    opacity: 0.07;
    pointer-events: none;
  }
}

@media (min-width: 1280px) {
  .hero__title {
    max-width: 13ch;
  }
}
