/*
  The Reset Room - Core Stylesheet (Dark Mode Organic Luxury Edition)
  Aesthetics: Sun-drenched twilight, premium organic night-spa, dark-linen texture, glowing copper and terracotta accents.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* Colors */
  --bg-primary: #120D0A;          /* Deep obsidian espresso */
  --bg-secondary: #1C1511;        /* Warm dark chocolate */
  --bg-tertiary: #271E19;         /* Elevated slate warm brown */
  --border-color: rgba(158, 142, 131, 0.15); /* Soft warm taupe border */
  
  --color-taupe: #9E8E83;         /* Soft warm taupe */
  --color-espresso: #F5EFEB;      /* Warm cream text */
  --color-white: #FFFFFF;
  
  /* Glowing accents */
  --color-terracotta: #C45A6F;       /* Glowing terracotta/rust */
  --color-terracotta-hover: #D77085; /* Terracotta brightened on hover */
  --color-bronze: #E8A261;           /* Glowing copper/bronze gold */
  --color-bronze-hover: #F2B980;     /* Bronze brightened on hover */
  --glow-shadow: rgba(196, 90, 111, 0.25);
  --glow-shadow-gold: rgba(232, 162, 97, 0.2);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--color-espresso);
  font-family: var(--font-sans);
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glowing blobs in background */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(196, 90, 111, 0.06) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(232, 162, 97, 0.04) 0%, rgba(0,0,0,0) 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Noise overlay for premium organic paper texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Structured Grid Lines */
.bg-grid-lines {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 1;
}

.bg-grid-lines .grid-line {
  border-right: 1px solid rgba(158, 142, 131, 0.09); /* Made easier to see */
  height: 100%;
}

.bg-grid-lines .grid-line:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .bg-grid-lines {
    grid-template-columns: repeat(2, 1fr);
  }
  .bg-grid-lines .grid-line:nth-child(3),
  .bg-grid-lines .grid-line:nth-child(4) {
    display: none;
  }
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--color-white);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
}

h2 em, h1 em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-bronze);
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.05rem;
  color: var(--color-espresso);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

p.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--color-taupe);
  opacity: 0.95;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

strong {
  font-weight: 500;
  color: var(--color-white);
}

ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

li {
  color: var(--color-espresso);
  opacity: 0.85;
  font-weight: 300;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: 9rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.bg-secondary-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.text-center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(18, 13, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo span {
  color: var(--color-terracotta);
  text-shadow: 0 0 10px var(--glow-shadow);
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.logo:hover .logo-icon {
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px var(--glow-shadow-gold));
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-espresso);
  opacity: 0.7;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  opacity: 1;
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  opacity: 1;
  color: var(--color-white);
  font-weight: 600;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-white);
  margin-bottom: 6px;
  transition: var(--transition-smooth);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    padding: 7rem 3rem;
    gap: 2.5rem;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.8rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 4px 15px var(--glow-shadow);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow-shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(245, 239, 235, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(245, 239, 235, 0.05);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

.btn-bronze {
  background-color: var(--color-bronze);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 4px 15px var(--glow-shadow-gold);
}

.btn-bronze:hover {
  background-color: var(--color-bronze-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow-shadow-gold);
}

.btn-sm {
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.btn-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-bronze);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-text::after {
  content: '→';
  transition: var(--transition-fast);
}

.btn-text:hover {
  color: var(--color-bronze-hover);
}

.btn-text:hover::after {
  transform: translateX(6px);
}

/* Hero Section */
.hero {
  height: 95vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Hero organic wave texture */
.hero-texture {
  position: absolute;
  inset: 0;
  opacity: 0.12; /* Made easier to see */
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' width='100%25' height='100%25'%3E%3Cpath d='M0,150 C300,100 600,250 900,180 C1200,110 1350,190 1440,160' fill='none' stroke='%23E8A261' stroke-width='1.5' stroke-dasharray='6 6'/%3E%3Cpath d='M0,280 C350,200 700,320 1000,240 C1300,160 1380,270 1440,230' fill='none' stroke='%23C45A6F' stroke-width='2'/%3E%3Cpath d='M0,420 C250,320 500,460 800,380 C1100,300 1300,420 1440,370' fill='none' stroke='%23E8A261' stroke-width='1.2' stroke-dasharray='12 6'/%3E%3Cpath d='M0,560 C400,480 800,600 1100,520 C1400,440 1410,560 1440,510' fill='none' stroke='%23C45A6F' stroke-width='1.8'/%3E%3Cpath d='M0,700 C300,620 600,750 900,670 C1200,590 1350,680 1440,650' fill='none' stroke='%23E8A261' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

/* Slow-pulsing red light canvas inside Hero */
.hero-breathing-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 90, 111, 0.08) 0%, rgba(0,0,0,0) 65%);
  filter: blur(80px);
  animation: breathe 8s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.4) 0%, var(--bg-primary) 95%);
  z-index: 2;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-title {
  margin-bottom: 2rem;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-action-block {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .hero-action-block {
    flex-direction: column;
    width: 100%;
  }
  .hero-action-block .btn {
    width: 100%;
  }
}

/* Image Frames - Organic luxury borders */
.image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  background-color: var(--bg-secondary);
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(232, 162, 97, 0.1);
  pointer-events: none;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover img {
  transform: scale(1.03);
}

/* The Problem Section */
.problem-intro {
  max-width: 800px;
  margin: 0 auto 5rem;
}

.problem-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.problem-card p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 0;
  font-style: italic;
  opacity: 0.95;
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 90, 111, 0.3);
  box-shadow: 0 15px 35px rgba(196, 90, 111, 0.05);
}

