@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Nunito:wght@300;400;500;600&display=swap');

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

:root {
  --bg:        #0c0922;
  --card:      #16123a;
  --card2:     #1e1a4a;
  --border:    rgba(201,162,39,0.25);
  --gold:      #c9a227;
  --gold-lt:   #f0d060;
  --purple:    #8b5cf6;
  --purple-lt: #b8a0ff;
  --text:      #ddd6f3;
  --text-dim:  #9990c0;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.7;
}

/* Stars background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 45% 15%, rgba(201,162,39,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 15% 55%, rgba(139,92,246,0.3) 0%, transparent 100%);
}

.wrapper { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Header ── */
.site-header {
  text-align: center;
  padding: 50px 20px 30px;
}
.site-header .logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.site-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.site-header .tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}
.gold-line {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 24px; }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
input[type=text], input[type=email], input[type=date], input[type=password] {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
input:focus { border-color: var(--gold); }
input::placeholder { color: var(--text-dim); }

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #a07a10);
  color: #1a1000;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 16px 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
  text-align: center;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: rgba(201,162,39,0.08); }

/* ── Number circle ── */
.num-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  border: 2px solid;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

/* ── Report cards (free) ── */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.report-card .type-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.report-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.report-card p { font-size: 0.92rem; color: var(--text); line-height: 1.65; }

/* ── Upgrade section ── */
.upgrade-box {
  background: linear-gradient(135deg, #1e1044 0%, #0e1a44 100%);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin-top: 40px;
}
.upgrade-box h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
}
.upgrade-box .subtitle { color: var(--text-dim); margin-bottom: 28px; }
.includes-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin: 0 0 28px;
}
.includes-list li { padding: 5px 0; }
.includes-list li::before { content: '✦ '; color: var(--gold); }
.price-badge {
  display: inline-block;
  background: var(--gold);
  color: #1a1000;
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 8px;
  margin-bottom: 28px;
}

/* ── Paid report ── */
.report-section {
  margin-bottom: 40px;
  page-break-inside: avoid;
}
.report-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.report-section .section-sub {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: block;
}
.report-section p { margin-bottom: 14px; color: var(--text); }
.report-section p:last-child { margin-bottom: 0; }

.pinnacles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.pinnacle-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.pinnacle-card .p-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.pinnacle-card .p-num { font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 700; color: var(--gold); }
.pinnacle-card .p-kw { font-size: 0.8rem; color: var(--purple-lt); margin-top: 4px; }
.pinnacle-card .p-period { font-size: 0.75rem; color: var(--text-dim); margin-top: 8px; }

/* ── Cover / hero ── */
.report-hero {
  background: linear-gradient(135deg, #1e1044 0%, #0e1044 100%);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 50px 36px;
  text-align: center;
  margin-bottom: 36px;
}
.report-hero .greeting { color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.report-hero h1 { font-family: 'Cinzel', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--white); margin: 12px 0; }
.report-hero .subtitle { color: var(--text-dim); margin-bottom: 28px; }

.numbers-summary {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-top: 24px;
}
.num-pill {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
}
.num-pill strong { color: var(--gold); font-family: 'Cinzel', serif; }

/* ── Print ── */
.print-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--gold);
  color: #1a1000;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
  z-index: 100;
}

/* ── Misc ── */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
}
.text-gold { color: var(--gold); }
.text-dim  { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.alert-error {
  background: rgba(200,50,50,0.15);
  border: 1px solid rgba(200,50,50,0.4);
  border-radius: 8px;
  padding: 14px 18px;
  color: #ff9090;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .card { padding: 24px 18px; }
  .upgrade-box { padding: 28px 18px; }
  .report-hero { padding: 36px 18px; }
}

/* ── Footer ── */
.site-footer {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; padding: 36px 20px 56px;
  text-align: center; border-top: 1px solid var(--border);
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: center; margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.86rem; letter-spacing: 0.03em;
}
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer { color: var(--text-dim); font-size: 0.78rem; opacity: 0.85; }

/* ── Cookie notice ── */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: center;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  box-shadow: var(--shadow); max-width: 840px; margin: 0 auto;
}
.cookie-notice p { font-size: 0.85rem; color: var(--text); margin: 0; flex: 1; min-width: 240px; line-height: 1.55; }
.cookie-notice a { color: var(--gold); }
.btn-cookie {
  background: linear-gradient(135deg, var(--gold), #a07a10); color: #1a1000;
  border: none; border-radius: 8px; padding: 11px 24px;
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.05em;
  cursor: pointer; white-space: nowrap;
}
.btn-cookie:hover { opacity: 0.9; }

/* ── Consent checkbox ── */
.consent-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 4px 0 20px; text-align: left;
}
.consent-row input[type=checkbox] {
  width: 20px; height: 20px; min-width: 20px; margin-top: 2px;
  accent-color: var(--gold); cursor: pointer;
}
.consent-row label {
  font-size: 0.85rem; color: var(--text); text-transform: none;
  letter-spacing: 0; font-weight: 400; margin: 0; line-height: 1.5;
}
.consent-row a { color: var(--gold); }

/* ── Legal / prose pages ── */
.legal h2 {
  font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--gold);
  margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal h3 { font-size: 1rem; color: var(--white); margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 0.95rem; line-height: 1.75; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); }
.legal .updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 8px; }
.legal strong { color: var(--white); }

/* ── Share buttons ── */
.share-card { text-align: center; }
.share-card h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold); margin-bottom: 6px; }
.share-card .share-sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 8px; text-decoration: none;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: #fff; border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.share-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-x  { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.25); }

@media print {
  /* PDF is generated via html2canvas, not browser print — suppress Ctrl+P to avoid the plain version */
  body { display: none; }
}

/* ── Number-meaning pages (numbers.php / number.php) ── */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.number-tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.number-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.number-tile h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}
.number-tile .tile-more {
  font-size: 0.8rem;
  color: var(--gold);
}

.number-prose p { color: var(--text); margin-bottom: 14px; }
.number-prose p:last-child { margin-bottom: 0; }

.number-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.number-nav a { color: var(--gold); text-decoration: none; }
.number-nav a:hover { text-decoration: underline; }

/* ── Sample excerpt + testimonials (upgrade path) ── */
.sample-quote {
  background: var(--card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin: 24px auto;
  max-width: 620px;
  text-align: left;
}
.sample-quote .sample-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.sample-quote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
}
.sample-quote p:last-of-type { margin-bottom: 0; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  font-size: 0.9rem;
}
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial .who { color: var(--text-dim); font-size: 0.8rem; margin-top: 10px; }
