/* ---------- Design tokens ---------- */
:root {
  --bg:        #fafaf7;
  --surface:   #ffffff;
  --text:      #17171a;
  --muted:     #5c5c63;
  --border:    #e6e6e0;
  --accent:    #4f46e5;
  --accent-2:  #0ea5e9;
  --radius:    14px;
  --max-width: 720px;
  --header-h:  64px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0f0f11;
    --surface: #161619;
    --text:    #ededf0;
    --muted:   #a0a0a8;
    --border:  #25252a;
    --accent:  #8b85ff;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

strong { color: var(--text); }

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Links ---------- */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Main ---------- */
main.container {
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: 96px;
}

/* ---------- Hero ---------- */
.hero { margin-bottom: 88px; }

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h1 .dot { color: var(--accent); }

.lead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- Sections ---------- */
section { margin-bottom: 72px; }
section:last-child { margin-bottom: 0; }

h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

section p { margin: 0 0 16px; color: var(--muted); }
section p:last-child { margin-bottom: 0; }

/* ---------- Support page ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card p:last-child { margin-bottom: 0; }
.card .fine { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .7s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

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

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-links { gap: 20px; }
  main.container { padding-top: calc(var(--header-h) + 64px); }
  .hero { margin-bottom: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
