:root {
    --navy: #2c3e50;
    --highlight-blue: #5DADE2;
    --background-grey: #F5F5F5;
    --text-color: #34495e;
    --white: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-grey);
    background-image: repeating-linear-gradient(
                          45deg,
                          transparent,
                          transparent 35px,
                          rgba(44, 62, 80, 0.05) 35px,
                          rgba(44, 62, 80, 0.05) 36px
                      ),
                      radial-gradient(ellipse at top, #fdfdfd, var(--background-grey));
    color: var(--text-color);
    margin: 0;
    padding-top: 80px;
    padding-bottom: 80px;
    box-sizing: border-box;
    position: relative;
    will-change: background-image;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        110deg,
        transparent 40%,
        rgba(93, 173, 226, 0.15) 50%,
        transparent 60%
    );
    will-change: background-position;
    background-size: 250% 100%;
    z-index: -1;
    animation: shimmer 18s linear infinite;
    pointer-events: none;
}

/* Utility class to prevent body scroll when a modal or menu is open */
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@keyframes content-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
}

.header, .footer {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: var(--navy);
    color: var(--white);
    padding: 15px 0;
    z-index: 1000;
}

.header {
    top: 0;
    background-color: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer {
    bottom: 0;
    background-color: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container, .footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.nav-logo-link:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nav-logo { height: 40px; width: auto; }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--highlight-blue); }
.header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger-bar {
    display: block; width: 25px; height: 3px; background-color: var(--white); margin: 5px 0; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials { display: flex; gap: 30px; }
.footer-socials a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.footer-socials a:hover {
    will-change: color, transform;
    color: var(--highlight-blue); transform: scale(1.1); }
.footer-socials a:hover { color: var(--highlight-blue); transform: scale(1.1); }
.footer-socials svg { width: 24px; height: 24px; fill: currentColor; }

.footer-legal { display: flex; gap: 25px; align-items: center; }
.footer-legal .copyright {
    color: #bdc3c7;
    font-size: 0.9rem;
    padding-right: 25px;
    border-right: 1px solid #4a6078;
}
.footer-legal a { color: #bdc3c7; text-decoration: none; font-weight: 400; font-size: 0.9rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

.btn-modern-primary {
    position: relative; display: inline-flex; justify-content: center; align-items: center;
    background-image: linear-gradient(to top, #52a2d7, #68b8e8);
    color: var(--white); border: 3px solid var(--navy); padding: 15px 35px; font-size: 1.1rem; font-weight: 700;
    border-radius: 50px; text-decoration: none;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-image 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.1), 0 4px 12px rgba(44, 62, 80, 0.1);
}
.btn-modern-primary .btn-text { transition: opacity 0.2s; }
.btn-modern-primary .spinner { display: none; position: absolute; width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: var(--white); animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-modern-primary:not(:disabled):hover {
    background-image: linear-gradient(to top, #2c3e50, #34495e);
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 173, 226, 0.25);
}

.btn-modern-primary.loading .btn-text {
    opacity: 0;
    visibility: hidden;
}

.btn-modern-primary.loading .spinner {
    display: block;
}
.btn-modern-primary:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
}

.btn-modern-primary:disabled, .btn-modern-primary.loading {
    cursor: not-allowed;
    background-image: none;
    background-color: #a0c8e0;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
}

.main-content,
.main-container,
.login-container {
    animation: content-fade-in-up 0.7s ease-out forwards;
}

.main-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 160px); text-align: center; padding: 20px; }
.content-wrapper { max-width: 600px; width: 100%; }
.logo { max-width: 200px; height: auto; margin-bottom: 10px; }
.main-container {
    flex-direction: column;
}
.index-h1 { font-size: 3rem; color: var(--navy); font-weight: 700; margin: 0 0 15px 0; }
.index-p { font-size: 1.25rem; line-height: 1.6; margin-bottom: 40px; }
.video-section { margin-top: 50px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sound-button { position: absolute; bottom: 15px; right: 15px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.7); color: white; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center; }

