/* Lumino website: start page, help and privacy. One stylesheet for all three pages (scripts/build-pages.js). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-600.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-700.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Lumino lives at night: the site is a night sky in both colour schemes, like the app. */
:root {
  color-scheme: dark;
  --bg: #070a22;
  --bg-deep: #04061a;
  --ink: #eef3ff;
  --muted: #a9b3e0;
  --soft: #7d87bd;
  --cyan: #6fe6ff;
  --cyan-strong: #3af2ff;
  --pink: #ff7ad9;
  --violet: #9a7bff;
  --gold: #ffd36b;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(18, 22, 60, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glow: linear-gradient(100deg, #8cf3ff 0%, #b9a2ff 48%, #ff8fe0 100%);
  --button: linear-gradient(100deg, #5fe3ff 0%, #8f7bff 55%, #ff7ad9 100%);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  --radius: 26px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
/* The sky stays put while the page scrolls: nebula and two star layers on a fixed layer (no background-attachment, iOS ignores it). */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; }
body::before {
  background:
    radial-gradient(60vmax 45vmax at 85% -5%, rgba(154, 123, 255, 0.28), transparent 70%),
    radial-gradient(55vmax 40vmax at 0% 30%, rgba(58, 242, 255, 0.13), transparent 70%),
    radial-gradient(50vmax 40vmax at 100% 85%, rgba(255, 122, 217, 0.14), transparent 70%),
    linear-gradient(180deg, #0c1140 0%, var(--bg) 45%, var(--bg-deep) 100%);
}
body::after {
  z-index: -1;
  background: url("/img/stars.svg") 0 0 / 520px 520px, url("/img/stars.svg") 260px 140px / 860px 860px;
  opacity: 0.75;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 0.9; } }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 600; letter-spacing: 0.005em; }
p, li { text-wrap: pretty; }
img { max-width: 100%; }

/* Language: lang.js (in <head>) marks <html> with .js and the chosen lang; then only that language is shown.
   Without JavaScript both languages stay on the page and the toggle is hidden. */
html.js[lang="de"] [data-lang="en"], html.js[lang="en"] [data-lang="de"] { display: none !important; }
html:not(.js) .lang { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ic { width: 18px; height: 18px; flex: none; }

/* header: glass bar that stays on top */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 10, 34, 0.55);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand .icon { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(80, 90, 255, 0.35); }
.brand .word { height: 30px; width: auto; }
header nav { display: flex; align-items: center; gap: 4px; }
header nav a { padding: 8px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; font-weight: 600; }
header nav a:hover { color: var(--ink); background: var(--glass); text-decoration: none; }
header nav a[aria-current="page"] { color: var(--ink); }

/* the language toggle: one pill, the light slides to the chosen language */
.lang {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-left: 8px; padding: 3px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
}
.lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--button); box-shadow: 0 4px 14px rgba(143, 123, 255, 0.45);
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
html[lang="en"] .lang::before { transform: translateX(100%); }
.lang button {
  position: relative; z-index: 1; min-width: 44px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 700 13px/1 var(--display); letter-spacing: 0.06em; cursor: pointer; transition: color 0.25s;
}
.lang button[aria-pressed="true"] { color: #0a0d2c; }

/* shared surfaces */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.glow-text { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(111, 230, 255, 0.1); border: 1px solid rgba(111, 230, 255, 0.28); color: var(--cyan);
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 24px;
  border-radius: 999px; border: 0; background: var(--button); color: #0a0d2c; font: 700 16px/1.1 var(--display); letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(143, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 36px rgba(143, 123, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn .ic { width: 20px; height: 20px; }
.btn.secondary { background: var(--glass); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; filter: none; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.note { font-size: 14px; color: var(--soft); }
.note.center { text-align: center; max-width: 640px; margin: 16px auto 0; }

/* hero */
.hero { position: relative; text-align: center; padding: 56px 0 0; }
.mascot { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.mascot img { position: relative; width: 100%; height: 100%; animation: float 5s ease-in-out infinite; }
.mascot::before {
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 230, 255, 0.35), rgba(154, 123, 255, 0.18) 45%, transparent 70%);
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
.hero .badge { margin-bottom: 20px; }
.hero h1 { font-weight: 700; font-size: 70px; line-height: 1.02; margin: 0 auto 20px; max-width: 820px; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 auto 28px; max-width: 640px; }
.phones {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  margin: 52px auto 0; height: 600px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent);
}
.phones::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(760px, 100%); height: 480px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(143, 123, 255, 0.45), rgba(111, 230, 255, 0.15) 55%, transparent);
}
.phone {
  background: #0b0b12; border-radius: 48px; padding: 9px;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3c50, 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 40px; aspect-ratio: 600 / 1304; object-fit: cover; background: #0f1540; }
.phones .phone { position: absolute; bottom: -90px; width: 310px; }
.phones .main { z-index: 2; }
.phones .side { width: 260px; bottom: -50px; opacity: 0.92; }
.phones .left { transform: translateX(-310px) rotate(-7deg); }
.phones .right { transform: translateX(310px) rotate(7deg); }

/* trust pills */
.trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.trust .ic { color: var(--cyan); }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 40px; padding: 26px 10px; }
.stats div { text-align: center; padding: 0 8px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 700 40px/1.1 var(--display); }
.stats span { color: var(--muted); font-size: 14px; }

