/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-green: hsl(142, 60%, 35%);
    --primary-green-light: hsl(142, 60%, 95%);
    --primary-green-hover: hsl(142, 60%, 28%);
    --dark-charcoal: hsl(220, 15%, 13%);
    --dark-accent: hsl(220, 15%, 8%);
    --text-main: hsl(220, 15%, 20%);
    --text-muted: hsl(220, 10%, 45%);
    --light-bg: hsl(0, 0%, 98%);
    --white: hsl(0, 0%, 100%);
    
    /* Book-Specific Accents */
    --book1-red: hsl(0, 75%, 45%);
    --book1-bg: hsl(0, 75%, 98%);
    --book2-amber: hsl(38, 92%, 50%);
    --book2-bg: hsl(220, 15%, 10%);
    --book3-warm: hsl(25, 60%, 45%);
    --book3-bg: hsl(30, 40%, 98%);
    
    /* Layout & Shadow Tokens */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --shadow-premium: 0 25px 50px -12px rgba(34, 197, 94, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-charcoal);
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.text-green { color: var(--primary-green); }
.text-amber { color: var(--book2-amber); }
.text-red { color: var(--book1-red); }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition-fast);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(34, 197, 94, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-charcoal);
    border: 2px solid var(--dark-charcoal);
}

.btn-secondary:hover {
    background-color: var(--dark-charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-amber {
    background-color: var(--book2-amber);
    color: var(--dark-accent);
    font-weight: 700;
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
}

.btn-amber:hover {
    background-color: hsl(38, 92%, 45%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(212, 175, 55, 0.5);
}

.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-pulse:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: 0s;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 5%;
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 5%;
}

.logo-container img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

nav a:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 9rem 5% 6rem;
    background: linear-gradient(135deg, hsl(142, 40%, 96%) 0%, hsl(142, 20%, 98%) 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-green);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-green-light);
}

.hero-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-green);
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--dark-charcoal);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* Combo Visual showcase in 3D */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.combo-bundle {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 480px;
}

.combo-book {
    position: absolute;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    cursor: pointer;
}

.combo-book img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.book-left {
    width: 220px;
    height: 310px;
    left: 0;
    top: 90px;
    transform: rotate(-12deg) translateY(0);
    z-index: 10;
    animation: float-left 6s ease-in-out infinite;
}

.book-center {
    width: 240px;
    height: 340px;
    left: 105px;
    top: 50px;
    transform: translateY(0);
    z-index: 20;
    animation: float-center 6s ease-in-out infinite;
    box-shadow: var(--shadow-premium);
}

.book-right {
    width: 210px;
    height: 295px;
    right: 0;
    top: 110px;
    transform: rotate(12deg) translateY(0);
    z-index: 10;
    animation: float-right 6s ease-in-out infinite;
}

.combo-book:hover {
    transform: scale(1.08) translateY(-15px) !important;
    z-index: 50;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

/* ==========================================================================
   FEATURES / BENEFITS
   ========================================================================== */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-green-light);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   BOOK SHOWCASE (INDIVIDUALS)
   ========================================================================== */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.showcase-right {
    grid-template-columns: 1.2fr 1fr;
}

.book-showcase-img {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-showcase-img img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    transition: var(--transition-normal);
}

.book-showcase-img img:hover {
    transform: scale(1.03) rotate(1deg);
}

.badge-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.showcase-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.bullet-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.bullet-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-green-light);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Libro 1 Customizer */
.showcase-libro1 {
    background-color: var(--book1-bg);
}
.showcase-libro1 .badge-tag {
    background-color: hsl(0, 75%, 95%);
    color: var(--book1-red);
}
.showcase-libro1 .bullet-list li::before {
    background-color: hsl(0, 75%, 95%);
    color: var(--book1-red);
}

/* Libro 2 Customizer (Dark Mode Premium) */
.showcase-libro2 {
    background-color: var(--book2-bg);
    color: hsl(0, 0%, 90%);
}
.showcase-libro2 h2 {
    color: var(--white);
}
.showcase-libro2 .badge-tag {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--book2-amber);
}
.showcase-libro2 .bullet-list li::before {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--book2-amber);
}
.showcase-libro2 .showcase-desc {
    color: hsl(0, 0%, 75%);
}

/* Libro 3 Customizer */
.showcase-libro3 {
    background-color: var(--book3-bg);
}
.showcase-libro3 .badge-tag {
    background-color: hsl(25, 60%, 95%);
    color: var(--book3-warm);
}
.showcase-libro3 .bullet-list li::before {
    background-color: hsl(25, 60%, 95%);
    color: var(--book3-warm);
}

