*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: black;
}
button{
    font-family: "Poppins", sans-serif;
}
body{
    font-family: "Poppins", sans-serif;
}
.container{
    max-width: 1180px;
    margin: 0 auto;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: max-content;
    border-radius: 50px;
    padding: 8px 10px 8px 20px;
    gap: 6em;
    margin: 0 auto;
    position: fixed;
    z-index: 1000;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.950);
    box-shadow: 0px 4px 8px 0px rgba(217,217,217,0.75);
    -webkit-box-shadow: 0px 4px 8px 0px rgba(217,217,217,0.75);
    -moz-box-shadow: 0px 4px 8px 0px rgba(217,217,217,0.75);
}
.h-links{
    display: flex;
    gap: 20px;
    align-items: center;
}
header a{
    color: #606060;
    font-weight: 500;
}
.btn-outline{
    border-radius: 20px;
    color: white;
    background-color: black;
    display: block;
    padding: 7px 14px;
}
.h-logo{
    font-weight: 800;
    font-size: 24px;
}
.hero{
    padding-top: 12em;
    text-align: center;
    background: #3B82F6;
    background: -webkit-linear-gradient(0deg, rgba(59, 130, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(0deg, rgba(59, 130, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(0deg, rgba(59, 130, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3B82F6", endColorstr="#FFFFFF", GradientType=0);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}
.hero h1{
    font-size: 56px;
    line-height: 1.25;
    margin-bottom: 28px;
}
.hero p{
    font-size: 20px;
    font-weight: 500;
    color: #606060;
    max-width: 700px;
    margin: 0 auto;
}
.btn-cta{
    display: block;
    color: white;
    font-size: 18px;
    font-weight: 500;
    padding: 14px;
    max-width: 400px;
    border-radius: 28px;
    background-color: rgb(59, 130, 246);   
}
.hero .btn-cta {
    margin: 0 auto;
    margin-top: 48px;
}
.hero-bottom{
    margin-top: 6em;
}
.hero-media {
    --row-h: calc((100% / 2) * 0.75); 

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 10px;
    column-gap: 20px;

    overflow: hidden;

    height: calc(
        (100vw / 2 * 0.75) * 1.5 + 10px
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.2) 10%,
        black 35%,
        black 65%,
        rgba(0,0,0,0.2) 99%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.2) 10%,
        black 35%,
        black 65%,
        rgba(0,0,0,0.2) 99%,
        transparent 100%
    );
}

.hero-media img {
    width: 100%;
    border-radius: 14px;
}

section{
    margin: 8em 0;
}

.feature-card{
    display: flex;
    flex-direction: row-reverse;
    column-gap: 48px;
    margin: 8em 0;
    align-items: center;
}
.feature-card-media img{
    width: 540px;
    height: 480px;
    object-fit: cover;
    border-radius: 20px;
}
.feature-card-text h1{
    font-size: 44px;
    margin-bottom: 14px;
}
.feature-card-text p{
    font-size: 20px;
    color: #606060;
    font-weight: 500;
}

.intro-section{
    text-align: center;
}
.intro-section h1{
    font-size: 48px;
    margin-bottom: 14px;
}
.intro-section p{
    font-size: 20px;
    font-weight: 500;
    color: #606060;
}

.templates-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    row-gap: 20px;
    column-gap: 10px;
}
.template-card img{
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: -10px;
}
.template-card a{
    font-weight: 500;
    font-size: 14px;
    background-color: #3B82F6;
    color: white;
    width: 100%;
    display: block;
    padding: 20px 5px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.pricing-section{
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4em;
}
.pricing-card {
    padding: 28px;
    border: 1px solid #eee;
    box-shadow: 0px 4px 8px 0px rgba(217,217,217,0.75);
    -webkit-box-shadow: 0px 4px 8px 0px rgba(217,217,217,0.75);
    -moz-box-shadow: 0px 4px 8px 0px rgba(217,217,217,0.75);
    border-radius: 16px;
}
.pricing-card ul{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pricing-card ul li{
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}
.pricing-card ul svg{
    width: 16px;
    color: #3B82F6;
}
.pc-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pc-pricing h1{
    font-size: 44px;
}
.pc-title{
    font-weight: 600;
    font-size: 24px;
}
.pc-period{
    font-weight: 500;
}
.pricing-card button{
    margin: 14px 0;
    width: 100%;
    border: none;
    background-color: #3B82F6;
    font-weight: 500;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.pc-period-switch{
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    justify-content: center;
    cursor: pointer;
}
.pc-period-switch:hover{
    text-decoration: underline;
}
.pc-period-switch svg{
    width: 14px;
}

footer{
    background: #3B82F6;
    background: -webkit-linear-gradient(0deg, rgba(59, 130, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(0deg, rgba(59, 130, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(0deg, rgba(59, 130, 246, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.vieume-logo-footer {
    font-size: clamp(3em, 22vw, 18em);
    font-weight: 900;
    text-align: center;
}

.footer-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    padding: 20px 0;
}
.footer-content ul{
    display: flex;
    gap: 28px;
    align-items: center;
}
.footer-content ul li{
    list-style-type: none;
}
.footer-content ul li a:hover{
    text-decoration: underline;
}

/* Billing Toggle */
.billing-toggle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.billing-toggle {
    display: inline-flex;
    background-color: #f3f4f6;
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
}

.billing-option {
    font-size: 16px;
    font-weight: 500;
    color: #606060;
    background-color: transparent;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-option.active {
    background-color: #3B82F6;
    color: white;
    font-weight: 600;
}

.billing-option:hover:not(.active) {
    background-color: #e5e7eb;
}

.toggle-save-text {
    font-size: 14px;
    font-weight: 500;
    color: #3B82F6;
    margin: 0;
    text-align: center;
}

/* Pricing Updates */
.old-price {
    text-decoration: line-through;
    color: #808080;
    margin-right: 8px;
}

.price-display {
    display: inline-flex;
    align-items: center;
}

/* auth modal */

.login-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
}

.login-popup:not(.hidden) {
    display: flex;
}

.backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #1a1b1f;
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 448px;
    margin: 0 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #374151;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ffffff;
}

.close-icon {
    width: 24px;
    height: 24px;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.title {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    margin-top: 0;
}

.subtitle {
    color: #9ca3af;
    margin: 0;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.google-btn:hover {
    background-color: #f3f4f6;
}

.google-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .container{
        padding: 10px;
        width: 100%;
    }
    section{
        margin: 4em 0;
    }
    .pricing-section{
        grid-template-columns: repeat(1, 1fr);
    }
    .footer-content{
        flex-direction: column;
        gap: 10px;
    }
    .feature-card{
        flex-direction: column;
        gap: 28px;
        margin: 4em 0;
    }
    .feature-card-media img{
        width: 100%;
        height: auto;
    }
    header{
        gap: 1em;
    }
    .templates-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-media{
        grid-template-columns: repeat(4,1fr);
    }
    .hero-top h1{
        font-size: 24px ;
    }
    .hero {
        padding-top: 8em;
    }
    .hero-top p{
        font-size: 16px;
    }
    .intro-section h1{
        font-size: 28px;
    }
    .intro-section p{
        font-size: 16px;
    }
    .feature-card-text h1{
        font-size: 28px;
    }
    .feature-card-text p{
        font-size: 16px;
    }
    
}