/* UIUX-007R2 homepage — white/grey product-led discovery. */

.home .site-main,
.home .site-main > section,
.home .site-main > section:nth-of-type(2n) {
    background: var(--uiux7r2-canvas) !important;
    background-image: none !important;
}

.home .site-main > section {
    border-top: 1px solid var(--uiux7r2-rule);
}

.home .site-main > section.homepage-hero.homepage-hero {
    padding: clamp(3rem, 6vw, 6.5rem) 0 0;
    border-top: 0 !important;
    background: var(--uiux7r2-surface) !important;
}

.home .homepage-hero__layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(25rem, .94fr);
    gap: clamp(2.5rem, 6vw, 7rem);
    align-items: center;
}

.home .homepage-hero__copy h1 {
    max-width: 11ch;
    margin-bottom: 1.25rem;
    color: var(--uiux7r2-ink);
    font-family: var(--uiux7r2-sans);
    font-size: clamp(3.35rem, 5.8vw, 6.25rem);
    font-weight: 730;
    line-height: .96;
    letter-spacing: -.055em;
}

.home .homepage-hero__lead {
    max-width: 40rem;
    color: var(--uiux7r2-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.home .homepage-hero__actions {
    gap: .75rem;
}

.home .homepage-hero__actions .btn {
    min-height: 3.25rem;
    border-radius: 7px !important;
}

.home .homepage-hero__search-action {
    min-height: 3.25rem;
    border: 0 !important;
    border-bottom: 1px solid var(--uiux7r2-rule-strong) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--uiux7r2-ink) !important;
    box-shadow: none !important;
}

.home .homepage-hero__routes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--uiux7r2-rule);
}

.home .homepage-hero__routes a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    min-width: 0;
    padding: .75rem 1rem;
    border: 0 !important;
    border-right: 1px solid var(--uiux7r2-rule) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--uiux7r2-ink);
    text-decoration: none;
}

.home .homepage-hero__routes a:last-child {
    border-right: 0 !important;
}

.home .homepage-hero__routes a:hover {
    background: var(--uiux7r2-surface-muted) !important;
}

.home .homepage-hero__routes a > svg {
    width: 1.05rem;
    color: var(--uiux7r2-accent);
}

.home .homepage-hero__routes a > span:last-child {
    display: grid;
    gap: .1rem;
}

.home .homepage-hero__routes strong {
    font-size: .84rem;
}

.home .homepage-hero__routes small {
    color: var(--uiux7r2-muted);
    font-size: .8125rem;
}

.home .homepage-hero__catalog {
    border: 1px solid var(--uiux7r2-rule);
    border-radius: 12px;
    background: var(--uiux7r2-surface-muted);
    box-shadow: none;
    overflow: hidden;
}

.home .homepage-hero .homepage-hero-feature {
    border: 0;
    background: transparent;
}

.home .homepage-hero-feature__media {
    min-height: clamp(18rem, 31vw, 30rem);
    background: var(--uiux7r2-surface-muted);
}

.home .homepage-hero-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .homepage-hero-feature__body {
    margin: 0;
    max-width: none;
    padding: 1.25rem 1.35rem 1.35rem;
    border-top: 1px solid var(--uiux7r2-rule);
    border-radius: 0;
    background: var(--uiux7r2-surface);
    box-shadow: none;
}

.home .homepage-hero .hero-slider-controls {
    border-top: 1px solid var(--uiux7r2-rule);
    background: var(--uiux7r2-surface);
}

.home .hero-trust-strip {
    margin-top: clamp(2.5rem, 5vw, 5rem);
    border-color: var(--uiux7r2-rule);
    background: var(--uiux7r2-surface) !important;
}

.home .category-showcase,
.home .new-products,
.home .why-trust,
.home .certifications,
.home .health-goals,
.home .buying-guides,
.home .faq-section {
    padding-block: clamp(3.25rem, 6vw, 6.25rem);
    background: var(--uiux7r2-surface) !important;
}

.home .category-showcase::before {
    display: none;
}

