/* Syderea — static pages (index, privacy, terms). The share pages
   (functions/src/sharing.ts) inline the same tokens. */

:root {
  --bg: #0A0A0B;
  --surface: #121214;
  --placeholder: #1C1C20;
  --border: #26262A;
  --border-strong: #34343A;
  --text: #ECEAE4;
  --text-2: #B9B7B1;
  --muted: #9A9893;
  --footer: #8A8883;
  --lavender: #A9A3C8;
  --sage: #9CB39A;
  --butter: #CFCB9A;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* A few faint stars in the background. */
.sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sky i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #4A4946;
}
.sky i:nth-child(3n) { width: 3px; height: 3px; background: #3A3936; }

.wrap {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
}

/* ---- Wordmark ---- */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font: italic 500 26px/1 var(--serif); letter-spacing: .01em;
}
.wordmark .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--text);
  box-shadow: 0 0 10px 2px rgba(236, 234, 228, .45);
}

/* ---- Nav ---- */
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
nav.top .links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.top .links a { text-decoration: none; color: var(--text-2); }
nav.top .links a:hover { color: var(--text); }
@media (max-width: 560px) {
  nav.top .links a.quiet { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-secondary { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: #4A4A52; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero ---- */
.hero {
  display: grid; gap: 48px; align-items: center;
  padding: 40px 0 72px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding: 72px 0 112px; }
}
.label {
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
h1.headline {
  font: italic 500 48px/1.02 var(--serif); letter-spacing: -.01em;
  margin: 0 0 22px;
}
@media (min-width: 900px) { h1.headline { font-size: 76px; } }
.subline { color: var(--text-2); font-size: 17px; max-width: 34em; margin: 0 0 32px; }

/* Phone mockup (a real screenshot at /assets/screenshot.png covers it). */
.phone {
  position: relative; justify-self: center;
  width: min(300px, 78vw); aspect-ratio: 9 / 19.5;
  border-radius: 44px; border: 1px solid var(--border-strong);
  background: var(--bg); padding: 10px;
}
.phone .screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: #0C0C0E; border: 1px solid var(--border);
}
.phone .screen > img.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3;
}
.phone .notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #000; z-index: 2;
}
.phone .star {
  position: absolute; border-radius: 50%; background: var(--text-2);
}
.phone .star.lit { background: var(--text); box-shadow: 0 0 10px 2px rgba(236, 234, 228, .35); }
.phone .mini-card {
  position: absolute; left: 16%; right: 16%; top: 40%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.phone .mini-card .img { aspect-ratio: 1; background: var(--placeholder); display: flex;
  align-items: center; justify-content: center; padding: 14px; }
.phone .mini-card .img p { margin: 0; font: italic 500 17px/1.2 var(--serif); color: var(--text); text-align: center; }
.phone .mini-card .row { display: flex; gap: 8px; align-items: center; padding: 8px 10px; }
.phone .mini-card .row b { width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--lavender); box-shadow: 0 0 6px rgba(169, 163, 200, .5); }
.phone .mini-card .row span { height: 6px; border-radius: 3px; background: var(--border-strong); width: 50%; }
.phone .pill {
  position: absolute; left: 10%; right: 10%; bottom: 14px; height: 40px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}

/* ---- Three columns ---- */
.features {
  display: grid; gap: 36px; padding: 56px 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.features .num { font: italic 500 22px/1 var(--serif); color: var(--muted); margin: 0 0 14px; }
.features h3 { font: italic 500 30px/1.1 var(--serif); margin: 0 0 12px; }
.features p { color: var(--text-2); margin: 0; }

/* ---- Pitch ---- */
.pitch {
  text-align: center; padding: 88px 0 96px; border-top: 1px solid var(--border);
}
.pitch .quote { font: italic 400 96px/.6 var(--serif); color: var(--border-strong); margin: 0 0 12px; }
.pitch h2 {
  font: italic 500 36px/1.15 var(--serif); max-width: 18em; margin: 0 auto 18px;
}
@media (min-width: 900px) { .pitch h2 { font-size: 46px; } }
.pitch p { color: var(--text-2); margin: 0 0 30px; }

/* ---- Footer ---- */
footer {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
  padding: 28px 0 40px; border-top: 1px solid var(--border);
  color: var(--footer); font-size: 14px;
}
footer a { text-decoration: none; color: var(--footer); }
footer a:hover { color: var(--text-2); }

/* ---- Legal pages ---- */
.doc { max-width: 680px; margin: 0 auto; padding: 40px 0 80px; }
.doc h1 { font: italic 500 52px/1.05 var(--serif); margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font: italic 500 28px/1.2 var(--serif); margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc .placeholder {
  border: 1px dashed var(--border-strong); border-radius: 14px; padding: 18px 20px;
  color: var(--muted); font-size: 15px;
}
