/* Still Us: the app's twilight palette (cream, night blue, a violet-to-rose evening sky, a cream moon). */
:root {
  --text: #1f2446;
  --text-soft: #6b6880;
  --background: #efe7e0;
  --surface: #fffdf9;
  --border: #dfd5d3;
  --primary: #2e3f7f;
  --primary-soft: #dde2f4;
  --heart: #c24f7e;
  --plum: #6b5ba0;
  --moon: #f3e3b8;
  --sky: linear-gradient(135deg, #6b5ba0 0%, #8a5b93 50%, #a8577c 100%);
  --night: linear-gradient(180deg, #2e2650 0%, #12162b 100%);
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3ece0;
    --text-soft: #a9a6c0;
    --background: #12162b;
    --surface: #1f2649;
    --border: #363e6b;
    --primary: #9aa8ec;
    --primary-soft: #2c3670;
    --heart: #f29cc4;
    --plum: #b7a8e6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 500 17px/1.65 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

a { color: var(--primary); }
img { max-width: 100%; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 22px 'Fraunces', Georgia, serif;
}
.logo-moon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
}
.logo-moon::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 10px var(--moon);
}
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); }

/* Home */
.hero {
  background: var(--night);
  color: #f3ece0;
  padding-block: 72px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 90%;
  background: var(--sky);
  filter: blur(80px);
  opacity: 0.55;
}
.hero .container { position: relative; }
.hero-moon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 60px rgba(243, 227, 184, 0.55);
}
.hero h1 { font-size: clamp(38px, 7vw, 60px); margin: 0 0 12px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--moon); }
.hero p { max-width: 620px; margin: 0 auto; font-size: 19px; color: #e4dcf4; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.btn-primary { background: var(--moon); color: #1f2446; }
.btn-secondary { border: 1.5px solid rgba(243, 236, 224, 0.5); color: #f3ece0; }

.section { padding-block: 64px; }
.section-title { font-size: clamp(28px, 4.5vw, 38px); text-align: center; margin: 0 0 12px; }
.section-lead { text-align: center; color: var(--text-soft); max-width: 640px; margin: 0 auto 40px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .emoji { font-size: 30px; }
.feature h3 { font-size: 21px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--text-soft); }

.download {
  background: var(--surface);
  border-block: 1px solid var(--border);
  text-align: center;
}
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
  min-width: 190px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--background);
  text-decoration: none;
  font-weight: 800;
}
.store small { display: block; font-weight: 600; opacity: 0.75; }
.store[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }

.contact-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 36px 24px;
}
.contact-card h2 { margin-top: 0; }

/* Legal and support pages */
.page { padding-block: 48px 72px; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.page-header p { color: var(--text-soft); margin: 0; }
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
}
.prose h2 { font-size: 25px; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 800; }
.note {
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 14px 18px;
}
details {
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; color: var(--text-soft); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  color: var(--text-soft);
  font-size: 15px;
}
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); }
