:root {
    --primary: #B5838D;
    /* Dusty Pink */
    --primary-hover: #A8707A;
    --secondary: #6D6875;
    /* Deep Lavender/Grey */
    --bg-color: #FAF9F6;
    /* Off-white/Beige */
    --bg-alt: #F4E4E4;
    /* Soft Pink/Beige for sections */
    --surface: #FFFFFF;
    --text-main: #4A4A4A;
    --text-light: #7A7A7A;
    --accent: #E5989B;
    /* Melon/Pink */
    --danger: #E29578;
    /* Muted Orange/Terra cotta */
    --shadow: 0 10px 40px -10px rgba(181, 131, 141, 0.2);
    --radius: 16px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    /* Prevent text overflow */
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        /* Use full width minus padding */
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
        overflow: hidden;
        /* Prevent horizontal scroll in hero */
    }

    .hero h1 {
        font-size: 1.6rem;
        /* Smaller hero title for mobile */
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.6rem !important;
        /* Force smaller size for section titles */
        word-wrap: break-word;
    }

    .book-container {
        transform: scale(0.85);
        /* Slightly shrink book on very small screens */
    }
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}


.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary);
    font-style: italic;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #ff0000;
    /* Red as in image */
    color: var(--surface);
    text-align: center;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, #F4EBD9 100%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-media {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

/* 3D Book Component */
:root {
    --book-width: 300px;
    --book-height: 450px;
    --book-depth: 50px;
}

.book-container {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    width: var(--book-width);
    height: var(--book-height);
    position: relative;
    transform-style: preserve-3d;
}

.book-css {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.3);
}

.book-css:hover {
    transform: rotateY(-15deg) rotateX(0deg) scale(1.02);
    box-shadow: 25px 25px 50px rgba(0, 0, 0, 0.4);
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #a43e2a 100%);
    border-radius: 4px 8px 8px 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    text-align: center;
    color: white;
    transform: translateZ(calc(var(--book-depth) / 2));
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    bottom: 0;
    width: 15px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.1);
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--book-depth);
    height: 100%;
    background: #8e3624;
    transform: rotateY(-90deg) translateZ(calc(var(--book-depth) / 2));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 0 0 4px;
}

.book-spine span {
    display: block;
    transform: rotate(90deg);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: bold;
}

.book-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateZ(calc(var(--book-depth) / -2));
    border-radius: 4px 8px 8px 4px;
    box-shadow: inset -5px 0 20px rgba(0, 0, 0, 0.05);
}

