/* ============================================================
   ZodiacSync — Cosmic Night theme, polished
   Canvas starfield · Playfair/Outfit · spring easing · reveal
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0a0918;
  --bg-2: #131029;
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .08);
  --ink: #eceaff;
  --ink-soft: #a29cc9;
  --accent: #9d8bff;
  --accent-deep: #6d5ae0;
  --gold: #f0cd6a;
  --gold-soft: rgba(240, 205, 106, .12);
  --line: rgba(255, 255, 255, .11);
  --good: #5fd6a2;
  --warn: #ffab6b;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --glow-violet: 0 0 24px rgba(157, 139, 255, .35);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Segoe UI', 'PingFang SC', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 620px at 85% -5%, rgba(109, 90, 224, .24), transparent 60%),
    radial-gradient(900px 550px at -10% 32%, rgba(240, 205, 106, .075), transparent 55%),
    radial-gradient(700px 500px at 55% 110%, rgba(157, 90, 200, .1), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(240, 205, 106, .35); color: #fff; }

/* Scrollbar (Webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(157, 139, 255, .3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(157, 139, 255, .5); }

/* --- Canvas starfield --- */
#sky {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* Everything sits above the sky */
header.site, main, footer.site { position: relative; z-index: 1; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Header */
header.site {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 24, .7);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: .5px;
}
.brand span {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
nav.site-nav { float: right; font-size: 14px; padding-top: 6px; }
nav.site-nav a {
  color: var(--ink-soft); text-decoration: none; margin-left: 20px;
  position: relative; transition: color .2s ease;
}
nav.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width .3s var(--ease);
}
nav.site-nav a:hover { color: var(--gold); }
nav.site-nav a:hover::after { width: 100%; }

/* Hero */
.hero { text-align: center; padding: 84px 0 48px; position: relative; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 50px);
  font-weight: 700;
  line-height: 1.16;
  max-width: 740px; margin: 0 auto 18px;
  letter-spacing: -.5px;
}
.hero h1 em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(110deg, var(--accent) 15%, #d3b0ff 45%, var(--gold) 85%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) { .hero h1 em { animation: none; } }
.hero .sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto; font-size: 17px; }
.hero .stars {
  font-size: 26px; letter-spacing: 16px; margin-bottom: 20px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(240, 205, 106, .6), 0 0 36px rgba(240, 205, 106, .3);
}

/* Floating zodiac glyphs in hero */
.hero-glyphs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-glyphs span {
  position: absolute;
  left: var(--gx); top: var(--gy);
  font-size: var(--gs, 34px);
  color: rgba(240, 205, 106, .28);
  text-shadow: 0 0 18px rgba(240, 205, 106, .25);
  animation: floaty 7s ease-in-out var(--gd, 0s) infinite alternate;
}
.hero-glyphs span:nth-child(even) { color: rgba(157, 139, 255, .3); text-shadow: 0 0 18px rgba(157, 139, 255, .25); }
@keyframes floaty {
  from { transform: translateY(-10px) rotate(-6deg); }
  to   { transform: translateY(12px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-glyphs span { animation: none; } }

/* Cards — glassmorphism */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px;
  margin: 24px 0;
}
.results-anim { animation: fadeUp .7s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }
.side-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--gold); font-weight: 600; margin-bottom: 12px; display: block;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .3px; }
.field input {
  width: 100%; padding: 13px 16px; font-size: 15.5px;
  font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255, 255, 255, .05); color: var(--ink);
  transition: border-color .25s ease, box-shadow .3s var(--ease), background .25s ease;
}
.field input::placeholder { color: rgba(162, 156, 201, .55); }
.field input:hover { background: rgba(255, 255, 255, .07); }
.field input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 4px rgba(157, 139, 255, .18), var(--glow-violet);
}

.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #8a76ff, var(--accent-deep) 55%, #b8903f);
  background-size: 180% 180%;
  color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .3px;
  padding: 15px 36px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(109, 90, 224, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--ease), box-shadow .3s ease, background-position .5s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.015);
  background-position: 90% 50%;
  box-shadow: 0 14px 38px rgba(109, 90, 224, .55), 0 0 26px rgba(157, 139, 255, .4);
}
.btn:active { transform: translateY(0) scale(.99); }
.btn-full { width: 100%; margin-top: 10px; }

