/* Dots public site.
 *
 * The app is monochrome by design, so the site is too: tinted neutrals, no
 * accent hue, and hierarchy carried by weight and space instead of colour.
 */

:root {
  color-scheme: light dark;

  /* Neutrals tinted a few points warm, matching the app palette. */
  --bg: oklch(96.2% 0.004 85);
  --surface: oklch(99% 0.003 85);
  --text: oklch(18% 0.004 85);
  --muted: oklch(46% 0.006 85);
  --faint: oklch(62% 0.006 85);
  --rule: oklch(88% 0.005 85);
  --ink: oklch(18% 0.004 85);
  --on-ink: oklch(97% 0.004 85);

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16% 0.004 85);
    --surface: oklch(20% 0.004 85);
    --text: oklch(96% 0.004 85);
    --muted: oklch(75% 0.006 85);
    --faint: oklch(60% 0.006 85);
    --rule: oklch(30% 0.005 85);
    --ink: oklch(93% 0.004 85);
    --on-ink: oklch(16% 0.004 85);
  }
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Nunito Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(74rem, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

/* The app's mark: three dots, one above two. */
.mark {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.mark circle {
  fill: currentColor;
}

.masthead nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  flex-wrap: wrap;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  padding-block: 0.5rem;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 11vh, 7rem) clamp(2.5rem, 8vh, 5rem);
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 16ch;
}

.hero .lede {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
}

.hero .lede strong {
  color: var(--text);
  font-weight: 800;
}

/* Sections ---------------------------------------------------------------- */

section {
  padding-block: clamp(2.75rem, 7vh, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 22ch;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

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

.muted {
  color: var(--muted);
}

/* Numbered steps: an editorial list, not a grid of identical boxes. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* The privacy section carries the argument, so it gets the wider measure. */
.claim {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .claim {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
  }
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.25rem;
  align-items: baseline;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts .value {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.facts .label {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Call to action ---------------------------------------------------------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  opacity: 0.85;
}

a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

a:focus-visible,
.button:focus-visible,
.masthead nav a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Long-form legal documents ----------------------------------------------- */

.document {
  padding-block: clamp(2.5rem, 7vh, 4rem);
}

.document h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.document .updated {
  margin: 0 0 2.5rem;
  color: var(--faint);
  font-size: 0.9375rem;
}

.document p {
  max-width: var(--measure);
  white-space: pre-wrap;
}

/* Numbered section titles, so a long document can be scanned instead of read
   from the top every time. */
.document h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
  max-width: var(--measure);
}

.document h2:first-of-type {
  margin-top: 2rem;
}

/* Footer ------------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer .rows {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

footer a {
  color: var(--muted);
}

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