/*
 * Inter, self-hosted — the same two files `apps/web` and `apps/admin` use
 * (`packages/fonts`, #103). Served by this app at `/assets/fonts/…`, never by
 * a CDN: the CSP forbids a third-party origin, and the whole point of this
 * page's consent gating is that nothing contacts anyone before it is allowed.
 *
 * One file per subset rather than one per weight — Inter is a variable font,
 * so `font-weight: 400 800` covers the whole range from the same bytes.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  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 800;
  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;
}

/*
 * The public site's stylesheet.
 *
 * Values come from `design/README.md`'s token table, not from taste — the
 * landing site is the first thing a dealer sees and must look like the app
 * they are about to sign into. `#33ccff` is a FILL only: it measures ~1.8:1
 * on white, so it is never text and never a thin stroke; `#0369a1` is what
 * carries meaning at small sizes.
 *
 * Hand-written rather than Tailwind on purpose. This is one server-rendered
 * document with no build step of its own, and a utility framework here would
 * add a pipeline to save nothing — the SPAs are where Tailwind earns its
 * keep.
 *
 * Motion: everything animated is gated behind `prefers-reduced-motion:
 * no-preference`, and the scroll reveals additionally behind
 * `animation-timeline: view()` support — browsers without either get the
 * fully styled, fully static page.
 *
 * ── ONE LEFT EDGE ─────────────────────────────────────────────────────────
 * Every band on the page — header, hero, showcase, prose, footer — lines up
 * on the same left edge, through `--measure` and `--gutter` and nothing else.
 * This used to be a comment that was not true: the hero had its own margin
 * and the header its own padding, so a wide screen showed three different
 * left edges under a comment claiming one. If you add a section, give it
 * `.band` or the same `padding-inline` formula; do not invent a third rule.
 */

:root {
  /* design/README.md's token table. Values come from there, not from taste:
     this page is the first thing a dealer sees and must look like the app they
     are about to sign into. */
  --brand: #33ccff;
  --brand-logo: #48d7ff;
  --brand-tint: #f0f9ff;
  --brand-tint-border: #bae6fd;
  --primary: #0369a1;
  --primary-deep: #075985;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --radius-card: 15px;
  --radius-panel: 11px;
  --radius-field: 10px;
  --radius-chip: 999px;

  --pad-card: 22px;
  --gap-grid: 20px;

  /* One content measure for the whole site — see the header comment. */
  --measure: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  /* Elevation is two soft layers rather than one hard drop: a wide ambient
     shadow for depth and a tight one for the edge. A single large blur reads
     as a smudge at these radii. */
  --lift: 0 1px 2px rgb(17 24 39 / 6%), 0 8px 24px -12px rgb(17 24 39 / 18%);
  --lift-hi: 0 1px 2px rgb(17 24 39 / 8%), 0 18px 40px -18px rgb(17 24 39 / 26%);

  /* The cyan's glow, for dark grounds where the brand colour can finally
     carry light instead of contrast. */
  --brand-glow: 0 10px 32px -10px rgb(51 204 255 / 55%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /*
   * Inter, self-hosted from `packages/fonts` (#103) — never a CDN. It used to
   * be named here and deliberately not loaded, because pulling it from Google
   * would have sent every visitor's IP to a third party before consent (the
   * LG München I 3 O 17493/20 problem) on the very page that defers YouTube
   * until Usercentrics says so.
   */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
  /* Not flat white: a whisper of a wash toward gray-50 at the edges, so the
     page has a ground plane under the white cards. */
  background:
    radial-gradient(120ch 60ch at 50% -20%, var(--gray-50), transparent 70%),
    #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* The site is deliberately light-only. The SPAs it introduces are light, and a
   marketing page in a different mode from the product it sells is a worse
   inconsistency than the absence of a dark theme. */

::selection { background: var(--brand); color: var(--gray-900); }

h1, h2, h3, h4 {
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.021em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }

p { margin: 0; }

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-deep); }

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

