/* apfel brand stylesheet = the original apfel.franzai.com CSS as of commit 8548155, unchanged.
   Franz design kit rule: load this first, then /assets/design.css. Do not edit for the redesign;
   design changes go into design.css. The whole file sits in the cascade layer "brand", so every
   (unlayered) design.css rule wins over it regardless of selector specificity: that is what the kit
   means by "integrate design.css after its brand stylesheet". */
@layer brand {
/* ===== franzai: tokens.css ===== */
/*
  Design tokens - spec section 12 (pages 38-40), identity pack v1.1.
  Custom properties only. Franz override: no font-size token below 16px
  except --font-credit (13px) for photo credits.

  Contrast on white #FFFFFF (computed, WCAG relative luminance):
    ink #0F1419 ............ 18.0:1 (ink on orange #E8461A: 4.69:1)
    secondary #5B636B ...... 6.10:1
    orange-text #C93A12 .... 5.13:1 (4.88:1 on surface-alt)
    orange #E8461A ......... 3.95:1 (graphics, large text 20px/700+, fills only)
    error #B42318 .......... 6.57:1 (6.26:1 on surface-alt)
    success #0B6B3A ........ 6.61:1 (6.29:1 on surface-alt)
  Fluid type: H3/lead/body hit the spec value at 390px and the desktop value at 1440px; H1/H2 also hit 320px. H1/H2 hit the spec
  values at 320 px, 390 px and desktop via min() of two lines (clamp is Baseline 2020).
  Values marked "choice" are not in the spec and were chosen by the implementer.
*/
/* stylelint-disable color-hex-length, value-keyword-case, media-feature-range-notation -- spec hex and font names kept verbatim; min-width media queries for older-browser support */
:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-ink: #0F1419;

  /* Brief R3 (2026-11-11): slightly redder vivid orange for actions and few accents; darker variant for small text. */
  --color-orange: #E63B12;
  --color-orange-hover: #CF300C;
  --color-orange-text: #B83210; /* brief v2 accentText, 6.0:1 on white */
  --color-secondary: #5B636B;
  --color-hairline: #E5E7EB;

  /* Input boundary: 1px, light but 3.32:1 on white (WCAG 1.4.11 non-text contrast). */
  --color-field-border: #878E95;

  /* Card surface (Franz: a card never has the page colour): warm off-white plus a 1px hairline on the white page. */
  --color-surface-alt: #FBF9F7;

  /* Soft orange band behind one proof strip (Codex conversion design). */
  --color-orange-tint: #FDF0EB;

  /* Dark apfel panel (Codex design docs/relaunch-spec/design/codex-apfel, 2026-11-11). Orange text on it is lighter
     than the action orange so small text keeps AA contrast (#FF6A3D on #14161A about 6.6:1). */
  --color-panel-dark: #14161A;
  --color-panel-surface: #202328;
  --color-panel-border: #34373B;
  --color-panel-surface-border: #45494F;
  --color-panel-button-border: #767A80;
  --color-panel-dots: #8B9096;
  --color-panel-text: #CFD1D4;
  --color-panel-orange: #FF6A3D;

  /* FullStackOptimization palette (fullstackoptimization.com BaseLayout CSS, read 2026-11-11), SEO/GEO section only. */
  --color-fso-green: #86B32D;
  --color-fso-green-text: #4F7A12;
  --color-fso-green-wash: #F3F8E9;
  --color-fso-hairline: #E1E5D8;
  --color-error: #B42318;
  --color-success: #0B6B3A;

  /* Font family */

  /* Self-hosted (fontsource): Inter Tight for headings, Inter for body, so the brand looks the same on every OS. */
  --font-sans: "Inter Variable", "Inter Fallback", Arial, sans-serif;
  --font-heading: "Inter Tight Variable", "Inter Tight Fallback", Arial, sans-serif;
  --tracking-heading: -0.015em;
  --tracking-h1: -0.035em;
  --tracking-h2: -0.025em;
  --tracking-h3: -0.015em;
  --tracking-eyebrow: 0.02em;

  /* Font sizes: 320px -> 390px -> 1440px. Floor 16px everywhere except credits. */

  /* Brief v2 type table (stepped: 320 / 360-430 / 768 / 1024+). Supporting and eyebrow text stay at the 16px floor
     (Franz's global rule) instead of the brief's 15px and 14px. */
  --font-h1: 38px;
  --font-h2: 28px;
  --font-h3: 24px;
  --font-lead: 18px;
  --font-body: 17px;
  --font-price: 26px;
  --font-caption: 16px;
  --font-eyebrow: 16px;
  --font-label-primary: 20px;
  --font-credit: 13px;

  /* Line heights (spec px / px ratios) */
  --lh-h1: 41px;
  --lh-h2: 33px;
  --lh-h3: 29px;
  --lh-lead: 28px;
  --lh-body: 27px;
  --lh-price: 32px;
  --lh-caption: 1.5;
  --lh-eyebrow: 1.5;
  --lh-label-primary: 1.2;

  /* Font weights */
  --weight-regular: 400;
  --weight-bold: 700;

  /* Spacing (4px base) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-72: 72px;
  --space-96: 96px;
  --space-120: 120px;

  /* Section rhythm and cards (brief v2 2.4): 72 / 96 between major sections; card padding 24 / 28, gap 20 / 24. */
  --section-space: 40px;
  --section-space-desktop: 80px;
  --card-padding: 24px;
  --card-gap: 20px;

  /* Gutters: 20px at 320, 24px at 360, 28px from 390 (stepped, not interpolated) */
  --gutter-20: 20px;
  --gutter-24: 24px;
  --gutter-28: 28px;
  --gutter: 20px;

  /* Layout */
  --content-max: 1180px;
  --reading-max: 68ch;

  /* Radii */
  --radius-button: 6px;
  --radius-card: 8px;
  --radius-large: 12px;

  /* Buttons */
  --button-height: 56px;
  --button-height-compact: 48px;

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 200ms;

  /* Focus ring */
  --focus-ring: 3px solid var(--color-ink);
  --focus-offset: 4px;
}

