/* ============================================
   CATCHY — getcatchy.app
   Dark Theme Landing Page
   ============================================ */

/* --- Font Faces (self-hosted Inter) --- */
/* Download Inter WOFF2 files to /fonts/ directory:
   https://github.com/rsms/inter/releases
   Required: Regular(400), Medium(500), Bold(700), ExtraBold(800) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* --- CSS Variables --- */
:root {
  --bg: #0A0E14;
  --surface: #141B24;
  --surface-2: #1E2A38;
  --surface-3: #243040;
  --primary: #00D4AA;
  --primary-dim: #00A688;
  --primary-glow: rgba(0, 212, 170, 0.15);
  --primary-glow-strong: rgba(0, 212, 170, 0.30);
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-subtle: rgba(255, 255, 255, 0.35);
  --score-red: #FF4444;
  --score-yellow: #FFD700;
  --score-green: #00D4AA;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.25rem;
  --text-hero: clamp(2rem, 5vw, 3rem);
  --container: 1200px;
  --gap: 2rem;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-3);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 1.75rem 0;
  position: relative;
}

/* --- Section Backgrounds --- */
.section-mesh {
  position: relative;
}
.section-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0, 212, 170, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(0, 212, 170, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--primary);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  color: var(--text-subtle);
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  opacity: 1;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-link-text {
  font-size: var(--text-sm);
  font-weight: 500;
  order: -1;
}

.nav-link {
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
}

@media (max-width: 479px) {
  .nav-link-text {
    display: none;
  }
  .nav-link {
    padding: 0.4rem;
  }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--border-light);
  color: var(--text);
  opacity: 1;
}

/* 3-way language pill switcher (EN | DE | FR) — nav */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.lang-switcher .lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.32rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-family: inherit;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.lang-switcher .lang-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switcher .lang-pill.active {
  color: var(--bg);
  background: var(--primary);
}

.lang-switcher .lang-pill.active:hover {
  background: var(--primary);
  color: var(--bg);
}

.lang-switcher .lang-pill:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-pill);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow-strong);
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 212, 170, 0.3);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--primary-glow);
  border-color: rgba(0, 212, 170, 0.5);
  opacity: 1;
}