/* Keyboard focus must always be visible — this is a public document and many
   of its readers will never touch a mouse. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Off-screen until focused, never `display: none` — hiding it removes it from
   the tab order, which defeats the point. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-field);
  box-shadow: var(--lift);
}
.skip:focus { left: 12px; top: 12px; }

/* The one width rule. See "ONE LEFT EDGE" at the top of the file. */
.hero,
.showcase,
.how,
.marquee,
.cta-band,
.prose,
.embed,
.site-footer__inner,
.site-footer__base {
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* --- chrome -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  padding-block: 12px;
  /* The same left edge as `.band`, without an extra wrapper element: once the
     viewport is wider than the measure, the padding IS the leftover half. */
  padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2));
  background: rgb(255 255 255 / 78%);
  /* Frosted rather than solid so the hero shows through as it scrolls under —
     with a solid fallback for browsers without backdrop-filter. */
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid rgb(17 24 39 / 7%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  text-decoration: none;
  margin-right: auto;
}
/* The signet: a cyan badge, the one place the brand colour carries weight.
   `#33ccff` is ~1.8:1 on white — a fill, never text (design/README.md), and
   the glyph inside it is white on that fill rather than cyan on white. */
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand-logo), var(--primary));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 45%),
    0 4px 14px -4px rgb(51 204 255 / 60%);
  flex: none;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__word { white-space: nowrap; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.site-nav a {
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-chip);
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--gray-900); background: var(--gray-100); }

.cta { display: flex; align-items: center; gap: 8px; }
.cta a { text-decoration: none; }

/* Primary actions are ≥ 44px tall — design/README.md's hit-target rule. */
.cta--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-chip);
  background: var(--gray-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  /* On the class itself, not on `.cta a`: these buttons are used in the hero
     and the closing band too, where the header's rule does not reach them —
     and an underlined pill reads as a broken link, not as a button. */
  text-decoration: none;
  box-shadow: var(--lift);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta--primary:hover {
  color: #ffffff;
  background: var(--gray-800);
  box-shadow: var(--lift-hi);
  transform: translateY(-1px);
}
.cta--primary:active { transform: translateY(0); }

/* The quiet half of a CTA pair. `Anmelden` is for people who already have an
   account and know where they are going; it must be findable without
   competing with the one action the page is actually asking for. */
.cta--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-chip);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.cta--ghost:hover { color: var(--gray-900); background: var(--gray-100); }

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-field);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.lang:hover { color: var(--gray-900); border-color: var(--gray-300); background: var(--gray-50); }

/*
 * The sticky header on a phone.
 *
 * Left to wrap on its own the flex row became THREE stacked rows — brand, then
 * nav, then the two CTAs and the language chip — about 330px of a 844px
 * screen, and because it is `sticky` that was 40 % of the viewport gone for
 * the whole scroll. A sticky header that big is worse than no sticky header.
 *
 * So below 760px it is deliberately two rows: identity and actions on the
 * first, the nav on the second as a single row that scrolls sideways rather
 * than wrapping. ~92px, and every link is still in the header — which is why
 * this is done with layout rather than by hiding the nav and hoping people
 * find it in the footer.
 */
@media (max-width: 760px) {
  .site-header {
    row-gap: 6px;
    column-gap: 8px;
    padding-block: 10px;
  }
  .site-nav {
    /* After the CTAs in the source, so it lands on the second row. */
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* The scrollbar is chrome the row cannot afford, and the row is short
       enough that its overflow is discoverable by dragging. */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 6px 10px; font-size: 13px; }
  .cta { order: 2; gap: 6px; }
  .cta--primary { min-height: 40px; padding: 0 14px; font-size: 13px; }
  /* `Anmelden` goes, and only from the HEADER: it is the secondary action, the
     hero carries it at full size, and on 390px it is the difference between
     one row of actions and two. `.site-header` qualifies the rule so the
     hero's own ghost button is untouched. */
  .site-header .cta--ghost { display: none; }
  .lang { min-width: 34px; min-height: 34px; padding: 0 8px; }
}

