/* ---------- Geist Sans + Geist Mono, self-hosted (see tools/fetch_fonts.py) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-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: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-mono-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;
}

/* ---------- Design tokens (STYLEGUIDE.md § 2 and § 4) ---------- */
:root {
  color-scheme: light dark;

  /* Geist colour scales (sRGB approximations), light mode */
  --ds-background-100: #ffffff;
  --ds-background-200: #fafafa;
  --ds-gray-100: #f2f2f2;
  --ds-gray-200: #ebebeb;
  --ds-gray-500: #c9c9c9;
  --ds-gray-700: #8f8f8f;
  --ds-gray-900: #666666;
  --ds-gray-1000: #171717;
  --ds-gray-alpha-400: rgba(0, 0, 0, 0.08);
  --ds-blue-100: #f0f7ff;
  --ds-blue-400: #c6e1ff;
  --ds-blue-700: #006bff;
  --ds-blue-900: #0067d6;
  --ds-green-900: #297a3a;

  /* Semantic tokens */
  --page: var(--ds-background-200);
  --surface: var(--ds-background-100);
  --surface-soft: var(--ds-background-200);
  --tint: var(--ds-gray-100);
  --tint-hover: var(--ds-gray-200);
  --line: var(--ds-gray-alpha-400);
  --line-strong: var(--ds-gray-500);
  --text: var(--ds-gray-1000);
  --muted: var(--ds-gray-900);
  --subtle: var(--ds-gray-700);
  --accent: var(--ds-gray-1000);
  --primary: var(--ds-gray-1000);
  --primary-hover: #383838;
  --on-primary: var(--ds-background-100);
  --focus: var(--ds-blue-700);
  --link: var(--ds-blue-900);
  --success-text: var(--ds-green-900);
  --info-soft: var(--ds-blue-100);
  --info-line: var(--ds-blue-400);
  --info-text: var(--ds-blue-900);
  --header-bg: rgba(255, 255, 255, 0.85);
  /* The phone frame is hardware, not UI: dark in both modes. */
  --device: #0a0a0a;
  --device-notch: #2e2e2e;

  /* Materials */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-menu: 0 1px 1px rgba(0, 0, 0, 0.02), 0 4px 8px -4px rgba(0, 0, 0, 0.04), 0 16px 24px -8px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 1px 1px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(0, 0, 0, 0.04), 0 24px 32px -8px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-sans: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ds-background-100: #0a0a0a;
    --ds-background-200: #000000;
    --ds-gray-100: #1a1a1a;
    --ds-gray-200: #1f1f1f;
    --ds-gray-500: #454545;
    --ds-gray-700: #8f8f8f;
    --ds-gray-900: #a1a1a1;
    --ds-gray-1000: #ededed;
    --ds-gray-alpha-400: rgba(255, 255, 255, 0.14);
    --ds-blue-100: #0b1a2e;
    --ds-blue-400: #12335f;
    --ds-blue-900: #52a8ff;
    --ds-green-900: #62c073;

    --primary-hover: #cccccc;
    --header-bg: rgba(10, 10, 10, 0.85);
    --device: #1a1a1a;
    --device-notch: #454545;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img { max-width: 100%; }

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

/* Headings break into even lines; paragraphs avoid a lone last word. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Visually hidden, still read aloud. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

::selection { background: var(--info-line); color: var(--text); }

/* Colour, border and shadow ease in 150 ms; nothing jumps or scales. */
a, button { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, button { transition: none; }
}

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  /* Horizontal only: keep `section`'s vertical padding intact so adjacent
     sections keep a gap. */
  padding-inline: 16px;
}
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }

