/* BrainBoostHQ Landing Page - Creative Design */

/* Base Styles & Variables */
:root {
    --deep-indigo: #1a237e;
    --pink: #ff4081;
    --soft-white: #fdfdfd;
    --slate-gray: #607d8b;
    --teal: #4db6ac;
    --light-blush: #ffe9f0;
    --box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html, body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--soft-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--deep-indigo);
    transition: var(--transition);
}

a:hover {
    color: var(--pink);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Utilities */
.highlight {
    color: var(--pink);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 30%;
    background-color: var(--light-blush);
    bottom: 0;
    left: 0;
    z-index: -1;
    transform: skewX(-5deg);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--pink);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 64, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-large {
    font-size: 1.1rem;
    padding: 14px 32px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 1.5rem 0;
    justify-content: center;
    align-items: stretch;
}

input[type="email"],
.formkit-input {
    flex: 1;
    min-width: 320px;
    padding: 12px 20px;
    border: 2px solid #eaeaea;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

.btn, 
.formkit-submit {
    margin: 0;
    height: 100%;
    align-self: center;
}

/* Specific styles for the final CTA section */
.final-cta .signup-form,
.mid-cta .signup-form,
.hero .signup-form {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust for mobile to prevent stacking issues */
@media (max-width: 768px) {
    .signup-form {
        gap: 10px;
    }
    
    /* Apply width: 100% generally */
    input[type="email"],
    .formkit-input,
    .btn, 
    .formkit-submit {
        width: 100%;
    }

    /* REMOVED overrides for hero form, rely on flexbox */
    /* .hero .formkit-input,
    .hero .formkit-submit {
        width: auto; 
    }
    .hero .formkit-field { 
        flex-basis: auto; 
        min-width: 0; 
    }
    .hero .formkit-input {
        min-width: 0; 
    } */
}

input[type="email"]:focus,
.formkit-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

.microcopy {
    width: 100%;
    font-size: 0.9rem;
    color: var(--slate-gray);
    margin-top: 8px;
}

/* ConvertKit Form Specific Styles */
.formkit-field {
    flex: 1;
    min-width: 320px;
}

/* Add flex styles for the container */
.formkit-fields {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping by default */
    gap: 5px; /* Match signup-form gap? */
    width: 100%;
}

.formkit-alert {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.formkit-alert-error {
    background-color: rgba(255, 64, 129, 0.1);
    color: var(--pink);
    border: 1px solid rgba(255, 64, 129, 0.3);
}

.formkit-form {
    width: 100%;
}

.formkit-submit {
    /* Button styles are already applied through our .btn classes */
}

/* Animation for form submission */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.success {
    background-color: var(--teal) !important;
}

/* Navigation */
.nav {
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.logo a {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--deep-indigo);
    position: relative;
}

.logo span {
    color: var(--pink);
}

/* Hero Section with Diagonal Layout */
.hero {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1 1 55%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    color: white;
}

.hero-visual {
    flex: 1 1 45%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
}

.hero-image:hover {
    transform: none;
}

.brain-wave-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M50,0 C70,40 30,60 50,100 M0,50 C40,30 60,70 100,50' stroke='%23ff4081' fill='none' stroke-width='2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23pattern)'/%3E%3C/svg%3E");
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.02;
        transform: scale(1);
    }
    50% {
        opacity: 0.05;
    }
    100% {
        opacity: 0.03;
        transform: scale(1.05);
    }
}

.diagonal-block {
    position: absolute;
    width: 150%;
    height: 100%;
    background-color: var(--deep-indigo);
    top: 0;
    left: -30%;
    transform: skewX(15deg);
    z-index: 1;
}

.shape-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--pink);
    opacity: 0.1;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    right: 10%;
    top: 20%;
}

.shape-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--teal);
    opacity: 0.1;
    border-radius: 50%;
    right: 30%;
    bottom: 20%;
    animation: float 6s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

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

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s forwards;
    animation-delay: 0.3s;
    font-size: 3.2rem;
}

.offset-text {
    margin-left: 3rem;
    margin-top: -1rem;
    animation-delay: 0.6s;
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .subheadline {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    line-height: 1.6;
    max-width: 90%;
}

.hero .cta-container {
    width: 100%;
    max-width: 500px;
    align-self: center; /* Center the container */
}

.hero .signup-form {
    margin: 1.5rem 0;
    max-width: 500px;
}

.hero .formkit-fields {
    display: flex;
    gap: 5px;
}

.hero .formkit-field {
    flex: 0 1 auto;
}

.hero .formkit-input {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 50px !important;
}

.hero .formkit-submit {
    border-radius: 50px !important;
    padding: 12px 28px !important;
    margin: 0 !important;
}

.hero .formkit-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
}

