/* CSS Variables for Neutral Minimalist Theme */
:root {
    --bg-primary: #F9F9F7;
    /* Off-white / Cream */
    --bg-secondary: #EBEAE6;
    /* Slightly darker for contrast */
    --text-primary: #333333;
    /* Soft Black */
    --text-secondary: #666666;
    /* Grey */
    --accent: #A8B5A3;
    /* Muted Sage */
    --accent-dark: #8A9685;
    --highlight: #D3CFC8;
    /* Soft Taupe */

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.italic-serif {
    font-style: italic;
    color: var(--text-secondary);
    /* A subtle contrast */
}

/* Navbar */
.navbar {
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 249, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-sm:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--spacing-xl) + 60px);
    padding-bottom: var(--spacing-xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text h1 .highlight-text {
    display: block;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 2.5rem;
    /* Smaller sub-headline */
    margin-top: 0.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 90%;
    line-height: 1.7;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
}

/* Book Mockup */
.book-mockup {
    width: 300px;
    height: 450px;
    background-color: #e0ded9;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1), -5px -5px 20px rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
}

.book-cover {
    text-align: center;
    padding: 2rem;
}

.book-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.book-subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Features */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-md);
    background: #fff;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Preview Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.align-center {
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.check-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: "•";
    color: var(--accent-dark);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Device Mockup */
.device-mockup {
    width: 280px;
    height: 500px;
    background: #111;
    border-radius: 30px;
    margin: 0 auto;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.screen-content {
    background: #fff;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.chapter-title {
    font-family: var(--font-serif);
    font-weight: bold;
    margin-bottom: 20px;
}

.text-lines {
    height: 10px;
    background: #eee;
    margin-bottom: 10px;
    border-radius: 4px;
}

.text-lines.short {
    width: 60%;
}

/* Testimonials */
.scrolling-wrapper {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
    min-width: 300px;
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.testimonial-card .author {
    margin-top: var(--spacing-sm);
    font-weight: 600;
    font-family: var(--font-serif);
    color: var(--text-secondary);
}

/* Pricing */
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-header h3 {
    font-size: 1.5rem;
}

.price {
    margin: var(--spacing-md) 0;
    color: var(--text-primary);
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
    text-align: left;
    display: inline-block;
}

.pricing-features li {
    margin-bottom: 10px;
}

.guarantee-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-links {
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: #888;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Animations using Classes */
.fade-up-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* New Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg);
    }

    100% {
        transform: translateY(0px) rotate(-3deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(51, 51, 51, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(51, 51, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(51, 51, 51, 0);
    }
}

.btn-pulse {
    animation: pulse-shadow 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .preview-image {
        order: -1;
        /* Image first on mobile */
    }
}

/* ==== eBook Cover Image (Hero) ==== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ebook-cover-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Context for blob */
    z-index: 1;
}

.hero-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at center, #EBEAE6 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.ebook-cover-image {
    width: 340px;
    /* Slightly larger */
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    transform: rotate(-3deg);
    /* Slight tilt for dynamism */
}

/* Mobile */
@media (max-width: 768px) {
    .ebook-cover-image {
        width: 260px;
    }
}