/* wellatlas.ca — the only stylesheet, and the only asset the pages load.
   No JavaScript, no web fonts, no third-party anything.
   One accent colour, taken from the app icon (a white borehole mark on blue).
   Light and dark via prefers-color-scheme; every pairing meets WCAG AA. */

:root {
  --bg: #ffffff;
  --bg-alt: #f1f6f8;
  --surface: #ffffff;
  --border: #d5e0e6;
  --text: #15212a;
  --muted: #4d5f6b;
  --accent: #0e5c7b;
  --accent-hover: #093f56;
  --accent-soft: #e4f0f6;
  --brand-a: #135c7e;
  --brand-b: #0c4159;
  --on-brand: #ffffff;
  --on-brand-muted: #d3e6ef;
  --ok-bg: #dff1e3;
  --ok-text: #14512b;
  --wait-bg: #eceff1;
  --wait-text: #3c4a52;
  --shadow: 0 1px 2px rgba(10, 30, 45, .06), 0 6px 20px rgba(10, 30, 45, .06);
  --radius: 12px;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1519;
    --bg-alt: #121d23;
    --surface: #16232b;
    --border: #2a3b45;
    --text: #e6eef2;
    --muted: #a6b9c3;
    --accent: #79c6e6;
    --accent-hover: #a9dbef;
    --accent-soft: #14303e;
    --brand-a: #103d53;
    --brand-b: #0a2a3a;
    --on-brand: #f2f9fc;
    --on-brand-muted: #b9d3e0;
    --ok-bg: #123322;
    --ok-text: #9fe0b5;
    --wait-bg: #1d2a31;
    --wait-text: #b9c8d0;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-underline-offset: 0.16em;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

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

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.012em; }
h1 { font-size: 2rem; margin: 0 0 .4rem; }
h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
h3 { font-size: 1.08rem; margin: 0 0 .35rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .45rem; }

/* --- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark { border-radius: 7px; display: block; }
.brand-name span { font-weight: 400; color: var(--muted); }

.nav { flex: 1 1 100%; order: 3; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a {
  display: inline-block;
  padding: .3rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.lang-toggle {
  margin-left: auto;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .88rem;
  text-decoration: none;
}
.lang-toggle:hover { border-color: var(--accent); }

@media (min-width: 46rem) {
  .nav { flex: 1 1 auto; order: 0; margin-left: 1rem; }
  .nav ul { gap: 1.25rem; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--brand-a), var(--brand-b));
  color: var(--on-brand);
  padding: 2.5rem 0 2.75rem;
}
.hero-inner { max-width: 44rem; text-align: center; }
.hero h1 { font-size: 2.1rem; margin-bottom: .2rem; }
.hero-mark {
  border-radius: 22px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--on-brand);
  margin-bottom: 1rem;
}
.hero .lede {
  font-size: 1.05rem;
  color: var(--on-brand-muted);
  margin-bottom: 1.4rem;
}
.store-note {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero .independence {
  font-size: .86rem;
  line-height: 1.5;
  color: var(--on-brand-muted);
  margin: 0;
}

@media (min-width: 46rem) {
  .hero { padding: 3.5rem 0 3.75rem; }
  .hero h1 { font-size: 2.6rem; }
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: 2.25rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.page-head { padding: 2rem 0 .5rem; max-width: var(--measure); }
.page-head h1 { margin-bottom: .5rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: var(--measure); }
.section-lede { color: var(--muted); max-width: var(--measure); }
.note { font-size: .92rem; color: var(--muted); max-width: var(--measure); }
.section p, .section li { max-width: var(--measure); }

/* --- Screenshots -------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

/* --- Features ----------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem .4rem;
}
.feature h3 { color: var(--accent); }
.feature p { font-size: .96rem; }

/* --- Honesty ------------------------------------------------------------ */
.honesty {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.honesty-list { list-style: none; padding: 0; margin-top: 1.25rem; }
.honesty-list li {
  max-width: var(--measure);
  padding: .85rem 1rem .85rem 1.1rem;
  margin-bottom: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.honesty-more { margin-top: 1.1rem; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table.coverage {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .95rem;
}
table.coverage caption {
  text-align: left;
  color: var(--muted);
  font-size: .9rem;
  padding-bottom: .5rem;
}
table.coverage th, table.coverage td {
  text-align: left;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.coverage thead th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}
table.coverage tbody th { font-weight: 600; }
table.coverage td:nth-child(3), table.coverage td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status {
  display: inline-block;
  padding: .1rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  white-space: nowrap;
}
.status-full { background: var(--ok-bg); color: var(--ok-text); font-weight: 600; }
.status-soon, .status-planned { background: var(--wait-bg); color: var(--wait-text); }

/* --- Definition lists, quotes, misc ------------------------------------- */
.facts {
  margin: 1.25rem 0;
  display: grid;
  gap: 0 1rem;
  max-width: 46rem;
}
.facts dt {
  font-weight: 600;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding-top: .6rem;
}
.facts dd {
  margin: 0 0 .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
@media (min-width: 40rem) {
  .facts { grid-template-columns: 13rem 1fr; }
  .facts dt { border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
}

.attribution {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: .8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  max-width: var(--measure);
}

blockquote {
  margin: 1rem 0;
  padding: .2rem 0 .2rem 1rem;
  border-left: 4px solid var(--border);
  color: var(--muted);
  max-width: var(--measure);
}
blockquote p { margin-bottom: .5rem; }

.limits li { font-variant-numeric: tabular-nums; }

.plain-links { list-style: none; padding: 0; }
.plain-links li { margin-bottom: .4rem; }

/* --- Support ------------------------------------------------------------ */
.contact-card { margin: 1.25rem 0 .75rem; }
.button {
  display: inline-block;
  padding: .7rem 1.3rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { background: var(--accent-hover); color: var(--bg); }

.faq { margin-top: 1.25rem; }
.faq-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  max-width: var(--measure);
}
.faq-item h3 { margin-bottom: .4rem; }
.faq-item p { margin-bottom: 0; }

/* --- Legal documents ---------------------------------------------------- */
.doc-version {
  font-weight: 600;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .75rem;
}
.legal-doc { max-width: 100%; }
.legal-doc h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: .35rem;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { max-width: var(--measure); }
.legal-doc ul { margin-bottom: 1.1rem; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2rem 0 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: 1.6fr 1.4fr 1fr; gap: 2rem; }
}
.footer-col h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin: 0 0 .4rem;
}
.footer-col h2 + p + h2 { margin-top: 1.1rem; }
.footer-col p { margin-bottom: .6rem; line-height: 1.55; }
.footer-links { list-style: none; padding: 0; margin: .4rem 0 0; }
.footer-links li { margin-bottom: .3rem; }
.copyright {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
}

/* --- Motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