/* --- Hero --- */
.hero {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-cta .btn-primary {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
}

.hero-cta-sub {
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem 0.5rem 0.75rem;
  background: #000;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  height: 48px;
  transition: border-color 0.2s, transform 0.2s;
}

.store-btn:hover {
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
  opacity: 1;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

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

.store-btn-text small {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
}

.store-btn-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.store-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.ios-soon {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-style: italic;
  display: block;
  margin-top: 0.2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* --- Score Ring --- */
.score-ring-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 18px rgba(0, 212, 170, 0.5)) drop-shadow(0 0 40px rgba(0, 212, 170, 0.25));
}

.score-ring-track {
  fill: none;
  stroke: #0D2420;
  stroke-width: 10;
}

.score-ring-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring-progress.animated {
  stroke-dashoffset: 50.89;
}

.score-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.score-moon {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.score-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- App Showcase Section --- */
.app-showcase {
  padding: 1rem 0 3rem;
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.showcase-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1rem 0;
}

.showcase-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.showcase-image::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 50%;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.showcase-image img {
  max-width: 220px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-image:hover img {
  transform: scale(1.03);
}

.showcase-text {
  background: linear-gradient(145deg, rgba(20, 27, 36, 0.7) 0%, rgba(20, 27, 36, 0.4) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.showcase-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
  pointer-events: none;
}

.showcase-text::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.showcase-text > * {
  position: relative;
  z-index: 1;
}

.showcase-text .section-label {
  margin-bottom: 0.75rem;
}

.showcase-text h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.showcase-text h2 .accent {
  color: var(--primary);
}

.showcase-text > p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
}

.showcase-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 50%;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step-card {
  background: rgba(20, 27, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* --- Features --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
}

.feature-block + .feature-block {
  border-top: 1px solid var(--border);
}

.feature-content {
  order: 2;
}

.feature-visual {
  order: 1;
}

.feature-content h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.feature-content h3 .quote {
  color: var(--primary);
  font-style: italic;
}

.feature-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-accent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--primary-glow);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 166, 136, 0.2));
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Phone Mockup --- */
.phone-mockup {
  width: 260px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 32px;
  border: 3px solid var(--surface-3);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: var(--surface-3);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
}

.phone-screen-label {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  font-weight: 500;
  text-align: center;
}

.phone-screen-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* Feature mockup content styles */
.mockup-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mockup-score-ring {
  width: 80px;
  height: 80px;
}

.mockup-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.mockup-score-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Pressure chart mockup */
.mockup-chart {
  width: 100%;
  padding: 1rem;
}

.mockup-chart svg {
  width: 100%;
  height: auto;
}

/* Forecast table mockup */
.mockup-forecast {
  width: 100%;
  font-size: 0.625rem;
}

.mockup-forecast-row {
  display: grid;
  grid-template-columns: 2.5rem 2rem 2.5rem 2rem 1fr;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mockup-forecast-row.highlight {
  background: rgba(0, 212, 170, 0.1);
  border-left: 2px solid var(--primary);
}

.mockup-forecast-row span {
  color: var(--text-muted);
}

.mockup-forecast-row .score {
  color: var(--primary);
  font-weight: 700;
}

/* Map mockup */
.mockup-map {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 50%, #0D1B2A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.mockup-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 40%, rgba(0, 100, 180, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 65% 60%, rgba(0, 100, 180, 0.1) 0%, transparent 40%);
}

.mockup-map-pin {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary), 0 0 24px rgba(0, 212, 170, 0.3);
  position: relative;
  z-index: 1;
}

/* Offline mockup */
.mockup-offline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.mockup-offline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Community Counter --- */
.community {
  text-align: center;
}

.community-card {
  background: rgba(20, 27, 36, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.community-count {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
}

.community-label {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: 0.25rem;
}

.community-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(20, 27, 36, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card.pro {
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.08), inset 0 1px 0 rgba(0, 212, 170, 0.15);
}

.pricing-popular {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  padding: 0.35rem 1rem;
  background: var(--primary);
  color: var(--bg);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing-tier {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.pricing-card.pro .pricing-tier {
  color: var(--primary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.4;
}

.pricing-feature .check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.pricing-card.pro .pricing-feature {
  color: var(--text);
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.5rem;
}

.pricing-price {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-price span {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-alt {
  font-size: var(--text-base);
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.75rem;
}

.pricing-trial {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.65rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: var(--text-sm);
  color: var(--text-subtle);
  font-style: italic;
}

/* --- Screenshots --- */
.screenshots-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1rem 0 0;
  justify-items: center;
  max-width: 480px;
  margin: 0 auto;
}

.screenshots-strip--inline {
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
}

.screenshots-strip--inline .phone-mockup {
  max-width: 160px;
}

.screenshots-strip .phone-mockup {
  width: 100%;
  max-width: 160px;
  border-radius: 22px;
  border-width: 2px;
  padding: 8px;
}

.screenshots-strip .phone-mockup::before {
  width: 50px;
  height: 16px;
  top: 8px;
  border-radius: 0 0 10px 10px;
}

.screenshots-strip .phone-mockup .phone-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 14px;
  overflow: hidden;
}

.screenshots-strip .phone-mockup .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Privacy Hero Box (on /privacy/) --- */
.privacy-hero {
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.08), rgba(20, 27, 36, 0.5));
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.privacy-hero p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  font-size: var(--text-base);
}

/* --- Trust Strip (privacy callout on home) --- */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.trust-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(145deg, rgba(20, 27, 36, 0.7), rgba(20, 27, 36, 0.35));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
  pointer-events: none;
}

.trust-item::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.trust-item:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-2px);
}

.trust-item > * {
  position: relative;
  z-index: 1;
}

.trust-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 166, 136, 0.1));
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 14px;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.12);
}

