/* Homepage product sections: native illustrative cards.
   Artwork lengths use container-relative units so each composition scales
   together, including on phones, without changing its overlap or rotation. */

.app-section .section-title,
.gms-section .section-title {
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin-bottom: 16px;
}

.app-section .section-subtitle,
.gms-section .section-subtitle {
    max-width: 100%;
    line-height: 1.55;
}

.app-section .section-subtitle { margin-bottom: 28px; }

.app-section .section-eyebrow,
.gms-section .section-eyebrow { letter-spacing: 0.12em; }

.app-left, .app-right, .gms-left, .gms-right { min-width: 0; }

/* Speaking journey list */
.app-section .bf-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--white);
}
.app-section .bf-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.app-section .bf-steps__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.app-section .bf-steps__item:nth-child(1) .bf-steps__icon { background: #F1EBFE; }
.app-section .bf-steps__item:nth-child(2) .bf-steps__icon { background: var(--purple-light); }
.app-section .bf-steps__item:nth-child(3) .bf-steps__icon { background: #3F8F86; }
.app-section .bf-steps__item:nth-child(4) .bf-steps__icon { background: var(--green); }
.app-section .bf-steps strong { display: block; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.app-section .bf-steps p { margin-top: 2px; color: rgba(255,255,255,.9); font-size: .875rem; line-height: 1.45; }

/* Shared illustration canvas */
.product-artwork {
    position: relative;
    isolation: isolate;
    width: 100%;
    container-type: inline-size;
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.35;
}
.product-artwork .bf-icon { display: block; flex-shrink: 0; }
.product-artwork .bf-fix,
.product-artwork .bf-browser,
.product-artwork .bf-quiz,
.product-artwork .bf-tag {
    position: absolute;
    background: var(--white);
    color: var(--ink);
}

/* App: square portrait, with a correction card across its lower edge. */
.app-artwork { aspect-ratio: 570 / 600; max-width: 570px; margin-inline: auto; }
.app-artwork .bf-photo {
    position: absolute;
    top: 0;
    right: 1%;
    width: 91%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5.6cqw;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 5cqw 10cqw rgba(20,4,60,.25);
}
.app-artwork .bf-fix {
    z-index: 1;
    left: 1%;
    bottom: 3%;
    width: 66%;
    padding: 3.6cqw 4cqw;
    border-radius: 4.2cqw;
    box-shadow: 0 4.8cqw 9cqw rgba(20,4,60,.30);
    transform: rotate(-3deg);
}
.app-artwork .bf-fix__label { font-size: 2.15cqw; font-weight: 800; letter-spacing: .13em; }
.app-artwork .bf-fix__label--answer { color: #817990; }
.app-artwork .bf-fix__label--better { color: var(--green-dark); }
.app-artwork .bf-fix__said { font-size: 3.35cqw; color: #6E6787; margin-top: .8cqw; }
.app-artwork .bf-fix__said del { color: #BD5D10; background: #FDEBDD; padding: 0 .8cqw; border-radius: 1cqw; }
.app-artwork .bf-fix__line { height: 1px; background: #E7DFF4; margin: 2.2cqw 0; }
.app-artwork .bf-fix__better { font-family: var(--font-display); font-size: 4cqw; font-weight: 800; margin-top: .8cqw; }
.app-artwork .bf-fix__better ins { color: var(--green-dark); text-decoration: none; }

/* Grammar: explanatory callout remains regular, readable page text. */
.gms-section .bf-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid #E3DBF6;
    border-radius: 16px;
    background: var(--white);
    font-size: .875rem;
    line-height: 1.5;
}
.gms-section .bf-note__icon { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #E7F7EE; }
.gms-section .bf-note p { color: var(--ink); margin: 0; }

/* Browser frame, floating lesson tag and tilted quiz. */
.gms-artwork { aspect-ratio: 720 / 630; max-width: 720px; margin-inline: auto; }
.gms-artwork .bf-browser {
    top: 9%;
    left: 0;
    width: 97%;
    overflow: hidden;
    border-radius: 2.8cqw;
    border: 1px solid #E6DFF5;
    box-shadow: 0 4.5cqw 9cqw rgba(50,20,110,.2);
}
.gms-artwork .bf-browser__bar { height: 5.3cqw; background: #F6F3FC; border-bottom: 1px solid #ECE6F7; display: flex; align-items: center; gap: 1cqw; padding: 0 2.2cqw; }
.gms-artwork .bf-browser__dot { flex: 0 0 1.5cqw; height: 1.5cqw; border-radius: 50%; }
.gms-artwork .bf-browser__dot:nth-child(1) { background: #F27E7E; }
.gms-artwork .bf-browser__dot:nth-child(2) { background: #F5C56B; }
.gms-artwork .bf-browser__dot:nth-child(3) { background: #6FD08F; }
.gms-artwork .bf-browser__url { margin-left: 2cqw; height: 3.1cqw; flex: 1; max-width: 46%; border-radius: 1.6cqw; background: var(--white); border: 1px solid #ECE6F7; font-size: 1.6cqw; color: #817990; display: flex; align-items: center; padding: 0 1.5cqw; white-space: nowrap; }
.gms-artwork .bf-browser img { display: block; width: 100%; height: auto; }
.gms-artwork .bf-tag {
    z-index: 2;
    top: 2%;
    right: 1%;
    display: flex;
    align-items: center;
    gap: 1.6cqw;
    padding: 1.7cqw 2.4cqw 1.7cqw 1.7cqw;
    border-radius: 2.5cqw;
    box-shadow: 0 2.5cqw 5.5cqw rgba(50,20,110,.18);
    transform: rotate(2deg);
    white-space: nowrap;
}
.gms-artwork .bf-tag__icon { flex: 0 0 5.5cqw; width: 5.5cqw; height: 5.5cqw; border-radius: 1.6cqw; background: var(--green); display: grid; place-items: center; }
.gms-artwork .bf-tag__icon svg { width: 2.5cqw; height: 2.5cqw; }
.gms-artwork .bf-tag strong { display: block; font-size: 2.1cqw; font-weight: 700; }
.gms-artwork .bf-tag span { display: block; font-size: 1.8cqw; color: var(--ink-soft); }
.gms-artwork .bf-quiz {
    z-index: 1;
    bottom: 2%;
    left: 3%;
    width: 47%;
    padding: 2.8cqw 3cqw;
    border-radius: 3.1cqw;
    box-shadow: 0 3.6cqw 7.5cqw rgba(50,20,110,.23);
    transform: rotate(-3deg);
}
.gms-artwork .bf-quiz__label { font-size: 1.8cqw; font-weight: 800; letter-spacing: .13em; color: var(--purple); }
.gms-artwork .bf-quiz__q { font-size: 2.45cqw; font-weight: 700; margin: .8cqw 0 1.65cqw; }
.gms-artwork .bf-quiz__opts { display: flex; flex-direction: column; gap: 1.1cqw; }
.gms-artwork .bf-quiz__opt { display: flex; align-items: center; gap: 1.4cqw; padding: 1.35cqw 2cqw; border-radius: 1.7cqw; border: 1px solid #E4DFEE; font-size: 2.1cqw; }
.gms-artwork .bf-quiz__opt--ok { border-color: var(--green); background: #EAF9F1; font-weight: 700; color: var(--green-dark); }
.gms-artwork .bf-quiz__opt svg { width: 2.2cqw; height: 2.2cqw; }

/* Keep product typography distinct from the main homepage hero. */
.app-bottom-cta-title, .gms-bottom-cta-title { font-weight: 800; }

@media (max-width: 900px) {
    .app-grid, .gms-grid-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .app-artwork { max-width: 520px; }
    .gms-artwork { max-width: 620px; }
    .app-section .section-title, .gms-section .section-title { font-size: clamp(1.85rem, 5vw, 2.65rem); }
}
@media (max-width: 640px) {
    .app-grid, .gms-grid-layout { gap: 24px; }
    .app-section .section-title, .gms-section .section-title { font-size: clamp(1.85rem, 7.5vw, 2.5rem); }
    .app-section .section-subtitle { margin-bottom: 22px; }
    .app-section .bf-steps { gap: 14px; }
    .app-section .bf-steps__icon { width: 36px; height: 36px; }
    .app-section .bf-steps__item { gap: 10px; }
    .app-section .bf-steps__icon svg { width: 18px; height: 18px; }
    .gms-section .bf-note { margin-top: 20px; padding: 12px; gap: 10px; }
}

@media (min-width: 1200px) {
    .app-left { align-self: start; padding-top: 12px; }
    .gms-left { align-self: start; padding-top: 48px; }
}
