/* BOOXit homepage — page layer on top of the design system in css/ds/.
   Tokens (colours, type, spacing, effects) come from the design system; nothing here
   introduces a colour that is not a token. */

/* ---------- Language switch ----------
   Both languages live in the markup; the inactive one is hidden. js/site.js and the
   inline script in <head> set html[data-lang]. Without JS the page shows English. */
html[data-lang="de"] [lang="en"],
html:not([data-lang="de"]) [lang="de"] { display: none !important; }

/* ---------- Page frame ---------- */
:root {
  --page-max: 1440px;
  --pad-x: clamp(20px, 3.9vw, 56px);
  --sec-pad: clamp(64px, 9vw, 128px);
  --site-header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--site-header-h); }
body { margin: 0; }
img { max-width: 100%; height: auto; }
p { margin: 0; }

/* Full-bleed backgrounds, content held to the 1440px stage. */
.bleed { padding-inline: max(var(--pad-x), calc((100% - var(--page-max)) / 2 + var(--pad-x))); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--white); color: var(--text-primary); padding: 10px 14px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.skip:focus { top: 12px; }

a:focus-visible, button:focus-visible:not(.bxt-btn) {
  outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 2px;
}

/* base.css is unlayered and colours every <a>; the .bxt-btn classes live in a layer,
   so anchor buttons need their colours restated here. */
a.bxt-btn, a.bxt-btn:hover { text-decoration: none; }
a.bxt-btn--primary, a.bxt-btn--primary:hover { color: var(--color-on-primary); }
a.bxt-btn--outline { color: var(--text-primary); }
a.bxt-btn--outline:hover { color: var(--color-primary); }

/* ---------- Shared type ---------- */
.h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 640px;
  text-wrap: pretty;
}
.source {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.split--head .lead { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--site-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled { border-bottom-color: var(--border-default); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); }
.brand:hover { color: var(--text-primary); text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.brand__word span { font-weight: 500; }
.brand--small img { height: 22px; }
.brand--small .brand__word { font-size: 16px; }

.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }
.site-nav .site-nav__lang { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border-default);
  border-radius: var(--radius-md); overflow: hidden;
}
.lang-switch button {
  appearance: none; border: 0; margin: 0; background: transparent; cursor: pointer;
  padding: 7px 11px; line-height: 1.2;
  font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: var(--ls-caps);
  color: var(--text-secondary);
}
.lang-switch button[aria-pressed="true"] { background: var(--gray-900); color: var(--white); }
.lang-switch button:focus-visible { outline-offset: -3px; }

