/* =========================================================================
   VARIABLES & DESIGN SYSTEM
   ========================================================================= */
:root {
  /* Palette requested to stay exactly the same */
  --color-bg-light: #FFF9F9;
  --color-bg-alt: #E1CFCE;
  --color-primary: #AF7E83;
  --color-text: #191C1F;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows & Shapes */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* =========================================================================
   RESET & BASICS
   ========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.font-heading {
  font-family: var(--font-heading);
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.section-title i {
  vertical-align: middle;
  position: relative;
  top: -2px;
  color: var(--color-primary);
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(175, 126, 131, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(175, 126, 131, 0.5);
}

.btn-large {
  font-size: 1.25rem;
  padding: 20px 48px;
}

.btn-icon {
  width: 24px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Pulse animation for CTA */
@keyframes pulseSoft {
  0% {
    box-shadow: 0 0 0 0 rgba(175, 126, 131, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(175, 126, 131, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(175, 126, 131, 0);
  }
}

.pulse-btn {
  animation: pulseSoft 2.5s infinite;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */

/* Hero Section */
.hero {
  background-color: var(--color-bg-light);
  overflow: hidden;
  padding: 60px 0 100px 0;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.hero .subtitle {
  font-size: 1.5rem;
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: 24px;
  color: var(--color-text);
  max-width: 90%;
}

.hero .description {
  font-size: 1.125rem;
  margin-bottom: 40px;
  color: #4a4a4a;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* =========================================================================
   MOCKUPS & 3D CSS
   ========================================================================= */

.mockup-group {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatMockups 8s ease-in-out infinite;
}

@keyframes floatMockups {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* 3D Book */
.book-container {
  perspective: 1200px;
  width: 240px;
  height: 350px;
  position: absolute;
  z-index: 2;
  left: 0%;
}

.book {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-25deg) rotateX(5deg) rotateZ(-2deg);
  transition: transform 0.5s ease;
  box-shadow: -15px 20px 30px rgba(0, 0, 0, 0.2);
}

.book:hover {
  transform: rotateY(-10deg) rotateX(2deg);
}

.book-front,
.book-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 2px 6px 6px 2px;
}

.book-front {
  transform: translateZ(10px);
  background: #fff;
  z-index: 2;
  overflow: hidden;
  border-radius: 2px 8px 8px 2px;
  position: relative;
}

/* Simulated Spine Strip - Thinner as requested */
.book-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  /* Thinner visual spine */
  height: 100%;
  background: var(--color-primary);
  z-index: 4;
  box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.15);
}

.book-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gloss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
  z-index: 5;
  pointer-events: none;
}

.book-page {
  position: absolute;
  background: #fdfdfd;
}

/* Right side pages - Re-added effect */
.book-right {
  width: 20px;
  height: calc(100% - 4px);
  top: 2px;
  right: -10px;
  /* Centered on the 20px thickness axis */
  transform: rotateY(90deg);
  background: repeating-linear-gradient(to bottom, #f3f3f3, #e0e0e0 2px, #fdfdfd 2px, #fdfdfd 4px);
  z-index: 1;
}

/* Top pages */
.book-top {
  width: calc(100% - 4px);
  height: 20px;
  top: -10px;
  left: 2px;
  transform: rotateX(90deg);
  background: repeating-linear-gradient(to right, #f3f3f3, #e0e0e0 2px, #fdfdfd 2px, #fdfdfd 4px);
  z-index: 1;
}

/* Bottom pages */
.book-bottom {
  width: calc(100% - 4px);
  height: 20px;
  bottom: -10px;
  left: 2px;
  transform: rotateX(-90deg);
  background: repeating-linear-gradient(to right, #f3f3f3, #e0e0e0 2px, #fdfdfd 2px, #fdfdfd 4px);
  z-index: 1;
}

/* Smartphone Mockup */
.phone-container {
  position: absolute;
  right: 0%;
  top: 60px;
  z-index: 1;
}

.phone-mockup {
  width: 160px;
  height: 320px;
  border: 10px solid #191C1F;
  border-radius: 24px;
  background: #191C1F;
  position: relative;
  overflow: hidden;
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.15);
  transform: rotate(10deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotate(5deg) translateY(-5px);
}

.phone-notch {
  position: absolute;
  top: -2px;
  /* Deeper overlap */
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  /* Slightly wider */
  height: 16px;
  /* Taller */
  background: #191C1F;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.phone-screen {
  width: 100%;
  height: calc(100% - 1px);
  object-fit: contain;
  background-color: var(--color-bg-light);
  position: absolute;
  top: 1px;
  /* Pushed down to leave a black safety line at the very top */
  left: 0;
  z-index: 2;
  border-radius: 12px;
  outline: 1px solid transparent;
  /* Anti-aliasing fix for rotated elements */
}

/* About Content Section */
.about-content {
  background-color: var(--color-bg-alt);
}

.content-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.content-text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.content-text-block p {
  margin-bottom: 16px;
}

.features-highlights {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 10px 20px;
  background: var(--color-white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.highlight i {
  font-size: 1.5rem;
}

.menu-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.menu-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--color-primary);
}

.menu-card h3 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.styled-list {
  list-style: none;
}

.styled-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.styled-list li:last-child {
  border-bottom: none;
}

.styled-list li::before {
  content: "✦";
  color: var(--color-primary);
  font-size: 0.8rem;
}

/* About Author Section */
.about-author {
  background-color: var(--color-bg-light);
}

.author-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.author-image-wrapper {
  flex: 5;
  position: relative;
}

.author-img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  border-radius: 20px;
  z-index: 1;
  max-width: 450px;
}

.author-content {
  flex: 7;
}

.author-content p {
  margin-bottom: 20px;
  font-size: 1.125rem;
}


/* Offer Section */
.offer {
  background-color: var(--color-bg-alt);
}

.offer-container {
  max-width: 800px;
}

.offer-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offer-header {
  margin-bottom: 32px;
}

.scarcity-tag {
  display: inline-block;
  background-color: #fce8e6;
  color: #d93025;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.countdown-timer {
  font-size: 3rem;
  font-weight: 700;
  color: #d93025;
  font-family: var(--font-heading);
  line-height: 1;
  margin-top: 10px;
}

.offer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.guarantee-badge img {
  width: 120px;
  pointer-events: none;
}

.price-details {
  text-align: left;
}

.price-label {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin: 8px 0;
  font-family: var(--font-heading);
}

.installments {
  font-size: 1.125rem;
  color: #4a4a4a;
}

.offer-features {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 40px auto;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.offer-features p {
  margin-bottom: 16px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer */
.footer {
  background-color: var(--color-bg-light);
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-copy {
  font-size: 0.875rem;
  color: #666;
}

/* =========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================= */

@media (max-width: 900px) {

  .hero-container,
  .author-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero .description {
    margin: 0 auto 30px auto;
  }

  .author-image-wrapper {
    max-width: 100%;
  }

  .image-accent {
    display: none;
    /* simplifies layout on mobile */
  }

  .menu-lists {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    transform: scale(0.8);
    margin-top: -20px;
    margin-bottom: -30px;
  }

  .book-container {
    left: -5px;
  }

  .phone-container {
    right: 50px;
  }

  .offer-main {
    flex-direction: column;
    gap: 20px;
  }

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

  .price {
    font-size: 3rem;
  }

  .offer-box {
    padding: 32px 24px;
  }

  .btn {
    width: 100%;
  }

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

  .offer-features p {
    justify-content: center;
    text-align: left;
  }
}