/* Christy's Story Section */
.solution-text-container {
  display: flex;
  flex-direction: column;
}

.signature {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-bronze);
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 1;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-bronze);
  border-left: 2px solid var(--color-terracotta);
  padding-left: 2rem;
  margin: 2.5rem 0;
}

/* Product Ladder / Step-by-Step Path */
.ladder-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.ladder-item:last-child {
  border-bottom: none;
}

.ladder-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--color-terracotta);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.ladder-content h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.ladder-content p {
  margin-bottom: 0;
  max-width: 650px;
}

.ladder-item:hover {
  padding-left: 1rem;
}

.ladder-item:hover .ladder-number {
  opacity: 1;
  transform: scale(1.05);
  text-shadow: 0 0 15px var(--glow-shadow);
}

@media (max-width: 768px) {
  .ladder-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
  .ladder-number {
    font-size: 2rem;
  }
  .ladder-content style {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .ladder-item:hover {
    padding-left: 0;
  }
}

/* Cards (Standard Community / Promo Blocks) */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(232, 162, 97, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(232, 162, 97, 0.05);
}

/* Products Ecosystem Layout */
#products-grid-section .grid-2 {
  align-items: stretch; /* Stretch cards to equal height in each row */
  gap: 3.5rem 3.0rem;   /* Elegant responsive gap */
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card .btn {
  margin-top: auto !important; /* Push CTA buttons to the bottom of matching cards */
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-bronze));
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 162, 97, 0.3);
  box-shadow: 0 22px 50px rgba(0,0,0,0.4);
}

.product-card:hover::before {
  opacity: 1;
}

.product-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bronze);
  background-color: rgba(232, 162, 97, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(232, 162, 97, 0.2);
  margin-bottom: 1.5rem;
}

.badge-featured {
  color: var(--color-terracotta);
  background-color: rgba(196, 90, 111, 0.1);
  border-color: rgba(196, 90, 111, 0.2);
}

.product-meta {
  background-color: rgba(18, 13, 10, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-meta strong {
  color: var(--color-white);
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.product-meta span {
  color: var(--color-espresso);
  opacity: 0.8;
}

/* Footer Section */
.site-footer {
  background-color: #0B0806;
  border-top: 1px solid var(--border-color);
  padding: 7rem 0 3rem;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--color-terracotta);
}

.footer-brand p {
  max-width: 380px;
}

.footer-links h5 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-espresso);
  opacity: 0.75;
}

.footer-links a:hover {
  color: var(--color-bronze);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-taupe);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* Diagnostic Quiz Layout */
.quiz-page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.quiz-intro-header {
  text-align: center;
  margin-bottom: 4rem;
}

.quiz-intro-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: block;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-shadow);
}

.quiz-intro-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.quiz-intro-header p {
  max-width: 460px;
  margin: 0 auto;
}

/* Quiz Card Frame */
.quiz-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quiz-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-bronze));
}

@media (max-width: 500px) {
  .quiz-card {
    padding: 2.5rem 1.8rem;
  }
}

.progress-container {
  margin-bottom: 2.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.progress-label span {
  font-size: 0.8rem;
  color: var(--color-taupe);
  letter-spacing: 0.05em;
}

.progress-track {
  height: 4px;
  background: rgba(158, 142, 131, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-bronze));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
  box-shadow: 0 0 8px rgba(232, 162, 97, 0.5);
}

