/* Factuurpost — postal/editorial design language.
   Paper, ink, one stamp-red accent. Hairlines instead of boxes.
   Type: Fraunces (display serif) · Instrument Sans (body) · IBM Plex Mono (data).
   Fonts self-hosted (latin subset, woff2) from /fonts — no external requests,
   no render-blocking Google call, no third-party GDPR exposure on the .de site. */

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-400-italic.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: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fraunces-400.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: "Fraunces";
  font-style: normal;
  font-weight: 550;
  font-display: swap;
  src: url("fonts/fraunces-550.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.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: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-400-italic.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-sans-400.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: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/instrument-sans-500.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: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/instrument-sans-600.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;
}

:root {
  color-scheme: light;
  --paper: #FAF7F2;
  --paper-deep: #F3EEE5;
  --ink: #21201C;
  --ink-soft: #6E6A61;
  --hairline: #E2DCD0;
  --accent: #C8401F;
  --accent-deep: #A93417;
  --on-accent: #FAF7F2;      /* text that sits on the stamp-red accent, both themes */
  --ok-ink: #2E6E4E;
  --ok-paper: #EFF4EE;
  --warn-ink: #8A5A1F;
  --warn-paper: #F8F1E2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  /* z-index scale */
  --z-nav: 20;
}

/* Dark theme — a restrained inversion of the same paper/ink/stamp-red language:
   deep warm charcoal paper, warm off-white ink, the accent lifted just enough
   to hold AA on the dark ground. Same hairline grammar, no redesign.
   Opt-in only: applied when theme.js sets [data-theme="dark"] on <html> from a
   stored preference. Light is the default for everyone — we deliberately do NOT
   key off prefers-color-scheme, so first-time visitors always land on light. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1A1917;
  --paper-deep: #232019;
  --ink: #ECE7DE;
  --ink-soft: #ADA79C;
  --hairline: #37342E;
  --accent: #EC6A43;
  --accent-deep: #C8401F;
  --ok-ink: #74C595;
  --ok-paper: #1B241E;
  --warn-ink: #DCA85A;
  --warn-paper: #241E14;
}

* { box-sizing: border-box; }
/* Restore the UA hidden semantics: an author-origin display (e.g. .check-result's
   display:flex) would otherwise override [hidden]{display:none} and reveal an
   empty callout on first paint. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }
/* Dark ground: the lifted --accent (#EC6A43) only reaches 2.93:1 against
   --on-accent, so drop the selection to the deeper stamp-red (#C8401F -> 4.67:1)
   to hold WCAG AA for selected text while keeping the stamp-red identity. */
:root[data-theme="dark"] ::selection { background: var(--accent-deep); color: var(--on-accent); }

/* Focus: a single coherent keyboard-visible ring on every interactive element
   (WCAG 2.4.7). Pointer focus stays quiet via :focus-visible. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
input:focus-visible,
label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The toggle checkbox is opacity:0, so route its keyboard ring to the visible
   hamburger label. */
.nav-toggle:focus-visible ~ .nav-btn { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 660px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 550;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.06; margin: 0.35em 0 0.4em; }
h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 0.2em 0 0.5em; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35em; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6em;
}

.tiny { font-size: 0.82rem; color: var(--ink-soft); }

/* Header — quiet bar, hairline below */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--paper); position: relative; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 22px 0; }
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  margin-right: auto; /* pushes nav + theme toggle to the right of the bar */
}
/* Optically center the mark against the wordmark's x-height: the flex line
   box centers on the full line, which reads as "sagging" next to serif caps. */
.brand-mark { transform: translateY(-1px); }
.site-nav { display: flex; gap: 26px; order: 1; }
.site-nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--accent); }

/* Light/dark toggle — a real <button> (keyboard-operable, announces its pressed
   state via aria-pressed) carrying an inline sun/moon. Sits at the right end of
   the bar on desktop, pinned top-right on mobile. Uses the same 1px-hairline /
   2px-radius grammar as the inputs; AA in both themes. theme.js flips the icon
   by toggling [data-theme] on <html>, so it works with or without a media query. */
