/* Home page foundation: design tokens, section shell, buttons and the
   scroll-reveal system shared by every section in sections/home-*.
   Loaded only by templates/home.jinja. */

.home {
    --home-ease: cubic-bezier(.2, .7, .1, 1);
    --home-duration: 700ms;
    --home-distance: 24px;
    --home-radius: var(--theme-radius);
    --home-ink: var(--theme-ink);
    --home-muted: var(--theme-muted);
    --home-surface: var(--theme-surface);
    --home-line: var(--theme-line);
}

.home[data-motion="subtle"] {
    --home-duration: 450ms;
    --home-distance: 12px;
}

.home[data-motion="expressive"] {
    --home-duration: 1000ms;
    --home-distance: 40px;
}

/* Section shell */
.home-section {
    padding-block: 36px;
    color: var(--home-ink);
}

.home-section--surface {
    background-color: var(--home-surface);
}

@media (min-width: 992px) {
    .home-section {
        padding-block: 72px;
    }
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.home-section-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-ink);
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 500;
    color: var(--home-ink);
}

.home-section-link:hover {
    color: var(--home-ink);
    text-decoration: underline;
}

.home-section-link-icon {
    font-size: 1.2rem;
}

.rtl .home-section-link-icon {
    transform: scaleX(-1);
}

/* Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid var(--theme-btn-bg);
    border-radius: var(--theme-radius-sm);
    background-color: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.home-btn:hover {
    color: var(--theme-btn-text);
    text-decoration: none;
}

.home-btn--outline {
    background-color: transparent;
    color: var(--theme-btn-bg);
}

.home-btn--outline:hover {
    color: var(--theme-btn-bg);
}

.home-btn--outline:focus-visible {
    color: var(--theme-btn-text);
}

@media (hover: hover) {
    .home-btn--outline:hover {
        color: var(--theme-btn-text);
    }
}

/* Muted hint shown to the merchant while a section has no content yet */
.home-demo-note {
    margin: 12px 0 0;
    font-size: 1.1rem;
    color: var(--home-muted);
}

/* Scroll reveal. Hidden start states exist only under html.home-motion, which
   the head script in home.jinja sets (never with reduced motion, removed again
   by a failsafe if the reveal script is late). */
html.home-motion .home:not([data-motion="off"]) [data-animate] {
    opacity: 0;
    transition: opacity var(--home-duration) var(--home-ease),
                transform var(--home-duration) var(--home-ease),
                filter var(--home-duration) var(--home-ease),
                clip-path var(--home-duration) var(--home-ease);
    transition-delay: var(--animate-delay, 0ms);
}

html.home-motion .home:not([data-motion="off"]) [data-animate="fade-up"] {
    transform: translateY(var(--home-distance));
}

html.home-motion .home:not([data-motion="off"]) [data-animate="zoom-in"] {
    transform: scale(.94);
}

html.home-motion .home:not([data-motion="off"]) [data-animate="slide-in"] {
    transform: translateX(calc(var(--home-distance) * -2));
}

html.home-motion .rtl .home:not([data-motion="off"]) [data-animate="slide-in"] {
    transform: translateX(calc(var(--home-distance) * 2));
}

html.home-motion .home:not([data-motion="off"]) [data-animate="blur-in"] {
    filter: blur(12px);
}

html.home-motion .home:not([data-motion="off"]) [data-animate="mask"] {
    opacity: 1;
    clip-path: inset(0 0 100% 0);
}

html.home-motion .home:not([data-motion="off"]) [data-animate].is-inview {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
    html.home-motion .home [data-animate] {
        opacity: 1 !important; /* beats the hidden start states above regardless of specificity */
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }
}

/* Hero (sections/home-hero). Each slide is its own stacking context (isolation),
   so its layers stay within z-index 1-3: overlay 1, slide link 2, copy 3. */
.home-hero {
    --home-hero-h: 78vh;
    --home-hero-ink: var(--home-ink);
    --home-hero-wash: 255, 255, 255;
    --home-hero-overlay: .55;
    --home-hero-dir: to right;
    position: relative;
    isolation: isolate; /* contains slick's fade z-index (998/999) on the slides */
    overflow: hidden;
    background-color: var(--home-surface);
}

.rtl .home-hero {
    --home-hero-dir: to left;
}

.home-hero--medium {
    --home-hero-h: 60vh;
}

.home-hero--full {
    --home-hero-h: 100vh;
}

/* svh ignores the collapsing mobile browser toolbar, so the hero does not jump. */
@supports (height: 100svh) {
    .home-hero {
        --home-hero-h: 78svh;
    }

    .home-hero--medium {
        --home-hero-h: 60svh;
    }

    .home-hero--full {
        --home-hero-h: 100svh;
    }
}

.home-hero--tone-light {
    --home-hero-ink: #fff;
    --home-hero-wash: 0, 0, 0;
}

.home-hero--overlay-none {
    --home-hero-overlay: 0;
}

.home-hero--overlay-medium {
    --home-hero-overlay: .75;
}

.home-hero--overlay-strong {
    --home-hero-overlay: .9;
}

.home-hero-slide {
    position: relative;
    isolation: isolate;
    height: var(--home-hero-h);
    min-height: 420px;
    color: var(--home-hero-ink);
}

/* Before slick runs only the first slide takes space (no layout jump). */
.home-hero-track:not(.slick-initialized) .home-hero-slide + .home-hero-slide {
    display: none;
}

.home-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--home-surface);
}

.rtl .home-hero .is-demo {
    transform: scaleX(-1);
}

.home-hero-img,
.home-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* iOS (e.g. low-power mode) paints a start-playback button from the UA shadow DOM;
   the UA style wins over normal author rules, so !important is required. */
.home-hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.home-hero-video::-webkit-media-controls {
    display: none !important;
}

/* Overlay: a wash from the text side, white behind dark text, black behind light text.
   It sits on the slide (not .home-hero-media) so the demo RTL mirror never flips it. */
.home-hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(var(--home-hero-dir),
        rgba(var(--home-hero-wash), var(--home-hero-overlay)) 0%,
        rgba(var(--home-hero-wash), calc(var(--home-hero-overlay) * .5)) 45%,
        rgba(var(--home-hero-wash), 0) 80%);
}

.home-hero-slide--end::after {
    background: linear-gradient(var(--home-hero-dir),
        rgba(var(--home-hero-wash), 0) 20%,
        rgba(var(--home-hero-wash), calc(var(--home-hero-overlay) * .5)) 55%,
        rgba(var(--home-hero-wash), var(--home-hero-overlay)) 100%);
}

.home-hero-slide--center::after {
    background: rgba(var(--home-hero-wash), calc(var(--home-hero-overlay) * .6));
}

.home-hero-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

/* The copy covers the slide but lets clicks through to the slide link,
   except on the button. */
.home-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 100%;
    pointer-events: none;
}

.home-hero-slide--center .home-hero-content {
    justify-content: center;
    text-align: center;
}

.home-hero-slide--end .home-hero-content {
    justify-content: flex-end;
}

.home-hero-copy {
    max-width: 560px;
}

