/* ─────────────────────────────────────────────────────────────
   Drives Landingpage — Schriften und Design-Tokens (#2141, Etappe 1)

   Geist und GeistMono liegen self-gehostet in fonts/ — die Seite stellt
   keine Anfrage mehr an Google Fonts (#1691). Die woff2 sind aus den TTFs
   der App erzeugt, damit Web und App exakt dieselben Glyphen zeigen;
   Herkunft und Neuerzeugung stehen in fonts/README.md.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("/fonts/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("/fonts/GeistMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────
   Tokens. Abgeleitet aus dem App-Design-System — Quellen:
   packages/ui/lib/src/app_palette.dart, typography.dart, metrics.dart.
   Wer hier eine Farbe ändert, ändert sie auch für die fünf Unterseiten.
   ───────────────────────────────────────────────────────────── */
:root {
  /* ── Flächen — AppPalette ──────────────────────────────── */
  --bg: #0B1220;        /* AppPalette.bg — tiefster Ton, Basis der Branding-Flächen */
  --map-base: #132135;  /* AppPalette.mapBase — Karten- und Mockup-Untergrund */
  --sheet: #1D2430;     /* AppPalette.sheet */
  --card: #2A313D;      /* AppPalette.card */
  --surface2: #2A3130;  /* AppPalette.surface2 — neue Branding-Flächen */
  --ink: #0B1220;       /* Vordergrund auf hellen Akzentflächen (Buttons) */

  /* ── Text — AppPalette ─────────────────────────────────── */
  --text: #F2F4F3;                              /* textPrimary */
  --text-secondary: rgba(242, 244, 243, 0.64);  /* textSecondary */
  --text-tertiary: rgba(242, 244, 243, 0.44);   /* textTertiary */

  /* ── Akzente ───────────────────────────────────────────── */
  --accent: #18D979;    /* AppPalette.accent — Primärakzent, auch Nightdriver */
  --accent-dark: #12B060;
  --accent-soft: rgba(24, 217, 121, 0.12);
  /* AppPalette.brandMint. Auf der Seite bewusst NICHT als Akzent im Einsatz:
     der Auftritt laeuft durchgehend auf --accent. Das Token steht fuer die
     Produkt-Mockups ab Etappe 3 bereit -- in der App ist der Start-Knopf
     mint, und ein Mockup davon soll nicht gruen gefaelscht werden. */
  --mint: #2DD4A8;
  --amber: #F8C13A;     /* Branding-Akzent, Daydriver */
  --gold: #FFD700;      /* Lifetime */
  --danger: #E84D5B;
  --warning: #F2A43A;   /* Zustandswarnung — bewusst NICHT --amber */
  --warning-soft: rgba(242, 164, 58, 0.15);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.15);
  --success: #18D979;

  /* ── Linien ────────────────────────────────────────────── */
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-glass: rgba(255, 255, 255, 0.05);

  /* ── Radien — AppRadius ────────────────────────────────── */
  --r-card: 18px;
  --r-field: 12px;
  --r-pill: 999px;

  /* ── Typografie — typography.dart ──────────────────────── */
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "GeistMono", ui-monospace, "SF Mono", monospace;
  --track-display: -0.03em;  /* brandDisplayStyle */
  --track-label: 0.1em;      /* brandLabelStyle */

  /* Glasfläche der App: flache 98-%-Füllung plus Hairline, kein Blur.
     In der App gibt es nirgends einen BackdropFilter — der Look darf hier
     nicht auseinanderlaufen. */
  --glass: rgba(29, 36, 48, 0.98);  /* AppPalette.sheetTranslucent */

  /* ── Aliasse für die von v1 belegten Namen ─────────────── */
  --surface: var(--sheet);
  --surface-alt: var(--card);
  --muted: var(--text-secondary);
  --line: var(--hairline);

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(24, 217, 121, 0.06) 0%, transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.04) 0%, transparent 32%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.6rem, var(--container));
  margin-inline: auto;
}

