@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #070614;
  --bg-gradient: radial-gradient(circle at center, #1b163a 0%, #0d0a21 60%, #05040a 100%);
  --panel-bg: rgba(13, 14, 28, 0.75);
  --panel-border: rgba(207, 168, 83, 0.18);
  --gold: #cfa853;
  --gold-glow: rgba(207, 168, 83, 0.3);
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0ba;
  --text-muted: #70708c;
  --red-accent: #ff4d4d;
  --red-bg: rgba(255, 77, 77, 0.08);
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(27, 22, 58, 0.4);
}

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

body {
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  overflow-x: hidden;
}

/* Header */
.main-header {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 20px 0;
  z-index: 10;
}

.logo-img {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* Main Container Card */
.container {
  width: 100%;
  max-width: 620px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 35px 25px;
  box-shadow: var(--shadow-premium);
  z-index: 5;
  position: relative;
  transition: all 0.5s ease-in-out;
}

/* Subtitle and headings */
.subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.subtitle-line {
  flex-grow: 0;
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.subtitle {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.main-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
}

.subheading {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 20px auto;
  font-weight: 400;
}

/* Custom Divider */
.custom-divider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.divider-dot {
  width: 35px;
  height: 1px;
  background: rgba(207, 168, 83, 0.35);
}

/* Instructions / Prompts */
.step-prompt {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 25px;
  opacity: 0.9;
  letter-spacing: 0.03em;
}

/* Interactive Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-items: center;
  margin-bottom: 15px;
}

/* Card 3D Setup */
.card-wrapper {
  perspective: 1000px;
  width: 100%;
  aspect-ratio: 1 / 1.55;
  max-width: 160px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  transform-style: preserve-3d;
}

.card-wrapper.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Card Faces */
.card-front, .card-back-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-front {
  background-color: #120e26;
}

.card-back-face {
  background-color: #0b0717;
  transform: rotateY(180deg);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tocar (Tap) button overlay on card backs */
.tap-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 17, 28, 0.9);
  border: 1px solid rgba(207, 168, 83, 0.4);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none; /* Let clicks pass through to card wrapper */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

/* Hover effects for unselected cards */
.card-wrapper:not(.flipped):hover .card-inner {
  transform: translateY(-5px);
}

.card-wrapper:not(.flipped):hover .card-front {
  box-shadow: 0 12px 24px rgba(207, 168, 83, 0.25), 0 0 15px rgba(207, 168, 83, 0.15);
  border-color: rgba(207, 168, 83, 0.5);
}

.card-wrapper:not(.flipped):hover .tap-btn {
  background: var(--gold);
  color: #120e26;
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Selected state during flip */
.card-wrapper.flipped .card-back-face {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(207, 168, 83, 0.2);
  border-color: rgba(207, 168, 83, 0.4);
}

/* Floating Animations for Card Selection */
.float-1 { animation: cardFloat 3.8s ease-in-out infinite; }
.float-2 { animation: cardFloat 4.2s ease-in-out infinite; animation-delay: -0.7s; }
.float-3 { animation: cardFloat 3.6s ease-in-out infinite; animation-delay: -1.4s; }
.float-4 { animation: cardFloat 4.0s ease-in-out infinite; animation-delay: -2.1s; }
.float-5 { animation: cardFloat 4.4s ease-in-out infinite; animation-delay: -2.8s; }
.float-6 { animation: cardFloat 3.9s ease-in-out infinite; animation-delay: -3.5s; }

@keyframes cardFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ------------------------------------------------------------- */
/* STATE 2: READING VIEW                                         */
/* ------------------------------------------------------------- */

.state-content {
  transition: opacity 0.5s ease-in-out;
}

#reading-state {
  display: none;
  opacity: 0;
}

/* Revealed Cards Display */
.revealed-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 15px auto 35px auto;
  max-width: 480px;
  height: 180px;
  position: relative;
}

/* The three columns in results */
.result-card-slot {
  width: 100px;
  height: 155px;
  position: relative;
  perspective: 1000px;
}

.result-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(207, 168, 83, 0.3);
  transition: transform 0.3s ease;
}

.result-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rotated Middle Card - elegant layout style */
.result-card-slot.center-slot {
  width: 130px;
  height: 100px;
}