.home-hero-title {
    margin: 0 0 12px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.home-hero-subtitle {
    margin: 0 0 24px;
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: .85;
}

/* Hero button colours come from the section settings, falling back to the theme buttons. */
.home-hero-btn,
.home-hero-btn:hover {
    --btn-drift: var(--home-hero-btn-bg, var(--theme-btn-bg));
    border-color: var(--home-hero-btn-bg, var(--theme-btn-bg));
    background-color: var(--home-hero-btn-bg, var(--theme-btn-bg));
    color: var(--home-hero-btn-text, var(--theme-btn-text));
}

.home-hero-btn {
    pointer-events: auto;
}

@media (min-width: 992px) {
    .home-hero-title {
        font-size: 4.6rem;
    }

    .home-hero-subtitle {
        font-size: 1.7rem;
    }
}

@media (max-width: 767px) {
    .home-hero:not(.home-hero--full) .home-hero-slide {
        height: min(70vh, 620px);
    }

    /* Copy sits at the bottom on phones (above the dots), so the wash rises from there. */
    .home-hero-content {
        align-items: flex-end;
        padding-bottom: 56px;
    }

    .home-hero-slide::after,
    .home-hero-slide--end::after {
        background: linear-gradient(to top,
            rgba(var(--home-hero-wash), var(--home-hero-overlay)) 0%,
            rgba(var(--home-hero-wash), calc(var(--home-hero-overlay) * .5)) 40%,
            rgba(var(--home-hero-wash), 0) 70%);
    }
}

@supports (height: 100svh) {
    @media (max-width: 767px) {
        .home-hero:not(.home-hero--full) .home-hero-slide {
            height: min(70svh, 620px);
        }
    }
}

/* Slow zoom ("zoom" transition) moves the media, never the .is-demo wrapper,
   so it does not fight the RTL mirror transform. */
@keyframes homeHeroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero--zoom .home-hero-slide.is-active .home-hero-img,
    .home-hero--zoom .home-hero-slide.is-active .home-hero-video {
        animation: homeHeroZoom calc(var(--home-hero-speed, 6000ms) + 1500ms) linear forwards;
    }
}

/* Copy entrance: replays each time a slide becomes .is-active (set by the section
   script). Hidden states exist only under html.home-motion, so the copy stays visible
   in the editor, with reduced motion, or if scripts never run. Fill mode is
   backwards so the button's hover transform still works afterwards. */
@keyframes homeHeroRise {
    from {
        opacity: 0;
        transform: translateY(var(--home-distance));
    }
    to {
        opacity: 1;
        transform: none;
    }
}

html.home-motion .home-hero-slide:not(.is-active) .home-hero-copy > * {
    opacity: 0;
}

html.home-motion .home-hero-slide.is-active .home-hero-copy > * {
    animation: homeHeroRise var(--home-duration) var(--home-ease) backwards;
}

html.home-motion .home-hero-slide.is-active .home-hero-copy > :nth-child(2) {
    animation-delay: .12s;
}

html.home-motion .home-hero-slide.is-active .home-hero-copy > :nth-child(3) {
    animation-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
    html.home-motion .home-hero-copy > * {
        opacity: 1 !important; /* beats the hidden start state regardless of specificity */
        animation: none !important;
    }
}

/* Dots: thin bars; with autoplay the active one fills over the interval. */
.home-hero .slick-dotted.slick-slider {
    margin-bottom: 0;
}

.home-hero .slick-dots {
    bottom: 20px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-hero .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.home-hero .slick-dots li button.home-hero-dot {
    position: relative;
    width: 36px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

/* slick-theme removes the outline on focus; keyboard users still need to see it. */
.home-hero .slick-dots li button.home-hero-dot:focus-visible {
    outline: 2px solid var(--home-hero-ink);
    outline-offset: 2px;
    border-radius: 2px;
}

/* slick-theme draws its bullet glyph here */
.home-hero .slick-dots li button.home-hero-dot:before {
    content: none;
}

.home-hero-dot::after,
.home-hero-dot span {
    position: absolute;
    top: 7px;
    inset-inline-start: 0;
    height: 2px;
    border-radius: 2px;
}

.home-hero-dot::after {
    content: "";
    width: 100%;
    background-color: var(--home-hero-ink);
    opacity: .3;
}

.home-hero-dot span {
    z-index: 1;
    width: 0;
    background-color: var(--home-hero-ink);
}

.home-hero .slick-active .home-hero-dot span {
    width: 100%;
}

@keyframes homeHeroDot {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.home-hero.is-autoplay .slick-active .home-hero-dot span {
    animation: homeHeroDot var(--home-hero-speed, 6000ms) linear var(--home-hero-delay, 0ms) backwards;
}

/* Slick pauses autoplay while the slides are hovered and restarts a full interval on
   leave; dropping the animation here makes the bar restart in step with it. */
.home-hero.is-autoplay .slick-list:hover ~ .slick-dots .slick-active .home-hero-dot span {
    animation: none;
}

@media (max-width: 767px) {
    .home-hero .slick-dots {
        bottom: 16px;
    }
}

/* Features (sections/home-features): 2 columns on phones, 4 from 576px. Flex + wrap so
   5-6 items stay centred instead of leaving a ragged last row. */
.theme-icon {
    flex: none;
    display: inline-block;
    vertical-align: middle;
}

.home-features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-features-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 12px;
    text-align: center;
}

@media (min-width: 576px) {
    .home-features-item {
        flex-basis: 25%;
        max-width: 25%;
    }
}

.home-features-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-features-link,
.home-features-link:hover {
    color: inherit;
    text-decoration: none;
}

.home-features-icon,
.home-features-img {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.home-features-icon {
    color: var(--home-features-icon, var(--home-ink));
}

.home-features-img {
    object-fit: contain;
}

.home-features-title {
    font-weight: 700;
    line-height: 1.4;
}

.home-features-text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--home-muted);
}

/* Strip: hairline dividers between items */
.home-features--strip .home-features-item + .home-features-item {
    border-inline-start: 1px solid var(--home-line);
}

/* Wrapped rows: no hairline at the start of a row */
@media (min-width: 576px) {
    .home-features--strip .home-features-item:nth-child(4n + 1) {
        border-inline-start: 0;
    }
}

/* Two-column wrap: the divider would sit at the start of the second row */
@media (max-width: 575px) {
    .home-features--strip .home-features-item:nth-child(2n + 1) {
        border-inline-start: 0;
    }
}

/* Cards: bordered tiles that lift on hover. The lift lives on the inner card because the
   li carries data-animate, whose revealed state sets transform: none. */
.home-features--cards .home-features-item {
    padding: 6px;
}

.home-features--cards .home-features-card {
    height: 100%;
    padding: 20px 12px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background-color: #fff;
    transition: transform .25s var(--home-ease), box-shadow .25s var(--home-ease);
}

.home-features--cards .home-features-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

@media (prefers-reduced-motion: reduce) {
    .home-features--cards .home-features-card {
        transition: none;
    }

    .home-features--cards .home-features-card:hover {
        transform: none;
    }
}

/* Category banners (sections/home-category-banners): image tiles, 2-up on phones. The hover
   zoom targets the image and the lift targets .home-banner-inner, never the <a>, which carries
   data-animate (its revealed state sets transform: none). */
.home-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-banner {
    display: block;
    color: inherit;
}

.home-banner:hover {
    color: inherit;
    text-decoration: none;
}

.home-banner-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--home-radius);
    background-color: var(--secondary-color-alt0, #f3f3f3);
    transition: transform .4s var(--home-ease), box-shadow .4s var(--home-ease);
}

.home-banners--tall .home-banner-inner {
    aspect-ratio: 3 / 4;
}

.home-banner-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.rtl .home-banners .is-demo {
    transform: scaleX(-1);
}

.home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s var(--home-ease);
}

/* Wash rises from the bottom behind the copy; --banner-overlay is the merchant's strength setting */
.home-banner-inner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    opacity: var(--banner-overlay, 1);
    background: linear-gradient(to top, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .5) 40%, rgba(255, 255, 255, 0) 70%);
}

