/* --------------------------------------------------------------------------
     CSS Custom Properties (Design Tokens)
     -------------------------------------------------------------------------- */
:root {
  /* Primary Colors */
  --color-deep-purple: #4A0D4A;
  --color-deep-purple-dark: #350935;
  --color-deep-purple-light: #6B1F6B;

  /* Accent Colors - Magenta/Fuchsia (matches cover phoenix) */
  --color-rose-gold: #D93A87;
  --color-rose-gold-light: #E85A9F;
  --color-rose-gold-dark: #B82A6F;

  /* Champagne Accent (matches cover title) */
  --color-champagne: #E2D1B8;
  --color-champagne-light: #F0E6D6;
  --color-champagne-dark: #C9B89E;

  /* Neutral Colors */
  --color-cream: #FDF8F5;
  --color-cream-dark: #F5EDE8;
  --color-text: #2D2D2D;
  --color-text-light: #5A5A5A;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes - Fluid Typography */
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4rem);
  --fs-h2: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  --fs-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  --fs-small: 0.875rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Layout */
  --max-width: 1100px;
  --border-radius: 8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(74, 13, 74, 0.1);
  --shadow-medium: 0 8px 30px rgba(74, 13, 74, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-deep-purple);
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin-bottom: var(--space-md);
}

strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(74, 13, 74, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) 0;
}

.topnav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topnav__brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
}

.btn--small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-small);
  background: var(--color-champagne);
  color: var(--color-deep-purple);
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn--small:hover {
  background: var(--color-champagne-light);
  color: var(--color-deep-purple);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px; /* Account for fixed topnav */
  justify-content: center;
  background: linear-gradient(
          135deg,
          var(--color-deep-purple) 0%,
          var(--color-deep-purple-light) 50%,
          var(--color-deep-purple) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
          ellipse at 30% 20%,
          rgba(217, 58, 135, 0.15) 0%,
          transparent 50%
  );
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.hero__header {
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.hero__middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  max-width: 1000px;
}

@media (min-width: 768px) {
  .hero__middle {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
  }
}

.hero__text {
  color: var(--color-white);
  text-align: center;
  flex: 1;
}

@media (min-width: 768px) {
  .hero__text {
    text-align: left;
  }
}

.hero__title {
  font-size: clamp(2rem, 6vw + 1rem, 4.5rem);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-rose-gold-light);
  margin-bottom: var(--space-xs);
}

.hero__tagline {
  font-size: var(--fs-body);
  color: var(--color-cream);
  opacity: 0.9;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--color-rose-gold-light);
}

.hero__subtitle {
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--color-cream);
  opacity: 0.9;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Book Cover Placeholder */
.hero__book {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.book-cover {
  width: 280px;
  height: 420px;
  background: linear-gradient(
          145deg,
          var(--color-rose-gold) 0%,
          var(--color-rose-gold-dark) 100%
  );
  border-radius: var(--border-radius);
  box-shadow:
          var(--shadow-medium),
          -20px 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-base);
}