/* ── Topbar ────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: var(--track-display);
  font-size: 1.1rem;
}

/* Geo-D: ein D, dessen Innenform der nach rechts zeigende Apex-Cursor ist.
   Der Cursor entsteht durch fill-rule: evenodd, ist also ausgestanzt und
   nicht uebergelegt -- ohne die Regel laeuft die Flaeche voll. */
.logo-mark {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: var(--r-field);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-dark);
  color: var(--ink);
}

/* ── Sprungmarke ──────────────────────────
   Sichtbar erst bei Tastaturfokus. Ohne sie muss man sich vor jedem Inhalt
   durch die komplette Navigation tabben. */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 60;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-field);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* Fokus wird ueberall sichtbar gemacht -- der Browser-Default verschwindet
   auf dunklem Grund fast vollstaendig. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Menue-Umschalter ─────────────────────
   Nur unterhalb von 720 px sichtbar; das Verhalten haengt an app.js
   ([data-nav-toggle] / [data-nav]). Ohne JS bleibt die Navigation offen im
   Fluss stehen, statt hinter einem toten Knopf zu verschwinden. */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
}

.nav-toggle-icon::before {
  transform: translateY(-6px);
}

.nav-toggle-icon::after {
  transform: translateY(6px);
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

/* ── Hero ──────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}

/* Scheinwerferkegel und Kachelraster. Liegen hinter dem Inhalt und fangen
   keine Klicks ab. */
.hero-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid,
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.72rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.eyebrow-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  letter-spacing: var(--track-display);
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.08;
  max-width: 14ch;
}

h1 .accent {
  color: var(--accent);
}

.hero-copy {
  margin: 1.2rem 0 1.5rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-alt);
}

/* ── Store Badges ─────────────────────── */

.store-badges {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.store-badge:hover {
  opacity: 0.85;
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-text small {
  font-size: 0.68rem;
  font-weight: 500;
}

.store-badge-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Quick Stats ──────────────────────── */

/* Das hidden-Attribut setzt nur den UA-Style display:none — der verliert
   gegen den Klassenselektor mit display:flex. Ohne diese Regel waere die
   leere Liste im Ausgangszustand sichtbar (#2131). */
.quick-stats[hidden] {
  display: none;
}

.quick-stats {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-stats li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

/* ── Sections ─────────────────────────── */

.section {
  padding: 4.2rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(29, 36, 48, 0.5), rgba(29, 36, 48, 0.25));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
}

/* ── Bausteine ────────────────────────────
   Mono-Werte und Mono-Labels. In der App laufen Zahlen, Zeiten und
   Versal-Labels in GeistMono, Fliesstext in Geist -- die Trennung wird hier
   ueber diese zwei Klassen gehalten statt ueber Einzelregeln. */

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}

.accent {
  color: var(--accent);
}

/* Alte Sprungmarken, deren Sektion in einer anderen aufgegangen ist. Das
   scroll-margin haelt die Ueberschrift unter der klebenden Topbar frei --
   ohne das landet der Sprung hinter der Leiste. */
.anchor-alias {
  display: block;
  height: 0;
}

[id] {
  scroll-margin-top: 88px;
}

.section-lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 62ch;
}

.section-note {
  margin: 1.1rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.84rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  /* Oben ausrichten, nicht mittig: das Geraet ist gut doppelt so hoch wie die
     Liste, zentriert riss das eine grosse Luecke unter den Einleitungstext. */
  align-items: start;
  margin-top: 2.4rem;
}

/* ── Nummerierte Liste ────────────────────
   Traegt die Rolle der frueheren Drei-Schritt-Sektion mit. */

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

.numbered-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.numbered-list li:first-child {
  border-top: 1px solid var(--line);
}

.numbered-list-index {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: var(--track-label);
  padding-top: 0.35rem;
}

.numbered-list h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.numbered-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 52ch;
}

/* ── Geraetemodell ────────────────────────
   Zeigt die App, nicht die Zahlen: alle Werte darin sind Beispieldaten und
   stehen deshalb auch im Markup als solche gekennzeichnet. */

.device {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 640;
  margin-inline: auto;
  padding: 9px;
  border-radius: 42px;
  background: #000;
  box-shadow:
    0 30px 60px -18px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(24, 217, 121, 0.16);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--map-base);
}

