.ret-home { overflow: clip; }
.ret-home h1, .ret-home h2, .ret-home h3 { text-wrap: balance; }
.ret-home p { text-wrap: pretty; }

.ret-home-hero { position: relative; padding: clamp(3.75rem, 7vw, 7rem) 0 clamp(3.5rem, 6vw, 6rem); background: linear-gradient(135deg, #f3f7f1 0%, #f9faf7 54%, #edf2ed 100%); border-bottom: 1px solid var(--ret-line); overflow: hidden; }
.ret-home-hero::before { content: ""; position: absolute; width: 28rem; height: 28rem; right: -7rem; top: -10rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(37,107,74,.18), rgba(37,107,74,0) 68%); pointer-events: none; }
.ret-home-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, .93fr) minmax(440px, .85fr); align-items: center; gap: clamp(2.5rem, 6vw, 6.5rem); }
.ret-home-hero__content { max-width: 690px; }
.ret-home-hero h1 { margin: .55rem 0 1.35rem; font-size: clamp(3rem, 6.1vw, 6.15rem); line-height: .94; letter-spacing: -.065em; }
.ret-home-hero__lead { max-width: 640px; margin: 0; color: var(--ret-muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.ret-home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ret-button--lg { min-height: 50px; padding-inline: 1.35rem; }
.ret-button--secondary { border-color: var(--ret-line); background: #fff; color: var(--ret-ink); }
.ret-button--secondary:hover { border-color: var(--ret-ink); background: var(--ret-ink); color: #fff; }
.ret-button--light { border-color: #fff; background: #fff; color: var(--ret-ink); }
.ret-button--light:hover { background: #dfe8e1; color: var(--ret-ink); }
.ret-home-hero__meta { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--ret-muted); font-size: .88rem; font-weight: 650; }
.ret-home-hero__meta li::before { content: ""; display: inline-block; width: .48rem; height: .48rem; margin-right: .45rem; border-radius: 50%; background: var(--ret-accent); vertical-align: .07em; }

.ret-home-hero__visual { display: grid; grid-template-columns: 1.18fr .82fr; grid-template-rows: 1fr 1fr; gap: .85rem; min-height: 520px; }
.ret-home-hero-product { position: relative; display: grid; grid-template-rows: 1fr auto auto; min-width: 0; overflow: hidden; padding: .85rem; border: 1px solid rgba(23,32,27,.1); border-radius: 1.4rem; background: rgba(255,255,255,.92); box-shadow: 0 22px 70px rgba(20,32,24,.10); color: var(--ret-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.ret-home-hero-product:hover { color: var(--ret-ink); transform: translateY(-3px); box-shadow: 0 28px 78px rgba(20,32,24,.14); }
.ret-home-hero-product.is-primary { grid-row: 1 / 3; padding: 1.15rem; }
.ret-home-hero-product__image { display: grid; place-items: center; min-height: 0; border-radius: 1rem; background: linear-gradient(145deg, #fff 0%, #f0f3ee 100%); overflow: hidden; }
.ret-home-hero-product__image img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.ret-home-hero-product.is-primary .ret-home-hero-product__image img { max-height: 390px; }
.ret-home-hero-product__name { margin-top: .8rem; font-size: .93rem; font-weight: 800; line-height: 1.25; }
.ret-home-hero-product__price { margin-top: .15rem; color: var(--ret-muted); font-size: .84rem; font-weight: 700; }
.ret-home-hero-product__price del { opacity: .55; }
.ret-home-hero-product__price ins { text-decoration: none; }
.ret-home-hero__fallback { grid-column: 1 / -1; grid-row: 1 / -1; position: relative; min-height: 500px; border-radius: 1.5rem; background: linear-gradient(145deg, #fff, #e5eee7); overflow: hidden; }
.ret-home-hero__fallback span { position: absolute; border-radius: 50%; border: 22px solid rgba(37,107,74,.13); }
.ret-home-hero__fallback span:nth-child(1) { width: 290px; height: 290px; left: 9%; top: 18%; }
.ret-home-hero__fallback span:nth-child(2) { width: 180px; height: 180px; right: 12%; top: 14%; }
.ret-home-hero__fallback span:nth-child(3) { width: 230px; height: 230px; right: 7%; bottom: -5%; }

.ret-home-trust { position: relative; z-index: 3; margin-top: -1px; background: var(--ret-ink); color: #fff; }
.ret-home-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ret-home-trust a { position: relative; display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: 1.25rem 1.4rem; color: #fff; text-decoration: none; }
.ret-home-trust a + a::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgba(255,255,255,.16); }
.ret-home-trust strong { font-size: .92rem; }
.ret-home-trust span { color: #bfc9c1; font-size: .78rem; }

.ret-home-section { padding: clamp(4.25rem, 7vw, 7rem) 0; }
.ret-home-section--tight { padding-block: clamp(3.3rem, 5vw, 5rem); }
.ret-home-section--surface { background: #fff; border-block: 1px solid var(--ret-line); }
.ret-home-section--dark { background: var(--ret-ink); color: #fff; }
.ret-home-section__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.ret-home-section__head--compact { margin-bottom: 1.55rem; }
.ret-home-section__head > div { max-width: 780px; }
.ret-home-section__head h2, .ret-home-tool h2, .ret-home-docs h2, .ret-home-faq h2, .ret-home-final-cta h2 { margin: .4rem 0 0; font-size: clamp(2rem, 4.1vw, 4.15rem); line-height: 1.02; letter-spacing: -.052em; }
.ret-home-section__head p:not(.ret-eyebrow) { margin: 1rem 0 0; color: var(--ret-muted); max-width: 660px; }

.ret-home-routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ret-line); border-radius: var(--ret-radius-lg); background: #fff; overflow: hidden; }
.ret-home-route { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .8rem; min-height: 170px; padding: 1.35rem; color: var(--ret-ink); text-decoration: none; }
.ret-home-route + .ret-home-route { border-left: 1px solid var(--ret-line); }
.ret-home-route:hover { background: var(--ret-surface-soft); color: var(--ret-ink); }
.ret-home-route__number { color: var(--ret-accent); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.ret-home-route__body { display: flex; flex-direction: column; gap: .55rem; }
.ret-home-route__body strong { font-size: 1.05rem; line-height: 1.25; }
.ret-home-route__body > span { color: var(--ret-muted); font-size: .88rem; line-height: 1.5; }
.ret-home-route__arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ret-home-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ret-home-categories:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ret-home-category { min-width: 0; overflow: hidden; border: 1px solid var(--ret-line); border-radius: var(--ret-radius-lg); background: var(--ret-bg); color: var(--ret-ink); text-decoration: none; }
.ret-home-category:hover { color: var(--ret-ink); box-shadow: var(--ret-shadow); }
.ret-home-category__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #edf1ec; }
.ret-home-category__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ret-home-category:hover .ret-home-category__media img { transform: scale(1.025); }
.ret-home-category__placeholder { position: relative; display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #e2eae3, #f8faf7); overflow: hidden; }
.ret-home-category__placeholder span { position: absolute; border-radius: 50%; border: 14px solid rgba(37,107,74,.14); }
.ret-home-category__placeholder span:nth-child(1) { width: 180px; height: 180px; left: 10%; top: 10%; }
.ret-home-category__placeholder span:nth-child(2) { width: 100px; height: 100px; right: 8%; top: 12%; }
.ret-home-category__placeholder span:nth-child(3) { width: 140px; height: 140px; right: 13%; bottom: -24%; }
.ret-home-category__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem; }
.ret-home-category__body strong { font-size: 1.2rem; }
.ret-home-category__body > span { color: var(--ret-muted); font-size: .9rem; }
.ret-home-category__body em { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--ret-accent-strong); font-size: .85rem; font-style: normal; font-weight: 800; }
.ret-home-category__body em svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ret-home-products-section { background: var(--ret-bg); }
.ret-home-products-section--best { background: #fff; border-top: 1px solid var(--ret-line); }
.ret-home-native-products.woocommerce ul.products { margin-top: 0; }
.ret-home-native-products.woocommerce ul.products li.product { background: #fff; }

.ret-home-tool-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 1rem; }
.ret-home-tool { min-width: 0; border-radius: 1.5rem; }
.ret-home-tool--calculator { position: relative; padding: clamp(2rem, 4vw, 4rem); background: var(--ret-accent); overflow: hidden; }
.ret-home-tool--calculator::after { content: ""; position: absolute; width: 18rem; height: 18rem; right: -8rem; bottom: -9rem; border: 34px solid rgba(255,255,255,.12); border-radius: 50%; }
.ret-home-tool--calculator .ret-eyebrow { color: #d7eadf; }
.ret-home-tool--calculator h2 { position: relative; z-index: 1; max-width: 590px; }
.ret-home-tool--calculator p { position: relative; z-index: 1; max-width: 620px; color: #e2eee6; }
.ret-home-tool--calculator .ret-button { position: relative; z-index: 1; margin-top: .8rem; }
.ret-home-tool--calculator small { position: relative; z-index: 1; display: block; max-width: 520px; margin-top: 1rem; color: #d4e4d9; font-size: .78rem; }
.ret-home-tool--selector { padding: clamp(2rem, 4vw, 4rem); border: 1px solid rgba(255,255,255,.14); background: #1d2a22; }
.ret-home-tool--selector .ret-eyebrow { color: #8dccaa; }
.ret-home-resin-routes { margin-top: 1.75rem; }
.ret-home-resin-routes a { display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid rgba(255,255,255,.13); color: #fff; text-decoration: none; }
.ret-home-resin-routes a:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.ret-home-resin-routes strong { font-size: .98rem; }
.ret-home-resin-routes span { color: #aebbb2; font-size: .84rem; }
.ret-home-resin-routes a:hover strong { color: #99d5b2; }

.ret-home-applications { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.ret-home-applications:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ret-home-application { display: flex; flex-direction: column; min-height: 225px; padding: 1.35rem; border: 1px solid var(--ret-line); border-radius: var(--ret-radius-lg); background: var(--ret-bg); color: var(--ret-ink); text-decoration: none; }
.ret-home-application:hover { color: var(--ret-ink); border-color: #bdc9bf; transform: translateY(-2px); }
.ret-home-application__index { margin-bottom: auto; color: var(--ret-accent); font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.ret-home-application strong { margin-top: 2rem; font-size: 1.05rem; }
.ret-home-application > span:last-child { margin-top: .55rem; color: var(--ret-muted); font-size: .85rem; line-height: 1.5; }

.ret-home-docs { background: linear-gradient(135deg, #eaf1eb, #f8faf7); border-bottom: 1px solid var(--ret-line); }
.ret-home-docs__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.ret-home-docs__grid > div:first-child > p:not(.ret-eyebrow) { max-width: 650px; color: var(--ret-muted); }
.ret-home-docs__grid .ret-button { margin-top: 1rem; }
.ret-home-docs__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.ret-home-docs__cards article { min-height: 230px; padding: 1.35rem; border: 1px solid var(--ret-line); border-radius: var(--ret-radius-lg); background: #fff; }
.ret-home-docs__cards article > span { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 2.4rem; border-radius: .75rem; background: var(--ret-ink); color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .05em; }
.ret-home-docs__cards strong { display: block; font-size: 1rem; }
.ret-home-docs__cards p { margin-bottom: 0; color: var(--ret-muted); font-size: .83rem; line-height: 1.55; }

.ret-home-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ret-home-review { padding: 1.5rem; border: 1px solid var(--ret-line); border-radius: var(--ret-radius-lg); background: var(--ret-bg); }
.ret-home-review__rating { color: #a56f00; letter-spacing: .08em; }
.ret-home-review blockquote { margin: 1rem 0 1.5rem; font-size: 1.03rem; line-height: 1.65; }
.ret-home-review p { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: .82rem; }
.ret-home-review p a { color: var(--ret-muted); }

.ret-home-faq__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); }
.ret-home-faq__intro p:not(.ret-eyebrow) { color: var(--ret-muted); }
.ret-home-faq__items details { border-top: 1px solid var(--ret-line); }
.ret-home-faq__items details:last-child { border-bottom: 1px solid var(--ret-line); }
.ret-home-faq__items summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; font-weight: 800; list-style: none; }
.ret-home-faq__items summary::-webkit-details-marker { display: none; }
.ret-home-faq__items summary::after { content: "+"; position: absolute; right: .25rem; top: 1.12rem; color: var(--ret-accent); font-size: 1.35rem; font-weight: 500; }
.ret-home-faq__items details[open] summary::after { content: "−"; }
.ret-home-faq__items details p { margin: -.15rem 0 1.3rem; padding-right: 2rem; color: var(--ret-muted); }

.ret-home-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ret-home-guide { overflow: hidden; border: 1px solid var(--ret-line); border-radius: var(--ret-radius-lg); background: var(--ret-bg); }
.ret-home-guide__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e7ece7; }
.ret-home-guide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ret-home-guide:hover .ret-home-guide__media img { transform: scale(1.025); }
.ret-home-guide__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #dce7df, #f8faf7); }
.ret-home-guide__body { padding: 1.25rem; }
.ret-home-guide time { color: var(--ret-muted); font-size: .75rem; }
.ret-home-guide h3 { margin: .4rem 0 .65rem; font-size: 1.15rem; line-height: 1.3; }
.ret-home-guide h3 a { color: var(--ret-ink); text-decoration: none; }
.ret-home-guide p { margin: 0; color: var(--ret-muted); font-size: .87rem; }

.ret-home-final-cta { padding: clamp(4rem, 7vw, 7rem) 0 0; background: var(--ret-bg); }
.ret-home-final-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; padding: clamp(2rem, 4.5vw, 4.5rem); border-radius: 1.65rem; background: #fff; border: 1px solid var(--ret-line); box-shadow: var(--ret-shadow); }
.ret-home-final-cta__inner > div:first-child { max-width: 760px; }
.ret-home-final-cta__inner p:not(.ret-eyebrow) { color: var(--ret-muted); }
.ret-home-final-cta__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }

@media (max-width: 1100px) {
    .ret-home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 2.5rem; }
    .ret-home-hero__visual { min-height: 450px; }
    .ret-home-routes { grid-template-columns: 1fr 1fr; }
    .ret-home-route + .ret-home-route { border-left: 0; }
    .ret-home-route:nth-child(even) { border-left: 1px solid var(--ret-line); }
    .ret-home-route:nth-child(n+3) { border-top: 1px solid var(--ret-line); }
    .ret-home-applications, .ret-home-applications:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ret-home-categories:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    .ret-home-hero { padding-top: 3rem; }
    .ret-home-hero__grid { grid-template-columns: 1fr; }
    .ret-home-hero__content { max-width: 760px; }
    .ret-home-hero h1 { max-width: 800px; }
    .ret-home-hero__visual { min-height: 420px; max-width: 720px; }
    .ret-home-trust__grid { grid-template-columns: 1fr 1fr; }
    .ret-home-trust a:nth-child(3)::before { display: none; }
    .ret-home-trust a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
    .ret-home-section__head { align-items: start; flex-direction: column; }
    .ret-home-categories, .ret-home-categories:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ret-home-tool-grid, .ret-home-docs__grid, .ret-home-faq__grid { grid-template-columns: 1fr; }
    .ret-home-docs__cards { max-width: 760px; }
    .ret-home-reviews, .ret-home-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ret-home-reviews > :last-child:nth-child(odd), .ret-home-guides__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ret-home-final-cta__inner { grid-template-columns: 1fr; align-items: start; }
    .ret-home-final-cta__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .ret-home-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
    .ret-home-hero__actions { display: grid; grid-template-columns: 1fr; }
    .ret-home-hero__actions .ret-button { width: 100%; }
    .ret-home-hero__meta { display: grid; gap: .45rem; }
    .ret-home-hero__visual { grid-template-columns: 1fr 1fr; min-height: 360px; gap: .55rem; }
    .ret-home-hero-product { padding: .55rem; border-radius: 1rem; }
    .ret-home-hero-product.is-primary { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 42% 1fr; grid-template-rows: auto auto; align-items: center; gap: .4rem .75rem; }
    .ret-home-hero-product.is-primary .ret-home-hero-product__image { grid-row: 1 / 3; }
    .ret-home-hero-product.is-primary .ret-home-hero-product__image img { max-height: 170px; }
    .ret-home-hero-product:not(.is-primary) .ret-home-hero-product__image { aspect-ratio: 1; }
    .ret-home-hero-product__name { font-size: .8rem; }
    .ret-home-hero-product__price { font-size: .75rem; }
    .ret-home-trust__grid { grid-template-columns: 1fr; }
    .ret-home-trust a + a::before { display: none; }
    .ret-home-trust a + a { border-top: 1px solid rgba(255,255,255,.14); }
    .ret-home-routes { grid-template-columns: 1fr; }
    .ret-home-route:nth-child(even) { border-left: 0; }
    .ret-home-route:nth-child(n+2) { border-top: 1px solid var(--ret-line); }
    .ret-home-category, .ret-home-application { border-radius: 1rem; }
    .ret-home-categories, .ret-home-categories:has(> :nth-child(4)), .ret-home-applications, .ret-home-applications:has(> :nth-child(5)), .ret-home-reviews, .ret-home-guides__grid, .ret-home-docs__cards { grid-template-columns: 1fr; }
    .ret-home-reviews > :last-child:nth-child(odd), .ret-home-guides__grid > :last-child:nth-child(odd) { grid-column: auto; }
    .ret-home-application { min-height: 190px; }
    .ret-home-resin-routes a { grid-template-columns: 1fr; gap: .35rem; }
    .ret-home-final-cta { padding-top: 2.75rem; }
    .ret-home-final-cta__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}


/* === 0.9.1 mobile featured-products rail === */
@media (max-width: 640px) {
    .ret-home-native-products.woocommerce ul.products {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(250px, 82vw);
        gap: .85rem;
        overflow-x: auto;
        overflow-y: hidden;
        margin-inline: 0;
        padding: 0 .1rem 1rem;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: .1rem;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .ret-home-native-products.woocommerce ul.products::before,
    .ret-home-native-products.woocommerce ul.products::after { display: none !important; }
    .ret-home-native-products.woocommerce ul.products li.product {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        scroll-snap-align: start;
    }
    .ret-home-native-products.woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem;
        line-height: 1.28;
    }
    .ret-home-native-products.woocommerce ul.products li.product .button {
        width: calc(100% - 1.5rem);
        min-height: 46px;
        margin-inline: .75rem;
        white-space: normal;
        text-align: center;
    }
}
