:root {
  --ivory: #fffdf7;
  --ivory-alt: #fbf4e6;
  --maroon: #7a1528;
  --maroon-dark: #5c0f1e;
  --gold: #c8960a;
  --gold-light: #e8c465;
  --ink: #2a1810;
  --muted: #756355;
  --border: #ead9b8;
  --shadow-sm: 0 2px 8px rgba(90, 40, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(90, 40, 20, 0.10);
  --shadow-lg: 0 16px 40px rgba(90, 40, 20, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 2.75rem;
  text-align: center;
}
.site-header h1 {
  font-family: var(--font-heading);
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-header .brand-dot { color: var(--gold-light); }
.site-header .tagline {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  opacity: 0.92;
  letter-spacing: 0.01em;
}
.site-header .powered-by {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  opacity: 0.65;
  letter-spacing: 0.02em;
}

/* ── Section scaffolding ────────────────────────────────────────────────── */
.section { padding: 3.5rem 1.25rem; }
.section-alt { background: var(--ivory-alt); }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-inner-narrow { max-width: 640px; margin: 0 auto; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--maroon);
  text-align: center;
  margin: 0 0 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2.25rem;
  font-size: 1rem;
}

/* ── Form / person cards ────────────────────────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.person-card-title {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.person-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ivory-alt);
  color: var(--gold);
  font-size: 1.1rem;
}
.field-group { display: flex; flex-direction: column; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; position: relative; }
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
input[type="text"], input[type="date"], input[type="time"] {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 10, 0.15);
  background: #fff;
}

.city-suggestions {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  position: absolute;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.city-suggestions li {
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.93rem;
}
.city-suggestions li:hover { background: var(--ivory-alt); }
.city-suggestions:empty { display: none; padding: 0; border: none; box-shadow: none; }

.form-submit-row {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0.5rem;
}
.error { color: #b42318; font-weight: 600; margin-top: 0.75rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: #fff;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
}
.btn-secondary:hover:not(:disabled) { background: var(--ivory-alt); }
.btn-large { padding: 0.95rem 2.25rem; font-size: 1.05rem; }

/* ── Generated Birth Horoscopes ─────────────────────────────────────────── */
.horoscope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.horoscope-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.horoscope-card-title {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-align: center;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--gold-light);
}
.horoscope-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.horoscope-facts dt { color: var(--muted); font-weight: 600; }
.horoscope-facts dd { margin: 0; font-weight: 600; }
.chart-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.chart-block h4 {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chart-svg { display: flex; justify-content: center; }
.chart-svg svg { width: 100%; height: auto; max-width: 260px; }

/* ── Compatibility Summary card ─────────────────────────────────────────── */
.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.summary-stars { font-size: 2rem; letter-spacing: 0.15em; color: var(--gold); line-height: 1; }
.summary-stars .star-empty { color: var(--border); }
.summary-overall-label {
  margin: 0.5rem 0 1.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.summary-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.summary-score {
  background: var(--ivory-alt);
  border-radius: var(--radius-sm);
  padding: 1.1rem 0.5rem;
}
.summary-score-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--maroon);
}
.summary-score-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}
.summary-detected {
  text-align: left;
  background: var(--ivory-alt);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.summary-detected h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.summary-detected ul { margin: 0; padding-left: 1.1rem; }
.summary-detected li { margin-bottom: 0.3rem; font-weight: 500; }

/* ── Detailed free report tables ─────────────────────────────────────────── */
.result-table { margin-bottom: 2rem; }
.result-table h3 {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
}
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.result-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; }
.result-table th {
  background: var(--maroon);
  color: #fff;
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.result-table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); }
.result-table tr:nth-child(even) td { background: var(--ivory-alt); }
.result-table .total { font-weight: 700; margin-top: 0.6rem; color: var(--maroon); }

/* ── Premium CTA ────────────────────────────────────────────────────────── */
.premium-card {
  background: linear-gradient(160deg, #fff 0%, var(--ivory-alt) 100%);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.premium-heading {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.premium-lede { color: var(--muted); margin: 0 0 1.75rem; font-size: 1rem; }
.premium-checklist {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
}
.premium-checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
}
.premium-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.premium-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 1.25rem;
}

/* ── Thank you / cross-sell ─────────────────────────────────────────────── */
.thank-you-card { text-align: center; }
.thank-you-check {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.thank-you-card h2 { font-family: var(--font-heading); color: var(--maroon); font-size: 2rem; margin: 0 0 0.5rem; }
.crosssell-card {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.crosssell-card h3 { font-family: var(--font-heading); color: var(--maroon); margin: 0 0 0.5rem; font-size: 1.4rem; }
.crosssell-plans { list-style: none; padding: 0; margin: 1rem 0; display: flex; gap: 1rem; justify-content: center; }
.crosssell-plans li {
  background: var(--ivory-alt);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}
.play-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--ivory-alt);
}
.site-footer a { color: var(--maroon); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.kmp-cta-small { font-size: 0.85rem; opacity: 0.85; margin: 0.5rem 0; }
.footer-links { margin-top: 0.75rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .person-grid, .horoscope-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .chart-pair { grid-template-columns: 1fr; }
  .summary-scores { grid-template-columns: 1fr; }
  .premium-checklist { grid-template-columns: 1fr; }
  .site-header h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .crosssell-plans { flex-direction: column; align-items: center; }
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.legal-content h1 {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: 2rem;
  margin: 0 0 0.3rem;
}
.legal-content .legal-effective-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--maroon);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 0.97rem; color: var(--ink); }
.legal-content ul, .legal-content ol { padding-left: 1.4rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--maroon); }
.legal-content .back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }

