#modules {
    scroll-margin-block-start: 86px;
}

.module-section {
    padding: 72px clamp(24px, 6vw, 90px);
    border-block-start: 1px solid var(--line);
    background: var(--paper);
}

.module-section .section-kicker {
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
}

.module-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
    gap: 24px 48px;
    margin-block-start: 20px;
}

.module-heading > *,
.module-card,
.guide-banner > *,
.module-faq details {
    min-width: 0;
}

.module-heading h2 {
    max-inline-size: 24ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.module-heading h2 em {
    color: var(--green);
    font-style: normal;
}

.module-heading p,
.module-card p,
.module-card li,
.guide-banner p,
.module-faq p {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.module-heading p {
    max-inline-size: 58ch;
    color: #526a60;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-block-start: 36px;
}

.module-card {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 2.3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
}

.module-card-core {
    border-color: #a7cdb9;
    background: linear-gradient(150deg, #eaf6ee, #f8fcf8);
}

.module-label {
    display: block;
    color: #267154;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
    letter-spacing: .03em;
}

.module-card h3 {
    margin-block: 16px 12px;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
}

.module-card p,
.module-card li {
    color: #526a60;
}

.module-card ul {
    display: grid;
    gap: 10px;
    margin-block: 22px;
    padding-inline-start: 20px;
}

.module-card li::marker {
    color: var(--green);
}

.module-card .module-note {
    margin-block-start: auto;
    padding-block-start: 16px;
    border-block-start: 1px solid #d8e5dc;
    color: #3f5f50;
    font-size: 14px;
    line-height: 1.8;
}

.guide-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-block-start: 32px;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid #214f3f;
    border-radius: 18px;
    color: #fff;
    background: #0b3026;
}

.guide-banner small {
    color: var(--lime);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
}

.guide-banner h3 {
    margin-block: 10px;
    font-size: clamp(19px, 1.9vw, 24px);
    font-weight: 650;
    line-height: 1.4;
    text-wrap: balance;
}

.guide-banner p {
    max-inline-size: 78ch;
    color: #d0dfd6;
}

.guide-banner .button-ghost {
    flex-shrink: 0;
    min-block-size: 46px;
    max-inline-size: 100%;
    padding: 12px 20px;
    border-color: #739b87;
    color: #fff;
    background: transparent;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    white-space: normal;
}

.guide-banner .button-ghost:hover {
    border-color: var(--lime);
    background: #184535;
    transform: none;
}

.module-faq {
    display: grid;
    gap: 14px;
    margin-block-start: 32px;
}

.module-faq details {
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
}

.module-faq summary {
    padding-block: 19px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.module-faq summary::marker {
    color: var(--green);
}

.module-faq details[open] summary {
    color: #136946;
}

.module-faq p {
    max-inline-size: 100ch;
    padding-block-end: 22px;
    color: #526a60;
}

.module-section a:focus-visible,
.module-faq summary:focus-visible {
    border-radius: 5px;
    outline: 3px solid var(--green);
    outline-offset: 5px;
}

.guide-banner a:focus-visible {
    outline-color: var(--lime);
}

.product-stage > .preview-note {
    position: relative;
    min-width: 0;
    min-block-size: 40px;
    margin-block: 18px 0;
    padding-block-start: 22px;
    color: #586e63;
    font-size: 12px;
    line-height: 1.8;
    text-align: start;
    overflow-wrap: anywhere;
}

/* Keep the floating trace over the dashboard, not over its new caption. */
.product-stage:has(> .preview-note) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.product-stage:has(> .preview-note) > .dashboard-shell {
    grid-area: 1 / 1;
}

.product-stage:has(> .preview-note) > .stock-card {
    max-inline-size: min(100%, 280px);
}

.product-stage:has(> .preview-note) > .stock-card b {
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-stage:has(> .preview-note) > .trace-card {
    position: relative;
    inset: auto;
    inset-inline-end: -8px;
    grid-area: 1 / 1;
    align-self: end;
    justify-self: end;
    margin-block-end: -24px;
}

.product-stage > .preview-note {
    grid-area: 2 / 1;
}

html[dir="rtl"] .module-heading h2,
html[dir="rtl"] .module-card h3,
html[dir="rtl"] .guide-banner h3 {
    line-height: 1.6;
    letter-spacing: 0;
}

html[dir="rtl"] .module-label,
html[dir="rtl"] .module-section .section-kicker {
    letter-spacing: 0;
}

@media (max-width: 900px) {
    .module-heading,
    .module-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .module-heading h2 {
        max-inline-size: 26ch;
    }

    .guide-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .guide-banner .button {
        align-self: flex-start;
    }
}

@media (max-width: 720px) {
    #modules {
        scroll-margin-block-start: 76px;
    }

    .module-section {
        padding: 56px 22px;
    }

    .module-grid {
        margin-block-start: 28px;
    }

    .module-heading p,
    .module-card p,
    .module-card li,
    .guide-banner p,
    .module-faq p {
        font-size: 14px;
    }

    .module-faq details {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-section .button {
        transition: none;
        transform: none;
    }
}
