/*
 * ANA Health — Production Homepage
 * Namespace: ana-home__*
 *
 * This is the production Gutenberg homepage stylesheet — distinct from the
 * ana-demo, ana-quiz-hero, and ana-assessment-flow classes used by the
 * accepted template-client-demo2.php reference. Do not extend the old demo naming
 * system here; new production sections should stay under ana-home__*.
 *
 * Ordinary layout (grid/flex/gap/spacing/max-width/alignment) is meant to be
 * handled by Tailwind utility classes on the block markup itself where a
 * section is genuinely ordinary layout. The Hero turned out to have no such
 * surface — every part of it (gradient, curve, centered container width,
 * per-card colour accents, the note row) is bespoke visual treatment, so it
 * lives entirely here rather than pulling in Tailwind utilities just to say
 * Tailwind was used. Tailwind's the better fit for later, plainer sections
 * (media-text splits, the comparison table wrapper, etc.).
 *
 * CSS custom properties below reuse the exact colour values from the
 * accepted Demo 2 reference (assets/css/client-demo2.css, .ana-quiz-hero)
 * for visual parity — see the implementation notes for why this isn't
 * pulled from design-tokens/tokens.json yet.
 */

/*
 * WordPress's core/group block, in this install's WP version, always wraps
 * its children in an auto-generated .wp-block-group__inner-container div —
 * confirmed via render_block() directly, not assumed; this happens
 * regardless of "layout" type or tagName. theme.css's generic
 * `.site-main .wp-block-group .wp-block-group__inner-container` rule then
 * adds padding/max-width at every nesting level of our group structure,
 * and — more importantly — every grid/flex rule below that targets one of
 * our own group classes (e.g. .ana-home__experts-inner) is actually one
 * DOM level too high, because the real children sit inside that auto
 * wrapper, not as direct children of our class.
 *
 * `display: contents` removes the wrapper's own box from the render tree
 * (it still exists in the DOM, so this doesn't break anything, and this
 * stylesheet only loads on the frontend, so the block editor is
 * unaffected) — its children become direct participants in our intended
 * grid/flex layout again, exactly as authored. No !important needed: this
 * targets `display`, a property theme.css's rule never sets.
 */

.ana-home__hero .wp-block-group__inner-container,
.ana-home__next .wp-block-group__inner-container,
.ana-home__experts .wp-block-group__inner-container,
.ana-home__specialist .wp-block-group__inner-container,
.ana-home__steps .wp-block-group__inner-container,
.ana-home__final .wp-block-group__inner-container {
    display: contents;
}

:root {
    --ana-client-green-950: #173f2f;
    --ana-client-green-850: #22543d;
    --ana-client-green-700: #2f6f4f;
    --ana-client-sage: #d9ead8;
    --ana-client-sage-soft: #eef6f2;
    --ana-client-cream: #fff8ee;
    --ana-client-cream-strong: #f6efe4;
    --ana-client-peach: #f7b267;
    --ana-client-text: #1f2933;
    --ana-client-muted: #596a61;
    --ana-client-border: rgba(23, 63, 47, 0.16);
    --ana-client-shadow: 0 24px 70px rgba(23, 63, 47, 0.12);
}

:root {
    --ana-flow-green-950: #0d3428;
    --ana-flow-green-900: #123f31;
    --ana-flow-green-800: #195440;
    --ana-flow-green-700: #26705a;
    --ana-flow-green-100: #e7f1ec;
    --ana-flow-green-050: #f5f9f7;
    --ana-flow-cream: #f7f1e8;
    --ana-flow-white: #ffffff;
    --ana-flow-text: #24352e;
    --ana-flow-muted: #66756e;
    --ana-flow-border: #dce6e1;
    --ana-flow-orange: #d9944c;

    --ana-hero-green: #123f31;
    --ana-hero-green-deep: #0b3025;
    --ana-hero-green-soft: #dcebe3;
    --ana-hero-cream: #f8f4ec;
    --ana-hero-white: #ffffff;
    --ana-hero-text-soft: rgba(255, 255, 255, 0.78);
    --ana-hero-border: rgba(255, 255, 255, 0.28);
    --ana-hero-orange: #d99549;
    --ana-hero-card-green: #1a5844;
    --ana-hero-card-sage: #587f73;
    --ana-hero-card-gold: #b97422;

    --ana3-green-950: #0d2f25;
    --ana3-green-900: #123b2e;
    --ana3-green-800: #184c3a;
    --ana3-green-700: #23634d;
    --ana3-green-100: #e7f0eb;
    --ana3-green-050: #f4f8f6;
    --ana3-cream: #f7f1e8;
    --ana3-white: #ffffff;
    --ana3-ink: #24332d;
    --ana3-muted: #5d6d66;
    --ana3-border: #dbe4df;
    --ana3-accent: #d99a55;
    --ana3-shadow: 0 18px 50px rgba(17, 50, 39, 0.10);
    --ana3-shadow-soft: 0 10px 28px rgba(17, 50, 39, 0.07);
    --ana3-radius-lg: 28px;
}