@media (min-width: 360px) {
  :root {
    --gutter: var(--gutter-24);
    --font-h1: 44px;
    --lh-h1: 47.5px;
    --font-h2: 32px;
    --lh-h2: 37px;
  }
}

@media (min-width: 390px) {
  :root {
    --gutter: var(--gutter-28);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --font-h1: 52px;
    --lh-h1: 56px;
    --font-h2: 36px;
    --lh-h2: 41px;
    --font-h3: 26px;
    --lh-h3: 32px;
    --font-lead: 19px;
    --lh-lead: 29px;
    --font-body: 18px;
    --lh-body: 29px;
  }
}

@media (min-width: 1024px) {
  :root {
    --font-h1: 64px;
    --lh-h1: 68px;
    --font-h2: 42px;
    --lh-h2: 47px;
    --font-h3: 28px;
    --lh-h3: 34px;
    --font-lead: 20px;
    --lh-lead: 30px;
    --card-padding: 28px;
    --card-gap: 24px;
  }
}


/* ===== franzai: fonts.css ===== */
/*
 * Self-hosted Inter (body) and Inter Tight (headings), latin + latin-ext only (Franz: no font jitter, PSI 98+).
 * - The latin files are preloaded in Shell.astro, so they are ready before first paint.
 * - font-display: optional never swaps a font after the text is painted: zero layout shift from fonts.
 * - The Arial fallbacks carry size-adjust and ascent/descent overrides computed from the real font files
 *   (scripts/tmp-head/font_metrics.py), so even a fallback paint occupies the same box.
 */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.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 Variable";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.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 Tight Variable";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("/fonts/inter-tight-latin-wght-normal.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 Variable";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url("/fonts/inter-tight-latin-ext-wght-normal.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 Fallback";
  src: local("Arial");
  size-adjust: 109.38%;
  ascent-override: 88.57%;
  descent-override: 22.05%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial");
  size-adjust: 98.96%;
  ascent-override: 97.89%;
  descent-override: 24.37%;
  line-gap-override: 0%;
}


/* ===== franzai: base.css ===== */
/*
  Base styles - spec section 12 (p.38-40) and 15 (p.46). Tokens only, no hex.
  Baseline 2021 features; :focus-visible has a :focus fallback.
*/
/* stylelint-disable media-feature-range-notation, plugin/use-baseline -- min-width queries for older browsers; outline and scroll-behavior are Baseline 2018 but missing from the plugin data */

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

/* iOS Safari inflates some text blocks after rotation or in wide blocks (Franz saw bigger type on his iPhone):
   keep the designed sizes. 100% (not none) keeps user zoom working. */
html {
  -webkit-text-size-adjust: 100%; /* stylelint-disable-line property-no-vendor-prefix -- iOS Safari only honours the prefixed property */
  text-size-adjust: 100%;
}

/* An element hidden by script stays hidden, whatever display its component sets. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--lh-body);
  font-weight: var(--weight-regular);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--font-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tracking-h1);
}

h2 {
  font-size: var(--font-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tracking-h2);
}

h3 {
  font-size: var(--font-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tracking-h3);
}

h4 {
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
}

p,
li,
dd {
  max-width: var(--reading-max);
}

ul,
ol {
  padding-left: var(--space-24);
}

small,
figcaption {
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

strong,
b {
  font-weight: var(--weight-bold);
}

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

svg {
  fill: currentcolor;
}

img {
  border-radius: var(--radius-card);
}

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

hr {
  border: 0;
  border-top: 1px solid var(--color-hairline);
  margin: 0;
}

table {
  border-collapse: collapse;
  max-width: 100%;
}

/* Links (Franz): black, underlined, always. No hover effect; keyboard focus keeps its visible ring. */
a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: currentcolor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Small accent text uses the accessible orange. */

/* Sentence case (brief R3: avoid excessive uppercase labels). */
.eyebrow {
  color: var(--color-orange-text);
  font-size: var(--font-eyebrow);
  line-height: var(--lh-eyebrow);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
}

.lead {
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
}

.caption {
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.credit {
  color: var(--color-secondary);
  font-size: var(--font-credit);
  line-height: var(--lh-caption);
}

/* Layout: container, section rhythm, stack */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  --section-pad: var(--section-space);

  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* White page throughout (Franz, 2026-11-11): alternate sections are separated by a hairline, not a background. */
.section--alt {
  background: var(--color-white);
  box-shadow: inset 0 1px 0 var(--color-hairline);
}

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

.stack > :is(h1, h2, h3) + * {
  margin-top: var(--stack-gap-heading, var(--space-16));
}

@media (min-width: 1024px) {
  .section {
    --section-pad: var(--section-space-desktop);
  }
}

/* Accessibility helpers. Standalone text links (not links inside a sentence) get a comfortable 44 px target (brief v2 AC53). */
.link-target {
  display: inline-flex;
  gap: var(--space-8);
  align-items: center;
  min-height: 44px;
}

/* Tick lists (Franz: "just ticks"): a quiet dark check mark per item instead of coloured bullets or side bars. */
.tick-list {
  display: grid;
  gap: var(--space-12);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list > li {
  position: relative;
  padding-left: 28px;
}

.tick-list > li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--color-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.skip-link {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  z-index: 1000;
  min-height: var(--button-height-compact);
  padding: var(--space-12) var(--space-24);
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-button);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

/* Focus ring: :focus fallback for browsers without :focus-visible. */
:focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

@supports selector(:focus-visible) {
  :focus:not(:focus-visible) {
    outline: none;
  }

  :focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
  }
}

main:focus {
  outline: none;
}

/* Reduced motion (spec p.46) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}


/* ===== franzai: shell-header.css ===== */
/*
  Header and menu - spec H01 (p.12). Mobile first, no-JS first:
  without the .js class on <html> the menu is a plain stacked list under the logo row.
  With .js (set by an inline script in the head) it becomes a full-height panel toggled by the menu button.
  Tokens only; Baseline 2021 features.
*/
/* stylelint-disable media-feature-range-notation, plugin/use-baseline -- min-width queries for older browsers; sticky and outline are Baseline 2021 or older but flagged by the plugin data */
:root {
  --header-height: 72px;
  --header-height-compact: 56px;
}

.site-header {
  background: var(--color-white);
  box-shadow: inset 0 -1px 0 var(--color-hairline);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0;
}

.site-header__logo,
.site-header__toggle-slot {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  transition: min-height var(--duration-fast) ease;
}

.site-header__logo {
  margin-right: auto;
}

/* Brief v2: 136 px at 320, 144 px at 360, 152 px from 390, 176 px on desktop. The width never animates; the compact
   state scales the whole SVG with a transform, which stays crisp and does not re-lay out the header (no patchy frames). */
.site-header .site-header__logo .franzai-logo {
  width: 136px;
  transform-origin: left center;
  transition: transform var(--duration-base) ease;
}

.site-header .site-header__logo .franzai-logo-link {
  padding-left: 0;
  padding-right: 0;
}

.site-header__toggle-slot {
  display: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--button-height-compact);
  height: var(--button-height-compact);
  padding: 0;
  margin-right: calc(-1 * var(--space-8));
  background: transparent;
  color: var(--color-ink);
  border: 0;
  border-radius: var(--radius-button);
  cursor: pointer;
}

.menu-button__close,
.menu-button[aria-expanded='true'] .menu-button__open {
  display: none;
}

.menu-button[aria-expanded='true'] .menu-button__close {
  display: block;
}

.site-menu {
  flex-basis: 100%;
  padding-bottom: var(--space-24);
}

.site-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--button-height);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-hairline);
  color: var(--color-ink);
  font-size: var(--font-h3);
  font-weight: var(--weight-bold);
  line-height: var(--lh-h3);
}