.menu-btn {
  display: none; appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: 8px; margin-right: -8px; color: var(--gray-900);
}
.menu-btn__bars { display: flex; flex-direction: column; gap: 4px; }
.menu-btn__bars i { display: block; width: 20px; height: 2px; background: currentColor; transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-base); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 72px);
  overflow: hidden;
}
/* drafting paper: the hero is a technical drawing */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(0deg, var(--gray-100) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
  opacity: 0.7;
}
.hero__eyebrow { font-size: 12px; }
.hero__title {
  margin-top: 18px;
  font-size: clamp(38px, 6.1vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__title .l { display: block; }

.strike { text-decoration: none; position: relative; color: var(--gray-400); white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -0.04em; right: -0.04em; top: 52%;
  height: 0.075em; min-height: 3px; background: var(--red-500);
  transform-origin: left center;
}
.js .strike::after { transform: scaleX(0); animation: bx-strike .45s var(--ease-out) 2.1s forwards; }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 660px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 24px 48px;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero__lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* The lineage: three standards drawn in one projection, standing on one floor line. */
.lineage { margin: clamp(48px, 6vw, 88px) 0 0; }
.lineage__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lineage__item { display: flex; flex-direction: column; min-width: 0; color: var(--gray-500); }
.lineage__item--booxit { color: var(--blue-500); }
.lineage__art {
  display: block; width: 100%;
  height: clamp(96px, 15vw, 220px);
  padding: 0 clamp(8px, 2vw, 32px) 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--gray-300);
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
  --sw-ln: 2.4; --sw-dt: 1.15;
}
.lineage__art .ln { stroke-width: var(--sw-ln); }
.lineage__art .dt, .lineage__art .st, .lineage__art .bc { stroke-width: var(--sw-dt); }
.lineage__art .dm { stroke-width: var(--sw-dt); opacity: 0.45; }
.lineage__item--booxit .lineage__art .st { stroke-width: calc(var(--sw-dt) * 1.3); }

.lineage__name {
  margin-top: 14px; padding-inline: clamp(8px, 2vw, 32px);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 1.5vw, 21px);
  color: var(--text-primary);
}
.lineage__item--booxit .lineage__name { color: var(--blue-600); }
.lineage__meta, .lineage__dim {
  padding-inline: clamp(8px, 2vw, 32px);
  font-family: var(--font-mono); font-size: clamp(10px, 0.9vw, 12.5px); letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.lineage__meta { margin-top: 4px; }
.lineage__dim { color: var(--text-muted); }
.lineage__caption {
  margin-top: 24px; max-width: 720px;
  font-size: 14px; line-height: 1.5; color: var(--text-muted);
}

.js .lineage__art path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: bx-draw 1.3s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.lineage__item:nth-child(1) { --d: .15s; }
.lineage__item:nth-child(2) { --d: .55s; }
.lineage__item:nth-child(3) { --d: .95s; }
.js .lineage__item--booxit .lineage__art .st { animation-delay: 1.75s; animation-duration: .35s; }

@keyframes bx-draw { to { stroke-dashoffset: 0; } }
@keyframes bx-strike { to { transform: scaleX(1); } }

/* ---------- Why ---------- */
.why {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border-subtle);
  padding-block: var(--sec-pad);
}
.then-now { margin: 0; display: flex; flex-direction: column; gap: 0; }
.then-now__row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--border-default);
}
.then-now dt { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.then-now dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.then-now__fig {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--gray-500);
}
.then-now__row--now .then-now__fig { color: var(--blue-500); }
.then-now__unit { font-size: 16px; color: var(--text-secondary); }
.then-now .source { padding-top: 14px; border-top: 1px solid var(--border-default); }

.why__sub {
  margin-top: clamp(56px, 7vw, 96px);
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2;
  max-width: 820px;
}
.obstacles {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
}
.obstacles li { border-top: 2px solid var(--gray-900); padding-top: 18px; }
.obstacles h4 { font-size: 21px; }
.obstacles p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); }

/* ---------- System ---------- */
.system { padding-block: var(--sec-pad); }
.loop {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.loop__step {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
/* connector into the next step */
.loop__step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -22px; width: 16px; height: 2px;
  background: var(--blue-300);
}
.loop__num {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 2px solid var(--blue-500); border-radius: 50%;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--blue-600);
}
.loop__step h3 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; }
.loop__step .arrow { color: var(--blue-500); font-size: 30px; line-height: 1; }
.loop__step .arrow--red { color: var(--red-500); }
.loop__step p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.loop__step .loop__part {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.45; color: var(--blue-700);
}
/* the return path from step 4 back to step 1 */
.loop__again {
  position: relative; height: 30px; margin: 0 12.5%;
  border: 2px dashed var(--blue-200); border-top: 0;
  border-radius: 0 0 14px 14px;
}
.loop__again > span {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 55%);
  padding: 0 12px; background: var(--white); white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--blue-600);
}

.product {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.product__photo { margin: 0; }
.product__photo img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 60%;
  border-radius: var(--radius-lg);
}
.product__photo figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.product__title { margin-top: 10px; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; }
.product__text { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); max-width: 460px; }
.spec { margin: 24px 0 28px; }
.spec div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--border-subtle);
}
.spec div:last-child { border-bottom: 1px solid var(--border-subtle); }
.spec dt { font-size: 14px; color: var(--text-secondary); }
.spec dd { margin: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-primary); text-align: right; }

