/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #222222;
    line-height: 1.4;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800; /* Extra Bold */
    letter-spacing: -0.02em;
}

p {
    font-weight: 400;
    font-size: 1.125rem; /* 18px */
    color: #444;
    max-width: 480px;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 999px; /* Full pill */
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(155, 108, 255, 0.2);
}

.btn-primary {
    background-color: #9B6CFF;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #9B6CFF;
    border: 2px solid #9B6CFF;
    margin-left: 16px;
}

.btn-white {
    background-color: white;
    color: #9B6CFF;
}

.btn-small {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin-top: 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #222;
}

.navbar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
    font-weight: 500;
    color: #444;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #9B6CFF;
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* 1. Hero Section */
.hero {
    padding: 120px 0 160px; /* Huge negative space */
    overflow: hidden; /* For flush right mockup */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-description {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-icon {
    margin-bottom: 40px;
}

.logo-icon img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    /* Glossy/Rounded look handled by border-radius */
}

.hero h1 {
    font-size: 5rem; /* ~80px */
    line-height: 1.1;
    color: #9B6CFF;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: 3.5rem; /* ~56px */
    line-height: 1.1;
    font-weight: 300; /* Lighter weight */
    color: #6FCF97;
    margin-bottom: 48px;
}

.cta-group {
    display: flex;
    align-items: center;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mockup {
    width: 100%;
    max-width: 400px; /* Phone-ish width */
    background-color: #F5F5F5;
    border-radius: 40px; /* Subtle phone shape */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Soft ambient shadow */
    overflow: hidden;
    position: relative;
    /* Flush right adjustment if needed, but grid handles it mostly */
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2. How It Works */
.how-it-works {
    padding: 100px 0;
    background-color: #FAFAFA; /* Slight separation */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #9B6CFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #222;
}

/* Demo Section */
.demo-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: #9B6CFF;
    margin-bottom: 16px;
}

.section-header p {
    margin: 0 auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.audio-card {
    background: #FAFAFA;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.audio-card:hover {
    transform: translateY(-5px);
}

.audio-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #666;
}

.lang-badge {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    object-fit: cover;
}

.audio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.audio-card h3 a {
    color: #222;
    text-decoration: underline;
    text-decoration-color: #9B6CFF;
    text-underline-offset: 4px;
}

.style-tag {
    display: inline-block;
    background-color: #E0D4FC; /* Light purple */
    color: #9B6CFF;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.custom-audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
}

/* 3. Feature Sections */
.features-wrapper {
    padding: 100px 0;
}

.feature-block {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.feature-text {
    /* Left aligned text */
}

.feature-icon {
    margin-bottom: 32px;
}

.feature-block h2 {
    font-size: 3.5rem; /* ~56px */
    line-height: 1.1;
    color: #9B6CFF; /* Or alternate colors if desired, but instructions say "Headline = bold purple" pattern */
    margin-bottom: 24px;
}

/* Specific adjustments for Feature B & C titles based on pattern */
.feature-block:nth-child(2) h2 {
    color: #6FCF97; /* "Smarter Summaries" was subheadline color in Hero, maybe mix it up? Instructions say "Title: Smarter Summaries. Seamless Listening." under Copy Pattern. 
       And "Headline = bold purple". I will stick to Purple for the main titles to be consistent. */
    color: #9B6CFF;
}

.feature-block p {
    font-size: 1.25rem;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    margin-top: 24px;
    padding: 0;
}

.feature-list li {
    font-size: 1.125rem;
    color: #444;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FCF97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.feature-list strong {
    color: #9B6CFF;
    font-weight: 700;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background-color: #FAFAFA;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.pricing-card.popular {
    border: 2px solid #9B6CFF;
    transform: scale(1.05);
    z-index: 1;
}

.popular-tag {
    position: absolute;
    top: -16px;
    background-color: #9B6CFF;
    color: white;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #222;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 32px;
}

.price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    width: 100%;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* 4. CTA Block */
.cta-block {
    background-color: #9B6CFF;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta-block h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: white;
}

/* 5. Footer */
footer {
    padding: 80px 0 40px;
    background-color: #FAFAFA;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-col h4 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #666;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #9B6CFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* --- Auth Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #222;
}

.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: #9B6CFF;
    border-bottom-color: #9B6CFF;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #9B6CFF;
}

.auth-error {
    color: #ff4d4f;
    font-size: 0.875rem;
    margin-top: 16px;
    text-align: center;
    min-height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.auth-divider span {
    padding: 0 10px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: white;
    border: 1px solid #ddd;
    color: #444;
    margin-left: 0; /* Override btn-secondary margin */
}

.google-btn:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.google-btn img {
    width: 18px;
    height: 18px;
}

/* --- Dashboard --- */
#dashboard-page {
    padding: 60px 0 100px;
    min-height: 80vh;
    background-color: #FAFAFA;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 24px;
}

.account-info-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row .label {
    font-size: 0.875rem;
    color: #888;
    font-weight: 500;
}

.info-row .value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
}

.dashboard-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #444;
}

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audio-list-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.audio-item-info {
    flex: 1;
}