.feature-section {
    padding: 160px 20px;
    overflow: hidden;
}
.feature-section-blue {
    background-color: #212F3D;
}
.feature-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}
.feature-text, .feature-video {
    min-width: 0;
}
.feature-video {
    flex: 0 1 50%;
}
.feature-text {
    flex: 1 1 50%;
}
.feature-text h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin: 0 0 20px 0;
}
.feature-section-blue .feature-text h2 {
    color: var(--white);
}
.feature-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
}
.feature-section-blue .feature-text p {
    color: var(--white);
}
.feature-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.1);
}
.feature-section-blue .highlight-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.highlight-item svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--highlight-blue);
}
.highlight-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--navy);
}
.feature-section-blue .highlight-item h4 {
    color: var(--white);
}
.highlight-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}
.feature-section-blue .highlight-item p {
    color: #bdc3c7;
}

.feature-container.reverse-layout-desktop {
    flex-direction: row-reverse;
}
@media (max-width: 900px) {
    .feature-container, .feature-container.reverse-layout-desktop {
        flex-direction: column;
        gap: 0;
    }
    .feature-section-blue .feature-container {
        flex-direction: column-reverse;
    }
    .feature-text {
        text-align: center;
        padding: 40px 20px;
    }
    .feature-video {
        width: 100%;
    }
}

.about-section { background-color: var(--white); border-radius: 12px; padding: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.about-container { display: flex; gap: 50px; align-items: flex-start; }
.founder-photo-container { flex-shrink: 0; text-align: center; }
.founder-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.about-text h2 { color: var(--navy); font-size: 2rem; margin-top: 0; }
.about-text p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 30px; }
.divider { height: 2px; width: 80px; background-color: var(--highlight-blue); margin: 40px 0; border: none; }
.founder-info { margin-top: 15px; }
.founder-name { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.founder-title { margin: 5px 0 0 0; font-size: 1rem; font-weight: 400; color: var(--text-color); opacity: 0.9; }
.about-extra-content { padding-top: 30px; }
.about-extra-content h2 { color: var(--navy); font-size: 2rem; }
.about-extra-content p { font-size: 1.1rem; line-height: 1.7; }
.value-list, .state-list { list-style: none; padding-left: 0; font-size: 1.1rem; line-height: 1.8; text-align: left; }
.value-list li, .state-list li { margin-bottom: 10px; }
.disclaimer-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.disclaimer-section h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-color); opacity: 0.7; }
.disclaimer-section p { font-size: 0.9rem; line-height: 1.6; opacity: 0.8; }
@media (max-width: 768px) {
    .about-container { flex-direction: column; align-items: center; }
    .founder-photo-container { margin-bottom: 30px; }
    .about-text { text-align: center; }
    .about-section { padding: 30px; }
}

.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 2.5rem; color: var(--navy); }
.contact-container {
    display: flex; gap: 50px; background-color: var(--white); padding: 40px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
}
.contact-info, .contact-form-container { flex: 1; }
.contact-info h3 { font-size: 1.5rem; color: var(--navy); margin-top: 0; }
.contact-socials { margin-top: 20px; display: flex; gap: 20px; }
.contact-socials a { text-decoration: none; font-weight: 600; color: var(--highlight-blue); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px;
    font-family: 'Nunito', sans-serif; font-size: 1rem; box-sizing: border-box;
    background-color: #fdfdfd;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--highlight-blue); box-shadow: inset 0 1px 3px rgba(0,0,0,0.06), 0 0 0 3px rgba(93, 173, 226, 0.2); }
.form-message { padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; display: none; }
.form-message.success { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.form-message.error { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

.auth-container {
    max-width: 450px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}
.auth-container h2 { font-size: 2rem; color: var(--navy); margin-top: 0; }
.auth-form { margin-top: 30px; text-align: left; }
.password-wrapper {
    position: relative;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(calc(-50% + 8px));
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
    display: flex;
    align-items: center;
}
.password-toggle:hover {
    color: var(--highlight-blue);
}
.auth-switch { margin-top: 25px; font-size: 0.9rem; text-align: center; }
.auth-switch a { color: var(--highlight-blue); text-decoration: none; font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.auth-view .form-message { margin-bottom: 0; margin-top: 20px; }

.pricing-display { font-size: 2.5rem; font-weight: 700; color: var(--navy); margin: 20px 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pricing-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    will-change: transform, box-shadow, border-color;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card::before, .letter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight-blue), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
    border-color: var(--highlight-blue);
}

.pricing-card:hover::before, .letter-card:hover::before {
    transform: translateX(0);
}

.pricing-card h2 {
    color: var(--navy);
    font-size: 1.75rem;
    margin: 0 0 10px 0;
}

.pricing-card .price-range {
    color: var(--text-color);
    font-weight: 600;
    margin: 0 0 25px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    min-height: 2.4em;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 0;
}

.pricing-table th, .pricing-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e9ecef;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    font-weight: 600;
    opacity: 0.7;
}

.pricing-table td:last-child {
    font-weight: 700;
    color: var(--navy);
    text-align: right;
}

.card-cta {
    display: inline-block;
    background-color: var(--highlight-blue);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    will-change: transform, background-color;
    margin: 25px auto;
    transition: transform 0.2s, background-color 0.2s;
}

.pricing-card:hover .card-cta {
    background-color: var(--navy);
    transform: scale(1.05);
}

.bundle-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #eaf5fc;
    color: var(--navy);
    border: 1px solid #b8d9ee;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 40px;
}
.bundle-notice-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--highlight-blue);
    flex-shrink: 0;
}
.bundle-notice-text {
    font-size: 1.05rem;
    line-height: 1.6;
}
.bundle-notice-text small {
    display: block;
    opacity: 0.8;
    margin-top: 4px;
}