.book-cover:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.book-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* Book Cover Image Styling */
.book-cover--image {
  width: auto;
  height: auto;
  max-width: min(320px, 85vw);
  max-height: 480px;
  background: none;
  padding: 0;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(226, 209, 184, 0.25),
    0 0 120px rgba(226, 209, 184, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.book-cover--image:hover {
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(226, 209, 184, 0.35),
    0 0 150px rgba(226, 209, 184, 0.15);
}

.book-cover--image::before {
  display: none;
}

@media (min-width: 768px) {
  .book-cover--image {
    max-width: 400px;
    max-height: 600px;
  }
}

@media (min-width: 1024px) {
  .book-cover--image {
    max-width: 480px;
    max-height: 720px;
  }
}

.book-cover__placeholder {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  opacity: 0.9;
}

.book-cover__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.book-cover__subtitle {
  font-size: var(--fs-small);
  color: var(--color-cream);
  opacity: 0.8;
}

.book-cover__author {
  font-size: var(--fs-small);
  color: var(--color-white);
  font-weight: 500;
  margin-top: var(--space-sm);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Opt-in Section
   -------------------------------------------------------------------------- */
.optin {
  background: var(--color-white);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: var(--space-xl);
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.optin__title {
  font-size: var(--fs-h3);
  color: var(--color-deep-purple);
  margin-bottom: var(--space-xs);
}

.optin__cta {
  margin-top: var(--space-md);
  margin-bottom: 0;
  font-size: var(--fs-body);
  color: var(--color-deep-purple);
  font-style: italic;
}

.optin__text {
  color: var(--color-text-light);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
}

.optin__exclusive {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-rose-gold);
  font-size: var(--fs-small);
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
}

.optin__exclusive strong {
  color: var(--color-deep-purple);
}

.optin__exclusive em {
  color: var(--color-rose-gold-dark);
}

/* Email Form Placeholder */
.optin__form-placeholder {
  background: var(--color-cream);
  border: 2px dashed var(--color-rose-gold);
  border-radius: var(--border-radius);
  padding: 0px;/*var(--space-lg);*/
  text-align: center;
  color: var(--color-text-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.optin__form-placeholder p {
  margin-bottom: 0;
}

/* CTA Button (for when form is implemented) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--primary {
  background: var(--color-champagne);
  color: var(--color-deep-purple);
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 20px rgba(226, 209, 184, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--color-champagne-light);
  box-shadow: 0 6px 25px rgba(226, 209, 184, 0.6);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Hero CTA Button - Extra prominent */
.btn--hero-cta {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  font-size: 1.25rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(226, 209, 184, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(226, 209, 184, 0.7);
  }
}

.btn--hero-cta:hover {
  animation: none;
}

/* Optin bottom button */
.btn--optin-bottom {
  margin-top: var(--space-lg);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Features/Benefits Section
   -------------------------------------------------------------------------- */
.features {
  background: var(--color-cream-dark);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.features__title {
  margin-bottom: var(--space-sm);
}

.features__intro {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
          135deg,
          var(--color-deep-purple) 0%,
          var(--color-deep-purple-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-white);
  font-size: 1.5rem;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-deep-purple);
  margin-bottom: var(--space-xs);
}

.feature-card__text {
  color: var(--color-text-light);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Back Cover Preview Section
   -------------------------------------------------------------------------- */
.backcover {
  background: linear-gradient(
          180deg,
          var(--color-cream) 0%,
          var(--color-cream-dark) 100%
  );
}

.backcover__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.backcover__eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-rose-gold);
  margin-bottom: var(--space-sm);
}

.backcover__title {
  font-size: var(--fs-h2);
  color: var(--color-deep-purple);
}

.backcover__content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
}

.backcover__content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.backcover__content em {
  color: var(--color-deep-purple);
  font-style: italic;
}

.backcover__intro {
  font-size: var(--fs-h3);
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-cream-dark);
  margin-bottom: var(--space-lg);
}

.backcover__scene {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.backcover__scene p:last-child {
  margin-bottom: 0;
}

.backcover__confession {
  background: var(--color-cream);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-rose-gold);
  margin-bottom: var(--space-lg);
}

.backcover__confession p:last-child {
  margin-bottom: 0;
}

.backcover__transformation {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.backcover__challenge {
  background: linear-gradient(
          135deg,
          var(--color-deep-purple) 0%,
          var(--color-deep-purple-light) 100%
  );
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-lg);
}

.backcover__challenge em {
  color: var(--color-rose-gold-light);
}

.backcover__challenge p:last-child {
  margin-bottom: 0;
}

.backcover__promise {
  text-align: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-cream-dark);
  border-bottom: 1px solid var(--color-cream-dark);
  margin-bottom: var(--space-lg);
}

.backcover__promise p:last-child {
  margin-bottom: 0;
}

.backcover__audience {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.backcover__audience p {
  margin-bottom: var(--space-xs);
}

.backcover__ending {
  text-align: center;
  background: var(--color-cream);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
}

.backcover__ending p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Quote Section
   -------------------------------------------------------------------------- */
.quote-section {
  background: var(--color-deep-purple);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
          ellipse at 70% 80%,
          rgba(217, 58, 135, 0.1) 0%,
          transparent 50%
  );
  pointer-events: none;
}

.quote {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.quote__text {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-style: italic;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.quote__text::before {
  content: '"';
  color: var(--color-rose-gold);
}

.quote__text::after {
  content: '"';
  color: var(--color-rose-gold);
}

.quote__attribution {
  font-size: var(--fs-small);
  color: var(--color-rose-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Final CTA Section
   -------------------------------------------------------------------------- */
.final-cta {
  background: linear-gradient(
          135deg,
          var(--color-deep-purple) 0%,
          var(--color-deep-purple-dark) 100%
  );
  text-align: center;
  padding: var(--space-2xl) 0;
}

.final-cta__title {
  color: var(--color-champagne);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
}

.final-cta__text {
  color: var(--color-cream);
  opacity: 0.9;
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
}

.btn--final-cta {
  background: var(--color-champagne);
  color: var(--color-deep-purple);
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 20px rgba(226, 209, 184, 0.4);
}

.btn--final-cta:hover {
  background: var(--color-champagne-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(226, 209, 184, 0.7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-deep-purple-dark);
  color: var(--color-cream);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

@media (min-width: 640px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: var(--fs-small);
  opacity: 0.8;
  margin: 0;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--color-rose-gold-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* --------------------------------------------------------------------------
   Popup Modal
   -------------------------------------------------------------------------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.popup-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.popup-overlay--visible .popup {
  transform: translateY(0);
}

.popup__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.popup__close:hover {
  color: var(--color-deep-purple);
}

.popup__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--color-deep-purple);
  margin-bottom: var(--space-sm);
  text-align: center;
  padding-right: var(--space-lg);
}

.popup__text {
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.popup__form {
  background: var(--color-cream);
  border: 2px dashed var(--color-rose-gold);
  border-radius: var(--border-radius);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-md);
}

.popup__note {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-bottom: 0;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .hero {
    background: white;
    min-height: auto;
  }

  .hero__text,
  .hero__title {
    color: black;
  }
}