/* ---------- Results (dark) ---------- */
.results {
  background: var(--gray-900); color: var(--gray-100);
  padding-block: var(--sec-pad);
}
.results .booxit-overline { color: var(--blue-300); }
.results .h2 { color: var(--white); }
.results .lead { color: var(--gray-300); }
.results .lead em { color: var(--white); }
.results a:focus-visible { outline-color: var(--white); }

.results__grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.panel {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}
.panel__title { color: var(--white); font-size: clamp(22px, 2vw, 28px); }
.panel__setup { font-size: 15px; line-height: 1.55; color: var(--gray-400); }
.panel__sub { margin-top: 8px; color: var(--white); font-size: 18px; }
.panel .source { margin-top: auto; padding-top: 12px; color: var(--gray-400); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--gray-300); }
.key::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px;
  border-radius: 2px; vertical-align: -1px; background: var(--c);
}
.key--card, .bar--card { --c: var(--gray-300); }
.key--bx, .bar--bx { --c: var(--blue-500); }

.bars { width: 100%; border-collapse: collapse; }
.bars tbody tr {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 14px 0 12px; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bars th { padding: 0 0 6px; text-align: left; font-size: 14px; font-weight: 600; color: var(--gray-100); }
.bars td { padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.bar__fill {
  flex: none; height: 12px; min-width: 3px;
  width: calc(var(--v) * (100% - 7.5rem));
  background: var(--c); border-radius: 0 4px 4px 0;
  transition: filter var(--dur-fast) var(--ease-standard);
}
.bars tr:hover .bar__fill { filter: brightness(1.15); }
.bar__val { font-family: var(--font-mono); font-size: 13px; color: var(--gray-100); white-space: nowrap; }
.status { margin-left: 6px; font-family: var(--font-sans); font-size: 12px; color: var(--gray-300); }
.status::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  border-radius: 50%; background: var(--c); vertical-align: 0;
}
.status--warn { --c: var(--amber-500); }
.status--ok { --c: var(--green-500); }

.breakeven { width: 100%; border-collapse: collapse; font-size: 14px; }
.breakeven th {
  padding: 0 0 8px; text-align: left; font-weight: 500; font-size: 12px;
  letter-spacing: 0.02em; color: var(--gray-400);
}
.breakeven th:last-child, .breakeven td:last-child { text-align: right; }
.breakeven td {
  padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono); font-size: 13.5px; color: var(--gray-100);
}
.breakeven__never { font-weight: 600; color: var(--white); }

.results__takeaway {
  margin-top: clamp(40px, 5vw, 64px); max-width: 900px;
  padding-left: 20px; border-left: 3px solid var(--blue-500);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; color: var(--white);
}

/* ---------- Where it fits ---------- */
.fit { padding-block: var(--sec-pad); }
.fit .split { align-items: start; }
.fields { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gray-900); }
.fields li {
  padding: 13px 0; border-bottom: 1px solid var(--border-default);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px);
}

/* ---------- Story ---------- */
.story {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--sec-pad);
}
.story__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.story__text > p:not(.booxit-overline):not(.lead) {
  margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); max-width: 640px;
}
.founders { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.founder {
  padding: 22px; background: var(--surface-card);
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
}
.founder h3 { font-size: 21px; }
.founder__role {
  margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--blue-700);
}
.founder p:last-child { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

.timeline { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px;
  background: var(--blue-200);
}
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface-subtle); border: 3px solid var(--blue-500);
}
.timeline__now::before { background: var(--blue-500) !important; }
.timeline__year { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--blue-700); }
.timeline p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.timeline strong { color: var(--text-primary); font-weight: 600; }

.partners {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px;
  border-top: 1px solid var(--border-default);
  font-size: 14px; line-height: 1.6; color: var(--text-secondary);
}

/* ---------- Book ----------
   blue-600, not the brand blue-500: white body text needs the contrast. */