.home-banners--tone-light .home-banner-inner::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 70%);
}

.home-banner-copy {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    padding: 12px;
    color: var(--home-ink);
    text-align: start;
}

.home-banners--tone-light .home-banner-copy {
    color: #fff;
}

.home-banner-title {
    margin: 0 0 2px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-banner-subtitle {
    display: none;
    margin: 0 0 6px;
    opacity: .85;
}

.home-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.home-banner-icon {
    font-size: 1.2rem;
}

.rtl .home-banner-icon {
    transform: scaleX(-1);
}

@media (min-width: 576px) {
    .home-banner-subtitle {
        display: block;
    }
}

@media (min-width: 768px) {
    .home-banners-grid {
        gap: 20px;
    }

    .home-banners--cols-3 .home-banners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-banners--cols-4 .home-banners-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-banner-copy {
        padding: 20px;
    }

    .home-banner-title {
        font-size: 1.8rem;
    }
}

.home-banners--hover-zoom .home-banner:hover .home-banner-img {
    transform: scale(1.08);
}

.home-banners--hover-lift .home-banner:hover .home-banner-inner {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-img,
    .home-banner-inner {
        transition: none;
    }

    .home-banners--hover-zoom .home-banner:hover .home-banner-img,
    .home-banners--hover-lift .home-banner:hover .home-banner-inner {
        transform: none;
    }
}

/* Brands */
.home-brands-track {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Mobile: one horizontal scroll-snap row (the scrollbar is hidden, swiping is the affordance). */
.home-brands--grid .home-brands-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-brands--grid .home-brands-track::-webkit-scrollbar {
    display: none;
}

.home-brands--grid .home-brands-item {
    flex: 0 0 38%;
    scroll-snap-align: start;
}

.home-brands-item {
    min-width: 0;
}

.home-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 0 16px;
    background-color: #fff;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    color: var(--home-ink);
    transition: border-color .25s var(--home-ease);
}

a.home-brand:hover {
    color: var(--home-ink);
    text-decoration: none;
}

.home-brand-img {
    display: block;
    max-width: 100%;
    max-height: 36px;
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: filter .3s var(--home-ease), opacity .3s var(--home-ease);
}

.home-brand-wordmark {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--home-ink);
}

.home-brands--gray .home-brand-img {
    filter: grayscale(1);
    opacity: .7;
}

@media (hover: hover) {
    .home-brand:hover {
        border-color: var(--primary-color);
    }

    .home-brands--gray .home-brand:hover .home-brand-img {
        filter: none;
        opacity: 1;
    }
}

.home-brand:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.home-brands--gray .home-brand:focus-visible .home-brand-img {
    filter: none;
    opacity: 1;
}

/* Phones: the row scrolls sideways, so items past the fold would reveal late on swipe. Keep them visible
   (specificity beats the hidden start states in the reveal block). */
@media (max-width: 767.98px) {
    html.home-motion .home:not([data-motion="off"]) .home-brands--grid .home-brands-item[data-animate] {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
        transition: none;
    }
}

@media (min-width: 768px) {
    .home-brands--grid .home-brands-track {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }
}

@media (min-width: 992px) {
    .home-brands--grid .home-brands-track {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Marquee: two identical tracks side by side; each slides by its own width, so the loop is seamless.
   The padding-inline-end equals the gap so the seam spacing matches. */
.home-brands-marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.home-brands-marquee .home-brands-track {
    flex: 0 0 auto;
    min-width: 100%;
    justify-content: space-around;
    padding-inline-end: 12px;
    animation: home-brands-scroll 32s linear infinite;
}

.home-brands-marquee .home-brands-item {
    flex: 0 0 auto;
    min-width: 150px;
}

.home-brands-marquee .home-brand {
    min-width: 150px;
}

.rtl .home-brands-marquee .home-brands-track {
    animation-name: home-brands-scroll-rtl;
}

.home-brands-marquee:hover .home-brands-track,
.home-brands-marquee:focus-within .home-brands-track {
    animation-play-state: paused;
}

@keyframes home-brands-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes home-brands-scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .home-brands-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home-brands-marquee .home-brands-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
        width: 100%;
    }

    .home-brands-track[aria-hidden="true"] {
        display: none;
    }

    .home-brand,
    .home-brand-img {
        transition: none;
    }
}

/* Products (sections/home-products): slider on tablet/desktop (slick), a native scroll-snap row on
   phones, or a grid. The card hover lift targets the inner .product-item, never the [data-animate]
   element (the wrap in the slider, the column in the grid), so it cannot fight the reveal. */
.home-products {
    --home-products-cols: 4;
}

.home-products--cols-5 {
    --home-products-cols: 5;
}

.home-products-list {
    display: flex;
    margin-inline: -6px;
}

.home-products-col {
    min-width: 0;
    padding: 6px;
}

/* Mobile slider: swipeable row, the next card peeks in */
.home-products--slider .home-products-list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-products--slider .home-products-list::-webkit-scrollbar {
    display: none;
}

.home-products--slider .home-products-col {
    flex: 0 0 46%;
    scroll-snap-align: start;
}

/* Grid: 2 columns on phones */
.home-products--grid .home-products-list {
    flex-wrap: wrap;
}

.home-products--grid .home-products-col {
    flex: 0 0 50%;
}

@media (min-width: 768px) {
    /* Before slick runs keep the final column geometry; the row stays natively scrollable so no card is unreachable if slick never starts. */
    .home-products--slider .home-products-list:not(.slick-initialized) .home-products-col {
        flex-basis: calc(100% / 3);
    }

    .home-products--slider .home-products-list.slick-initialized {
        display: block;
    }

    .home-products--grid .home-products-col {
        flex-basis: calc(100% / 3);
    }

    .home-products .slick-slide {
        height: auto;
    }
}

@media (min-width: 992px) {
    .home-products--slider .home-products-list:not(.slick-initialized) .home-products-col,
    .home-products--grid .home-products-col {
        flex-basis: calc(100% / var(--home-products-cols));
    }
}

/* Slick arrows sit over the card edges instead of outside the container */
.home-products .slick-prev {
    inset-inline-start: -8px;
}

.home-products .slick-next {
    inset-inline-end: -8px;
}

.home-products .slick-prev,
.home-products .slick-next {
    z-index: 1;
}

.home-products .slick-list {
    padding-block: 4px;
}

/* The card look itself (style, background) is the store-wide preset in custom.css; this
   section only adds the hover lift. */
.home-products .product-item {
    transition: transform .35s var(--home-ease), box-shadow .35s var(--home-ease);
}

@media (hover: hover) {
    .home-products .product-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--product-card-hover-shadow, 0 10px 24px rgba(0, 0, 0, .08));
    }
}

.home-products .product-item:focus-within {
    transform: translateY(-4px);
}

.home-products .product-item a:focus-visible {
    outline: 2px solid var(--home-ink);
    outline-offset: 2px;
}

/* Grid pagination (built by the section script). Hidden cards leave the flex flow entirely. */
.home-products {
    scroll-margin-top: var(--fixed-header-h, 0px);
}

.home-products-col.is-paged-out {
    display: none;
}

.home-products-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.home-products-pager:empty {
    display: none;
}

.home-products-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--home-line);
    border-radius: var(--theme-radius-sm);
    background-color: transparent;
    color: var(--home-ink);
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s var(--home-ease), background-color .2s var(--home-ease);
}

.home-products-page:focus-visible {
    outline: 2px solid var(--home-ink);
    outline-offset: 2px;
}

