/* Global Mobile Resets */
@media (max-width: 900px) {
    body, html {
        font-size: 55%; /* Slightly smaller base size for mobile */
    }
    .app{
        display: block !important;
    }
    .pc{
        display: none !important;
    }
    .container {
        padding: 0 2.4rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        margin-bottom: 10rem;
    }

    /* Header & Menu */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2.4rem 0;
        margin-bottom: 2.4rem;
    }

    .mobile-menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2.4rem;
        height: 1.8rem;
        cursor: pointer;
    }

    .mobile-menu-icon span {
        display: block;
        width: 100%;
        height: 0.2rem;
        background-color: #888;
        border-radius: 0.2rem;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        gap: 3.2rem;
        text-align: left;
    }

    .hero-image {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 1.6rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 100%;
        margin-bottom: 0.8rem;
    }

    .hero h2 {
        font-size: 24px;
        margin-bottom: 3rem;
    }

    .tagline {
        font-size: 20px;
        margin-bottom: 3rem;
        font-weight: 600;
    }

    .description p{
        font-size: 18px;
        line-height: 155%;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.6rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1.6rem;
    }

    /* Technology Section */
    .technology-section {
        flex-direction: column;
        gap: 3.2rem;
        padding: 3.2rem 0;
    }

    .tech-images {
        order: -1;
        width: 100%;
    }

    .tech-content {
        width: 100%;
    }

    .tech-content h1 {
        font-size: 36px;
        margin-bottom: 2.4rem;
        font-weight: 400;
        line-height: 125%;
    }
    .tech-content p{
        line-height: 155%;
        color: var(--font000);
        font-size: 18px;
    }

    /* Forms Section */
    .forms-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.6rem;
        padding: 3.2rem 0;
        align-items: center;
    }

    .forms-center,
    .forms-image-container {
        display: contents;
    }

    /* Row 1 Left: Text */
    .forms-col.left {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        padding-right: 0.8rem;
        justify-content: center;
    }

    /* Row 1 Right: Image 1 (Filled) */
    .forms-image-group:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-self: center;
    }

    /* Row 2 Left: Image 2 (Outline) */
    .forms-image-group:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        align-items: center;
        justify-self: center;
    }

    /* Row 2 Right: Text */
    .forms-col.right {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
        padding-left: 0.8rem;
        justify-content: center;
    }

    /* Row 3: Center Text */
    .forms-center-text {
        grid-column: 1 / -1;
        grid-row: 3;
        text-align: center;
        margin-top: 2.4rem;
        font-size: 16px;
        display: block; /* Ensure it's visible */
    }
    .forms-image-wrapper{
        display: none;
    }
    .forms-center-title {
        grid-column: 1 / -1;
        grid-row: 4;
        text-align: center;
        font-size: 19px;
        margin-top: 0.8rem;
    }
    .forms-col-app{
        display: block;
    }
    .forms-col-app img{
        width: 100%;
    }

    /* Styling adjustments */
    .forms-title {
        font-size: 20px;
        margin-bottom: 3rem;
    }

    .forms-text {
        font-size: 20px;
        margin-bottom: 2.5rem;
        line-height: 155%;
    }

    /* Ensure images fit */
    .forms-image-wrapper {
        width: 100%;
        max-width: 14rem;
    }

    .forms-image-wrapper img {
        width: 100%;
        height: auto;
    }

    .device-mockup {
        width: 100%;
        max-width: 10rem;
        height: 14rem;
    }

    .device-mockup span {
        font-size: 24px;
    }
    
    .forms-image-group {
        width: 100%;
    }

    /* Features Section */
    .features-section {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .feature-card {
        /* padding: 3.2rem 2.4rem; */
        width: 100%;
    }

    /* Rhythm Section */
    .rhythm-section {
        display: flex;
        flex-direction: column;
        margin-top: 3.2rem;
        gap: 0;
    }

    .rhythm-top, .rhythm-bottom {
        display: flex;
        flex-wrap: wrap;
    }
    .rhythm-header-img{
        display: none;
    }

    /* 1. Header Info (All in one place) */
    .rhythm-header-info {
        width: 100%;
        justify-content: center;
        position: relative;
        z-index: 2;
        padding-top: 3.2rem;
    }

    .rhythm-header-title {
        font-size: 24px;
        text-align: center;
        font-weight: 400;
    }
    
    .rhythm-header-list {
        display: none; /* Simplify header info for mobile based on image? Or keep it? Image #5 shows it. */
    }
    /* Wait, image #5 shows "All in one place" and the list (Study, Books, Notes...) next to it. */
    .rhythm-header-list {
        display: flex;
        gap: 1.6rem;
    }
    .rhythm-header-divider {
        display: block;
        margin: 0 1.6rem;
        background-color: #A4978E;
        width: 1px;
    }


    /* 2. Image */
    .rhythm-image-container {
        /* order: 2;
        position: absolute;
        top: 12rem;
        left: 0;
        width: 100%;
        z-index: -1; */
        width: 100%;
        position: unset !important;
        margin-top: 1rem;
    }
    

    /* 3. Main Title */
    .rhythm-top h2 {
        font-size: 36px;
        margin-bottom: 0;
        max-width: 100%;
        text-align: left;
        border: none;
        font-weight: 400;
        line-height: 125%;
        margin-top: 3rem;
    }
    
    /* Fix for border-bottom on rhythm-top being lost with display: contents */
    .rhythm-section::after {
        content: none;
    }
    /* We need to remove the border from .rhythm-top since it's display: contents */
    .rhythm-top {
        border-bottom: none;
    }

    /* 4. List Content */
    .rhythm-content-left {
        order: 4;
        width: 100%;
        padding-top: 0;
    }

    .rhythm-subtitle {
        margin-bottom: 2.4rem;
        font-size: 20px;
    }
    .rhythm-list li{
        font-weight: 500;
        font-size: 18px;
    }
    /* Quote */
    .rhythm-quote {
        margin-top: 3.2rem;
        padding: 3.2rem 0;
        font-size: 18px;
        letter-spacing:5px;
        font-weight: 500;
    }
    .rhythm-quote span{
        margin-top: 3rem;
        display: block;
    }

    /* Membership */
    .membership-section{
        padding-bottom: 3rem;
        margin-top: 8rem;
    }
    .membership-cards {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }
    .member-card{
        padding: 4.8rem 0;
    }
    .member-card p{
        font-size: 20px;
        max-width: 80%;
        color: var(--font000);
    }

    /* Bottom CTA */
    .bottom-cta-section {
        padding: 0;
    }

    .bottom-cta-content {
        flex-direction: column;
        gap: 3.2rem;
    }

    .bottom-cta-text {
        text-align: center;
        width: 100%;
    }
    .bottom-cta-text h1{
        font-weight: 400;
    }
    .bottom-cta-text h2{
        font-size: 3.6rem;
    }
    .bottom-cta-text h3 {
        font-size: 36px;
        font-weight: 300;
    }

    /* Footer */
    .footer-logo{
        margin: auto;
        width: 6.4rem;
    }
    .copyright{
        position: unset;
    }
}
