:root {
  --bg: #ffffff;
  --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;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
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);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
nav a {
  text-decoration: none;
  font-weight: 600;
}
.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 {
  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: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;
}
body.download main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}
body.download .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;
}
