/* Overhead pages. One night-sky palette, one type family, no outside requests. */
:root {
  --night: #070b1e;
  --deep: #0d1433;
  --dusk: #1b2757;
  --haze: #33427a;
  --star: #f5f1e4;
  --soft: #aab3d4;
  --gold: #ecc66b;
  --line: rgba(170, 179, 212, 0.22);
  --face: "Avenir Next", "Avenir", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  font-family: var(--face);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--star);
  background:
    radial-gradient(120% 70% at 78% 0%, var(--dusk) 0%, transparent 62%),
    linear-gradient(180deg, var(--deep) 0%, var(--night) 60rem);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.top a:hover { color: var(--star); }
.brand { gap: 0.6rem; font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

/* Hero: words on the left, the live chart on the right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
}
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9.5vw, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.lede {
  margin: 1.4rem 0 0;
  max-width: 27rem;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.4;
  color: var(--star);
}
.facts {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 1rem;
}
.facts li { padding-block: 0.15rem; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.8rem 0 0; max-width: 27rem; }
.try span { color: var(--soft); font-size: 0.95rem; }
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.4rem;
  font-weight: 700;
  color: var(--night);
  background: var(--gold);
  border-radius: 999px;
  text-decoration: none;
}
.cta:hover { background: #f5d588; }
.status {
  margin: 1.8rem 0 0;
  max-width: 27rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.98rem;
}
.status strong { color: var(--gold); font-weight: 600; }

/* The chart */
.chart { margin: 0; }
.dome {
  position: relative;
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
  aspect-ratio: 1;
}
.dome canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  max-width: 38rem;
  margin: 0.75rem auto 0;
}
.clock output {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.clock button {
  min-height: 44px;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--star);
  background: rgba(245, 241, 228, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.clock button:hover { background: rgba(245, 241, 228, 0.18); }
.clock button[disabled] { opacity: 0.45; cursor: default; }
.clock input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--gold);
  background: transparent;
}
.chart figcaption {
  max-width: 38rem;
  margin: 0.1rem auto 0;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Sections */
section { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 38rem; }
.quiet { color: var(--soft); }

/* Screens: three real pictures from the app */
.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid rgba(245, 241, 228, 0.16);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.screens li:nth-child(2) { margin-top: clamp(0rem, 4vw, 3.5rem); }
.screens h3 { margin-top: 1.1rem; }
.screens p { margin: 0; color: var(--soft); font-size: 0.98rem; }

/* The privacy ledger: what stays, what goes */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 5rem);
}
.ledger ul, .plain { margin: 0; padding: 0; list-style: none; }
.ledger li, .plain li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  max-width: 38rem;
}
.ledger li:last-child, .plain li:last-child { border-bottom: 1px solid var(--line); }
.ledger strong, .plain strong { font-weight: 600; }
.after { margin-top: 1.6rem; }

.mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.15rem; font-weight: 600; }

footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.85rem;
}
footer p { max-width: none; margin: 0 0 0.4rem; }
footer a { color: var(--soft); }

/* Reading pages (privacy) */
.doc { max-width: 42rem; padding-block: clamp(1rem, 4vw, 3rem) 4rem; }
.doc h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1; }
.doc h2 { margin: 2.6rem 0 0.8rem; font-size: 1.45rem; }
.doc .asof { margin: 1.4rem 0 1.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.98rem; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; }
  .chart { order: -1; }
  .dome { max-width: 30rem; }
  .ledger { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .screens {
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 1rem;
  }
  .screens li { scroll-snap-align: center; }
  .screens li:nth-child(2) { margin-top: 0; }
}