/* Under ~430px even that is tight, so the wordmark gives way to the signet —
   which is the half of a logo that still identifies the site. */
@media (max-width: 430px) {
  .brand__word { display: none; }
  .brand--footer .brand__word { display: inline; }
}

/* --- main ---------------------------------------------------------------- */

main {
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 7vw, 96px);
  padding-bottom: clamp(52px, 7vw, 96px);
}

/* A heading and one sentence above a band. Narrow on purpose: a section
   introduction that runs the full 1120px reads as body copy. */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 54ch;
  margin-bottom: 26px;
}
.section-head p { font-size: 16px; color: var(--gray-500); }

/* --- hero ---------------------------------------------------------------- */
/*
 * The one place the design spends boldness: a dark panel that matches the app
 * header a dealer is about to sign into (gray-900 is literally "ink, app
 * header" in the token table), with the brand cyan as a light source behind
 * it, and a photograph of the thing being sold. Everything else stays quiet.
 *
 * The background lives in two pseudo-layers: ::before carries the glow orbs
 * (they drift, slowly, only for visitors who asked for motion) and ::after
 * the faint grid that keeps the dark from reading as a flat slab.
 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(36px, 5vw, 62px);
  border-radius: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(90ch 60ch at 88% -10%, rgb(51 204 255 / 26%), transparent 60%),
    radial-gradient(60ch 40ch at 0% 110%, rgb(3 105 161 / 34%), transparent 62%),
    linear-gradient(160deg, var(--gray-800), var(--gray-900) 55%);
  color: #ffffff;
  box-shadow: var(--lift-hi);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46ch 46ch at 82% 8%, rgb(51 204 255 / 34%), transparent 62%),
    radial-gradient(52ch 40ch at 6% 104%, rgb(2 132 199 / 30%), transparent 60%),
    conic-gradient(from 210deg at 70% 40%, transparent 0deg, rgb(51 204 255 / 7%) 70deg, transparent 140deg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(75% 75% at 40% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(75% 75% at 40% 30%, #000, transparent);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
/* 11/700 uppercase with .07em — design/README.md's overline. On the dark
   ground the brand cyan can finally carry text, and this is the only place on
   the site where it does. */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand);
}
.hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-chip);
  background: var(--brand);
  box-shadow: 0 0 10px rgb(51 204 255 / 80%);
}
.hero h1 {
  color: #ffffff;
  max-width: 17ch;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 25%);
}
.hero__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: rgb(255 255 255 / 78%);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.hero .cta--primary {
  background: var(--brand);
  color: var(--gray-900);
  min-height: 48px;
  padding: 0 26px;
  font-size: 15px;
  box-shadow: var(--brand-glow);
}
.hero .cta--primary:hover {
  background: var(--brand-logo);
  color: var(--gray-900);
  box-shadow: 0 14px 40px -10px rgb(51 204 255 / 70%);
}
.hero .cta--ghost { color: rgb(255 255 255 / 82%); }
.hero .cta--ghost:hover { color: #ffffff; background: rgb(255 255 255 / 10%); }

/* Three facts, not slogans. A list because they are one, and because a screen
   reader then announces how many there are. */
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  /* 82% white on the hero's dark ground is ~9:1 — the cyan would be legible
     here too, but three cyan lines would compete with the CTA. */
  color: rgb(255 255 255 / 82%);
}
.hero__points li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-chip);
  background: rgb(51 204 255 / 18%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333ccff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

/*
 * The photograph. A real bike, because a marketplace whose front door shows
 * only gradients is asking a dealer to trust an abstraction.
 *
 * `aspect-ratio` plus the `width`/`height` on the <img> itself: the attributes
 * reserve the space before the bytes arrive, the ratio keeps the frame honest
 * when the column is narrower than the file.
 */
.hero__media {
  position: relative;
  min-width: 0;
  border-radius: clamp(14px, 1.8vw, 20px);
  overflow: hidden;
  /* A hairline of light along the top edge, the way a glass panel catches a
     room. Without it the photo sits on the dark ground like a sticker. */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 24px 60px -24px rgb(0 0 0 / 70%);
}
.hero__media img,
.hero__media picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .hero h1 { max-width: 22ch; }
  /* The photograph first on a phone is tempting and wrong: it would push the
     claim, the CTA and the three facts below the fold on a 844px screen. */
  .hero__media { order: 2; }
  /* Wrapped onto its own line, the ghost button's 16px of padding left it
     indented against every other left edge in the hero. It is a link here,
     not a pill, so it gives the padding up rather than the alignment. */
  .hero .cta--ghost { padding-inline: 0; }
}