.device-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.device-trace {
  filter: drop-shadow(0 0 6px rgba(24, 217, 121, 0.42));
}

.device-status {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.device-status .mono {
  font-size: 0.6rem;
  opacity: 0.7;
}

.device-pin {
  position: absolute;
  left: 55%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(24, 217, 121, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.live-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  padding: 0.9rem 1rem;
  border-radius: var(--r-card);
  background: var(--glass);
  border: 1px solid var(--hairline-glass);
}

.live-sheet-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.live-stats,
.report-stats {
  display: grid;
  margin: 0;
}

.live-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

/* Messwerte laufen in Geist mit Tabellenziffern, nicht in GeistMono. Die
   Mono-Schrift ist dicktengleich, das Komma bekommt also eine volle
   Ziffernbreite und "3,2" liest sich als "3 , 2". GeistMono bleibt den
   Labels, der Statusleiste und den HUD-Chips vorbehalten -- dort stehen
   keine Dezimaltrenner. Entspricht auch brandStatStyle in der App. */
.live-stats dd,
.report-stats dd {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.live-stats dd span,
.report-stats dd span {
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 0.2rem;
}

/* ── Drive-Report im Geraet ───────────────*/

.device--report {
  aspect-ratio: 320 / 660;
}

.device-screen--report {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 2.9rem 1.1rem 1.1rem;
  color: var(--text);
}

.report-kicker {
  margin: 0 0 0.25rem;
}

.report-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: var(--track-display);
}

.report-chart {
  /* Waechst in die Resthoehe des Geraets. Fest gesetzt blieb darunter je nach
     Breite ein grosses leeres Feld stehen. */
  flex: 1 1 auto;
  min-height: 92px;
  border-radius: var(--r-field);
  background: var(--map-base);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.report-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.report-stats {
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.report-stats > div,
.report-gforce {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.report-stats dd {
  font-size: 1.05rem;
}

.report-gforce-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}

.report-gforce svg {
  width: 100%;
  height: 62px;
  display: block;
}

/* ── Explorer ─────────────────────────────
   Die Kacheln werden von app.js erzeugt und beim Scrollen gefuellt. Ohne JS
   bleibt die Karte leer -- deshalb traegt die Sektion ihre Aussage im Text
   und nicht in der Grafik. */

.explorer-map {
  position: relative;
  margin-top: 2.4rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--map-base);
}

.explorer-canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* HUD und Legende beschreiben die Kacheln, die app.js zeichnet. Ohne Skript
   gibt es keine Kacheln -- dann stuenden hier "0 Kacheln, 0 %" neben einer
   leeren Karte, was nach Defekt aussieht statt nach Illustration. */
.explorer-hud,
.explorer-legend {
  display: none;
}

.js .explorer-hud,
.js .explorer-legend {
  position: absolute;
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.explorer-hud {
  top: 1rem;
  left: 1rem;
}

.explorer-legend {
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.hud-chip,
.explorer-legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--hairline-glass);
}

.hud-chip .mono {
  font-size: 0.86rem;
  font-weight: 600;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-swatch--fresh {
  background: var(--accent);
}

.legend-swatch--claimed {
  background: rgba(24, 217, 121, 0.32);
}

.legend-swatch--empty {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Erfolge ──────────────────────────────*/

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
}

.badge-card {
  padding: 1.4rem;
  border-radius: var(--r-card);
  background: var(--sheet);
  border: 1px solid var(--line);
}

.badge-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.badge-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.badge-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.badge-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 2px solid rgba(24, 217, 121, 0.55);
  color: var(--accent);
  font-weight: 700;
}

.badge-icon svg {
  width: 22px;
  height: 22px;
}

.badge-card--hidden .badge-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-tertiary);
}

.badge-card--hidden h3 {
  color: var(--muted);
}

/* ── Pricing ──────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pricing-card--highlighted {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pricing-card--highlighted:hover {
  box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.pricing-badge--neutral {
  background: var(--surface-alt);
  color: var(--muted);
}

.pricing-badge--info {
  background: var(--info-soft);
  color: var(--info);
}

.pricing-badge--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.pricing-name {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.pricing-price {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.pricing-price .suffix {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 1rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features .excluded {
  color: var(--muted);
  opacity: 0.5;
}

.pricing-yearly {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ── Lifetime Founder ─────────────────── */

.founder-card {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.6rem;
  background: var(--surface);
  border: 2px solid var(--warning);
  box-shadow: 0 0 0 3px var(--warning-soft);
  border-radius: 16px;
  padding: 1.6rem;
}

.founder-card h3 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.founder-lead {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 52ch;
}

.founder-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.founder-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.founder-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.founder-meta {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem;
  align-self: start;
}

.founder-figure {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.founder-figure span {
  display: block;
  font-family: var(--font);
  font-variant-numeric: normal;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.founder-deadline {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.founder-hint {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Footer ───────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 2.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0.6rem 0 0;
  max-width: 32ch;
}

.footer-links h4 {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ── Subpages ─────────────────────────── */

.subpage-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.subpage-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: none;
  margin-bottom: 0.5rem;
}

.subpage-content .subtitle {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.92rem;
}

.subpage-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

.subpage-content p,
.subpage-content li {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

.subpage-content ul {
  padding-left: 1.2rem;
}

.subpage-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subpage-content a:hover {
  color: var(--accent-dark);
}

.warning-box {
  background: var(--warning-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 12px;
  padding: 1rem;
  color: var(--warning);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1.5rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* ── FAQ ──────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item .faq-answer {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ── Bewegung ─────────────────────────────
   Der Startzustand des Reveals wird von app.js gesetzt (.reveal-pending),
   nicht hier: stuende er im CSS, blieben die Sektionen ohne JS dauerhaft
   unsichtbar. Ohne Skript passiert schlicht nichts. */

.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}

.is-revealed,
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-pending,
  .is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

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

/* ── Responsive ───────────────────────── */

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Das Geraet wandert unter den Text und bleibt zentriert. */
  .split .device {
    order: -1;
  }

  .pricing-card--highlighted {
    order: -1;
  }

  .founder-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hero {
    padding-top: 4.3rem;
  }

  .hero-card {
    margin-top: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  /* Die Navigation klappt jetzt hinter den Umschalter, statt in zwei Reihen
     umzubrechen. Sichtbar wird sie ueber .is-open, das app.js setzt --
     deshalb liegt der Umschalter selbst hinter der JS-Pruefung: ohne Skript
     bleibt er versteckt und die Links stehen offen im Fluss. */
  .js .nav-toggle {
    display: inline-flex;
  }

  /* Die erste Zeile behält ihre 72 px, auch wenn das Menü als zweite
     Zeile dazukommt; sonst rutschen Logo und Schließen-Knopf nach oben. */
  .topbar-inner {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0 0.6rem;
  }

  .topbar-inner > .logo {
    min-height: 72px;
  }

  /* Nur mit JS wird eingeklappt. Ohne Skript bleibt die Navigation als
     offene Liste stehen -- unschoener, aber vollstaendig bedienbar. */
  .js .nav {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.4rem 0 0.9rem;
    border-top: 1px solid var(--line);
    font-size: 1rem;
  }

  .js .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Hintergrund festhalten, solange das Menue offen ist -- sonst scrollt
     die Seite unter dem Menue weg. */
  body.nav-open {
    overflow: hidden;
  }

  .section {
    padding: 3.4rem 0;
  }

  .quick-stats li {
    width: 100%;
  }

  /* HUD und Legende verlassen die Karte und stellen sich darunter, sobald
     die Flaeche zu schmal wird -- schwebend ueberdeckten sie sonst die
     Kacheln, die sie erklaeren. */
  .js .explorer-hud,
  .js .explorer-legend {
    position: static;
    margin: 0.6rem;
  }

  .explorer-legend {
    font-size: 0.6rem;
  }

  .numbered-list li {
    grid-template-columns: 2rem 1fr;
    gap: 0.8rem;
  }
}
