:root{
    --font-sans: "Source Sans 3", sans-serif;
    --font-serif: "Bitter", serif;
    --primary-bg: #F0EEE6;
    --primary-color: #171717;
    --secondary-color: #e3dacc;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
a{
    text-decoration: none;
    color: var(--primary-color);
}
.btn {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
}
.btn-black{
    color: white;
    background-color: var(--primary-color);
}
.btn-outline{
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

body {
    font-family: var(--font-sans);
    color: var(--primary-color);
    background-color: var(--primary-bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo img{
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.logo span{
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-serif);
}
.h-actions{
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
}
#auth-buttons{
    display: flex;
    align-items: center;
    gap: 20px;
}
.h-user{
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-section{
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 4em 0;
}
.hero-title{
    font-size: 56px;
    font-family: var(--font-serif);
    font-weight: 800;
    margin-bottom: 28px;
}
.hero-subtitle{
    font-size: 24px;
    font-weight: 500;
}

.login-required-message {
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border-left: 4px solid white;
}

/* Upload Zone */
.upload-zone {
    width: 480px;
    margin: 0 auto;
    background: white;
    padding: 4em 2em;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.drop-area {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-area.dragover {
    transform: scale(1.02);
}

.drop-area svg {
    width: 64px;
    height: 64px;
}

.drop-area h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.drop-area p {
    color: #666;
    font-size: 0.95rem;
}

#file-input {
    display: none;
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-weight: 500;
    display: none;
}

/* Loading State */
.loading-state {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
}


/* Preview Player */
.preview-player {
    display: none;
    width: 480px;
    margin: 0 auto;
    background: white;
    padding: 4em 2em;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.audio-player {
    width: 100%;
    margin: 1rem 0;
}

.preview-text {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.8;
    color: #333;
}

.error-message {
    display: none;
    margin-top: 1rem;
    background: #fee2e2 ;
    color: #b91c1c;
    border: 1px solid #dc2626;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
}

.feature-card{
    display: flex;
    flex-direction: row;
    margin: 4em 0;
    gap: 48px;
}
.feature-card-media img{
    max-width: 480px;
    border-radius: 28px;
}
.feature-card-content h2{
    font-family: var(--font-serif);
    margin-bottom: 8px;
}
.feature-card-content p{
    font-size: 18px;
    font-weight: 500;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.upload-container h2 {
    margin-bottom: 0.5rem;
    color: #667eea;
}
.upload-container p {
    color: #666;
    margin-bottom: 2rem;
}


/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.section-title{
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 2em;
    text-align: center;
}
section{
    margin: 12em 0;
}
/* Pricing Section */
.pricing-subtitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 80px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    border: 2px solid rgba(232, 220, 200, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.7;

}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.pricing-name {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: #737373;
}
.pricing-price {
    font-size: 56px;
    font-family: Georgia, serif;
    margin-bottom: 8px;
    font-weight: 700;
}
.pricing-period {
    font-size: 16px;
    margin-bottom: 24px;
    color: #737373;
    font-weight: 500;
}
.pricing-credits {
    font-size: 18px;
    margin-bottom: 32px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    background-color:#f5f5f5;
    color: #404040;
}
.pricing-cta {
    width: 100% !important;
    font-size: 17px;
    display: block;
    text-align: center;
    padding: 12px;
    transition: all ease .3s;
}
.pricing-cta:hover{
    scale: 104%;
}

/* faqs */
.faq h3{
    font-family: var(--font-serif);
    margin-bottom: 8px;
    font-weight: 500;
}
.faq p{
    font-size: 16px;
}
.faq{
    max-width: 600px;
    margin: 2em auto;
}

/* footer */
footer{
    background-color: var(--primary-color);
    color: white;
    padding: 4em;
}
footer a{
    color: white;
}
footer .container{
    display: flex;
    gap: 28px;
    justify-content: space-between;
}
footer ul li{
    list-style: none;  
    margin: 8px 0; 
}
.footer-links-wrapper h4{
    font-weight: 500;
    margin-bottom: 16px;
    color: #737373;
}
footer ul li a {
    font-size: 14px;
    font-weight: 500;
}
.social-icons{
    display: flex;
    align-items: center;
    gap: 16px;
}
.social-icons a svg{
    filter: invert(100%);
    width: 28px;
}

#hm-actions{
    display: none;
}
#aside-close{
    display: none;
}

@media (max-width: 480px) {
    section{
        margin: 6em 0;
    }
    .section-title{
        font-size: 28px;
        margin-bottom: 1em;
    }

    header .logo img{
        width: 28px;
        height: 28px;
    }
    header .logo span{
        font-size: 24px;
    }
    .h-actions{
        display: none;
        position: absolute;
        background-color: var(--primary-bg);
        height: 100vh;
        padding: 14px;
        right: 0;
        top: 0;
        margin: 0;
        align-items: start;
        width: 80%;
        text-align: start;
        border-left: 1px solid var(--secondary-color);
    }
    #auth-buttons > div{
        flex-direction: column;
        align-items: start !important;
    }
    #auth-buttons{
        flex-direction: column;
        align-items: start;
    }
    #hm-actions{
        display: flex;
        align-items: center;
        gap: 14px;
    }
    #hm-actions a{
        font-weight: 500;
    }
    #hm-actions .btn{
        padding: 4px 12px;
        font-size: 14px;
    }
    #btn-menu{
        display: flex;
        align-items: center;
    }
    #aside-close{
        display: block;
        margin-bottom: 14px;
    }

    .hero-section{
        flex-direction: column;
        margin: 2em 0;
    }
    .hero-content{
        text-align: center;
        margin-bottom: 2em;
    }
    .hero-title{
        font-size: 36px;
        margin-bottom: 14px;
    }
    .hero-subtitle{
        font-size: 20px;
    }
    .hero-preview{
        width: 100%;
    }
    .preview-player{
        width: 100%;
    }
    .hero-preview > p:first-child{
        font-size: 18px !important;
    }
    .upload-zone{
        width: 100%;
        padding: 2em;
    }

    footer{
        padding: 2em;
    }
    .feature-card{
        flex-direction: column;
        gap: 14px;
    }
    .feature-card-media img{
        width: 100%;
    }

    footer .container{
        flex-direction: column;
    }
}