.theme-toggle {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--ink); }
.theme-toggle .icon { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile menu toggle — a native checkbox (keyboard-operable, announces its
   open/closed state) styled invisible over an animated hamburger label.
   Hidden on desktop; no JavaScript. */
.nav-toggle {
  display: none;
  position: absolute;
  top: 14px; right: 24px;
  width: 44px; height: 44px;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
}
.nav-btn { display: none; }

/* Hero */
.hero { padding: 108px 0 96px; }
.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0;
}
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 40px; }
.hero-note {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  max-width: 36em;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Deadline badge — a small "postmark" dateline at the head of the hero. Per
   locale, it restates only the obligation date the page copy already carries:
   a filled stamp-red dot for an obligation in force, a hollow dot for one that
   is merely expected (.pending). Text sits in --ink for AA on --paper-deep in
   both themes; no motion, no ticking counter. */
.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 6px 15px 6px 13px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.deadline-badge .badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.deadline-badge.pending .badge-dot {
  width: 9px; height: 9px;
  background: transparent;
  border: 2px solid var(--ink-soft);
}

/* Buttons & links */
.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.text-link { font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; }
.text-link:hover { color: var(--accent); }

/* Sections — rhythm via whitespace + hairlines, no boxes */
.section { padding: 88px 0; border-top: 1px solid var(--hairline); }
.section-lede { color: var(--ink-soft); max-width: 34em; margin: 0 0 2.2em; }

/* Peppol-check */
.check-section { background: var(--paper-deep); }
.check-form { display: flex; gap: 12px; flex-wrap: wrap; }
.check-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
input::placeholder { color: var(--ink-soft); opacity: 1; }
.check-form input[type="text"]:focus,
.lead-fields input:focus {
  border-color: var(--ink);
}

/* Result callout — full 1px border in the state colour + tinted ground + a
   status icon, so ok / warn is never carried by colour alone (WCAG 1.4.1).
   No side-stripe. */
.check-result {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-size: 0.97rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.check-result .result-icon { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--ink-soft); }
.check-result .result-body { min-width: 0; }
.check-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 550;
  margin-bottom: 6px;
}
.check-result span { color: var(--ink-soft); }
.check-result.ok { border-color: var(--ok-ink); background: var(--ok-paper); }
.check-result.ok strong, .check-result.ok .result-icon { color: var(--ok-ink); }
.check-result.warn { border-color: var(--warn-ink); background: var(--warn-paper); }
.check-result.warn strong, .check-result.warn .result-icon { color: var(--warn-ink); }

/* Lead forms */
.lead-form { margin-top: 26px; }
.lead-form > p { max-width: 34em; }
.lead-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.lead-fields input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.lead-done { margin-top: 18px; color: var(--ok-ink); font-weight: 500; }
.lead-error { margin-top: 18px; color: var(--accent); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Reasons — numbered editorial list, hairline separators */
.reasons { list-style: none; counter-reset: reason; margin: 0; padding: 0; }
.reasons li {
  counter-increment: reason;
  position: relative;
  padding: 30px 0 30px 72px;
  border-top: 1px solid var(--hairline);
}
.reasons li::before {
  content: "0" counter(reason);
  position: absolute;
  left: 0;
  top: 34px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.reasons li p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 34em; }

/* Compliance timeline — real, ordered obligation dates the copy already states,
   as an accessible <ol>. Reinforces the "why now" argument. Per-locale content;
   theme-aware; order carries the meaning, not colour. */
.timeline-intro { margin: 2.6em 0 1.4em; color: var(--ink-soft); font-size: 0.92rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.tl-item {
  flex: 1 1 0;
  position: relative;
  padding: 26px 18px 0 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 5px; left: 0; right: 0;
  height: 2px;
  background: var(--hairline);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  /* ring in the page ground so the connector line reads as passing behind */
  box-shadow: 0 0 0 3px var(--paper);
}
.tl-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 5px;
}
.tl-label { display: block; font-size: 0.86rem; color: var(--ink-soft); max-width: 22ch; }

/* Pricing — three columns divided by hairlines, not cards */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.tier { padding: 34px 30px 34px 0; position: relative; }
.tier + .tier { border-left: 1px solid var(--hairline); padding-left: 30px; }
.tier h3 { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
/* Featured tier — a 2px accent top-rule + mono label lift the recommended
   column without turning it into a card. Stays inside the hairline system. */
.tier.featured { box-shadow: inset 0 2px 0 0 var(--accent); }
.tier.featured h3 { color: var(--accent); }
.tier-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.price {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 550;
  margin: 6px 0 18px;
  line-height: 1.1;
}
.price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 6px;
}
.tier ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; color: var(--ink-soft); }
.tier li { padding: 7px 0; border-top: 1px solid var(--hairline); }
.tier li:first-child { border-top: none; }
.pricing-section .tiny { margin-top: 40px; max-width: 44em; }

/* FAQ — hairlines only */
.faq-section details { border-top: 1px solid var(--hairline); }
.faq-section details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.18s ease;
}
.faq-section details[open] summary::after { transform: rotate(45deg); }
.faq-section details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; max-width: 36em; }

