/* Brand display face, served from this site (no third-party font requests).
   SIL Open Font License: fonts/OFL.txt. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
/* Dark first, like the app; light follows the system. */
:root {
  --bg: #0a0e0c; --surface: #141914; --pine: #1b2a20; --line: #232b25;
  --fg: #f2f4f1; --muted: #a3afa6; --soft: #c4cec6;
  --accent: #86ad8f; --tan: #c9a774; --green: #4f7358;
  --glow: rgba(134, 173, 143, 0.16);
  --width: 1120px;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f1; --surface: #ffffff; --pine: #e3ece4; --line: #e0e3dc;
    --fg: #14180f; --muted: #59625c; --soft: #3d4640;
    --accent: #3e5e47; --tan: #7a5f38; --green: #4f7358;
    --glow: rgba(79, 115, 88, 0.07);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.display { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.95; }
h1, h2, h3 { text-wrap: balance; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; border-radius: 8px;
  background: var(--surface); color: var(--fg); z-index: 10; }
.skip:focus { top: 12px; }

/* Header and footer, on every page */
.bar { max-width: var(--width); margin: 0 auto; padding: 20px var(--gutter); display: flex;
  flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg);
  text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-size: 27px; letter-spacing: 0.06em; }
.bar nav { display: flex; gap: 20px; }
.bar a:not(.brand) { font-size: 15px; text-decoration: none; }
.bar a:not(.brand):hover { text-decoration: underline; }
footer { border-top: 1px solid var(--line); margin-top: 72px; }
footer .bar { font-size: 14px; color: var(--muted); padding-block: 24px 32px; }
footer .owner { margin-right: auto; }
@media (max-width: 520px) {
  .bar nav { gap: 16px; }
  .bar nav a[href="#how"] { display: none; }
}

/* Documents (privacy, terms) */
main.doc { max-width: 720px; margin: 0 auto; padding: 16px var(--gutter) 32px; }
main.doc h1 { font-size: 46px; margin: 8px 0 4px; }
main.doc h2 { font-size: 20px; margin: 32px 0 8px; }
p.updated, .muted { color: var(--muted); }
li { margin: 4px 0; }

/* Landing page */
.hero { max-width: var(--width); margin: 0 auto; padding: 40px var(--gutter) 24px; display: flex;
  flex-wrap: wrap; align-items: center; gap: 40px; }
.hero .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tan); }
.hero h1 { margin: 0; font-size: clamp(56px, 9vw, 104px); }
.hero p.lead { margin: 0; font-size: 20px; color: var(--soft); max-width: 34rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { margin: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--soft); font-size: 14px; }
.soon { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; }
.soon small { color: var(--muted); font-weight: 400; }
/* The drawing sits in a soft circle of light, like the view in an eyepiece. */
.hero .art { flex: 1 1 280px; display: flex; justify-content: center; position: relative; }
.hero .art::before { content: ""; position: absolute; inset: 50% auto auto 50%;
  width: min(380px, 80vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%); }
.hero .art img { position: relative; width: min(320px, 70vw); }

.section { max-width: var(--width); margin: 0 auto; padding: 56px var(--gutter) 0; }
.section-title { font-size: clamp(32px, 5vw, 44px); margin: 0 0 20px; }
.section p { color: var(--soft); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; margin: 0; padding: 22px 24px; border-left: 2px solid var(--green); }
.steps li::before { content: counter(step); display: block; font: 700 15px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.1em; color: var(--tan); margin-bottom: 10px; }
.steps h3 { font-size: 28px; margin: 0 0 8px; }
.steps p { margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin: 0 0 10px; font-size: 28px; }
.card p { margin: 0; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.split > div { min-width: 0; }
.split p { margin: 0; max-width: 34rem; }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }

/* 404 */
.notfound { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter) 24px; display: grid; gap: 16px; }
.notfound h1 { font-size: clamp(48px, 9vw, 80px); margin: 0; }
.notfound p { margin: 0; color: var(--soft); }

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