@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

/* ============================================================
   Zodiux — "cosmic oracle" design system
   Pinned night/cosmic sky (no time-of-day switching): a deep
   indigo nebula, a layered starfield, a twinkle pass and the
   occasional shooting star. Bounded frosted glass on the big
   panels; lighter translucent surfaces on repeated inner cards
   to stay light on the GPU. Gold is reserved for the one true
   CTA. Atmosphere machinery ported from launch-window.net.
   ============================================================ */

:root {
  color-scheme: dark;              /* native date/time pickers + scrollbars render dark */

  --bg: #0c0a1a;                   /* matches <meta theme-color> */
  --text: #f0ecff;
  --muted: #a79fc8;
  --faint: #6f6796;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);

  /* bounded frosted-glass panel (big containers only) */
  --panel: rgba(22, 17, 46, 0.55);
  --panel-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  /* lighter translucent surface for repeated inner cards / inputs */
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);

  --gold: #e7b34a;
  --gold-bg: color-mix(in srgb, var(--gold) 14%, transparent);
  --gold-glow: rgba(231, 179, 74, 0.45);
  --peri: #9b8cff;                 /* used by the chart-wheel SVG + retrograde/aspect tags */
  --peri-bg: color-mix(in srgb, var(--peri) 16%, transparent);
  --rose: #ef7a90;                 /* errors + hard aspects */

  --radius: 14px;
  --radius-sm: 9px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --maxw: 680px;

  /* layered starfield (static base) */
  --stars:
    radial-gradient(1px 1px at 24px 38px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 130px 90px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 80px 160px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 190px 50px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 30px 200px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 160px 180px, rgba(255, 255, 255, 0.35), transparent);
  /* brighter, faintly-tinted stars for the twinkle pass */
  --stars2:
    radial-gradient(1.4px 1.4px at 60px 70px, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.6px 1.6px at 160px 30px, rgba(201, 178, 255, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 110px 150px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 24px 120px, rgba(255, 224, 178, 0.85), transparent),
    radial-gradient(1.3px 1.3px at 225px 110px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 285px 180px, rgba(190, 200, 255, 0.85), transparent);

  /* the cosmic nebula behind everything */
  --sky:
    radial-gradient(1200px 680px at 50% -12%, rgba(125, 92, 220, 0.20), transparent 60%),
    radial-gradient(820px 560px at 88% 4%, rgba(231, 179, 74, 0.07), transparent 58%),
    radial-gradient(980px 760px at 8% 102%, rgba(99, 84, 200, 0.13), transparent 60%),
    radial-gradient(1400px 1100px at 50% 38%, #150f30 0%, #100b24 48%, #0c0a1a 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: var(--sky);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* static starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image: var(--stars);
  background-size: 220px 220px;
}
/* twinkle pass — brighter stars that gently pulse */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--stars2);
  background-size: 300px 300px;
  opacity: 0.85;
  animation: twinkle 4.2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.3; }
}

/* occasional shooting stars */
.sky-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky-fx i {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.55);
  opacity: 0;
}
.sky-fx i::after {
  content: "";
  position: absolute;
  top: 50%; left: 2px;
  width: 92px; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
}
.sky-fx i:nth-child(1) { top: 8%;  left: 80%; animation: shoot 13s ease-in 5s infinite; }
.sky-fx i:nth-child(2) { top: 18%; left: 94%; animation: shoot 19s ease-in 12s infinite; }
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-29deg); }
  2%   { opacity: 1; }
  10%  { opacity: 0; transform: translate(-340px, 190px) rotate(-29deg); }
  100% { opacity: 0; transform: translate(-340px, 190px) rotate(-29deg); }
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- header ---------- */
.site-header { max-width: var(--maxw); margin: 0 auto; padding: 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--text); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.nav { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); }
.nav a { color: var(--muted); } .nav a:hover { color: var(--text); text-decoration: none; }

#main { max-width: var(--maxw); margin: 0 auto; padding: 6px 18px 48px; }

/* ---------- hero (text floats on the cosmos, over a faint astrolabe ring) ---------- */
.hero { position: relative; text-align: center; padding: 30px 0 26px; }
.hero-wheel {
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  transform: translate(-50%, -50%);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  animation: spin 120s linear infinite;
}
.hero-wheel svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero h1, .hero p { position: relative; z-index: 1; }
.hero h1 { font-size: 2.7rem; margin: 4px 0 12px; line-height: 1.08; }
.hero p { color: var(--muted); font-size: 1.02rem; margin: 0 auto; max-width: 31rem; }

