/* ============================================================
   BVG LIFE — Personalized Routine Builder
   Modern Apothecary Aesthetic · Mobile-First
   ============================================================ */

:root {
  /* BVG Brand Colours (extracted from site) */
  --bvg-green:      #2d6a4f;
  --bvg-green-mid:  #40916c;
  --bvg-green-light:#74c69d;
  --bvg-cream:      #f8f4ef;
  --bvg-cream-deep: #ede8e0;
  --bvg-navy:       #1a2744;
  --bvg-silver:     #9da8b7;
  --bvg-gold:       #b5863a;
  --bvg-gold-light: #e8c97d;

  /* Utility */
  --white:          #ffffff;
  --text-primary:   #1c1c1c;
  --text-secondary: #5a5a5a;
  --text-muted:     #8a8a8a;
  --border:         #ddd5c8;
  --shadow-soft:    0 4px 24px rgba(45,106,79,0.08);
  --shadow-card:    0 8px 40px rgba(0,0,0,0.10);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      36px;

  /* Typography */
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'DM Sans', -apple-system, sans-serif;
  --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bvg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--bvg-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== UTILITIES ========== */
.hidden { display: none !important; }

/* ========== AUTH OVERLAY ========== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--bvg-cream) 0%, #e8f5ee 60%, #d4eddf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.auth-overlay:not(.active) { display: none; }

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  animation: slideUp 0.5s ease;
}

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

.auth-logo {
  text-align: center;
  margin-bottom: 0.25rem;
}
.auth-logo img {
  height: 52px;
  object-fit: contain;
  margin: 0 auto;
}
.auth-tagline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--bvg-green);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bvg-navy);
  margin-bottom: 0.25rem;
}
.auth-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bvg-cream);
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus {
  border-color: var(--bvg-green);
  background: var(--white);
}

.auth-error {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.auth-success {
  background: #f0fff4;
  border: 1px solid #c6f5d4;
  color: var(--bvg-green);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-links {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.auth-links a {
  color: var(--bvg-green-mid);
  font-weight: 500;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--bvg-green) 0%, var(--bvg-green-mid) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.30);
}
.btn-primary.full { width: 100%; margin-top: 0.5rem; }

.btn-outline {
  background: transparent;
  color: var(--bvg-green);
  border: 1.5px solid var(--bvg-green);
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover {
  background: var(--bvg-green);
  color: var(--white);
  text-decoration: none;
}

.btn-outline-sm {
  background: transparent;
  color: var(--bvg-green);
  border: 1.5px solid var(--bvg-green);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-sm:hover {
  background: var(--bvg-green);
  color: var(--white);
}

/* ========== SITE HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  height: 44px;
  object-fit: contain;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.user-greeting {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-serif);
}
.header-strip {
  background: linear-gradient(90deg, var(--bvg-green) 0%, var(--bvg-green-mid) 100%);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.35rem 1rem;
  font-weight: 500;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  background: linear-gradient(160deg, var(--white) 0%, var(--bvg-cream) 60%, #ddf0e6 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bvg-green);
  background: rgba(45,106,79,0.08);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--bvg-navy);
  margin-bottom: 1.25rem;
}
.hero-title em { color: var(--bvg-green); font-style: italic; }
.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-cta { font-size: 1rem; padding: 1rem 2.5rem; }

.hero-decor {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,198,157,0.2) 0%, transparent 70%);
  right: -150px; top: -100px;
  pointer-events: none;
}

/* ========== QUIZ SECTION ========== */
.quiz-section { padding: 4rem 1.5rem 6rem; }
.quiz-wrap { max-width: 680px; margin: 0 auto; }

.quiz-progress {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bvg-cream-deep);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bvg-green), var(--bvg-green-light));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 33%;
}
.progress-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-step { display: none; animation: stepIn 0.45s ease; }
.quiz-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bvg-green);
  margin-bottom: 0.5rem;
}
.step-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--bvg-navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.step-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.option-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}
.option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.option-card:hover {
  border-color: var(--bvg-green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.option-card:hover::before { opacity: 1; }
.option-card.selected {
  border-color: var(--bvg-green);
  background: linear-gradient(135deg, rgba(45,106,79,0.06), rgba(116,198,157,0.08));
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.option-icon {
  font-size: 1.1rem;
  color: var(--bvg-green-light);
}
.option-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.option-hero {
  font-size: 0.75rem;
  color: var(--bvg-green);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: italic;
}

.btn-next {
  display: block;
  width: 100%;
}

/* ========== RESULT SECTION ========== */
.result-section { padding: 4rem 1.5rem 6rem; }
.result-wrap { max-width: 900px; margin: 0 auto; }

.result-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: slideUp 0.5s ease;
}
.result-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bvg-gold);
  background: rgba(181,134,58,0.08);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}
.result-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  color: var(--bvg-navy);
  margin-bottom: 0.75rem;
}
.result-sub { font-size: 1rem; color: var(--text-secondary); }

/* AM/PM Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease 0.1s both;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.am-card { border-top: 4px solid var(--bvg-gold); }
.pm-card { border-top: 4px solid var(--bvg-navy); }

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.timeline-icon { font-size: 1.75rem; }
.timeline-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.timeline-steps { display: flex; flex-direction: column; gap: 1rem; }
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bvg-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--bvg-cream-deep);
  animation: fadeIn 0.4s ease;
}
.step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bvg-green);
  color: var(--white);
}
.am-card .step-num { background: var(--bvg-gold); }
.pm-card .step-num { background: var(--bvg-navy); }

.step-info { flex: 1; }
.step-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.step-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.step-product {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bvg-green);
  background: rgba(45,106,79,0.08);
  border-radius: 50px;
  padding: 0.15rem 0.6rem;
  display: inline-block;
  margin-top: 0.3rem;
}

/* Pro Tip */
.pro-tip {
  background: linear-gradient(135deg, var(--bvg-navy) 0%, #243060 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease 0.2s both;
}
.pro-tip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bvg-gold-light);
  margin-bottom: 0.6rem;
}
.pro-tip p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

/* Bundle Card */
.bundle-card {
  background: var(--white);
  border: 2px solid var(--bvg-gold-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  animation: slideUp 0.6s ease 0.3s both;
}
.bundle-badge {
  position: absolute;
  top: -14px; left: 2rem;
  background: linear-gradient(90deg, var(--bvg-gold), #d4a054);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
}
.bundle-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bvg-navy);
  margin-bottom: 0.5rem;
}
.bundle-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.bundle-discount {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fffbf0, #fef3d5);
  border: 1.5px dashed var(--bvg-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.discount-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bvg-gold);
  flex: 1;
}
.discount-code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bvg-navy);
  letter-spacing: 0.15em;
  background: var(--white);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--bvg-gold-light);
}
.discount-value {
  background: var(--bvg-green);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.bundle-products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.bundle-product-pill {
  background: var(--bvg-cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.bundle-cta { font-size: 1.05rem; padding: 1rem; margin-top: 0; }
.bundle-fine {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Restart Row */
.restart-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.6s ease 0.4s both;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bvg-navy);
  color: var(--white);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo {
  height: 40px;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-punchline {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--bvg-gold-light);
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
}
.footer-certs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-certs img {
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--transition);
}
.footer-certs img:hover { opacity: 0.9; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-copy a { color: rgba(255,255,255,0.6); }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .option-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0.85rem 1rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .bundle-discount { flex-direction: column; gap: 0.6rem; }
  .restart-row { flex-direction: column; align-items: center; }
  .hero { padding: 3.5rem 1.25rem 4.5rem; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .timeline-grid { grid-template-columns: 1fr; }
}
