:root {
    /* LIGHT MODE (Default) */
    --bg: #ffffff;
    --ink: #111111;
    --brand: #2979FF;
    --muted: #666666;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.05);
    --highlight: rgba(255, 255, 255, 0.8);

    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

[data-theme="dark"] {
    /* DARK MODE */
    --bg: #0a0a0a;
    --ink: #ffffff;
    --brand: #448aff;
    /* Slightly lighter blue for contrast */
    --muted: #a0a0a0;
    --surface: #1a1a1a;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    --highlight: rgba(255, 255, 255, 0.05);
}

/* Explicit Overrides to ensure dark mode works */
[data-theme="dark"] .tier-card,
[data-theme="dark"] .goal-card,
[data-theme="dark"] .split-card,
[data-theme="dark"] .mini-card,
[data-theme="dark"] .metric-container {
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1);
}

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

html,
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT --- */
.screen {
    display: flex;
    flex-direction: column;
    position: relative;
}

.wrap {
    width: min(1120px, 90%);
    margin: 0 auto;
}

/* NAV */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 12px 12px;
}

/* Home Page Specific: Nav starts hidden */
.home nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}

.home nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    /* Intentionally larger */
    text-decoration: none;
    color: var(--ink);
}

.brand-mi {
    color: var(--brand);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-cta {
    background: var(--ink);
    color: var(--bg);
    /* Adapts to theme (White on Black / Black on White) */
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity .2s;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* BANNER */
.banner {
    background-color: #FFEE8C;
    color: #111111;
    /* Always black text on yellow */
    text-align: center;
    font-size: 14px;
    font-weight: 500;

    /* Animation: Start Hidden */
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    animation: bannerReveal 0.5s ease-out 1s forwards;
}

.home .banner {
    animation-delay: 3.5s;
}

@keyframes bannerReveal {
    to {
        max-height: 60px;
        /* Enough for 1-2 lines */
        padding: 8px;
        opacity: 1;
    }
}

/* About Page Specific Banner Logic (Handled by JS) */
.about-page .banner {
    animation: none;
    max-height: 0;
    padding: 0;
    opacity: 0;
    transition: all 0.5s ease-out;
}

.about-page .banner.visible {
    max-height: 60px;
    padding: 8px;
    opacity: 1;
}

.banner a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* HERO */
.hero {
    flex: 1;
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
    /* Context for absolute image */
    overflow: hidden;
    /* Hide if image bleeds */
}



.hero-content {
    max-width: 900px;
    opacity: 0;
    position: relative;
    z-index: 1;
    /* transition removed for JS loop control */
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(50px, 7.5vw, 100px);
    /* Increased by ~25% */
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* The Gap where AI goes */
.ai-placeholder {
    display: inline-block;
    width: auto;
    color: transparent;
    user-select: none;
}

.subhead {
    margin-top: 24px;
    font-size: 25px;
    /* Increased from 20px */
    color: var(--muted);
    max-width: 600px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-block;
    margin-top: 32px;
    padding: 18px 36px;
    /* Increased padding */
    background: var(--brand);
    /* Updated to Brand Blue */
    color: #fff;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    /* Increased from 16px */
    transition: all 0.2s;
}

.btn-hero:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- WHY EXIST SECTION --- */
.why-exist {
    background-color: rgba(41, 121, 255, 0.08);
    min-height: 30vh;
    padding: 24px 0 24px 0;
    margin-top: 0;

    /* --- BOX REVEAL --- */
    /* Initial Hidden State: Box starts lower and invisible */
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Aligns children to center */
    text-align: center;
}

.typing-cursor {
    display: inline-block;
    width: 0.6ch;
    /* responsive width */
    height: 1em;
    background-color: var(--brand);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.why-exist.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    color: var(--ink);
    margin: 0 auto 20px auto;
    max-width: 800px;
    text-align: center;

    /* --- TEXT REVEAL --- */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.8s;
    /* Wait for box to be mostly in place */
}

.why-exist.visible .why-headline {
    opacity: 1;
    transform: translateY(0);
}

.why-content p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    /* Center align P */
    text-align: center;
    margin-bottom: 12px;

    /* --- SUBTEXT REVEAL --- */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1s;
    /* Sequence after headline */
}

.why-exist.visible .why-content p {
    opacity: 1;
    transform: translateY(0);
}

/* --- SECTION 2B: VALUES --- */
.values-section {
    padding: 80px 0;
    background: var(--bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    text-align: left;
}

.value-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Reveal active state for values */
.value-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-circle {
    width: 80px;
    height: 80px;
    background: rgba(41, 121, 255, 0.1);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 24px;
}

.value-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--ink);
}

.value-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

/* --- WHO WE ARE FOR --- */
/* --- WHO WE ARE FOR --- */
.who-section {
    padding: 0 0 120px 0;
    background: var(--bg);
}

.who-header {
    text-align: center;
    margin-bottom: 80px;
    /* Initial Hidden State */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.who-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.who-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.who-subtitle {
    font-size: 18px;
    color: var(--muted);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.who-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px var(--shadow);
    /* Added depth */
}

/* Initial Hidden State for Scroll Reveal */
.card-waiting {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(60px) scale(0.95);
    pointer-events: none;
}

/* Reveal Animation State */
.card-animate-enter {
    opacity: 1;
    transform: none;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.who-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.card-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    display: block;
}

.card-headline {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--ink);
}

.card-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 32px;
}

