:root {
  --bg: #0d0e1a;
  --bg-soft: #141628;
  --line: #262a45;
  --text: #eceefa;
  --muted: #a3a8c6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #b6a4ff; }
a:hover { color: #d2c7ff; }

.wrap { width: min(1000px, 100% - 40px); margin: 0 auto; }

/* Header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 28px; height: 28px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 0.95rem; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero .app-icon { width: 112px; height: 112px; display: block; margin: 0 auto 20px; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
.hero .tagline { color: var(--muted); font-size: 1.15rem; margin: 6px 0 18px; }
.hero .lead { max-width: 560px; margin: 0 auto 24px; color: #d3d6ec; }
.play { display: inline-block; line-height: 0; }
.play img { width: 194px; height: auto; }
.hero .note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

/* Screenshots: one row, like the Play Store */
.shots { padding: 8px 0 16px; }
.shots .row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots .row img {
  flex: 0 0 auto;
  height: 300px;
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 1.6rem; margin: 0 0 24px; letter-spacing: -0.01em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { margin-bottom: 10px; }
.band p { margin: 0; color: var(--muted); max-width: 680px; }

/* Policy page */
article.doc { padding: 48px 0 72px; max-width: 720px; }
article.doc h1 { font-size: 2.2rem; margin: 0 0 6px; letter-spacing: -0.01em; }
article.doc .updated { color: var(--muted); margin: 0 0 28px; }
article.doc h2 { font-size: 1.3rem; margin: 34px 0 8px; }
article.doc p, article.doc li { color: #d3d6ec; }
article.doc ul { padding-left: 22px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { color: var(--muted); margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero { padding: 44px 0 28px; }
  .hero h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .shots .row img { height: 240px; }
  nav a { margin-left: 16px; }
}