.book { background: var(--blue-600); color: var(--white); padding-block: var(--sec-pad); }
.book .booxit-overline { color: var(--blue-100); }
.book__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.book__title {
  margin-top: 14px; color: var(--white);
  font-size: clamp(44px, 5.6vw, 84px); line-height: 0.95; letter-spacing: -0.02em;
}
.book__subtitle { margin-top: 16px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: var(--blue-50); max-width: 560px; }
.book__editors { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--blue-100); }
.book__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
a.book__btn { background: var(--white); color: var(--blue-700); border-color: var(--white); }
a.book__btn:hover { background: var(--blue-50); color: var(--blue-800); }
.book__meta { font-family: var(--font-mono); font-size: 13px; color: var(--blue-100); }
.book a:focus-visible { outline-color: var(--white); }

.toc { list-style: none; margin: 0; padding: 0; counter-reset: ch; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.toc li {
  counter-increment: ch;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px; line-height: 1.45; color: var(--white);
}
.toc li::before { content: counter(ch); font-family: var(--font-mono); font-size: 13px; color: var(--blue-100); padding-top: 1px; }
.toc li:last-child { font-weight: 600; }

/* ---------- Contact & footer ---------- */
.contact { padding-block: var(--sec-pad) clamp(48px, 6vw, 80px); }
.contact__intro { margin-top: 14px; font-size: clamp(17px, 1.3vw, 19px); color: var(--text-secondary); }
.contact__mail {
  display: inline-block; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(30px, 6.2vw, 90px); line-height: 1; color: var(--text-primary);
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--blue-500); text-decoration: none; }
.contact__meta {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 40px;
  font-size: 17px; color: var(--text-secondary);
}
.contact__tel { font-family: var(--font-mono); color: var(--text-primary); }

.site-footer { padding-bottom: 40px; }
.site-footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-top: 22px; border-top: 1px solid var(--border-default);
}
.site-footer__sign { font-size: 13px; color: var(--text-muted); }
.site-footer__imprint { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Variant switcher (review only — remove when a variant is chosen) ---------- */
.variant-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: var(--gray-900); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  font-family: var(--font-mono); font-size: 12px;
}
.variant-switch span { padding: 0 8px 0 10px; color: var(--gray-400); }
.variant-switch a {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); color: var(--gray-300); white-space: nowrap;
}
.variant-switch b { font-weight: 600; color: var(--white); }
.variant-switch a:hover { background: var(--gray-700); color: var(--white); text-decoration: none; }
.variant-switch a[aria-current="page"] { background: var(--blue-500); color: var(--white); }
.variant-switch a:focus-visible { outline-color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop__step:not(:last-child)::after { display: none; }
  .loop__again { margin: 0; border: 0; height: auto; padding-top: 16px; }
  .loop__again > span { position: static; transform: none; padding: 0; background: none; }
  .results__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --site-header-h: 60px; }
  .brand img { height: 26px; }
  .brand__word { font-size: 20px; }
  .site-header__actions .lang-switch { display: none; }
  .site-header__shop { height: var(--control-h-sm); padding: 0 var(--control-px-sm); font-size: var(--fs-caption); }
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    padding: 4px var(--pad-x) 20px;
    background: var(--white); border-bottom: 1px solid var(--border-default); box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav li a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border-subtle); }
  .site-nav .site-nav__lang { display: inline-flex; margin-top: 16px; }

  .split, .story__grid, .book__grid, .product { grid-template-columns: minmax(0, 1fr); }
  .split { align-items: start; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .obstacles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .variant-switch { left: 8px; right: 8px; bottom: 8px; justify-content: center; }
  .variant-switch span { display: none; }
  .variant-switch a { padding: 0 9px; font-size: 11px; }
  .hero__cta .bxt-btn { flex: 1 1 100%; }
  .lineage__art { --sw-ln: 4.5; --sw-dt: 2.2; padding-inline: 4px; }
  .lineage__name, .lineage__meta, .lineage__dim { padding-inline: 4px; }
  .lineage__dim { display: none; }
  .loop { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .founders { grid-template-columns: minmax(0, 1fr); }
  .then-now__row { grid-template-columns: 64px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .lineage__art path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .strike::after { transform: none; }
}
