/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body, html {
    width: 100%;
    max-width: 100%;
}

h1 {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-weight: bold;
}

.text h1 {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-weight: bold;
}

p {
    font-family: Inter, sans-serif;
    font-size: 25px;
    line-height: 1.5;
}

.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero-title {
    color: #E2ECFF;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 100px;
    letter-spacing: -5%;
    text-transform: uppercase;
}

.title-line {
    background: #477D4D;
    align-items: left;
    padding: 0 40px;
    color: white;
    display: inline-flex;
}

.title-line.centered {
    background: #477D4D;        
    padding: 0 40px;
    padding-left: 10%;
    color: white;
}

.hero-subtitle {
    color: white;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 25px;
    background: #477D4D;
    height: 164px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    width: fit-content;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    font-family: Inter, sans-serif;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
    background-color: white;
}

.feature-block {
    background: #F7F7F7;
    border-radius: 8px;
    overflow: hidden;
    padding: 30px;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.feature-content {
    margin-top: auto;
}

.feature-title {
    background: #C2D7FF;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: -2%;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px;
    width: fit-content;
    margin-bottom: 20px;
}

.large-number {
    font-size: 48px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    color: #222222;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 20px;
    line-height: 1.5;
    color: #222222;
}

.divider {
    border-top: 1px solid #211F20;
    margin: 20px 0;
}

/* ===== BANK MARQUEE ===== */
.bank-marquee {
    overflow: hidden;
    background: white;
    padding: 70px 0;
    margin: 40px 0;
    position: relative;
}

.bank-marquee img {
    height: 100px;
    object-fit: contain;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    gap: 50px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== SECTION STYLES ===== */
.section h1 {
    font-size: clamp(36px, 5vw, 80px);
    margin-left: 30px;
    line-height: 1.2;
    color: green;
}

.section h2 {
    font-size: clamp(18px, 3vw, 30px);
    margin-left: 30px;
    margin-top: 10px;
}

/* ===== TITLE SECTION ===== */
.title-section {
    width: 95%;
    padding: 40px;
}

.section-title {
    font-family: Inter, Sans Serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 130%;
    letter-spacing: -5%;
    text-align: left;
    text-transform: uppercase;
}

.title-gray {
    color: #747474;
}

.screenshot {
    max-width: 80%; 
    height: auto;
    display: block;
    margin: 0 auto;
}


/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 40px;
}

.section-header {
    font-family: Inter;
    font-weight: 500;
    font-size: 48px;
    line-height: 130%;
    letter-spacing: -2%;
    text-transform: uppercase;
    margin: 0;
    padding: 40px 0;
}

.collapsible-blocks {
    display: flex;
    width: 50%;
    margin-left: auto;
    flex-direction: column;
    gap: 20px;
}

.block {
    border: none;
    border-bottom: 1px solid #E5E5E5;
}

.block-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-header h3 {
    margin: 0;
    font-family: Inter;
    font-weight: 500;
    font-size: 30px;
    flex: 1;
    margin-right: 10px;
}

.block-content {
    display: none;
    padding: 0 20px 20px;
    font-family: Inter, sans-serif;
    line-height: 1.6;
    color: #333;
}

.block.active .block-content {
    display: block;
}

.block.active .toggle-icon {
    content: "-";
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: #477D4D;
    padding: 40px;
    margin-top: 40px;
    color: white;
}

.about-title {
    font-family: Inter;
    font-weight: 500;
    font-size: 48px;
    line-height: 130%;
    max-width: 60%;
    letter-spacing: -5%;
    text-transform: uppercase;
    margin: 0;
    padding: 0 0 60px 0;
    color: white;
}

.about-text {
    font-family: Inter;
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.team-images {
    display: flex;
    gap: 20px;
}

.team-images img {
    height: 80px;
    width: 80px;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: 40px;
}

.pricing-option {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-left: 40px;
}

.pricing-option:last-child {
    margin-top: 40px;
}

.pricing-title {
    width: 200px;
    flex-shrink: 0;
}

.pricing-title h2 {
    font-size: 30px;
    font-family: Inter, sans-serif;
}

.pricing-description {
    flex-grow: 1;
    padding-left: 200px;
}

.pricing-separator {
    width: 100%;
    height: 1px;
    background: #E5E5E5;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 40px;
    font-family: Inter, sans-serif;
}

.features-list {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.feature-block {
    margin-top: 40px;
    background: #F7F7F7;
    padding: 30px;
    flex: 1;
    border-radius: 8px;
}

@media screen and (max-width: 768px) {
    .features-list {
        flex-direction: column;
        gap: 20px;
    }

    .screenshot {
        display: block;
        margin: 0 auto;
        max-width: 80%;
        height: auto;
    }

    .feature-block {
        width: 100%;
        margin: 0;
        padding: 20px;
    }

    .feature-block h3 {
        font-size: 20px;
    }
}

.feature-block h3 {
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.collapsible-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.section-header h1 {
    margin: 0;
    font-size: 48px;
    padding: 0 !important;
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 40px;
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
}

.section-divider {
    width: 100%;
    height: 3px;
    background: #000;
    margin: 0;
}

/* ===== MOBILE AND TABLET OPTIMIZATIONS ===== */
@media screen and (max-width: 768px) {
    .about-title {
        max-width: 90%;
    }

    .hero-section {
        background-color: var(--primary-green);
        padding: 40px 15px;
        text-align: center;
    }

    .bank-marquee {
        padding: 30px 0;
    }

    .bank-marquee img {
        height: 60px;
    }

    .marquee-track {
        animation: scroll 30s linear infinite;
    }

    .hero-title {
        font-size: 48px;
        line-height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: none;
    }

    .hero-subtitle {
        font-size: 18px;
        text-align: center;
        justify-content: center;
    }

    .pricing-option {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .pricing-title {
        width: 100%;
        margin-bottom: 15px;
        flex-shrink: initial;
    }

    .pricing-title h2 {
        text-align: center;
        margin: 0 auto;
    }

    .pricing-description {
        padding-left: 0;
        text-align: center;
        width: 100%;
    }

    .pricing-description p {
        margin: 0 auto;
        max-width: 80%;
    }
}

.features-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
    background-color: white;
}

.feature-block {
    background: #F7F7F7;
    border-radius: 8px;
    overflow: hidden;
    padding: 30px;
    height: 350px;
}

.large-number {
    font-size: 48px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 20px;
    line-height: 1.5;
    color: #222222;
}

.divider {
    border-top: 1px solid #211F20;
}

.feature-title {
    background: #C2D7FF;
    font-family: Inter;
    font-weight: 500;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: -2%;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px;
    width: fit-content;
    margin-bottom: 20px;
}

.section h1 {
    font-size: clamp(36px, 5vw, 80px);
    margin-left: 30px;
    line-height: 1.2;
    color: green;
}

.section h2 {
    font-size: clamp(18px, 3vw, 30px);
    margin-left: 30px;
    margin-top: 10px;
}

.text h1 {
    white-space: nowrap;
}

.feature-block {
    display: flex;
    flex-direction: column;
}

.feature-content {
    margin-top: auto;
}

/* ===== MOBILE OPTIMIZATION STYLES ===== */
@media screen and (max-width: 768px) {
    /* Features Grid */
    .features-grid {
        width: auto;
        margin: 0;
        overflow: hidden;
    }
    
    .feature-block {
        width: auto;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }

    /* Hero Section */
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .title-line, .title-line.centered {
        padding: 0 15px;
        width: auto;
        display: block;
    }

    .hero-subtitle {
        font-size: 18px;
        height: auto;
        padding: 20px 0;
        text-align: center;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .feature-block {
        height: auto;
        padding: 20px;
    }

    .feature-title {
        font-size: 22px;
        line-height: 24px;
        width: 100%;
    }

    .section-content {
    margin-top: 30px;
    }

    /* Bank Marquee */
    .bank-marquee {
        padding: 30px 0;
    }

    .bank-marquee img {
        height: 60px;
    }

    .marquee-track {
        animation: scroll 30s linear infinite;
    }

    /* How It Works Section */
    .collapsible-blocks {
        width: 100% !important;
        margin: 0;
    }

    /* Mission Statement Section */
    #about {
        height: auto;
        padding: 30px 20px;
    }

    #about h1 {
        line-height: 1.3;
    }

    #about p {
        font-size: 16px;
    }

    /* Pricing Section - h2 sizing handled by base.css */
    #pricing h2 {
        font-family: Inter, sans-serif;
    }

    div[style*="background: #F7F7F7; flex: 1;"] {
        margin-bottom: 15px;
    }

    /* Additional spacing refinement */
    .hero-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Make sure content doesn't overflow viewport */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
}

/* ===== SMALLER MOBILE DEVICES ===== */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .feature-block {
        padding: 15px;
    }

    .large-number {
        font-size: 32px;
    }

    .bank-marquee img {
        height: 60px;
    }

    .marquee-track {
        animation: scroll 30s linear infinite;
    }

    .feature-text {
        font-size: 16px;
    }

    #about p {
        font-size: 14px;
    }

    div[style*="background: #F7F7F7; padding: 30px; flex: 1;"] {
        padding: 15px !important;
    }
}
