/* ============================================================
   flirp.cc — single-page landing
   Pure CSS, no framework. Mobile-first, dark theme.
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Petrol stack (from app theme) */
  --bg-deep:        #000000;
  --bg-primary:     #006060;
  --bg-surface:     #007070;
  --bg-surface-2:   #007878;
  --bg-nav:         #004040;

  /* Gold accent */
  --accent:         #C9A200;
  --accent-light:   #D4B732;
  --accent-dark:    #9A7B00;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-muted:     #B7C9C9;
  --text-dim:       #7E9292;

  /* Borders & glass */
  --border-soft:    rgba(255, 255, 255, 0.08);
  --border-medium:  rgba(255, 255, 255, 0.16);
  --glass-bg:       rgba(0, 64, 64, 0.72);
  --glass-blur:     14px;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3.5rem;
  --space-2xl: 5.5rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  /* Container */
  --container: 1200px;
  --container-narrow: 880px;

  /* Shadows */
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(201, 162, 0, 0.25);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Type Scale (fluid) ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.5vw + 1rem, 5.5rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.55rem); }
h4 { font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}
.lead {
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
section { padding-block: var(--space-2xl); position: relative; }
section + section { border-top: 1px solid var(--border-soft); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #000;
}
.btn-ghost {
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-light);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Store badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.badge-link { display: inline-block; transition: transform 0.2s, filter 0.2s; }
.badge-link:hover { transform: translateY(-2px); filter: brightness(1.1); }
.badge-link img { height: 52px; width: auto; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 0.75rem;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.brand:hover { color: var(--text-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 1;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* ---------- Google Translate — hide native UI completely ----------
   The script is still loaded for its translation engine; we drive it
   via a `googtrans` cookie + a custom .lang-picker UI. */
#google_translate_element {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
body { top: 0 !important; position: static !important; }
/* Prevent the GT-injected iframe from forcing layout shift */
html { margin-top: 0 !important; }

/* ---------- Custom language picker ---------- */
.lang-picker {
  position: relative;
  display: inline-block;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lang-trigger:hover,
.lang-picker.open .lang-trigger {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-light);
  color: var(--text-primary);
}
.lang-trigger > svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
  stroke-width: 2;
  flex-shrink: 0;
}
.lang-trigger .lang-caret {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.lang-picker.open .lang-trigger .lang-caret {
  transform: rotate(180deg);
}
.lang-current {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: rgba(0, 56, 56, 0.96);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
  transition: width 0.2s;
}
/* When consent panel is visible, widen the menu for the bilingual text. */
.lang-picker.open .lang-menu:has(.lang-consent:not([hidden])) {
  width: 360px;
  max-width: calc(100vw - 32px);
}
.lang-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) transparent;
}
.lang-list::-webkit-scrollbar { width: 6px; }
.lang-list::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
.lang-list li { list-style: none; }
.lang-list > li > button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-list > li > button:hover,
.lang-list > li > button:focus-visible {
  background: rgba(201, 162, 0, 0.12);
  color: var(--text-primary);
  outline: none;
}
.lang-list > li > button.is-active {
  background: rgba(201, 162, 0, 0.18);
  color: var(--accent-light);
  font-weight: 700;
}
.lang-note {
  margin: 0.5rem 0.5rem 0.2rem;
  padding: 0.6rem 0.4rem 0.2rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.lang-note a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Consent panel — replaces list temporarily when user picks a non-English language.
   Shows both English and the target-language text for GDPR-compliant informed consent. */
.lang-consent {
  padding: 1rem 1rem 0.95rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) transparent;
}
.lang-consent::-webkit-scrollbar { width: 6px; }
.lang-consent::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
.lang-consent h4 {
  margin: 0 0 0.45rem;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
}
.lang-consent p { margin: 0 0 0.65rem; }
.lang-consent strong { color: var(--text-primary); }
/* Subtle divider between English and target-language blocks */
.lang-consent-rule {
  border: none;
  border-top: 1px dashed var(--border-soft);
  margin: 0.4rem 0 0.7rem;
}
/* RTL adjustments for Arabic/Hebrew */
.lang-consent h4[dir="rtl"],
.lang-consent p[dir="rtl"] {
  text-align: right;
}
.lang-consent .lang-consent-link {
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
  color: var(--text-dim);
}
.lang-consent .lang-consent-link a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lang-consent-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.lang-consent-actions button {
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lang-consent-actions .lang-cancel {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
}
.lang-consent-actions .lang-cancel:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.lang-consent-actions .lang-accept {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #000;
}
.lang-consent-actions .lang-accept:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-light);
}
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* ---------- 7. Hero ---------- */
.hero {
  padding-block: clamp(7rem, 12vh + 4rem, 11rem) var(--space-2xl);
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 0, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0, 120, 120, 0.35), transparent 55%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  border-bottom: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.35rem);
  color: var(--text-muted);
  margin-top: var(--space-md);
  max-width: 36ch;
}
.hero-ctas {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-webbtn {
  margin-top: 0.85rem;
}
.hero-webbtn .btn svg { transition: transform 0.2s; }
.hero-webbtn .btn:hover svg { transform: translate(2px, -2px); }

.hero-trust {
  margin-top: var(--space-md);
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ---------- 8. Phone Mockup ----------
   Metallic-bezel frame so phones don't disappear on dark backgrounds. */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  padding: 10px 9px;
  border-radius: 44px;
  /* Brushed-aluminum gradient: side highlights + dark belly + bottom shine */
  background:
    linear-gradient(135deg,
      #5a5e64 0%,
      #2c2f34 14%,
      #1a1c20 36%,
      #1a1c20 64%,
      #2c2f34 86%,
      #5a5e64 100%);
  box-shadow:
    /* Bright outline so the device pops against dark backgrounds */
    0 0 0 1px rgba(255, 255, 255, 0.10),
    /* Drop shadow */
    0 28px 60px -10px rgba(0, 0, 0, 0.65),
    /* Golden ambient glow */
    0 0 90px rgba(201, 162, 0, 0.22),
    /* Inner top highlight */
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    /* Inner bottom shade */
    inset 0 -2px 0 rgba(0, 0, 0, 0.40);
  flex-shrink: 0;
  isolation: isolate;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
  display: block;
  background: #000;
  /* Subtle inner inset so the screen looks recessed */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
/* Notch / camera island */
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #050505;
  border-radius: 13px;
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 2px rgba(0, 0, 0, 0.9);
}
/* Tiny camera dot inside the notch for realism */
.phone::after {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(50% + 24px);
  width: 8px;
  height: 8px;
  background: #14171a;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(70, 80, 95, 0.6),
    inset 0 0 4px rgba(0, 0, 0, 0.8);
  z-index: 4;
}
.phone-lg { width: 320px; }
.phone-sm { width: 240px; }

/* ---------- 9. Why (value props) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.value-card {
  padding: var(--space-lg);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(0, 96, 96, 0.35), rgba(0, 96, 96, 0.08));
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dark);
  background: linear-gradient(180deg, rgba(0, 120, 120, 0.45), rgba(0, 96, 96, 0.12));
}
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
  color: #000;
}
.value-icon svg { width: 28px; height: 28px; stroke-width: 2.2; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--text-muted); }

/* ---------- 10. Features Grid ---------- */
.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-head .lead { margin-inline: auto; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.feature {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.feature:hover {
  transform: translateY(-3px);
  background: rgba(0, 96, 96, 0.18);
  border-color: var(--border-medium);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 0, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(201, 162, 0, 0.25);
}
.feature-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.55; }

/* ---------- 11. Screenshot Gallery ---------- */
.gallery {
  background:
    radial-gradient(ellipse at center, rgba(0, 96, 96, 0.4), transparent 60%),
    var(--bg-deep);
}
.gallery-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: var(--space-md);
  padding-inline: clamp(1rem, 4vw, 2rem);
  margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) transparent;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.gallery-item .caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 280px;
}
.gallery-item .caption strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

/* ---------- 12. How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  counter-reset: step;
}
.step {
  padding: var(--space-lg);
  background: rgba(0, 96, 96, 0.12);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); }

/* ---------- 13. Trust Bar ---------- */
.trust {
  padding-block: var(--space-xl);
  background: linear-gradient(90deg, transparent, rgba(0, 96, 96, 0.5), transparent);
  border-block: 1px solid var(--border-soft) !important;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 2.5;
}

/* ---------- 14. FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-xl);
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}
.faq-item[open] {
  background: rgba(0, 96, 96, 0.18);
  border-color: var(--border-medium);
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent-light);
  transition: transform 0.25s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- 15. Download CTA ---------- */
.cta {
  background:
    radial-gradient(ellipse at center top, rgba(201, 162, 0, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg-primary), var(--bg-deep));
  text-align: center;
  border-bottom: none;
}
.cta h2 {
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: var(--space-md);
}
.cta .lead { margin-inline: auto; margin-bottom: var(--space-lg); }
.cta .badges { justify-content: center; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  padding-block: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand .brand { margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-dim); font-size: 0.94rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-soft);
  font-size: 0.86rem;
}