.result-card-slot.center-slot .result-card-inner {
  transform: rotate(-90deg);
  width: 100px;
  height: 155px;
  position: absolute;
  top: -27px;
  left: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Floating animations for results */
.result-float-left {
  animation: resultFloatLeft 5s ease-in-out infinite;
}

.result-float-center {
  animation: resultFloatCenter 5.5s ease-in-out infinite;
  animation-delay: -0.8s;
}

.result-float-right {
  animation: resultFloatRight 4.8s ease-in-out infinite;
  animation-delay: -1.6s;
}

@keyframes resultFloatLeft {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes resultFloatCenter {
  /* Keep the main horizontal placement, float inside its slot */
  0% { transform: translateY(0) rotate(-90deg); }
  50% { transform: translateY(-7px) rotate(-89.5deg); }
  100% { transform: translateY(0) rotate(-90deg); }
}

@keyframes resultFloatRight {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Reading Paragraph Sections */
.readings-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.reading-block {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin-left: 5px;
  text-align: left;
  opacity: 0;
  transform: translateY(15px);
  animation: slideUpFade 0.6s forwards;
}

.reading-block:nth-child(1) { animation-delay: 0.1s; }
.reading-block:nth-child(2) { animation-delay: 0.3s; }
.reading-block:nth-child(3) { animation-delay: 0.5s; }

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reading-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reading-text {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
}

.blurred-text {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
  margin-bottom: 15px;
}

.continue-btn {
  background: rgba(18, 17, 28, 0.6);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
  display: inline-block;
}

.continue-btn:hover {
  background: var(--gold);
  color: #120e26;
  box-shadow: 0 0 10px var(--gold-glow);
  transform: translateY(-1px);
}

/* Urgency / Warning Box */
.warning-box {
  border: 1px solid var(--red-accent);
  background: var(--red-bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  opacity: 0;
  animation: slideUpFade 0.6s forwards;
  animation-delay: 0.7s;
}

.warning-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red-accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.warning-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #ffcccc;
  font-weight: 400;
}

/* CTA Footer */
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: slideUpFade 0.6s forwards;
  animation-delay: 0.9s;
}

.cta-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.timer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.red-dot {
  width: 7px;
  height: 7px;
  background-color: #ff4d4d;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* High Conversion Pulsing Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: #120e26;
  background: linear-gradient(90deg, #FEE38A 0%, #FA898B 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(250, 137, 139, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulseGlow 2.5s infinite;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(250, 137, 139, 0.5), 0 0 20px rgba(254, 227, 138, 0.3);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button-arrow {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-button-arrow {
  transform: translateX(4px);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 8px 20px rgba(250, 137, 139, 0.3), 0 0 0 0 rgba(254, 227, 138, 0.2);
  }
  50% {
    box-shadow: 0 8px 28px rgba(250, 137, 139, 0.5), 0 0 0 12px rgba(254, 227, 138, 0);
  }
  100% {
    box-shadow: 0 8px 20px rgba(250, 137, 139, 0.3), 0 0 0 0 rgba(254, 227, 138, 0.2);
  }
}

/* ------------------------------------------------------------- */
/* RESPONSIVENESS & MOBILE STYLING                               */
/* ------------------------------------------------------------- */

@media (max-width: 580px) {
  body {
    padding: 12px;
  }

  .main-header {
    margin: 5px 0 15px 0;
  }

  .logo-img {
    max-width: 130px;
  }

  .container {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .main-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .subheading {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }

  .custom-divider {
    margin: 15px 0;
  }

  .step-prompt {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  /* Grid scaling */
  .cards-grid {
    gap: 8px;
  }

  .tap-btn {
    font-size: 0.55rem;
    padding: 4px 8px;
    bottom: 8px;
  }

  /* Results styling */
  .revealed-cards-container {
    height: 140px;
    margin-bottom: 25px;
    gap: 15px;
  }

  .result-card-slot {
    width: 76px;
    height: 118px;
  }

  .result-card-inner {
    width: 100%;
    height: 100%;
  }

  .result-card-slot.center-slot {
    width: 98px;
    height: 76px;
  }

  .result-card-slot.center-slot .result-card-inner {
    width: 76px;
    height: 118px;
    top: -21px;
    left: 11px;
  }

  /* Adjusted animations for rotated center card on mobile to keep proportions */
  @keyframes resultFloatCenter {
    0% { transform: translateY(0) rotate(-90deg); }
    50% { transform: translateY(-5px) rotate(-89.5deg); }
    100% { transform: translateY(0) rotate(-90deg); }
  }

  .reading-block {
    padding-left: 14px;
  }

  .reading-title {
    font-size: 0.95rem;
  }

  .reading-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .warning-box {
    padding: 15px;
    margin-bottom: 25px;
  }

  .warning-text {
    font-size: 0.8rem;
  }

  .cta-tagline {
    font-size: 0.78rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 14px 24px;
  }
}

/* Support for very small viewports (e.g. iPhone SE) */
@media (max-width: 360px) {
  .cards-grid {
    gap: 6px;
  }

  .tap-btn {
    font-size: 0.5rem;
    padding: 3px 6px;
  }

  .revealed-cards-container {
    height: 120px;
    gap: 10px;
  }

  .result-card-slot {
    width: 65px;
    height: 100px;
  }

  .result-card-slot.center-slot {
    width: 84px;
    height: 65px;
  }

  .result-card-slot.center-slot .result-card-inner {
    width: 65px;
    height: 100px;
    top: -17px;
    left: 9px;
  }
}

/* ============================================================= */
/* VSL DELAYED CONTENT STYLING                                   */
/* ============================================================= */

#delayed-content {
  margin-top: 40px;
  width: 100%;
}

.quote-box {
  border-left: 3px solid var(--gold);
  background: rgba(207, 168, 83, 0.05);
  border-radius: 0 16px 16px 0;
  padding: 24px 20px;
  margin: 30px auto;
  max-width: 480px;
  text-align: left;
  border-top: 1px solid rgba(207, 168, 83, 0.05);
  border-right: 1px solid rgba(207, 168, 83, 0.05);
  border-bottom: 1px solid rgba(207, 168, 83, 0.05);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-author {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  font-style: italic;
}

.packages-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin: 35px auto;
  width: 100%;
  max-width: 360px;
}

.package-btn-link {
  display: block;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2), box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.package-btn-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(207, 168, 83, 0.3);
}

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

.guarantee-card {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  border-radius: 20px;
  padding: 30px 24px;
  margin: 45px auto 15px auto;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.guarantee-profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.guarantee-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.4;
}

.guarantee-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 300;
  text-align: left;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 35px 0;
  text-align: left;
}

.testimonial-card {
  background: rgba(13, 14, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(207, 168, 83, 0.2);
  background: rgba(13, 14, 28, 0.55);
}

.stars {
  color: #ffb300;
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.testimonial-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.testimonial-body {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 300;
}

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 580px) {
  .quote-box {
    padding: 16px;
  }
  .quote-text {
    font-size: 0.9rem;
  }
  .guarantee-card {
    padding: 20px 16px;
  }
  .guarantee-profile-img {
    width: 110px;
    height: 110px;
  }
  .guarantee-title {
    font-size: 1.15rem;
  }
  .guarantee-text {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}
