/* =====================================================================
   ANIMECTIN — PREMIUM home page
   ---------------------------------------------------------------------
   Loaded only on the home page (and the pack cards on /how-it-works),
   AFTER theme.css, from:
     resources/views/vendor/storefront/public/home/index.blade.php
   Every rule is scoped to .am-home, so other pages are not touched.

   Colors/brand red still come from theme.css (:root --am-red ...).
   Change the look here:
     --p-serif ....... heading font
     --p-cream ....... light section background
     --p-dark ........ (not used any more)
     --p-sec ......... space above/below each section
   ===================================================================== */

.am-home {
    --p-serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
    --p-ink: #16110f;
    --p-ink-2: #3a3431;
    --p-muted: #6e6662;
    --p-line: #ece4de;
    --p-cream: #faf6f2;
    --p-cream-2: #f3ebe4;
    --p-dark: #1a1110;
    --p-dark-2: #2a1615;
    --p-radius: 20px;
    --p-radius-sm: 14px;
    --p-shadow: 0 1px 2px rgba(22, 17, 15, .04), 0 10px 30px -12px rgba(22, 17, 15, .16);
    --p-shadow-lg: 0 2px 4px rgba(22, 17, 15, .05), 0 28px 60px -22px rgba(22, 17, 15, .28);
    --p-ease: cubic-bezier(.2, .7, .2, 1);
    --p-sec: 104px;

    color: var(--p-ink);
}

/* ---------------------------------------------------------------------
   0. Shared: section spacing, backgrounds, headings
   --------------------------------------------------------------------- */
.am-home .am-sec {
    position: relative;
    padding: var(--p-sec) 0 !important;
}

.am-home .am-sec-tint {
    background:
        radial-gradient(1200px 400px at 50% 0%, rgba(255, 255, 255, .9), transparent 70%),
        var(--p-cream);
}

/* two plain white sections in a row: no double space */
.am-home .am-sec:not(.am-sec-tint):not(.am-sec-dark) + .am-sec:not(.am-sec-tint):not(.am-sec-dark) {
    padding-top: 0 !important;
}

.am-home .am-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--am-red);
}

.am-home .am-kicker::before {
    content: "";
    width: 28px;
    height: 1.5px;
    background: currentColor;
}

.am-home .am-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.am-home .am-head .am-kicker::after {
    content: "";
    width: 28px;
    height: 1.5px;
    background: currentColor;
}

.am-home .am-head-title,
.am-home .am-pd-title,
.am-home .am-why-title,
.am-home .blog-posts-wrap .section-title {
    font-family: var(--p-serif);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--p-ink);
}

.am-home .am-head-title {
    margin: 18px 0 0;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.08;
}

.am-home .am-head-title em,
.am-home .am-why-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--am-red);
}

.am-home .am-head-sub {
    max-width: 600px;
    margin: 18px auto 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--p-muted);
}

/* ---------------------------------------------------------------------
   1. Hero
   --------------------------------------------------------------------- */
.am-home .am-hero-wrap .am-hero.home-slider {
    height: calc(var(--am-r) * 40) !important;
    min-height: 340px;
    background: var(--p-cream-2);
}

.am-home .am-slide-bg {
    transform: scale(1.04);
    transition: transform 7s ease-out;
}

.am-home .swiper-slide-active .am-slide-bg {
    transform: scale(1);
}

/* light wash behind the text so it reads on any picture */
.am-home .am-slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .55) 32%, rgba(255, 255, 255, 0) 58%);
}

.am-home .am-dir-right .am-slide-shade {
    background: linear-gradient(270deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .55) 32%, rgba(255, 255, 255, 0) 58%);
}

.am-home .am-dir-center .am-slide-shade {
    background: radial-gradient(60% 70% at 50% 45%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 75%);
}

.am-home .am-slide-inner {
    align-items: center;
}

.am-home .am-slide-text {
    padding-top: 0;
    padding-bottom: calc(var(--am-r) * 3);
}

/* eyebrow becomes a small glass pill */
.am-home .am-eyebrow {
    display: inline-flex;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border: 1px solid rgba(22, 17, 15, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: clamp(11px, calc(var(--am-r) * 1.05), 13.5px);
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--p-ink);
    box-shadow: 0 4px 14px -6px rgba(22, 17, 15, .18);
}

.am-home .am-eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--am-red);
    box-shadow: 0 0 0 4px var(--color-primary-alpha-15);
}