.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skipLink:focus { left: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.headActions { display: inline-flex; align-items: center; gap: 4px; }

.navlink {
  position: relative;
  display: none;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.navlink:hover { color: var(--text); background: var(--tint); }
/* Touch area grows to 44px tall without changing the visible pill. */
.navlink::after { content: ""; position: absolute; inset: -6px 0; }
.langToggle a::after { content: ""; position: absolute; inset: -12px 0; }
.navlink[aria-current="page"] { color: var(--text); background: var(--tint); }
/* Features and FAQ carry the content — keep them reachable from the header as
   soon as there is room; the legal links fit only on wider screens. All four
   are always in the footer. */
.navlink--always { display: inline-flex; padding: 6px 8px; }
@media (min-width: 460px) { .navlink[data-primary] { display: inline-flex; padding: 6px 6px; } }
@media (min-width: 760px) { .navlink { display: inline-flex; padding: 6px 10px; } }

/* Language segmented control — real links, one per language version. */
.langToggle {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.langToggle a {
  position: relative;
  min-width: 44px;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.langToggle a:hover { color: var(--text); }
.langToggle a[aria-current="true"] { background: var(--tint); color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding-block: 64px 32px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
}

/* Section overline: the only upper-case text (Label 12). */
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.hero p.lead {
  margin: 0 0 24px;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--tint);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}
.chip svg { color: var(--success-text); }
/* Premium facts carry the Premium colour, never the "included" green. */
.chip--premium { background: var(--info-soft); color: var(--info-text); box-shadow: inset 0 0 0 1px var(--info-line); }
.chip--premium svg { width: 14px; height: 14px; color: var(--info-text); }

/* Calls to action: one primary (inverted) per area, the rest secondary. */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.playBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
}
.playBadge:hover { background: var(--primary-hover); }
.playBadge strong { display: block; font-size: 1rem; font-weight: 500; line-height: 1.25rem; }
.playBadge svg { width: 18px; height: 18px; }
.ctaGhost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.ctaGhost:hover { background: var(--tint); border-color: var(--line-strong); }
/* Android download next to "App starten": same height as the primary button. */
.ctaGhost--big { gap: 8px; min-height: 48px; padding: 0 20px; font-size: 1rem; }
.ctaGhost--big svg { color: var(--muted); }
.ctaHint { margin: 12px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.25rem; }
.cta--more { margin-top: 8px; }
/* Tertiary: a plain text link with chevron. */
.cta--more .ctaGhost { border-color: transparent; background: transparent; padding-inline: 8px; margin-left: -8px; color: var(--muted); }
.cta--more .ctaGhost:hover { background: var(--tint); color: var(--text); }
.cta--center { justify-content: center; }
.cta--center .ctaGhost { margin-left: 0; }


/* Phone frame */
.heroPhoneWrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(280px, 74vw);
  padding: 8px;
  border-radius: 36px;
  background: var(--device);
  box-shadow: var(--shadow-modal), 0 0 0 1px var(--line);
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--device-notch);
  z-index: 2;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--tint);
}

/* ---------- Section scaffolding ---------- */
section { padding: 48px 0; }
.sectionHead { max-width: 40rem; margin: 0 auto 32px; text-align: center; }
.sectionHead h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.sectionHead p { max-width: 36rem; margin: 0 auto; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* ---------- Carousel ---------- */
.galleryOuter { position: relative; }
.gallery {
  display: flex;
  justify-content: safe center;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  padding: 8px 16px 24px;
  margin: 0 -16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 auto;
  width: min(232px, 62vw);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.slide .phone { width: 100%; padding: 6px; border-radius: 30px; }
.slide .phone::before { top: 12px; width: 8px; height: 8px; }
.slide .phone img { border-radius: 24px; }
.slideCap { margin-top: 12px; }
.slideCap strong { display: block; font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.slideCap > span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }

/* Premium mark in a caption: the blue star the app uses for Premium. */
.proMark { position: relative; display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--info-text); }
.proMark svg { width: 16px; height: 16px; }

.galleryNav {
  position: absolute;
  top: 40%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-menu);
  z-index: 3;
}
.galleryNav:hover { background: var(--tint); }
.galleryNav:disabled { opacity: 0.4; cursor: default; }
.galleryNav:disabled:hover { background: var(--surface); }
.galleryNav.prev { left: -4px; }
.galleryNav.next { right: -4px; }
@media (min-width: 760px) { .galleryNav { display: inline-flex; } }
/* `hidden` must win: no arrows without JS, none for a strip that fits. */
.galleryNav[hidden] { display: none; }

.hint { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 0.8125rem; line-height: 1rem; }
@media (min-width: 760px) { .galleryOuter.hasNav + .hint { display: none; } }
.galleryOuter.fits + .hint { display: none; }
/* Swiping is a touch gesture: a mouse never sees the hint, with or without JS. */
@media (hover: hover) and (pointer: fine) { .hint { display: none; } }

/* ---------- Story sheet (home): ruled rows, heading | text | screen ---------- */
.sheet { border-top: 1px solid var(--line); }
.storyRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.storyRow h3 {
  margin: 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.storyText { max-width: 40rem; }
.storyText p { margin: 0 0 12px; line-height: 1.65; }
.storyText p:last-child { margin-bottom: 0; }
/* Phones: the screen is already in the carousel above, so the row stays text. */
.storyShot { display: none; width: 100%; max-width: min(176px, 50vw); margin: 8px 0 0; justify-self: center; }
.storyShot--keep { display: block; }
.storyShot .phone { width: 100%; padding: 6px; border-radius: 26px; }
.storyShot .phone::before { top: 10px; width: 7px; height: 7px; }
.storyShot .phone img { border-radius: 20px; }

@media (min-width: 700px) {
  .storyRow {
    grid-template-columns: minmax(0, 1fr) 168px;
    grid-template-areas: "head shot" "text shot";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    padding-block: 32px;
  }
  .storyRow h3 { grid-area: head; }
  .storyText { grid-area: text; }
  .storyShot { grid-area: shot; display: block; max-width: 168px; margin: 0; align-self: start; }
}
@media (min-width: 960px) {
  .storyRow {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr) 168px;
    grid-template-areas: "head text shot";
    grid-template-rows: auto;
  }
}


