/* Define the color palette (Required for all styles to work) */
:root {
    --color-primary-red: #f5444e; /* Primary CTA Color, Bold Text Color */
    --color-secondary-pink: #ffc7ed; /* Light Background Accent */
    --color-accent-blue: #002cfc; /* Scoreboard/Pattern Accent */
    --color-accent-yellow: #f7dd24; /* Strong Border/Stroke Color */
    --color-dark: #333;
    --color-light-bg: #fff8fc; /* Very light tint of secondary pink for body */
    --color-soft-bg: #f9e3f4; /* Slightly deeper tint of secondary pink for section backgrounds */
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    /* Ensures content starts below the fixed header */
    padding-top: 95px; 
    background-color: var(--color-light-bg); 
    color: var(--color-dark);
}

h1, h2, h3 {
    font-weight: 800;
    color: var(--color-dark); 
}

/* Highlighted text uses the fun handwriting font */
strong {
    font-family: 'Shadows Into Light', cursive;
    font-weight: 400;
    font-size: 1.1em;
    color: var(--color-primary-red);  
    text-decoration: none; 
}

/* Layout Container for Content */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wrapper for legal/about pages (left-aligned text) */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 80px 20px; 
    text-align: left;
}

/* General Link Styling with Primary Red */
a {
    color: var(--color-primary-red);
    text-decoration: none;
    padding: 0; /* Removed default padding for inline links */
    font-weight: 700;
}
/* Specific Link Styling for Header/Footer to keep necessary padding */
header nav a, footer a {
    padding: 5px 10px;
}

/* --- Header Styles (Top Menu Bar) --- */
header {
    position: fixed;
    top: 0;
    left: 50%; 
    transform: translateX(-50%); 
    max-width: 900px; 
    width: 100%; 
    background-color: white; 
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; 
    border-bottom: 3px solid var(--color-primary-red); 
}

header a:first-child {
    padding: 0;
}

header img {
    height: 60px; 
    width: auto;
    vertical-align: middle;
}

header nav a {
    margin-left: 20px;
    font-weight: 700;
}

/* Download App Button */
header nav a:last-child {
    background-color: var(--color-primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--color-dark); 
    transition: all 0.1s ease;
}
header nav a:last-child:hover {
    box-shadow: 0 2px 0 var(--color-dark);
    transform: translateY(2px);
}

/* --- Hero Section Styles --- */
#hero-section {
    background-color: var(--color-secondary-pink); 
    color: var(--color-dark);
    padding: 50px 20px;
    max-width: 900px;
    margin: 20px auto 40px auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border-radius: 16px;
    overflow: hidden; 
    border: 3px solid var(--color-accent-yellow);
}

#hero-section h1 {
    font-size: 2.5em;
    line-height: 1.1;
}

#hero-text {
    flex: 1; 
    max-width: 60%; 
}

#hero-image {
    flex-shrink: 0;
    max-width: 300px; 
    text-align: right;
}

#hero-image img {
    max-width: 100%; 
    height: auto;
    display: block;
    border-radius: 16px; 
}

/* Main CTA Button */
#hero-text p a {
    background-color: var(--color-primary-red);
    color: white;
    font-weight: 700;
    padding: 12px 25px; 
    border-radius: 12px;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.2s;
    box-shadow: 0 6px 0 var(--color-accent-blue); 
}
#hero-text p a:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--color-accent-blue);
}

/* --- Features Section Styles --- */
#features-section {
    padding: 20px 0 60px 0;
    text-align: center;
}

#features-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--color-primary-red);
}

/* CSS Grid for 2x2 layout */
#card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); 
    text-align: center;
    min-height: 250px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #eee;
}

.feature-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: var(--color-soft-bg); 
    border: 2px dashed var(--color-accent-yellow);
}

.feature-card p {
    font-size: 0.95em;
    font-weight: 500;
    min-height: 50px;
}

/* --- Scoreboard Section (Now How-To) --- */
#scoreboard-section {
    padding: 60px 20px;
    background-color: var(--color-soft-bg); 
    border-radius: 16px;
    margin-top: 40px;
    text-align: center;
}

#scoreboard-section h2 {
    color: var(--color-accent-blue);
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 var(--color-dark);
    font-size: 2em; 
}