.site-menu__link[aria-current='page'] {
  color: var(--color-orange-text);
}

.site-menu__arrow {
  color: var(--color-orange-text);
}

.site-menu__foot {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-24);
}

.site-menu__email {
  display: inline-flex;
  align-items: center;
  min-height: var(--button-height-compact);
  color: var(--color-ink);
  font-size: var(--font-caption);
}

@media (max-width: 1023px) {
  .js .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .js .site-header__toggle-slot {
    display: flex;
  }

  .js .site-menu {
    display: none;
    position: fixed;
    inset: calc(var(--header-height) + 1px) 0 0;
    z-index: 100;
    overflow-y: auto;
    padding: var(--space-8) var(--gutter) var(--space-32);
    background: var(--color-white);
  }

  .js .site-menu.is-open {
    display: block;
  }

  .js.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 360px) {
  .site-header__bar {
    column-gap: var(--space-8);
  }

  .site-header .site-header__logo .franzai-logo {
    width: 144px;
  }
}

@media (min-width: 390px) {
  .site-header .site-header__logo .franzai-logo {
    width: 152px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .site-header__bar {
    flex-wrap: nowrap;
    column-gap: var(--space-24);
  }

  :root {
    --header-height: 80px;
    --header-height-compact: 64px;
  }

  .site-header .site-header__logo .franzai-logo {
    width: 176px;
  }

  .site-header__logo {
    margin-right: var(--space-16);
  }

  .site-menu,
  .site-menu__foot {
    display: contents;
  }

  .site-menu__nav {
    order: 1;
    margin-left: auto;
  }

  .site-menu__email,
  .site-menu__lang,
  .site-menu__arrow,
  .site-menu__item--mobile {
    display: none;
  }

  .site-menu__list {
    display: flex;
    gap: var(--space-8);
  }

  .site-menu__link {
    min-height: var(--button-height-compact);
    padding: var(--space-8) var(--space-8);
    white-space: nowrap;
    border-top: 0;
    font-size: var(--font-body);
    font-weight: var(--weight-regular);
  }

  .site-menu__link[aria-current='page'] {
    color: var(--color-ink);
    font-weight: var(--weight-bold);
    text-decoration: underline;
    text-decoration-color: currentcolor;
    text-decoration-thickness: 3px;
    text-underline-offset: var(--space-8);
  }

}

/* In-page anchors (Franz, 2026-11-12: "lots of whitespace above"): the single offset is the compact header,
   which is the header state after any jump. Sections pull their own top padding back so the heading lands
   24 px under the header (any block that pads its top sets --section-pad). base.css must not add a second scroll-padding. */
html {
  scroll-padding-top: var(--header-height-compact);
}

[id] {
  scroll-margin-top: var(--space-24);
}

.section[id],
.contact-block[id] {
  scroll-margin-top: calc(var(--space-24) - var(--section-pad));
}

/* Compact state (Franz, 2026-11-11): once the page scrolls, the sticky header shrinks from 72 to 56 px
   and the logo from 168/196 to 132/156 px. Touch targets stay 48 px. Reduced motion: base.css removes transitions. */
html.header-compact {
  --header-height: var(--header-height-compact);
}

html.header-compact .site-header .site-header__logo .franzai-logo {
  transform: scale(0.85);
}


/* 1024-1179 px: logo, gaps and link padding tighten so nav, EN/DE and the action fit one line (EN and DE). */
@media (min-width: 1024px) and (max-width: 1179px) {
  .site-header__bar {
    column-gap: var(--space-16);
  }

  .site-menu__list {
    gap: 0;
  }

  .site-menu__link {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}


/* ===== franzai: Logo ===== */
  /* stylelint-disable media-feature-range-notation -- min-width for older-browser support */
  .franzai-logo {
    display: block;
    flex: none;
    width: 152px;
    height: auto;
    aspect-ratio: 4 / 1;
  }

  .franzai-logo-link {
    display: inline-flex;
    align-items: center;
    padding: 6px;
  }

  /* stylelint-disable plugin/use-baseline -- outline is universally supported; the plugin flags it inside :focus-visible rules */

  /* :focus is the fallback for browsers without :focus-visible; the :not() rule drops the ring for mouse clicks where supported. */
  .franzai-logo-link:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
  }

  .franzai-logo-link:focus:not(:focus-visible) {
    outline: none;
  }

  .franzai-logo-link--reverse:focus {
    outline-color: var(--color-white);
  }
  /* stylelint-enable plugin/use-baseline */

  @media (min-width: 1024px) {
    .franzai-logo {
      width: 176px;
    }
  }

/* ===== franzai: Footer ===== */
  /* stylelint-disable media-feature-range-notation, selector-pseudo-class-no-unknown -- min-width queries for older browsers; :global is Astro syntax */
  .site-footer {
    padding: var(--space-48) 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-hairline);
    font-size: var(--font-caption);
    line-height: var(--lh-caption);
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .site-footer__heading {
    margin: 0 0 var(--space-8);
    color: var(--color-secondary);
    font-size: var(--font-eyebrow);
    font-weight: var(--weight-bold);
    line-height: var(--lh-eyebrow);
  }

  .site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Quiet footer: plain links, underline only on hover and focus. 44 px rows (brief v2 AC53). */
  .site-footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-ink);
  }


  .site-footer__base {
    margin-top: var(--space-32);
    padding-top: var(--space-24);
    border-top: 1px solid var(--color-hairline);
  }

  /* Language switch flush with the text column below it. */
  .site-footer__lang .lang-switch__item {
    justify-content: flex-start;
    min-width: 0;
  }

  .site-footer__lang .lang-switch__sep {
    margin: 0 var(--space-8);
  }

  .site-footer__tagline {
    margin: 0;
    color: var(--color-secondary);
  }

  @media (min-width: 768px) {
    .site-footer__grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .site-footer {
      padding: 56px 0;
    }

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

/* ===== franzai: Button ===== */
  /* stylelint-disable media-feature-range-notation -- min-width media queries for older-browser support */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    box-sizing: border-box;
    min-height: var(--button-height-compact);
    padding: var(--space-12) var(--space-24);
    border: 2px solid transparent;
    border-radius: var(--radius-button);
    font-family: inherit;
    font-size: var(--font-body);
    line-height: var(--lh-caption);
    font-weight: var(--weight-bold);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color var(--duration-fast),
      color var(--duration-fast),
      border-color var(--duration-fast);
  }

  /* Full width on narrow phones (brief R3), natural width from 480 px. */
  .btn--primary {
    width: 100%;
    min-height: var(--button-height);
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    font-size: var(--font-label-primary);
    line-height: var(--lh-label-primary);
  }


  /* Quieter than primary: 1px ink outline, no fill. */
  .btn--secondary {
    border-width: 1px;
    background: var(--color-white);
    border-color: var(--color-ink);
    color: var(--color-ink);
  }


  @media (min-width: 480px) {
    .btn--primary {
      width: auto;
    }
  }

  .btn--text {
    padding-left: 0;
    padding-right: 0;
    background: none;
    color: var(--color-ink);
    text-decoration: underline;
    text-decoration-color: currentcolor;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }


  .btn:disabled {
    background: var(--color-surface-alt);
    border-color: var(--color-hairline);
    color: var(--color-secondary);
    text-decoration: none;
    cursor: not-allowed;
  }

  .btn--pending:disabled {
    cursor: progress;
  }

  .btn__spinner {
    flex: none;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-hairline);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: btn-spin 900ms linear infinite;
  }

  @keyframes btn-spin {
    to {
      transform: rotate(360deg);
    }
  }

