/* Astrologija — landing and legal pages.
   Tokens mirror mobile/src/theme/tokens.ts (docs/design-guidelines.md §2–5). */

:root {
  --bg: #0b0d1a;
  --bg-top: #1b1442;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-solid: #1a1e33;
  --line: rgba(255, 255, 255, 0.10);
  --ink: #dee1fd;
  --ink2: #d2c5b0;
  --ink3: rgba(222, 225, 253, 0.62);
  --accent: #ffd27e;
  --button-bg: #e8b54d;
  --button-ink: #261900;
  --error: #ffb4ab;
  --success: #6fb58f;
  --glow: rgba(139, 92, 246, 0.15);
  --radius-card: 24px;
  --radius-input: 16px;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg) linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 60%) no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Starfield: two layers of tiny radial dots, drifting nowhere. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%,  rgba(255,255,255,.30) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 32%, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 55%, rgba(255,255,255,.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, rgba(255,255,255,.26) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 82%, rgba(255,255,255,.16) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 74%, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 92%, rgba(255,255,255,.14) 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 86%, rgba(255,255,255,.20) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,.14) 50%, transparent 51%);
  z-index: 0;
}

/* Single violet bloom, top right — the same one the app draws. */
body::after {
  content: "";
  position: fixed;
  top: -140px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
}

/* ---- Header ------------------------------------------------------------ */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img { width: 32px; height: 32px; border-radius: 9px; }

.top nav a {
  color: var(--ink3);
  text-decoration: none;
  font-size: 15px;
  margin-left: 20px;
}
.top nav a:hover { color: var(--ink); }

/* ---- Type -------------------------------------------------------------- */

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 0; }
h3 { font-size: 20px; }
p  { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink2); max-width: 46ch; }
.muted { color: var(--ink3); font-size: 15px; }
.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
a { color: var(--accent); }

/* ---- Hero -------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 1fr; padding: 72px 0 96px; }
}

.phone {
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 9 / 18.5;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f1750, #0b0d1a);
  box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.03);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.phone .medal {
  width: 72px; height: 72px; margin: 26px auto 4px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 34px; color: var(--accent);
  background: rgba(255,210,126,.10);
  border: 1px solid rgba(255,210,126,.30);
  box-shadow: 0 0 24px rgba(232,181,77,.35);
}
.phone .ph-title { text-align: center; font-weight: 600; font-size: 19px; }
.phone .ph-sub { text-align: center; color: var(--ink3); font-size: 13px; margin-top: -8px; }
.phone .ph-card {
  background: rgba(20,22,44,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink2);
}
.phone .ph-card b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.phone .ph-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 2px; border-top: 1px solid var(--line); }
.phone .ph-row span:first-child { color: var(--ink); }
.phone .ph-row span:last-child { color: var(--ink3); }
.phone .ph-glyph { color: var(--accent); margin-right: 6px; }

/* ---- Waitlist form ----------------------------------------------------- */

.waitlist { margin-top: 28px; max-width: 460px; }
.waitlist form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .waitlist form { flex-direction: row; } }

.waitlist input {
  /* flex-basis auto: with `flex: 1` the column layout collapses the height. */
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(20,22,44,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  outline: none;
}
.waitlist input::placeholder { color: var(--ink3); }
.waitlist input:focus { border-color: rgba(255,210,126,.55); box-shadow: 0 0 0 3px rgba(255,210,126,.15); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--button-ink);
  background: var(--button-bg);
  box-shadow: 0 0 18px rgba(232,181,77,.35);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.waitlist .note { margin: 10px 2px 0; font-size: 14px; color: var(--ink3); min-height: 1.4em; }
.waitlist .note.ok { color: var(--success); }
.waitlist .note.err { color: var(--error); }
.waitlist .fine { font-size: 13px; color: var(--ink3); margin-top: 8px; }

/* Honeypot: hidden from people, filled in by bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Cards ------------------------------------------------------------- */

.cards { display: grid; gap: 20px; margin: 0 0 72px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.card .glyph {
  font-size: 30px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(232,181,77,.5);
  margin-bottom: 10px;
  font-variant-emoji: text;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: 15px; margin: 0; }

/* ---- Steps / FAQ ------------------------------------------------------- */

.section { padding: 0 0 72px; }
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 4px 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,210,126,.35);
  color: var(--accent); font-weight: 600; font-size: 14px;
  margin-bottom: 10px;
}
.step p { color: var(--ink2); font-size: 15px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink2); font-size: 15px; margin: 10px 0 0; max-width: var(--measure); }

/* ---- Footer ------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--ink3);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--ink3); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

/* ---- Legal pages ------------------------------------------------------- */

.doc { padding: 24px 0 80px; max-width: var(--measure); }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 2em; }
.doc p, .doc li { color: var(--ink2); font-size: 16px; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--ink3); font-size: 14px; margin-bottom: 2em; }
.doc .lang { font-size: 14px; margin-bottom: 8px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0 1.5em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink2); }
.doc th { color: var(--ink); font-weight: 500; }
.doc .todo { color: var(--accent); }