/* Footer — one exemplary footer per site: brand + positioning line, grouped
   nav (Product anchors · Juridisch where a legal page exists · Contact), a
   region/language switcher across the live market locales, then attribution +
   ©. Semantic <footer> with aria-labelled <nav> groups; AA in both themes. */
.site-footer { border-top: 1px solid var(--hairline); padding: 56px 0 0; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px 56px;
}
.footer-brand { flex: 1 1 260px; }
.footer-brand .brand { margin: 0; font-size: 1.2rem; }
.footer-tag { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); max-width: 34ch; }
.footer-heading {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 9px; }
.footer-nav a,
.footer-contact a { font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.footer-nav a:hover,
.footer-contact a:hover { color: var(--accent); }
.footer-contact a {
  text-decoration-line: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.footer-locales { margin-top: 44px; padding: 22px 0 40px; border-top: 1px solid var(--hairline); }
.footer-locales ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.footer-locales a { font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.footer-locales a:hover { color: var(--accent); }
.footer-locales [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Closing band — the emotional sign-off. Full-bleed deeper paper with a faint
   stamp-red glow (light rendition of the dark-band reference), hairline-set off
   from the directory above. Left: the positioning line, large, in the display
   serif. Right: the House Arrow credit + ©. Peppol® notice sits beneath, quiet. */
.footer-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  background-color: var(--paper-deep);
  background-image: radial-gradient(ellipse 60% 120% at 50% 130%,
    color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%);
}
.footer-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  padding: clamp(38px, 5vw, 58px) 0 clamp(20px, 2.5vw, 28px);
}
.footer-band-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
}
.footer-credit { margin: 0; font-size: 0.85rem; color: var(--ink-soft); text-align: right; }
.footer-credit a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}
.footer-credit a:hover { color: var(--accent); text-decoration-color: currentColor; }
.footer-trademark { margin: 0; padding-bottom: clamp(28px, 3.5vw, 40px); color: var(--ink-soft); max-width: 78ch; }

@media (max-width: 760px) {
  .footer-grid { gap: 30px 40px; }
  .footer-brand { flex-basis: 100%; }
  .footer-band-inner { align-items: flex-start; }
  .footer-credit { text-align: left; }
}

/* 404 */
.error-block { text-align: center; padding: 96px 0; }
.error-block h1 { font-size: clamp(3rem, 9vw, 5rem); margin: 0 0 0.2em; }
.error-block .lede { margin: 0 auto 2em; }

@media (max-width: 760px) {
  .hero { padding: 68px 0 60px; }
  .section { padding: 60px 0; }

  /* Mobile nav — the desktop row folds into a no-JS disclosure so the section
     anchors AND the language switcher stay reachable on phones. The hamburger
     and theme toggle are pinned top-right (the invisible checkbox overlays the
     hamburger for click/keyboard); the toggle sits clear to their left. */
  .theme-toggle {
    position: absolute;
    top: 11px; right: 74px;
    z-index: calc(var(--z-nav) + 1);
  }
  /* Pages without a hamburger (e.g. 404) have no toggle to clear, so the
     toggle sits flush right. Degrades to the safe 74px offset if :has is
     unsupported — a cosmetic gap, never an overlap with the hamburger. */
  .header-inner:not(:has(.nav-toggle)) .theme-toggle { right: 24px; }
  .nav-toggle { display: block; }
  .nav-btn {
    display: block;
    position: absolute;
    top: 16px; right: 24px;
    width: 26px; height: 18px;
    color: var(--ink);
  }
  .nav-btn .bar {
    position: absolute; left: 0;
    width: 26px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  .nav-btn .bar:nth-child(1) { top: 0; }
  .nav-btn .bar:nth-child(2) { top: 8px; }
  .nav-btn .bar:nth-child(3) { top: 16px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 4px 24px 14px;
    z-index: var(--z-nav);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-btn .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-btn .bar:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-btn .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav a {
    padding: 13px 2px;
    font-size: 0.98rem;
    border-top: 1px solid var(--hairline);
  }
  .site-nav a:first-child { border-top: none; }

  .reasons li { padding-left: 48px; }
  .timeline { flex-direction: column; }
  .tl-item { flex: none; padding: 0 0 22px 26px; }
  .tl-item::before {
    display: block;
    top: 4px; bottom: -4px; left: 4px; right: auto;
    width: 2px; height: auto;
  }
  .tl-item:last-child::before { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .tier { padding: 26px 0; }
  .tier + .tier { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; }
  /* featured keeps its top accent rule (see base .tier.featured) — no side-stripe */
}

/* Motion — honour reduced-motion: no smooth-scroll, transitions/animations
   collapse to instant (FAQ marker, buttons, nav toggle). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
