/* Landing page only. Palette and typefaces are the app's own (Space Grotesk /
   Inter / JetBrains Mono, dark sky ground), so arriving at the app feels like
   walking through a door rather than to a different building. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #12141c;
  --panel: #1a1d28;
  --field: #232736;
  --text: #e8eaf2;
  --sub: #9aa2b8;
  --accent: #7aa2f7;
  --border: #2e3345;
  --warm: #d9534f;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The sky behind everything: a fixed field of faint stars, drawn as radial
   gradients so it costs no images and no requests. Deliberately dim - it is
   a ground, not a picture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, #cfd8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 62%, #b9c6f5 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 68% 24%, #ffffff 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 71%, #a9b6e8 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 52% 12%, #dce4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 23% 84%, #9fb0e0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 91% 41%, #eef2ff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 39%, #8f9fd0 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #b6c3ee 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 74% 88%, #d7e0ff 50%, transparent 51%),
    radial-gradient(900px 620px at 78% -10%, rgba(122,162,247,.10), transparent 70%);
  opacity: .85;
}

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

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
}

.mark { width: 34px; height: 34px; }

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
}

header .spacer { flex: 1; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 56px 0 40px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--sub);
  max-width: 56ch;
  margin: 0 0 30px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
  transition: border-color .15s, background .15s, transform .15s;
}

.btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1017;
}

.btn-primary:hover { background: #93b4ff; border-color: #93b4ff; }

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------- the save/restore card */

/* The page's one loud element, because it is the one thing a visitor must
   understand before they start typing an evening's notes into it. Framed like
   a field card, with the three steps as a real sequence - which they are. */

.keep {
  margin: 8px 0 56px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warm);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(217,83,79,.06), rgba(26,29,40,.9));
  padding: 26px 28px;
}

.keep h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.keep p { margin: 0 0 20px; color: var(--sub); max-width: 62ch; }

.keep strong { color: var(--text); font-weight: 600; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warm);
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.steps h3 {
  font-family: var(--display);
  font-size: .98rem;
  margin: 0 0 4px;
}

.steps p { font-size: .92rem; margin: 0; color: var(--sub); }

/* --------------------------------------------------------------- content */

section { padding: 8px 0 52px; }

h2.section-title {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.section-sub { color: var(--sub); margin: 0 0 26px; max-width: 60ch; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(26,29,40,.72);
  padding: 18px 20px;
}

.feature h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 6px;
}

.feature p { margin: 0; font-size: .93rem; color: var(--sub); }

/* Coordinates in the app's own vernacular, used as a divider rule. */
.coords {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #566079;
  letter-spacing: .1em;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}

.support {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(26,29,40,.72);
  padding: 24px 26px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 60px;
  color: var(--sub);
  font-size: .9rem;
}

footer a { color: var(--sub); }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .keep { padding: 22px 20px; }
  .hero { padding: 34px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------ terms card */

/* Set quieter and smaller than the rest of the page: this is reference matter
   people should be able to find and read, not something competing with the
   pitch above it. */
.legal { font-size: .92rem; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 26px 34px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.legal h3 {
  font-family: var(--display);
  font-size: .95rem;
  margin: 0 0 8px;
  color: var(--text);
}

.legal p, .legal li { color: var(--sub); }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 18px; }
.legal li { margin-bottom: 5px; }
