/* Notify — shared styles.
   Deliberately dependency-free: no web fonts, no analytics, no third-party requests.
   A site for a privacy-focused app shouldn't phone home either. */

:root {
  --bg: #eef1f7;
  --surface: #ffffff;
  --surface-muted: #f4f6fb;
  --hairline: #e2e7f1;
  --ink: #16203a;
  --muted: #7b879f;
  --blue: #2f6bf0;
  --purple: #8b5cf6;
  --green: #22c55e;
  --amber: #f59e0b;
  --navy: #0b1020;
  --radius: 20px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1060px; }

/* ---------- typography, mirroring the app ---------- */

h1, h2, h3 { font-weight: 800; font-style: italic; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-style: normal; font-weight: 700; }

.rail {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 38px 0 14px;
}
.rail::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

p { margin: 0 0 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
header.site .bar { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
header.site .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-style: italic; font-size: 1.25rem; color: var(--ink); }
header.site .brand:hover { text-decoration: none; }
header.site nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
header.site nav a {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  padding: 7px 13px; border-radius: 999px;
}
header.site nav a:hover { background: var(--surface); text-decoration: none; }
header.site nav a[aria-current="page"] { background: var(--blue); color: #fff; }

.mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center;
}
.mark svg { width: 18px; height: 18px; fill: #fff; }

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

.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 11vw, 116px) 0 clamp(48px, 9vw, 92px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px);
}
.hero::before {
  width: 520px; height: 520px; right: -140px; top: -190px;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.55), transparent 62%);
}
.hero::after {
  width: 420px; height: 420px; left: -150px; bottom: -200px;
  background: radial-gradient(circle at 60% 40%, rgba(47, 107, 240, 0.45), transparent 62%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #c3cbe0; max-width: 56ch; margin: 20px 0 30px; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: #93a2c8;
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow span { color: #6c7ba6; }

.btnrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 14px;
  font-weight: 700; font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: 0.93; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.btn-ghost:hover { text-decoration: none; background: rgba(255, 255, 255, 0.06); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.grid .card h3 { margin-bottom: 6px; }
.grid .card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.chip {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 14px; font-size: 1.15rem;
}
.chip-blue { background: rgba(47, 107, 240, 0.13); }
.chip-purple { background: rgba(139, 92, 246, 0.13); }
.chip-green { background: rgba(34, 197, 94, 0.13); }
.chip-amber { background: rgba(245, 158, 11, 0.13); }

.steps { counter-reset: step; display: grid; gap: 12px; }
.steps .card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: rgba(47, 107, 240, 0.12); color: var(--blue);
  display: grid; place-items: center; margin-top: 2px;
}
.steps .card p { margin: 0; }

.note {
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 18px 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- document pages ---------- */

.doc { padding: 40px 0 20px; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc .card p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink); }
.doc li { margin-bottom: 7px; }

/* FAQ accordion — <details>, so it works with JavaScript disabled */
details.faq {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0;
  font-weight: 700; display: flex; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 1.3rem; color: var(--blue);
  transition: transform 0.18s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 0 18px; color: var(--muted); }
details.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site {
  background: var(--navy);
  color: #93a2c8;
  margin-top: 64px;
  padding: 44px 0 36px;
  font-size: 0.93rem;
}
footer.site a { color: #c3cbe0; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; }
footer.site .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-style: italic; font-size: 1.15rem; }
footer.site nav { display: flex; flex-direction: column; gap: 8px; }
footer.site .legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.85rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  header.site nav a { padding: 6px 10px; font-size: 0.85rem; }
}
