/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - "VINTAGE AFETIVO - AQUARELA"
   ========================================================================== */

:root {
    --bg-primary: #FAF7F2;
    --bg-secondary: #F5EFE8;
    --bg-card: #FFFFFF;
    --text-primary: #322521;      /* Café/Espresso Escuro */
    --text-secondary: #5C4D4A;    /* Marrom Acinzentado Suave */
    --text-light: #8E7F7C;        /* Sepia Claro */
    --accent-primary: #CD8065;    /* Terracota / Pêssego Floral */
    --accent-hover: #B56B52;      /* Terracota Escuro */
    --accent-secondary: #858F7D;  /* Verde Sálvia Botânico */
    --accent-light: #EBECE9;      /* Sálvia Claro */
    --border-color: #EBE3DA;      /* Borda Marfim Quente */
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(50, 37, 33, 0.04);
    --shadow-md: 0 8px 24px rgba(50, 37, 33, 0.06);
    --shadow-lg: 0 16px 40px rgba(50, 37, 33, 0.10);
    --font-serif: 'Playfair Display', 'Lora', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

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

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.section-badge {
    display: inline-block;
    color: var(--accent-secondary);
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 6px;
}

.section-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-primary);
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 700px;
    margin: -0.5rem auto 3rem auto;
    color: var(--text-secondary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(205, 128, 101, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 128, 101, 0.45);
}

.btn-secondary {
    background-color: var(--text-primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #4a3c38;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    width: 100%;
    max-width: 420px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(205, 128, 101, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(205, 128, 101, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(205, 128, 101, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.main-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding: 60px 0 100px 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(205, 128, 101, 0.12) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: var(--accent-light);
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-benefits-list {
    margin-bottom: 35px;
    width: 100%;
}

.benefit-item-small {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-check {
    width: 20px;
    height: 20px;
    fill: var(--accent-secondary);
    flex-shrink: 0;
}

.cta-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cta-subtext {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
    max-width: 420px;
}

/* 3D BOOK MOCKUP */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.book-mockup-container {
    perspective: 1200px;
    padding: 20px 0;
}

.book-mockup {
    width: clamp(230px, 30vw, 320px);
    height: clamp(320px, 42vw, 440px);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) rotateX(8deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg) translateY(-8px);
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 2px 12px 12px 2px;
    box-shadow: inset 4px 0 10px rgba(0,0,0,0.1), 0 15px 35px rgba(50, 37, 33, 0.12);
    z-index: 5;
    transform-style: preserve-3d;
    transform-origin: left center;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px 12px 12px 2px;
}

.book-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    border-radius: 2px 12px 12px 2px;
    z-index: 6;
    pointer-events: none;
}

.book-pages {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: calc(100% - 8px);
    width: 20px;
    background: #fbfbfb;
    border: 1px solid #ede5db;
    border-radius: 0 6px 6px 0;
    transform: rotateY(90deg);
    transform-origin: left center;
    box-shadow: inset 3px 0 8px rgba(0,0,0,0.04);
    background-image: repeating-linear-gradient(to right, transparent 0px, transparent 1px, #f2eae0 1px, #f2eae0 2px);
    z-index: 4;
}

.book-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-secondary);
    border-radius: 12px 2px 2px 12px;
    transform: translateZ(-20px);
    z-index: 3;
    box-shadow: 0 10px 25px rgba(50, 37, 33, 0.08);
}

.mockup-shadow {
    width: clamp(230px, 30vw, 320px);
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(50, 37, 33, 0.12) 0%, rgba(50, 37, 33, 0) 70%);
    position: absolute;
    bottom: -15px;
    border-radius: 50%;
    z-index: 1;
}

/* ==========================================================================
   STORY / CONNECTION SECTION
   ========================================================================== */

.story-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.story-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: justify;
}

.story-text p {
    margin-bottom: 24px;
}

.highlight-paragraph {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.5;
    border-left: 4px solid var(--accent-primary);
    padding-left: 20px;
    margin-top: 35px;
    font-style: italic;
}

/* ==========================================================================
   FEATURES / SECTIONS GRID
   ========================================================================== */

.features-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    width: 30px;
    height: 30px;
    fill: var(--accent-secondary);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   INTERACTIVE PAGES PREVIEW (CAROUSEL)
   ========================================================================== */

.carousel-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 650px;
    margin: 40px auto 0 auto;
    padding: 0 15px;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-img {
    max-height: 480px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 6px solid var(--white);
    background-color: var(--white);
}

.carousel-caption {
    margin-top: 15px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

.carousel-btn:hover svg {
    fill: var(--white);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    transition: fill 0.3s ease;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-primary);
    transform: scale(1.2);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-it-works-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(133, 143, 125, 0.35);
}

.step-card h3 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-card p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ==========================================================================
   OFFER / PRICING SECTION
   ========================================================================== */

.offer-section {
    padding: 100px 0;
    background-image: radial-gradient(circle at 10% 80%, rgba(205, 128, 101, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
}

.offer-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.offer-badge {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.offer-title {
    margin-bottom: 30px;
}

.offer-mockup-wrapper {
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
}

.offer-mini-mockup {
    width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
}

.price-box {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.price-current {
    display: flex;
    align-items: flex-start;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 800;
}

.currency {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    margin-top: 8px;
    margin-right: 2px;
}

.price-value {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 0.9;
}

.price-cents {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    margin-top: 8px;
}

.price-details {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-top: 8px;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.security-icon {
    width: 18px;
    height: 18px;
    fill: var(--accent-secondary);
}

/* Guarantee Card */
.guarantee-box {
    background-color: var(--bg-primary);
    border: 1px dashed var(--accent-primary);
    border-radius: 16px;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.guarantee-badge-wrapper {
    background-color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.guarantee-icon {
    width: 28px;
    height: 28px;
    fill: var(--accent-primary);
}

.guarantee-text h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.guarantee-text p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    padding: 100px 0;
}

.faq-accordion {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 28px;
}

.faq-content p {
    padding-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ Active State */
.faq-item.active {
    border-color: var(--accent-primary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    fill: var(--accent-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 60px 0;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-decoration: underline;
}

.footer-links a:hover {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-benefits-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-box {
        align-items: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-section {
        padding: 40px 0 60px 0;
    }
    
    .story-section, .features-section, .carousel-section, .how-it-works-section, .offer-section, .faq-section {
        padding: 60px 0;
    }
    
    .offer-box {
        padding: 40px 20px;
    }
    
    .guarantee-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .prev-btn {
        left: -10px;
    }
    
    .next-btn {
        right: -10px;
    }
}