.card-body strong {
    color: var(--ink);
    font-weight: 600;
}

.card-goal {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
    margin-bottom: 24px;
    /* Added spacing for button */
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(41, 121, 255, 0.1);
    color: var(--brand);
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.card-btn:hover {
    background: var(--brand);
    color: #fff;
}

/* --- FOOTER --- */
footer {
    background: var(--ink);
    color: var(--bg);
    padding: 40px 0;
    /* Adjusted padding */
    margin-top: auto;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Grouping classes for the new HTML structure */
.footer-left {
    text-align: left;
}

.footer-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    /* Reduced to match header better */
    font-weight: 700;
    display: block;
    /* Stacked */
    margin-bottom: 4px;
    margin-right: 0;
}

.footer-cta {
    background: var(--bg);
    color: var(--ink);
    padding: 10px 24px;
    /* Slightly smaller button */
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    /* Slightly smaller text */
    display: inline-block;
    vertical-align: middle;
    transition: opacity 0.2s;
    margin-bottom: 0;
    /* Remove bottom margin */
}

.footer-cta:hover {
    opacity: 0.9;
}

.footer-copy {
    color: #666;
    font-size: 14px;
}

/* --- THE FLYER --- */
/* This element floats on top and morphs */
#flyer {
    position: fixed;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    /* IMPORTANT: Match H1 line-height */
    color: var(--ink);
    pointer-events: none;
    z-index: 9999;
    transform-origin: top left;
    /* Crucial for matrix match */
    will-change: transform;
}

/* --- MOBILE LAYOUT --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 16px 20px 20px 20px;
        gap: 20px;
        text-align: center;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 32px;
        /* Nicely sized for mobile top */
    }

    .nav-link {
        font-size: 15px;
    }

    .nav-cta {
        padding: 8px 20px;
        font-size: 14px;
    }

    .banner {
        font-size: 13px;
        /* Slightly compact banner */
    }

    .hero {
        padding-top: 25px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-visual {
        right: -100px;
        top: 20px;
        transform: none;
        opacity: 0.1;
    }

    .hero-img {
        width: 400px;
        height: auto;
    }

    /* Mobile Footer Fixes */
    /* Mobile Footer Fixes */
    footer .wrap {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    /* Unwrap .footer-left to allow reordering its children */
    .footer-left {
        display: contents;
    }

    .footer-logo {
        order: 1;
        /* First */
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .footer-right {
        order: 2;
        /* Second */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-copy {
        order: 3;
        /* Third */
        width: 100%;
        margin-top: 8px;
        opacity: 0.7;
    }

    .footer-cta {
        padding: 8px 20px;
        font-size: 14px;
        width: auto;
        flex: 0 0 auto;
    }
}

/* --- CONTACT PAGE LAYOUT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text {
    padding-right: 20px;
}

.contact-form-wrapper {
    background: var(--surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-text {
        padding-right: 0;
        text-align: center;
    }

    .subhead {
        margin: 24px auto;
        /* Center subhead on mobile */
    }
}

/* --- CONTACT FORM --- */
.contact-form {
    width: 100%;
    /* Form wrapper handles width now */
    margin-top: 0;
}

/* Success Message State */
.form-success {
    display: none;
    padding: 20px;
    background: rgba(41, 121, 255, 0.1);
    color: var(--ink);
    border-radius: 8px;
    text-align: center;
    margin-top: 24px;
    font-weight: 500;
}


.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ink);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1);
}

.form-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 8px;
}

/* --- SUPPORT PAGE --- */
.text-muted {
    color: var(--muted);
    font-size: 0.6em;
    /* Relative to H1 */
    display: block;
    margin-top: 10px;
}