/* ===== franzai: TrustSection ===== */
  /* stylelint-disable media-feature-range-notation -- min-width media queries for older-browser support */
  .home-trust {
    border-top: 1px solid var(--color-hairline);
  }

  .home-trust__inner {
    display: grid;
    gap: var(--space-32);
  }

  .home-trust__head {
    display: grid;
    gap: var(--space-8);
  }

  .home-trust__head .lead {
    margin: 0;
  }

  .home-trust__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-12);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Cards never share the page colour (Franz): warm surface plus a hairline on the white page. */
  .stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-24) var(--space-16);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-card);
    background: var(--color-surface-alt);
  }

  /* Odd count on the two-column phone grid: the last card takes the full row (also gives 10x-100x its room). */
  .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .stat-card__value {
    white-space: nowrap;
    color: var(--color-orange-text);
    font-family: var(--font-heading);
    font-size: var(--font-h2);
    line-height: var(--lh-h2);
    letter-spacing: var(--tracking-h2);
  }

  .stat-card__label {
    color: var(--color-ink);
  }

  .home-trust__caption {
    max-width: none;
    margin: 0 0 var(--space-24);
    color: var(--color-secondary);
    text-align: center;
  }

  .home-trust__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px var(--space-32);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .home-trust__logo {
    flex: 0 0 auto;
    max-width: 100px;
  }

  @media (min-width: 768px) {
    .home-trust__stats {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--card-gap);
    }

    .stat-card {
      padding: var(--space-32) var(--card-padding);
    }

    .stat-card:last-child:nth-child(odd) {
      grid-column: auto;
    }

    .home-trust__grid {
      gap: var(--space-32) var(--space-48);
    }

    .home-trust__logo {
      max-width: 150px;
    }
  }