/* ==========================================================================
   QUIZ SECTION
   ========================================================================== */
.quiz-section {
    background: linear-gradient(135deg, hsl(142, 50%, 90%) 0%, hsl(142, 20%, 95%) 100%);
    position: relative;
    overflow: hidden;
}

.quiz-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.quiz-progress {
    height: 6px;
    background: hsl(0, 0%, 90%);
    border-radius: 3px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    width: 33%;
    background: var(--primary-green);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.quiz-question {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

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

.quiz-option {
    border: 2px solid hsl(0, 0%, 90%);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    background: var(--white);
    color: var(--text-main);
}

.quiz-option:hover {
    border-color: var(--primary-green);
    background-color: var(--primary-green-light);
    transform: translateX(4px);
}

.quiz-option.selected {
    border-color: var(--primary-green);
    background-color: var(--primary-green-light);
    box-shadow: 0 0 0 1px var(--primary-green);
}

/* Quiz Result CSS */
.quiz-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-result-recommendation {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--primary-green-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid hsl(142, 60%, 85%);
}

.quiz-result-book-img {
    width: 100px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.quiz-result-text h4 {
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   OFFER / PRICING SECTION
   ========================================================================== */
.offer-section {
    background-color: var(--dark-charcoal);
    color: var(--white);
    position: relative;
}

.offer-container {
    max-content: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.offer-card {
    background: var(--dark-accent);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 250px;
    height: 250px;
    background: var(--primary-green);
    opacity: 0.15;
    filter: blur(100px);
    border-radius: 50%;
}

.badge-discount {
    position: absolute;
    top: 2rem;
    right: -2rem;
    background: var(--book2-amber);
    color: var(--dark-accent);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
}

.pricing-box {
    margin: 2rem 0;
}

.price-original {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.price-current {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.price-current span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--book2-amber);
}

/* Timer elements */
.timer-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.timer-segment {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    min-width: 75px;
    text-align: center;
}

.timer-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--book2-amber);
    font-family: 'Outfit', sans-serif;
}

.timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.guarantee-box {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guarantee-icon {
    font-size: 2.5rem;
}

.guarantee-text h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.guarantee-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Individual pricing comparison list */
.individual-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.individual-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.individual-item-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.individual-item img {
    width: 40px;
    border-radius: 2px;
}

.individual-item span {
    font-weight: 600;
    color: var(--text-muted);
}

.individual-item .item-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.stars {
    color: var(--book2-amber);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* ==========================================================================
   FAQS SECTION
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid hsl(0, 0%, 92%);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--white);
    color: var(--dark-charcoal);
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-icon {
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(30px);
    transition: transform var(--transition-normal);
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-header h3 {
    color: var(--white);
    font-size: 1.35rem;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.checkout-summary {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed rgba(0,0,0,0.1);
}

.checkout-summary span {
    font-weight: 500;
}

.checkout-summary .summary-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-green);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-charcoal);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid hsl(0, 0%, 85%);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method-btn {
    border: 2px solid hsl(0, 0%, 90%);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.payment-method-btn:hover {
    border-color: var(--primary-green);
}

.payment-method-btn.active {
    border-color: var(--primary-green);
    background-color: var(--primary-green-light);
    color: var(--primary-green);
}

/* Success modal display state */
.success-screen {
    text-align: center;
    padding: 2rem 0;
    display: none;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-green-light);
    color: var(--primary-green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: success-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-screen h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-screen p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--dark-accent);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.secure-payment-logos {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes float-center {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes float-left {
    0% { transform: rotate(-12deg) translateY(0px); }
    50% { transform: rotate(-12deg) translateY(-8px) translateX(-4px); }
    100% { transform: rotate(-12deg) translateY(0px); }
}

@keyframes float-right {
    0% { transform: rotate(12deg) translateY(0px); }
    50% { transform: rotate(12deg) translateY(-10px) translateX(4px); }
    100% { transform: rotate(12deg) translateY(0px); }
}

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

@keyframes success-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .combo-bundle {
        height: 380px;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .book-left {
        width: 170px;
        height: 240px;
        top: 60px;
    }
    
    .book-center {
        width: 190px;
        height: 270px;
        left: 85px;
        top: 30px;
    }
    
    .book-right {
        width: 160px;
        height: 225px;
        top: 75px;
    }
    
    .showcase-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .showcase-right {
        grid-template-columns: 1fr;
    }
    
    .showcase-right .book-showcase-img {
        grid-row: 1;
    }
    
    .offer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    header {
        padding: 1rem 5%;
    }
    
    nav {
        display: none; /* Mobile menu can toggle or be omitted for simplicity/pure conversion */
    }
    
    .quiz-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
