/* ============================================================
   REWORD — DESIGN TOKENS  (copy verbatim, do not edit values)
   ============================================================ */
:root {
  /* Brand gradient (diagonal indigo → violet → purple → pink) */
  --brand-indigo: #5B5AFF;
  --brand-violet: #8C66FF;
  --brand-purple: #AA3FF6;
  --brand-pink:   #FA5CA8;
  --accent-cyan:  #4DC7FB;
  --brand-gradient: linear-gradient(135deg, #5B5AFF 0%, #8C66FF 35%, #AA3FF6 68%, #FA5CA8 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(91,90,255,0.16) 0%, rgba(140,102,255,0.14) 35%, rgba(170,63,246,0.14) 68%, rgba(250,92,168,0.16) 100%);

  /* Backgrounds & surfaces (LIGHT) */
  --bg:            #ffffff;
  --bg-elevated:   #f5f5f7;
  --surface:       rgba(255, 255, 255, 0.65);   /* frosted card fill */
  --surface-border: rgba(15, 15, 25, 0.08);
  --navbar-bg:     rgba(255, 255, 255, 0.72);    /* frosted navbar */
  --navbar-border: rgba(15, 15, 25, 0.08);

  /* Aurora blob colors (LIGHT — subtle) */
  --aurora-1: rgba(91, 90, 255, 0.28);
  --aurora-2: rgba(170, 63, 246, 0.24);
  --aurora-3: rgba(250, 92, 168, 0.22);
  --aurora-4: rgba(77, 199, 251, 0.20);
  --aurora-blur: 90px;

  /* Text */
  --text:          #0a0a0c;
  --text-secondary:#3c3c43;
  --text-tertiary: #6e6e76;
  --text-on-brand: #ffffff;

  /* Radii */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,15,25,0.06), 0 1px 2px rgba(15,15,25,0.04);
  --shadow-md: 0 8px 30px rgba(15,15,25,0.08), 0 2px 8px rgba(15,15,25,0.05);
  --shadow-lg: 0 20px 60px rgba(15,15,25,0.12), 0 8px 24px rgba(15,15,25,0.08);
  --shadow-glow: 0 12px 40px rgba(140,102,255,0.35);

  /* Glass */
  --glass-blur: 20px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0a0a0c;
    --bg-elevated:   #141418;
    --surface:       rgba(28, 28, 34, 0.55);     /* frosted card fill */
    --surface-border: rgba(255, 255, 255, 0.10);
    --navbar-bg:     rgba(14, 14, 18, 0.62);      /* frosted navbar */
    --navbar-border: rgba(255, 255, 255, 0.08);

    /* Aurora blobs (DARK — glowing) */
    --aurora-1: rgba(91, 90, 255, 0.45);
    --aurora-2: rgba(170, 63, 246, 0.40);
    --aurora-3: rgba(250, 92, 168, 0.38);
    --aurora-4: rgba(77, 199, 251, 0.34);
    --aurora-blur: 110px;

    --text:          #f5f5f7;
    --text-secondary:#c7c7cf;
    --text-tertiary: #8e8e98;
    --text-on-brand: #ffffff;

    --surface-border-dummy: 0; /* keep ordering */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 12px 50px rgba(140,102,255,0.5);

    --brand-gradient-soft: linear-gradient(135deg, rgba(91,90,255,0.22) 0%, rgba(140,102,255,0.20) 35%, rgba(170,63,246,0.20) 68%, rgba(250,92,168,0.22) 100%);
  }
}

/* ---- Base helpers (recommended, copy verbatim) ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Aurora background layer — add <div class="aurora" aria-hidden="true"> with 4 .blob children */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(var(--aurora-blur)); will-change: transform; }
.aurora .blob.b1 { width: 46vw; height: 46vw; top: -10vw; left: -8vw;  background: var(--aurora-1); }
.aurora .blob.b2 { width: 40vw; height: 40vw; top: 8vw;  right: -10vw; background: var(--aurora-2); }
.aurora .blob.b3 { width: 38vw; height: 38vw; bottom: -12vw; left: 12vw; background: var(--aurora-3); }
.aurora .blob.b4 { width: 30vw; height: 30vw; bottom: 4vw; right: 14vw; background: var(--aurora-4); }
@media (prefers-reduced-motion: no-preference) {
  .aurora .blob { animation: auroraFloat 18s ease-in-out infinite alternate; }
  .aurora .blob.b2 { animation-delay: -4s; }
  .aurora .blob.b3 { animation-delay: -8s; }
  .aurora .blob.b4 { animation-delay: -12s; }
}
@keyframes auroraFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(2vw,-3vw,0) scale(1.08); } }

/* Frosted card */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-md);
}

/* Pill button — primary (brand gradient) */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600;
  color: var(--text-on-brand); border-radius: var(--radius-pill);
  background: var(--brand-gradient); box-shadow: var(--shadow-glow);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(140,102,255,0.5); }

/* Pill button — secondary (glass) */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; cursor: pointer;
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600;
  color: var(--text); border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--surface-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  text-decoration: none; transition: transform .2s ease;
}
.btn-secondary:hover { transform: translateY(-2px); }

/* Gradient text helper for headlines */
.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent-cyan); outline-offset: 2px; border-radius: 6px; }