.support-hero-content {
    width: 100%;
    max-width: 100%;
    /* Allow full width of wrapper */
    text-align: center;
    /* Center visuals */
}

.support-hero-content h1 {
    max-width: 100%;
    white-space: nowrap;
    /* Force one line */
    font-size: clamp(40px, 6vw, 80px);
    /* Slightly smaller max to ensure fit */
}

@media (max-width: 900px) {
    .support-hero-content h1 {
        white-space: normal;
        /* Allow wrapping on smaller screens */
    }
}

.metric-container {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.metric-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right */
    align-items: center;
    font-weight: 600;
    margin-bottom: 12px;
}

.metric-header span:nth-child(1) {
    justify-self: start;
}

.metric-header span:nth-child(2) {
    justify-self: center;
}

.metric-header span:nth-child(3) {
    justify-self: end;
}

.metric-val {
    color: var(--brand);
}

.metric-mid {
    color: var(--muted);
    /* Subtle for 0 */
}

.progress-track {
    width: 100%;
    height: 24px;
    /* Taller */
    background: var(--border);
    /* Visible in dark mode */
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--brand);
    /* Brand Blue */
    width: 0%;
    /* Inline style controls this */
    border-radius: 99px;
}

.metric-caption {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
}

.support-content-section {
    padding: 30px 0 80px 0;
    /* Moved up by 50px */
    background: var(--bg);
}

.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 112px;
    /* 3/4 of Logo Height (150px) */
}

@media (max-width: 900px) {
    .content-grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.text-block h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 24px;
}

.text-block h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 20px;
    font-family: var(--font-display);
}

.text-block p {
    font-size: 20px;
    /* Match Index "Why" text */
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
}

.text-block ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.text-block li {
    margin-bottom: 8px;
}

.text-block strong {
    color: var(--ink);
}

/* TIERS */
.tiers-section {
    padding: 80px 0 120px 0;
    background: var(--bg);
    /* Slight contrast */
}

.tiers-headline {
    text-align: center;
    font-family: var(--font-display);
    font-size: 40px;
    margin-bottom: 16px;
}

.tiers-sub {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.tier-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.featured-tier {
    border: 2px solid var(--brand);
    position: relative;
}







.hero-body p {
    margin-bottom: 24px;
}

/* New Support Page Styles */
.hero-sub {
    font-family: var(--font-display);
    /* Match headline font */
    font-size: clamp(24px, 4vw, 40px);
    /* Larger size */
    color: var(--muted);
    font-weight: 700;
    /* Bold */
    margin-top: 2px;
    /* Moved down by 10px */
    margin-bottom: 48px;
    display: block;
}

.mini-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Side by side */
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .mini-card-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.mini-card {
    background: var(--surface);
    border: 2px solid var(--brand);
    /* Pop with brand color */
    border-radius: 16px;
    padding: 32px;
    /* Bigger */
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.12);
    /* Glowy shadow */
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(41, 121, 255, 0.2);
}

.mini-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    /* Much bigger */
    margin: 0 0 12px 0;
    color: var(--brand);
    /* highlighting the key info */
    font-weight: 700;
}

.mini-card p {
    font-size: 16px;
    /* Match standard site cards */
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* --- LOGO VISUAL (Split Layout) --- */
.logo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.big-text-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(80px, 15vw, 150px);
    /* Huge responsive text */
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.04em;
}

/* --- MONEY SECTION (Centered) --- */
.money-section {
    margin-top: 80px;
    /* Space from Reality Check */
    text-align: center;
}

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

.centered-block .mini-card-grid {
    text-align: left;
    /* Keep card content left-aligned for readability */
}

/* Animate On Scroll Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Components */
.section-goal,
.section-transparency,
.section-tiers {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-tiers {
    border-bottom: none;
}

.goal-card {
    background: var(--surface);
    border-radius: 20px;
    /* Match who-card */
    padding: 64px 32px;
    text-align: center;
    border: 1px solid var(--border);
    /* Match who-card */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.goal-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Match who-card depth */
}

.goal-card h3 {
    font-size: 32px;
    margin-bottom: 32px;
    font-family: var(--font-display);
    color: var(--ink);
}

.large-track {
    height: 48px;
    border-radius: 99px;
    background: #f0f0f0;
    overflow: hidden;
    margin: 0 auto 40px auto;
    max-width: 600px;
    position: relative;
}

.goal-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--muted);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    color: var(--ink);
}

.section-header p {
    font-size: 18px;
    color: var(--muted);
}