/* --- showcase ------------------------------------------------------------ */
/*
 * Categories, never listings: a price on a marketing page is a promise about
 * a specific bike, and nothing on this origin knows whether that bike is
 * still for sale. So there is no number anywhere in this section — see the
 * comment on SHOWCASE in `templates/render.ts`.
 */
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap-grid);
  margin: 0;
  padding: 0;
  list-style: none;
}
.showcase__card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-card) + 3px);
  background: var(--gray-100);
  box-shadow: var(--lift);
  transition: transform .25s ease, box-shadow .25s ease;
}
.showcase__card img,
.showcase__card picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.showcase__card:hover { transform: translateY(-3px); box-shadow: var(--lift-hi); }
.showcase__card:hover img { transform: scale(1.035); }
/* The scrim is what makes white text legible on a photograph whose brightness
   nobody controls — a label straight on the image is readable on the grey
   road bike and invisible on the teal wall. */
.showcase__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(to top, rgb(17 24 39 / 88%), rgb(17 24 39 / 30%) 55%, transparent);
  pointer-events: none;
}
.showcase__label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgb(0 0 0 / 45%);
}

/* --- how it works -------------------------------------------------------- */

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap-grid);
}

.how__col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: calc(var(--radius-card) + 3px);
  box-shadow: var(--lift);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* The gradient hairline along the card's top edge is the brand colour doing
   its one job — a fill, at a scale where 1.8:1 doesn't matter. */
.how__col::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--primary) 55%, transparent);
}
.how__col:hover {
  transform: translateY(-3px);
  border-color: var(--brand-tint-border);
  box-shadow: var(--lift-hi);
}
.how__col h3 {
  /* An overline, per the type scale: 11/700 uppercase, .07em. */
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.how__col h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-chip);
  background: var(--brand);
  box-shadow: 0 0 10px rgb(51 204 255 / 80%);
}
.how__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.how__col li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--gray-700);
  line-height: 1.55;
}
/* A tick, not a number. These are the things the platform gives you, and they
   do not happen in an order — see the comment on `column()` in
   `templates/render.ts` for why this stopped being a counter. */
.how__col li::before {
  content: "";
  margin-top: 2px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-chip);
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075985' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  border: 1px solid var(--brand-tint-border);
}

/* --- inner page header --------------------------------------------------- */
/*
 * Every page that is not the home page opens with this.
 *
 * Without it an inner page was an `<h1>` floating on white: no indication of
 * where in the site you had landed, and nothing connecting the page to the
 * design of the one that sent you there. The tint, the hairline and the
 * overline are the same three devices the cards use.
 */