.hero .formkit-submit span {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.hero .formkit-guarantee {
    color: rgba(255, 255, 255, 0.7) !important;
}

.illustration {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='500' height='500' viewBox='0 0 500 500' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M250,70 C300,30 350,100 350,150 C350,200 300,250 250,250 C200,250 150,200 150,150 C150,100 200,30 250,70 Z' fill='%23ff4081' opacity='0.1'/%3E%3Cpath d='M250,70 C300,30 350,100 350,150 C350,200 300,250 250,250 C200,250 150,200 150,150 C150,100 200,30 250,70 Z' stroke='%23ff4081' stroke-width='2' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    height: 60px;
    width: 100%;
    top: -1px;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%231a237e' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%231a237e' opacity='.5'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%231a237e'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.wave-divider-alt {
    position: relative;
    height: 60px;
    width: 100%;
    top: -1px;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ff4081' opacity='0.15'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.diagonal-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.diagonal-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-indigo);
    transform: skewY(-3deg);
    transform-origin: bottom right;
}

.diagonal-divider-alt {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.diagonal-divider-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-blush);
    transform: skewY(3deg);
    transform-origin: bottom left;
}

/* Problem Section */
.problem {
    background-color: white;
    position: relative;
}

.problem .container {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    display: none;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.problem-card {
    padding: 20px;
    border-radius: 16px;
    position: relative;
    background-color: white;
    box-shadow: var(--box-shadow);
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 1;
    opacity: 0;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.shape-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--light-blush);
    border-radius: 16px;
    z-index: -1;
    transform: rotate(-2deg);
}

.problem-card p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.slide-in-left {
    animation: slideInLeft 0.6s forwards;
    animation-play-state: paused;
}

.slide-in-right {
    animation: slideInRight 0.6s forwards;
    animation-play-state: paused;
}

/* Animations will be triggered by JS on scroll */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.agitation {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    position: relative;
}

.agitation::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 100%;
    background-color: rgba(26, 35, 126, 0.05);
    top: 0;
    left: -10%;
    transform: skewX(-10deg);
    border-radius: 10px;
    z-index: -1;
}

.agitation p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.transition-question {
    color: var(--deep-indigo);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

/* Solution/Benefits Section */
.solution {
    background-color: var(--deep-indigo);
    color: white;
    position: relative;
}

.solution .container {
    padding: 60px 0;
}

.solution .section-title {
    color: white;
}

.solution .section-title::after {
    background-color: var(--teal);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.15);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
}

.pop-in {
    animation: popIn 0.5s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
    animation-play-state: paused;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mid-cta {
    text-align: center;
    margin: 4rem auto 1rem;
    padding: 2rem;
    max-width: 700px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.mid-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Social Proof Section */
.social-proof {
    background-color: white;
    position: relative;
}

.social-proof .container {
    padding: 60px 0;
}

.social-proof .section-title::after {
    display: none;
}

.real-highlight {
    font-family: 'Courier New', cursive;
    color: var(--teal);
    font-weight: 800;
    font-style: italic;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    background-color: var(--light-blush);
    box-shadow: var(--box-shadow);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card.offset {
    margin-top: 40px;
    background-color: rgba(77, 182, 172, 0.1);
}

.quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    font-style: italic;
    color: #444;
}

.quote::before {
    display: none;
}

.author {
    font-weight: 700;
    color: var(--deep-indigo);
}

.founder-bio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin: 50px auto;
    max-width: 900px;
    padding: 40px;
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.founder-photo {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--light-blush);
    background-image: url("../images/founder.png");
    background-size: cover;
    background-position: center;
}

.founder-photo-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-gray);
    font-style: italic;
    margin-top: 5px;
    max-width: 200px;
}

.founder-photo-caption p {
    margin: 0;
}

.founder-text {
    flex: 1;
    min-width: 300px;
}

.founder-text h3 {
    font-size: 1.6rem;
    color: var(--deep-indigo);
    margin-bottom: 1rem;
}

.handwritten-note {
    font-family: 'Courier New', cursive;
    color: var(--pink);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    transform: rotate(-2deg);
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--light-blush);
    border-radius: 8px;
}