.audio-item-info h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: #222;
}

.audio-date {
    font-size: 0.875rem;
    color: #888;
    margin-right: 12px;
}

.original-link {
    font-size: 0.875rem;
    color: #9B6CFF;
    text-decoration: underline;
}

.audio-item-player audio {
    height: 40px;
    min-width: 300px;
}

.loading-text, .empty-text, .error-text {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}

.error-text {
    color: #ff4d4f;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #9B6CFF;
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #9B6CFF;
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 24px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
}

.faq-answer.active {
    max-height: 500px; /* Arbitrary large height */
}

/* --- Mobile Menu & Responsive Navbar --- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #222;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: #444;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #9B6CFF;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 40px;
        z-index: 1000;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 32px;
    }

    .navbar-cta {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-grid, .feature-grid, .pricing-grid, .steps-grid, .demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-text {
        align-items: center;
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .cta-group {
        justify-content: center;
    }
}

/* Utilities */
.section-padding {
    padding: 100px 0;
}

.bg-white {
    background-color: #FFFFFF;
}

.bg-light {
    background-color: #FAFAFA;
}

.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-primary {
    color: #9B6CFF;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.2;
    color: #222;
}

.section-lead {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 100%; /* Override p max-width */
}

/* Grid Utilities */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

/* Persona Cards */
.persona-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.persona-card:hover {
    transform: translateY(-5px);
}

.persona-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.persona-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #222;
}

.persona-card p {
    font-size: 1rem;
    color: #666;
    margin: 0 auto;
}

/* Feature Grid Reverse */
.reverse-grid {
    direction: rtl; /* Quick hack for reversing grid order visually */
}

.reverse-grid > * {
    direction: ltr; /* Reset direction for children */
}

/* Responsive adjustments for new sections */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .reverse-grid {
        direction: ltr; /* Stack normally on mobile */
    }
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure it doesn't squish too much */
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1.125rem;
}

.comparison-table th {
    font-weight: 800;
    color: #222;
    background-color: #FAFAFA;
}

.comparison-table th.highlight {
    background-color: #F3EEFF; /* Light purple tint */
    color: #9B6CFF;
    border-radius: 16px 16px 0 0;
}

.comparison-table td:nth-child(2) {
    background-color: #FBF9FF; /* Very light purple tint for the column */
    font-weight: 600;
    color: #222;
}

.comparison-table tr:last-child td:nth-child(2) {
    border-radius: 0 0 16px 16px;
}

.check {
    color: #6FCF97;
    font-weight: 700;
}

.cross {
    color: #FF4D4F;
    font-weight: 700;
}

/* Voice Badge */
.voice-badge {
    display: inline-block;
    background-color: #E0D4FC;
    color: #9B6CFF;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}