.page-head {
  position: relative;
  padding-block: clamp(28px, 4vw, 52px) clamp(24px, 3.4vw, 40px);
  padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2));
  background:
    radial-gradient(70ch 28ch at 10% -40%, var(--brand-tint), transparent 70%),
    var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  /*
   * `main` has no top padding, so the header already sits against the site
   * header — it needs nothing here. A negative `margin-top` was the first
   * attempt and it pulled the band UP UNDERNEATH the sticky header, cropping
   * the overline and the top of the title: `gap` applies BETWEEN children, so
   * there was never a gap above the first one to cancel.
   *
   * The gap that does exist is the one BELOW, and 96px of white between a page
   * title and its own content reads as a missing section. Most of it is taken
   * back here, leaving a deliberate amount.
   */
  margin-bottom: calc(clamp(28px, 3.2vw, 44px) - clamp(52px, 7vw, 96px));
}
/* The brand hairline, as on the card tops and the footer — the accent that
   ties the page to the rest of the site. */
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--primary) 40%, transparent 75%);
}
.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 34ch;
}
.page-head h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.028em;
}
/* 11/700 uppercase .07em — the same overline as the hero and the cards. */
.page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
}
.page-head__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-chip);
  background: var(--brand);
  box-shadow: 0 0 10px rgb(51 204 255 / 70%);
}
.page-head__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}
/* A title long enough to wrap wants the full measure, not 34ch. */
@media (min-width: 900px) {
  .page-head__inner { max-width: 52ch; }
}

/* --- FAQ ----------------------------------------------------------------- */
/*
 * Eleven questions, each with one answer. Native `<details>`: keyboard
 * accessible, findable by the browser's own in-page search, and not one line
 * of JavaScript on a site whose whole argument is that it loads nothing it
 * does not need.
 */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* The BAND is the measure and the reading width is on the items — the same
     split as `.prose`, so the questions start on the same left edge as the
     page title above them instead of being centred against it. */
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.faq__item { max-width: 80ch; }
.faq__item {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: calc(var(--radius-card) - 1px);
  box-shadow: var(--lift);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item:hover { border-color: var(--brand-tint-border); }
.faq__item[open] {
  border-color: var(--brand-tint-border);
  box-shadow: var(--lift-hi);
}
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(16px, 2vw, 22px);
  /* ≥ 44px hit target — design/README.md's rule, and a summary is a control. */
  min-height: 44px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  /* The browser's default marker is a small black triangle that cannot be
     styled consistently; the chevron below replaces it. */
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item summary:hover { color: var(--primary-deep); }
.faq__answer {
  padding: 0 clamp(16px, 2vw, 22px) 18px;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}
.faq__answer > * + * { margin-top: 10px; }

/* --- long documents (AGB, Datenschutz) ----------------------------------- */
/*
 * Thirteen sections called "§ 1" to "§ 13". Nobody reads that top to bottom;
 * they arrive looking for one clause, so it gets a table of contents and
 * anchors.
 */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
@media (min-width: 1000px) {
  .doc { grid-template-columns: 250px minmax(0, 1fr); }
  .doc__toc {
    position: sticky;
    /* Clear of the sticky site header, with a little air. */
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}
.doc__toc {
  padding: 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
}
/*
 * On a phone the sticky sidebar becomes a block above the text, and thirteen
 * sections filled the entire first screen — you had to scroll past the whole
 * contents to reach § 1, which is the opposite of what a contents list is for.
 * Capped and scrollable instead, so it stays an index rather than becoming the
 * page.
 */
@media (max-width: 999px) {
  .doc__toc {
    max-height: 38vh;
    overflow-y: auto;
    /* A hint that there is more inside, without a scrollbar being the only
       clue: the list fades at the bottom edge of the box. */
    mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
  }
}
.doc__toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.doc__toc ol {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.doc__toc li { counter-increment: toc; }
.doc__toc a {
  display: grid;
  grid-template-columns: 1.6em 1fr;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-600);
  text-decoration: none;
}
.doc__toc a::before {
  content: counter(toc) ".";
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}
.doc__toc a:hover { background: #ffffff; color: var(--primary-deep); }
/* The body is the document, so it takes the whole column rather than the
   centred 72ch the standalone prose column uses. */
.doc__body { width: 100%; margin-inline: 0; }
/* Followed anchors must not land under the sticky header. */
.doc__body h2, .doc__body h3, .faq__item { scroll-margin-top: 92px; }

/* --- prose (FAQ, Impressum, AGB, Datenschutz) ---------------------------- */

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: clamp(8px, 2vw, 20px);
}
/*
 * The band is the full measure; the LINE LENGTH is 72ch.
 *
 * Those are two different things, and collapsing them into one — a 72ch band,
 * centred — is what made the home page's prose float in the middle of the
 * screen with the showcase and the closing band starting 180px to its left.
 * Constraining the children instead keeps the reading measure (1120px of
 * continuous German legal prose is unreadable) and the shared left edge.
 */
.prose > * { max-width: 72ch; }
.prose > h1 { margin-bottom: 6px; }
/* Legal pages are long. A rule above each section makes them scannable
   without turning every heading into a shout. */
.prose > h2 {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  font-size: clamp(19px, 2vw, 23px);
}
.prose > h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.prose > h3 { margin-top: 10px; color: var(--gray-800); }
.prose ul, .prose ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose li::marker { color: var(--gray-400); }
.prose strong { color: var(--gray-800); }
.prose img { border-radius: var(--radius-card); box-shadow: var(--lift); }

/* --- blog ---------------------------------------------------------------- */
/*
 * The index and a post. Both sit on the prose measure rather than the card
 * grid: a list of articles is reading, not browsing, and a three-column grid
 * of two posts looks like a bug.
 */
.posts-section {
  width: min(var(--measure), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.posts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 72ch;
}
.posts__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
}
.posts__item:first-child { border-top: 0; padding-top: 4px; }
.posts__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}
.posts__item h3 { font-size: 19px; letter-spacing: -0.02em; }
.posts__item h3 a { color: var(--gray-900); text-decoration: none; }
.posts__item h3 a:hover { color: var(--primary); text-decoration: underline; }
.posts__empty {
  max-width: 72ch;
  padding: 22px 0;
  color: var(--gray-500);
}

/* A post's excerpt, promoted to a standfirst — the one line that decides
   whether the rest is read. */
.post__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray-700);
}
.post__back { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--gray-200); }

