/* Orbit's pages (privacy, support, terms): the app's dark slate, its soft shards of colour at the edges, the orb with
   its planets, Newsreader for the voice and Geist for the rest. Plain CSS, no build step: public/ is served as is. */

:root {
  --bg: #0f131b;
  --ink: #ecebf2;
  --muted: #a2a4ae;
  --line: rgba(230, 232, 240, 0.12);
  --card: rgba(255, 255, 255, 0.045);
  --lav: #846ce2;
  --rose: #d05c92;
  --pale: #d6ccff;
  --deep: #141b2b;
  --heart: #483a8c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--ink); }

body {
  font: 400 17px/1.6 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(132, 108, 226, 0.45); }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(214, 204, 255, 0.45); }
a:hover { text-decoration-color: var(--pale); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--pale); outline-offset: 3px; border-radius: 8px; }

/* The shards: a few soft, angular patches of the orb's colours, kept to the edges. */
.shards { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
/* The blur is on each patch, the shape on its inside: clipped after blurring, the edges would come back hard. */
.shards i { position: absolute; display: block; filter: blur(48px); opacity: 0.6; }
.shards i::before { content: ''; position: absolute; inset: 0; background: var(--c); clip-path: var(--p); }
.shards i:nth-child(1) { left: -12%; top: -8%; width: 62%; height: 26%; --c: #58489a; --p: polygon(0 0, 100% 10%, 72% 70%, 18% 100%, 0 60%); }
.shards i:nth-child(2) { right: -10%; top: 18%; width: 30%; height: 34%; --c: #683658; --p: polygon(30% 0, 100% 12%, 100% 100%, 0 78%); }
.shards i:nth-child(3) { left: -14%; bottom: 10%; width: 32%; height: 30%; --c: #683658; --p: polygon(0 10%, 88% 0, 64% 100%, 0 86%); opacity: 0.45; }
.shards i:nth-child(4) { right: -16%; bottom: -10%; width: 70%; height: 28%; --c: #58489a; --p: polygon(14% 30%, 100% 0, 100% 100%, 0 100%); }

main { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 56px 22px 96px; }

/* The orb and its planets. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 40px; }
.system { position: relative; width: 300px; height: 150px; transform: rotate(-9deg); }
.ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); }
.ring.r1 { width: 140px; height: 38px; }
.ring.r2 { width: 220px; height: 60px; }
.ring.r3 { width: 296px; height: 82px; }
.orb {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; overflow: hidden;
  background: var(--deep);
  box-shadow: 0 0 34px rgba(132, 108, 226, 0.55), 0 0 70px rgba(208, 92, 146, 0.22);
  transform: rotate(9deg);
}
.orb::before, .orb::after {
  content: ''; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, var(--lav) 18%, transparent 34%, var(--rose) 56%, transparent 72%, var(--pale) 86%, transparent);
  filter: blur(9px); opacity: 0.85; animation: spin 9s linear infinite;
}
.orb::after { background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), transparent 32%), radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.55) 100%); filter: none; opacity: 1; inset: 0; animation: none; }
/* A planet: an arm that turns inside an orbit flattened to an ellipse, the planet turned back so it stays round. */
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit.o1 { transform: scaleY(0.27); }
.orbit.o2 { transform: scaleY(0.27); }
.orbit.o3 { transform: scaleY(0.277); }
.arm { position: absolute; left: 0; top: 0; animation: spin var(--t) linear infinite; animation-delay: var(--d); }
.planet {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); left: var(--r); top: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.6), transparent 45%), var(--c);
  box-shadow: 0 0 calc(var(--s) * 0.9) var(--c);
  transform: scaleY(3.7);
  animation: unspin var(--t) linear infinite; animation-delay: var(--d);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { from { transform: rotate(0deg) scaleY(3.7); } to { transform: rotate(-360deg) scaleY(3.7); } }

.wordmark { font: 500 52px/1.05 'Newsreader', Georgia, serif; letter-spacing: -0.02em; margin: 10px 0 0; }
.kicker-free { color: var(--muted); margin: 0; font-size: 16px; }

h1 { font: 500 40px/1.08 'Newsreader', Georgia, serif; letter-spacing: -0.015em; margin: 0 0 10px; text-wrap: balance; }
h2 { font: 500 26px/1.15 'Newsreader', Georgia, serif; margin: 40px 0 8px; text-wrap: balance; }
p, li { color: var(--ink); }
.muted { color: var(--muted); }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 6px; margin-top: 24px; }
.card h2 { margin-top: 0; }

.button {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #141518; font-weight: 500; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s ease-out;
}
.button:active { transform: scale(0.97); }

nav.pages { display: flex; gap: 18px; justify-content: center; margin-top: 64px; font-size: 15px; }
nav.pages a { color: var(--muted); text-decoration: none; }
nav.pages a[aria-current='page'] { color: var(--ink); }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

@media (max-width: 420px) {
  .system { transform: rotate(-9deg) scale(0.86); }
  h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb::before, .arm, .planet { animation: none; }
}