.am-home .am-title {
    margin-top: calc(var(--am-r) * 1.4);
    text-shadow: none;
    filter: drop-shadow(0 6px 18px rgba(216, 21, 27, .18));
}

.am-home .am-subtitle {
    margin-top: calc(var(--am-r) * .6);
    font-family: var(--p-serif);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--p-ink);
}

.am-home .am-tagline {
    font-weight: 500;
    line-height: 1.5;
    color: var(--p-ink-2);
}

.am-home .am-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: calc(var(--am-r) * 2.2);
}

.am-dir-center .am-cta-row {
    justify-content: center;
}

.am-home .am-cta,
.am-home .am-cta-ghost {
    margin: 0;
    height: clamp(46px, calc(var(--am-r) * 4.2), 56px);
    padding: 0 clamp(20px, calc(var(--am-r) * 2.2), 30px);
    border-radius: 999px;
    font-size: clamp(14px, calc(var(--am-r) * 1.25), 16px);
    font-weight: 600;
    letter-spacing: .01em;
}

.am-home .am-cta {
    min-width: 0;
    background: linear-gradient(180deg, var(--am-red-top), var(--am-red-bottom));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 26px -10px rgba(216, 21, 27, .65);
    transition: transform .25s var(--p-ease), box-shadow .25s var(--p-ease), background .25s;
}

.am-home .am-cta svg {
    width: 18px;
    height: 18px;
    transition: transform .25s var(--p-ease);
}

.am-home .am-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid rgba(22, 17, 15, .14);
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--p-ink) !important;
    transition: border-color .25s, background .25s, color .25s;
}

.am-home .am-cta-ghost svg {
    width: 20px;
    height: 20px;
    color: var(--am-red);
}

@media (hover: hover) {
    .am-home .am-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 32px -12px rgba(216, 21, 27, .7);
    }

    .am-home .am-cta:hover svg {
        transform: translateX(4px);
    }

    .am-home .am-cta-ghost:hover {
        border-color: var(--p-ink);
        background: #fff;
    }
}

/* dots: slim bars */
.am-home .am-hero .swiper-pagination-bullet {
    width: 22px;
    height: 4px;
    margin: 0 4px !important;
    border-radius: 4px;
    background: rgba(22, 17, 15, .25);
    opacity: 1;
    box-shadow: none;
    transition: width .3s var(--p-ease), background .3s;
}

.am-home .am-hero .swiper-pagination-bullet-active {
    width: 44px;
    border-radius: 4px;
}

.am-home .am-hero .swiper-button-prev,
.am-home .am-hero .swiper-button-next {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .85) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px -10px rgba(22, 17, 15, .35);
}

/* ---------------------------------------------------------------------
   2. Features bar — floats over the bottom of the hero
   --------------------------------------------------------------------- */
.am-home .features-wrap {
    position: relative;
    z-index: 5;
}

.am-home .am-hero-wrap + .features-wrap {
    margin-top: -64px !important;
}

/* dots move up, so the floating bar does not cover them */
.am-home .am-hero-wrap:has(+ .features-wrap) .swiper-pagination {
    bottom: 84px !important;
}

.am-home .features-wrap .features {
    border: 1px solid rgba(22, 17, 15, .06) !important;
    border-radius: var(--p-radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--p-shadow-lg);
}

.am-home .features-wrap .feature-list {
    padding: 26px 0;
}

.am-home .features-wrap .single-feature {
    align-items: center;
}

.am-home .features-wrap .single-feature::after {
    top: 50% !important;
    height: 40px !important;
    transform: translateY(-50%);
    background: var(--p-line) !important;
}

.am-home .features-wrap .feature-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-right: 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff1f1, #fde0e1);
    box-shadow: 0 0 0 1px rgba(216, 21, 27, .08) inset;
}

.am-home .features-wrap .feature-icon > i {
    font-size: 27px;
}

.am-home .features-wrap .feature-details h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.005em;
}

.am-home .features-wrap .feature-details > span {
    font-size: 13.5px;
    color: var(--p-muted);
}

/* ---------------------------------------------------------------------
   3. How It Works — numbered cards
   --------------------------------------------------------------------- */
.am-home .am-how-steps {
    --am-gap: 24px;
    margin: 0 !important;
    counter-reset: none;
}

.am-home .am-how-step {
    overflow: hidden;
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius);
    background: #fff;
    box-shadow: var(--p-shadow);
}

.am-home .am-how-media {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    background: var(--p-cream-2);
}

.am-home .am-how-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(22, 17, 15, .18), transparent);
    pointer-events: none;
}

