/* ==========================================================
   O3-Shop redesign — design system
   Primary: #82BA00 (lime)  Indigo: #31335A
   ========================================================== */

/* Self-hosted fonts (DSGVO-compliant, no Google Fonts CDN) ---
   Variable font files cover weights 400–700 from a single woff2.
   Latin subset covers German umlauts (ä, ö, ü, ß) + standard
   Western European glyphs. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/intertight-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-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;
}

:root {
  --lime: #82BA00;
  --lime-ink: #5a8200;
  --lime-soft: #e8f3ce;
  --indigo: #31335A;
  --indigo-ink: #1d1f3d;
  --indigo-soft: #e6e7ee;

  --bg: #fbfaf6;
  --bg-card: #ffffff;
  --bg-tint: #f3f1ea;
  --ink: #15162b;
  --ink-2: #4a4c6b;
  --ink-3: #8a8ca3;
  --rule: #e8e6dd;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(60px, 8vw, 120px) 0; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }

/* ===== Type ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--lime);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--ink-2); max-width: 60ch; }

/* Universal heading → body-copy rhythm */
h2 + .lead, h2 + p { margin-top: 22px; }

.mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-ink); transform: translateY(-1px); }
.btn--lime { background: var(--lime); color: var(--indigo-ink); }
.btn--lime:hover { background: #95cc14; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.btn--ghost:hover { background: var(--bg-tint); border-color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: 13px; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.footer .logo img { height: 36px; filter: brightness(0) invert(1) sepia(0.5) saturate(5) hue-rotate(40deg); }
/* Use original colors in dark footer — the brand mark already reads on dark */
.footer .logo img { filter: none; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-tint); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--bg-tint); }
.nav__gh { display: inline-flex; align-items: center; padding: 8px 10px; }
.nav__gh svg { width: 20px; height: 20px; display: block; }