/* sections */
.section { margin-top: 112px; text-align: center; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
h2 { font-size: 48px; line-height: 1.08; margin: 0 auto; max-width: 760px; }
.sub { font-size: 18px; color: var(--muted); max-width: 620px; margin: 14px auto 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.card { padding: 26px; transition: transform 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { margin: 16px 0 6px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, rgba(111, 230, 255, 0.35), rgba(154, 123, 255, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 22px rgba(111, 140, 255, 0.25);
}
.card .icon .ic { width: 23px; height: 23px; }
.card.pink .icon { background: linear-gradient(140deg, rgba(255, 122, 217, 0.4), rgba(154, 123, 255, 0.35)); }
.card.gold .icon { background: linear-gradient(140deg, rgba(255, 211, 107, 0.45), rgba(255, 122, 217, 0.3)); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step { display: flex; flex-direction: column; align-items: center; }
.step .phone { width: 230px; margin-bottom: 24px; }
.step .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--button); color: #0a0d2c; font: 700 16px/1 var(--display); margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 300px; }

/* twelve forms: the black of each picture vanishes into the sky (screen blend) */
.forms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 10px; margin-top: 40px; }
.form { margin: 0; }
.form img { display: block; width: 100%; height: auto; aspect-ratio: 1; mix-blend-mode: screen; }
.form figcaption { margin-top: -14px; font: 600 15px/1.25 var(--display); }
.form small { display: block; margin-top: 2px; color: var(--soft); font: 600 12px/1 inherit; letter-spacing: 0.06em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; text-align: left; }
.split .phone { width: 290px; justify-self: center; }
.split.mirror { grid-template-columns: 1.2fr 1fr; }
.split.mirror .phone { order: 2; }
.split h2 { margin: 0; max-width: none; }
.split .text > p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; }
.checks .ic {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  color: #0a0d2c; background: var(--button);
}

.faq { max-width: 760px; margin: 36px auto 0; display: grid; gap: 10px; text-align: left; }
.faq details { padding: 4px 24px; border-radius: 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font: 600 26px/1 var(--display); flex: none; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.faq details > div p { margin: 0 0 8px; }

.closing { position: relative; overflow: hidden; padding: 64px 24px; }
.closing::before {
  content: ""; position: absolute; inset: auto -20% -70% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(143, 123, 255, 0.35), transparent); pointer-events: none;
}
.closing > * { position: relative; }
.closing img.peek { width: 96px; height: 96px; margin: 0 auto 6px; display: block; animation: float 5s ease-in-out infinite; }
.closing .sub { margin-bottom: 26px; }

/* content pages (help, privacy) */
.page-head { text-align: center; padding: 56px 0 8px; }
.page-head h1 { font-weight: 700; font-size: 54px; line-height: 1.05; margin: 0 auto 14px; max-width: 760px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto; }
.support { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 40px; }
.support h2 { font-size: 28px; margin: 0 0 14px; text-align: left; max-width: none; }
.support .faq { margin: 0; max-width: none; }
.support .aside-note { margin: 18px 4px 0; color: var(--soft); font-size: 14px; }

form.contact { display: grid; gap: 14px; padding: 26px; }
form.contact h2 { margin-bottom: 2px; }
form.contact fieldset { border: 0; margin: 0; padding: 0; }
form.contact legend, form.contact label { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
form.contact label { display: grid; gap: 7px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kind {
  display: flex !important; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink) !important; font-size: 15px !important; letter-spacing: 0 !important; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.kind:has(input:checked) { border-color: var(--cyan); background: rgba(111, 230, 255, 0.1); }
.kind input { accent-color: var(--cyan); margin: 0; }
form.contact input:not([type="radio"]), form.contact textarea {
  font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink);
  background: rgba(4, 6, 26, 0.6); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; width: 100%;
}
form.contact textarea { resize: vertical; min-height: 150px; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
form.contact small { color: var(--soft); margin-top: -6px; font-size: 13px; }
form.contact .btn { width: 100%; margin-top: 4px; }
form.contact .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin: 0; min-height: 1.4em; font-weight: 600; }
.status.good { color: #63f5c0; }
.status.bad { color: #ff9f9f; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 36px; }
.toc { position: sticky; top: 92px; padding: 20px; font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.toc a { display: block; padding: 5px 10px; border-radius: 10px; color: var(--muted); }
.toc a:hover { background: var(--glass); color: var(--ink); text-decoration: none; }
article.policy { padding: 34px 38px; }
article.policy .meta { margin: 0 0 18px; color: var(--soft); font-size: 14px; }
article.policy h2 { font-size: 24px; margin: 34px 0 8px; text-align: left; max-width: none; scroll-margin-top: 90px; }
article.policy p, article.policy li { color: #d5dbf6; }
article.policy ul { padding-left: 22px; }
article.policy li { margin: 6px 0; }
article.policy strong { color: #fff; }
article.policy > p:first-of-type { font-size: 17px; }

footer.wrap { margin: 96px auto 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--soft); font-size: 14px; text-align: center; }
footer .brand .icon { width: 30px; height: 30px; border-radius: 9px; }
footer .brand .word { height: 24px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
footer nav a { padding: 4px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; }
footer nav a:hover { color: var(--ink); background: var(--glass); text-decoration: none; }
footer .legal-line a { color: var(--muted); }

@media (max-width: 980px) {
  .hero h1 { font-size: 56px; }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .stats div:nth-child(4) { border-left: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .forms { grid-template-columns: repeat(4, 1fr); }
  .split, .split.mirror { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .split.mirror .phone { order: 0; }
  .split .checks { justify-content: center; }
  .split .checks li { text-align: left; }
  .support, .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  header nav a.hide-sm { display: none; }
  header nav a { padding: 8px 9px; }
  .brand .word { height: 26px; }
  .hero { padding-top: 32px; }
  .mascot { width: 104px; height: 104px; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 17px; }
  .phones { height: 440px; margin-top: 36px; }
  .phones .phone { width: 250px; bottom: -80px; }
  .phones .side { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(odd) { border-left: 0; }
  .stats div:nth-child(4) { border-left: 1px solid var(--line); }
  .stats strong { font-size: 34px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .forms { grid-template-columns: repeat(3, 1fr); }
  .step .phone { width: 210px; }
  .section { margin-top: 80px; }
  h2 { font-size: 36px; }
  .page-head h1 { font-size: 40px; }
  .kinds { grid-template-columns: 1fr 1fr; }
  article.policy { padding: 24px 20px; }
  .toc ol { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .brand .word { display: none; }
  header nav a { padding: 8px 7px; font-size: 14px; }
  .hero h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* 404 */
.lost { padding: 90px 0 20px; }
.lost .lost-lumino { width: 150px; height: 150px; display: block; margin: 0 auto 18px; animation: float 5s ease-in-out infinite; }
.lost .cta { margin-top: 28px; }
.page-head .badge { margin-bottom: 18px; }
html:not(.js) span[data-lang="en"]::before { content: " / "; }

/* ---------- blog (/blog, /de/blog, scripts/build-pages.js) ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; text-align: left; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; color: var(--ink); transition: transform 0.25s, border-color 0.25s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--line-strong); text-decoration: none; }
.post-card .when { font-size: 13px; color: var(--soft); }
.post-card h2 { font-size: 24px; line-height: 1.2; margin: 0; text-align: left; max-width: none; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
article.post { max-width: 760px; margin: 28px auto 0; padding: 34px 38px; }
article.post .when { margin: 0 0 18px; color: var(--soft); font-size: 14px; }
article.post h2 { font-size: 26px; margin: 34px 0 10px; text-align: left; max-width: none; scroll-margin-top: 90px; }
article.post h3 { font-size: 20px; margin: 26px 0 8px; }
article.post p, article.post li { color: #d5dbf6; font-size: 17px; line-height: 1.65; }
article.post ul, article.post ol { padding-left: 24px; }
article.post li { margin: 6px 0; }
article.post strong { color: #fff; }
article.post > p:first-of-type { font-size: 19px; }
article.post .tags { margin-top: 26px; }
.post-foot { max-width: 760px; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 720px) {
  .posts { grid-template-columns: 1fr; }
  article.post { padding: 26px 20px; }
}