.step {
  display: none;
  animation: stepFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step.active {
  display: block;
}

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

.step-question {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.step-subtext {
  font-size: 0.95rem;
  color: var(--color-taupe);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Quiz Option Button */
.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: rgba(18, 13, 10, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem 1.8rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  font-family: inherit;
  width: 100%;
}

.option-btn:hover {
  border-color: rgba(232, 162, 97, 0.4);
  background-color: rgba(28, 21, 17, 0.6);
  transform: translateX(4px);
}

.option-btn.selected {
  border-color: var(--color-bronze);
  background-color: rgba(232, 162, 97, 0.08);
  box-shadow: 0 0 15px rgba(232, 162, 97, 0.05);
}

.option-btn.selected .option-indicator {
  background-color: var(--color-bronze);
  border-color: var(--color-bronze);
  box-shadow: 0 0 8px rgba(232, 162, 97, 0.4);
}

.option-btn.selected .option-indicator::after {
  opacity: 1;
}

.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  flex-shrink: 0;
  margin-top: 3px;
  transition: all 0.25s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--bg-primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
}

.option-label {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-white);
  font-weight: 500;
}

.option-label small {
  display: block;
  font-size: 0.85rem;
  color: var(--color-taupe);
  margin-top: 0.3rem;
  font-weight: 300;
  line-height: 1.5;
}

.select-note {
  font-size: 0.8rem;
  color: var(--color-terracotta);
  margin-bottom: 1.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  gap: 1rem;
}

.btn-back {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-taupe);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem 0;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-back:hover {
  color: var(--color-white);
}

.btn-back.hidden {
  visibility: hidden;
  pointer-events: none;
}

.btn-next {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-terracotta);
  border: none;
  border-radius: 30px;
  padding: 1.1rem 2.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.05em;
  margin-left: auto;
  box-shadow: 0 4px 12px var(--glow-shadow);
}

.btn-next:hover:not(:disabled) {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--glow-shadow);
}

.btn-next:disabled {
  background-color: rgba(158, 142, 131, 0.15);
  color: rgba(245, 239, 235, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

/* Inputs and Forms */
.field-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.field-label .optional-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(158, 142, 131, 0.6);
  margin-left: 0.5rem;
}

.text-input {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background-color: rgba(18, 13, 10, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-white);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.text-input:focus {
  border-color: var(--color-bronze);
  box-shadow: 0 0 10px rgba(232, 162, 97, 0.15);
}

.text-input::placeholder {
  color: rgba(158, 142, 131, 0.5);
}

/* Phone opt-in nudge banner */
.phone-nudge {
  background-color: rgba(232, 162, 97, 0.05);
  border: 1px dashed rgba(232, 162, 97, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.phone-nudge-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.phone-nudge p {
  font-size: 0.9rem;
  color: var(--color-espresso);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 0;
}

.phone-nudge strong {
  color: var(--color-bronze);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

/* Result Screens */
.result-screen {
  display: none;
  animation: stepFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: left;
}

.result-screen.active {
  display: block;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(196, 90, 111, 0.1);
  border: 1px solid rgba(196, 90, 111, 0.25);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 1.8rem;
  text-shadow: 0 0 10px var(--glow-shadow);
}

.result-badge::before {
  content: '✦';
  font-size: 0.7rem;
}

.result-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.result-body {
  font-size: 1.05rem;
  color: var(--color-espresso);
  opacity: 0.85;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Secondary product display inside results */
.product-card.primary {
  border-color: rgba(232, 162, 97, 0.25);
  background-color: rgba(28, 21, 17, 0.4);
}

.product-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bronze);
  margin-bottom: 0.6rem;
  display: block;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--color-espresso);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-bronze);
  text-decoration: none;
  transition: gap 0.2s;
}

.product-link:hover {
  gap: 0.8rem;
}

.product-link::after {
  content: '→';
}

.seed-note {
  background-color: rgba(158, 142, 131, 0.06);
  border-left: 2px solid var(--color-taupe);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-espresso);
  opacity: 0.85;
  line-height: 1.6;
  margin-top: 1.8rem;
}

.seed-note strong {
  color: var(--color-white);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-terracotta);
  border: none;
  border-radius: 12px;
  padding: 1.25rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px var(--glow-shadow);
}

.btn-cta:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow-shadow);
}

.btn-secondary-link {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-taupe);
  text-decoration: none;
  transition: color 0.25s;
}

.btn-secondary-link:hover {
  color: var(--color-bronze);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* Loading Spinners */
.loading-state {
  display: none;
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.loading-state.active {
  display: block;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(158, 142, 131, 0.1);
  border-top-color: var(--color-terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 15px var(--glow-shadow);
}

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

.loading-state p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-taupe);
  margin-bottom: 0;
}

.error-msg {
  display: none;
  font-size: 0.85rem;
  color: #E26A6A;
  margin-top: 0.6rem;
  text-align: left;
}

.error-msg.active {
  display: block;
}

.quiz-card-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--color-taupe);
  line-height: 1.8;
  opacity: 0.8;
}

.quiz-card-footer a {
  color: var(--color-white);
  text-decoration: none;
  margin: 0 0.4rem;
}

.quiz-card-footer a:hover {
  color: var(--color-bronze);
}

/* Legal/Disclaimers styling (Terms & Privacy) */
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legal-meta {
  color: var(--color-taupe);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.8rem;
}

.legal-content li {
  margin-bottom: 0.8rem;
}