/* ===== franzai: Tag ===== */
  .tag {
    display: inline-block;
    padding: var(--space-4) var(--space-12);
    border: 1px solid currentcolor;
    border-radius: var(--radius-button);
    font-size: var(--font-caption);
    line-height: var(--lh-caption);
    font-weight: var(--weight-bold);
    color: var(--color-ink);
    background: var(--color-white);
  }

  .tag--accent {
    color: var(--color-orange-text);
  }

  .tag--success {
    color: var(--color-success);
  }

  .tag--error {
    color: var(--color-error);
  }

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

/* ===== franzai: ProgrammeCard ===== */
  .programme-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    padding: var(--space-24);
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-card);
    background: var(--color-white);
  }

  .programme-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-12);
  }

  .programme-card__title {
    font-size: var(--font-h3);
    line-height: var(--lh-h3);
  }

  .programme-card__outcome,
  .programme-card__duration {
    margin: 0;
  }

  .programme-card__label {
    margin-right: var(--space-8);
    color: var(--color-secondary);
  }

  .programme-card footer {
    margin-top: auto;
  }

/* ===== franzai: ProgrammeIcon ===== */
  /* stylelint-disable selector-pseudo-class-no-unknown -- :global is Astro syntax */
  .programme-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--button-height-compact);
    height: var(--button-height-compact);
    border-radius: var(--radius-card);
    background: var(--color-orange-tint);
    color: var(--color-orange-text);
  }

  .programme-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentcolor;
  }

  /* Line icons only: a global svg fill rule must never turn them into solid shapes. */
  .programme-icon svg * {
    fill: none;
  }

  .programme-icon--lg {
    width: var(--space-64);
    height: var(--space-64);
  }

  .programme-icon--lg svg {
    width: 32px;
    height: 32px;
  }

/* ===== franzai: ApfelSection ===== */
  /* stylelint-disable media-feature-range-notation -- min-width media queries for older-browser support */
  .home-apfel {
    padding: var(--space-24) 0;
  }

  .home-apfel__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-24);
    padding: var(--space-24) var(--space-24) var(--space-32);
    border: 1px solid var(--color-panel-border);
    border-radius: 12px;
    background: var(--color-panel-dark);
    color: var(--color-panel-text);
  }

  .home-apfel__head {
    display: grid;
    gap: var(--space-12);
  }

  .home-apfel__eyebrow,
  .home-apfel__title,
  .home-apfel__tagline,
  .home-apfel__body,
  .home-apfel__date,
  .home-apfel__followed-intro {
    max-width: none;
    margin: 0;
  }

  .home-apfel__eyebrow {
    color: var(--color-panel-orange);
    font-weight: var(--weight-semibold);
  }

  .home-apfel__title {
    color: var(--color-white);
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.04em;
  }

  .home-apfel__title-rest {
    display: block;
  }

  .home-apfel__tagline {
    color: var(--color-white);
    font-size: 18px;
    line-height: 26px;
  }

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

  .home-apfel__copy,
  .home-apfel__proof {
    display: grid;
    gap: var(--space-24);
    align-content: flex-start;
  }

  .home-apfel__body {
    font-size: 18px;
    line-height: 26px;
  }

  .home-apfel__actions {
    display: grid;
    gap: var(--space-12);
  }

  /* The outlined button on the dark panel: white label, grey border (Codex spec). */
  .home-apfel__actions .home-apfel__ghost {
    border-color: var(--color-panel-button-border);
    background: var(--color-panel-dark);
    color: var(--color-white);
  }

  .home-apfel__terminal {
    overflow: hidden;
    border: 1px solid var(--color-panel-surface-border);
    border-radius: 12px;
    background: var(--color-panel-surface);
  }

  .home-apfel__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--space-16);
    border-bottom: 1px solid var(--color-panel-surface-border);
  }

  .home-apfel__dots {
    display: flex;
    gap: 6px;
  }

  .home-apfel__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-panel-dots);
  }

  .home-apfel__bar-title {
    color: var(--color-panel-text);
  }

  .home-apfel__code {
    margin: 0;
    padding: var(--space-16);
    color: var(--color-white);
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    line-height: 28px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  /* The shell prompt is generated content: visible, never copied with the command, not read out. */
  .home-apfel__line::before {
    content: "$ " / "";
    color: var(--color-panel-orange);
  }

  .home-apfel__badge {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8) var(--space-16);
    align-items: center;
    padding: var(--space-16) var(--space-24);
    border: 1px solid var(--color-panel-surface-border);
    border-radius: 12px;
    background: var(--color-panel-surface);
    color: var(--color-white);
    text-decoration: none;
  }

  .home-apfel__badge-icon {
    flex: none;
  }

  .home-apfel__badge strong {
    font-size: 28px;
    line-height: 32px;
  }

  .home-apfel__badge span {
    color: var(--color-panel-text);
  }

  .home-apfel__proof .home-apfel__date {
    margin-top: calc(var(--space-16) * -1);
  }

  .home-apfel__followed {
    display: grid;
    gap: var(--space-16);
    padding-top: var(--space-24);
    border-top: 1px solid var(--color-panel-border);
  }

  .home-apfel__companies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8) var(--space-16);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .home-apfel__companies li {
    display: flex;
    gap: var(--space-12);
    align-items: center;
    max-width: none;
    min-height: 40px;
    color: var(--color-panel-text);
    font-weight: var(--weight-semibold);
  }

  .home-apfel__companies svg {
    flex: none;
  }

  @media (min-width: 768px) {
    .home-apfel__panel {
      gap: var(--space-32);
      padding: var(--space-48);
    }

    .home-apfel__title {
      font-size: 56px;
      line-height: 62px;
    }

    .home-apfel__title-rest {
      display: inline;
    }

    .home-apfel__actions {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-16);
    }

    .home-apfel__companies {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--space-24);
    }

    .home-apfel__code {
      padding: var(--space-24);
      font-size: 18px;
    }
  }

  @media (min-width: 1100px) {
    .home-apfel__panel {
      padding: var(--space-48) var(--space-64) var(--space-64);
    }

    .home-apfel__title {
      font-size: 64px;
      line-height: 70px;
    }

    .home-apfel__tagline {
      font-size: 22px;
      line-height: 32px;
    }

    .home-apfel__main {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: var(--space-64);
    }

    .home-apfel__body {
      font-size: 21px;
      line-height: 32px;
    }

    .home-apfel__badge strong {
      font-size: 40px;
      line-height: 44px;
    }

    .home-apfel__companies {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: var(--space-24) var(--space-24);
    }
  }