/* Book Pages Right Side */
.book-pages {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --book-width: 200px;
        --book-height: 300px;
        --book-depth: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .book-title-main {
        font-size: 2.2rem !important;
    }

    .book-title-sub {
        font-size: 0.8rem !important;
        /* Smaller subtitle on mobile */
        letter-spacing: 1px !important;
    }

    .bonuses-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

.book-pages-right {
    position: absolute;
    top: 2%;
    right: calc(var(--book-depth) / -2 + 1px);
    width: var(--book-depth);
    height: 96%;
    background: #fff;
    background-image: linear-gradient(90deg, #eee 1px, transparent 1px);
    background-size: 3px 100%;
    transform: rotateY(90deg);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Cover Content Styling */
.book-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.book-title-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 0;
}

.book-author {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
}

.book-3d {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 86, 64, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 86, 64, 0.4);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(181, 131, 141, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(181, 131, 141, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(181, 131, 141, 0);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: rotateY(-25deg) rotateX(5deg) scale(1);
    }

    50% {
        transform: rotateY(-25deg) rotateX(5deg) scale(1.03);
    }
}

.book-breathe {
    animation: breathe 6s ease-in-out infinite;
}

.guarantee {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Sections */
.section {
    padding: 3rem 0;
    /* Reduced padding for mobile */
}

/* Fix for centering causing overflow */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    /* display: block; Default is block for h2 usually, or we ensure it */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0.5rem auto 0;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: #FFE5D9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-box i {
    width: 30px;
    height: 30px;
}

.quote-box {
    background-color: var(--primary);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.quote-box p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-box h3 {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Solution Section */
.solution-section {
    background-color: white;
}

.benefit-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.check-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 5px;
}

/* Bonuses Section */
.bonuses-section {
    background-color: #F4F1DE;
    padding-bottom: 6rem;
}

.bonus-header {
    text-align: center;
    margin-bottom: 4rem;
}

.bonus-subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.bonus-card {
    background: white;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bonus-card:hover {
    transform: translateY(-8px);
}

.bonus-image-container {
    background: #fcfcfc;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.bonus-image-container img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.bonus-card:hover .bonus-image-container img {
    transform: scale(1.05);
}

.bonus-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bonus-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    /* Moved to right */
    left: auto;
    background-color: var(--danger);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.bonus-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.bonus-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly squarer like typical reviews */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: #333;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
    fill: black;
    /* Or color from image */
}

.stars {
    color: #FFC107;
    /* Standard star yellow */
    font-size: 1rem;
    margin: 0;
}

.review-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    flex-grow: 1;
}

.review-product-thumb {
    width: 60px;
    height: auto;
    border-radius: 4px;
    margin-top: 0.5rem;
    align-self: flex-start;
}

/* Offer Section */
.offer-section {
    padding-bottom: 6rem;
}

.offer-box {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(192, 86, 64, 0.1);
}

.offer-label {
    background-color: var(--danger);
    color: white;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.stack-list {
    text-align: left;
    max-width: 400px;
    margin: 2rem auto;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.stack-list p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.5rem;
}

.new-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.secure-payment {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* FAQ */
.faq-section {
    background-color: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin-top: 1rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: white;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Animations */
/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* CSS Digital Covers for Bonuses */
.digital-cover {
    width: 140px;
    height: 190px;
    background: linear-gradient(135deg, var(--bg-color) 0%, #fff 100%);
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Harder edges for book look */
    position: relative;
    box-shadow:
        1px 0 0 #ccc,
        2px 0 0 #ccc,
        3px 0 0 #ccc,
        4px 0 0 #ccc,
        /* Fake spine pages */
        5px 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.bonus-card:hover .digital-cover {
    transform: translateY(-5px) rotateY(-5deg);
    box-shadow:
        1px 0 0 #ccc,
        2px 0 0 #ccc,
        3px 0 0 #ccc,
        4px 0 0 #ccc,
        8px 8px 20px rgba(0, 0, 0, 0.2);
}

.cover-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cover-decoration {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Color variants for covers */
.cover-blue {
    border-top: 5px solid var(--accent);
}

.cover-yellow {
    border-top: 5px solid var(--secondary);
}

.cover-red {
    border-top: 5px solid var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 900px) {

    .reviews-grid,
    .bonuses-grid,
    .problem-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 2rem 0;
        overflow: hidden;
        /* Prevent horizontal scroll from 3D animations */
    }

    .hero h1 {
        font-size: 1.7rem;
        /* Slightly smaller for better fit */
        line-height: 1.25;
        padding: 0 0.5rem;
        word-wrap: break-word;
        /* Prevent overflow of long words */
    }

    .hero .subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        width: 100%;
        padding: 0 10px;
    }

    .section p,
    .benefit-list li {
        font-size: 1rem;
        /* Readable base size */
    }

    .benefit-list li {
        margin-bottom: 1.2rem;
        align-items: flex-start;
    }

    /* Improve image constraints on mobile */
    .bonus-image-container {
        height: auto;
        padding: 2rem 1rem;
    }

    .bonus-image-container img {
        max-height: 200px;
        /* Limit height so they don't dominate */
    }

    .book-container {
        margin: 1.5rem auto;
    }

    /* Fix stack list spacing */
    .stack-list {
        padding: 1rem;
        margin: 1.5rem auto;
    }

    .section-title::after {
        width: 40px;
    }

    /* Resize book via variables for proper flow layout */
    :root {
        --book-width: 200px;
        --book-height: 300px;
        --book-depth: 35px;
    }

    .book-container {
        margin: 2rem auto;
        /* No transform scale, actual size change */
    }

    .book-title-main {
        font-size: 2rem;
        margin-top: 10px;
    }

    .book-title-sub {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .new-price {
        font-size: 2.8rem;
    }

    .offer-box {
        padding: 2rem 1rem;
    }

    .reviews-grid,
    .bonuses-grid,
    .problem-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 1.5rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --book-width: 160px;
        --book-height: 240px;
        --book-depth: 25px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .price-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .old-price {
        font-size: 1.2rem;
    }

    .new-price {
        font-size: 2.5rem;
    }

    .stack-list {
        font-size: 0.9rem;
    }

    .bonus-card h3 {
        font-size: 1.1rem;
    }
}