/* Home: four pages you click through. Only the chosen page shows (no scripts: the address
   ends in #different and so on, so Back and links work). On a laptop or desktop each page fits
   the window; on a phone or when zoomed in, a page grows taller and scrolls down normally, so
   text can always reflow and enlarge (WCAG 1.4.4 and 1.4.10). */
.home .page { display: none; scroll-margin-top: 100vh; }
.home .page:target,
.home .pages:not(:has(.page:target)) #start { display: block; }

.pager { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 4px; }
.pager a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 15px;
}
.pager a span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700;
}
/* The page you're on. */
.home:not(:has(.page:target)) .pager a[data-page='start'],
.home:has(#start:target) .pager a[data-page='start'],
.home:has(#different:target) .pager a[data-page='different'],
.home:has(#compare:target) .pager a[data-page='compare'],
.home:has(#join:target) .pager a[data-page='join'] {
  background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600;
}
.home:not(:has(.page:target)) .pager a[data-page='start'] span,
.home:has(#start:target) .pager a[data-page='start'] span,
.home:has(#different:target) .pager a[data-page='different'] span,
.home:has(#compare:target) .pager a[data-page='compare'] span,
.home:has(#join:target) .pager a[data-page='join'] span { background: #fff; color: var(--teal); border-color: #fff; }

.home main.pages { padding-top: 14px; padding-bottom: 18px; }
.home .page h1 { font-size: 30px; margin-bottom: 12px; }
.home .hero { padding: 0; gap: 22px; }
.home .hero img { width: 112px; height: 112px; border-radius: 26px; }

.badges { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges .badge { margin: 0; }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.three div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.three strong { display: block; font-size: 18px; }
.three span { color: var(--muted); }

.cards.tight { gap: 12px; margin: 8px 0 12px; }
.cards.tight .card { padding: 14px 16px; }
.cards.tight h2 { font-size: 18px; margin: 0 0 6px; }
.cards.tight p { font-size: 15px; line-height: 1.5; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
table.compare { margin: 0; min-width: 560px; font-size: 15px; }
table.compare caption { caption-side: bottom; text-align: left; padding: 8px 10px; font-size: 14px; }
table.compare th[scope='row'] { font-weight: 600; }
table.compare thead th { background: var(--panel); }
table.compare tr.ours th, table.compare tr.ours td { background: rgba(15, 110, 86, 0.12); }
table.compare { min-width: 640px; }
.fine { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.why { margin-top: 6px; }

.next { margin: 18px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 12px;
  background: var(--teal); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--teal);
}
.button.secondary { background: transparent; color: var(--link); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  .button { background: #0f6e56; border-color: #0f6e56; }
  .home:not(:has(.page:target)) .pager a[data-page='start'],
  .home:has(#start:target) .pager a[data-page='start'],
  .home:has(#different:target) .pager a[data-page='different'],
  .home:has(#compare:target) .pager a[data-page='compare'],
  .home:has(#join:target) .pager a[data-page='join'] { background: #0f6e56; border-color: #0f6e56; }
}

/* Laptops and desktops: each page fills the window between the header and footer, nothing to scroll. */
@media (min-width: 900px) and (min-height: 700px) {
  .home .cards.tight { grid-template-columns: repeat(3, 1fr); }
  .home #join .cards.tight { grid-template-columns: repeat(4, 1fr); }
  .home footer.site { padding: 12px 0 14px; font-size: 13px; }
  .home footer.site nav { margin-bottom: 2px; }
  .home footer.site p { margin: 0; }
  table.compare th, table.compare td { padding: 6px 10px; }
}
@media (max-width: 520px) {
  .home .page h1 { font-size: 26px; }
  .pager a { padding: 6px 10px; font-size: 14px; }
}

/* Wider on big screens so the comparison table fits one page. */
@media (min-width: 1000px) {
  .home .wrap { max-width: 980px; }
}
@media (min-width: 1000px) {
  table.compare th[scope='row'], table.compare td:not(:last-child) { white-space: nowrap; }
}

/* Words read aloud but not shown, to keep the table narrow. */
.sr-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1000px) {
  table.compare th, table.compare td { padding: 6px 8px; }
}
table.compare td.mark { text-align: center; }
