:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.8);
  --card: #1e293b;
  --ink: #f8fafc;
  --muted: #b6c3d6;
  --accent: #7dd3fc;
  --line: rgba(148, 163, 184, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* The river map, fixed behind everything, darkened so text stays readable. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(8, 20, 50, 0.08), rgba(8, 20, 50, 0.28)),
    url('images/river.webp') center top / cover no-repeat;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

code { background: var(--card); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

.wrap { width: min(780px, 100% - 32px); margin-inline: auto; }

/* Header and footer */
.site-header { padding-block: 14px; background: rgba(8, 20, 50, 0.72); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 50px; width: auto; }
.site-header nav a { color: var(--ink); }

.site-footer { padding-block: 24px; margin-top: 48px; background: rgba(8, 20, 50, 0.78); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Landing page */
.hero { padding-block: 56px 24px; text-align: center; }
.hero .wrap { background: var(--panel); border-radius: 28px; padding: 36px 20px 40px; backdrop-filter: blur(4px); }
.hero-logo { width: min(520px, 100%); height: auto; margin: 0 auto 8px; }
.hero p.lede { font-size: 1.3rem; color: var(--muted); max-width: 30ch; margin: 0 auto 28px; }

/* Not a link yet: the real Google Play badge goes here when the app is live. */
.store-button {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px;
  border-radius: 12px;
  border: 1px solid #8b97a8;
  background: #000;
  color: #fff;
  text-align: left;
  line-height: 1.1;
  cursor: not-allowed;
  opacity: .8;
}
.store-button small { display: block; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.store-button span { font-size: 1.3rem; font-weight: 600; }
.store-button em {
  position: absolute; top: -12px; right: -10px;
  padding: 2px 10px; border-radius: 999px;
  background: #fbbf24; color: #1c1917;
  font-size: .78rem; font-style: normal; font-weight: 800;
  transform: rotate(4deg);
}

.features { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.features li { background: var(--panel); border-radius: 14px; padding: 14px 18px; }

/* Policy */
.page { padding-block: 32px 0; }
.panel { background: var(--panel); border-radius: 22px; padding: 28px 24px 32px; }
.page h1 { font-size: 2.2rem; margin: 0 0 4px; }
.page h2 { font-size: 1.35rem; margin: 36px 0 8px; }
.updated { color: var(--muted); margin: 0 0 24px; }
.summary { background: var(--card); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; }
.page ul { padding-left: 1.3rem; }
.page li { margin-bottom: 6px; }

@media (max-width: 480px) {
  .panel { padding: 22px 16px 26px; }
  .brand img { height: 42px; }
}