.am-home .am-how-body {
    position: relative;
    padding: 34px 26px 28px;
}

.am-home .am-how-num {
    position: absolute;
    top: -26px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--am-red-top), var(--am-red-bottom));
    color: #fff;
    font-family: var(--p-serif);
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    box-shadow: 0 10px 20px -8px rgba(216, 21, 27, .6);
}

.am-home .am-how-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.am-home .am-how-body p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--p-muted);
}

@media (hover: hover) {
    .am-home .am-how-step:hover {
        transform: translateY(-8px);
        box-shadow: var(--p-shadow-lg);
    }

    .am-home .am-how-step:hover .am-how-num {
        transform: rotate(-8deg) scale(1.06);
    }
}

/* ---------------------------------------------------------------------
   4. Choose Your Pack — product cards
   --------------------------------------------------------------------- */
.am-home .am-packs {
    gap: 22px;
    margin-top: 0;
}

.am-home .am-pack {
    position: relative;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius);
    background: #fff;
    box-shadow: var(--p-shadow);
    text-align: left;
}

.am-home .am-pack-image {
    position: relative;
    border-radius: var(--p-radius-sm);
    background: #fff;
    padding: 10px;
}

.am-home .am-pack-image img {
    mix-blend-mode: multiply;
}

.am-home .am-pack-save {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    margin: 0;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--am-red);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 24px;
    box-shadow: 0 6px 14px -6px rgba(216, 21, 27, .7);
}

.am-home .am-pack-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 8px 6px;
    border-top: 1px solid var(--p-line);
    margin-top: 6px;
}

.am-home .am-pack-label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    height: 40px;
    letter-spacing: -.005em;
}

.am-home .am-pack-price {
    justify-content: flex-start;
    margin: 10px 0 16px;
    gap: 10px;
}

.am-home .am-pack-now {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--p-ink);
}

.am-home .am-pack-old {
    font-size: 14px;
    color: #a39a95;
}

.am-home .am-pack-btn {
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--am-red-top), var(--am-red-bottom));
    font-size: 14.5px;
    letter-spacing: .01em;
    box-shadow: none;
}

.am-home .am-pack-btn:hover {
    background: var(--am-red-dark);
}

.am-home .am-pack-btn[disabled] {
    background: #cfc7c2;
}

@media (hover: hover) {
    .am-home .am-pack:hover {
        transform: translateY(-8px);
        border-color: rgba(216, 21, 27, .25);
        box-shadow: var(--p-shadow-lg);
    }

    .am-home .am-pack:hover .am-pack-btn {
        box-shadow: 0 12px 24px -10px rgba(216, 21, 27, .65);
    }
}

/* ---------------------------------------------------------------------
   5. Product Details — light band, soft red glow (dark version removed)
   --------------------------------------------------------------------- */
.am-home .am-sec-dark {
    overflow: hidden;
    background:
        radial-gradient(720px 420px at 95% 0%, rgba(216, 21, 27, .08), transparent 70%),
        radial-gradient(600px 380px at 0% 100%, rgba(216, 21, 27, .05), transparent 70%),
        #fff;
    border-top: 1px solid var(--p-line);
    border-bottom: 1px solid var(--p-line);
}

.am-home .am-pd-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.am-home .am-pd-title {
    margin: 20px 0 0;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.1;
    color: var(--p-ink);
}

.am-home .am-pd-title span {
    display: block;
    font-family: inherit;
    font-style: italic;
    font-weight: 500;
    color: var(--am-red);
}

.am-home .am-pd-desc {
    margin: 22px 0 32px;
    max-width: 58ch;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--p-muted);
}

.am-home .am-pd-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
}

.am-home .am-pd-spec {
    padding: 15px 0;
    border-top: 1px solid var(--p-line);
}

.am-home .am-pd-spec dt {
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--am-red);
}

.am-home .am-pd-spec dd {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--p-ink);
}

.am-home .am-pd-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.am-home .am-pd-perk {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius);
    background: #fff;
    box-shadow: var(--p-shadow);
}

.am-home .am-pd-perk.is-big {
    padding: 26px 24px;
    background: linear-gradient(120deg, var(--am-red-top), var(--am-red-deep));
    border-color: transparent;
    box-shadow: 0 24px 48px -20px rgba(216, 21, 27, .55);
}

.am-home .am-pd-icon {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 18px;
    background: #fff1f1;
    box-shadow: 0 0 0 1px rgba(216, 21, 27, .08) inset;
}

.am-home .am-pd-perk.is-big .am-pd-icon {
    background: #fff;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35);
}

