/* ==========================================================================
   Claire Vance Wellness — High-End Clean Wellness Design System
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg: #FAF7F2;
  --bg-subtle: #F3EFE8;
  --card-bg: #FFFFFF;
  --border: #E7E2D8;
  --border-focus: #2E5040;
  
  --primary: #274737;
  --primary-hover: #1c3629;
  --primary-light: #EBF2EC;
  
  --accent: #C57046;
  --accent-hover: #af6038;
  --accent-light: #FDF1EA;
  
  --text-main: #1D2320;
  --text-muted: #5C6660;
  --text-light: #8A948E;
  
  --shadow-sm: 0 2px 8px rgba(39, 71, 55, 0.04);
  --shadow-md: 0 8px 24px rgba(39, 71, 55, 0.08);
  --shadow-lg: 0 16px 40px rgba(39, 71, 55, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.site-header {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.avatar-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.header-tag {
  font-size: 0.78rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.header-tag:hover {
  background: var(--primary);
  color: #fff;
}

/* Main Layout */
.main-content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 18px 60px;
  width: 100%;
}

/* Hero Badge & Introductions */
.intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Persona Anchor Banner */
.persona-banner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.persona-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
}

.persona-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.persona-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Progress Bar */
.quiz-progress-wrap {
  margin-bottom: 24px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

/* Quiz Card Container */
.quiz-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.step-content {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.step-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-question-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step-question-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.step-question-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Options Grid */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.4;
}

.option-btn:hover {
  border-color: var(--primary);
  background: #FFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.option-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-btn:hover .option-indicator,
.option-btn.selected .option-indicator {
  border-color: var(--primary);
}

.option-btn.selected .option-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* Quiz Controls */
.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 10px;
}

.btn-prev {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-prev:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.btn-prev[disabled] {
  visibility: hidden;
}

/* Calculating State Screen */
.analyzing-box {
  text-align: center;
  padding: 40px 10px;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.analyzing-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.analyzing-checklist {
  list-style: none;
  max-width: 380px;
  margin: 0 auto 20px;
  text-align: left;
}

.analyzing-checklist li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.analyzing-checklist li.done {
  opacity: 1;
  color: var(--primary);
  font-weight: 600;
}

/* Lead Capture Form */
.lead-form-box {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-top: 20px;
}

.input-group {
  margin-bottom: 16px;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: #FFF;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39, 71, 55, 0.12);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
  text-align: center;
}

/* Results Screen */
.result-header {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.score-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.result-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 10px;
}

.recipe-highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.recipe-highlight-box h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-steps {
  list-style: none;
  margin: 12px 0;
}

.recipe-steps li {
  font-size: 0.92rem;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-main);
}

.step-num {
  background: var(--primary);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Amazon Recommendations Box */
.pantry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #FFF;
  margin: 20px 0;
  text-align: left;
}

.pantry-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pantry-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pantry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  transition: var(--transition);
}

.pantry-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.pantry-item-name {
  font-weight: 600;
}

.pantry-item-tag {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Trust Elements */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive queries */
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .quiz-card {
    padding: 20px 16px;
  }
  .persona-banner {
    flex-direction: row;
    gap: 12px;
  }
  .step-question-title {
    font-size: 1.25rem;
  }
}
