/* pattern-system.css (viewport‑only sizing) */

/* Base (mobile-first) */
.main-content {
    max-width: 95vw;
    padding: 2vh 3vw 0vh 9vw;
    flex-grow: 1;
    margin: 0;
}

.grid-demo-section {
    max-width: 95vw;
    padding: 0vh 3vw 6vh 9vw;
    flex-grow: 1;
    margin: 0;
}

.content-text p,
.summary-text p {
    font-family: 'Inter', sans-serif;
    font-size: 2.5vh;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Grid Demo Section */
.grid-demo-container {
    display: flex;
    align-items: flex-start;
    gap: 0vw;
    margin-bottom: 0vh;
}
.grid-text {
    flex: 1;
}
.demo-title {
    font-family: 'Inter', sans-serif;
    font-size: 4vw;
    font-weight: 500;
    line-height: 1.4;
    margin: 4vh 5vw 1vh 0;
}
.demo-description {
    font-family: 'Inter', sans-serif;
    font-size: 2vw;
    font-weight: 500;
    line-height: 1.2;
    margin: 2vh 6vw 1vh 0;
    color: #666;
}
.grid-visual {
    flex-shrink: 0;
    width: 50vw;
    display: flex;
}
.grid-video {
    width: 50vw;
    background-color: white;
}

.summary-text {
    margin-top: 2vh;
}

/* Gray Section */
.gray-section {
    background-color: #F6F7D2;
    width: 100vw;
    padding: 4vh 1vw;
}
.gray-content {
    max-width: 95vw;
    margin: 0;
    padding: 0 8vw;
}
.section-header {
    margin-bottom: 3vh;
}
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 2vh;
    font-weight: 500;
    color: #ff0000;
    display: block;
    margin-bottom: 2vh;
}

/* Level Container */
.level-container {
    display: flex;
    align-items: flex-start;
    gap: 6vw;
}
.level-visual {
    flex-shrink: 0;
    width: 30vw;
    height: 30vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.level-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.level-content {
    flex: 1;
}
.level-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3vh;
}
.level-title {
    font-family: 'FormaTextTest', 'Inter', sans-serif;
    font-size: 4vw;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}
.level-arrow {
    background: #e0e0e0;
    border: none;
    padding: 1vh 2vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-icon {
    width: 6vw;
    height: 2.5vh;
}
.level-arrow:hover {
    background: #ccc;
}
.level-description {
    font-family: 'Inter', sans-serif;
    font-size: 3vw;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* iPhone (small screens) */
@media (max-width: 600px) {
    .main-content {
        padding: 2vh 2vw 0 8vw;
        max-width: 98vw;
    }
    .grid-demo-section {
        padding: 0 2vw 4vh 8vw;
    }
    .grid-demo-container {
        flex-direction: column;
        gap: 4vh;
        margin-bottom: 4vh;
    }
    .grid-visual {
        width: 80vw;
    }
    .grid-video {
        width: 80vw;
    }
    .demo-title {
        font-size: 6vw;
        margin: 3vh 0;
    }
    .demo-description {
        font-size: 4vw;
        margin: 3vh 0;
    }
    .level-container {
        flex-direction: column;
        gap: 4vh;
    }
    .level-visual {
        width: 60vw;
        height: 60vw;
    }
    .level-title {
        font-size: 8vw;
    }
    .level-description {
        font-size: 5vw;
    }
}

/* Desktop (large screens) */
@media (min-width: 1200px) {
    .main-content {
        max-width: 60vw;
        padding: 4vh 5vw;
    }
    .grid-demo-section {
        max-width: 60vw;
        padding: 2vh 5vw 6vh 5vw;
    }
    .grid-demo-container {
        gap: 8vw;
    }
    .grid-visual {
        width: 40vw;
    }
    .grid-video {
        width: 40vw;
    }
    .demo-title {
        font-size: 3vw;
        margin: 4vh 2vw 1vh 0;
    }
    .demo-description {
        font-size: 1.8vw;
        margin: 4vh 2vw 1vh 0;
    }
    .level-container {
        gap: 4vw;
        width: 50vw;
    }
    .level-visual {
        width: 20vw;
        height: 20vw;
    }
    .level-title {
        font-size: 2.5vw;
    }
    .level-description {
        font-size: 1.8vw;
    }
    .arrow-icon {
    width: 2vw;
    height: 2.5vh;
}
}