.home-products-page:disabled {
    opacity: .4;
    cursor: default;
}

@media (hover: hover) {
    .home-products-page:hover {
        border-color: var(--home-ink);
    }
}

.home-products-page.is-active {
    border-color: var(--theme-btn-bg);
    background-color: var(--theme-btn-bg);
    color: var(--theme-btn-text);
    cursor: default;
}

.home-products-page span {
    font-size: 1.6rem;
}

/* Editor placeholder cards. The demo photos are about 3:1, so they sit contained on a light surface. */
.home-demo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--home-radius);
    background-color: var(--home-surface);
    overflow: hidden;
}

.home-demo-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: var(--home-surface);
}

.home-demo-card-name {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    color: var(--home-ink);
}

@media (prefers-reduced-motion: reduce) {
    .home-products .product-item {
        transition: none;
    }

    .home-products .product-item:hover,
    .home-products .product-item:focus-within {
        transform: none;
    }
}

/* Promo banner (sections/home-promo-banner): rounded campaign card. The card carries data-animate,
   so the parallax moves only the <img> (base scale(1.12) hides its edges while it drifts) and the
   demo mirror sits on the media wrapper. isolation keeps Safari from clipping the rounded corners.
   Merchant colours arrive as --home-promo-* variables on the root (set only when chosen); layout
   choices are modifier classes that set variables, so no rule here goes past two classes. */
.home-promo {
    --home-promo-wash-base: #fff;
}

.home-promo--tone-light {
    --home-promo-wash-base: #000;
}

.home-promo--align-center {
    --home-promo-align: center;
}

.home-promo--align-end {
    --home-promo-align: end;
}

.home-promo--v-top {
    --home-promo-v: flex-start;
}

.home-promo--v-bottom {
    --home-promo-v: flex-end;
}

/* Split columns: the copy takes the text_position side, the image the other one. */
.home-promo--start {
    --home-promo-cols: minmax(0, 1fr) var(--home-promo-media-w, 50%);
}

.home-promo--end {
    --home-promo-cols: var(--home-promo-media-w, 50%) minmax(0, 1fr);
}

.home-promo-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--home-radius);
    background-color: var(--home-promo-bg, var(--home-surface));
    color: var(--home-promo-text, var(--home-ink));
}

.home-promo--tone-light .home-promo-card {
    background-color: var(--home-promo-bg, var(--home-ink));
    color: var(--home-promo-text, #fff);
}

.home-promo--full .home-promo-card {
    border-radius: 0;
}

.home-promo-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.rtl .home-promo .is-demo {
    transform: scaleX(-1);
}

.home-promo-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-promo-img[data-parallax] {
    transform: scale(1.12);
    will-change: transform;
}

.home-promo-copy {
    padding: 24px 20px 28px;
    text-align: var(--home-promo-align, start);
}

.home-promo-title {
    margin: 0 0 8px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-promo-title, inherit);
}

.home-promo-subtitle {
    margin: 0 0 18px;
    font-size: 1.4rem;
    opacity: .85;
}

.home-promo-btn,
.home-promo-btn:hover {
    --btn-drift: var(--home-promo-btn-bg, var(--theme-btn-bg));
    border-color: var(--home-promo-btn-bg, var(--theme-btn-bg));
    background-color: var(--home-promo-btn-bg, var(--theme-btn-bg));
    color: var(--home-promo-btn-text, var(--theme-btn-text));
}

/* Whole-banner link (overlay only). The copy lets clicks through to it; the button stays its own link. */
.home-promo-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.home-promo-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.home-promo-link ~ .home-promo-copy {
    pointer-events: none;
}

.home-promo-btn {
    pointer-events: auto;
}

/* Split: image and copy side by side from tablet up. */
@media (min-width: 768px) {
    .home-promo--split .home-promo-card {
        display: grid;
        grid-template-columns: var(--home-promo-cols);
        align-items: center;
    }

    .home-promo--split.home-promo--start .home-promo-media {
        order: 2;
    }

    .home-promo--split .home-promo-copy {
        align-self: var(--home-promo-v, center);
        padding: 32px 48px;
    }

    .home-promo-title {
        font-size: 3rem;
    }
}

/* Overlay: image fills the card, a wash from the copy side keeps the text readable. The wash colour
   follows the tone unless the merchant picks one; its strength is --home-promo-wash-o. The rgba
   gradient is the fallback for browsers without color-mix(). */
.home-promo--overlay {
    --home-promo-wash-c: var(--home-promo-wash, var(--home-promo-wash-base));
    --home-promo-wash-1: color-mix(in srgb, var(--home-promo-wash-c) var(--home-promo-wash-o, 85%), transparent);
    --home-promo-wash-2: color-mix(in srgb, var(--home-promo-wash-c) calc(var(--home-promo-wash-o, 85%) * .6), transparent);
    --home-promo-wash-0: color-mix(in srgb, var(--home-promo-wash-c) 0%, transparent);
}

.home-promo--overlay .home-promo-card {
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 5;
    background-color: var(--secondary-color-alt0, #f3f3f3);
}

.home-promo--h-small .home-promo-card {
    aspect-ratio: 1 / 1;
}

.home-promo--h-large .home-promo-card {
    aspect-ratio: 3 / 4;
}

.home-promo--overlay .home-promo-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    aspect-ratio: auto;
}

.home-promo--overlay .home-promo-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 75%);
    background: linear-gradient(to top, var(--home-promo-wash-1) 0%, var(--home-promo-wash-2) 45%, var(--home-promo-wash-0) 75%);
}

.home-promo--overlay.home-promo--tone-light .home-promo-card::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%);
    background: linear-gradient(to top, var(--home-promo-wash-1) 0%, var(--home-promo-wash-2) 45%, var(--home-promo-wash-0) 75%);
}

.home-promo--overlay .home-promo-copy {
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (min-width: 768px) {
    .home-promo--overlay .home-promo-card {
        align-items: var(--home-promo-v, center);
        aspect-ratio: 21 / 9;
    }

    .home-promo--h-small .home-promo-card {
        aspect-ratio: 3 / 1;
    }

    .home-promo--h-large .home-promo-card {
        aspect-ratio: 16 / 9;
    }

    .home-promo--overlay .home-promo-card::after {
        background: linear-gradient(to right, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .5) 40%, rgba(255, 255, 255, 0) 70%);
        background: linear-gradient(to right, var(--home-promo-wash-1) 0%, var(--home-promo-wash-2) 40%, var(--home-promo-wash-0) 70%);
    }

    .home-promo--overlay.home-promo--tone-light .home-promo-card::after {
        background: linear-gradient(to right, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 70%);
        background: linear-gradient(to right, var(--home-promo-wash-1) 0%, var(--home-promo-wash-2) 40%, var(--home-promo-wash-0) 70%);
    }

    /* The wash starts on the copy side: start is the left in LTR, the right in RTL. */
    .rtl .home-promo--overlay .home-promo-card::after {
        transform: scaleX(-1);
    }

    .home-promo--overlay.home-promo--end .home-promo-card::after {
        transform: scaleX(-1);
    }

    .rtl .home-promo--overlay.home-promo--end .home-promo-card::after {
        transform: none;
    }

    .home-promo--overlay .home-promo-copy {
        width: 50%;
        padding: 32px 48px;
    }

    .home-promo--overlay.home-promo--end .home-promo-copy {
        margin-inline-start: auto;
    }
}

/* Face shape (sections/home-face-shape): the banner styles live in face-shape.css. Hidden unless
   templates/home.jinja says the guide is on, so the button never shows without its data. */
.home-face-shape {
    display: none;
}