/* ---------- Prose (the long-form copy) ---------- */
.prose { max-width: 46rem; margin: 0 auto; }
.prose.wide { max-width: 62rem; }
.prose h2 {
  margin: 48px 0 12px;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.33;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 32px 0 8px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prose p { margin: 0 0 16px; line-height: 1.65; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; color: var(--text); line-height: 1.65; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--subtle); }
.prose a { color: var(--link); font-weight: 500; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
.prose address { font-style: normal; line-height: 1.65; margin-bottom: 16px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .updated { color: var(--muted); font-size: 0.875rem; }

/* One prose block: copy on the left, its screenshot on the right, both centred
   against each other. A float would pin the text to the top of the image and
   leave a ragged gap underneath — the screenshots are much taller than the two
   paragraphs beside them. */
.proseRow {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 32px;
  align-items: center;
  margin: 48px 0;
}
/* Zero the outer margins so `align-items: center` centres the visible text,
   not the text plus its collapsed heading margin. */
.proseRowText > :first-child { margin-top: 0; }
.proseRowText > :last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .proseRow { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .proseRowText { justify-self: stretch; }
}

.proseShot {
  width: 100%;
  max-width: 190px;
  margin: 0;
}
@media (max-width: 700px) {
  .proseShot { max-width: min(200px, 55vw); }
}
.proseShot .phone { width: 100%; padding: 6px; border-radius: 26px; }
.proseShot .phone::before { top: 10px; width: 7px; height: 7px; }
.proseShot .phone img { border-radius: 20px; }
.proseShot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.8125rem; line-height: 1rem; text-align: center; }

/* ---------- Blog ---------- */
.postList { display: grid; max-width: 46rem; margin: 0 auto; }
.postCard { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.postCard:last-child { border-bottom: 1px solid var(--line); }
.postCardShot .phone { width: 100%; padding: 4px; border-radius: 16px; }
.postCardShot .phone::before { display: none; }
.postCardShot .phone img { border-radius: 12px; }
.postCardText h2, .postCardText h3, .postCardText .postCardTitle { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.03em; font-weight: 600; }
.postCardText h2 a, .postCardText h3 a, .postCardTitle a { color: var(--text); text-decoration: none; }
.postCardText h2 a::after, .postCardText h3 a::after, .postCardTitle a::after { content: ""; position: absolute; inset: 0; }
.postCard:hover :is(h2, h3, .postCardTitle) a { color: var(--link); }
.postCardText p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.postCardText p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .postCard { grid-template-columns: 72px 1fr; gap: 16px; } }
.postMeta { margin: 0 0 6px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.postHead { padding-bottom: 32px; }
.postHead .postMeta { margin-top: 16px; }
.postMeta a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.postMeta a:hover { text-decoration-color: currentColor; }
.authorNote { padding-top: 24px; border-top: 1px solid var(--line); }
.prose.authorNote h2 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -0.02em; }
.prose.authorNote p { color: var(--muted); }
.relatedPosts { padding-top: 48px; }
.article h2 { margin-top: 56px; }
.article table.data { font-size: 0.875rem; }
.proseShot--article { width: min(55vw, 220px); margin: 24px auto 32px; }
.shotRow { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 32px; margin: 24px 0 32px; }
.shotRow .proseShot--article { margin: 0; }
.tip { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--info-line); border-radius: var(--radius-md); background: var(--info-soft); }
.prose .tip p { margin: 0; color: var(--text); }
.tableWrap { overflow-x: auto; margin: 16px 0 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
table.data th, table.data td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data thead th { color: var(--muted); font-size: 0.8125rem; font-weight: 600; border-bottom-color: var(--line-strong); }
table.data td:first-child { font-weight: 500; }

/* ---------- Tables ---------- */
table.facts {
  width: 100%;
  margin: 24px 0 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
table.facts caption { caption-side: bottom; padding-top: 12px; color: var(--muted); font-size: 0.8125rem; text-align: left; }
table.facts th, table.facts td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.facts th[scope="row"] { width: 34%; color: var(--muted); font-weight: 500; }
table.facts tbody tr:last-child th, table.facts tbody tr:last-child td { border-bottom: 0; }
code.hash { word-break: break-all; font-size: 0.8125rem; }
.prose pre { margin: 0 0 16px; padding: 12px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); font-size: 0.8125rem; line-height: 1.5; }
.prose .playBadge, .prose .playBadge strong { color: var(--on-primary); text-decoration: none; }

/* ---------- Pricing: one ruled sheet, Basis | Premium ---------- */
.pricingSheet { max-width: 52rem; margin: 0 auto; }
table.matchSheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.matchSheet th, .matchSheet td { padding: 12px; border-bottom: 1px solid var(--line); }
.matchSheet thead th {
  vertical-align: bottom;
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: left;
  font-weight: 400;
  /* The one ink rule: it separates the plans from the lines below, like the
     head of a match sheet. */
  border-bottom: 1px solid var(--text);
}
.matchSheet .msFeature { padding-left: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.matchSheet .msPlan { width: 28%; }
.msName { display: block; font-weight: 600; letter-spacing: -0.02em; }
.msPrice {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.375rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.msPer { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8125rem; line-height: 1.125rem; font-variant-numeric: tabular-nums; }
.matchSheet tbody th { padding-left: 0; text-align: left; font-weight: 400; }
.matchSheet td { text-align: center; vertical-align: middle; }
/* Blue means Premium: the whole column carries the wash. */
.matchSheet .msPro { background: var(--info-soft); }
.msYes svg { display: inline-block; vertical-align: middle; color: var(--success-text); }
.msNo { color: var(--muted); }
@media (max-width: 559px) {
  table.matchSheet { font-size: 0.875rem; }
  .matchSheet th, .matchSheet td { padding: 10px 8px; }
  .matchSheet .msPlan { width: 24%; }
}

.planActions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.planActions a { flex: 1 1 240px; justify-content: center; }
.planActions strong { font-weight: 500; }
@media (min-width: 560px) { .planActions a { flex: 0 1 auto; } }
.planNotes { max-width: 30rem; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 0.8125rem; line-height: 1.25rem; }
.planNotes p { margin: 0 0 4px; }

/* What happens after the click: a short ordered list under the sheet. */
.steps { max-width: 40rem; margin: 40px auto 0; }
.steps h3 { margin: 0 0 12px; font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.steps li::before { content: counter(step); color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faqList { max-width: 46rem; margin: 0 auto; display: grid; gap: 16px; }
.faqItem {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.faqItem h2, .faqItem h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faqItem p { max-width: 36rem; margin: 0 0 12px; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.faqItem p:last-child { margin-bottom: 0; }
.faqItem a { color: var(--link); font-weight: 500; text-decoration: none; }
.faqItem a:hover { text-decoration: underline; }
/* Collapsible entries (home teaser): the question is the control. */
details.faqItem { padding: 0; }
details.faqItem summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}
details.faqItem summary::-webkit-details-marker { display: none; }
details.faqItem summary h3 { margin: 0; }
details.faqItem summary svg { flex: none; color: var(--muted); transform: rotate(90deg); transition: transform 150ms ease; }
details.faqItem[open] summary svg { transform: rotate(-90deg); }
details.faqItem summary:hover svg { color: var(--text); }
details.faqItem > p { padding-inline: 24px; }
details.faqItem > p:last-child { padding-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { details.faqItem summary svg { transition: none; } }

/* ---------- Callout band ---------- */
.band {
  display: grid;
  gap: 16px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}
@media (min-width: 720px) { .band { padding: 48px; } }
.band h2 { margin: 0; font-size: clamp(1.25rem, 5vw, 1.5rem); line-height: 1.33; font-weight: 600; letter-spacing: -0.04em; }
.band .cta { margin-top: 8px; }
.band p { margin: 0 auto; max-width: 36rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.bandLink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.bandLink:hover { color: var(--text); }
.bandLinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  /* Block only — both elements also carry `.wrap`, and a `padding` shorthand
     here would reset its `padding-inline` (same specificity, later rule). */
  padding-block: 24px 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--subtle); }
.crumbs li:last-child::after { content: ""; }
.crumbs li:last-child { color: var(--text); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- Page head (subpages) ---------- */
.pageHead { padding-block: 16px 8px; }
.pageHead h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.pageHead p.lead {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer.site {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  /* The links are 44px tall touch targets, so the bar needs less padding. */
  padding-top: 12px;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); }
footer .fbrand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
footer .fbrand img { width: 24px; height: 24px; border-radius: var(--radius-sm); }
footer nav { display: inline-flex; flex-wrap: wrap; gap: 0 16px; }

/* ---------- Language gate (/) ---------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.gate .gateInner { display: grid; gap: 16px; justify-items: center; }
.gate img { width: 72px; height: 72px; border-radius: var(--radius-lg); }
.gate h1 { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.04em; }
.gate p { margin: 0; color: var(--muted); }

/* Touch screens: every control at least 44px tall. Last, so it wins over the
   component heights above. */
@media (pointer: coarse) {
  .ctaGhost { min-height: 44px; }
}
