:root {
  --night: #1b1a44;
  --night-2: #23306a;
  --teal: #13a08a;
  --moon: #ffc83d;
  --cream: #fbf7ef;
  --pebble: #f1e7d6;
  --ink: #1e1b4b;
  --muted: #6b5f63;
  --line: #e6dccb;
  --link: #0f766e;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #13122e;
    --pebble: #1d1c42;
    --ink: #f3eee4;
    --muted: #b7b0c4;
    --line: #2e2c5a;
    --link: #5fd4bd;
    --card: #1a1940;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3, .brand { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; line-height: 1.15; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--night); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.25rem; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 20px; }
.nav a { color: #d8d4f0; text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--moon); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, #155e63 100%);
  padding: 72px 0 120px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin: 0 0 16px; max-width: 14ch; }
.hero p { font-size: 1.15rem; color: #dcd8f2; max-width: 34rem; margin: 0; }
.hero .moon {
  position: absolute; right: max(4vw, 20px); top: 48px;
  width: clamp(90px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset -26px -6px 0 0 var(--moon); transform: rotate(-20deg); opacity: .95;
}
.stars span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .6; }
.pebbles { position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; }
.pebbles svg { width: 100%; height: 100%; display: block; }

/* Sections */
section { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--teal); margin: 0 0 8px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 40rem; margin: 0 0 32px; }

/* App card */
.app-card {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px;
}
@media (min-width: 820px) { .app-card { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 40px; } }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-head img { width: 76px; height: 76px; border-radius: 20px; }
.app-head h3 { font-size: 1.6rem; margin: 0; }
.app-head .tag { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.chips li { background: var(--pebble); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; border-radius: 999px; padding: 11px 20px; font-weight: 800; text-decoration: none; }
.btn-primary { background: var(--night); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--moon); color: #1b1a44; } }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); }
.soon { font-size: .9rem; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 1 / 2; object-fit: cover; width: 100%; }
.shots img:nth-child(2) { transform: translateY(-14px); }
/* Desktop screenshots (browser extensions): stacked, landscape. */
.shots-wide { display: grid; gap: 14px; }
.shots-wide img { border-radius: 14px; border: 1px solid var(--line); width: 100%; height: auto; }

/* Values */
.values { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { background: var(--pebble); border-radius: 24px 24px 30px 20px; padding: 22px; }
.value h3 { margin: 0 0 6px; font-size: 1.15rem; }
.value p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* Long-form pages (policy) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 56px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 4px; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 .4rem; }
.doc .muted { color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .hero { padding: 56px 0 100px; }
  .hero .moon { top: 22px; opacity: .55; }
}