.home--face-shape .home-face-shape,
.home--face-shape-editor .home-face-shape {
    display: block;
}

.home-face-shape .fshape-banner {
    margin: 0;
}

.home--face-shape .home-face-shape-note {
    display: none;
}

@media (max-width: 767.98px) {
    .home--face-shape .home-face-shape--desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .home--face-shape .home-face-shape--mobile {
        display: none;
    }
}

/* Try-on (sections/home-try-on): copy beside a phone that plays the try-on popup. Hidden unless
   templates/home.jinja says try-on categories are picked. The popup is laid out at the real
   popup's 360px width and scaled into the phone, so it keeps tryon.css proportions. */
.home-try-on {
    display: none;
}

.home--try-on .home-try-on,
.home--face-shape-editor .home-try-on {
    display: block;
}

.home--try-on .home-try-on-note {
    display: none;
}

@media (max-width: 767.98px) {
    .home--try-on .home-try-on--desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .home--try-on .home-try-on--mobile {
        display: none;
    }
}

.home-tryon {
    --home-tryon-accent: #ffc20e;
    --home-tryon-bg: color-mix(in srgb, var(--home-tryon-accent) 26%, #fff);
    --home-tryon-bg-2: #fff;
    --home-tryon-ink: var(--home-ink);
    --home-tryon-muted: var(--home-muted);
    --home-tryon-chip: #fff;
    --home-tryon-btn: var(--home-ink);
    --home-tryon-btn-text: #fff;
    --home-tryon-phone: #1a1a1a;
    position: relative;
    display: grid;
    gap: 20px;
    padding: 28px 20px 0;
    border-radius: 24px;
    background: linear-gradient(120deg, var(--home-tryon-bg) 0, color-mix(in srgb, var(--home-tryon-bg) 40%, var(--home-tryon-bg-2)) 55%, var(--home-tryon-bg-2) 100%);
    color: var(--home-tryon-ink);
    overflow: hidden;
    isolation: isolate;
}

.home-tryon-copy {
    min-width: 0;
}

.home-tryon-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--home-tryon-chip);
    font-size: 13px;
    font-weight: 800;
}

.home-tryon-live-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--home-tryon-accent);
    animation: home-tryon-ping 1.8s infinite;
}

@keyframes home-tryon-ping {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--home-tryon-accent) 70%, transparent);
    }

    70%,
    100% {
        box-shadow: 0 0 0 9px transparent;
    }
}

.home-tryon-title {
    margin: 0 0 10px;
    color: inherit;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.25;
}

.home-tryon-mark {
    padding: 0 4px;
    background: linear-gradient(transparent 60%, var(--home-tryon-accent) 60%);
    color: inherit;
}

.home-tryon-text {
    max-width: 460px;
    margin: 0 0 20px;
    color: var(--home-tryon-muted);
    font-size: 16px;
    line-height: 1.8;
}

.home-tryon-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.home-tryon-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background-color: var(--home-tryon-chip);
    font-size: 14px;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-tryon-step.is-active {
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .35);
    transform: translateY(-2px);
}

.home-tryon-step-num {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--home-tryon-accent);
    color: #111;
    font-size: 12px;
}

.home-tryon-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.home-tryon .home-tryon-btn {
    --btn-drift: var(--home-tryon-btn);
    min-height: 50px;
    padding-inline: 26px;
    border-color: var(--home-tryon-btn);
    border-radius: 999px;
    background-color: var(--home-tryon-btn);
    color: var(--home-tryon-btn-text);
    font-size: 16px;
    font-weight: 800;
}

.home-tryon .home-tryon-btn:hover,
.home-tryon .home-tryon-btn:focus-visible {
    color: var(--home-tryon-btn-text);
}

.home-tryon-btn-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.home-tryon-link {
    color: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--home-tryon-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.home-tryon-link:hover {
    color: inherit;
}

.home-tryon-privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 0;
    color: var(--home-tryon-muted);
    font-size: 13px;
}

.home-tryon-privacy svg {
    flex: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.home-tryon-media {
    align-self: end;
}

.home-tryon-img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-inline: auto;
}

/* Phone, cut by the banner's bottom edge */
.home-tryon-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-self: end;
}

.home-tryon-phone {
    position: relative;
    width: 262px;
    height: 430px;
    padding: 10px 10px 0;
    border-radius: 36px 36px 0 0;
    background-color: var(--home-tryon-phone);
    box-shadow: 0 -12px 40px -10px rgba(0, 0, 0, .25);
    transform: translateY(24px);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.home-tryon-phone::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 2;
    width: 60px;
    height: 16px;
    border-radius: 10px;
    background-color: var(--home-tryon-phone);
    transform: translateX(-50%);
}

.home-tryon-screen {
    position: relative;
    width: 242px;
    height: 100%;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    background-color: #fbf8f1;
}

.home-tryon-badge {
    position: absolute;
    top: 52%;
    inset-inline-start: calc(50% + 120px);
    z-index: 2;
    display: none;
    padding: 8px 12px;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .3);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    animation: home-tryon-bob 3.4s ease-in-out infinite;
}

@keyframes home-tryon-bob {
    50% {
        transform: translateY(-8px);
    }
}

/* The popup: tryon.css light look at 360px, scaled to the 242px screen. Physical left keeps
   the scaled box pinned to the screen's corner in both directions. */
.home-tryon-pop {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 640px;
    background-color: #fbf8f1;
    color: #111;
    transform: scale(.6722);
    transform-origin: 0 0;
}

.home-tryon-pop svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-tryon-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 44px 14px 12px;
    border-bottom: 1px solid #e6e6e6;
    background-color: #fff;
}

.home-tryon-pop-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.home-tryon-pop-title svg {
    width: 20px;
    height: 20px;
}

.home-tryon-pop-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f4f4f2;
}

.home-tryon-pop-close svg {
    width: 18px;
    height: 18px;
}

.home-tryon-pop-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin: 12px 12px 0;
    border-radius: 18px;
    background-color: #f4f1ea;
    overflow: hidden;
}

.home-tryon-avatar,
.home-tryon-glasses {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Same crop as the glasses' preserveAspectRatio="xMidYMin slice", so both stay aligned. */
.home-tryon-avatar {
    object-fit: cover;
    object-position: 50% 0;
}

.home-tryon-pop .home-tryon-glasses {
    fill: initial;
    stroke: none;
    opacity: 0;
    transition: opacity .5s ease;
}

.home-tryon-pop.is-tracking .home-tryon-glasses {
    opacity: 1;
}

.home-tryon-rim {
    display: none;
}

.home-tryon-pop.is-black .home-tryon-rim--black,
.home-tryon-pop.is-gold .home-tryon-rim--gold,
.home-tryon-pop.is-havana .home-tryon-rim--havana {
    display: inline;
}

.home-tryon-pop-guide {
    position: absolute;
    top: 46%;
    left: 50%;
    width: 58%;
    height: 62%;
    border: 2px dashed rgba(255, 255, 255, .8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity .3s ease;
}

.home-tryon-pop-status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    transition: opacity .3s ease;
}

.home-tryon-pop-spinner {
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: var(--home-tryon-accent);
    border-radius: 50%;
    animation: home-tryon-spin .8s linear infinite;
}

@keyframes home-tryon-spin {
    to {
        transform: rotate(360deg);
    }
}

.home-tryon-pop.is-tracking .home-tryon-pop-guide,
.home-tryon-pop.is-tracking .home-tryon-pop-status {
    opacity: 0;
}

.home-tryon-pop-shot {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .92);
    opacity: 0;
    transition: opacity .3s ease;
    cursor: pointer;
}

