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

/* Screen reader only text - accessible but visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:root {
    /* Brand Colors - Greens */
    --brand-primary: #c0ffee;
    --brand-green-2: #55d7cc;
    --brand-green-3: #46b2a9;
    --brand-green-4: #90c0d2;

    /* Brand Colors - Reds */
    --brand-red: #ffa4a4;
    --brand-red-2: #ffebeb;
    --brand-red-3: #db6a6a;

    /* Neutrals */
    --app-grey-1: #939e9b;
    --app-grey-2: #d9d9d9;
    --app-grey-3: #f5f5f5;
    --brand-black: #000000;
    --brand-white: #ffffff;
    --app-background: #FBFFFE;
    --text-dark: #1b1f23;

    /* Legacy mappings for compatibility */
    --primary-color: var(--brand-primary);
    --primary-dark: var(--brand-green-2);
    --background: var(--brand-white);
    --background-alt: var(--app-grey-3);
    --border-color: var(--app-grey-2);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-image {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.app-name {
    margin-bottom: 1rem;
}

.hero-logo {
    height: 4rem;
    width: auto;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Research Badge */
.research-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-green-2) 0%, var(--brand-green-3) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.badge-icon {
    font-size: 1.1rem;
}

.store-badges {
    margin-top: 2rem;
}

.badges-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-badge {
    display: block;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 168px;
    height: 50px;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge img {
    height: 50px;
    width: 168px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.store-badge:hover img {
    opacity: 0.9;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    filter: drop-shadow(0 20px 50px rgba(192, 255, 238, 0.3));
    animation: float 6s ease-in-out infinite;
}

.phone-mockup img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    max-height: 600px;
    object-fit: contain;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--background);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--background);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(192, 255, 238, 0.05), rgba(192, 255, 238, 0.02));
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Info Section (Before You Start) */
.info-section {
    padding: 80px 0;
    background: var(--background-alt);
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.info-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.info-content a {
    color: var(--brand-green-3);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-content a:hover {
    color: var(--brand-green-2);
    border-bottom-color: var(--brand-green-2);
}

/* Disclaimer Box */
.disclaimer-box {
    background: var(--brand-red-2);
    border: 2px solid var(--brand-red);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 700px;
}

.disclaimer-box h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.disclaimer-box p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.disclaimer-box .disclaimer {
    text-align: left;
    border-top: 1px solid var(--brand-red);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

/* Research page specific - no border line */
.disclaimer-box.no-line .disclaimer {
    border-top: none;
    padding-top: 0;
}

.disclaimer-box .disclaimer strong {
    color: var(--brand-red-3);
    font-weight: 600;
}

/* Research Page Styles */
.hero-small {
    min-height: auto;
    padding: 120px 0 60px;
}

.hero-text.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    padding: 60px 0;
}

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

.intro-box {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.result-indicator {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.result-indicator.low {
    background: var(--brand-green-2);
    color: var(--text-dark);
}

.result-indicator.medium {
    background: var(--brand-green-4);
    color: var(--text-dark);
}

.result-indicator.high {
    background: var(--brand-red-3);
    color: var(--text-dark);
}

.result-card p {
    margin-bottom: 0;
    flex: 1;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reference-item:hover {
    background: var(--brand-white);
    border-color: var(--brand-green-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.reference-content {
    flex: 1;
}

.reference-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.reference-authors {
    font-size: 0.95rem;
    color: var(--app-grey-1);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.reference-journal {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.reference-journal em {
    font-style: italic;
}

.reference-icon {
    color: var(--brand-green-3);
    font-size: 1.2rem;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.reference-item:hover .reference-icon {
    opacity: 1;
}

/* Ensure no underline on reference links */
a.reference-item,
a.reference-item:hover,
a.reference-item:focus,
a.reference-item:active {
    text-decoration: none !important;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--brand-green-4);
    color: var(--brand-white);
}

.footer-content {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--app-grey-3);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--brand-green-3);
    transform: translateY(-3px);
}

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

.footer-links a {
    color: var(--app-grey-3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.7rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--app-grey-3);
}

.copyright a {
    color: inherit;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-name {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .badges-row {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .phone-mockup img {
        max-width: 250px;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
    }
}

/* Legal Content Pages (Privacy Policy, Terms of Service) */
.legal-content {
    padding: 80px 0;
    min-height: calc(100vh - 400px);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-top: 20px;
}

.legal-content .last-updated {
    color: var(--app-grey-1);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-content ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.legal-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.legal-content a {
    color: var(--brand-green-2);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--brand-green-3);
    text-decoration: underline;
}

/* Responsive design for legal content */
@media (max-width: 768px) {
    .legal-content {
        padding: 60px 0;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content h4 {
        font-size: 1.1rem;
    }
}

/* FAQ */
.faq-accordion {
    margin-top: 2rem;
}

details.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

details.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

summary.faq-question {
    background-color: var(--background-alt);
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
    list-style: none; /* Remove default marker */
}

/* Hide default disclosure triangle across browsers */
summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::marker {
    display: none;
}

summary.faq-question:hover {
    background-color: var(--app-grey-2);
}

details[open] summary.faq-question {
    background-color: var(--brand-green-2);
    color: var(--text-dark);
}

.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--brand-green-3);
    transition: transform 0.3s ease, color 0.3s ease;
}

details[open] summary.faq-question .faq-icon {
    transform: rotate(45deg);
    color: var(--text-dark);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    background-color: var(--brand-white);
    transition: grid-template-rows 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 25px;
}

.faq-answer > * {
    min-height: 0;
}

details[open] .faq-answer {
    grid-template-rows: 1fr;
    padding: 20px 25px;
}

details.closing .faq-answer {
    grid-template-rows: 0fr;
    padding: 0 25px;
}

details.closing summary.faq-question {
    background-color: var(--background-alt);
    color: var(--text-dark);
}

details.closing summary.faq-question .faq-icon {
    transform: rotate(0deg);
    color: var(--brand-green-3);
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}