.process-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: left;
    padding: 0 40px;
}
.process-list div {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
    position: relative;
    padding-left: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    min-height: 100px; 
}

.process-list div:before {
    content: attr(data-step);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: 800;
    color: white;
    background-color: var(--color-primary-red);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 var(--color-dark); 
}

.privacy-note {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--color-secondary-pink);
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--color-dark);
    border: 2px solid var(--color-accent-yellow);
    display: inline-block;
}

/* --- CTA Section Styles --- */
#cta-section {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 16px;
    margin-top: 40px;
    border: 1px solid #eee;
}

#cta-section h2 {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--color-primary-red);
}

#cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#app-store-button {
    padding: 0;
    display: inline-block;
}

#app-store-button img {
    height: 50px; 
    width: auto;
    vertical-align: middle;
}

/* --- Footer Styles --- */
footer {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--color-secondary-pink);
    padding: 30px 20px;
    text-align: center;
    /* Ensure it stays below the content */
    clear: both; 
}

footer a {
    margin: 0 10px;
    font-size: 0.9em;
}

/* --- New Founder Profile Styles (Grid for responsiveness) --- */
.founder-profile {
    display: grid;
    grid-template-columns: 150px 1fr; 
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
    padding: 20px;
    border: 2px solid var(--color-secondary-pink);
    border-radius: 16px;
    background-color: white;
}

.founder-photo-wrapper {
    max-width: 150px;
    margin: 0;
}

.founder-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 50%; 
    border: 4px solid var(--color-accent-yellow); 
}

.founder-info h3 {
    margin-top: 0;
    color: var(--color-primary-red);
}

.founder-info ul {
    list-style: none; 
    padding-left: 0;
    margin-left: 0;
}

.founder-info ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.founder-info ul li::before {
    content: '✓'; 
    color: var(--color-accent-blue);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Iframe Specific Styles (Completely frameless) --- */
.content-wrapper iframe {
    display: block;
    width: 100%; 
    /* Optimized height for form embedding */
    height: 1200px; 
    min-height: 900px; 
    /* Completely remove all visual framing */
    border: none; 
    border-radius: 0; 
    box-shadow: none; 
    overflow: hidden;
}

/* --- Download Page Specific Styles --- */
/* Note: These apply specifically to download.html which has minimal content */
.redirect-body {
    opacity: 0; 
    margin: 0; 
    padding: 0;
    transition: opacity 1s ease-in;
}
.redirect-body.visible {
    opacity: 1;
    padding: 20px;
    text-align: center;
    padding-top: 100px;
}

/* --- About Us Hero Image Style --- */
.about-hero-img {
    width: 100%;
    max-width: 800px; /* Limit max width on large screens */
    height: auto;
    display: block;
    margin: 20px auto 20px; /* Spacing above/below, centered */
    border-radius: 20px;
    border: 4px solid var(--color-accent-yellow);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    
    /* Header adjustments for mobile */
    header nav a:nth-child(1),
    header nav a:nth-child(2) {
        /* Hide 'About' and 'Support' links for space */
        display: none; 
    }
    
    /* General Content styling for readability */
    .content-container p, .content-container ul,
    .content-wrapper p, .content-wrapper ul {
        padding-left: 10px;
        padding-right: 10px;
    }

    #hero-section {
        flex-direction: column; 
        text-align: center;
        border-radius: 0; 
    }
    #hero-text, #hero-image {
        max-width: 100%;
        text-align: center;
    }
    #hero-image {
        margin-top: 30px;
    }
    /* Change to single column grid on mobile (1x4) */
    #card-container {
        grid-template-columns: 1fr;
    }
    #scoreboard-section .process-list {
        grid-template-columns: 1fr;
        padding: 0;
    }
    #cta-section h2 {
        font-size: 2.5em;
    }

    /* Founder Profile Mobile Styles */
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center; 
    }
    .founder-photo-wrapper {
        max-width: 150px;
        margin: 0 auto; 
    }
    .founder-info {
        text-align: left; 
    }
    .founder-info ul {
        text-align: left;
        padding-left: 0;
    }

    /* Adjust iframe height for mobile viewports */
    .content-wrapper iframe {
        height: 1100px; 
        min-height: 700px;
    }
}

/* Ensure list styles are kept for legal documents */
.content-wrapper ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}