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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

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

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* Page content wrapper spacing (for privacy/terms/guidelines/support pages)
   Ensures content isn't hidden under the fixed header */
.main-content {
    padding-top: 96px;
}

/* Legal pages typography and spacing */
.main-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.main-content .page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 16px 0 24px;
    line-height: 1.25;
}

.main-content .content-section {
    margin: 28px 0;
}

.main-content .content-section h2 {
    font-size: 24px;
    margin: 12px 0 12px;
    line-height: 1.35;
}

.main-content .content-section h3 {
    font-size: 18px;
    margin: 10px 0 10px;
    line-height: 1.35;
}

.main-content .content-section p {
    margin: 8px 0 10px;
}

.main-content .content-section ul,
.main-content .content-section ol {
    margin: 8px 0 16px 1.2em;
}

.main-content .content-section li {
    margin: 6px 0;
}

.main-content .content-section ul ul,
.main-content .content-section ol ol {
    margin: 6px 0 6px 1.2em;
}

/* Collapsible appendix box */
details.app-appendix {
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 12px;
    padding: 14px 16px;
}

details.app-appendix > summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

details.app-appendix[open] {
    background: #f6f7f8;
}

details.app-appendix .appendix-body {
    margin-top: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

.nav-download-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-download-button:hover {
    transform: scale(1.05);
}

.nav-download-icon {
    height: 40px;
    width: auto;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 50%, #f2f2f2 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-description {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 0;
}

.download-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.download-button:hover {
    transform: scale(1.05);
}

.download-icon {
    height: 60px;
    width: auto;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-app-image {
    max-width: 100%;
    height: auto;
    max-height: 1000px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-1px);
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    background-color: #fff;
}

.feature-section:nth-child(even) {
    background-color: #f8f9fa;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-left .feature-content {
    grid-template-columns: 1fr 1fr;
}

.feature-right .feature-content {
    grid-template-columns: 1fr 1fr;
}

.feature-right .feature-text {
    order: 2;
}

.feature-right .feature-image {
    order: 1;
}

.feature-text {
    text-align: left;
}

.feature-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.3;
}

.feature-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-screenshot {
    max-width: 130%;
    height: auto;
    max-height: 650px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}


/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: #000;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.8;
    line-height: 1.5;
}

.cta-buttons {
    margin-bottom: 48px;
}

.cta .btn-primary {
    background-color: #000;
    color: #fff;
}

.cta .btn-primary:hover {
    background-color: #333;
}

.cta-download-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cta-download-button:hover {
    transform: scale(1.05);
}

.cta-download-icon {
    height: 60px;
    width: auto;
}

.cta-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.example-list {
    text-align: left;
}

.example-item {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-text {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #000;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Contact Form */
#contact-form {
    display: grid;
    gap: 16px;
    max-width: 640px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

#contact-form .form-group {
    display: grid;
    gap: 8px;
}

#contact-form label {
    font-weight: 600;
    color: #111;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: #000;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #aaa;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

#contact-form .cf-turnstile {
    margin-top: 8px;
}

#contact-form .form-actions {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

#contact-result {
    margin-top: 6px;
    font-size: 14px;
}
/* Full-width submit button inside actions */
#contact-form .form-actions .btn {
    width: 100%;
}

@media (min-width: 768px) {
    /* Keep single-column layout per request */
    #contact-form {
        grid-template-columns: 1fr;
    }
    #contact-form .form-group {
        grid-column: 1 / -1; /* full width */
    }
    #contact-form .form-group.form-half {
        grid-column: 1 / -1; /* also full width */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Reduce top spacing under fixed header on small screens */
    .main-content {
        padding-top: 84px;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .main-content .page-title {
        font-size: 28px;
        margin: 12px 0 20px;
    }
    .main-content .content-section {
        margin: 24px 0;
    }
    .main-content .content-section h2 {
        font-size: 22px;
    }
    .main-content .content-section h3 {
        font-size: 17px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .feature-section {
        padding: 60px 0;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .feature-text {
        text-align: center;
    }
    
    .feature-title {
        font-size: 36px;
    }
    
    .feature-subtitle {
        font-size: 20px;
    }
    
    .feature-description {
        font-size: 16px;
    }
    
    .feature-right .feature-text {
        order: 1;
    }
    
    .feature-right .feature-image {
        order: 2;
    }
    
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-examples {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .example-list {
        text-align: center;
    }
    
    .footer {
        padding: 32px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    :target {
        scroll-margin-top: 84px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .feature-title {
        font-size: 28px;
    }
    
    .feature-subtitle {
        font-size: 18px;
    }
    
    .feature-description {
        font-size: 14px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure anchor targets are not hidden behind fixed header */
:target {
    scroll-margin-top: 96px;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .cta-buttons {
        display: none;
    }
    
    .hero,
    .cta {
        background: none !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid #ccc;
        background: none !important;
        color: black !important;
    }
}