/* ===== franzai: HeroSection ===== */
  /* stylelint-disable media-feature-range-notation, selector-pseudo-class-no-unknown -- min-width media queries for older browsers; :global is Astro syntax */
  .home-hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-48);
  }

  .home-hero__title {
    margin: 0;
  }

  .home-hero__subtitle {
    margin: var(--space-8) 0 0;
    color: var(--color-orange-text);
    font-family: var(--font-heading);
    font-size: var(--font-h2);
    line-height: var(--lh-h2);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-h2);
  }

  .home-hero__grid {
    display: grid;
    gap: var(--space-24);
    margin-top: var(--space-24);
  }

  .home-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }

  .home-hero__intro {
    margin: 0;
    max-width: 34rem;
  }

  .home-hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    align-items: stretch;
    width: 100%;
    margin-top: var(--space-24);
  }

  .home-hero__secondary {
    display: inline-flex;
    gap: var(--space-8);
    align-items: center;
    align-self: flex-start;
    min-height: var(--button-height-compact);
    color: var(--color-ink);
    font-weight: var(--weight-bold);
  }


  .home-hero__facts {
    margin: 20px 0 0;
    color: var(--color-secondary);
  }

  .home-hero__photo {
    min-width: 0;
  }

  .home-hero__photo img {
    border-radius: var(--radius-card);
  }

  @media (min-width: 640px) {
    .home-hero__actions {
      flex-flow: row wrap;
      align-items: center;
      width: auto;
      gap: var(--space-24);
    }

    .home-hero__secondary {
      align-self: center;
    }
  }

  @media (min-width: 1024px) {
    .home-hero {
      padding-top: var(--space-32);
      padding-bottom: var(--space-64);
    }

    .home-hero__grid {
      grid-template-columns: 56fr 44fr;
      gap: 40px;
      align-items: center;
      margin-top: var(--space-32);
    }
  }

  @media (min-width: 1440px) {
    .home-hero__grid {
      gap: var(--space-48);
    }
  }

/* ===== franzai: Disclosure ===== */
  /* stylelint-disable plugin/use-baseline, selector-pseudo-class-no-unknown -- the height transition is an enhancement behind @supports (interpolate-size); items simply open instantly elsewhere; :global is Astro syntax */
  .disclosure {
    border-bottom: 1px solid var(--color-hairline);
  }

  .disclosure__summary {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    min-height: var(--button-height-compact);
    padding: var(--space-12) 0;
    font-size: var(--font-body);
    line-height: var(--lh-caption);
    font-weight: var(--weight-bold);
    color: var(--color-ink);
    list-style: none;
    cursor: pointer;
  }

  .disclosure__summary::-webkit-details-marker {
    display: none;
  }

  .disclosure__chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-inline: var(--space-4);
    border-right: 2.5px solid var(--color-orange-text);
    border-bottom: 2.5px solid var(--color-orange-text);
    transform: rotate(-45deg);
  }

  .disclosure[open] > .disclosure__summary > .disclosure__chevron {
    transform: rotate(45deg);
  }

  .disclosure__text--open,
  .disclosure[open] > .disclosure__summary .disclosure__text--closed {
    display: none;
  }

  .disclosure[open] > .disclosure__summary .disclosure__text--open {
    display: inline;
  }

  .disclosure__body {
    padding: 0 0 var(--space-24) calc(10px + var(--space-12) + var(--space-8));
    max-width: var(--reading-max);
  }

  .disclosure__body > :first-child {
    margin-top: 0;
  }

  .disclosure__body > :last-child {
    margin-bottom: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .disclosure__chevron {
      transition: transform var(--duration-base);
    }

    @supports (interpolate-size: allow-keywords) {
      .disclosure {
        interpolate-size: allow-keywords;
      }

      .disclosure::details-content {
        overflow: clip;
        block-size: 0;
        transition: block-size var(--duration-base) ease-in-out, content-visibility var(--duration-base) allow-discrete;
      }

      .disclosure[open]::details-content {
        block-size: auto;
      }
    }
  }

