:root {
  --night: #111111;
  --surface: #1d1e20;
  --line: #2c2d30;
  --text: #fefefe;
  --muted: #a3a3a3;
  --orbit: #5da2fd;
  --saffron: #f4a23c;
  --saffron-ink: #2a1600;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 1.0625rem/1.6 var(--body);
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 2px solid var(--orbit); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 32px, 960px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.125rem var(--head); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Hero: the app's own splash screen */
.hero { text-align: center; padding: 24px 0 72px; }
.stage { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto 8px; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .ring { transform-origin: 50% 50%; animation: turn 60s linear infinite; }
.stage g:nth-child(2) .ring { animation-duration: 80s; animation-direction: reverse; }
.stage g:nth-child(3) .ring { animation-duration: 100s; }
.stage img { position: absolute; left: 50%; top: 50%; width: 58%; height: auto; transform: translate(-50%, -48%); }
@keyframes turn { to { transform: rotate(360deg); } }

h1 {
  font: 600 clamp(2.4rem, 7vw, 4.25rem)/1.02 var(--head);
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 15ch;
}
.lede { color: var(--muted); font-size: 1.1875rem; max-width: 34em; margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; }
.soon {
  display: inline-block;
  border: 1.5px solid var(--saffron);
  color: var(--saffron);
  font: 600 1.0625rem var(--head);
  padding: 12px 24px;
  border-radius: 999px;
}
.note { color: var(--muted); font-size: 0.9375rem; }

/* Steps */
section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font: 600 clamp(1.6rem, 4vw, 2.25rem)/1.15 var(--head); letter-spacing: -0.02em; margin: 0 0 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border: 1.5px dashed var(--orbit); border-radius: 50%;
  font: 600 1.0625rem var(--head); color: var(--orbit);
}
.steps h3 { font: 600 1.25rem var(--head); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.private { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.private h2 { margin: 0; }
.private p { margin: 0 0 12px; color: var(--muted); max-width: 36em; }

.family p { color: var(--muted); margin: 0 0 16px; }
.family ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 24px; }
footer a { color: var(--muted); }

/* Text pages */
.doc { padding: 32px 0 80px; }
.doc .wrap { max-width: 680px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: none; margin-bottom: 8px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.375rem; margin: 40px 0 10px; }
.doc p, .doc li { color: #d6d6d6; }
.doc ul { padding-left: 1.2em; }
.doc dt { font: 600 1.125rem var(--head); margin-top: 24px; }
.doc dd { margin: 6px 0 0; color: #d6d6d6; }

@media (max-width: 720px) {
  .steps, .private { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .ring { animation: none; }
}