.am-home .am-pd-icon svg,
.am-home .am-pd-icon img {
    width: 34px;
    height: 34px;
}

.am-home .am-pd-perk-body strong {
    font-size: 17px;
    font-weight: 700;
    color: var(--p-ink);
}

.am-home .am-pd-perk-body span {
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--p-muted);
}

.am-home .am-pd-perk.is-big strong {
    font-family: var(--p-serif);
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #fff;
}

@media (hover: hover) {
    .am-home .am-pd-perk:hover {
        transform: translateX(6px);
        border-color: rgba(216, 21, 27, .25);
        box-shadow: var(--p-shadow-lg);
    }

    .am-home .am-pd-perk:hover .am-pd-icon {
        transform: rotate(-6deg) scale(1.05);
        background: #fff;
        box-shadow: 0 0 0 2px var(--am-red), 0 10px 20px -10px rgba(216, 21, 27, .6);
    }
}

/* ---------------------------------------------------------------------
   6. Blog
   --------------------------------------------------------------------- */
.am-home .blog-posts-wrap {
    margin-top: 0;
    padding: var(--p-sec) 0 0;
}

.am-home .blog-posts-wrap .blog-posts-header {
    align-items: flex-end;
    border-bottom: 0;
}

.am-home .blog-posts-wrap .section-title {
    padding-bottom: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
}

.am-home .blog-posts-wrap .section-title::after {
    display: none;
}

.am-home .blog-posts-wrap .view-all {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border: 1.5px solid var(--p-line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--p-ink);
    transition: border-color .2s, color .2s;
}

.am-home .blog-posts-wrap .view-all:hover {
    border-color: var(--am-red);
    color: var(--am-red);
}

.am-home .blog-posts-wrap .swiper {
    padding-top: 32px;
    padding-bottom: 40px;
}

.am-home .blog-post {
    overflow: hidden;
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius);
    background: #fff;
    box-shadow: var(--p-shadow);
}

.am-home .blog-post:hover {
    border-color: var(--p-line);
    box-shadow: var(--p-shadow-lg);
}

.am-home .blog-post .blog-post-featured-image > img,
.am-home .blog-post .blog-post-featured-image .image-placeholder {
    border-radius: 0;
}

.am-home .blog-post .blog-post-body {
    padding: 22px 24px 26px;
}

.am-home .blog-post .blog-post-title > a {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--p-ink);
}

/* blog right above "Why Choose": a little less space between them */
.am-home .blog-posts-wrap + .am-why {
    padding-top: 48px !important;
}

/* ---------------------------------------------------------------------
   7. Why Choose — soft panel with the horse
   --------------------------------------------------------------------- */
.am-home .am-why {
    padding-bottom: var(--p-sec) !important;
}

.am-home .am-why-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 32px;
    align-items: center;
    overflow: hidden;
    padding: 64px 0 64px 64px;
    border: 1px solid #f6dcdc;
    border-radius: 32px;
    background:
        radial-gradient(520px 360px at 85% 60%, #ffe1e2, transparent 70%),
        linear-gradient(135deg, #fffaf8 0%, #fff1ef 100%);
}

.am-home .am-why-panel.no-image {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 64px;
}

.am-home .am-why-title {
    margin: 18px 0 0;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.1;
}

.am-home .am-why-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 36px 0 0 !important;
    padding: 0 !important;
}

.am-home .am-why-items li {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(216, 21, 27, .1);
    border-radius: var(--p-radius-sm);
    background: rgba(255, 255, 255, .8);
    text-align: left;
    box-shadow: 0 6px 18px -12px rgba(22, 17, 15, .25);
}

.am-home .am-why-icon {
    width: 46px !important;
    height: 46px !important;
    border: 0;
    border-radius: 14px;
    background: #fff1f1;
    box-shadow: none;
}

.am-home .am-why-icon svg,
.am-home .am-why-icon img {
    width: 26px !important;
    height: 26px !important;
}

.am-home .am-why-label {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.am-home .am-why-image {
    align-self: end;
    margin-bottom: -64px;
}

.am-home .am-why-image img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    /* soft left/top edge so the photo melts into the panel */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 14%);
    mask-composite: intersect;
}

@media (hover: hover) {
    .am-home .am-why-items li:hover {
        transform: translateY(-4px);
        border-color: rgba(216, 21, 27, .3);
        background: #fff;
    }

    .am-home .am-why-items li:hover .am-why-icon {
        transform: scale(1.06) rotate(-6deg);
        background: #fff;
        box-shadow: 0 0 0 2px var(--am-red), 0 8px 18px -8px rgba(216, 21, 27, .7);
    }
}