/* ===== franzai: FaqRow ===== */
  /* stylelint-disable selector-pseudo-class-no-unknown -- :global is Astro syntax */
  .faq-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--color-hairline);
  }

  .faq-row__question {
    font-size: var(--font-lead);
    line-height: var(--lh-lead);
  }

  .faq-row__answer > p {
    margin: 0;
  }

/* ===== apfel additions (only where franzai has no pattern; tokens only) ===== */
:root {
  --weight-semibold: 600;
  --font-mono: SFMono-Regular, Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--color-surface-alt);
  font-size: 16px;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
}

/* (2026-11-14) The 8548155 "project line" rules were removed here: the pre-header is now the centered
   .franzai-project sentence defined in design.css (Codex design, option A). */

.apfel-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h2);
  text-decoration: none;
  transform-origin: left center;
  transition: transform var(--duration-base) ease;
}

html.header-compact .apfel-wordmark {
  transform: scale(0.85);
}

.site-menu__gh {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.site-menu__gh svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Section heads: franzai left-aligned head (H2 + lead) */
.section-header {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-32);
}

.section-header > * {
  margin: 0;
}

.section-header p {
  max-width: var(--reading-max);
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
}

.section-header--tight {
  margin-bottom: var(--space-24);
}

/* Terminal syntax colors on the dark apfel panel */
.prompt,
.flag,
.kw {
  color: var(--color-panel-orange);
}

.cmd,
.fn,
.result {
  color: var(--color-white);
}

.str,
.var,
.output,
.tool {
  color: var(--color-panel-text);
}

.comment,
.cm {
  color: var(--color-panel-dots);
}

.home-apfel__terminal code,
.mode-terminal code,
.ol-cmd code,
pre.home-apfel__code code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.home-apfel__terminal .home-apfel__bar-title {
  grid-column: 2;
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.home-apfel__terminal .home-apfel__bar {
  min-height: 44px;
}

/* Line-per-div code blocks: whitespace between the divs must not render as blank lines. */
.home-apfel__terminal div.home-apfel__code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-apfel__terminal pre.home-apfel__code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term-output {
  white-space: pre-wrap;
}

.btn.home-apfel__ghost {
  border-color: var(--color-panel-button-border);
  background: var(--color-panel-dark);
  color: var(--color-white);
}

.hero-install__row code.home-apfel__code {
  display: block;
}

/* Hero */
.home-hero__lead {
  margin-top: var(--space-16);
  max-width: 34rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: var(--space-24) 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags .tag {
  max-width: none;
}

.hero-install__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16);
}

.hero-install__row .home-apfel__code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  font-size: 18px;
}

.copy-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
}


.home-hero__side {
  min-width: 0;
}

.home-hero__side .home-hero__facts:first-of-type {
  margin-top: var(--space-16);
}

.home-hero__facts {
  max-width: none;
}

/* Privacy strip: franzai orange-tint band */
.privacy-strip {
  padding: var(--space-24) 0;
  background: var(--color-orange-tint);
  color: var(--color-ink);
}

.privacy-strip p {
  max-width: none;
  margin: 0;
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
  font-weight: var(--weight-bold);
  text-align: center;
}

/* Typing demo */
#showcase-term .home-apfel__code {
  min-height: 230px;
}

.term-line {
  display: flex;
  align-items: baseline;
  gap: 0 0.6ch;
}

.term-line > span:last-child {
  min-width: 0;
}

.term-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--color-panel-orange);
  vertical-align: text-bottom;
  animation: term-blink 1s steps(2) infinite;
}

.term-output {
  margin-top: var(--space-8);
  color: var(--color-panel-text);
}

@keyframes term-blink {
  to {
    visibility: hidden;
  }
}

/* Stats */
.stats .home-trust__stats {
  grid-template-columns: minmax(0, 1fr);
}

.stat-card__label {
  font-weight: var(--weight-bold);
}

.stat-card__desc {
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.model-spec {
  margin-top: var(--space-48);
  padding: var(--card-padding);
  gap: var(--space-16);
}

.spec-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-8) var(--space-16);
}

.spec-header h3 {
  margin: 0;
}

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

.spec-val {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--font-h3);
  line-height: var(--lh-h3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h3);
}

.spec-key {
  display: block;
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

/* Modes */
.modes-grid,
.demos-grid,
.privacy-grid,
.install-grid,
.eco-grid,
.ol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
}

.programme-icon {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 1;
}

.mode-terminal {
  margin-top: auto;
  padding: var(--space-16);
  border: 1px solid var(--color-panel-surface-border);
  border-radius: 12px;
  background: var(--color-panel-surface);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 28px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mode-terminal .output {
  color: var(--color-panel-text);
}

.mode-terminal br,
div.home-apfel__code br {
  display: block;
  content: "";
  margin-top: var(--space-8);
}

/* MCP, API, How it works: two-column compositions */
.mcp-grid,
.api-grid,
.hiw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-32);
  align-items: start;
}

.mcp-info,
.api-info,
.hiw-text {
  min-width: 0;
}

.mcp-info .dot,
.api-features .check {
  display: none;
}

.mcp-info > .tick-list,
.api-info > .tick-list {
  margin-top: var(--space-24);
}

.mcp-terminal,
.api-code {
  min-width: 0;
}