.home .homepage-intelligence-cluster,
.home .homepage-guidance-cluster {
    background: transparent !important;
}

.home .section-heading h2,
.home .category-showcase h2,
.home .aanya-connect h2 {
    color: var(--uiux7r2-ink);
    font-family: var(--uiux7r2-sans);
    font-size: clamp(2rem, 3.8vw, 3.75rem);
    font-weight: 710;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.home .ingredient-discovery,
.home .featured-brands {
    background: var(--uiux7r2-surface-muted) !important;
}

/* Connect becomes a clean registry instead of a colored billboard. */
.home .aanya-connect {
    padding: clamp(4rem, 7vw, 7rem) 0;
    background: var(--uiux7r2-surface) !important;
}

.home .aanya-connect__layout {
    display: grid;
    grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.25fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
    padding: clamp(1.75rem, 4vw, 3.5rem);
    border: 1px solid var(--uiux7r2-rule);
    border-radius: 12px;
    background: var(--uiux7r2-surface);
    background-image: none !important;
    color: var(--uiux7r2-ink);
    overflow: hidden;
}

.home .aanya-connect__eyebrow {
    margin: 0 0 .8rem;
    color: var(--uiux7r2-accent);
    font-size: .8125rem;
    font-weight: 780;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home .aanya-connect__intro h2 {
    max-width: 13ch;
    margin: 0;
    color: var(--uiux7r2-ink);
}

.home .aanya-connect__intro > p:not(.aanya-connect__eyebrow) {
    max-width: 34rem;
    margin: 1.25rem 0;
    color: var(--uiux7r2-muted);
    line-height: 1.65;
}

.home .aanya-connect__overview {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    color: var(--uiux7r2-ink);
    font-weight: 720;
    text-underline-offset: .3em;
}

.home .aanya-connect__routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.home .aanya-connect__route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: start;
    min-height: 8.75rem;
    padding: 1rem;
    border: 1px solid var(--uiux7r2-rule);
    border-radius: 10px;
    background: var(--uiux7r2-canvas);
    color: var(--uiux7r2-ink);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.home .aanya-connect__route:hover {
    border-color: var(--uiux7r2-rule-strong);
    background: var(--uiux7r2-surface-muted);
    transform: translateY(-1px);
}

.home .aanya-connect__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--uiux7r2-rule);
    border-radius: 50%;
    background: var(--uiux7r2-surface);
    color: var(--uiux7r2-accent);
}

.home .aanya-connect__route > span:nth-child(2) {
    display: grid;
    gap: .4rem;
}

.home .aanya-connect__route small,
.home .aanya-connect__arrow {
    color: var(--uiux7r2-muted);
}

.home .guide-reading-time {
    color: var(--uiux7r2-muted);
}

