/* RESET & VARIABLES */
:root {
    /* Color Palette */
    --bg-color: #1a0505;
    /* Deep dark wine / black base */
    --bg-light: #2a0b0d;
    /* Lighter wine for cards */
    --primary: #86191B;
    /* Main theme deep red */
    --gold: #D4AF37;
    --gold-hover: #b3922e;
    --text-main: #f5f5dc;
    /* Beige / Cream */
    --text-muted: #d9c5c5;
    /* Darker cream with red tint */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h2.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    line-height: 1.3;
}

h2.section-title span {
    color: var(--gold);
}

/* COMPONENTS */
.btn {
    display: inline-block;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #f3d674, #D4AF37);
    color: #1a100d;
    border: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ebd178, #caa734);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.3);
}

/* HEADER */
.header {
    background-color: rgba(26, 16, 13, 0.95);
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-text {
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
}

/* HERO SECTION */
.hero {
    padding: 6rem 0;
    background: radial-gradient(circle at center, var(--primary) 0%, var(--bg-color) 70%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.headline {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.subheadline-title {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.subheadline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-btn {
    width: 100%;
}

.btn-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.icon-small {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9/16;
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: none;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}

/* FEATURES SECTION */
.features {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-icon {
    width: 30px;
    height: 30px;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* VISUAL PROOF (MOCKUP) */
.visual-proof {
    padding: 4rem 0 6rem;
    background: linear-gradient(to bottom, var(--bg-color), #22080a);
}

.proof-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.proof-text {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mockup-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.mockup-image {
    width: 100%;
    display: block;
}

/* TESTIMONIALS SECTION */
.testimonials {
    padding: 5rem 0;
    background-color: var(--bg-color);
    /* Same dark background */
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden;
    padding: 1rem 0.5rem 2rem 0.5rem;
    /* bottom padding for shadow */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    cursor: grab;
    will-change: transform;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.testimonial-card {
    flex: 0 0 320px;
    background-color: #eadddd;
    /* Off-white with faint rose texture */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z' fill='%2d201c19' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    /* Faint noise/texture */
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    color: #4a1e20;
    /* Dark wine text */
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #3b1114;
    /* Deep wine text */
}

.student-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.student-location {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--primary);
    /* Theme red */
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.star-icon {
    width: 22px;
    height: 22px;
    fill: #f59e0b;
    /* Golden yellow */
    color: #f59e0b;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    color: var(--gold);
}

.carousel-btn i {
    width: 32px;
    height: 32px;
}

/* For mobile adjust buttons */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
        /* Hide manual buttons on mobile, rely on swipe */
    }
}

/* OFFER SECTION */
.offer {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    background: url('../images/obi_fechado.png') center/cover no-repeat fixed;
}

.offer-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 5, 5, 0.92);
    /* Dark overlay */
    z-index: 1;
}

.offer-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.offer-box {
    background: rgba(134, 25, 27, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4rem 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.offer-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.offer-title span {
    color: var(--gold);
}

.divider {
    width: 50px;
    height: 2px;
    background-color: var(--gold);
    margin: 0 auto 2rem;
}

.offer-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 2rem;
}

.offer-text strong {
    color: var(--gold);
    font-size: 1.3rem;
}

.offer-alert {
    background-color: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-main);
}

.offer-alert em {
    color: #ffaa99;
    font-style: normal;
    display: block;
    margin-top: 5px;
}

/* GUARANTEE SECTION */
.guarantee {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.guarantee-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    border-left: 5px solid var(--gold);
    max-width: 800px;
    margin: 0 auto;
}

.badge-wrapper {
    flex-shrink: 0;
}

.guarantee-badge {
    width: 80px;
    height: 80px;
    color: var(--gold);
}

.guarantee-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.guarantee-text {
    color: var(--text-muted);
}

/* FAQ SECTION */
.faq {
    padding: 5rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-container {
    max-width: 800px;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Hide default triangle */
    transition: background-color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
    /* Hide default triangle in Safari */
}

.faq-question:hover {
    background-color: rgba(212, 175, 55, 0.08);
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 300;
    margin-left: 1rem;
}

details[open] .faq-question::after {
    content: '−';
    /* Minus sign for clarity */
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
.footer {
    padding: 6rem 0 3rem;
    background-color: #0d0202;
    /* Very dark for footer */
    text-align: center;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--white);
}

.footer-btn {
    font-size: 1.3rem;
    padding: 20px 45px;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 500px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-methods,
.secure-checkout {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icon,
.secure-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.copyright {
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .container {
        width: 95%;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-image-wrapper {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }

    .headline {
        font-size: 2.4rem;
    }

    .subheadline-title {
        font-size: 1.4rem;
    }

    .guarantee-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .guarantee-badge {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .headline {
        font-size: 1.9rem;
    }

    .subheadline-title {
        font-size: 1.25rem;
    }

    .subheadline {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 16px 20px;
        font-size: 1rem;
        width: 100%;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
        min-height: 500px; /* Fallback height for mobile */
        border-radius: 6px;
    }

    .features {
        padding: 3rem 0;
    }

    .section-title,
    h2.section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .testimonials {
        padding: 3.5rem 0;
    }

    .carousel-track {
        padding: 1rem 0 2rem 0;
        gap: 1rem;
    }

    .testimonial-card {
        flex: 0 0 85vw;
        padding: 2rem 1.2rem;
    }

    .offer {
        padding: 4rem 0;
    }

    .offer-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .offer-box {
        padding: 2.5rem 1.5rem;
    }

    .offer-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .offer-text strong {
        font-size: 1.15rem;
    }

    .divider {
        margin: 0 auto 1.5rem;
    }

    .guarantee {
        padding: 3.5rem 0;
    }

    .guarantee-title {
        font-size: 1.5rem;
    }

    .faq {
        padding: 3.5rem 0;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }

    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    .footer-btn {
        font-size: 1.1rem;
        padding: 18px 20px;
        margin-bottom: 2rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

/* PLAN SELECTION MODAL */
.plan-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Ensure top priority */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.plan-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.plan-modal {
    background-color: #1a0a00;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

/* Gold/Red outline details requested */
.plan-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(204, 34, 0, 0.4);
    border-radius: 12px;
    pointer-events: none;
}

.plan-modal-overlay.active .plan-modal {
    transform: scale(1);
}

.plan-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.plan-modal-close:hover {
    color: var(--gold);
}

.plan-modal-title {
    text-align: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    font-family: var(--font-heading);
}

.plan-modal-title span {
    color: var(--gold);
}

.plan-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.plan-card {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card.premium {
    border: 2px solid #cc2200;
    box-shadow: 0 0 15px rgba(204, 34, 0, 0.3);
    background-color: rgba(20, 5, 0, 0.6);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #cc2200;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(204, 34, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan-name {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.plan-card.premium .plan-name {
    color: #ffaa99;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: bold;
}

.plan-card.premium .plan-features li::before {
    content: '+';
    color: #cc2200;
    font-size: 1.2rem;
    line-height: 1;
    top: -1px;
}

.plan-features li strong {
    color: var(--text-main);
}

.plan-price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.plan-btn {
    text-align: center;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    font-size: 1rem;
}

.plan-btn-basic {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.plan-btn-basic:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.plan-btn-premium {
    background-color: #cc2200;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(204, 34, 0, 0.4);
}

.plan-btn-premium:hover {
    background-color: #e62600;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 34, 0, 0.5);
}

.plan-modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Scrollbar styles for the modal */
.plan-modal::-webkit-scrollbar {
    width: 6px;
}
.plan-modal::-webkit-scrollbar-track {
    background: transparent;
}
.plan-modal::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .plan-modal {
        padding: 2rem 1.5rem;
    }
    
    .plan-cards {
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .plan-modal {
        padding: 1.5rem 1rem;
        max-height: 98vh; /* Give slightly more height space on tiny screens */
    }
    
    .plan-modal-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .plan-cards {
        grid-template-columns: 1fr;
        gap: 0.8rem; /* Very tight gap */
    }
    
    .plan-card {
        padding: 1rem 0.6rem;
    }
    
    .plan-name {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }
    
    .plan-features {
        margin-bottom: 1rem;
    }
    
    .plan-features li {
        font-size: 0.7rem; /* Make elements readable without scrolling */
        margin-bottom: 0.5rem;
        padding-left: 1rem;
    }
    
    .plan-card.premium .plan-features li::before {
        font-size: 1rem;
    }
    
    .plan-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
        top: -10px;
    }
    
    .plan-price-label {
        font-size: 0.7rem;
    }
    
    .plan-price {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .plan-btn {
        padding: 12px 4px;
        font-size: 0.85rem;
    }
    
    .plan-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
    
    .plan-modal-footer {
        font-size: 0.7rem;
        margin-top: 1rem;
    }
}