/* LifeScore — clean, modern, calm */

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-soft: #d1fae5;
  --accent: #6366f1;
  --grad-start: #10b981;
  --grad-end: #6366f1;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-alt: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --danger: #ef4444;
  --warning: #f59e0b;
  --good: #10b981;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bg-soft { background: var(--bg-soft); }

img { max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-alt); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-cta { margin: 32px 0 48px; }
.hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.hero-stats span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 48px;
  max-width: 560px;
}
.section-cta { background: linear-gradient(135deg, #ecfdf5 0%, #eef2ff 100%); }

/* ===== Grid / cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.step {
  text-align: center;
  padding: 24px;
}
.step-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: white;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { color: var(--muted); margin: 0; }

/* ===== Pricing ===== */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.pricing-card-pro {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pricing-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
.price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.price-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.features li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
}
.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Compare cols ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.compare-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.compare-col-pro {
  border: 2px solid var(--primary);
  position: relative;
}
.compare-col-pro .badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.compare-col h3 { margin: 0 0 16px; font-size: 22px; }

/* ===== FAQ ===== */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.faq details[open] summary { margin-bottom: 12px; }
.faq p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Quiz ===== */
.quiz-wrap {
  padding: 48px 24px 80px;
  max-width: 720px;
}
.quiz-intro {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.quiz-intro h1 { margin: 0 0 12px; font-size: 32px; }
.quiz-tips {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
  margin: 32px 0;
}
.quiz-tips h3 { margin: 0 0 8px; font-size: 15px; }
.quiz-tips ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.quiz-tips li { margin-bottom: 4px; }

.quiz-progress { margin-bottom: 24px; }
.quiz-progress-bar {
  background: var(--bg-alt);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-bar > div {
  height: 100%;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 999px;
}
.quiz-progress-text {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

.quiz-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.q-section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}
.quiz-card h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 28px;
}
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option:hover {
  border-color: var(--primary-soft);
  background: white;
}
.option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.option-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.option.selected .option-num {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

/* ===== Results ===== */
.results-wrap { padding: 48px 24px 80px; max-width: 880px; }
.results-empty { text-align: center; padding: 60px 20px; }

.results-header {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}
.results-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 16px;
}
.overall-ring {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.overall-num {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.overall-max {
  font-size: 28px;
  color: var(--muted);
  font-weight: 600;
  -webkit-text-fill-color: var(--muted);
}
.overall-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.results-summary {
  max-width: 540px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.results-h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.domains {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
.domain-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid var(--border);
}
.domain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.domain-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
}
.domain-icon { font-size: 22px; }
.domain-score {
  font-weight: 800;
  font-size: 22px;
}
.domain-bar {
  background: var(--bg-alt);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.domain-bar > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.domain-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.score-good { background: var(--good); }
.score-mid { background: var(--warning); }
.score-low { background: var(--danger); }
.label-good { color: var(--good); }
.label-mid { color: var(--warning); }
.label-low { color: var(--danger); }

.results-insight {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}
.results-insight h3 { margin: 0 0 12px; }
.results-insight ul { margin: 0; padding-left: 22px; }
.results-insight li { margin-bottom: 8px; color: var(--text); }

.results-cta-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #eef2ff 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.results-cta-card h3 { margin: 0 0 8px; font-size: 22px; }
.results-cta-card p { color: var(--muted); margin: 0 0 20px; }

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Article (about/legal) ===== */
.article { max-width: 720px; padding: 64px 24px 80px; }
.article h1 { font-size: 36px; margin: 0 0 16px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article p { color: #374151; margin: 0 0 16px; }
.article ul { color: #374151; margin: 0 0 16px; }

.cta-inline {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}
.cta-inline p { margin: 0 0 12px; font-weight: 600; }

.big-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  max-width: 540px;
  margin: 0 auto;
}
.big-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.big-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-inner p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
}
.link-btn:hover { color: var(--primary-hover); }

/* Facet rows (premium results) */
.facet-row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.facet-row:last-child { border-bottom: none; }
.facet-name { font-size: 14px; color: var(--text); font-weight: 500; }
.facet-bar {
  background: var(--bg-alt);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.facet-bar > div { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.facet-score { font-size: 14px; font-weight: 700; text-align: right; }

/* Action plan items */
.action-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.action-item:last-child { border-bottom: none; }
.action-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.action-body { flex: 1; }
.action-body h4 { margin: 4px 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.action-score { font-size: 13px; font-weight: 700; }
.action-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Print styles for Premium PDF download */
@media print {
  body { background: white; }
  .nav, .footer, .no-print, .results-actions, .disclaimer.no-print { display: none !important; }
  .print-header, .print-footer { display: block !important; }
  .container { max-width: 100%; padding: 0 12px; }
  .results-wrap { padding: 0; }
  .results-header, .domain-card, .results-insight {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  .overall-num { color: #111 !important; -webkit-text-fill-color: #111 !important; background: none !important; }
  .results-h2 { page-break-after: avoid; }
  .facet-row { grid-template-columns: 200px 1fr 50px; }
  a { color: #111 !important; text-decoration: none !important; }
}

@media (max-width: 600px) {
  .facet-row { grid-template-columns: 1fr 80px; gap: 8px; }
  .facet-row .facet-bar { grid-column: 1 / -1; order: 3; margin-top: 4px; }
  .facet-name { font-size: 13px; }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .pricing-cards, .compare { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .quiz-card, .quiz-intro, .results-header { padding: 28px 20px; }
  .overall-num { font-size: 56px; }
  .nav nav { gap: 12px; }
  .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 16px; }
}