/* ---------- frosted-glass panels (bounded: big containers only) ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: var(--panel-shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg.full { grid-column: 1 / -1; }
label { font-size: .76rem; color: var(--muted); }
input, select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 13px;
  font: inherit; font-size: .92rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder { color: rgba(240, 236, 255, 0.42); }
input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--gold-bg), 0 0 18px rgba(231, 179, 74, 0.16);
}
::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.5; cursor: pointer; }
::-webkit-calendar-picker-indicator:hover { opacity: 0.85; }
.hint { font-size: .72rem; color: var(--faint); }

.action-row { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-err { color: var(--rose); font-size: .82rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .92rem; font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 17px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .14s ease, border-color .14s ease, transform .05s ease;
}
.btn:hover { background: var(--surface); border-color: var(--border-strong); text-decoration: none; }
.btn:active { transform: scale(.985); }
/* the one true CTA: glowing gold, reserved */
.btn-primary {
  background: linear-gradient(135deg, #f2c66b 0%, #e7b34a 52%, #d49a2c 100%);
  color: #1a1206;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(231, 179, 74, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(231, 179, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-block { width: 100%; }
.btn-wide { min-width: 280px; }

/* ---------- results: big three ---------- */
#result { margin-top: 24px; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.b3 {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 14px; text-align: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.b3 .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.b3 .glyph { font-size: 1.7rem; color: var(--gold); margin: 5px 0; font-family: var(--serif); text-shadow: 0 0 18px var(--gold-glow); }
.b3 .sign { font-family: var(--serif); font-size: 1.15rem; }

.read { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-top: 14px; }
.read h3 { font-size: 1.08rem; margin: 0 0 4px; }
.read .who { font-size: .76rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.read p { margin: 6px 0 0; font-size: .95rem; color: var(--text); }

.wheel-wrap { display: flex; justify-content: center; margin: 20px 0; filter: drop-shadow(0 0 26px rgba(123, 92, 220, 0.25)); }
.placements { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pl { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; }
.pl .p-name { font-size: .85rem; }
.pl .p-pos { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl .p-retro { color: var(--peri); font-size: .72rem; margin-left: 4px; }

.section-h { font-family: var(--serif); font-size: 1.18rem; margin: 26px 0 10px; }
.aspects { display: flex; flex-direction: column; gap: 7px; }
.asp { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .84rem; }
.asp .tag { font-size: .72rem; color: var(--peri); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }

/* poster + hard-truth: soft gold-tinted glass */
.poster-card, .truth-card {
  margin-top: 22px;
  background: var(--gold-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.poster-card h3 { font-size: 1.08rem; margin: 0 0 4px; }
.poster-card p { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.poster-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- "go deeper" email gate (velvet rope — waitlist, no fake content) ---------- */
.unlock-card {
  position: relative;
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 0 44px rgba(231, 179, 74, 0.13), var(--panel-shadow);
  overflow: hidden;
}
.unlock-card .uc-eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.unlock-card h3 { font-size: 1.4rem; margin: 7px 0 6px; }
.unlock-card > p { color: var(--muted); font-size: .9rem; margin: 0 auto 16px; max-width: 34rem; }
.locked-list { list-style: none; margin: 0 auto 18px; padding: 0; display: grid; gap: 9px; text-align: left; max-width: 340px; }
.locked-list li { display: flex; align-items: center; gap: 11px; font-size: .9rem; color: var(--text); }
.locked-list li::before { content: "✦"; color: var(--gold); font-size: .9rem; filter: drop-shadow(0 0 8px var(--gold-glow)); }
.unlock-form { display: flex; gap: 10px; max-width: 430px; margin: 0 auto; flex-wrap: wrap; }
.unlock-form input { flex: 1; min-width: 200px; }
.unlock-note { font-size: .72rem; color: var(--faint); margin-top: 11px; }
.unlock-done { color: var(--gold); font-size: .95rem; font-family: var(--serif); margin: 6px 0 0; }

/* ---------- city typeahead ---------- */
.cp-wrap { position: relative; display: block; width: 100%; }
.cp-wrap > input { width: 100%; }
.cp-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 40;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  max-height: 264px; overflow-y: auto; overscroll-behavior: contain;
}
.cp-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 13px; cursor: pointer; font-size: .9rem; }
.cp-item + .cp-item { border-top: 1px solid var(--border); }
.cp-item.active, .cp-item:hover { background: var(--gold-bg); }
.cp-city { color: var(--text); }
.cp-reg { color: var(--muted); font-size: .78rem; margin-left: auto; white-space: nowrap; }
.cp-note { padding: 11px 13px; font-size: .82rem; color: var(--faint); }

/* ---------- ad slot (reserved, CLS-safe; labeled "Advertisement") ---------- */
.ad-slot { margin: 24px 0; min-height: 120px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--faint); font-size: .78rem; background: var(--surface); }

.tone-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.tone-row select { padding: 5px 8px; font-size: .78rem; }

.disclaimer { font-size: .75rem; color: var(--faint); text-align: center; margin-top: 18px; }
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: 24px 18px 40px; font-size: .76rem; color: var(--faint); text-align: center; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 460px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-wheel { width: 290px; height: 290px; }
  .form-grid { grid-template-columns: 1fr; }
  .placements { grid-template-columns: 1fr; }
  .big3 { grid-template-columns: 1fr; }
  .btn-wide { min-width: 0; width: 100%; }
}

/* ---------- sign pages ---------- */
.sign-hero { text-align: center; padding: 14px 0 18px; }
.sign-glyph { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: 1; text-shadow: 0 0 30px var(--gold-glow); }
.sign-hero h1 { font-size: 2.1rem; margin: 8px 0 4px; }
.sign-sub { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.sign-facts { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: .82rem; color: var(--muted); }
.sign-facts b { color: var(--text); font-weight: 600; margin-right: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mini-h { font-size: .95rem; margin: 0 0 8px; }
.ul { margin: 0; padding-left: 18px; }
.ul li { font-size: .9rem; color: var(--muted); margin: 3px 0; }
.truth-card .who { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.truth-card p { font-family: var(--serif); font-size: 1.18rem; margin: 6px 0 0; }

/* "or just read your sign" block on the homepage */
.signs-cta { margin-top: 32px; text-align: center; }

/* zodiac glyphs — freed from their boxes, floating on the sky */
.sign-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.sign-strip-center { justify-content: center; }
.sign-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--muted);
  font-size: 1.55rem;
  background: transparent; border: none;
  transition: transform .16s ease, color .16s ease, text-shadow .16s ease;
}
.sign-chip:hover, .sign-chip:focus-visible {
  color: var(--gold);
  transform: scale(1.18);
  text-shadow: 0 0 18px var(--gold-glow);
  text-decoration: none;
  outline: none;
}
.sign-chip.on { color: var(--gold); text-shadow: 0 0 14px var(--gold-glow); }
@media (max-width: 460px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- compatibility ---------- */
.mode-toggle { display: flex; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mode-btn { font: inherit; font-size: .85rem; font-weight: 500; border: none; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: color .14s ease, background .14s ease, box-shadow .14s ease; }
/* selected state is a quiet gold outline — solid gold stays reserved for the CTA */
.mode-btn.on { background: var(--gold-bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.two-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-people .fg { margin-top: 8px; }
.cta-center { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.compat-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 4px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--panel-shadow); }
.overall { text-align: center; }
.o-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1; text-shadow: 0 0 24px var(--gold-glow); }
.o-num span { font-size: 1.2rem; }
.o-head { font-family: var(--serif); font-size: 1.05rem; color: var(--text); margin-top: 2px; }
.people { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.mini-person { background: var(--surface-2); border-radius: var(--radius-sm); padding: 9px 12px; }
.mp-name { font-weight: 600; font-size: .9rem; }
.mp-row { font-size: .8rem; color: var(--muted); margin-top: 1px; }
.bars { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-l { font-size: .8rem; color: var(--muted); width: 124px; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--peri), var(--gold)); border-radius: 999px; }
.bar-v { font-size: .8rem; color: var(--text); width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.asp.good .tag { color: var(--gold); }
.asp.bad .tag { color: var(--rose); }
.big-ul li { font-size: .95rem; color: var(--text); margin: 6px 0; }
@media (max-width: 460px) { .two-people { grid-template-columns: 1fr; } }

/* ---------- accessibility guards ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* respect users who ask for less transparency — drop the blur, keep a solid surface */
@media (prefers-reduced-transparency: reduce) {
  .card, .compat-head, .unlock-card, .poster-card, .truth-card, .b3, .btn, .mode-toggle {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  :root { --panel: #16132b; --surface: #1b1733; --surface-2: #221d3f; }
}

/* Auto-ads phase: hide reserved manual slots; Google auto-places its own.
   Remove (and add data-ad-slot units) when we switch to manual units. */
.ad-slot { display: none !important; }