/* ---- Navbar (frosted glass) — copy verbatim ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
}
.navbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--brand-gradient); color: #fff;
  font-weight: 700; font-size: 18px; box-shadow: var(--shadow-glow);
}
.brand-name { font-size: 1.125rem; letter-spacing: -0.02em; }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.lang-toggle {
  margin-left: 8px; padding: 7px 14px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .brand-name { display: none; }
}

/* ---- Footer — copy verbatim ---- */
.site-footer { margin-top: 96px; padding: 40px 0; border-top: 1px solid var(--surface-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; color: var(--text-tertiary); font-size: 0.9rem; }
.footer-note { margin: 0; color: var(--text-tertiary); font-size: 0.8rem; }

/* ---- App Store badge — copy verbatim ---- */
.appstore-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .2s ease, opacity .2s ease; }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge[data-appstore-pending] { cursor: not-allowed; }
.appstore-badge[data-appstore-pending]::after {
  content: "Coming soon"; display: block; margin-top: 6px; text-align: center;
  font-size: 0.72rem; color: var(--text-tertiary); line-height: 1.2;
}

/* ============================================================
   Shared content-page layout (privacy / impressum / support)
   ============================================================ */
.page { padding-top: 56px; }
.page-header { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.page-header h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0 0 12px; }
.page-header .eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px;
  border-radius: var(--radius-pill); background: var(--brand-gradient-soft);
  border: 1px solid var(--surface-border);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; color: var(--text-secondary);
}
.page-header .updated { margin: 8px 0 0; color: var(--text-tertiary); font-size: 0.9rem; }

.prose { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--text-secondary); }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-secondary); }
.prose li { margin: 4px 0; }
.prose a { color: var(--brand-purple); text-decoration: none; font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose address { font-style: normal; color: var(--text-secondary); margin: 0 0 14px; }

[hidden] { display: none !important; }

/* ============================================================
   LANDING PAGE — page-specific styles
   ============================================================ */

/* Language visibility: per-language inline spans use [data-lang];
   the active language is shown, the other hidden via JS toggling [hidden]. */
[data-lang][hidden] { display: none !important; }

/* ---- Reveal animations (driven by script.js intersection-observer) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* ---- Hero ---- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px); }
.hero-inner {
  display: grid; gap: clamp(36px, 6vw, 72px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin: 0 0 22px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 20px; max-width: 16ch; }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  margin: 0 0 34px; max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }

/* ---- Phone mockup (CSS only) ---- */
.hero-phone { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: clamp(238px, 70vw, 318px);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.30), rgba(255,255,255,0.04));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: var(--radius-pill);
  background: #0a0a0c; z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; width: 100%;
  border-radius: 33px; overflow: hidden;
  background: var(--bg-elevated);
  display: flex; flex-direction: column;
  padding: 44px 18px 22px;
}
.phone-screen .screen-aurora {
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(40% 40% at 22% 18%, var(--aurora-1), transparent 70%),
    radial-gradient(38% 38% at 82% 30%, var(--aurora-2), transparent 70%),
    radial-gradient(46% 46% at 50% 92%, var(--aurora-3), transparent 70%),
    radial-gradient(34% 34% at 88% 80%, var(--aurora-4), transparent 70%);
  filter: blur(18px);
}
.phone-screen > * { position: relative; z-index: 1; }
.phone-app-title { font-size: 0.78rem; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.bubble { border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; font-size: 0.82rem; line-height: 1.45; }
.bubble-label {
  display: block; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; opacity: 0.75;
}
.bubble.before {
  background: var(--surface); border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bubble.after { background: var(--brand-gradient); color: var(--text-on-brand); box-shadow: var(--shadow-glow); }
.bubble.after .bubble-label { opacity: 0.85; }
.phone-bar {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: var(--radius-pill);
  background: var(--brand-gradient); color: var(--text-on-brand);
  font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow-glow);
}

/* ---- Section scaffolding ---- */
.section { padding: clamp(48px, 8vw, 90px) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 14px; }
.section-head p { color: var(--text-secondary); font-size: 1.08rem; margin: 0; }

/* ---- Feature grid ---- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px 26px; }
.feature .icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: var(--radius-md); font-size: 26px; line-height: 1; margin-bottom: 18px;
  background: var(--brand-gradient-soft); border: 1px solid var(--surface-border);
}
.feature h3 { font-size: 1.22rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 0.98rem; }

/* ---- Privacy callout ---- */
.privacy-callout { padding: clamp(40px, 7vw, 80px) 0; }
.privacy-card { padding: clamp(32px, 5vw, 56px); text-align: center; background: var(--brand-gradient-soft); }
.privacy-card .lock {
  display: inline-grid; place-items: center; width: 68px; height: 68px;
  border-radius: var(--radius-lg); font-size: 34px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--surface-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.privacy-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 auto 16px; max-width: 22ch; }
.privacy-card p { color: var(--text-secondary); font-size: 1.08rem; margin: 0 auto; max-width: 56ch; }
.privacy-card .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.privacy-card .pills span {
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--surface-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 1.08rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 22px; height: 22px; transition: transform .25s ease; color: var(--text-tertiary); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--text-secondary); font-size: 0.99rem; }

/* ---- Download CTA ---- */
.download { padding: clamp(40px, 7vw, 80px) 0; }
.download-card { padding: clamp(36px, 6vw, 64px); text-align: center; }
.download-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.download-card p { color: var(--text-secondary); font-size: 1.08rem; margin: 0 auto 30px; max-width: 50ch; }
.download-card .badge-wrap { display: flex; justify-content: center; }