.trust-item-text strong {
  display: block;
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.trust-item-text span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* --- FAQ (Collapsible) --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(20, 27, 36, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.faq-item[open] {
  border-color: rgba(0, 212, 170, 0.25);
  background: rgba(20, 27, 36, 0.7);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

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

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

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) center/12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 12px no-repeat;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center/12px 2px no-repeat;
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: var(--text-sm);
  animation: faqFadeIn 0.3s ease;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-cta {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.06), rgba(20, 27, 36, 0.4));
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius);
}

.faq-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: var(--text-sm);
}

.faq-cta .btn-secondary {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  position: relative;
}

.final-cta .btn-primary {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
  position: relative;
}

.final-cta-sub {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--text-subtle);
  position: relative;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

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

.footer-brand .nav-logo {
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

/* --- Legal Pages (Privacy, Impressum) --- */
.legal-page {
  padding-top: 100px;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-header .updated {
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--primary);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-content ul li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1rem;
}

.legal-content ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.legal-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
  table-layout: fixed;
}

.legal-content thead tr {
  background: var(--surface-2);
}

.legal-content th {
  text-align: left;
  padding: 0.95rem 1.25rem;
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
}

.legal-content th:first-child {
  width: 40%;
}

.legal-content td {
  text-align: left;
  padding: 0.9rem 1.25rem;
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-content td:first-child {
  color: var(--text);
  font-weight: 500;
}

.legal-content tbody tr:last-child td {
  border-bottom: none;
}

.legal-content tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.legal-content table + p {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .legal-content table {
    display: block;
    overflow-x: auto;
    font-size: 0.875rem;
  }
  .legal-content th,
  .legal-content td {
    padding: 0.7rem 0.9rem;
  }
  .legal-content th:first-child {
    width: auto;
  }
}

.legal-content h4 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

/* Language toggle for privacy page */
.lang-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.lang-tab {
  padding: 0.6rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-tab.active {
  background: var(--primary);
  color: var(--bg);
}

.lang-tab:not(.active):hover {
  background: var(--surface-2);
  color: var(--text);
}

.lang-section {
  display: none;
}

.lang-section.active {
  display: block;
}

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }

/* --- Play Store Toast --- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
  width: calc(100vw - 2rem);
  max-width: 360px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Mobile nav fix --- */
@media (max-width: 479px) {
  .nav { padding: 0 0.75rem; }
  .nav-inner { height: 56px; }
  .nav-logo { font-size: var(--text-sm); gap: 0.3rem; }
  .nav-logo img { width: 24px; height: 24px; }
  .nav-right { gap: 0.4rem; }
  .nav-icon { width: 16px; height: 16px; }
  .lang-toggle { padding: 0.3rem 0.5rem; font-size: var(--text-xs); }
  .lang-toggle span { display: none; }
  .lang-switcher { padding: 1px; }
  .lang-switcher .lang-pill { min-width: 26px; padding: 0.22rem 0.45rem; font-size: 0.68rem; }
  .nav-right .btn-primary { padding: 0.45rem 0.85rem; font-size: var(--text-xs); }
}

/* --- Small phones (480px+) --- */
@media (min-width: 480px) {
  .score-ring-container {
    width: 260px;
    height: 260px;
  }

  .score-number {
    font-size: 3.5rem;
  }

  .phone-mockup {
    width: 280px;
  }
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  section {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .feature-block {
    padding: 2.5rem 0;
    gap: 3rem;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 3rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .showcase-grid {
    grid-template-columns: 0.7fr 1fr;
    gap: 3rem;
  }

  .showcase-image img {
    max-width: 260px;
  }

  .showcase-text {
    padding: 2.5rem 2.25rem;
  }

  .showcase-text h2 {
    font-size: var(--text-3xl);
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-block .feature-content {
    order: 1;
  }

  .feature-block .feature-visual {
    order: 2;
  }

  .feature-block.reversed .feature-content {
    order: 2;
  }

  .feature-block.reversed .feature-visual {
    order: 1;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 3.5vw, 3rem);
  }

  .score-ring-container {
    width: 300px;
    height: 300px;
  }

  .score-number {
    font-size: 3.5rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
  }

  .phone-mockup {
    width: 300px;
  }

  .screenshots-strip {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
    gap: 1.5rem;
  }

  .screenshots-strip .phone-mockup {
    max-width: 180px;
  }

  .screenshots-strip--inline {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 1rem;
  }

  .screenshots-strip--inline .phone-mockup {
    max-width: 180px;
  }
}

/* --- Wide (1280px+) --- */
@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* --- Print --- */
@media print {
  .nav, .toast {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    padding: 2rem 0;
  }
}

/* Inline SVG icon for headings */
.inline-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  display: inline-block;
  color: var(--accent, #00D4AA);
  margin-right: 0.15em;
}

/* SPOT pill — matches the in-app home-screen pill */
.spot-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.15em 0.6em;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(0, 212, 170, 0.12);
  color: var(--accent, #00D4AA);
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 999px;
  vertical-align: 0.05em;
  white-space: nowrap;
}
.spot-pill svg {
  width: 1em;
  height: 1em;
}

/* ============================================
   v1.2.49 additions — 4-tier learning, achievements, sessions
   ============================================ */

/* --- LakeTierStack: stacked tier cards (outer→inner = general→personal) --- */
.tier-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.5rem 0;
  max-width: 520px;
}
.tier-stack .tier-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.tier-stack .tier-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--tier-tint, transparent) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}
.tier-stack .tier-row > * { position: relative; z-index: 1; }
.tier-stack .tier-row.basis     { --tier-tint: rgba(255,255,255,0.04); }
.tier-stack .tier-row.global    { --tier-tint: rgba(61,159,212,0.18); border-color: rgba(91,181,226,0.25); }
.tier-stack .tier-row.water     { --tier-tint: rgba(0,212,170,0.18); border-color: rgba(0,212,170,0.30); }
.tier-stack .tier-row.spot      { --tier-tint: rgba(95,232,155,0.20); border-color: rgba(136,242,181,0.35); box-shadow: 0 0 0 1px rgba(95,232,155,0.10), 0 8px 24px rgba(0,212,170,0.10); }
.tier-stack .tier-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.tier-stack .tier-row.global .tier-icon { color: #5BB5E2; border-color: rgba(91,181,226,0.30); }
.tier-stack .tier-row.water  .tier-icon { color: #2FE0BA; border-color: rgba(47,224,186,0.30); }
.tier-stack .tier-row.spot   .tier-icon { color: #88F2B5; border-color: rgba(136,242,181,0.40); }
.tier-stack .tier-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.tier-stack .tier-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.tier-stack .tier-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tier-stack .tier-status.always   { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); }
.tier-stack .tier-status.active   { background: rgba(0,212,170,0.15); color: var(--primary); border-color: rgba(0,212,170,0.35); }
.tier-stack .tier-status.pending  { background: rgba(255,255,255,0.03); color: var(--text-subtle); }
.tier-stack .tier-arrow {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0.25rem 0 0;
}

/* --- LERN-Anker pill (matches the in-app pill) --- */
.learn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  vertical-align: middle;
}
.learn-pill .learn-pill-ico {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,170,0.15);
  color: var(--primary);
  flex-shrink: 0;
}
.learn-pill.basis  .learn-pill-ico { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.learn-pill.global .learn-pill-ico { background: rgba(91,181,226,0.18); color: #5BB5E2; }
.learn-pill.water  .learn-pill-ico { background: rgba(0,212,170,0.18); color: #2FE0BA; }
.learn-pill.spot   .learn-pill-ico { background: rgba(95,232,155,0.20); color: #88F2B5; }
.learn-pill svg { width: 14px; height: 14px; max-width: 14px; max-height: 14px; flex-shrink: 0; }
.learn-pill .learn-pill-ico { flex-shrink: 0; overflow: hidden; }

/* --- Achievement pills (Strava-style PR badges) --- */
.ach-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.ach-pill-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.ach-pill-card .ach-pill-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ach-pill-card .ach-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0,212,170,0.12);
  color: var(--primary);
}
.ach-pill-card .ach-ico svg { width: 14px; height: 14px; max-width: 14px; max-height: 14px; flex-shrink: 0; }
.ach-pill-card .ach-ico { flex-shrink: 0; overflow: hidden; }
.ach-pill-card.gold  .ach-ico { background: rgba(255,215,0,0.15); color: #FFD700; }
.ach-pill-card.gold  .ach-pill-head { color: #FFD700; }
.ach-pill-card.flame .ach-ico { background: rgba(255,179,71,0.15); color: rgba(255,179,71,0.95); }
.ach-pill-card.flame .ach-pill-head { color: rgba(255,179,71,0.95); }
.ach-pill-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.ach-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.ach-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,212,170,0.10);
  border: 1px solid rgba(0,212,170,0.30);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ach-inline.gold  { background: rgba(255,215,0,0.10); border-color: rgba(255,215,0,0.35); color: #FFD700; }
.ach-inline.flame { background: rgba(255,179,71,0.10); border-color: rgba(255,179,71,0.35); color: rgba(255,179,71,0.95); }
.ach-inline svg { width: 12px; height: 12px; }

/* --- Last Session compact card preview --- */
.session-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  max-width: 520px;
  margin: 1.5rem 0;
}
.session-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.session-preview-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.session-preview-spot {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.session-preview-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.session-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.session-stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.5rem;
  text-align: center;
}
.session-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.session-stat span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 0.15rem;
}

/* --- KPI strip (Score-Treffer etc) --- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.kpi-card {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.kpi-card-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.kpi-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 0.2rem;
}
.kpi-card-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* --- Calibration bucket bars (5 score buckets) --- */
.bucket-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1.5rem 0;
}
.bucket-bar {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  gap: 0.75rem;
  align-items: center;
}
.bucket-bar-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bucket-bar-track {
  height: 14px;
  background: var(--surface-2);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.bucket-bar-fill {
  height: 100%;
  border-radius: 7px;
}
.bucket-bar-pct {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* --- Logbook tab grid --- */
.logbook-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .logbook-tabs { grid-template-columns: repeat(2, 1fr); }
}
.logbook-tab {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.logbook-tab h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.logbook-tab .tab-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0,212,170,0.12);
  color: var(--primary);
}
.logbook-tab .tab-ico svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; flex-shrink: 0; }
.logbook-tab .tab-ico { flex-shrink: 0; overflow: hidden; }
.logbook-tab p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* --- Sticky TOC for sub-pages --- */
.docs-sub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 1rem 2rem;
}
@media (min-width: 1000px) {
  .docs-sub-layout { grid-template-columns: 220px 1fr; gap: 3rem; }
}
.docs-toc {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: var(--text-sm);
}
.docs-toc h5 {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.6rem;
}
.docs-toc ol { list-style: none; padding: 0; margin: 0; }
.docs-toc li { padding: 0.3rem 0; }
.docs-toc a { color: var(--text-muted); }
.docs-toc a:hover { color: var(--primary); }
.docs-sub-body h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.docs-sub-body > p.lead {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
}
.docs-sub-body h2 {
  font-size: var(--text-xl);
  margin: 2.25rem 0 0.5rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}
.docs-sub-body h3 {
  font-size: var(--text-lg);
  margin: 1.5rem 0 0.4rem;
  color: var(--primary);
}
.docs-sub-body p, .docs-sub-body li {
  color: var(--text-muted);
  line-height: 1.7;
}
.docs-sub-body strong { color: var(--text); }
.docs-sub-body ul, .docs-sub-body ol { padding-left: 1.25rem; margin: 0.75rem 0; }
.docs-sub-body li { margin-bottom: 0.3rem; }
.docs-sub-body code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  color: var(--primary);
}
.docs-sub-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.docs-sub-back:hover { color: var(--primary); }

.fagg-notice {
  margin: 1.25rem auto 0;
  max-width: 720px;
  padding: 0.85rem 1rem;
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.fagg-notice strong { color: var(--text); }
