/* Navigation */
.nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
}

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

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Blog Page Styles */
body:has(.blog-main) {
    display: block;
    align-items: unset;
    justify-content: unset;
}

.breadcrumb {
    background: rgba(17, 17, 17, 0.95);
    padding: 12px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb ol {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: #666;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.blog-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(233, 80, 89, 0.1), rgba(233, 80, 89, 0.05));
    border-radius: 24px;
    border: 1px solid rgba(233, 80, 89, 0.2);
}

.blog-header h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--foreground);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.blog-stats span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.blog-nav a {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.blog-nav a:first-child {
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-link {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 80, 89, 0.3);
}

.table-of-contents {
    background: rgba(34, 34, 34, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-of-contents h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #ddd;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.2s;
}

.table-of-contents a:hover {
    background: rgba(233, 80, 89, 0.1);
    color: var(--primary);
}

.blog-section {
    margin-bottom: 48px;
}

.blog-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-intro {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 32px;
    line-height: 1.6;
}

.blog-article {
    background: rgba(24, 24, 24, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-article:hover {
    border-color: rgba(233, 80, 89, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.blog-article[open] {
    border-color: var(--primary);
}

.blog-article summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    user-select: none;
}

.blog-article summary:hover {
    background: rgba(233, 80, 89, 0.05);
}

.blog-article summary h3 {
    font-size: 1.3rem;
    color: var(--foreground);
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    flex: 1;
}

.expand-icon {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    margin-left: 16px;
    transition: transform 0.2s;
}

.blog-article[open] .expand-icon {
    transform: rotate(0deg);
}

.article-content {
    padding: 0 24px 24px 24px;
    line-height: 1.7;
    color: #ddd;
}

.article-content h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 24px 0 12px 0;
    font-weight: 600;
}

.article-content h5 {
    color: var(--foreground);
    font-size: 1rem;
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.article-content ul, .article-content ol {
    padding-left: 20px;
    margin: 16px 0;
}

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

.pro-tip {
    background: linear-gradient(135deg, rgba(233, 80, 89, 0.1), rgba(233, 80, 89, 0.05));
    border: 1px solid rgba(233, 80, 89, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.pro-tip h4 {
    margin-top: 0;
}

.real-mom-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.real-mom-quote blockquote {
    margin: 0;
    font-style: italic;
    color: #ccc;
}

.output-ranges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.range-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.range-item h4 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1rem;
}

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

.feature-comparison {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-comparison h5 {
    margin-top: 0;
    color: var(--primary);
}

.feature-list {
    margin: 24px 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item h5 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-stories {
    margin: 24px 0;
}

.success-stories blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #ccc;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0 0 0;
    flex-wrap: wrap;
}

.app-download-btn {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
}

.app-download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 80, 89, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

.download-section {
    background: linear-gradient(135deg, rgba(233, 80, 89, 0.15), rgba(233, 80, 89, 0.05));
    border: 1px solid rgba(233, 80, 89, 0.3);
    border-radius: 24px;
    padding: 48px 32px;
    margin: 48px 0;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    color: var(--foreground);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.download-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.benefit-item h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.store-buttons {
    margin: 32px 0;
    display: flex;
}

.download-note {
    color: #bbb;
    font-size: 0.9rem;
    margin-top: 16px;
}

.blog-footer {
    text-align: center;
    margin-top: 64px;
    padding: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.challenge-list {
    margin: 20px 0;
}

.challenge-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

.challenge-item h5 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.steps-list {
    margin: 24px 0;
}

.step-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}



.step-item:last-child::before {
    display: none;
}

.step-item h5 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.storage-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.storage-method {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.storage-method h4 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.storage-method p {
    font-weight: 600;
    color: var(--foreground);
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 32px 24px;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-main {
        padding: 16px;
    }
    
    .blog-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-nav {
        flex-direction: column;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .output-ranges {
        grid-template-columns: 1fr;
    }
    
    .download-benefits {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .storage-guide {
        grid-template-columns: 1fr;
    }
    
    .steps-list {
        margin: 16px 0;
    }
}
:root {
    /* Color tokens from the app's theme */
    --brand-500: 333 63% 58%;
    --brand-600: 333 63% 48%;

    /* Semantic mapping for the landing page */
    --background: #111111;
    --foreground: #FFFFFF;
    --primary: hsl(var(--brand-500));
    --primary-dark: hsl(var(--brand-600));
    --button-text: #E95059;
    --button-bg: white;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero {
    width: 100%;
    padding: 36px;
    box-sizing: border-box;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3.5px;
    margin: 0 0 16px 0;
    text-align: left;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    color: var(--foreground);
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: left;
}

.store-buttons {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-badge svg {
    width: 120px;
    height: auto;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image .screenshot {
    position: absolute;
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3);
    transition: transform 0.4s ease-in-out;
    cursor: pointer;
}

.hero-image .screenshot-1 { transform: rotate(-6deg) translateX(-40px); }
.hero-image .screenshot-2 { transform: rotate(-2deg) translateX(-20px); }
.hero-image .screenshot-3 { transform: rotate(2deg); z-index: 1; }
.hero-image .screenshot-4 { transform: rotate(6deg) translateX(20px); }
.hero-image .screenshot-5 { transform: rotate(10deg) translateX(40px); }

.hero-image:hover .screenshot-1 { transform: rotate(-10deg) translateX(-80px) scale(1.05); }
.hero-image:hover .screenshot-2 { transform: rotate(-5deg) translateX(-40px) scale(1.05); }
.hero-image:hover .screenshot-3 { transform: rotate(0deg) scale(1.1); z-index: 2;}
.hero-image:hover .screenshot-4 { transform: rotate(5deg) translateX(40px) scale(1.05); }
.hero-image:hover .screenshot-5 { transform: rotate(10deg) translateX(80px) scale(1.05); }

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.overlay.visible {
    display: flex;
}

.overlay-content {
    text-align: center;
    animation: zoomIn 0.3s ease-in-out;
}

#overlay-image {
    max-height: 80vh;
    width: auto;
    max-width: 420px;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
}

#overlay-caption {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
}

.overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.overlay-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.overlay-nav.prev {
    left: 30px;
}

.overlay-nav.next {
    right: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* Responsive adjustments */
@media (max-width: 900px) {
    body {
        display: block;
    }
    #hero {
        padding: 96px 36px 36px;
    }
    .container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .hero-content, .hero-image {
        max-width: 100%;
    }
    .hero-content h1, .hero-content p {
        text-align: center;
    }
    .hero-image {
        min-height: 400px;
        margin-top: 2rem;
    }
}
