:root {
  --bg: #fbfaf6;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #e4e4e4;
  --accent: #2f6f4f;
  --field: #f2f3f1;
  --danger: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --text: #ececec;
    --muted: #a3a3a3;
    --rule: #2c2f2d;
    --accent: #7fc4a0;
    --field: #292c2a;
    --danger: #ff8a7a;
  }
}
* {
  box-sizing: border-box;
}
/* Every page fills the screen: the footer sits at the bottom even when the content is short. */
html {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
/* Faint contour lines behind every page, fixed in place (a fixed layer, since iOS ignores background-attachment). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(img/topo-light.svg) center / cover no-repeat;
}
@media (prefers-color-scheme: dark) {
  body::before {
    background-image: url(img/topo-dark.svg);
  }
}
main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
/* The header band: the app icon's green and contour rings (see assets/android-icon-background.png), stretched wide,
   with the name and the pages centered on top. */
header.site {
  color: #f4ede2;
  background:
    url(img/topo-header.svg) center / cover no-repeat,
    linear-gradient(180deg, #3b8862, #1d4733);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
header.site .bar {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
header.site .brand {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
header.site nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
header.site nav a {
  color: inherit;
  opacity: 0.9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
header.site nav a:hover,
header.site nav a[aria-current='page'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
footer.site {
  border-top: 1px solid var(--rule);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.callout {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--field);
}
.callout ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}
h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}
h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}
p,
li {
  color: var(--text);
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
a {
  color: var(--accent);
}
.draft {
  border: 2px dashed var(--danger);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--danger);
}
form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
label {
  font-size: 0.85rem;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
button {
  padding: 0.75rem;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--danger);
  cursor: pointer;
}
button.primary {
  background: var(--accent);
  color: var(--bg);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
#status {
  min-height: 1.5rem;
}
.coverage details,
.coverage .row {
  border-bottom: 1px solid var(--rule);
}
.coverage summary,
.coverage .row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  padding: 0.6rem 0;
}
.coverage summary {
  cursor: pointer;
}
.coverage .state {
  font-weight: 600;
}
.coverage .summary {
  flex-basis: 100%;
}
.coverage table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}
.coverage th,
.coverage td {
  text-align: left;
  padding: 0.3rem 0.4rem 0.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.coverage th {
  color: var(--muted);
  font-weight: 600;
}
.coverage .num {
  text-align: right;
}
.coverage .sources {
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.complete {
  background: #d8efe2;
  color: #1d5a3a;
}
.badge.partial {
  background: #fbefd0;
  color: #7a5400;
}
.badge.soon {
  background: #dde8f6;
  color: #24508a;
}
.badge.none {
  background: var(--field);
  color: var(--muted);
}
@media (prefers-color-scheme: dark) {
  .badge.complete {
    background: #1e3a2b;
    color: #a6e0bf;
  }
  .badge.partial {
    background: #3d3015;
    color: #f2d28a;
  }
  .badge.soon {
    background: #1d2c40;
    color: #a9c6ee;
  }
}
.legend {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 2;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.plan {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.plan h3 {
  margin: 0;
  font-size: 1rem;
}
.plan .price {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.plan .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}
.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}
/* Short pages (home, download, open) fill the screen with their content centered under the nav. */
body.full main {
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}
body.full .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}
.stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 16rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.2;
}
.store:hover {
  opacity: 0.85;
}
.store-small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.store-big {
  font-size: 1.25rem;
  font-weight: 700;
}
