/* Wellrooted beta tester page — mobile-first; most testers open this on the iPhone
   they're about to install onto. */

:root {
  --bg: #fdfcf9;
  --surface: #ffffff;
  --text: #1d2b1f;
  --muted: #5d6b60;
  --line: #e2e5dd;
  --accent: #2f7d44;
  --accent-soft: #eef5ef;
  --warn-bg: #fdf6e7;
  --warn-line: #e8d9ae;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141814;
    --surface: #1c211d;
    --text: #e8ede8;
    --muted: #a2b0a6;
    --line: #2c332e;
    --accent: #6cc286;
    --accent-soft: #1e2a21;
    --warn-bg: #26221a;
    --warn-line: #453c26;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, header, footer { max-width: 42rem; margin: 0 auto; }

/* ---- hero ---- */

.hero {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.beta {
  display: inline-block;
  vertical-align: 0.35em;
  margin-left: 0.4rem;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tagline {
  margin: 1rem auto 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.version {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ---- structure ---- */

section { margin: 2.75rem 0; }

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.05rem;
}

ul, ol { padding-left: 1.3rem; }
li { margin: 0.45rem 0; }

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

.step {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1em 0.6em;
  border-radius: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

.callout {
  margin: 2rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--accent-soft);
}

.callout p { margin: 0; }

.note {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--warn-line);
  border-radius: 0.6rem;
  background: var(--warn-bg);
  color: var(--muted);
  font-size: 0.92rem;
}

.note-inline {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- install button ---- */

.install-wrap { margin: 1.75rem 0; text-align: center; }

.install {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.install:active { opacity: 0.75; }

/* ---- screenshots ----
   Horizontal swipe on phones (where vertical space is scarce), grid on wider
   screens. Dimensions are on the <img> so nothing reflows as they load. */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 1rem;
  margin: 0 -1.25rem;
  padding: 0.5rem 1.25rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}

.shots figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (min-width: 40rem) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    margin: 0;
    padding: 0.5rem 0;
    overflow-x: visible;
  }
}

/* ---- footer ---- */

footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.sig { margin-top: -0.5rem; }