/* ---------- 17. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. Responsive ---------- */
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .badge-link img { height: 56px; }
  .phone { width: 300px; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
  }
  .hero-visual { justify-content: flex-end; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .phone { width: 340px; }
  .webplayer-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-2xl);
  }
  .webplayer-visual { justify-content: flex-end; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--border-soft);
    padding: var(--space-md);
  }
  .nav-links.open a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }

  /* Hide "Get the app" button in header on mobile — it's redundant
     (already in hero + CTA section), and creates overflow. */
  .nav-cta > .btn { display: none; }

  /* Compact language picker on mobile — icon + caret only */
  .lang-trigger { padding: 0.45rem 0.6rem; gap: 0.3rem; }
  .lang-trigger .lang-current { display: none; }
  .lang-menu { right: 0; left: auto; min-width: 200px; }

  .nav-cta { gap: 0.5rem; }
  .nav { gap: 0.75rem; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .brand img { width: 32px; height: 32px; }
}

/* ---------- 19. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Legal pages (privacy / terms / imprint) ---------- */
.legal-body {
  padding-block: calc(var(--space-2xl) + 4rem) var(--space-2xl);
  background:
    radial-gradient(ellipse at top, rgba(0, 96, 96, 0.45), transparent 50%),
    var(--bg-deep);
  min-height: 100vh;
}
.legal-back {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legal-back:hover { color: var(--text-primary); }
.legal-langswitch {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
}
.legal-langswitch span[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}
.legal-langswitch a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-dark);
}
.legal-langswitch a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.legal-meta {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}
.legal-body h1 { margin-bottom: var(--space-md); }
.legal-body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  color: var(--text-primary);
}
.legal-body h3 {
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--accent-light);
  font-weight: 600;
}
.legal-body p, .legal-body li { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.7; }
.legal-body ul, .legal-body ol { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-body ol { list-style: decimal; }
.legal-body a { color: var(--accent-light); text-decoration: underline; }
.legal-body a:hover { color: var(--accent); }
.legal-body strong { color: var(--text-primary); }

/* ---------- 21. Web Player section ---------- */
.webplayer {
  background:
    radial-gradient(ellipse at right top, rgba(201, 162, 0, 0.15), transparent 55%),
    radial-gradient(ellipse at left bottom, rgba(0, 96, 96, 0.4), transparent 55%),
    var(--bg-deep);
}
.webplayer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.webplayer h2 {
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: var(--space-md);
}
.webplayer .lead { margin-bottom: var(--space-md); }
.webplayer-points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.webplayer-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.webplayer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 0, 0.18);
}
.webplayer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.webplayer-cta .btn svg { transition: transform 0.2s; }
.webplayer-cta .btn:hover svg { transform: translate(2px, -2px); }

.webplayer-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}
.webplayer-shot {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border-medium);
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(201, 162, 0, 0.12);
  background: #0a1414;
}

/* ---------- 22. FAQ quality table ---------- */
.quality-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.quality-table thead th {
  background: rgba(201, 162, 0, 0.18);
  color: var(--accent-light);
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-medium);
}
.quality-table tbody th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0, 96, 96, 0.2);
  border-right: 1px solid var(--border-soft);
}
.quality-table tbody td {
  padding: 0.7rem 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}
.quality-table tbody tr:first-child td,
.quality-table tbody tr:first-child th { border-top: none; }

/* ---------- 23. Footer tagline ---------- */
.footer-tagline {
  margin-top: 0.4rem;
  font-size: 0.82rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
}
