/* One stylesheet for every page. System fonts only: nothing is loaded from
   another server, so the privacy policy has nothing to declare. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #161616;
  --muted: #5d5d58;
  --line: #e4e4dd;
  --accent: #1f6f5c;
  --accent-text: #ffffff;
  --radius: 14px;
  --max: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1b1b1a;
    --text: #efefea;
    --muted: #a3a39c;
    --line: #2e2e2b;
    --accent: #5cc4a6;
    --accent-text: #0c1d18;
  }
}

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

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Header */

.site-header {
  padding: 1.25rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Hero */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

/* Buy box */

.buy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.price-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.5rem 0 1.25rem;
}

.button {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
}

.buy-small {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 1rem 0 0;
}

/* Sections */

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

section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

/* Legal pages */

.legal {
  padding: 1.5rem 0 3rem;
}

.legal h1 {
  font-size: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.legal h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

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