:root {
  color-scheme: light dark;
  --bg: #fbfcfb;
  --surface: #eef3f2;
  --text: #1c2322;
  --muted: #55615f;
  --line: #d5dddb;
  --accent: #007476;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a;
    --surface: #1f2528;
    --text: #e8ecea;
    --muted: #a3aeab;
    --line: #333c3f;
    --accent: #5cc8c6;
    --accent-text: #0b1f20;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1rem;
}

code {
  font-size: 0.85em;
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

main section:first-child {
  border-top: 0;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Screenshots */

.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

/* Home */

.hero {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.hero-text {
  justify-self: stretch;
}

.lead {
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.button {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--surface);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button.primary:hover {
  opacity: 0.88;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero .shot {
  width: 11rem;
}

.steps,
.points {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.steps p,
.points p {
  margin: 0;
}

.points li {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--surface);
}

.more {
  margin: 1.5rem 0 0;
}

/* Questions */

details {
  border-top: 1px solid var(--line);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 0.75rem 0;
  cursor: pointer;
  font-weight: 600;
}

details > :last-child {
  margin-bottom: 1.25rem;
}

blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--accent);
}

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

blockquote + .note {
  margin-bottom: 0.75rem;
}

/* Features */

.feature {
  display: flow-root;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.feature .shot {
  float: right;
  width: 8.5rem;
  margin: 0.25rem 0 0.75rem 1rem;
}

/* Privacy */

.table-wrap {
  margin: 0 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th,
td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.prose > * {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.375rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

/* Wider screens */

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 1fr 13rem;
    gap: 3rem;
    align-items: center;
  }

  .hero .shot {
    width: 13rem;
  }

  .site-header nav {
    gap: 1.25rem;
    font-size: 1rem;
  }

  .steps,
  .points {
    grid-template-columns: repeat(3, 1fr);
  }

  .questions {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .feature {
    display: grid;
    grid-template-columns: 1fr 12rem;
    gap: 3rem;
    align-items: center;
  }

  .feature .shot {
    order: 1;
    float: none;
    width: 12rem;
    margin: 0;
  }

  .feature:nth-of-type(even) {
    grid-template-columns: 12rem 1fr;
  }

  .feature:nth-of-type(even) .shot {
    order: 0;
  }

  .feature-text {
    max-width: 36rem;
  }

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