/* --- brand marquee ------------------------------------------------------- */
/*
 * Text, not logos (a marquee of manufacturer trademarks on a marketplace that
 * does not represent them is a permissions question nobody has asked) — and
 * an editorial strip rather than a tag cloud: one quiet row of wordmarks, the
 * way "trusted by" rows read on modern B2B sites.
 */
.marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 12px clamp(20px, 4vw, 44px);
  padding-block: 6px;
}
.marquee span {
  /* gray-500, not gray-400. These are brand names a visitor is meant to read,
     so they are text and must clear 4.5:1 — gray-400 measures 2.5:1 on white
     and failed even the large-text threshold at the small end of the clamp. */
  color: var(--gray-500);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .2s ease;
}
.marquee span:hover { color: var(--gray-800); }

/* --- closing CTA --------------------------------------------------------- */
/*
 * A second dark panel, smaller than the hero but cut from the same cloth, so
 * the page ends the way it began instead of trailing off into a tinted box.
 */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(32px, 4.4vw, 52px) clamp(24px, 4vw, 48px);
  border-radius: calc(var(--radius-card) + 3px);
  background:
    radial-gradient(60ch 40ch at 85% -20%, rgb(51 204 255 / 24%), transparent 60%),
    radial-gradient(50ch 34ch at 0% 120%, rgb(3 105 161 / 32%), transparent 62%),
    linear-gradient(160deg, var(--gray-800), var(--gray-900) 60%);
  box-shadow: var(--lift-hi);
}
.cta-band__copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgb(255 255 255 / 78%); font-size: 16px; max-width: 52ch; }
.cta-band .cta--primary {
  background: var(--brand);
  color: var(--gray-900);
  min-height: 48px;
  padding: 0 26px;
  font-size: 15px;
  box-shadow: var(--brand-glow);
  flex: none;
}
.cta-band .cta--primary:hover { background: var(--brand-logo); color: var(--gray-900); }