.ana-home__next-inner {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.ana-home__steps-inner {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.ana-home__specialist-inner {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.ana-home__specialist .wp-block-media-text__content {
    max-width: 590px;
    padding: 0;
}

.ana-home__final .wp-block-media-text__content {
    max-width: 590px;
    padding: 0;
}

.ana-home__next-cards .wp-block-group-is-layout-constrained,
.ana-home__next-cards .wp-block-group-is-layout-constrained .wpangel-container--contained {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.ana-home__hero {
    --ana-home-green: #123f31;
    --ana-home-green-deep: #0b3025;
    --ana-home-text-soft: rgba(255, 255, 255, 0.78);
    --ana-home-border: rgba(255, 255, 255, 0.28);
    --ana-home-card-voice: #1a5844;
    --ana-home-card-verbal: #587f73;
    --ana-home-card-behavior: #b97422;
    --ana-home-orange: #d99549;

    position: relative;
    padding: clamp(118px, 11vw, 166px) 0 clamp(72px, 8vw, 120px);
    background:
        radial-gradient(circle at 82% 18%, rgba(247, 178, 103, 0.24), transparent 28%),
        radial-gradient(circle at 18% 74%, rgba(168, 213, 162, 0.3), transparent 30%),
        linear-gradient(135deg, var(--ana-client-green-950), var(--ana-client-green-850));
    color: #fff;
}

.ana-home__hero-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.ana-home__hero-header {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.ana-home__eyebrow {
    margin: 0 0 14px;
    color: #cbe2d6;
    color: var(--ana3-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ana-home__hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.ana-home__intro {
    margin: 16px 0 0;
    /* color: var(--ana-hero-text-soft); */
    color: var(--ana3-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    font-weight: 500;
    line-height: 1.6;
}

.ana-home__question {
    margin: 8px 0 0;
    /* color: var(--ana-hero-white); */
    color: var(--ana3-muted);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.4;
}

/* ===== Hero support cards (wpangel/feature-cards, cardStyle: custom) ===== */
.ana-home__hero-cards {
    margin-top: 34px;
}

.ana-home__hero-cards .wpangel-feature-cards {
    padding-block: 0;
}

.ana-home__hero-cards .wpangel-feature-cards__grid {
    gap: 22px;
}

.ana-home__hero-cards .wpangel-feature-cards__card {
    position: relative;
    min-height: 350px;
    padding: 28px 28px 24px;
    border: 1px solid var(--ana-home-border);
    border-radius: 22px;
    color: #ffffff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ana-home__hero-cards .wpangel-feature-cards__card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.25);
}

.ana-home__hero-cards .wpangel-feature-cards__card:focus-within {
    outline: 3px solid var(--ana-home-orange);
    outline-offset: 5px;
}

.ana-home__hero-cards .wpangel-feature-cards__grid > article:nth-child(1) { background-color: var(--ana-home-card-voice); }
.ana-home__hero-cards .wpangel-feature-cards__grid > article:nth-child(2) { background-color: var(--ana-home-card-verbal); }
.ana-home__hero-cards .wpangel-feature-cards__grid > article:nth-child(3) { background-color: var(--ana-home-card-behavior); }

.ana-home__hero-cards .wpangel-feature-cards__media {
    margin: 0 0 16px;
}

.ana-home__hero-cards .wpangel-feature-cards__image {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.ana-home__hero-cards .wpangel-feature-cards__title {
    color: #ffffff;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.ana-home__hero-cards .wpangel-feature-cards__card-description {
    max-width: 270px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    line-height: 1.55;
}

.ana-home__hero-cards .wpangel-feature-cards__card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.ana-home__hero-cards .wpangel-feature-cards__card-link:hover,
.ana-home__hero-cards .wpangel-feature-cards__card-link:focus {
    text-decoration: underline;
}

/* ===== "Answer a few questions" note ===== */
.ana-home__note {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 36px;
}

.ana-home__note-inner {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
}

.ana-home__note-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
}

.ana-home__note p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ana3-muted);
}

/* ===== Bottom wave/curve transition ===== */
.ana-home__curve {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 72px;
    color: #ffffff;
    pointer-events: none;
}

.ana-home__curve svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* ===== Default media & text all sections (.wp-block-media-text separate 2 columns) ===== */
.ana-home__specialist .wp-block-media-text {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: clamp(50px, 8vw, 110px);
}

.ana-home__final .wp-block-media-text {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    gap: clamp(48px, 8vw, 110px);
}

.ana-home__experts-inner {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: clamp(54px, 8vw, 110px);
}

/* ===== Default media all sections (.wp-block-media & text) ===== */
.ana-home__final .wp-block-media-text__media,
.ana-home__specialist .wp-block-media-text__media,
.ana-home__experts .wp-block-image {
    overflow: hidden;
    border-radius: var(--ana3-radius-lg);
    box-shadow: var(--ana3-shadow);
    margin: 0;
    min-height: 320px;
}

.ana-home__specialist .wp-block-media-text__media {
    position: sticky;
    top: 120px;
}

.ana-home__specialist .wp-block-media-text__media img,
.ana-home__final .wp-block-media-text__media img,
.ana-home__experts .wp-block-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}
.ana-home__hero-cards .wpangel-feature-cards__card img,
.ana-home__next-cards .wpangel-feature-cards__card img,
.ana-home__specialist .wp-block-media-text__media img,
.ana-home__final .wp-block-media-text__media img,
.ana-home__experts .wp-block-image img,
.ana-home__steps-media img {
    transition:
        transform 260ms var(--ana-polish-ease),
        box-shadow 260ms var(--ana-polish-ease),
        border-color 260ms var(--ana-polish-ease),
        filter 260ms var(--ana-polish-ease);
    /* transition: transform 420ms var(--ana-polish-ease), filter 420ms var(--ana-polish-ease); */
}

.ana-home__specialist .wp-block-media-text__media:hover img,
.ana-home__final .wp-block-media-text__media:hover img,
.ana-home__experts .wp-block-image:hover img,
.ana-home__steps-media:hover img,
.ana-home__hero-cards .wpangel-feature-cards__card:hover img,
.ana-home__next-cards .wpangel-feature-cards__card:hover img {
    transform: scale(1.025);
}

/* ===== Responsive ===== */
/*
 * The block's own CSS already drives column count responsively via the
 * --wpangel-feature-cards-{desktop,tablet,mobile} custom properties set on
 * the block wrapper (3/2/1 at 1024px/640px breakpoints) — no override
 * needed here. This only adds the "last card spans full width, centered"
 * treatment at the 2-column breakpoint, which doesn't touch that property.
 */
@media (min-width: 640px) and (max-width: 1023px) {
    .ana-home__hero-cards .wpangel-feature-cards__grid > article:last-child {
        grid-column: 1 / -1;
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .ana-home__hero {
        padding-block: 64px 112px;
    }

    .ana-home__hero h1 {
        font-size: clamp(2.5rem, 13vw, 3.7rem);
    }

    .ana-home__hero-cards .wpangel-feature-cards__grid {
        gap: 16px;
    }

    .ana-home__hero-cards .wpangel-feature-cards__grid > article {
        min-height: 330px;
    }
}

/*
 * ===== "What Happens Next?" =====
 * Reuses Demo 2's exact colour values (client-demo2.css, .ana-assessment-flow)
 * for parity. Card grid + per-card visuals come from wpangel/feature-cards
 * (cardStyle: icon, sectionHeaderMode: none); heading and the CTA bar are
 * native Gutenberg blocks, styled here.
 */
.ana-home__next {
    --ana-next-green-950: #0d3428;
    --ana-next-green-900: #123f31;
    --ana-next-green-800: #195440;
    --ana-next-green-700: #26705a;
    --ana-next-green-100: #e7f1ec;
    --ana-next-cream: #f7f1e8;
    --ana-next-muted: #66756e;
    --ana-next-border: #dce6e1;
    --ana-next-orange: #d9944c;

    background: #ffffff;
    font-family: Inter, Manrope, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-block: clamp(72px, 8vw, 116px);
}

.ana-assessment-flow__footer-copy {
    display: grid;
    gap: 5px;
}

.ana-home__next-header {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.ana-home__next-eyebrow {
    margin: 0 0 12px;
    color: var(--ana-next-green-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ana-home__next-header h2 {
    margin: 0;
    color: var(--ana-next-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
}

.ana-home__next-intro {
    max-width: 560px;
    margin: 16px auto 0;
    color: var(--ana-next-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* ===== 4 process cards (wpangel/feature-cards, cardStyle: icon) ===== */
.ana-home__next-cards .wpangel-feature-cards {
    padding-block: 0;
}
.ana-home__next .wpangel-feature-cards__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.ana-home__next .wpangel-feature-cards__grid::before {
    position: absolute;
    z-index: 0;
    top: 15%;
    right: 9%;
    left: 9%;
    height: 1px;
    background: var(--ana-flow-border);
    content: "";
}

.ana-home__next-cards .wpangel-feature-cards__card {
    position: relative;
    z-index: 1;
    min-height: 330px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(17, 55, 43, 0.07);
    border: 1px solid var(--ana-flow-border);
    border-radius: 20px;
    background: var(--ana-flow-white);
    padding: 30px 26px;
    transition: transform 180ms, border-color 180ms, box-shadow 180ms;
    
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ana-home__next-cards .wpangel-feature-cards__card:hover {
    transform: translateY(-5px);
    border-color: rgba(38, 112, 90, 0.35);
    box-shadow: 0 20px 46px rgba(17, 55, 43, 0.11);
}

.ana-home__next-cards .wpangel-feature-cards__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--ana-flow-green-100);
    color: var(--ana-flow-green-800);
}

.ana-home__next-cards .wpangel-feature-cards__badge {
    order: -1;
    color: var(--ana-flow-orange);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.ana-home__next-cards .wpangel-feature-cards__title {
    color: var(--ana-next-green-950);
    font-size: 1.15rem;
    font-weight: bold;
}

.ana-home__next-cards .wpangel-feature-cards__card-description {
    color: var(--ana-next-muted);
    font-size: 0.94rem;
}

/* ===== Bottom CTA bar — copy left, button right (native Gutenberg) ===== */
.ana-home__next-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    border-radius: 16px;
    background: var(--ana-next-cream);
    padding: 22px 26px;
}

.ana-home__next-cta.wp-block-group .wp-block-group__inner-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .ana-home__next-cta.wp-block-group .wp-block-group__inner-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}
.ana-home__next-cta.wp-block-group .wp-block-group__inner-container .wp-block-button .wp-block-button__link {
    display: inline-flex;
    min-height: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--ana-flow-green-900);
    border-radius: 999px;
    background: var(--ana-flow-green-900);
    color: var(--ana-flow-white);
    padding: 13px 22px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ana-home__next-cta p {
    margin: 0;
    color: var(--ana-next-green-950);
}

.ana-home__next-cta p strong {
    display: block;
    color: var(--ana-next-green-950);
}

.ana-home__next-cta p span {
    display: block;
    margin-top: 4px;
    color: var(--ana-next-muted);
    font-size: 0.88rem;
}

.ana-home__next-cta .wp-block-buttons {
    flex: 0 0 auto;
}

.ana-home__next-cta .wp-block-buttons .wp-block-button__link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ana-next-green-900);
    padding: 12px 22px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.ana-home__next-cta .wp-block-buttons .wp-block-button__link:hover {
    background: var(--ana-next-green-800);
    transform: translateY(-2px);
}

.ana-home__next-cta .wp-block-buttons .wp-block-button__link:focus-visible {
    outline: 3px solid var(--ana-next-orange);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .ana-home__next-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ana-home__next-cta .wp-block-buttons .wp-block-button__link {
        width: 100%;
    }
}

/*
 * ===== "Global Developmental Experts" =====
 * Migrated from client-demo2.css: .ana-demo__benefits, .ana-demo__benefits-layout,
 * .ana-demo__benefits-intro, .ana-demo__benefit-list, .ana-demo__benefit-item,
 * .ana-demo__benefit-number — declarations reproduced as-is (same values,
 * same var(--ana3-*) tokens already defined at :root in this file).
 *
 * .ana-demo__benefit-list / .ana-demo__benefit-item / .ana-demo__benefit-number
 * are kept under their ORIGINAL Demo 2 class names on purpose: they're clean,
 * section-specific, non-experimental — no reason to rename them. The
 * container/section/eyebrow/heading rules are adapted under .ana-home__experts
 * instead of the original .ana-demo__container/.ana-demo__section/
 * .ana-demo__section-label/.ana-demo h2 names, because those were page-wide
 * utility classes scoped to a `.ana-demo` wrapper that doesn't exist in
 * production (client-demo2.css isn't enqueued here) — reusing those exact
 * selector strings without that wrapper would just never match anything.
 * The declared values themselves are unchanged from source.
 */
.ana-home__experts {
    background: var(--ana3-cream);
    padding: clamp(72px, 8vw, 120px) 0;
}

.ana-home__experts-intro {
    position: sticky;
    top: 110px;
}

.ana-home__experts-eyebrow {
    margin: 0 0 14px;
    color: var(--ana3-green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ana-home__experts-intro h2 {
    max-width: 580px;
    margin: 0;
    color: var(--ana3-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
}

.ana-demo__benefit-list {
    border-top: 1px solid rgba(18, 59, 46, 0.18);
}

.ana-demo__benefit-item {
    display: grid;
    align-items: center;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(18, 59, 46, 0.18);
}

.ana-demo__benefit-number {
    color: var(--ana3-accent);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
}

.ana-demo__benefit-item h3 {
    margin: 0 0 8px;
    color: var(--ana3-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.ana-demo__benefit-item p {
    margin: 0;
    max-width: 560px;
    color: var(--ana3-muted);
}

@media (max-width: 1024px) {
    .ana-home__experts-inner {
        gap: 56px;
    }
}

@media (max-width: 820px) {
    .ana-home__experts {
        padding: 76px 0;
    }

    .ana-home__experts-inner {
        grid-template-columns: 1fr;
    }

    .ana-home__experts-intro {
        position: static;
    }
}

/*
 * ===== "Professional and Qualified Specialists" =====
 * Migrated from client-demo2.css: .ana-demo__specialist, .ana-demo__specialist-grid,
 * .ana-demo__specialist-media, .ana-demo__specialist-copy, .ana-demo__button,
 * .ana-demo__button--primary — declarations reproduced as-is (same values,
 * same var(--ana3-*) tokens). Uses core/media-text (confirmed via
 * render_block() to render clean, with no auto-inserted wrapper div, unlike
 * core/group) instead of core/group + core/columns.
 *
 * Demo 2's `.gradient-background` class on this section is skipped
 * deliberately: it hotlinks an unrelated third-party image
 * (modern.creativemox.com), carries leftover Elementor CSS variable names,
 * and its ::before overlay is position:absolute with no positioned parent
 * on the class itself — clearly experimental/broken, not the section's
 * real approved background (.ana-demo__specialist's own base rule is a
 * plain `background: var(--ana3-white)`, which is what's reproduced here).
 *
 * .ana-home__specialist is the outer <section> (a core/group with
 * tagName:"section" wrapping the media-text block — media-text itself has
 * no tagName option, and Demo 2's own markup uses a real <section> here,
 * matching every other top-level block on this page). The media-text
 * element gets the 1180px centered-container treatment directly (same
 * pattern as .ana-home__hero-inner / .ana-home__next-inner /
 * .ana-home__experts-inner) — without it, media-text is wide-capable by
 * default and was rendering edge-to-edge across the full viewport.
 */
.ana-home__specialist {
    background: var(--ana3-white);
    padding: clamp(72px, 8vw, 120px) 0;
}

.ana-home__specialist-eyebrow {
    margin: 0 0 14px;
    color: var(--ana3-green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ana-home__specialist .wp-block-media-text__content h2 {
    margin: 0 0 24px;
    color: var(--ana3-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
}

.ana-home__specialist .wp-block-media-text__content p:not(.ana-home__specialist-eyebrow) {
    margin: 0 0 30px;
    color: var(--ana3-muted);
    font-size: 1.03rem;
}

.ana-home__specialist .wp-block-buttons .wp-block-button__link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ana3-green-900);
    padding: 14px 28px;
    color: var(--ana3-white);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(13, 47, 37, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ana-home__specialist .wp-block-buttons .wp-block-button__link:hover {
    background: var(--ana3-green-800);
    transform: translateY(-2px);
}

.ana-home__specialist .wp-block-buttons .wp-block-button__link:focus-visible {
    outline: 3px solid var(--ana3-accent);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .ana-home__specialist .wp-block-media-text {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }
}

@media (max-width: 820px) {
    .ana-home__specialist {
        padding: 76px 0;
    }

    .ana-home__specialist .wp-block-media-text {
        grid-template-columns: 1fr;
    }

    .ana-home__specialist .wp-block-media-text__media,
    .ana-home__specialist .wp-block-media-text__media img {
        min-height: 420px;
    }
}

@media (max-width: 600px) {
    .ana-home__specialist .wp-block-media-text__media,
    .ana-home__specialist .wp-block-media-text__media img {
        min-height: 330px;
    }

    /*
     * Missed when the "Global Developmental Experts" section was built:
     * Demo 2's ≤600px rule also tightens .ana-demo__benefit-item to a
     * narrower number column. Adding it now while in the same file.
     */
    .ana-demo__benefit-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 14px;
    }
}

/*
 * ===== "Three Simple Steps to Get Started" =====
 * Migrated from client-demo2.css: .ana-demo__steps, .ana-demo__steps-layout,
 * .ana-demo__step-list, .ana-demo__step, .ana-demo__step-number,
 * .ana-demo__step-copy, .ana-demo__steps-media — declarations reproduced
 * as-is (same values, same var(--ana3-*) tokens).
 *
 * Unlike "Global Developmental Experts", this section has its own centered
 * header above the two-column layout (Demo 2: .ana-demo__section-header--
 * center), so it gets its own -header/-eyebrow classes rather than folding
 * the heading into the left column the way .ana-home__experts-intro does.
 *
 * .ana-demo__step-list / .ana-demo__step / .ana-demo__step-number /
 * .ana-demo__step-copy keep their original Demo 2 names — clean,
 * section-specific, non-experimental, same reasoning as
 * .ana-demo__benefit-* in the Experts section.
 */
.ana-home__steps {
    background: var(--ana3-green-050);
    padding: clamp(72px, 8vw, 120px) 0;
}

.ana-home__steps-header {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.ana-home__steps-eyebrow {
    margin: 0 0 14px;
    color: var(--ana3-green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ana-home__steps-header h2 {
    margin: 0;
    color: var(--ana3-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
}

.ana-home__steps-layout {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: clamp(34px, 6vw, 76px);
}

.ana-demo__step-list {
    border-top: 1px solid var(--ana3-border);
}

.ana-demo__step {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--ana3-border);
}

.ana-demo__step-number {
    display: flex;
    align-items: center;
    color: var(--ana3-green-700);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.ana-demo__step-copy h3 {
    margin: 0 0 10px;
    color: var(--ana3-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.ana-demo__step-copy p {
    margin: 0;
    color: var(--ana3-muted);
}

.ana-demo__step-copy p + p {
    margin-top: 8px;
}

.ana-home__steps-media {
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--ana3-radius-lg);
    box-shadow: var(--ana3-shadow-soft);
    margin: 0;
}

.ana-home__steps-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .ana-home__steps-layout {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }
}

@media (max-width: 820px) {
    .ana-home__steps {
        padding: 76px 0;
    }

    .ana-home__steps-layout {
        grid-template-columns: 1fr;
    }

    .ana-home__steps-media,
    .ana-home__steps-media img {
        min-height: 420px;
    }

    .ana-home__steps-media {
        order: -1;
    }
}

@media (max-width: 600px) {
    .ana-home__steps-media,
    .ana-home__steps-media img {
        min-height: 330px;
    }

    .ana-demo__step {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ana-demo__step-number {
        font-size: 2.4rem;
    }
}

/*
 * ===== "The Best Gift You Can Give Your Child" (final CTA) =====
 * Migrated from client-demo2.css: .ana-demo__final, .ana-demo__final-grid,
 * .ana-demo__final-copy, .ana-demo__final-media, .ana-demo__button,
 * .ana-demo__button--primary — declarations reproduced as-is.
 *
 * Copy comes first in Demo 2's markup, media second (opposite order from
 * "Professional and Qualified Specialists") — core/media-text's
 * mediaPosition:"right" reproduces that. Same .ana-home__final <section>-
 * wrapping-core/group pattern as .ana-home__specialist, for the same
 * reason (media-text has no tagName option, Demo 2 uses a real <section>).
 *
 * Image: local assets/images/ana-demo2/final-cta-family.svg (safe
 * placeholder, matches the original alt text exactly) instead of the
 * hotlinked wonjo.kids image in source.
 */
.ana-home__final {
    background: var(--ana3-white);
    padding: clamp(76px, 8vw, 120px) 0;
}

.ana-home__final-eyebrow {
    margin: 0 0 14px;
    color: var(--ana3-green-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ana-home__final .wp-block-media-text__content h2 {
    max-width: 700px;
    margin: 4px 0 0;
    color: var(--ana3-green-950);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
}

.ana-home__final .wp-block-media-text__content p:not(.ana-home__final-eyebrow) {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--ana3-muted);
    font-size: 1.06rem;
}

.ana-home__final .wp-block-buttons .wp-block-button__link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    border-radius: 999px;
    background: var(--ana3-green-900);
    padding: 14px 28px;
    color: var(--ana3-white);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(13, 47, 37, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ana-home__final .wp-block-buttons .wp-block-button__link:hover {
    background: var(--ana3-green-800);
    transform: translateY(-2px);
}

.ana-home__final .wp-block-buttons .wp-block-button__link:focus-visible {
    outline: 3px solid var(--ana3-accent);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .ana-home__final .wp-block-media-text {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }
}

@media (max-width: 820px) {
    .ana-home__final .wp-block-media-text {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ana-home__hero *,
    .ana-home__hero *::before,
    .ana-home__hero *::after,
    .ana-home__next *,
    .ana-home__next *::before,
    .ana-home__next *::after,
    .ana-home__specialist *,
    .ana-home__specialist *::before,
    .ana-home__specialist *::after,
    .ana-home__final *,
    .ana-home__final *::before,
    .ana-home__final *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* --- */


.ana-home__comparison {
    background: var(--ana3-green-900, #123b2e);
    color: #fff;
    padding: clamp(72px, 9vw, 120px) 20px;
}

.ana-home__comparison-title {
    max-width: 760px;
    margin: 0 auto 48px;
    color: #fff;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.035em;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.06;
}

.ana-home__comparison-table {
    width: min(100%, 1180px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

.ana-home__comparison-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}
.wp-block-table table thead {
    border: none;
}
.ana-home__comparison-table table th,
.ana-home__comparison-table table td {
    padding: 18px 24px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.84);
    text-align: center;
}

.ana-home__comparison-table table th:first-child,
.ana-home__comparison-table table td:first-child {
    text-align: left;
}

.ana-home__comparison-table table th {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
}

.ana-home__comparison-table table th:nth-child(2),
.ana-home__comparison-table table td:nth-child(2) {
    background: var(--ana3-green-700, #23634d);
    color: #fff;
}

.ana-home__comparison-table table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 700px) {
    .ana-home__comparison-table table thead {
        display: none;
    }

    .ana-home__comparison-table table,
    .ana-home__comparison-table table tbody,
    .ana-home__comparison-table table tr,
    .ana-home__comparison-table table td {
        display: block;
        width: 100%;
    }

    .ana-home__comparison-table table tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .ana-home__comparison-table table td {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        text-align: right;
    }

    .ana-home__comparison-table table td:first-child {
        display: block;
        color: #fff;
        font-weight: 700;
        text-align: left;
    }

    .ana-home__comparison-table table td:nth-child(2)::before {
        content: "ANA Health";
        color: rgba(255, 255, 255, 0.66);
        font-weight: 700;
    }

    .ana-home__comparison-table table td:nth-child(3)::before {
        content: "In-office";
        color: rgba(255, 255, 255, 0.66);
        font-weight: 700;
    }
}

/*
 * ===== Final Client Review Polish =====
 * This layer intentionally stays CSS-only and scoped to the ANA homepage
 * sections. It tightens the visual system without changing block content,
 * source markup, or phearum-core block behavior.
 */
.ana-home__hero,
.ana-home__next,
.ana-home__experts,
.ana-home__specialist,
.ana-home__steps,
.ana-home__comparison,
.ana-home__final {
    --ana-polish-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ana-polish-shadow-card: 0 18px 48px rgba(17, 50, 39, 0.10);
    --ana-polish-shadow-card-hover: 0 26px 64px rgba(17, 50, 39, 0.16);
    --ana-polish-ring: 0 0 0 4px rgba(217, 154, 85, 0.26);
    --ana-polish-section-y: clamp(78px, 8vw, 124px);
    --ana-polish-copy: #5d6d66;
    scroll-margin-top: 110px;
}

.ana-home__next,
.ana-home__experts,
.ana-home__specialist,
.ana-home__steps,
.ana-home__comparison,
.ana-home__final {
    padding-block: var(--ana-polish-section-y);
}

.ana-home__eyebrow,
.ana-home__next-eyebrow,
.ana-home__experts-eyebrow,
.ana-home__specialist-eyebrow,
.ana-home__steps-eyebrow,
.ana-home__final-eyebrow {
    color: var(--ana3-green-700);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.11em;
}

.ana-home__hero h1,
.ana-home__next-header h2,
.ana-home__experts-intro h2,
.ana-home__specialist .wp-block-media-text__content h2,
.ana-home__steps-header h2,
.ana-home__comparison-title,
.ana-home__final .wp-block-media-text__content h2 {
    letter-spacing: 0;
    text-wrap: balance;
}

.ana-home__intro,
.ana-home__question,
.ana-home__next-intro,
.ana-demo__benefit-item p,
.ana-home__specialist .wp-block-media-text__content p:not(.ana-home__specialist-eyebrow),
.ana-demo__step-copy p,
.ana-home__final .wp-block-media-text__content p:not(.ana-home__final-eyebrow) {
    color: var(--ana-polish-copy);
    line-height: 1.72;
}

.ana-home__hero .ana-home__eyebrow,
.ana-home__hero .ana-home__intro,
.ana-home__hero .ana-home__question,
.ana-home__note p {
    color: rgba(255, 255, 255, 0.84);
}

.ana-home__hero {
    isolation: isolate;
    overflow: hidden;
}

.ana-home__hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 34%);
    content: "";
    pointer-events: none;
}

.ana-home__hero-header {
    max-width: 780px;
}

.ana-home__hero h1 {
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    line-height: 0.99;
}

.ana-home__hero-cards .wpangel-feature-cards__card,
.ana-home__next-cards .wpangel-feature-cards__card {
    will-change: transform;
}

.ana-home__next-cards .wpangel-feature-cards__card {
    min-height: auto;
    padding: clamp(24px, 3vw, 34px);
    box-shadow: var(--ana-polish-shadow-card);
}

.ana-home__next-cards .wpangel-feature-cards__card:hover {
    box-shadow: var(--ana-polish-shadow-card-hover);
}

.ana-home__next-cards .wpangel-feature-cards__title,
.ana-demo__benefit-item h3,
.ana-demo__step-copy h3 {
    letter-spacing: 0;
    text-wrap: balance;
}

.ana-home__specialist .wp-block-buttons .wp-block-button__link,
.ana-home__final .wp-block-buttons .wp-block-button__link,
.ana-home__next-cta .wp-block-buttons .wp-block-button__link,
.ana-home__next-cta.wp-block-group .wp-block-group__inner-container .wp-block-button .wp-block-button__link {
    min-height: 54px;
    border: 1px solid rgba(13, 47, 37, 0.94);
    background: var(--ana3-green-900);
    box-shadow: 0 12px 28px rgba(13, 47, 37, 0.18);
    transition:
        transform 220ms var(--ana-polish-ease),
        box-shadow 220ms var(--ana-polish-ease),
        background-color 220ms var(--ana-polish-ease),
        border-color 220ms var(--ana-polish-ease);
}

.ana-home__specialist .wp-block-buttons .wp-block-button__link:hover,
.ana-home__final .wp-block-buttons .wp-block-button__link:hover,
.ana-home__next-cta .wp-block-buttons .wp-block-button__link:hover,
.ana-home__next-cta.wp-block-group .wp-block-group__inner-container .wp-block-button .wp-block-button__link:hover {
    border-color: var(--ana3-green-800);
    background: var(--ana3-green-800);
    box-shadow: 0 18px 36px rgba(13, 47, 37, 0.24);
    transform: translateY(-2px);
}

.ana-home__specialist .wp-block-buttons .wp-block-button__link:focus-visible,
.ana-home__final .wp-block-buttons .wp-block-button__link:focus-visible,
.ana-home__next-cta .wp-block-buttons .wp-block-button__link:focus-visible,
.ana-home__hero-cards .wpangel-feature-cards__card:focus-within,
.ana-home__next-cards .wpangel-feature-cards__card:focus-within {
    box-shadow: var(--ana-polish-ring), var(--ana-polish-shadow-card-hover);
    outline: 0;
}

.ana-home__next-cta {
    border: 1px solid rgba(217, 154, 85, 0.22);
    box-shadow: 0 16px 42px rgba(17, 50, 39, 0.07);
}

.ana-home__experts {
    background:
        linear-gradient(180deg, #fffaf1 0%, var(--ana3-cream) 42%, #fffaf1 100%);
}

.ana-home__steps {
    background:
        linear-gradient(180deg, #f7fbf8 0%, var(--ana3-green-050) 100%);
}

.ana-demo__benefit-item,
.ana-demo__step {
    transition: background-color 220ms var(--ana-polish-ease), padding-inline 220ms var(--ana-polish-ease);
}

.ana-demo__benefit-item:hover,
.ana-demo__step:hover {
    background: rgba(35, 99, 77, 0.045);
    padding-inline: 14px;
}

.ana-home__comparison {
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.1), transparent 32%),
        linear-gradient(180deg, #123b2e 0%, #0d2f25 100%);
}

.ana-home__comparison-table {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.ana-home__comparison-table table th,
.ana-home__comparison-table table td {
    font-size: clamp(0.92rem, 1.1vw, 1rem);
}

.ana-home__comparison-table table tbody tr {
    transition: background-color 180ms var(--ana-polish-ease);
}

.ana-home__comparison-table table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ana-home__final {
    background:
        linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
}

@media (max-width: 1024px) {
    .ana-home__next .wpangel-feature-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ana-home__next .wpangel-feature-cards__grid::before {
        display: none;
    }
}

@media (max-width: 700px) {
    .ana-home__comparison {
        padding-inline: 16px;
    }

    .ana-home__comparison-table {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }

    .ana-home__comparison-table table {
        display: table;
        min-width: 620px;
    }

    .ana-home__comparison-table table thead {
        display: table-header-group;
    }

    .ana-home__comparison-table table tbody {
        display: table-row-group;
    }

    .ana-home__comparison-table table tr {
        display: table-row;
        width: auto;
        border-bottom: 0;
    }

    .ana-home__comparison-table table td,
    .ana-home__comparison-table table th {
        display: table-cell;
        width: auto;
        padding: 15px 18px;
        text-align: center;
    }

    .ana-home__comparison-table table td:first-child,
    .ana-home__comparison-table table th:first-child {
        text-align: left;
    }

    .ana-home__comparison-table table td:nth-child(2)::before,
    .ana-home__comparison-table table td:nth-child(3)::before {
        content: none;
    }
}

@media (max-width: 640px) {
    .ana-home__hero,
    .ana-home__next,
    .ana-home__experts,
    .ana-home__specialist,
    .ana-home__steps,
    .ana-home__comparison,
    .ana-home__final {
        --ana-polish-section-y: 68px;
    }

    .ana-home__hero {
        padding-block: 92px 96px;
    }

    .ana-home__hero-inner,
    .ana-home__next-inner,
    .ana-home__experts-inner,
    .ana-home__steps-inner,
    .ana-home__specialist .wp-block-media-text,
    .ana-home__final .wp-block-media-text {
        width: min(calc(100% - 32px), 1180px);
    }

    .ana-home__hero h1 {
        font-size: clamp(2.75rem, 15vw, 4rem);
    }

    .ana-home__hero-cards .wpangel-feature-cards__card {
        min-height: auto;
        padding: 24px;
        border-radius: 20px;
    }

    .ana-home__hero-cards .wpangel-feature-cards__image {
        aspect-ratio: 16 / 10;
    }

    .ana-home__next .wpangel-feature-cards__grid {
        grid-template-columns: 1fr;
    }

    .ana-home__next-cards .wpangel-feature-cards__card {
        align-items: center;
        min-height: auto;
        padding: 26px 22px;
    }

    .ana-demo__benefit-item:hover,
    .ana-demo__step:hover {
        padding-inline: 0;
    }

    .ana-home__specialist .wp-block-media-text__content h2,
    .ana-home__steps-header h2,
    .ana-home__comparison-title,
    .ana-home__final .wp-block-media-text__content h2 {
        font-size: clamp(2rem, 10vw, 2.85rem);
    }

    .ana-home__specialist .wp-block-buttons .wp-block-button__link,
    .ana-home__final .wp-block-buttons .wp-block-button__link,
    .ana-home__next-cta .wp-block-buttons .wp-block-button__link,
    .ana-home__next-cta.wp-block-group .wp-block-group__inner-container .wp-block-button .wp-block-button__link {
        width: 100%;
    }
}

/*
 * ===== Mobile Media/Text Repair =====
 * Core/media-text keeps a fairly opinionated grid, and the ANA homepage adds
 * more section-specific grid rules above. On narrow screens these sections
 * must become one deliberate column; otherwise the text column can collapse
 * into one-word lines.
 */
@media (max-width: 700px) {
    .ana-home__specialist .wp-block-media-text,
    .ana-home__final .wp-block-media-text {
        display: grid !important;
        width: min(calc(100% - 32px), 560px);
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px;
    }

    .ana-home__specialist .wp-block-media-text {
        grid-template-areas:
            "media"
            "content" !important;
    }

    .ana-home__final .wp-block-media-text,
    .ana-home__final .wp-block-media-text.has-media-on-the-right {
        grid-template-areas:
            "content"
            "media" !important;
    }

    .ana-home__specialist .wp-block-media-text__media,
    .ana-home__final .wp-block-media-text__media {
        position: static;
        top: auto;
        width: 100%;
        min-width: 0;
        grid-area: media;
    }

    .ana-home__specialist .wp-block-media-text__content,
    .ana-home__final .wp-block-media-text__content {
        width: 100%;
        max-width: none;
        min-width: 0;
        grid-area: content;
        padding: 0 !important;
    }

    .ana-home__specialist .wp-block-media-text__content h2,
    .ana-home__final .wp-block-media-text__content h2 {
        max-width: none;
        overflow-wrap: normal;
        word-break: normal;
    }

    .ana-home__specialist .wp-block-media-text__content p:not(.ana-home__specialist-eyebrow),
    .ana-home__final .wp-block-media-text__content p:not(.ana-home__final-eyebrow) {
        max-width: none;
        font-size: 1rem;
    }

    .ana-home__specialist .wp-block-media-text__media,
    .ana-home__specialist .wp-block-media-text__media img,
    .ana-home__final .wp-block-media-text__media,
    .ana-home__final .wp-block-media-text__media img {
        min-height: 260px;
        max-height: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ana-home__hero *,
    .ana-home__hero *::before,
    .ana-home__hero *::after,
    .ana-home__next *,
    .ana-home__next *::before,
    .ana-home__next *::after,
    .ana-home__experts *,
    .ana-home__experts *::before,
    .ana-home__experts *::after,
    .ana-home__specialist *,
    .ana-home__specialist *::before,
    .ana-home__specialist *::after,
    .ana-home__steps *,
    .ana-home__steps *::before,
    .ana-home__steps *::after,
    .ana-home__comparison *,
    .ana-home__comparison *::before,
    .ana-home__comparison *::after,
    .ana-home__final *,
    .ana-home__final *::before,
    .ana-home__final *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