.storage-plan-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    text-align: center;
}

.storage-plan-section h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-top: 0;
}

.storage-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.storage-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.04), 0 3px 8px rgba(44, 62, 80, 0.06);
    display: flex;
    will-change: transform, box-shadow;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.storage-card.featured {
    border-color: var(--highlight-blue);
    border-width: 2px;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--highlight-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.storage-card h3 { font-size: 1.5rem; color: var(--navy); margin: 0 0 15px 0; }
.storage-price { margin-bottom: 10px; }
.storage-price .price-amount { font-size: 2.75rem; font-weight: 700; color: var(--navy); }
.storage-price .price-period { font-size: 1rem; color: var(--text-color); opacity: 0.8; }
.storage-card .yearly-deal { font-size: 0.9rem; color: var(--text-color); margin: 0 0 25px 0; font-weight: 600; }

.storage-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.storage-card .features-list li { margin-bottom: 10px; }
.storage-card .btn-modern-primary {
    align-self: center;
}

.storage-table {
    margin-top: 30px;
    font-size: 1rem;
}

.storage-table td, .storage-table th {
    text-align: center;
    padding: 15px;
}

.storage-table td:first-child, .storage-table th:first-child {
    text-align: left;
}

.legal-content {
    background-color: var(--white); border-radius: 12px; padding: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
}
.legal-content h1 { color: var(--navy); font-size: 2.5rem; margin-top: 0; }
.legal-content h2 { color: var(--navy); font-size: 1.8rem; margin-top: 40px; }
.legal-content p, .legal-content li { font-size: 1.05rem; line-height: 1.8; }
.legal-content ul { padding-left: 20px; }

.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-container { background-color: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; max-width: 400px; width: 90%; }
.login-container .logo { max-width: 150px; height: auto; margin-bottom: 20px; }
.login-container h1 { font-size: 1.8rem; color: var(--navy); margin-top: 0; margin-bottom: 10px; }
.login-container p { margin-bottom: 25px; }
.login-container .btn-modern-primary { width: 100%; }
.error-message { color: #842029; background-color: #f8d7da; border: 1px solid #f5c2c7; padding: 10px; border-radius: 8px; margin-top: 20px; display: none; }
.login-container.shake {
    animation: shake 0.5s;
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.dashboard-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
}

.workflow-container {
    text-align: center;
    padding: 50px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: 40px auto;
}
.workflow-container h1 {
    color: var(--navy);
    margin-bottom: 50px;
    font-size: 2.5rem;
}
.workflow-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

.workflow-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.04), 0 3px 8px rgba(44, 62, 80, 0.06);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    will-change: transform, box-shadow;
}
.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.workflow-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
}
.workflow-card p {
    flex-grow: 1;
    margin: 0 0 30px 0;
    line-height: 1.6;
    max-width: 300px;
    color: var(--text-color);
}

