/*
 * RLQuest -- Landing.
 *
 * **Die Farben kommen aus der App, nicht aus einem Farbschema.** Sie stehen
 * Zeichen fuer Zeichen so in `apps/mobile/src/theme/tokens.ts`. Eine Seite, die
 * anders aussieht als das Produkt dahinter, verspricht etwas, das beim ersten Start
 * nicht eingeloest wird -- und der erste Start ist der Moment, in dem sich
 * entscheidet, ob jemand bleibt.
 *
 * **Keine externe Schrift.** Nicht aus Bequemlichkeit: Eine Schrift von einem
 * fremden Server heisst, dass jeder Besucher seine IP-Adresse dorthin schickt,
 * bevor er irgendetwas angeklickt hat. Bei einer deutschen Firma, deren Produkt
 * damit wirbt, keine Standorte zu speichern, waere das die falsche erste Handlung.
 * Die Systemschrift sieht auf jedem Geraet nach diesem Geraet aus, und das ist
 * hier kein Nachteil.
 *
 * **Keine Emojis.** Dieselbe Regel wie in der App (ADR-010): Alles Bildhafte ist
 * SVG. Ein Emoji sieht auf drei Plattformen unterschiedlich aus und auf einer
 * davon albern.
 */

:root {
  /* Grundflaechen */
  --bg: #0b0f14;
  --surface: #141c25;
  --surface-raised: #1b2530;
  --border: #243140;

  /* Text */
  --text: #e9eff5;
  --muted: #93a6b8;
  --inverted: #0b0f14;

  /* Marke */
  --accent: #ff6b4a;
  --accent-pressed: #e85c3c;

  /* Aus dem Logo gemessen. Das Gelb ist der Buchstabe Q, das Rot der Weg darin --
     und das Rot liegt so dicht am App-Akzent, dass beide nebeneinander bestehen. */
  /* Das Q der Marke. Rot seit dem 26.08.2026 -- vorher gelb, siehe brand.py. */
  --logo-q: #fb5137;
  --logo-road: #fb5137;

  /* Die Seltenheitsleiter der App -- grau, gruen, blau, violett, gold. */
  --common: #8fa3b6;
  --uncommon: #3fbf7f;
  --rare: #4a9eff;
  --epic: #a76bff;
  --legendary: #f5b93b;

  --success: #3fbf7f;

  /* Ein Typenraster, das sich an die App haelt und fuer den Bildschirm groesser
     wird. Grosse Zahlen nur dort, wo eine Aussage sie traegt. */
  --step-0: 16px;
  --step-1: 18px;
  --step-2: 22px;
  --step-3: 28px;
  --step-4: 38px;
  --step-5: clamp(34px, 6vw, 60px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------------------
   Das Wabenband
   ---------------------------------------------------------------------------
   Die Signatur der App: Wer geht, deckt Sechsecke auf. Es ist das eine Bild, das
   RLQuest von jeder anderen Lauf-App unterscheidet -- also traegt es die Seite,
   statt daneben zu stehen.

   Gebaut aus einem einzigen SVG-Muster im Hintergrund, nicht aus hundert
   Elementen: Ein Raster, das beim Scrollen ruckelt, wirkt billiger als gar keins.
   --------------------------------------------------------------------------- */
.hexfield {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z M28 48 L56 64 L56 96 L28 112 L0 96 L0 64 Z' fill='none' stroke='%23243140' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .5;
  /* Nach unten ausblenden: Ein Raster, das an einer Kante abgeschnitten aufhoert,
     sieht nach einem Fehler aus. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Das Band ganz oben
   --------------------------------------------------------------------------- */
.soon {
  position: relative;
  z-index: 60;
  background: var(--accent);
  color: var(--inverted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 24px;
}
.soon strong { text-transform: uppercase; letter-spacing: .09em; }
.soon span { font-weight: 500; opacity: .82; }

/* ---------------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }

/* Die Wortmarke -- seit dem 26.08.2026 eine Datei statt Zeichen plus Text.
   Vorher stand das Q als Bild neben dem Wort "RLQuest" in der Seitenschrift: zweimal
   dieselbe Marke in einer Zeile, in zwei Schriften. Der gelieferte Schriftzug enthaelt
   das Q bereits. */
.wordmark { display: inline-flex; align-items: center; }
.wordmark .mark {
  /* Hoehe fuehrt, Breite folgt. `width`/`height` stehen zusaetzlich im HTML, damit der
     Browser den Platz kennt, bevor die SVG da ist -- sonst springt die Kopfzeile. */
  height: 28px; width: auto; flex: 0 0 auto;
  display: block;
}

.langs { display: flex; align-items: center; gap: 4px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 13px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
}
.lang:hover { background: var(--surface); color: var(--text); }
.lang[aria-current='true'] { background: var(--surface-raised); color: var(--text); }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
header.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); }
header.hero .wrap { position: relative; z-index: 1; max-width: 860px; text-align: center; }

.eyebrow {
  display: inline-block; margin-bottom: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-size: var(--step-5); line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
  text-wrap: balance;
}
.sub {
  margin: 22px auto 0; max-width: 60ch;
  font-size: clamp(17px, 2.1vw, var(--step-2)); color: var(--muted); text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   Die Store-Abzeichen
   ---------------------------------------------------------------------------
   Sie stehen da, aber sie fuehren nirgendwohin -- die App ist noch nicht im Store.
   Ein Abzeichen, das auf eine leere Seite fuehrt, ist schlimmer als eines, das
   sichtbar wartet. Also: gedaempft, nicht anklickbar, mit einem Wort daneben,
   das sagt warum.
   --------------------------------------------------------------------------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; }
.store {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 56px; border-radius: 9px;
  filter: grayscale(1); opacity: .46;
  cursor: default;
}
.store img { display: block; width: auto; height: 56px; }
.store-note {
  width: 100%; margin-top: 4px;
  font-size: 14px; color: var(--muted);
}
.store-note b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Abschnitte
   --------------------------------------------------------------------------- */
section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
section.plain { border-top: 0; }

.lead { max-width: 62ch; }
h2 { font-size: clamp(26px, 3.6vw, var(--step-4)); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h2 + p { margin-top: 16px; color: var(--muted); font-size: var(--step-1); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: 40px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}
.card h3 { font-size: var(--step-1); font-weight: 700; margin-top: 16px; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card .icon { width: 30px; height: 30px; color: var(--accent); }

/*
 * Der Ablauf.
 *
 * Nummeriert, weil es wirklich eine Reihenfolge ist -- morgens die Quests, dann
 * raus, dann die Pruefung, dann die Karte. Wo keine Reihenfolge waere, stuenden
 * hier auch keine Zahlen.
 */
.steps { margin-top: 44px; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--border);
}
.step:first-child { border-top: 0; }
.step .n {
  font-variant-numeric: tabular-nums; font-size: var(--step-2); font-weight: 800;
  color: var(--accent); line-height: 1.25;
}
.step h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
.step p { margin-top: 6px; color: var(--muted); max-width: 58ch; }

/* Die Seltenheitsleiter. Grau, gruen, blau, violett, gold -- dieselbe wie in der
   App, und dieselbe, die Rollenspiele seit zwanzig Jahren benutzen. Genau deshalb
   braucht sie keine Erklaerung. */
.rarity { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
}
.pill i { width: 9px; height: 9px; border-radius: 999px; display: block; }
.pill small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Der Datenschutz-Abschnitt: heller Grund, damit er sich vom Rest abhebt. Er ist
   das Versprechen, an dem sich diese App messen lassen will. */
.promise { background: var(--surface); border-radius: 20px; border: 1px solid var(--border); padding: clamp(28px, 4vw, 44px); }
.promise ul { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.promise li { display: grid; grid-template-columns: 22px 1fr; gap: 13px; align-items: start; color: var(--muted); }
.promise li b { color: var(--text); font-weight: 600; }
.promise .tick { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

.final { text-align: center; }
.final .wrap { max-width: 660px; }
.final .stores { justify-content: center; }

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer .flinks { display: flex; flex-wrap: wrap; gap: 20px; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .stores { gap: 10px; }
  .store, .store img { height: 48px; }
}