.community-count {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.2rem;
}

.community-count strong {
    color: var(--deep-indigo);
}

/* Differentiation Section */
.differentiation {
    background-color: var(--light-blush);
    position: relative;
}

.differentiation .container {
    padding: 60px 0;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.diff-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
    opacity: 0;
}

.diff-card:hover {
    transform: translateY(-8px);
}

.diff-card .shape-bg {
    background-color: rgba(26, 35, 126, 0.05);
}

.diff-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.diff-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--deep-indigo);
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
    animation-play-state: paused;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Section */
.faq {
    background-color: white;
    position: relative;
}

.faq .container {
    padding: 60px 0;
}

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

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(26, 35, 126, 0.02);
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--deep-indigo);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.toggle-icon::before, .toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--pink);
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.toggle-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item.active .toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

/* Final CTA Section */
.final-cta {
    background-color: var(--deep-indigo);
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta .container {
    padding: 60px 0;
}

.wave-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff' opacity='.1'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23ffffff' opacity='.2'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    transform: rotate(180deg);
}

.cta-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.cta-form-container::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 100%;
    background-color: var(--pink);
    opacity: 0.1;
    top: 0;
    left: -5%;
    border-radius: 16px;
    transform: rotate(-1deg);
    z-index: -1;
}

.urgency-note {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: var(--deep-indigo);
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.privacy-policy h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.privacy-policy p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px; /* Add padding to prevent text from touching edges */
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
        padding-right: 0; /* Remove any right padding that might cause overflow */
    }
    
    .hero-visual {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .reveal-text {
        font-size: 2.8rem;
    }
    
    .diagonal-block {
        width: 200%; /* Increase width to ensure full coverage */
        left: -50%;
        transform: skewX(5deg); /* Reduce the skew angle on mobile */
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .founder-bio {
        flex-direction: column;
        text-align: center;
    }
    
    /* Fix founder photo on mobile */
    .founder-photo {
        margin: 0 auto 20px;
        flex: 0 0 200px;
        width: 200px; /* Explicitly set width */
        height: 200px;
        display: block;
    }
    
    .founder-photo-caption {
        margin: 0 auto 20px;
        text-align: center;
        max-width: 250px;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }

    /* Ensure form elements stack properly on mobile */
    .hero .formkit-fields {
        flex-direction: column;
        gap: 10px;
    }

    .hero .formkit-input,
    .hero .formkit-submit {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .reveal-text {
        font-size: 2.4rem;
    }
    
    .offset-text {
        margin-left: 0;
    }
    
    .problem-grid, .benefits-grid, .diff-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card.offset {
        margin-top: 0;
    }

    .hero .subheadline {
        font-size: 1.1rem;
        margin: 1rem 0;
    }
}

/* Success Message Styles */
.success-container {
    transition: all 0.5s ease;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero-specific success container */
.hero .success-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero .success-message h3 {
    color: white;
}

.hero .success-message p {
    color: rgba(255, 255, 255, 0.9);
}

.success-message {
    text-align: center;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
}

.success-icon {
    margin: 0 auto 10px;
    width: 60px;
    height: 60px;
    animation: successPop 0.5s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
}

.success-message h3 {
    color: var(--deep-indigo);
    font-size: 1.4rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.success-message p {
    color: var(--slate-gray);
    font-size: 1rem;
    line-height: 1.3;
    max-width: 100%;
    margin: 0 auto;
}

/* Dark background sections need different colored text */
.solution .success-message h3,
.final-cta .success-message h3 {
    color: white;
}

.solution .success-message p,
.final-cta .success-message p {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Hero Form Specific Overrides */
.hero .formkit-fields {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    justify-content: center; /* Center the fields container */
}

.hero .formkit-field {
    flex: 0 1 auto;
}

.hero .signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center form elements */
}

.hero [data-style="minimal"] {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .formkit-guarantee {
    text-align: center; /* Center the guarantee text */
}

.hero .formkit-input {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 50px !important; /* Added matching border-radius */
    /* min-width: 0; */ /* Removed this override */
}

.hero .formkit-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero .formkit-input:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.3) !important;
}

.hero .formkit-submit {
    flex: 0 0 auto; /* Prevent button growing/shrinking */
    border-radius: 50px !important;
}

.hero .formkit-guarantee {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero .cta-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero .signup-form {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
} 