.workflow-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--highlight-blue);
    opacity: 0;
    transform: translateX(-10px);
    will-change: opacity, transform;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.workflow-card:hover .workflow-arrow {
    opacity: 1;
    transform: translateX(0);
}
@media (min-width: 800px) {
    .workflow-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.homepage-intro {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.homepage-workflow-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.homepage-action-button {
    background-image: linear-gradient(to top, #5DADE2, #85C1E9);
    color: var(--white);
    padding: 25px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 3px solid var(--navy);
}
.homepage-action-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.12), 0 4px 10px rgba(44, 62, 80, 0.08);
}

.homepage-action-button h3 {
    margin: 0 0 20px 0;
    font-size: 1.75rem;
    flex-grow: 1;
}

.homepage-action-cta {
    background-color: var(--white);
    color: var(--highlight-blue);
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1rem;
    transition: background-color 0.2s, color 0.2s;
}
.homepage-action-button:hover .homepage-action-cta {
    background-color: var(--navy);
    color: var(--white);
}
.homepage-explainer {
    text-align: center;
    max-width: 700px;
}
.homepage-explainer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
}

.homepage-explainer h2 {
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
}
.homepage-explainer p {
    font-size: 1.1rem;
}

.chat-body { display: flex; flex-direction: column; min-height: 100vh; }
.chat-main-content { flex-grow: 1; display: flex; flex-direction: column; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border-color); background-color: #f8f9fa; flex-shrink: 0; }
.back-button, .start-over-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 5px;
    transition: color 0.2s;
}
.back-button:hover, .start-over-button:hover { color: var(--highlight-blue); }
.back-button svg, .start-over-button svg { width: 20px; height: 20px; }
.start-over-button svg { width: 18px; height: 18px; }
.progress-bar-container {
    padding: 15px 20px;
    background-color: #f8f9fa;
    flex-shrink: 0;
}
.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}
.progress-bar-background {
    background-color: #e9ecef;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
}
.progress-bar-foreground {
    background-color: var(--highlight-blue);
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: width 0.5s ease-out;
}
.chat-container {
    display: flex; flex-direction: column; height: 100%; width: 100%; background-color: var(--white);
    border-radius: 12px; overflow: hidden; flex-grow: 1; position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.08);
}
.chat-messages { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message { display: flex; align-items: flex-end; max-width: 80%; position: relative; }
.message-bubble {
    padding: 12px 18px; border-radius: 20px; line-height: 1.5; word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.message.user { align-self: flex-end; }
.message.user .message-bubble {
    background-image: linear-gradient(to top, #52a2d7, #68b8e8); /* Gradient for user bubble */
    color: var(--white);
    border-bottom-right-radius: 5px;
}
.message.ai { align-self: flex-start; }
.message.ai .message-bubble {
    background-image: linear-gradient(to top, #e9ecef, #f5f7fa); /* Subtle gradient for AI bubble */
    color: var(--text-color);
    border-bottom-left-radius: 5px;
}
.message-bubble.has-tile {
    background-color: transparent;
    padding: 0;
}
.summary-container {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
}
.summary-container-title {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.summary-card {
    background-color: var(--white);
    border: 1px solid #e0e7ec;
    border-radius: 10px;
    padding: 5px 15px;
}
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
}
.summary-list li:last-child { border-bottom: none; }
.summary-list strong { color: var(--highlight-blue); font-weight: 700; text-align: right; padding-left: 15px; }

.courthouse-options-container {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
}
.courthouse-options-title {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.courthouse-card {
    background-color: var(--white);
    border: 1px solid #e0e7ec;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    will-change: transform, box-shadow, border-color;
}
.courthouse-card:hover, .courthouse-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-color: var(--highlight-blue);
    outline: none;
}
.courthouse-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.courthouse-option-num { background-color: var(--highlight-blue); color: var(--white); font-weight: 700; border-radius: 50%; width: 28px; height: 28px; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.courthouse-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0; }
.courthouse-address { font-size: 0.9rem; color: var(--text-color); margin: 0 0 0 40px; line-height: 1.5; }
.courthouse-options-footer {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    text-align: center;
    color: #6c757d;
}
.download-container {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.download-container-intro {
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.6;
}
.download-container .download-button {
    margin-bottom: 25px;
}
.included-files {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}
.included-files-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px 0;
}
.included-files-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.included-files-list li { padding: 8px 0; border-bottom: 1px solid #e9ecef; }
.included-files-list li:last-child { border-bottom: none; }
.included-files-list strong { color: var(--text-color); }

.error-card {
    background-color: #fff3f3;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    padding: 16px 20px;
    color: #842029;
}
.error-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.error-card-header svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: #842029;
}
.error-card p { margin: 0; line-height: 1.6; font-size: 0.95rem; }

.message-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}
.message.ai .message-divider {
    border-top-color: rgba(0, 0, 0, 0.1);
}
.file-attachment-list {
    margin-top: 10px;
}
.file-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}
.file-attachment-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: currentColor;
}

.message-bubble.initial-loading {
    background-color: #e9ecef; 
    display: inline-flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 8px;
    font-style: italic;
    color: #6c757d;
}
.typing-indicator-dots {
    display: flex;
    gap: 3px;
}
.typing-indicator-dots span {
    animation: bounce 1.4s infinite ease-in-out both;
}

.message-bubble.initial-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 40%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 60%
    );
    background-size: 250% 100%;
    animation: shimmer 6s linear infinite;
}
@keyframes slide-in-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message.new-message {
    animation: slide-in-fade-in 0.4s ease-out;
}