.hiw-diagram {
  display: grid;
  gap: 0;
  min-width: 0;
}

.layer {
  padding: var(--space-16) var(--space-24);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-surface-alt);
}

.layer.apfel {
  border-color: var(--color-orange);
  background: var(--color-orange-tint);
}

.layer-label {
  display: block;
  color: var(--color-orange-text);
  font-weight: var(--weight-bold);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.hiw-diagram .arrow {
  padding: var(--space-4) 0;
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: 1;
  text-align: center;
}

.hiw-spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.hiw-spec-item {
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
  color: var(--color-secondary);
}

.hiw-spec-item span {
  display: block;
  color: var(--color-orange-text);
  font-family: var(--font-heading);
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
  font-weight: var(--weight-bold);
}

/* Privacy */
.privacy-point > h3,
.privacy-point > p {
  margin: 0;
}

.privacy-quote {
  margin-top: auto;
  padding-left: var(--space-16);
  border-left: 3px solid var(--color-orange);
  color: var(--color-ink);
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
}

/* Demos */
.demo-cmd {
  margin-top: auto;
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-button);
  background: var(--color-surface-alt);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.demo-card > h3,
.demo-card > p,
.mode-card > h3,
.mode-card > p {
  margin: 0;
}

/* One-liners */
.ol-group + .ol-group {
  margin-top: var(--space-48);
}

.ol-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
  font-family: var(--font-heading);
  font-size: var(--font-h3);
  line-height: var(--lh-h3);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h3);
}

.ol-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
  padding: var(--space-24);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.ol-tag {
  margin: 0;
  font-weight: var(--weight-bold);
}

.ol-cmd-wrap {
  position: relative;
}

.ol-cmd {
  padding: var(--space-16) 56px var(--space-16) var(--space-16);
  border: 1px solid var(--color-panel-surface-border);
  border-radius: var(--radius-card);
  background: var(--color-panel-surface);
  color: var(--color-white);
  font-size: 16px;
  line-height: 26px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ol-prompt {
  margin-right: 0.6ch;
}

.ol-copy-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-panel-text);
  cursor: pointer;
}

.ol-copy-icon.copied {
  background: var(--color-panel-border);
  color: var(--color-white);
}

.ol-copy-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
}

.ol-out {
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.ol-arrow {
  color: var(--color-orange-text);
  font-weight: var(--weight-bold);
}

.ol-group-count {
  font-family: var(--font-sans);
}

/* apfel vs fm table */
.vsfm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
}

.vsfm-table {
  width: 100%;
  min-width: 720px;
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.vsfm-table th,
.vsfm-table td {
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--color-hairline);
  text-align: left;
  vertical-align: top;
}

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

.vsfm-table th {
  background: var(--color-surface-alt);
  font-weight: var(--weight-bold);
}

.vsfm-table td:first-child {
  min-width: 160px;
  font-weight: var(--weight-bold);
}

.vsfm-table td.yes {
  color: var(--color-success);
}

.vsfm-table td.no {
  color: var(--color-error);
}

.vsfm-table td code {
  color: inherit;
}

.vsfm-note {
  max-width: var(--reading-max);
  margin-top: var(--space-16);
}

.vsfm-cta {
  margin-top: var(--space-24);
}

/* GitHub popularity */
.pop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--card-gap);
  align-items: start;
}

.pop-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
  padding: var(--card-padding);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-surface-alt);
}

.pop-stats > * {
  margin: 0;
}

.pop-number {
  color: var(--color-orange-text);
  font-family: var(--font-heading);
  font-size: var(--font-h1);
  line-height: var(--lh-h1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h1);
}

.pop-label {
  font-weight: var(--weight-bold);
}

.pop-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-12);
}

.pop-meta-item {
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.pop-meta-item span {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
  font-weight: var(--weight-bold);
}

.pop-stats .btn {
  align-self: flex-start;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.pop-card {
  min-width: 0;
  padding: var(--space-16);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-large);
  background: var(--color-white);
}

.pop-chart-scroll {
  overflow-x: auto;
}

.pop-chart {
  width: 100%;
  min-width: 760px;
  max-width: none;
  height: auto;
}

.pop-date {
  margin-top: var(--space-12);
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

/* Install */
.install-option > h3,
.install-option > .label {
  margin: 0;
}

.install-option .label {
  color: var(--color-secondary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}

.install-option pre {
  margin-top: auto;
  padding: var(--space-16);
  border: 1px solid var(--color-panel-surface-border);
  border-radius: 12px;
  background: var(--color-panel-surface);
  color: var(--color-white);
  font-size: 16px;
  line-height: 28px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.install-cta {
  margin-top: var(--space-32);
}

/* Ecosystem */
.eco-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-ink);
  text-decoration: none;
}

.eco-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  border-bottom: 1px solid var(--color-hairline);
  background: var(--color-surface-alt);
}

.eco-card-body {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--space-12) var(--space-8);
  padding: var(--card-padding);
}

.eco-card-body > h3,
.eco-card-body > p {
  flex: 1 1 100%;
  margin: 0;
}

.eco-card-body > h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--color-hairline);
}

.faq-item .disclosure__summary {
  min-height: var(--button-height);
  font-size: var(--font-lead);
  line-height: var(--lh-lead);
}

.faq-item .disclosure__body > :where(p) {
  margin: 0;
}

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

@media (min-width: 768px) {
  .stats .home-trust__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 1024px) {
  .modes-grid,
  .demos-grid,
  .eco-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .mcp-grid,
  .api-grid,
  .hiw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-48);
  }

}

}