@media (max-width: 960px) {
    .home .homepage-hero__layout {
        grid-template-columns: minmax(0, .94fr) minmax(21rem, 1.06fr);
        gap: 2rem;
    }

    .home .aanya-connect__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .home .site-main > section.homepage-hero.homepage-hero {
        padding-top: 1.75rem;
    }

    .home .homepage-hero__layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home .homepage-hero__copy h1 {
        max-width: 10ch;
        font-size: clamp(2rem, 11vw, 3.35rem);
    }

    .home .homepage-hero__lead {
        font-size: .98rem;
        line-height: 1.5;
    }

    .home .homepage-hero__actions {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home .homepage-hero__routes {
        display: flex;
        gap: .35rem;
        margin-inline: -1rem;
        padding: .9rem 1rem 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .home .homepage-hero__routes a {
        flex: 0 0 auto;
        min-width: auto;
        padding: .55rem .7rem;
        border: 1px solid var(--uiux7r2-rule) !important;
        border-radius: 7px !important;
    }

    .home .homepage-hero__routes a:last-child {
        border: 1px solid var(--uiux7r2-rule) !important;
    }

    .home .homepage-hero__routes small {
        display: none;
    }

    .home .homepage-hero__catalog {
        border-radius: 10px;
    }

    .home .homepage-hero-feature__media {
        min-height: 13rem;
    }

    .home .aanya-connect {
        padding-block: 3.5rem;
    }

    .home .aanya-connect__layout {
        margin-inline: 0;
        padding: 1.25rem;
        border-radius: 10px;
    }

    .home .aanya-connect__routes {
        grid-template-columns: 1fr;
    }

    .home .aanya-connect__route {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .home .homepage-hero__actions {
        grid-template-columns: 1fr;
    }

    .home .homepage-hero__search-action {
        justify-content: flex-start;
    }

    .home .homepage-hero-feature__media {
        min-height: 10.5rem;
    }

    .home .homepage-hero-feature__body {
        padding: .8rem .9rem .9rem;
    }
}

/* UIUX-007R3 final homepage composition. This evolves the established R2
   owner without introducing another global override file. */
.home .site-main,
.home .site-main > section,
.home .site-main > section:nth-of-type(2n) {
    background: var(--surface-primary) !important;
}

.home .site-main > section.homepage-hero.homepage-hero {
    padding: clamp(1.75rem, 4vw, 3.75rem) 0 0;
}

.home .homepage-hero__layout {
    grid-template-columns: minmax(0, .94fr) minmax(27rem, 1.06fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    padding-block: 0;
}

.home .homepage-hero__copy {
    padding-top: clamp(1.5rem, 5vw, 5rem);
}

.home .homepage-hero__copy h1 {
    max-width: 12ch;
    margin-bottom: 1rem;
    font-size: clamp(2.75rem, 5vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.home .homepage-hero__lead {
    max-width: 38rem;
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.6;
}

.home .homepage-hero__actions .btn,
.home .homepage-hero__search-action {
    border-radius: 9px !important;
}

.home .homepage-hero__search-action {
    border: 1px solid var(--border-strong) !important;
    background: var(--surface-primary) !important;
}

.home .homepage-hero__routes {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.25rem;
    border: 0;
}

.home .homepage-hero__routes a,
.home .homepage-hero__routes a:last-child {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    padding: .6rem .75rem;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 9px !important;
    background: var(--surface-primary) !important;
}

.home .homepage-hero__routes a:hover,
.home .homepage-hero__routes a:focus-visible {
    border-color: var(--border-strong) !important;
    background: var(--surface-section-alt) !important;
}

.home .homepage-hero__catalog {
    border-radius: 16px;
    background: var(--surface-section-alt);
    box-shadow: 0 18px 44px rgb(24 26 25 / 8%);
}

.home .homepage-hero-feature__media {
    height: clamp(22rem, 34vw, 31rem);
    min-height: clamp(20rem, 32vw, 31rem);
}

.home .homepage-hero .homepage-hero-feature__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.home .homepage-hero-feature__body {
    padding: 1.1rem 1.25rem 1.2rem;
}

.home .hero-trust-strip {
    margin-top: clamp(1.75rem, 4vw, 3.5rem);
}

/* UIUX-008R: section rhythm is the single --section-spacing-y token in
   layout/section.css; this group only binds to it. */
.home :where(.category-showcase, .new-products, .why-trust, .certifications, .health-goals, .buying-guides, .faq-section) {
    padding-block: var(--section-spacing-y);
}

.home :where(.category-showcase, .ingredient-discovery, .featured-brands, .faq-section) {
    background: var(--surface-canvas) !important;
}

.home .section-heading h2,
.home .category-showcase h2,
.home .aanya-connect h2 {
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 730;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.home .aanya-connect {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.home .aanya-connect__layout {
    grid-template-columns: minmax(18rem, .78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.5rem, 3vw, 2.75rem) 0;
    border: 0;
    border-block: 1px solid var(--border-subtle);
    border-radius: 0;
}

.home .aanya-connect__eyebrow { display: none; }

.home .aanya-connect__routes {
    gap: 0 1.25rem;
}

.home .aanya-connect__route {
    min-height: 0;
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: transparent;
}

.home .aanya-connect__route:hover {
    border-color: var(--border-strong);
    background: transparent;
    transform: translateX(2px);
}

.home .aanya-connect__icon {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: var(--surface-section-alt);
}

@media (max-width: 960px) {
    .home .homepage-hero__layout {
        grid-template-columns: minmax(0, .9fr) minmax(21rem, 1.1fr);
    }

    .home .aanya-connect__layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .home .site-main > section.homepage-hero.homepage-hero { padding-top: 1.25rem; }

    .home .homepage-hero__layout {
        grid-template-columns: 1fr;
    }

    .home .homepage-hero__copy { padding-top: 0; }

    .home .homepage-hero__copy h1 {
        max-width: 12ch;
        font-size: clamp(2.35rem, 10.5vw, 3.5rem);
    }

    .home .homepage-hero__routes {
        flex-wrap: nowrap;
        margin-inline: -1rem;
        padding: .75rem 1rem .25rem;
        overflow-x: auto;
    }

    .home .homepage-hero__routes a { flex: 0 0 auto; }
    .home .homepage-hero-feature__media {
        height: clamp(14rem, 66vw, 20rem);
        min-height: 0;
    }
    .home .aanya-connect { padding-block: 2.75rem; }
    .home .aanya-connect__layout { padding-block: 1.25rem; }
}

/* UIUX-007R3.1 — one homepage rhythm with compact, meaningful color. */
.home .container.container--wide {
    max-width: var(--content-width-wide, 90rem);
}

.home .site-main > section,
.home .homepage-intelligence-cluster > section,
.home .homepage-guidance-cluster > section {
    border-top: 1px solid var(--border-subtle);
}

.home :where(
    .category-showcase,
    .discovery-section,
    .new-products,
    .aanya-connect,
    .why-trust,
    .ingredient-discovery,
    .certifications,
    .health-goals,
    .buying-guides,
    .featured-brands,
    .faq-section
) {
    padding-block: clamp(3.25rem, 5.75vw, 5.75rem);
}

.home :where(.section-heading, .category-showcase__header) {
    max-width: 48rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    text-align: left;
}

.home :where(.section-heading h2, .category-showcase h2, .aanya-connect h2) {
    max-width: 18ch;
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.04;
}

.home .homepage-hero__layout {
    grid-template-columns: minmax(0, .92fr) minmax(27rem, 1.08fr);
    align-items: center;
    gap: clamp(2rem, 4.5vw, 4.5rem);
}

.home .homepage-hero__copy {
    padding-top: 0;
}

.home .homepage-hero__copy h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 4.8vw, 5rem);
}

.home .homepage-hero__routes a {
    padding: .6rem .8rem .6rem .6rem;
}

.home .homepage-hero__routes a > span:first-child {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    place-items: center;
    border-radius: 50%;
    background: #245b45;
    color: #fff;
}

.home .homepage-hero__routes a:nth-child(2) > span:first-child { background: #356c80; }
.home .homepage-hero__routes a:nth-child(3) > span:first-child { background: #a7513e; }

.home .homepage-hero__routes a > span:first-child svg {
    width: 1rem;
    height: 1rem;
}

.home .category-showcase,
.home .ingredient-discovery,
.home .featured-brands,
.home .faq-section {
    background: var(--surface-canvas) !important;
}

.home .discovery-grid,
.home .trust-grid {
    gap: .75rem;
}

.home .discovery-card,
.home .trust-card {
    --feature-accent: #245b45;
}

.home :is(.discovery-card--blue, .trust-card--blue) { --feature-accent: #356c80; }
.home :is(.discovery-card--terracotta, .trust-card--terracotta) { --feature-accent: #a7513e; }
.home :is(.discovery-card--violet, .trust-card--violet) { --feature-accent: #70516d; }
.home :is(.discovery-card--ochre, .trust-card--ochre) { --feature-accent: #87631f; }
.home :is(.discovery-card--teal, .trust-card--teal) { --feature-accent: #2f6f69; }

.home :is(.discovery-card-icon, .trust-icon) {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--feature-accent);
    color: #fff;
}

.home :is(.discovery-card-icon, .trust-icon) svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home .new-products-rail__media-status {
    display: flex;
    gap: .45rem;
    align-items: center;
    color: var(--text-secondary);
}

.home .new-products-rail__media-status::before {
    width: .45rem;
    height: .45rem;
    flex: 0 0 .45rem;
    border-radius: 50%;
    background: #356c80;
    content: "";
}

.home .aanya-connect {
    background: var(--surface-canvas) !important;
}

.home .aanya-connect__shell {
    max-width: var(--content-width-wide, 90rem);
}

.home .aanya-connect__layout {
    display: grid;
    grid-template-columns: minmax(18rem, .82fr) minmax(24rem, 1.18fr);
    grid-template-areas:
        "intro media"
        "routes routes";
    gap: clamp(1.5rem, 3.5vw, 3rem);
    padding: clamp(1.5rem, 3.5vw, 3rem);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--surface-primary);
    box-shadow: 0 18px 48px rgb(24 26 25 / 7%);
}

.home .aanya-connect__intro { grid-area: intro; align-self: center; }
.home .aanya-connect__media { grid-area: media; margin: 0; overflow: hidden; border-radius: 14px; background: var(--surface-section-alt); }
.home .aanya-connect__media img { display: block; width: 100%; height: 100%; min-height: 19rem; object-fit: cover; }

.home .aanya-connect__routes {
    grid-area: routes;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.home .aanya-connect__route {
    --connect-accent: #245b45;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 8.5rem;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--surface-primary);
}

.home .aanya-connect__route--sun { --connect-accent: #87631f; }
.home .aanya-connect__route--sky { --connect-accent: #356c80; }
.home .aanya-connect__route--berry { --connect-accent: #70516d; }

.home .aanya-connect__route:hover,
.home .aanya-connect__route:focus-visible {
    border-color: var(--border-strong);
    background: var(--surface-section-alt);
    transform: translateY(-2px);
}

.home .aanya-connect__icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: var(--connect-accent);
    color: #fff;
}

.home .aanya-connect__arrow { display: none; }

.home .brand-logo--fallback {
    background: var(--surface-section-alt) !important;
    color: #181a19;
}

.home .brand-card:nth-child(3n + 2) .brand-logo--fallback { color: #356c80; }
.home .brand-card:nth-child(3n) .brand-logo--fallback { color: #a7513e; }

@media (max-width: 960px) {
    .home .aanya-connect__layout {
        grid-template-columns: 1fr;
        grid-template-areas: "intro" "media" "routes";
    }

    .home .aanya-connect__routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home :where(
        .category-showcase,
        .discovery-section,
        .new-products,
        .aanya-connect,
        .why-trust,
        .ingredient-discovery,
        .certifications,
        .health-goals,
        .buying-guides,
        .featured-brands,
        .faq-section
    ) {
        padding-block: 3rem;
    }

    .home .homepage-hero__layout { grid-template-columns: 1fr; }
    .home .homepage-hero__copy h1 { max-width: 11ch; }
    .home .aanya-connect__layout { padding: 1rem; border-radius: 14px; }
    .home .aanya-connect__media img { min-height: 13rem; }
    .home .aanya-connect__routes { grid-template-columns: 1fr; }
    .home .aanya-connect__route { min-height: 0; }
}

/* R3.2 section archetypes: open, panel, split, merchandising, discovery,
   editorial and compact rail. Shared outer edges; distinct inner composition. */
.home .homepage-hero-feature__media:has(.homepage-hero-feature__placeholder) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.home .homepage-hero-feature__media-note { color: #59615c; font-size: .875rem; }
.home .site-main > section,
.home .homepage-intelligence-cluster > section,
.home .homepage-guidance-cluster > section {
    border-top: 0;
}
.home .site-main > section.category-showcase,
.home .site-main > section.health-goals,
.home .homepage-intelligence-cluster > section.certifications,
.home .homepage-guidance-cluster > section.buying-guides,
.home .site-main > section.faq-section {
    background: #f4f5f6 !important;
}
.home .site-main > section.discovery-section,
.home .site-main > section.new-products,
.home .homepage-intelligence-cluster > section.ingredient-discovery,
.home .homepage-guidance-cluster > section.featured-brands {
    background: #fff !important;
}
/* UIUX-009 Connect ecosystem map (owner direction): white canvas for the pastel surfaces. */
.home .site-main > section.aanya-connect { background: #fff !important; }
.home .aanya-connect__layout { box-shadow: none; border: 0; }
.home .aanya-connect__routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.home .aanya-connect__route { min-height: 7rem; padding: 1rem; border: 1px solid #d9ddda; border-radius: 16px; background: #fff; transition: border-color 180ms ease, transform 180ms ease; }
.home .aanya-connect__route:hover { border-color: #9ca7a1; transform: translateY(-2px); }
.home .aanya-connect__route:focus-visible { outline: 3px solid #356c80; outline-offset: 3px; }
.home .aanya-connect__route:last-child { grid-column: 1 / -1; max-width: 38rem; }
.home .aanya-connect__route { --connect-accent: var(--discovery-green); }
.home .aanya-connect__route--sun { --connect-accent: var(--discovery-yellow); }
.home .aanya-connect__route--sky { --connect-accent: var(--discovery-cyan); }
.home .aanya-connect__route--berry { --connect-accent: var(--discovery-lilac); }
.home .aanya-connect__route--coral { --connect-accent: var(--discovery-coral); }
.home .aanya-connect__route--aqua { --connect-accent: var(--discovery-aqua); }
.home .aanya-connect__icon { color: #202321; }
.home .aanya-connect__media { background: #fff; }
.home .aanya-connect__media img { min-height: 0; aspect-ratio: 3 / 2; }
.home .aanya-connect__intro h2 { max-width: 16ch; }
.home .discovery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; border: 0; }
.home .discovery-grid > .discovery-card { grid-column: auto; order: 0; }
.home .category-showcase__control { position: absolute; width: 44px; height: 44px; }
.home .category-showcase__control--prev { left: 0; }
.home .category-showcase__control--next { right: 0; }
@media(min-width:1024px) { .home .category-showcase__viewport { margin-inline: 3rem; } }
.home .homepage-hero__layout > * { min-width: 0; }
.home .discovery-card { min-height: 7rem; padding: 1rem; border: 1px solid #dfe3e0; border-radius: 16px; background: #fff; transition: border-color 180ms ease, transform 180ms ease; }
.home .discovery-card:hover { border-color: #9ca7a1; transform: translateY(-2px); }
.home .discovery-card-icon { width: 2.5rem; height: 2.5rem; flex-basis: 2.5rem; border-radius: 50%; background: var(--feature-accent); }
.home :is(.discovery-card,.trust-card) { --feature-accent: var(--discovery-green); }
.home :is(.discovery-card--blue,.trust-card--blue) { --feature-accent: var(--discovery-cyan); }
.home :is(.discovery-card--terracotta,.trust-card--terracotta) { --feature-accent: var(--discovery-coral); }
.home :is(.discovery-card--violet,.trust-card--violet) { --feature-accent: var(--discovery-lilac); }
.home :is(.discovery-card--ochre,.trust-card--ochre) { --feature-accent: var(--discovery-yellow); }
.home :is(.discovery-card--teal,.trust-card--teal) { --feature-accent: var(--discovery-aqua); }
.home :is(.discovery-card-icon,.trust-icon) { color: #202321; }
.home .homepage-hero__routes a > span:first-child { background: var(--discovery-green); color: #202321; }
.home .homepage-hero__routes a:nth-child(2) > span:first-child { background: var(--discovery-cyan); }
.home .homepage-hero__routes a:nth-child(3) > span:first-child { background: var(--discovery-coral); }
.home .ingredient-discovery__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; margin-bottom: 2rem; }
.home .ingredient-discovery__intro .section-heading { margin: 0; }
.home .ingredient-discovery .ingredient-card { border: 0 !important; background: #f4f5f6 !important; }
.home .why-trust { background: #f4f5f6 !important; }
/* UIUX-008R: the feature panel owns balanced four-sided padding, so the
   capability cards never touch the rounded boundary and the last card keeps
   the same inset as the first. */
.home .why-trust > .container { box-sizing: border-box; width: calc(100% - 2 * var(--u8r-gutter, clamp(1rem, 3vw, 2rem))); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 18px; background: #fff; }
.home .why-trust > .container > .section-heading,
.home .why-trust > .container > header { margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem); }
.home .why-trust .trust-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; border: 0; }
.home .why-trust .trust-card { display: grid; grid-template-columns: 2.5rem minmax(0,1fr); gap: .35rem .75rem; padding: 1rem; border: 0; border-radius: 14px; background: #f4f5f6; }
.home .why-trust .trust-icon { grid-row: 1 / span 2; background: var(--feature-accent); border-radius: 50%; }
.home .certifications > .container { display: block; }
.home .certifications .certifications-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; padding: 0; border: 0; background: transparent; }
.home .certifications .certification-card { border: 0; border-radius: 14px; }
.home .certifications .certification-link { display: flex; min-height: 100%; flex-direction: column; padding: 1rem; border: 1px solid #d9ddda; border-radius: 14px; background: #fff; }
.home .certifications .certification-content { display: flex; flex: 1; flex-direction: column; }
.home .certifications .certification-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.75rem; margin-top: auto; color: #181a19; font-size: .78rem; font-weight: 700; }
.home .certifications .certification-cta svg { width: 1rem; height: 1rem; }
.home .certifications .homepage-section-footer { margin-top: 1.25rem; }
.home .health-goals-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1rem; }
.home .health-goal-card { border: 1px solid #d9ddda; border-radius: 16px; background: #fff; transition: border-color 180ms ease, transform 180ms ease; }
.home .health-goal-card:hover { border-color: #9ca7a1; transform: translateY(-2px); }
.home .health-goal-link { padding: 1rem; }
.home .health-goal-footer { flex-wrap: wrap; gap: .5rem; margin-top: .75rem; padding-top: 0; border-top: 0; }
.home .health-goal-heading { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.home .health-goal-icon { width: 2.75rem; height: 2.75rem; min-height: 2.75rem; max-height: 2.75rem; min-width: 2.75rem; flex: 0 0 2.75rem; border-radius: 50%; background: var(--discovery-green); color: #202321; }
.home .health-goal-card:nth-child(2) .health-goal-icon { background: var(--discovery-coral); }
.home .health-goal-card:nth-child(3) .health-goal-icon { background: var(--discovery-cyan); }
.home .health-goal-card:nth-child(4) .health-goal-icon { background: var(--discovery-yellow); }
.home .health-goal-card:nth-child(5) .health-goal-icon { background: var(--discovery-lilac); }
.home .buying-guides-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
.home .buying-guides .guide-card:first-child { grid-column: 1 / -1; }
.home .buying-guides .guide-card:first-child .guide-card-link { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.home .buying-guides .guide-card:first-child .guide-image { max-height: 22rem; }
.home .buying-guides .guide-card { border: 0 !important; background: #fff !important; border-radius: 16px !important; overflow: hidden; }
.home .buying-guides .guide-image { height: auto; aspect-ratio: 3 / 2; }
.home .buying-guides .guide-image img { width: 100%; height: 100%; object-fit: cover; }
.home .buying-guides .guide-content { padding: 1.5rem; }
.home .buying-guides .guide-footer { flex-wrap: wrap; gap: .5rem; }
.home .featured-brands-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; border: 0; }
.home .featured-brands .brand-card { border: 1px solid #d9ddda !important; border-radius: 16px !important; background: #fff !important; transition: border-color 180ms ease, transform 180ms ease; }
.home .featured-brands .brand-card:hover { border-color: #9ca7a1 !important; transform: translateY(-2px); }
.home .featured-brands .brand-card-link { display: grid; grid-template-columns: 3.25rem minmax(0,1fr); min-height: 8rem; align-items: center; padding: 1rem; gap: .85rem; }
.home .featured-brands .brand-logo { width: 3.25rem; height: 3.25rem; min-width: 3.25rem; min-height: 3.25rem; margin: 0; border-radius: 12px; }
.home .featured-brands .brand-content { width: 100%; text-align: left; }
.home .featured-brands .brand-logo--fallback { color: #59615c !important; background: #fff !important; border: 0 !important; }
.home .featured-brands .brand-title { margin: 0; text-align: left; }
.home .featured-brands .brand-title { overflow-wrap: anywhere; }
.home .featured-brands .brand-footer { margin-top: .4rem; padding-top: 0; border-top: 0; }
.home .featured-brands .brand-card-cta { justify-content: flex-start; margin-top: .35rem; padding-top: 0; border-top: 0; }
.home .faq-section .faq-accordion { max-width: 56rem; margin-inline: auto; }
.home .section-heading p { margin-inline: 0; }
.home .certifications .certification-icon { background: var(--discovery-yellow); color: #202321; }
.home .featured-brands .brand-logo-initial { border: 0; box-shadow: none; font-family: inherit; }
.aanya-how-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2rem; list-style: none; padding: 2rem; margin: 0 0 3rem; border-radius: 16px; background: #fff; }
.aanya-how-steps li { min-width: 0; }
.aanya-how-steps h3 { margin-block: 1rem .5rem; font-size: 1.125rem; }
.aanya-how-steps h3 a { color: #202321; text-underline-offset: .2em; }
.aanya-how-steps p { color: #59615c; line-height: 1.6; }
.aanya-how-steps__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--discovery-cyan); color: #202321; }
.aanya-how-steps__icon svg { width: 1.5rem; height: 1.5rem; }
.aanya-how-steps li:nth-child(2) .aanya-how-steps__icon { background: var(--discovery-yellow); }
.aanya-how-steps li:nth-child(3) .aanya-how-steps__icon { background: var(--discovery-lilac); }
.aanya-how-steps li:nth-child(4) .aanya-how-steps__icon { background: var(--discovery-coral); }
@media(max-width:1023px) {
    /* Reserve the dock plus the existing 3rem return-to-top control and gaps,
       so native keyboard scrolling keeps the entire focused target clear. */
    html:has(body.home) { scroll-padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 5rem); }
    .home .scroll-to-top { bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 1rem); }
    .home .aanya-connect__routes,.home .health-goals-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home .discovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home .why-trust .trust-grid,.home .certifications .certifications-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .aanya-how-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
    .home .homepage-hero__layout { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
    .home .homepage-hero__copy,.home .homepage-hero__actions { min-width: 0; max-width: 100%; }
    .home .homepage-hero-feature__media:has(.homepage-hero-feature__placeholder) { height: 10rem; min-height: 0; }
    .home .homepage-hero-feature__media-note { max-width: 85%; font-size: .75rem; text-align: center; }
    .home .ingredient-discovery__intro { grid-template-columns: 1fr; gap: 1.5rem; }
    .home .aanya-connect__routes,.home .buying-guides-grid { grid-template-columns: 1fr; }
    .home .buying-guides .guide-card:first-child .guide-card-link { display: block; }
    .home .featured-brands-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
    .home .featured-brands .brand-card-link { padding: 1rem; }
    .home .buying-guides .guide-content { padding: 1rem; }
    .aanya-how-steps { gap: 1.25rem; padding: 1.25rem; }
}
@media(max-width:560px) {
    .home .why-trust .trust-grid,.home .certifications .certifications-grid { grid-template-columns: 1fr; }
}
@media(max-width:359px) {
    .home .discovery-grid,.home .why-trust .trust-grid,.home .certifications .certifications-grid,.home .health-goals-grid,.home .featured-brands-grid,.aanya-how-steps { grid-template-columns: 1fr; }
}

@media(prefers-reduced-motion:reduce) {
    .home :is(.aanya-connect__route,.discovery-card,.health-goal-card,.brand-card) { transition: none; }
    .home :is(.aanya-connect__route,.discovery-card,.health-goal-card,.brand-card):hover { transform: none; }
}
