/* NumerologyCalc — design system
   Primary: deep indigo #4C1D95 | Accent: gold #D4A017
   Backgrounds: #FFFFFF, soft lavender #F5F3FF | Text: #241f38 / #4b4563 */
:root {
  --indigo: #4c1d95;
  --indigo-dark: #3b1478;
  --indigo-soft: #f5f3ff;
  --gold: #d4a017;
  --gold-soft: #fef6e0;
  --ink: #241f38;
  --body: #4b4563;
  --line: #e6e1f5;
  --white: #ffffff;
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 2.2rem 0 0.9rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--indigo); }
img { max-width: 100%; }

/* Header */
.site-header {
  background: var(--indigo);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.brand span { color: var(--gold); }
.main-nav a {
  color: #e9e4fb;
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-dark) 70%);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero p.lede { color: #d9d2f2; max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.1rem; }
.hero .stars { color: var(--gold); letter-spacing: 8px; margin-bottom: 12px; font-size: 1.1rem; }

/* Calculator */
.calc {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(30, 10, 80, 0.25);
  max-width: 720px;
  margin: -40px auto 0;
  padding: 32px;
  position: relative;
  color: var(--body);
}
.calc h2 { margin-top: 0; text-align: center; }
.calc-grid { display: grid; gap: 16px; margin: 20px 0; }
.calc label { font-weight: 600; color: var(--ink); font-size: 0.95rem; display: block; margin-bottom: 6px; }
.calc input[type="text"], .calc input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--sans);
}
.calc input:focus { outline: none; border-color: var(--indigo); }
.btn {
  display: inline-block;
  background: var(--gold);
  color: #241a05;
  font-weight: 700;
  padding: 14px 34px;
  border: none;
  border-radius: 999px;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-indigo { background: var(--indigo); color: #fff; }
.calc .privacy-note { font-size: 0.82rem; color: #8a84a3; text-align: center; margin-top: 14px; }
.calc-error { color: #b42318; font-size: 0.92rem; text-align: center; margin-top: 10px; min-height: 1.4em; }

/* Result cards */
.results { display: none; margin-top: 28px; }
.results.show { display: block; animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.result-card {
  background: linear-gradient(165deg, var(--indigo), var(--indigo-dark));
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  color: #fff;
}
.result-card .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.result-card .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: #cfc6ef; margin-top: 6px; }
.result-card .lnk { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--gold); }
.breakdown { background: var(--indigo-soft); border-radius: var(--radius); padding: 20px 22px; font-size: 0.92rem; }
.breakdown summary { cursor: pointer; font-weight: 700; color: var(--indigo); font-size: 1rem; }
.breakdown ol { margin: 12px 0 0 20px; }
.breakdown li { margin-bottom: 8px; }
.breakdown code { background: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--indigo-soft); }
.section h2 { text-align: center; margin-bottom: 0.6rem; }
.section .sub { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step .n {
  width: 44px; height: 44px;
  background: var(--indigo); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px;
}
.step h3 { margin-top: 0; }

/* Number grid */
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
.num-tile {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 8px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.num-tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.num-tile .n { font-family: var(--serif); font-size: 2rem; color: var(--indigo); }
.num-tile.master .n { color: var(--gold); }
.num-tile .t { font-size: 0.75rem; color: var(--body); display: block; margin-top: 4px; }

/* Trust points */
.trust { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .tick {
  flex: 0 0 30px; width: 30px; height: 30px;
  background: var(--gold-soft); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.trust-item strong { color: var(--ink); display: block; }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.prose ul, .prose ol { margin: 0 0 1rem 22px; }
.prose li { margin-bottom: 0.5rem; }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--body); }
.cta-box {
  background: var(--indigo-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  margin-top: 2rem;
}
.breadcrumbs { font-size: 0.85rem; color: #8a84a3; margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--indigo); }

/* FAQ accordions */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--gold); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .a { padding: 0 18px 18px; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.data th { background: var(--indigo-soft); color: var(--ink); }

/* Footer */
.site-footer { background: var(--indigo-dark); color: #cfc6ef; padding: 40px 0; font-size: 0.9rem; }
.site-footer a { color: var(--gold); }
.site-footer nav { margin-top: 10px; }

/* Compatibility */
.compat-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 20px 0; }
@media (max-width: 640px) {
  .compat-grid { grid-template-columns: 1fr; }
  .main-nav a { margin-left: 14px; font-size: 0.85rem; }
  .calc { padding: 22px 18px; margin: -30px 12px 0; }
  .section { padding: 44px 0; }
}