/* ---------------------------------------------------------------------
   8. Scroll reveal (turned on by a tiny script on the home page)
   --------------------------------------------------------------------- */
html.am-reveal-on .am-home [data-am-reveal]:not(.is-done) {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--p-ease), transform .8s var(--p-ease);
}

html.am-reveal-on .am-home [data-am-reveal].is-in:not(.is-done) {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------------
   9. Tablet + phone
   --------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .am-home {
        --p-sec: 84px;
    }

    .am-home .am-why-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .am-home .am-pd-grid {
        gap: 48px;
    }
}

@media (max-width: 991px) {
    .am-home {
        --p-sec: 68px;
    }

    .am-home .am-head {
        margin-bottom: 40px;
    }

    .am-home .am-hero-wrap + .features-wrap {
        margin-top: -40px !important;
    }

    .am-home .am-hero-wrap:has(+ .features-wrap) .swiper-pagination {
        bottom: 56px !important;
    }

    .am-home .am-pd-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .am-home .am-why-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 48px 40px 0;
    }

    .am-home .am-why-image {
        margin: 0 -40px 0 auto;
        width: min(420px, 80%);
    }
}

@media (max-width: 767px) {
    .am-home .am-how-steps {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px;
    }

    .am-home .am-packs {
        gap: 12px;
    }

    .am-home .am-pack {
        padding: 6px;
        border-radius: 16px;
    }

    .am-home .am-pack-info {
        padding: 12px 6px 4px;
    }

    .am-home .am-pack-label {
        font-size: 13.5px;
        line-height: 18px;
        height: 36px;
    }

    .am-home .am-pack-now {
        font-size: 17px;
    }

    .am-home .am-pack-old {
        font-size: 12.5px;
    }

    .am-home .am-pack-btn {
        height: 40px;
        font-size: 13px;
    }

    .am-home .am-pd-specs {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    /* phone hero: theme.css puts text on top, picture under it */
    .am-home .am-hero-wrap .am-hero.home-slider {
        height: 480px !important;
    }

    .am-home .am-hero-wrap .am-hero.home-slider.am-images-only {
        height: 56vw !important;
    }

    .am-home .am-slide-shade {
        background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 70%) !important;
    }

    .am-home .am-slide.has-text .am-slide-inner {
        align-items: flex-start;
        padding-top: 28px;
        background: none;
    }

    .am-home .am-title {
        margin-top: 14px;
    }

    .am-home .am-cta-row {
        margin-top: 18px;
        gap: 10px;
    }

    .am-home .am-cta,
    .am-home .am-cta-ghost {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }

    .am-home .am-hero-wrap + .features-wrap {
        margin-top: -28px !important;
    }

    .am-home .am-hero-wrap:has(+ .features-wrap) .swiper-pagination {
        bottom: 40px !important;
    }
}

@media (max-width: 575px) {
    .am-home {
        --p-sec: 56px;
    }

    .am-home .am-head {
        margin-bottom: 30px;
    }

    .am-home .am-head-sub {
        font-size: 15px;
    }

    .am-home .am-kicker {
        font-size: 11px;
        letter-spacing: .18em;
    }

    .am-home .features-wrap .feature-list {
        padding: 18px 0;
    }

    .am-home .am-how-body {
        padding: 26px 14px 16px;
    }

    .am-home .am-how-num {
        top: -20px;
        left: 12px;
        width: 40px;
        height: 40px;
        border-width: 3px;
        font-size: 14px;
    }

    .am-home .am-how-body h3 {
        font-size: 15px;
    }

    .am-home .am-how-body p {
        font-size: 13px;
        line-height: 1.5;
    }

    .am-home .am-pd-perks {
        gap: 12px;
    }

    .am-home .am-pd-perk {
        padding: 16px;
    }

    .am-home .am-pd-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .am-home .am-pd-icon svg,
    .am-home .am-pd-icon img {
        width: 28px;
        height: 28px;
    }

    .am-home .am-why-panel {
        padding: 36px 20px 0;
        border-radius: 24px;
    }

    .am-home .am-why-items {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 26px !important;
    }

    .am-home .am-why-image {
        margin-right: -20px;
    }

    .am-home .blog-posts-wrap .view-all {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-home *,
    .am-home *::before,
    .am-home *::after {
        transition: none !important;
        animation: none !important;
    }

    .am-home .am-slide-bg {
        transform: none !important;
    }
}