/* Split Grid */
.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.split-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    /* Match who-card */
    text-align: center;
    border: 1px solid var(--border);
    /* Match who-card */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.split-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.split-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.split-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--ink);
}

.split-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* Tiers Grid */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tier-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    /* Match who-card */
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Match who-card */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tier-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.tier-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-display);
    color: var(--ink);
}

.tier-desc {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 15px;
}

.tier-impact {
    font-size: 14px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg);
    /* Use site bg */
    border-radius: 12px;
    width: 100%;
    color: var(--muted);
    line-height: 1.5;
}

.tier-impact strong {
    color: var(--ink);
}

.tier-btn {
    margin-top: auto;
    display: inline-block;
    padding: 12px 32px;
    background: #f0f0f0;
    color: var(--ink);
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    font-family: var(--font-body);
}

.tier-btn:hover {
    background: #e0e0e0;
}

.primary-btn {
    background: var(--brand);
    color: #fff;
}

.primary-btn:hover {
    opacity: 0.9;
    background: var(--brand);
}

.tier-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 8px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 16px;
}

.tier-card p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes button down if content varies */
}

.impact {
    background: var(--bg);
    color: var(--muted);
    font-size: 14px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.btn-tier {
    width: 100%;
    padding: 12px;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    color: #fff;
    transition: all 0.2s;
    background: var(--brand);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
}

.btn-tier:hover {
    background: #1e60cc;
    /* Darker blue */
    opacity: 1;
}



@media (max-width: 768px) {
    .content-grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- ABOUT PAGE --- */
.about-hero-content {
    max-width: 100%;
}

/* Specific About Page Hero Override */
.about-hero {
    min-height: auto !important;
    /* Remove large height constraint */
    padding-bottom: 40px;
    /* Adjust spacing */
}

.about-section {
    padding: 0 0 120px 0;
    /* Removed top padding to pull it up */
    overflow: visible;
    /* Allow image to overlap hero */
}

.about-section-blue {
    background-color: rgba(41, 121, 255, 0.08);
    /* Light blue from index */
    padding: 20px 0;
    /* Tight padding as requested */
    margin-top: -180px;
    /* Reduce gap significantly */
    position: relative;
    z-index: 0;
    /* Ensure it stays behind overlapping content if any */
    opacity: 0;
    /* Start hidden */
    transition: opacity 1s ease-out;
}

.about-section-blue.visible {
    opacity: 1;
}

.about-section-blue .about-row {
    margin-bottom: 0;
}

.about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 120px;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-content {
    flex: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--ink);
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
}

.about-content strong {
    color: var(--ink);
}

.highlight-box {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--brand) !important;
    font-weight: 700;
    margin: 32px 0;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.styled-list li {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.styled-list li::before {
    content: "•";
    color: var(--brand);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    perspective: 1000px;
}

/* Decorative Shapes */
.deco-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.05) 0%, rgba(41, 121, 255, 0.2) 100%);
}

.deco-square {
    width: 180px;
    height: 180px;
    border-radius: 32px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.08) 100%);
    transform: rotate(10deg);
}

@media (max-width: 768px) {

    .about-row,
    .about-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: center;
    }

    .about-visual {
        display: flex;
        height: auto;
        margin-bottom: 40px;
    }
}

/* --- FOUNDER IMAGE --- */
.founder-img {
    width: 400px;
    height: 400px;
    margin-top: -100px;
    /* Moves image higher up */
    border-radius: 50%;
    object-fit: cover;
    /* 3D Tilt Effect - Initial State */
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    /* Short transition for smooth mouse following */
    transition: transform 0.1s ease-out;
    /* Stronger Shadow */
    box-shadow: 30px 30px 70px rgba(0, 0, 0, 0.3),
        -20px -20px 60px var(--highlight);
    border: 4px solid rgba(41, 121, 255, 0.1);
    will-change: transform;
}

@media (max-width: 768px) {
    .founder-img {
        width: 250px;
        height: 250px;
        margin-top: 0;
    }
}

.founder-img.machine-img,
.founder-img.plant-img {
    margin-top: 0;
    /* Reset to center within blue section */
}

@keyframes gentleSway {
    0% {
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    }

    100% {
        transform: perspective(1000px) rotateY(10deg) rotateX(-5deg);
    }
}

/* Ensure visual container handles circular content well */
.about-visual {
    overflow: visible;
    perspective: 1000px;
    /* Add depth context */
}

/* --- CHECKOUT MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 400px;
    /* Ensure space for loading */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1010;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}