.home-tryon-pop-shot svg {
    width: 20px;
    height: 20px;
}

.home-tryon-pop.is-tracking .home-tryon-pop-shot {
    opacity: 1;
}

.home-tryon-pop-flash {
    position: absolute;
    inset: 0;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.home-tryon-pop.is-flash .home-tryon-pop-flash {
    opacity: .85;
    transition: none;
}

.home-tryon-pop-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
}

.home-tryon-pop-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background-color: #fff;
}

.home-tryon-pop-thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 34px;
    border-radius: 8px;
    background-color: #f4f4f2;
}

.home-tryon-pop-thumb svg {
    width: 20px;
    height: 20px;
}

.home-tryon-pop-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.home-tryon-pop-name {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-tryon-pop-price {
    flex: none;
    font-size: 15px;
    font-weight: 800;
}

.home-tryon-pop-swatches {
    display: flex;
    gap: 6px;
}

.home-tryon-pop-swatch {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #e6e6e6;
    cursor: pointer;
}

.home-tryon-pop-swatch.is-active {
    box-shadow: 0 0 0 2px #111;
}

.home-tryon-pop-swatch--black {
    background-color: #1a1a1a;
}

.home-tryon-pop-swatch--gold {
    background-color: #c9a24a;
}

.home-tryon-pop-swatch--havana {
    background-color: #7a4520;
}

/* The drift itself comes from .tryon-cta/.tryon-alt in custom.css. */
.home-tryon-pop-cta,
.home-tryon-pop-alt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 9px 12px;
    border-radius: 14px;
    text-align: start;
}

.home-tryon-pop .home-tryon-pop-cta {
    --btn-drift: #111;
    border: 2px solid #111;
    background-color: #111;
    color: #fff;
}

.home-tryon-pop .home-tryon-pop-alt {
    --btn-drift: #fff6da;
    --btn-drift-from: #fff;
    --btn-drift-tone: var(--btn-drift);
    --btn-drift-stop: 62%;
    border: 1.5px solid #e6e6e6;
    background-color: #fff;
    color: #111;
}

.home-tryon-pop-cta.is-pressed {
    transform: scale(.97);
}

.home-tryon-pop-bub {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f4f4f2;
}

.home-tryon-pop-cta .home-tryon-pop-bub {
    background-color: var(--home-tryon-accent);
    color: #111;
}

.home-tryon-pop-bub svg,
.home-tryon-pop-go {
    width: 20px;
    height: 20px;
}

.home-tryon-pop-label {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.35;
}

.home-tryon-pop-label b {
    font-size: 15px;
}

.home-tryon-pop-label small {
    font-size: 12px;
    opacity: .75;
}

/* The arrow drawing points left, which is forward only in RTL. */
.home-tryon-pop-go {
    transform: scaleX(-1);
}

.rtl .home-tryon-pop-go {
    transform: none;
}

.home-tryon-pop-privacy {
    margin: 0;
    color: #6b6b6b;
    font-size: 12px;
    text-align: center;
}

.home-tryon-pop-tap {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--home-tryon-accent) 55%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.home-tryon-pop-tap.is-on {
    opacity: 1;
}

@media (hover: hover) {
    .home-tryon:hover .home-tryon-phone {
        transform: translateY(6px) rotate(-2deg);
    }

    .home-tryon-pop .home-tryon-pop-alt:hover {
        border-color: var(--home-tryon-accent);
    }
}

@media (min-width: 768px) {
    .home-tryon {
        grid-template-columns: 1.1fr .9fr;
        align-items: center;
        padding: 38px 38px 0;
    }

    .home-tryon-copy {
        padding-bottom: 38px;
    }

    .home-tryon--art-start .home-tryon-copy {
        order: 2;
    }

    .home-tryon-title {
        font-size: 36px;
    }

    .home-tryon-phone {
        height: 470px;
    }

    .home-tryon-badge {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-tryon-live-dot,
    .home-tryon-badge {
        animation: none;
    }

    .home-tryon-pop-spinner {
        animation-duration: 2s;
    }

    .home-tryon-phone,
    .home-tryon-step,
    .home-tryon-pop-tap {
        transition: none;
    }

    .home-tryon:hover .home-tryon-phone {
        transform: translateY(24px);
    }
}

/* Newsletter (sections/home-newsletter): the card carries data-animate and has no hover transform.
   Card style: surface card, icon + copy on the start side, the joined input/button on the end side.
   Inline style: a full-width hairline band with everything on one row from desktop. */
.home-newsletter-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--home-radius);
    background-color: var(--home-surface);
    color: var(--home-ink);
}

.home-newsletter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-color);
}

.home-newsletter-icon {
    width: 26px;
    height: 26px;
}

.home-newsletter-title {
    margin: 0 0 4px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-newsletter-subtitle {
    margin: 0;
    color: var(--home-muted);
}

.home-newsletter-formwrap {
    width: 100%;
}

.home-newsletter-form {
    display: flex;
    width: 100%;
    max-width: 480px;
}

.home-newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    padding: 12px 20px;
    border: 1px solid var(--home-line);
    border-start-start-radius: 999px;
    border-end-start-radius: 999px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    background-color: #fff;
    color: var(--home-ink);
}

.home-newsletter-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.home-newsletter-btn {
    flex-shrink: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 999px;
    border-end-end-radius: 999px;
}

@media (min-width: 992px) {
    .home-newsletter-card {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 32px 40px;
    }

    .home-newsletter-copy {
        flex: 1 1 auto;
    }

    .home-newsletter-formwrap {
        flex: 0 1 480px;
        width: auto;
    }
}

/* Inline band: no card surface, hairlines above and below */
.home-newsletter--inline .home-newsletter-card {
    padding-inline: 0;
    border-block: 1px solid var(--home-line);
    border-radius: 0;
    background-color: transparent;
}

.home-newsletter--inline .home-newsletter-badge {
    background-color: var(--home-surface);
}

.home-newsletter--inline .home-newsletter-title {
    font-size: 1.5rem;
}

/* Testimonials (sections/home-testimonials): quote cards, photo cards with a glass caption, or 9:16
   story cards with a muted in-view preview and one modal per section. Hover and focus effects target
   the inner .home-testimonial-card or its media, never the [data-animate] wrap/column (R7). */
.home-testimonials {
    --home-star: #d9a23a; /* rating gold: reads as "stars" whatever the brand colour is */
}

.home-testimonials-head {
    margin-bottom: 24px;
}

.home-testimonials-head .home-section-head {
    margin-bottom: 0;
}

