@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* Brand: night-sky navy into the app's purple (Tertiary #2B0B98, Primary #512BD4), same as the store graphics. */
:root {
  --navy: #0e2247;
  --purple: #2b0b98;
  --primary: #512bd4;
  --lilac: #dfd8f7;
  --sky: #6ab9ff;
  --amber: #ffc400;
  --text: #ffffff;
  --muted: #b8c4e0;
  --card: rgba(255, 255, 255, 0.06);
  --card-line: rgba(255, 255, 255, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--navy) 0%, #161a5c 45%, var(--purple) 100%);
  font: 17px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac); }
a:hover { color: #fff; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* --- header --- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 34, 71, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: #fff; }
@media (max-width: 640px) { .top nav .opt { display: none; } }

/* --- hero --- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
/* Grid items default to min-width:auto, which lets the 1600px screenshot push the column off-screen on phones. */
.hero .wrap > *, .split > * { min-width: 0; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero .tag { font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--lilac); margin: 10px 0 18px; }
.hero p.lead { color: var(--muted); margin: 0 0 28px; }
.hero-shot { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5); border: 1px solid var(--card-line); }
/* Screenshot + photo credit. A plain block wrapper (no figure margins), so the screenshot keeps the full column
   width; the credit is a separate line under it, as on the app's How-To page. Only the handle is a link. */
.hero-media { min-width: 0; }
.hero-credit { margin: 16px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.hero-credit img { width: 24px; height: 24px; }
.hero-credit a { color: var(--lilac); text-underline-offset: 3px; }
.hero-credit a:hover { color: #fff; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; }
/* Official Google Play badge: shown unmodified (Google brand rules), with clear space around it.
   While pending approval it's a plain image, not a link. */
.play-badge { display: inline-block; margin: 4px 0; line-height: 0; }
.play-badge img { height: 56px; width: auto; }
.play-badge.is-pending { cursor: default; }
a.play-badge:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; border-radius: 8px; }
.btn-ghost { color: #fff; border: 1px solid var(--card-line); }
.soon { font-size: .9rem; color: var(--muted); }

/* --- sections --- */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section-head p { color: var(--muted); margin: 10px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
/* Icon left of the headline; the text below spans the full card width. */
.feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: start; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(106, 185, 255, .15); color: var(--sky); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; }
.feature p, .feature ul { grid-column: 1 / -1; color: var(--muted); margin: 12px 0 0; font-size: .97rem; }
.feature ul { padding-left: 18px; }

/* Screenshot gallery: fixed height, natural widths, so landscape and portrait shots mix. Native swipe/scroll with
   snapping and a hidden scrollbar; gallery.js adds arrow buttons and dots (without JS it still swipes/scrolls). */
.gallery { position: relative; margin: 0 -16px; }
.shots {
  position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px; padding: 4px 16px 24px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.shots::-webkit-scrollbar { display: none; }
.shots img { height: 460px; width: auto; max-width: none; border-radius: 14px; scroll-snap-align: start; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
@media (max-width: 600px) { .shots img { height: 340px; } }

.gal-btn {
  position: absolute; top: calc(50% - 12px); transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--card-line); cursor: pointer;
  display: none; place-items: center; color: #fff; background: rgba(14, 34, 71, .72); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: opacity .2s, background .2s;
}
.gal-btn:hover { background: var(--primary); }
.gal-btn:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.gal-btn[disabled] { opacity: 0; pointer-events: none; }
.gal-btn svg { width: 22px; height: 22px; }
.gal-prev { left: 24px; }
.gal-next { right: 24px; }
/* Arrows only where there is a mouse; touch devices swipe. */
@media (hover: hover) and (pointer: fine) { .gallery.js .gal-btn { display: grid; } }

.dots { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.3); transition: width .25s, background .25s;
}
.dots button[aria-current="true"] { width: 24px; background: var(--lilac); }
.dots button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: 16px; border: 1px solid var(--card-line); box-shadow: 0 18px 44px rgba(0,0,0,.45); }

.notice { background: rgba(255, 196, 0, .08); border: 1px solid rgba(255, 196, 0, .35); border-radius: 14px; padding: 18px 22px; color: #ffe9a8; }

/* --- footer --- */
footer { padding: 40px 0 56px; border-top: 1px solid var(--card-line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .copy { margin-right: auto; }

/* --- text pages (impressum, privacy) --- */
.doc { max-width: 760px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h1 { font-size: 2rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.doc p, .doc li { color: #dfe4f2; }
.doc .meta { color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--card-line); margin: 48px 0; }

/* --- contact form --- */
.contact { display: grid; gap: 6px; margin-top: 24px; }
.contact label { font-weight: 600; margin-top: 10px; }
.contact input, .contact textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--card-line);
  background: var(--card); color: var(--text); font: inherit;
}
.contact textarea { resize: vertical; min-height: 160px; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--lilac); outline-offset: 1px; }
.contact .meta { font-size: .92rem; margin: 12px 0 6px; }
.contact .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: #6440e0; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-ok, .form-err { border-radius: 14px; padding: 16px 20px; }
.form-ok { background: rgba(106, 185, 255, .1); border: 1px solid rgba(106, 185, 255, .4); }
.form-err { background: rgba(255, 196, 0, .08); border: 1px solid rgba(255, 196, 0, .35); color: #ffe9a8; }