.header__right { display: flex; align-items: center; gap: 12px; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin-left: 4px;
}
.nav-toggle:hover { background: var(--bg-tint); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__cta { display: none; }

.lang {
  display: inline-flex;
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang button {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background .15s, color .15s;
}
.lang button.on { background: var(--indigo); color: #fff; }

/* ===== Hero ===== */
.hero {
  padding: clamp(60px, 8vw, 115px) 0;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { line-height: 1.05; }
.hero h1 .lime-mark {
  display: inline;
  color: var(--indigo-ink);
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 22%,
    var(--lime) 22%,
    var(--lime) 88%,
    transparent 88%
  );
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.hero h1 .indigo-mark {
  color: var(--indigo);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 999px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.tag .dot.dot--indigo,
.tag.tag--indigo .dot { background: var(--indigo); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  max-width: 60ch;
}
.stat {
  background: var(--bg-card);
  padding: 18px 20px;
}
.stat__num { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--indigo); }
.stat__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

/* Hero terminal */
.terminal {
  background: var(--indigo-ink);
  color: #e9e9f3;
  border-radius: var(--radius);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(49,51,90,.35), 0 10px 20px -10px rgba(49,51,90,.2);
}
.terminal__bar {
  background: rgba(255,255,255,0.05);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.terminal__title { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.terminal__body { padding: 18px 18px 22px; line-height: 1.7; }
.term-line { white-space: pre; }
.t-prompt { color: var(--lime); }
.t-comment { color: rgba(255,255,255,0.35); }
.t-cmd { color: #fff; }
.t-out { color: rgba(255,255,255,0.7); }
.t-ok { color: var(--lime); }
.t-warn { color: #f4c452; }
.t-key { color: #b3b6e8; }

/* ===== Marquee ===== */
.marquee {
  background: var(--indigo);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 14px; }
.marquee__track .sep { color: var(--lime); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature[hidden] { display: none; }
.feature {
  background: var(--bg-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .2s;
  position: relative;
}
.feature:hover { background: var(--bg); }
.feature__icon {
  width: 36px; height: 36px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature__num { display: none; }

/* ===== Big card / Migration teaser ===== */
.bigcard {
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .bigcard { grid-template-columns: 1fr; } }
.bigcard h2 { color: #fff; }
.bigcard p { color: rgba(255,255,255,0.75); }
.bigcard .eyebrow { color: var(--lime); }
.bigcard .eyebrow::before { background: var(--lime); }
.bigcard .lead { max-width: 50ch; }
.bigcard .btn--lime { margin-top: 28px; }
.mflow-arrow {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.18);
  margin: 0 auto;
}

.migration-flow {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.mflow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.mflow-step .num {
  width: 22px; height: 22px;
  background: var(--lime);
  color: var(--indigo-ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}
.mflow-step .arrow { margin-left: auto; color: rgba(255,255,255,0.4); }

/* ===== Contributors ===== */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 900px) { .contrib-grid { grid-template-columns: repeat(2, 1fr); } }
.contrib {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s, transform .15s;
}
.contrib:hover { border-color: var(--indigo); transform: translateY(-2px); }
.contrib__avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--indigo-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--indigo);
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.contrib__avatar span { position: relative; z-index: 1; }
.contrib__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contrib__name { font-size: 17px; line-height: 1.3; }
.contrib__role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; margin-top: 4px; text-transform: uppercase; }
.contrib-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 20px;
}

/* ===== FAQ ===== */
.faq {
  border-top: 0;
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__item:first-child .faq__q {
  padding-top: 0;
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__q:hover { color: var(--indigo); }
.faq__plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  position: relative;
  font-size: 0;
  color: var(--ink);
  transition: transform .25s ease, background .15s, border-color .15s;
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
}
.faq__plus::before {
  width: 11px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq__plus::after {
  width: 1.5px;
  height: 11px;
  transform: translate(-50%, -50%);
}
.faq__item.open .faq__plus {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
  transform: rotate(45deg);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--ink-2);
}
.faq__item.open .faq__a { max-height: 400px; }
.faq__a-inner { padding: 0 60px 28px 0; font-size: 16px; line-height: 1.6; max-width: 75ch; }

/* ===== Final CTA ===== */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--lime-soft) 100%);
  padding: clamp(70px, 9vw, 120px) 0;
  border-top: 1px solid var(--rule);
}
.cta-final h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta-final .lead { margin: 0 auto 36px; }
.cta-final__btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== Footer ===== */
.footer {
  background: var(--indigo-ink);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer h3, .footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 18px;
  font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.8); transition: color .15s; }
.footer__col a:hover { color: var(--lime); }
.footer__brand { color: #fff; }
.footer__brand .logo { color: #fff; }
.footer__brand p { color: rgba(255,255,255,0.7); margin-top: 16px; max-width: 36ch; line-height: 1.5; }
.footer__brand a { color: rgba(255,255,255,0.7); }
.footer__brand a:hover { color: var(--lime); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}

/* ===== Placeholder image boxes (striped) ===== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(49,51,90,0.06) 0,
      rgba(49,51,90,0.06) 1px,
      transparent 1px,
      transparent 12px
    ),
    var(--indigo-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-align: center;
  text-transform: uppercase;
  padding: 24px;
  min-height: 120px;
}
.ph--lime {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(90,130,0,0.08) 0,
      rgba(90,130,0,0.08) 1px,
      transparent 1px,
      transparent 12px
    ),
    var(--lime-soft);
}

/* ===== Page hero (sub-pages) ===== */
.page-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); }
.page-hero .lead { margin-top: 24px; }
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.crumbs a:hover { color: var(--indigo); }

/* ===== About — mission, timeline ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(30px, 5vw, 80px);
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__heading h2 { position: sticky; top: 100px; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.tl-item:last-child { border-bottom: 1px solid var(--rule); }
.tl-date { font-family: var(--font-mono); font-size: 13px; color: var(--lime-ink); font-weight: 600; }
.tl-body h3 { font-size: 22px; margin-bottom: 8px; }
.tl-body p { color: var(--ink-2); }

/* ===== Migration page — step-through ===== */
.migration-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 900px) { .migration-grid { grid-template-columns: minmax(0, 1fr); } }
.steps-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.steps-nav button {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid transparent;
  transition: all .15s;
}
.steps-nav button .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.steps-nav button:hover { background: var(--bg-tint); }
.steps-nav button.on {
  background: var(--bg-card);
  border-color: var(--rule);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.steps-nav button.on .num { color: var(--lime-ink); }
.steps-nav button.done .num::before { content: "✓ "; color: var(--lime-ink); }

.step-panel {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 50px);
  min-height: 500px;
}
.step-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.step-panel__head h2 { font-size: clamp(24px, 3vw, 34px); }
.step-time {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.step-panel p { color: var(--ink-2); margin-bottom: 18px; line-height: 1.6; }
.step-panel ul { color: var(--ink-2); padding-left: 20px; line-height: 1.7; margin-bottom: 24px; }
.step-panel li { margin-bottom: 8px; }
.step-panel li::marker { color: var(--lime); }

.codeblock {
  background: var(--indigo-ink);
  color: #e9e9f3;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 18px 0;
}
.codeblock .c-line { white-space: pre; }

.step-panel__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* ===== Callout — highlighted note inside step-panels ===== */
.callout {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--lime-soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.callout strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.callout p { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 0; }
.callout a {
  align-self: flex-start;
  margin-top: 4px;
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.callout a:hover { color: var(--indigo); }

/* ===== Utilities ===== */
.divider {
  height: 1px;
  background: var(--rule);
  margin: 0;
  border: 0;
}
/* fadein utility — visible by default; subtle entrance only when supported */
.fadein { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .fadein { animation: fadein .6s ease both; }
  .fadein.d1 { animation-delay: 0.05s; }
  .fadein.d2 { animation-delay: 0.12s; }
  .fadein.d3 { animation-delay: 0.20s; }
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--indigo);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

/* ===== Lang toggle as links ===== */
.lang a {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background .15s, color .15s;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
}
.lang a.on { background: var(--indigo); color: #fff; }

/* ===== References page ===== */
.ref-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 50px;
}
@media (max-width: 700px) { .ref-stats { grid-template-columns: 1fr 1fr; } }
.ref-stats .stat { padding: 24px 26px; }
.ref-stats .stat__num { font-size: 38px; }

.ref-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 30px 0 36px;
}
.ref-filters__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 12px;
}
.ref-filter {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  transition: all .15s;
  cursor: pointer;
}
.ref-filter:hover { border-color: var(--ink); color: var(--ink); }
.ref-filter.on { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shop-grid { grid-template-columns: 1fr; } }

.shop[hidden] { display: none; }
.shop {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .15s, box-shadow .15s;
}
.shop:hover {
  transform: translateY(-3px);
  border-color: var(--indigo);
  box-shadow: 0 14px 30px -20px rgba(49,51,90,.25);
}
.shop__shot {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg,rgba(49,51,90,0.06) 0,rgba(49,51,90,0.06) 1px,transparent 1px,transparent 14px),
    var(--indigo-soft);
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--rule);
}
.shop__shot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.shop__shot--lime {
  background:
    repeating-linear-gradient(135deg,rgba(90,130,0,0.08) 0,rgba(90,130,0,0.08) 1px,transparent 1px,transparent 14px),
    var(--lime-soft);
}
a.shop__shot { text-decoration: none; overflow: hidden; }
.shop__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.shop:hover .shop__shot img { transform: scale(1.04); }
.shop__country {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.shop__since {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.shop__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop__category {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime-ink);
}
.shop h3 { font-size: 22px; }
.shop h3 a { transition: color .15s; }
.shop:hover h3 a { color: var(--indigo); }
.shop__note { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.shop__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
}
.submit-card {
  background: var(--lime-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 800px) { .submit-card { grid-template-columns: 1fr; } }

/* Legal / long-form text pages (Impressum, Datenschutz) */
.legal { max-width: 760px; }
.legal > p:first-child { margin-top: 0; }
.legal h2 { font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -0.02em; margin: 44px 0 14px; }
.legal h3 { font-size: 18px; margin: 30px 0 10px; }
.legal h4 { font-size: 15px; margin: 22px 0 6px; color: var(--ink); }
.legal p { color: var(--ink-2); line-height: 1.75; margin: 0 0 14px; }
.legal ul { color: var(--ink-2); line-height: 1.7; margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal address { font-style: normal; line-height: 1.75; color: var(--ink-2); margin: 0 0 14px; }
.legal__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.legal__note {
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.legal__note p { margin: 0; font-size: 14px; }
.legal__card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 16px;
}
.legal__card h3 { margin-top: 0; }
.legal__ph { display: inline; background: var(--lime-soft); color: var(--lime-ink); font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; border-radius: 4px; }

/* Browser mockup + screenshot showcase */
.browser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  box-shadow: 0 30px 60px -34px rgba(49,51,90,.35);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--rule);
}
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots span { width: 10px; height: 10px; border-radius: 50%; background: #cfcbbe; }
.browser__url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 14px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser__shot { display: block; width: 100%; height: auto; }

.shots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}
.shot-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px;
}
.shot-toggle button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 20px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.shot-toggle button.on { background: var(--indigo); color: #fff; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 28px; }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot[hidden] { display: none; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); display: flex; align-items: baseline; gap: 10px; }
.shot figcaption .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); flex: none; }

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.partner-chip {
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--indigo);
  letter-spacing: -0.01em;
  transition: border-color .15s;
}
.partner-chip:hover { border-color: var(--indigo); }

/* ===== Mobile (≤ 800px) ===== */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  /* Disable backdrop-filter on mobile — it creates a containing block that
     traps position:fixed descendants (the drawer) inside the header. */
  .header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Drawer: slide-in panel under sticky header */
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--pad) 32px;
    border-top: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 49;
    overflow-y: auto;
  }
  body.menu-open .nav { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .nav a {
    padding: 18px 4px;
    font-size: 18px;
    font-family: var(--font-display);
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
  }
  .nav a:hover, .nav a.active { background: transparent; color: var(--indigo); }
  .nav__cta {
    display: inline-flex !important;
    margin-top: 24px;
    align-self: flex-start;
    border-bottom: 0 !important;
    color: #fff !important;
    padding: 14px 22px !important;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
  }

  /* Hide desktop-only header items */
  .header__right .btn--primary { display: none; }

  /* Hero — tighter on mobile */
  .hero { padding: 36px 0 48px; }
  h1 { font-size: clamp(38px, 10vw, 56px); }
  .hero__meta { margin: 22px 0 26px; gap: 8px; }
  .hero__cta { gap: 10px; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { margin-top: 32px; max-width: none; }
  .stat { padding: 16px 20px; }
  .stat__num { font-size: 24px; }

  /* Tighter heading rhythm on mobile */
  h2 + .lead, h2 + p { margin-top: 16px; }
  .eyebrow { margin-bottom: 12px; }

  /* Marquee — slightly smaller */
  .marquee { padding: 14px 0; }
  .marquee__track { font-size: 12px; gap: 32px; }

  /* Section padding */
  .section { padding: 56px 0; }
  .section--tight { padding: 36px 0; }

  /* Big card / migration teaser */
  .bigcard { padding: 32px 24px; }

  /* CTA final */
  .cta-final { padding: 64px 0 72px; }
  .cta-final__btns { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-final__btns .btn { justify-content: center; }

  /* Footer */
  .footer { padding: 50px 0 24px; }
  .footer__top { gap: 32px; padding-bottom: 36px; }
  .footer__bottom { font-size: 11px; }

  /* FAQ — tighter inner padding so answers don't overflow */
  .faq__a-inner { padding-right: 0; padding-bottom: 22px; }
  .faq__q { padding: 22px 0; }

  /* Page hero (sub-pages) */
  .page-hero { padding: 32px 0 28px; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 52px); }

  /* About split — disable sticky on mobile (collides with drawer) */
  .split__heading h2 { position: static; }
  .steps-nav { position: static; }

  /* Terminal — slightly smaller text */
  .terminal { font-size: 12px; }
  .terminal__body { padding: 14px 14px 18px; }

  /* Contributors — keep 2-col but tighter */
  .contrib { padding: 16px; }
  .contrib__avatar { margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .header__inner { gap: 8px; }
  .lang { padding: 2px; }
  .lang a { padding: 4px 9px; font-size: 11px; }
  .logo img { height: 32px; }
  .header__inner { height: 60px; }
  .nav { top: 60px; }
}