.home-testimonials-subtitle {
    max-width: 640px;
    margin: 8px 0 0;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.home-testimonials-list {
    display: flex;
    margin-inline: -8px;
}

.home-testimonials-col {
    display: flex;
    min-width: 0;
    padding: 8px;
}

.home-testimonials-col > .home-testimonial-card {
    flex: 1 1 auto;
    width: 100%;
}

/* Mobile slider: swipeable row, the next card peeks in */
.home-testimonials--slider .home-testimonials-list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-testimonials--slider .home-testimonials-list::-webkit-scrollbar {
    display: none;
}

.home-testimonials {
    --home-testimonials-cols: 4;
}

.home-testimonials--cols-3 {
    --home-testimonials-cols: 3;
}

.home-testimonials--slider .home-testimonials-col {
    flex: 0 0 80%;
    scroll-snap-align: start;
}

.home-testimonials--image.home-testimonials--slider .home-testimonials-col {
    flex-basis: 66%;
}

.home-testimonials--story.home-testimonials--slider .home-testimonials-col {
    flex-basis: 62%;
}

/* Grid: one quote per row on phones, two story cards */
.home-testimonials--grid .home-testimonials-list {
    flex-wrap: wrap;
}

.home-testimonials--grid .home-testimonials-col {
    flex: 0 0 100%;
}

.home-testimonials--story.home-testimonials--grid .home-testimonials-col {
    flex-basis: 50%;
}

/* Two photo cards per row on phones only; from 768px the shared grid columns apply. */
@media (max-width: 767.98px) {
    .home-testimonials--image.home-testimonials--grid .home-testimonials-col {
        flex-basis: 50%;
    }
}

@media (min-width: 768px) {
    /* Before slick runs keep the final column geometry; the row stays natively scrollable if slick never starts. */
    .home-testimonials--slider .home-testimonials-list:not(.slick-initialized) .home-testimonials-col,
    .home-testimonials--grid .home-testimonials-col {
        flex-basis: 50%;
    }

    .home-testimonials--story.home-testimonials--slider .home-testimonials-list:not(.slick-initialized) .home-testimonials-col,
    .home-testimonials--story.home-testimonials--grid .home-testimonials-col {
        flex-basis: calc(100% / 3);
    }

    .home-testimonials--slider .home-testimonials-list.slick-initialized {
        display: block;
    }

    /* Equal-height cards: slick runs with rows: 0, so each column is the slide itself. */
    .home-testimonials .slick-track {
        display: flex;
    }

    /* Slick sizes each slide inline; drop the phone flex-basis (80%) or every slide grows to 80% of the track. */
    .home-testimonials .slick-initialized .slick-slide {
        display: flex;
        flex: 0 0 auto;
        height: auto;
    }
}

@media (min-width: 992px) {
    .home-testimonials--slider .home-testimonials-list:not(.slick-initialized) .home-testimonials-col,
    .home-testimonials--grid .home-testimonials-col {
        flex-basis: calc(100% / 3);
    }
}

@media (min-width: 1200px) {
    .home-testimonials--slider .home-testimonials-list:not(.slick-initialized) .home-testimonials-col,
    .home-testimonials--grid .home-testimonials-col {
        flex-basis: calc(100% / var(--home-testimonials-cols));
    }
}

@media (min-width: 992px) {

    .home-testimonials--story.home-testimonials--slider .home-testimonials-list:not(.slick-initialized) .home-testimonials-col,
    .home-testimonials--story.home-testimonials--grid .home-testimonials-col {
        flex-basis: 25%;
    }
}

/* Slick arrows over the card edges; the vertical padding leaves room for the hover lift. */
.home-testimonials .slick-prev {
    inset-inline-start: -8px;
}

.home-testimonials .slick-next {
    inset-inline-end: -8px;
}

.home-testimonials .slick-prev,
.home-testimonials .slick-next {
    z-index: 1;
}

.home-testimonials .slick-list,
.home-testimonials--slider .home-testimonials-list:not(.slick-initialized) {
    padding-block: 6px;
}

.home-testimonial-card {
    position: relative;
    margin: 0;
    border-radius: var(--home-radius);
    transition: transform .4s var(--home-ease), box-shadow .4s var(--home-ease);
}

/* Stars */
.home-stars {
    display: inline-flex;
    gap: 2px;
    line-height: 0;
    color: var(--home-star);
}

.home-star {
    width: 14px;
    height: 14px;
}

.home-star--on {
    fill: currentColor;
}

.home-star--off {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
    opacity: .5;
}

/* Text: quote card on the soft surface, a large faint quote mark behind the copy */
.home-testimonial-card--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 20px 18px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--home-line);
    background-color: var(--theme-bg);
    color: var(--home-ink);
}

.home-testimonial-glyph {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    z-index: -1;
    width: 34px;
    height: 34px;
    fill: var(--home-ink);
    opacity: .08;
}

.rtl .home-testimonial-glyph {
    transform: scaleX(-1);
}

.home-testimonial-quote {
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
}

.home-testimonial-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1.25rem;
    line-height: 1.7;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.home-testimonial-card.is-expanded .home-testimonial-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.home-testimonial-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: -6px;
    font-size: 1.083rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.home-testimonial-more[hidden] {
    display: none;
}

.home-testimonial-more:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.home-testimonial-more-icon {
    width: 16px;
    height: 16px;
    transition: transform .3s var(--home-ease);
}

.home-testimonial-card.is-expanded .home-testimonial-more-icon {
    transform: rotate(180deg);
}

.home-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--home-line);
}

.home-testimonial-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--home-surface);
    color: var(--home-ink);
    font-size: 1.25rem;
    font-weight: 600;
}

.home-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-testimonial-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-testimonial-name {
    font-size: 1.167rem;
    font-weight: 600;
}

.home-testimonial-meta {
    font-size: 1.083rem;
    color: var(--home-muted);
}

/* Image: photo on top, the quote underneath so it never covers a face */
.home-testimonial-card--image {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--home-line);
    background-color: var(--theme-bg);
    color: var(--home-ink);
}

.home-testimonial-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--home-surface);
}

.rtl .home-testimonials .is-demo {
    transform: scaleX(-1);
}

.home-testimonial-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--home-ease);
}

.home-testimonial-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px 18px;
}

/* No photo: a soft quote tile beside the photo cards, the quote mark in the corner. */
.home-testimonial-card--image.is-plain {
    border-color: transparent;
    background-color: var(--home-surface);
}

.home-testimonial-card--image.is-plain .home-testimonial-panel {
    justify-content: center;
    padding-top: 48px;
}

.home-testimonial-card--image.is-plain .home-testimonial-glyph {
    width: 40px;
    height: 40px;
    opacity: .14;
}

.home-testimonial-panel-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1.25rem;
    line-height: 1.65;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


.home-testimonial-panel-who,
.home-testimonial-story-who {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0;
}

/* Names line up along the bottom of equal-height photo cards. */
.home-testimonial-panel-who {
    margin-top: auto;
    padding-top: 4px;
}

/* Story (video and image): 9:16 card. For video the still sits underneath and the preview fades in
   only once it plays; for image the photo drifts slowly so the row feels alive like the video one. */
.home-testimonial-card--story {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--home-ink);
    color: #fff;
}

.home-testimonial-still,
.home-testimonial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .8s var(--home-ease), transform 1.4s var(--home-ease);
}

.home-testimonial-video {
    opacity: 0;
}

.home-testimonial-video.is-playing,
.home-testimonial-card--video.is-nostill .home-testimonial-video {
    opacity: 1;
}

/* iOS paints a start-playback button from the UA shadow DOM (e.g. in low-power mode);
   the UA style beats normal author rules, so !important is required. */
.home-testimonial-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.home-testimonial-video::-webkit-media-controls {
    display: none !important;
}

.home-testimonial-card--story::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 62%);
}

.home-testimonial-card--image-story .home-testimonial-still {
    animation: home-story-drift 14s ease-in-out infinite alternate;
}

/* The whole card opens the photo; the expand pill sits small in the top corner. Two classes so it
   wins over the centred .home-testimonial-play defined below. */
.home-testimonial-play.home-testimonial-open {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
}

.home-testimonial-open .home-testimonial-play-pill {
    width: 36px;
    height: 36px;
}

.home-testimonial-open .home-testimonial-play-pill svg {
    margin-left: 0;
    fill: none;
}

@keyframes home-story-drift {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.12) translate3d(-2%, -2%, 0);
    }
}

