/* Moonbed — Moonlife. Self-contained. No external fonts, scripts, trackers or cookies. */
:root {
  --navy-deep: #0B1530;
  --navy: #14264A;
  --night: #1C335E;
  --blue: #3A5A8C;
  --blue-soft: #6F8FC4;
  --blue-light: #B3CDF0;
  --green: #3E7A5C;
  --green-soft: #6FAF8A;
  --green-light: #A8DDBC;
  --red: #B5534E;
  --red-soft: #D9877C;
  --red-light: #F2B8AC;
  --pink: #F2A7B5;
  --lilac: #C9B6EC;
  --gold: #F2C76B;
  --moon: #F2E3B8;
  --cream: #F3EBDD;
  --text: #F3EBDD;
  --text-dim: #C9D3E6;
  --ink: #0A1226;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.16);
  --overlay: rgba(5, 10, 25, 0.78);
  --font: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-deep);
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue-light); text-underline-offset: 3px; }
a:hover { color: var(--moon); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip:focus { transform: translateY(12px); }

/* Night sky background */
.sky {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(58, 90, 140, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(201, 182, 236, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(181, 83, 78, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 30% at 0% 90%, rgba(62, 122, 92, 0.14), transparent 50%),
    var(--navy-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 1 auto; width: 100%; }

.stars,
.stars::before,
.stars::after {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-repeat: repeat;
}

.stars {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(242,227,184,0.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 63% 28%, rgba(179,205,240,0.8), transparent),
    radial-gradient(1px 1px at 81% 16%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 91% 38%, rgba(242,227,184,0.75), transparent),
    radial-gradient(1px 1px at 8% 68%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 33% 78%, rgba(179,205,240,0.7), transparent),
    radial-gradient(1.5px 1.5px at 52% 62%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 74% 84%, rgba(242,227,184,0.65), transparent),
    radial-gradient(1px 1px at 96% 72%, rgba(255,255,255,0.7), transparent);
  opacity: 0.85;
}

.wrap, header .inner, footer .inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 21, 48, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--border);
}
.brand .name { font-size: 1.15rem; }
.brand .by {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-end;
}
nav.site a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--moon); }

@media (max-width: 720px) {
  header .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 10px;
  }
  nav.site {
    justify-content: space-between;
    gap: 8px 12px;
  }
  nav.site a { font-size: 0.9rem; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}
.hero-icon {
  width: 168px;
  height: 168px;
  border-radius: 38px;
  box-shadow:
    0 0 0 4px rgba(242, 227, 184, 0.15),
    0 0 60px 8px rgba(242, 199, 107, 0.28),
    var(--shadow);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--moon);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.tagline {
  margin: 0 auto 18px;
  max-width: 34em;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--cream);
  font-weight: 500;
}
.promise {
  display: inline-block;
  margin: 0 0 28px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(168, 221, 188, 0.14);
  border: 1px solid rgba(168, 221, 188, 0.4);
  color: var(--green-light);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--cream);
  background: var(--card-strong);
  min-height: 48px;
}
.btn:hover { color: var(--ink); background: var(--moon); border-color: var(--moon); }
.btn-store {
  background: var(--navy);
  border-color: rgba(179, 205, 240, 0.35);
}
.btn-store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.2;
}
.btn-store span.label {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-store {
  flex-direction: column;
  padding: 10px 22px;
  text-align: center;
  min-width: 200px;
}
.fine {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 28px 0 12px;
}
section[id] { scroll-margin-top: 100px; }
section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--moon);
  letter-spacing: -0.02em;
}
.lede {
  margin: 0 0 24px;
  color: var(--text-dim);
  max-width: 40em;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(12, 1fr); }
  .features article:nth-child(-n+4) { grid-column: span 3; }
  .features article:nth-child(n+5) { grid-column: span 4; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.card h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  color: var(--cream);
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.icon-pill svg { width: 24px; height: 24px; display: block; }
.tone-gold { background: rgba(242, 199, 107, 0.18); color: var(--gold); }
.tone-green { background: rgba(111, 175, 138, 0.2); color: var(--green-light); }
.tone-blue { background: rgba(111, 143, 196, 0.22); color: var(--blue-light); }
.tone-amber { background: rgba(242, 227, 184, 0.16); color: var(--moon); }
.tone-red { background: rgba(217, 135, 124, 0.2); color: var(--red-light); }
.tone-lilac { background: rgba(201, 182, 236, 0.2); color: var(--lilac); }

/* Screenshots */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 240px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.shots figure {
  margin: 0;
  scroll-snap-align: start;
}
.shot-frame {
  background: var(--ink);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.shot-frame img {
  display: block;
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 640 / 1390;
  object-fit: cover;
  background: #0A1226;
}
.shots figcaption {
  text-align: center;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 2.6em;
}
.swipe-hint {
  display: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: -8px 0 12px;
}
@media (max-width: 899px) {
  .swipe-hint { display: block; }
}
@media (min-width: 900px) {
  .shots {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    grid-auto-columns: unset;
  }
}

/* Trust */
.trust {
  display: grid;
  gap: 16px;
  margin: 8px 0 12px;
}
@media (min-width: 720px) {
  .trust { grid-template-columns: 1fr 1fr 1fr; }
}
.trust article h3 { margin: 0 0 8px; color: var(--cream); font-size: 1.05rem; }
.trust article p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.coming {
  text-align: center;
  padding: 36px 0 48px;
}
.coming .card {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 32px;
}
.coming .ctas { margin: 4px 0 6px; }
.coming .fine { margin-top: 20px; }

/* Page (privacy, support, 404) */
main.page {
  position: relative;
  z-index: 1;
  padding: 36px 0 64px;
}
main.page h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--moon);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
main.page .meta {
  color: var(--text-dim);
  margin: 0 0 24px;
  font-size: 0.98rem;
}
main.page .meta p { margin: 0 0 4px; }
main.page h2 {
  margin: 32px 0 10px;
  font-size: 1.3rem;
  color: var(--green-light);
}
main.page h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
  color: var(--cream);
}
main.page p, main.page li { color: var(--cream); }
main.page ul { padding-left: 1.2em; }
main.page li { margin: 0 0 8px; }
main.page strong { color: #fff; }
.prose {
  max-width: 760px;
  margin: 0 auto;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 16px;
  margin: 0 0 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cream);
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin-top: 0; }
.faq details > :not(summary) { padding-bottom: 8px; }

/* 404 */
.lost {
  text-align: center;
  padding: 48px 0 80px;
}
.lost h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.lost .moon-face {
  font-size: 4rem;
  line-height: 1;
  margin: 0 0 12px;
  filter: drop-shadow(0 0 18px rgba(242, 199, 107, 0.45));
}

/* Footer */
footer.site {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--moon); }
footer p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon { box-shadow: 0 0 0 4px rgba(242, 227, 184, 0.15), var(--shadow); }
}