/* Results */
#results { display: none; }
.score-ring-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.ring {
  position: relative; width: 176px; height: 176px;
  filter: drop-shadow(0 0 16px rgba(157, 139, 255, .4));
  animation: ringPulse 3.2s ease-in-out infinite alternate;
}
@keyframes ringPulse {
  from { filter: drop-shadow(0 0 12px rgba(157, 139, 255, .3)); }
  to   { filter: drop-shadow(0 0 24px rgba(240, 205, 106, .4)); }
}
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }
.ring svg { transform: rotate(-90deg); }
.ring .ring-bg { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 12; }
.ring .ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring .ring-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.ring .ring-num b { font-size: 48px; font-weight: 700; color: var(--ink); text-shadow: 0 0 20px rgba(240, 205, 106, .45); }
.ring .ring-num small { font-size: 11.5px; color: var(--ink-soft); letter-spacing: 2.5px; text-transform: uppercase; }
.verdict { max-width: 330px; }
.verdict h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 5px; letter-spacing: -.3px; }
.verdict .tone { color: var(--gold); font-size: 14px; font-style: italic; font-family: var(--font-display); }

.sign-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.sign-chip {
  background: var(--surface-strong);
  border: 1px solid var(--line); border-radius: 15px;
  padding: 15px 21px; text-align: center; min-width: 134px;
  transition: transform .3s var(--ease), border-color .25s ease, box-shadow .3s ease;
}
.sign-chip:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow-violet); }
.sign-chip .sym { font-size: 27px; color: var(--gold); text-shadow: 0 0 10px rgba(240, 205, 106, .5); }
.sign-chip b { display: block; font-size: 15px; }
.sign-chip small { color: var(--ink-soft); font-size: 12px; display: block; }
.sign-chip .lp { margin-top: 6px; font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .5px; }

.reading p { margin: 12px 0; font-size: 15.5px; color: rgba(236, 234, 255, .88); }
.reading h3 { font-family: var(--font-display); margin: 20px 0 4px; font-size: 19px; color: var(--gold); letter-spacing: -.2px; }
.hl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
@media (max-width: 640px) { .hl-cols { grid-template-columns: 1fr; } }
.hl-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 17px;
  transition: transform .3s var(--ease);
}
.hl-box:hover { transform: translateY(-3px); }
.hl-box h4 { font-size: 14px; margin-bottom: 9px; letter-spacing: .5px; }
.hl-box.strengths { border-color: rgba(95, 214, 162, .35); }
.hl-box.strengths h4 { color: var(--good); }
.hl-box.challenges { border-color: rgba(255, 171, 107, .35); }
.hl-box.challenges h4 { color: var(--warn); }
.hl-box ul { padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.hl-box li { margin-bottom: 6px; }

/* Locked report — gilded vault */
.locked {
  position: relative; margin-top: 24px;
  border: 1px solid rgba(240, 205, 106, .5); border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(240, 205, 106, .1), transparent 70%),
    linear-gradient(180deg, rgba(240, 205, 106, .07), rgba(255, 255, 255, .03));
  padding: 28px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(240, 205, 106, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.locked::before {
  content: '✦';
  position: absolute; top: -14px; right: 18px;
  font-size: 60px; color: rgba(240, 205, 106, .16);
  pointer-events: none;
}
.locked h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 6px; color: var(--gold); letter-spacing: -.3px; }
.locked .outline li {
  list-style: none; padding: 12px 16px; margin: 8px 0;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px; font-size: 14px;
  transition: border-color .25s ease, background .25s ease;
}
.locked .outline li:hover { border-color: rgba(240, 205, 106, .4); background: rgba(255, 255, 255, .07); }
.locked .outline li b { display: block; color: var(--ink); font-size: 14.5px; }
.locked .outline li span { color: var(--ink-soft); filter: blur(4px); user-select: none; }
.locked .cta-row { text-align: center; margin-top: 16px; }
.locked .price-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.waitlist { max-width: 380px; margin: 14px auto 0; display: none; }
.waitlist input {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(240, 205, 106, .5);
  border-radius: 13px; font-size: 15px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .05); color: var(--ink);
}
.waitlist input:focus { outline: none; box-shadow: 0 0 0 4px rgba(240, 205, 106, .18); }
.waitlist .ok { color: var(--good); font-weight: 600; text-align: center; }

