/* One stylesheet for all three pages. No build step, no dependencies. */

:root {
  --bg: #0d0d0d;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --rule: #262626;
  --link: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 24px 96px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

header {
  padding: 88px 0 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tagline {
  margin: 12px 0 0;
  font-size: 21px;
  line-height: 1.4;
  color: var(--fg);
}

.status {
  margin: 20px 0 0;
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

section {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 32px;
}

h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 650;
}

h3 {
  margin: 32px 0 8px;
  font-size: 17px;
  font-weight: 650;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li { margin-bottom: 8px; }

strong { font-weight: 650; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #666;
}

a:hover { text-decoration-color: var(--link); }

/* Honest limits — set apart, not hidden. */
.limits p { color: var(--muted); }

/* Visible to screen readers only — for the empty corner cell of the comparison
   table, which needs a name it would be noise to draw. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Comparison table. A real table while there is room for one; below 700px each
   row restacks into a labelled block, because three columns of prose is not
   something a 375px screen can hold. The labels come from data-col so the
   stacked version still says which side it is quoting. */
.compare table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.compare th,
.compare td {
  border-top: 1px solid var(--rule);
  padding: 13px 16px 13px 0;
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-top: 0;
  padding-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare tbody th {
  width: 28%;
  font-weight: 650;
}

.compare th:last-child,
.compare td:last-child { padding-right: 0; }

/* The row the whole page turns on. Background only — deliberately NOT dimming
   the Screen Time cell. Greying out the other side in the one row that decides
   the sale is the kind of thumb-on-the-scale this page spends §9.3 arguing
   against; the bold "You." / "Someone else." carries the contrast honestly. */
.compare tr.key th,
.compare tr.key td { background: #151515; }

/* §9.3 — this has to read at full size and full contrast. A comparison that
   only ever wins is one nobody believes. */
.compare h3 { margin-top: 40px; }

@media (max-width: 700px) {
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; }

  .compare thead { display: none; }

  .compare tr {
    border-top: 1px solid var(--rule);
    padding: 18px 0 6px;
  }

  .compare tbody th {
    width: auto;
    border-top: 0;
    padding: 0 0 12px;
    font-size: 17px;
  }

  .compare td {
    border-top: 0;
    padding: 0 0 14px;
  }

  .compare tr.key th,
  .compare tr.key td { background: none; }

  .compare td::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 24px;
}

footer nav a { margin-right: 20px; }

.fine {
  margin-top: 20px;
  color: #6b6b6b;
  font-size: 13px;
}

@media (max-width: 480px) {
  header { padding-top: 56px; }
  h1 { font-size: 34px; }
  .tagline { font-size: 19px; }
}
