/* Tread, on the web.
 *
 * The palette is the app's, because a product page that looks like a different
 * product is a worse page. Black ground, one accent (D019), Apple's system faces
 * so the type matches what the app renders on the device it is advertising.
 *
 * No framework and no build step. Four static pages do not need one, and the
 * privacy policy in particular should still render in ten years. */

:root {
  --ink: #000;
  --accent: #b0fc38;
  --text: #fff;
  --text2: rgba(235, 235, 245, 0.6);
  --text3: rgba(235, 235, 245, 0.3);
  --surface1: #1c1c1e;
  --edge: #2c2c2e;
  --measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0 24px 96px;
}

.wrap { max-width: var(--measure); margin: 0 auto; }

/* SF Pro Rounded where it exists, which is every Apple device, and a normal
 * system face everywhere else rather than a webfont nobody needs to download. */
h1, h2, .brand, .hero-line {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

header { display: flex; align-items: baseline; gap: 20px; padding: 40px 0 0; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 20px; margin-left: auto; }
nav a { color: var(--text2); text-decoration: none; font-size: 15px; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

h1 { font-size: clamp(38px, 8vw, 60px); line-height: 1.08; margin: 56px 0 20px; font-weight: 700; }
h1 .lime { color: var(--accent); }
h2 { font-size: 21px; margin: 44px 0 10px; font-weight: 700; }
p, li { color: var(--text2); }
p { margin: 0 0 16px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); }

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

.lede { font-size: 20px; color: var(--text2); max-width: 56ch; }

/* Whitespace separates, boxes do not: the same rule the app follows. The one
 * box on the site is the thing that is genuinely a separate object. */
.note {
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 28px 0;
  background: var(--surface1);
}
.note p:last-child { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
th, td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
  font-size: 16px;
  color: var(--text2);
}
th { color: var(--text); font-weight: 600; width: 34%; }

footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--edge);
  color: var(--text3);
  font-size: 14px;
}
footer a { color: var(--text2); }

.updated { color: var(--text3); font-size: 15px; }