/* Sections */
section.plain { padding: 46px 0; }
section.plain h2 {
  font-family: var(--font-display);
  font-size: 28px; margin-bottom: 16px; letter-spacing: -.4px;
}
section.plain h2::after {
  content: ''; display: block; width: 52px; height: 2px; margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(157, 139, 255, .5);
}
section.plain p.lede { color: var(--ink-soft); max-width: 640px; margin-bottom: 20px; font-size: 15.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 20px;
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(157, 139, 255, .45); box-shadow: var(--glow-violet); }
.step b.num {
  color: var(--gold); font-family: var(--font-display); font-size: 22px; display: block;
  text-shadow: 0 0 12px rgba(240, 205, 106, .4);
}
.step h3 { font-size: 16px; margin: 6px 0; font-weight: 600; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* Pair grid */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pair-link {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 15px; text-decoration: none;
  color: var(--ink); font-size: 14px;
  transition: border-color .2s ease, color .2s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.pair-link:hover {
  border-color: var(--accent); color: var(--gold);
  transform: translateY(-3px); box-shadow: var(--glow-violet);
}
.pair-link small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 15px 19px; margin-bottom: 10px;
  transition: border-color .25s ease, background .25s ease;
}
.faq details[open] { border-color: rgba(157, 139, 255, .45); background: rgba(255, 255, 255, .06); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15px; transition: color .2s ease; }
.faq summary:hover { color: var(--gold); }
.faq details p { margin-top: 9px; font-size: 14px; color: var(--ink-soft); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line); padding: 28px 0 42px; margin-top: 44px;
  font-size: 13px; color: var(--ink-soft);
  background: linear-gradient(180deg, transparent, rgba(157, 139, 255, .05));
}
footer.site a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
footer.site a:hover { color: var(--gold); }

/* Pair pages */
.pair-hero { padding: 52px 0 24px; text-align: center; }
.pair-hero .big-syms {
  font-size: 46px; letter-spacing: 10px; color: var(--gold);
  text-shadow: 0 0 16px rgba(240, 205, 106, .5), 0 0 44px rgba(240, 205, 106, .25);
}
.pair-hero h1 { font-family: var(--font-display); font-size: clamp(27px, 4.4vw, 38px); margin: 12px 0 5px; letter-spacing: -.4px; }
.pair-hero .dates { color: var(--ink-soft); font-size: 14px; }
.pair-score {
  display: inline-block; margin-top: 18px;
  background: var(--surface-strong); border: 1px solid rgba(240, 205, 106, .5);
  border-radius: 999px; padding: 11px 26px;
  font-family: var(--font-display); font-size: 18px;
  box-shadow: 0 0 26px rgba(240, 205, 106, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.pair-score b {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.pair-score i { color: var(--ink-soft); font-family: var(--font-body); font-style: normal; font-size: 15px; }
.sec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 27px 31px; margin: 18px 0;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .35s var(--ease), border-color .3s ease;
}
.sec:hover { transform: translateY(-3px); }
.sec h2 { font-family: var(--font-display); font-size: 21.5px; margin-bottom: 9px; color: var(--gold); letter-spacing: -.3px; }
.sec p { font-size: 15px; color: rgba(236, 234, 255, .88); margin: 8px 0; }
.sec ul { padding-left: 18px; font-size: 14.5px; color: var(--ink-soft); }
.sec li { margin: 7px 0; }
.sec.good { border-left: 4px solid var(--good); }
.sec.hard { border-left: 4px solid var(--warn); }
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding-top: 18px; }
.breadcrumb a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
.breadcrumb a:hover { color: var(--gold); }

/* Competitor-inspired additions */
.reassure { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 13px; }

.band-chip {
  display: flex; align-items: baseline; gap: 10px; justify-content: center; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid rgba(240, 205, 106, .45);
  border-radius: 999px; padding: 10px 24px; margin: 18px auto 0;
  max-width: 580px; text-align: center;
  box-shadow: 0 0 28px rgba(240, 205, 106, .13), inset 0 1px 0 rgba(240, 205, 106, .2);
}
.band-chip b {
  font-family: var(--font-display); font-size: 18px; letter-spacing: -.2px;
  background: linear-gradient(120deg, var(--gold), #ffe9a8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.band-chip span { font-size: 13px; color: var(--ink-soft); }

.metric-bars { margin: 22px auto 4px; max-width: 560px; }
.metric { display: flex; align-items: center; gap: 13px; margin: 10px 0; }
.metric .m-label { width: 112px; font-size: 13px; color: var(--ink-soft); flex-shrink: 0; letter-spacing: .3px; }
.metric .m-track {
  flex: 1; height: 10px; background: rgba(255, 255, 255, .09);
  border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}
.metric .m-fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 55%, var(--gold));
  box-shadow: 0 0 12px rgba(157, 139, 255, .55);
  transition: width 1.1s var(--ease);
}
.metric .m-val { width: 36px; text-align: right; font-size: 13.5px; color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .metric .m-label { width: 88px; font-size: 12px; } }

.share-row { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.share-btn {
  border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px; padding: 10px 19px; border-radius: 999px; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .3s ease, transform .25s var(--ease);
}
.share-btn:hover { border-color: var(--accent); color: var(--gold); box-shadow: var(--glow-violet); transform: translateY(-2px); }
.share-btn:active { transform: translateY(0); }
.share-ok { font-size: 13px; color: var(--good); }