.chat-input-area {
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.chat-input-form { display: flex; padding: 15px 20px; border-top: 1px solid var(--border-color); background-color: #f8f9fa; align-items: center; }
#attach-file-button {
    background-color: transparent !important;
    background-image: none !important;
    width: 50px;
    height: 50px;
    margin-right: -10px;
}
.attach-button svg { stroke: #6c757d; transition: stroke 0.2s; }
.attach-button:hover svg { stroke: var(--highlight-blue); }
.file-preview { padding: 0 20px 10px; font-size: 0.9rem; color: #6c757d; background-color: #f8f9fa; display: none; }

.typing-indicator { display: none; align-items: center; gap: 5px; padding: 12px 18px; }
.typing-indicator span { height: 8px; width: 8px; background-color: #ced4da; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
.file-preview {
    padding: 10px 20px;
    background-color: #f8f9fa;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}
.file-pill {
    display: inline-flex;
    align-items: center;
    background-color: #e0e7ec;
    border-radius: 16px;
    padding: 4px 8px 4px 12px;
    font-size: 0.9rem;
    color: var(--text-color);
}
.file-pill span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-pill button {
    background: none; border: none; margin-left: 8px; padding: 0; cursor: pointer;
    font-size: 1.2rem; line-height: 1; color: #6c757d; transition: color 0.2s;
}
.file-pill button:hover { color: #dc3545; }

.chat-input-form textarea {
    flex-grow: 1;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: inherit;
    margin-right: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
    max-height: 150px;
    line-height: 1.4;
}
.chat-input-form textarea:focus { outline: none; border-color: var(--highlight-blue); box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.2); }
.chat-input-form button {
    background-image: linear-gradient(to top, #52a2d7, #68b8e8);
    color: var(--white); border: none; border-radius: 50%; width: 50px; height: 50px; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: background-image 0.2s, transform 0.2s; flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.chat-input-form button:hover:not(:disabled) { background-image: linear-gradient(to top, #4a90e2, #5aa1e5); transform: scale(1.05); }
.chat-input-form button:disabled {
    background-image: none; background-color: #a0c8e0; cursor: not-allowed; box-shadow: none;
}
.chat-input-form button:disabled svg { fill: #e9ecef; }
.chat-input-form button:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.chat-disclaimer {
    background-color: #f8f9fa;
    padding: 0 20px 12px;
    font-size: 0.8rem;
    text-align: center;
    color: #6c757d;
}

.scroll-to-bottom {
    position: absolute;
    bottom: 140px;
    right: 30px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    will-change: opacity, transform;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.scroll-to-bottom.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.scroll-to-bottom:hover { background-color: #f8f9fa; transform: scale(1.05) translateY(0); }
.scroll-to-bottom svg { color: var(--text-color); }

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .header, .footer {
        padding: 10px 0;
    }
    .nav-logo-link {
        width: 40px;
        height: 40px;
    }
    .nav-logo {
        height: 32px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        font-size: 1.2rem;
    }

    .header.mobile-nav-open .nav-links {
        transform: translateX(0);
    }

    .header.mobile-nav-open::before {
        opacity: 1;
        visibility: visible;
    }

    .header.mobile-nav-open .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .header.mobile-nav-open .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .header.mobile-nav-open .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-content {
        width: 100%;
        margin: 20px auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .chat-main-content {
        padding: 0;
        margin: 20px 0 0 0;
    }
    .chat-container {
        border-radius: 0;
        box-shadow: none;
        height: calc(100vh - 120px);
    }
    .chat-messages, .chat-input-form, .file-preview, .progress-bar-container, .chat-header, .chat-disclaimer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .message {
        max-width: 85%;
    }
    .file-pill span {
        max-width: 120px;
    }

    .scroll-to-bottom {
        bottom: 130px;
        right: 20px;
    }

    .pricing-table {
        font-size: 1rem;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table tr {
        display: block;
        border-bottom: 2px solid var(--highlight-blue);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .pricing-table tbody tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .pricing-table td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-color);
        position: relative;
        padding-left: 50%;
    }

    .pricing-table td:last-child {
        border-bottom: none;
    }

    .pricing-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: var(--text-color);
        opacity: 0.8;
    }

    .workflow-container, .contact-container, .legal-content, .about-section {
        padding: 30px 20px;
    }
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    .about-text { text-align: left; }
    .index-h1 { font-size: 2.5rem; }
    .index-p { font-size: 1.1rem; }

    .homepage-workflow-buttons {
        grid-template-columns: 1fr;
    }
    .homepage-intro {
        order: 2;
    }
    .homepage-explainer { order: 3; }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 25px;
    }
    .footer-legal, .footer-socials {
        display: contents;
    }
    .footer-legal .copyright {
        border-right: none;
        padding-right: 0;
    }
}

.letters-error-message {
    grid-column: 1 / -1;
    text-align: center;
    background-color: #fff3f3;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 20px;
    border-radius: 12px;
}

.letter-card.is-loading {
    pointer-events: none;
}

.placeholder-glow {
    background-color: #e9ecef;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.placeholder-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 40%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 60%
    );
    background-size: 250% 100%;
    animation: shimmer 2s linear infinite;
}

.letter-card.is-loading .placeholder-glow.title {
    height: 24px;
    width: 70%;
    margin-bottom: 20px;
}
.letter-card.is-loading .placeholder-glow.text {
    height: 16px;
    width: 100%;
    margin-bottom: 10px;
}
.letter-card.is-loading .placeholder-glow.text.short {
    width: 80%;
}
.letter-card.is-loading .placeholder-glow.button {
    height: 48px;
    width: 150px;
    border-radius: 50px;
    margin-top: 30px;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.letter-card {
    background-image: linear-gradient(to top, #52a2d7, #68b8e8);
    border: 3px solid var(--navy);
    border-radius: 12px;
    padding: 30px;
    will-change: transform, box-shadow, border-color;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.04), 0 3px 8px rgba(44, 62, 80, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.letter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
    border-color: var(--highlight-blue);
}

.letter-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.letter-card p {
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.letter-card .btn-modern-primary {
    align-self: flex-start;
    background-image: none;
    background-color: var(--white);
    color: var(--highlight-blue);
    border-color: var(--white);
}

.pdf-view-header {
    margin-bottom: 20px;
}

.pdf-viewer-container {
    width: 100%;
    height: calc(100vh - 220px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-y: auto;
    background-color: #525659;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
}
.btn-modern-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    color: var(--highlight-blue);
    border: 2px solid var(--highlight-blue);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    will-change: transform, background-color, color, box-shadow;
    transition: all 0.2s ease-out;
    cursor: pointer;
    margin-top: 15px;
}

.btn-modern-secondary:hover {
    background-color: var(--highlight-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.15);
}

.btn-modern-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.1), inset 0 1px 2px rgba(0,0,0,0.1);
}

.btn-modern-secondary svg {
    width: 18px;
    height: 18px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    will-change: opacity;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.visible {
    opacity: 1;
}
.modal-content {
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: left;
}
.modal-content h3 { color: var(--navy); font-size: 1.5rem; margin: 0 0 5px 0; text-align: center; }
.modal-subtitle { margin: 0 0 20px 0; font-size: 1rem; text-align: center; }
.modal-close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; color: #adb5bd; cursor: pointer; transition: color 0.2s; }
.modal-close-btn:hover { color: var(--navy); }
.modal-form { text-align: left; }
.modal-form .btn-modern-primary { width: 100%; margin-top: 10px; }

@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
    }
}