:root {
    --bg-color: #F2EDE4; /* Richer Sepia */
    --text-primary: #1A1A1A;
    --text-secondary: rgba(26, 26, 26, 0.6);
    --card-bg: #FFFFFF;
    --accent-red: #E63946;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px; /* Increased to 1200px for more room */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    justify-content: center;
    min-height: 100vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Slightly more room for hero/footer */
    grid-template-areas: 
        "hero card"
        "footer card"
        "collapsibles collapsibles";
    gap: 0 80px; /* Reduced gap slightly for better fit */
    align-items: center;
}

.collapsibles {
    grid-area: collapsibles;
    margin-top: 60px;
    width: 100%;
    justify-self: stretch; /* Ensure it spans the full grid area */
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
    .container {
        padding: 60px 24px;
        display: block; /* Normal scroll on mobile */
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "hero"
            "card"
            "footer"
            "collapsibles";
        gap: 48px;
        text-align: center;
    }
    
    .hero, .footer {
        text-align: center;
        align-items: center !important;
    }

    .title {
        font-size: 3rem !important;
    }

    .tagline {
        max-width: 100% !important;
        margin-bottom: 24px !important;
    }

    .footer-meta {
        flex-direction: column;
        gap: 16px;
    }

    .collapsibles {
        margin-top: 40px; /* Reduced margin for mobile */
        padding: 0 10px;
    }

    .troubleshoot {
        max-width: 100% !important; /* Always full width on mobile */
    }

    .carousel-content {
        height: 380px; /* Reduced fixed height for mobile */
    }

    .window-mockup {
        width: 85%; /* Wider on mobile */
        height: 70%;
    }

    .feature-info {
        padding: 20px 20px 32px 20px;
    }
}

.hero {
    grid-area: hero;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.05); /* Flat border instead of shadow */
}

.title {
    font-family: 'Instrument Serif', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 0.9;
    letter-spacing: -0.01em;
}

.title i {
    font-style: italic;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 400px;
}

/* PRODUCT CARD & CAROUSEL */
.product-card {
    grid-area: card;
    background-color: #0A0A0A;
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05); /* Flat dark border */
}

.progress-bar {
    display: flex;
    gap: 6px;
    padding: 16px 20px 0 20px;
}

.segment {
    flex: 1;
    height: 2px;
    background-color: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 2px;
}

.segment.active {
    background-color: rgba(255,255,255,0.8);
}

.carousel-content {
    position: relative;
    height: 280px;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.feature-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.window-mockup {
    width: 90%;
    height: 85%;
    background-color: transparent;
    border-radius: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.window-mockup.blur-bg {
    background-image: url('blur.png');
}

.window-mockup.pixelated {
    background-image: url('pixelated.png');
}

.window-mockup.dimmed {
    background-image: url('dim.png');
}

.feature-info {
    padding: 20px 25px 32px 25px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
}

/* FOOTER & BUTTONS */
.footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.download-button {
    background-color: #000000;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 18px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.download-button:hover {
    background-color: #222;
}

.btn-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.apple-icon {
    width: 18px;
    height: 22px;
}

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

.main-txt {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.sub-txt {
    display: block;
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.guide-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.credit-pill {
    background: rgba(0, 0, 0, 0.05); /* Subtle Gray */
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.credit-pill:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* COLLAPSIBLES */
.collapsibles {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center; /* Center the narrower collapsibles */
}

.guide-section {
    background: rgba(0,0,0,0.03);
    border-radius: 24px;
    padding: 6px;
    margin-bottom: 8px;
}

.guide-header {
    padding: 14px 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
    opacity: 0.8;
}

.troubleshoot {
    background: rgba(0,0,0,0.03);
    border-radius: 16px;
    padding: 2px;
    width: 100%;
    max-width: 500px; /* Reduced default width further */
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.troubleshoot[open] {
    background: rgba(0,0,0,0.05);
    max-width: 100%; /* Increase width when clicked/open */
}

.troubleshoot summary {
    padding: 8px 18px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 1rem;
    opacity: 0.8;
}

.troubleshoot summary::-webkit-details-marker {
    display: none;
}

.troubleshoot summary::after {
    content: '+';
    font-size: 1.4rem;
    opacity: 0.3;
}

.troubleshoot[open] summary::after {
    content: '−';
}

.troubleshoot-content {
    padding: 0 20px 18px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 6px;
    padding-top: 20px;
}

.troubleshoot-content ol {
    padding-left: 24px;
}

.troubleshoot-content li {
    margin-bottom: 8px;
}

.troubleshoot-content strong {
    color: var(--text-primary);
}

.troubleshoot-content code {
    background: rgba(0,0,0,0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: #cc0000;
}

/* MINI GUIDE GRID */
.guide-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 1100px) {
    .guide-mini-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .guide-mini-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 24px;
        text-align: left;
    }
}

.mini-item {
    display: flex;
    flex-direction: column; /* Icon on top of text for better alignment in narrow columns */
    gap: 12px;
}

.mini-item span {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.mini-item p {
    font-size: 0.88rem;
    line-height: 1.45;
}



.mini-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}