/* The button covers the whole card; the pill is its visual. */
.home-testimonial-play {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-testimonial-play:focus {
    outline: none; /* the ring is drawn on the pill (focus-visible below) */
}

.home-testimonial-play-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform .35s var(--home-ease), background-color .35s var(--home-ease);
}

/* Media convention: the play triangle points right in both directions, so a physical
   margin centres it optically. */
.home-testimonial-play-pill svg {
    margin-left: 3px;
    fill: currentColor;
}

.home-testimonial-play:focus-visible .home-testimonial-play-pill {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary-color);
    transform: scale(1.08);
}

.home-testimonial-story {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    pointer-events: none;
}

.home-testimonial-story-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1.25rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-testimonial-story .home-testimonial-meta {
    color: rgba(255, 255, 255, .75);
}

@media (hover: hover) {
    .home-testimonial-card--text:hover,
    .home-testimonial-card--image:hover,
    .home-testimonial-card--story:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    }

    .home-testimonial-card--image:hover .home-testimonial-photo-img,
    .home-testimonial-card--video:hover .home-testimonial-still,
    .home-testimonial-card--video:hover .home-testimonial-video {
        transform: scale(1.06);
    }

    .home-testimonial-card--story:hover .home-testimonial-play-pill {
        transform: scale(1.08);
        background-color: rgba(255, 255, 255, .32);
    }
}

.home-testimonial-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

@media (max-width: 575.98px) {
    .home-testimonials--image .home-testimonial-panel {
        padding: 12px 12px 14px;
    }

    .home-testimonials--image .home-testimonial-panel-text {
        font-size: 1.167rem;
        -webkit-line-clamp: 3;
    }
}

/* Modal: one per section, dark and story-shaped; the caption sits under the video. */
.home-testimonial-modal .modal-dialog {
    max-width: 420px;
}

.home-testimonial-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--home-radius);
    background-color: #000;
    color: #fff;
}

.home-testimonial-modal-media {
    aspect-ratio: 9 / 16;
    max-height: 75vh;
    background-color: #000;
}

.home-testimonial-modal-img,
.home-testimonial-modal-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Photo stories: the frame follows the photo instead of the 9:16 video box. */
.home-testimonial-modal--photo .modal-dialog {
    max-width: 520px;
}

.home-testimonial-modal--photo .home-testimonial-modal-media {
    aspect-ratio: auto;
    max-height: none;
}

.home-testimonial-modal--photo .home-testimonial-modal-img {
    height: auto;
    max-height: 75vh;
}

.home-testimonial-modal-caption {
    padding: 16px 20px 20px;
}

.home-testimonial-modal-quote {
    margin: 0 0 6px;
    line-height: 1.6;
    white-space: pre-line;
}

.home-testimonial-modal-name {
    margin: 0;
    font-weight: 700;
}

.home-testimonial-modal-quote:empty,
.home-testimonial-modal-name:empty {
    display: none;
}

/* Over the video's top corner. Bootstrap's .close hover/focus rule is (0,4,0), so the
   hover/focus selectors repeat it to keep the button light on the dark modal. */
.home-testimonial-modal-close.close,
.home-testimonial-modal-close.close:not(:disabled):not(.disabled):hover,
.home-testimonial-modal-close.close:not(:disabled):not(.disabled):focus {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    text-shadow: none;
    opacity: 1;
}

.home-testimonial-modal-close.close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .home-testimonial-card,
    .home-testimonial-photo-img,
    .home-testimonial-still,
    .home-testimonial-video,
    .home-testimonial-play-pill,
    .home-testimonial-more-icon {
        transition: none;
    }

    .home-testimonial-card--image-story .home-testimonial-still {
        animation: none;
    }

    .home-testimonial-card:hover,
    .home-testimonial-card:focus-within,
    .home-testimonial-card:hover .home-testimonial-photo-img,
    .home-testimonial-card:hover .home-testimonial-still,
    .home-testimonial-card:hover .home-testimonial-video {
        transform: none;
    }
}

/* FAQ (sections/home-faq): [data-animate] sits on each .home-faq-item, so open-state effects live on
   inner parts only (R7). Answers collapse via grid-template-rows 0fr -> 1fr, and only under .js-ready,
   so without JS every answer stays visible. The plus icon is two bars; the vertical one fades and
   rotates away when open. Styles: accordion (hairlines), cards (boxed rows), split (heading beside list). */
.home-faq-subtitle {
    margin: 8px 0 0;
    color: var(--home-muted);
}

.home-faq-head {
    margin-bottom: 24px;
}

.home-faq-head .home-section-head {
    margin-bottom: 0;
}

.home-faq-item {
    border-bottom: 1px solid var(--home-line);
}

.home-faq-q {
    margin: 0;
    font-size: inherit;
}

.home-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    border: 0;
    background: none;
    color: var(--home-ink);
    font: inherit;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
}

.home-faq-toggle:focus-visible {
    outline: 2px solid var(--home-ink);
    outline-offset: 2px;
}

/* Plus icon: the muted theme text colour, deepening to the ink when the item opens. */
.home-faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--home-faq-icon-color, var(--home-muted));
    transition: color .3s var(--home-ease);
}

.home-faq-item.is-open .home-faq-icon {
    color: var(--home-faq-icon-open-color, var(--home-ink));
}

.home-faq-icon::before,
.home-faq-icon::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    border-radius: 1px;
    background-color: currentColor;
    transition: transform .3s var(--home-ease), opacity .3s var(--home-ease);
}

.home-faq-icon::after {
    transform: rotate(90deg);
}

.home-faq-item.is-open .home-faq-icon::after {
    transform: rotate(0);
    opacity: 0;
}

.home-faq-a-inner {
    overflow: hidden;
    min-height: 0;
}

.home-faq-a-inner p {
    margin: 0;
    padding-bottom: 20px;
    color: var(--home-muted);
}

/* Answers loaded from the store FAQ page are rich text, so the padding sits on the wrapper */
.home-faq-a-body {
    padding-bottom: 20px;
    color: var(--home-muted);
}

.home-faq-a-body p {
    margin: 0 0 .6em;
    padding-bottom: 0;
}

.home-faq-a-body > :last-child {
    margin-bottom: 0;
}


.home-faq.js-ready .home-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--home-ease);
}

.home-faq.js-ready .home-faq-item.is-open > .home-faq-a {
    grid-template-rows: 1fr;
}

@media (prefers-reduced-motion: reduce) {
    .home-faq.js-ready .home-faq-a,
    .home-faq-icon,
    .home-faq-icon::before,
    .home-faq-icon::after {
        transition: none;
    }
}

/* Cards: each item a rounded surface card, the open one lifted by a shadow */
.home-faq--cards .home-faq-list {
    display: grid;
    gap: 12px;
}

.home-faq--cards .home-faq-item {
    padding-inline: 20px;
    border: 0;
    border-radius: var(--home-radius);
    background-color: var(--home-surface);
    transition: box-shadow .3s var(--home-ease);
}

.home-faq--cards .home-faq-item.is-open {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* Split: heading, subtitle and CTA beside the list from desktop; stacked on mobile */
.home-faq-side {
    margin-bottom: 24px;
}

.home-faq-still {
    margin: 16px 0 12px;
    font-weight: 500;
    color: var(--home-ink);
}

.home-faq--split .home-faq-cta {
    margin-top: 16px;
}

.home-faq--split .home-faq-still + .home-faq-cta {
    margin-top: 0;
}

@media (min-width: 992px) {
    .home-faq--split .home-faq-layout {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 64px;
        align-items: start;
    }

    .home-faq--split .home-faq-side {
        margin-bottom: 0;
    }
}
