/* --- Variables & Core Reset --- */
:root {
    --brand-purple: #7844ff; /* From storyproc logo/nav */
    --brand-lavender: #b599ff;

    --brand-purple-dark: #5B2ED6;
    --charcoal: #2C225A;

    --navy: #1A1A2E;
    --slate: #444444;
    --light-gray: #F8F9FA;
    --border-color: #BBBBBB;
    --font-serif: "Georgia", serif;
    --font-sans: "Arial", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-serif);
    line-height: 1.6;
    color: var(--slate);
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 15px; font-weight: normal; color: var(--charcoal)}
h2 { font-size: 1.8rem; font-style: italic; margin: 20px 0 10px; font-weight: normal; color: var(--brand-purple);} /* Reduced margin */
h3 { font-family: var(--font-sans); font-size: 1.4rem; letter-spacing: 3px; text-transform: uppercase; font-weight: bold; color: var(--brand-purple-dark);}

p { margin-bottom: 1rem; font-size: 1.15rem; } /* Reduced paragraph gap */

/* --- Header & Nav (Matched to image_f0c3bb.png) --- */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px; /* Adjusted based on nav height */
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--brand-purple-dark); /* Matched to storyproc branding */
    font-family: var(--font-sans);
    font-weight: normal;
    font-size: 1rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--brand-lavender);
}

.btn-nav {
    border: 1px solid var(--brand-purple-dark);
    padding: 8px 15px;
    border-radius: 4px;
}

/* --- Content Blocks & Spacing --- */
.content-block { padding: 20px 0; } /* Reduced vertical whitespace */
.hero { padding: 40px 0 20px; background: #fff; } /* Reduced hero gap */

.intense-quote {
    margin: 30px 0; /* Reduced margin */
    padding: 30px;
    border-top: 1px solid var(--brand-purple-dark);
    border-bottom: 1px solid var(--brand-purple-dark);
    text-align: center;
    color: var(--brand-purple);
    font-size: 1.4rem;
    font-style: italic;
}

.mechanism-block { padding: 30px 0; background-color: var(--light-gray); }
.mechanism-card { 
    margin-top: 20px; 
    padding: 30px; 
    background: #fff; 
    border: 1px solid var(--border-color); 
}

/* Simplified & Unified Footer Styles */
.site-footer {
    background: var(--navy); /* #1A1A2E */
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-simple-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
    margin-bottom: 15px;
}

.footer-nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    font-family: var(--font-sans); /* Unified to Arial */
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: var(--brand-lavender); /* #b599ff */
}

.footer-bottom p {
    font-family: var(--font-sans); /* Fix from serif to sans-serif */
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* --- Page Links --- */
.page-links { margin-top: 25px; }
.PageLink a { 
    font-family: var(--font-sans); 
    font-weight: normal; 
    color: var(--brand-purple); 
    text-decoration: none; 
}

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .site-header .container { flex-direction: column; gap: 15px; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
}

/* UX Improvements */
.ux-section { 
    padding: clamp(40px, 8vw, 40px) 0; /* Shrinks on mobile, grows to 60px on PC */
}

.alt-bg { background-color: #F7F5FC; }

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ux-callout {
    background: var(--brand-purple);
    color: white;
    padding: 30px;
    border-radius: 8px;
    font-family: var(--font-sans);
}

.ux-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.ux-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cta-box {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border: 2px solid var(--brand-purple-dark);
    text-align: center;
}

@media (max-width: 768px) {
    .grid-two-col, .ux-card-grid { grid-template-columns: 1fr; }
}

/* --- UI/UX Refinements --- */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--brand-purple);
    margin-bottom: 10px;
    font-weight: bold;
}

.lead-in {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: bold;
    color: var(--brand-purple-dark);
    margin-bottom: 20px;
}

.readable-width {
    max-width: 750px;
}

/* Section 2: Problem Layout */
.grid-problem, .grid-promised {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: flex-start;
    margin-bottom: 40px;
}

.ux-callout-soft {
    background: #f4f0ff; /* Soft lavender instead of hard purple */
    border-left: 4px solid var(--brand-purple);
    color: var(--navy);
    padding: 20px;
    border-radius: 4px;
    font-family: var(--font-sans);
}

.spaced-text {
    margin-top: 20px;
    line-height: 1.8;
}

/* Section 3: Downplayed Mechanism */
.mechanism-sub {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.sub-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 20px;
    text-align: left;
}

.ux-card-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* --- Updated Mechanism Card Styling --- */
.ux-card-mini {
    width: 90%; /* Spans the middle 80% */
    margin: 30px auto; /* Centers the card and adds vertical spacing */
    padding: 25px;
    background: #fafafa;
    border: 1px solid #eee;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.ux-card-mini:hover { transform: translateY(-2px); }

/* Section 4: Promised Land */
.outcome-list ul {
    list-style: none;
    padding-left: 0;
}

.outcome-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: normal;
}

@media (max-width: 768px) {
    .grid-problem, .grid-promised, .ux-card-grid-small {
        grid-template-columns: 1fr; /* Stacks columns vertically */
        gap: 20px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .ux-callout-soft {
        width: 100%; /* Ensures the callout takes full width on mobile */
    }

    .footer-simple-grid {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-nav-links a {
        margin: 0 10px;
    }

    .ux-card-mini {
        width: 100%; 
    }

    .site-header .container { 
        flex-direction: column; 
        gap: 15px; 
    }
    .main-nav ul { 
        gap: 15px; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
}

.narrative-image {
    margin: 30px 0;
    width: 100%;
    max-width: 1100px; /* Centers and prevents images from becoming too large on PC */
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Adds a subtle lift to your dark screenshots */
}

@media (max-width: 1024px) {
    .main-nav a {
        font-size: 0.9rem; /* Slightly smaller font for mid-size screens */
    }
}

/* Mid-size screen adjustment */
@media (max-width: 1100px) {
    .main-nav ul {
        gap: 12px;
    }
    .main-nav a {
        font-size: 0.9rem;
    }
}