/* --- consent-gated embeds ------------------------------------------------ */
/* The placeholder is a real piece of design, not a grey box: a page whose
   whole argument is that it asks before loading anything should not look
   broken while it waits. */

.embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--pad-card);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: calc(var(--radius-card) + 3px);
  box-shadow: var(--lift);
}
.embed__title { font-weight: 700; color: var(--gray-900); margin: 0; font-size: 16px; }
.embed__body { margin: 0; color: var(--gray-600); }
.embed__placeholder button,
.embed form button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-chip);
  background: var(--gray-900);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.embed__placeholder button:hover,
.embed form button:hover { background: var(--gray-800); transform: translateY(-1px); }
.embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius-card) + 3px);
  box-shadow: var(--lift-hi);
}
.embed form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.embed input[type="email"] {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-field);
  font: inherit;
}
.embed input[type="email"]:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }

/* --- footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding-block: clamp(40px, 5vw, 64px) clamp(20px, 2.5vw, 28px);
  background:
    radial-gradient(70ch 30ch at 50% 130%, rgb(3 105 161 / 22%), transparent 65%),
    var(--gray-900);
  color: rgb(255 255 255 / 68%);
  font-size: 14px;
}
/* One hairline of brand cyan where the footer meets the page — the same
   accent as the card tops, closing the loop. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(51 204 255 / 55%), transparent);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
}
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 42ch; }
.brand--footer { color: #ffffff; margin-right: 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.site-footer__col h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgb(255 255 255 / 55%);
  margin-bottom: 10px;
}
.site-footer a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
}
.site-footer__col a {
  padding: 6px 0;
  border-radius: var(--radius-field);
}
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 13px;
  color: rgb(255 255 255 / 58%);
}
.site-footer__credits a { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand); }

/* Numbers line up wherever they appear — design/README.md's rule, and it
   matters most in the legal pages' dates and figures. */
table, .tabular { font-variant-numeric: tabular-nums; }

/* --- motion -------------------------------------------------------------- */
/*
 * Everything below is enhancement, never load-bearing: without
 * `prefers-reduced-motion: no-preference`, or without
 * `animation-timeline: view()`, the page is the fully styled static document
 * above.
 */

@media (prefers-reduced-motion: no-preference) {
  /* The hero's copy rises in once on load, staggered by source order.
     Targeted at `.hero__copy > *` rather than `.hero > *`: the hero's own
     children are now the copy column and the photograph, and animating the
     photograph's opacity is the LCP element arriving late on purpose. */
  .hero__copy > * {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero__copy > *:nth-child(2) { animation-delay: .06s; }
  .hero__copy > *:nth-child(3) { animation-delay: .12s; }
  .hero__copy > *:nth-child(4) { animation-delay: .18s; }
  .hero__copy > *:nth-child(5) { animation-delay: .24s; }

  /* The glow orbs breathe very slowly — movement you notice only if you
     look for it, not a distraction. */
  .hero::before { animation: drift 14s ease-in-out infinite alternate; }

  /* Scroll-driven reveals: sections settle into place as they enter. Gated on
     support because the fallback — no animation — is the correct static
     rendering anyway. */
  @supports (animation-timeline: view()) {
    .how__col, .cta-band, .embed, .marquee span, .showcase__card, .section-head,
    .posts__item, .faq__item {
      animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    .prose > h2, .prose > h3 {
      animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate3d(-1.5%, 1%, 0) scale(1); }
  to { transform: translate3d(1.5%, -1.5%, 0) scale(1.04); }
}

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