/* ==========================================================================
   Advanced Meditation - preview overrides (loaded AFTER landing.css)
   Same design family as the base stylesheet, but deeper, quieter and more
   minimal: slightly deeper emerald, more generous air, lighter display type.
   Everything is scoped to .ypm-am / html.ypm-am-root.
   ========================================================================== */

.ypm-am {
    --c-emerald:      #1a5f52;
    --c-emerald-deep: #0d2f29;
    --c-emerald-dark: #0d2f29;
    --section-y: clamp(5rem, 11vw, 9.5rem);
}

/* Headings on the one deep-emerald content band. */
.ypm-am .section--dark h2,
.ypm-am .section--dark h3 { color: #fff; }
.ypm-am .section--dark .quiet-list li { color: var(--c-on-dark-soft); border-color: rgba(216, 194, 149, 0.22); }
.ypm-am .section--dark .quiet-list { border-color: rgba(216, 194, 149, 0.22); }

/* Quieter hero title: lighter weight in Latin, a touch smaller. */
html.ypm-am-root[lang="en"] .hero__title { font-weight: 400; font-size: clamp(2.4rem, 1.3rem + 5.4vw, 4.8rem); max-width: 12ch; }
html.ypm-am-root[lang="fa"] .hero__title { font-size: clamp(2.1rem, 1.2rem + 4.4vw, 3.9rem); }

/* Recorded-course callout ------------------------------------------------ */
.ypm-am .callout {
    background: var(--c-emerald-soft);
    border-block: var(--hair);
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.ypm-am .callout__inner {
    max-width: 66ch;
    margin-inline: auto;
    text-align: center;
}
.ypm-am .callout__label {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--c-gold-soft);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--c-gold-deep);
    background: var(--c-paper);
}
.ypm-am .callout__text {
    margin: 0;
    font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
    line-height: 1.85;
    color: var(--c-emerald-deep);
}
html.ypm-am-root[lang="fa"] .callout__text { line-height: 2.1; }

/* Inner Observer editorial ------------------------------------------------ */
.ypm-am .split {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
@media (min-width: 900px) {
    .ypm-am .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}
.ypm-am .pull {
    margin: 0;
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid var(--c-gold);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem);
    line-height: 1.5;
    color: var(--c-emerald-deep);
}
html.ypm-am-root[lang="fa"] .pull { font-family: var(--font-fa); font-weight: 400; line-height: 2; font-size: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); }
.ypm-am .section--dark .pull { color: #fff; border-color: var(--c-gold); }

.ypm-am .steps-inline {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
    border-block-start: var(--hair);
}
.ypm-am .steps-inline li {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding-block: 0.9rem;
    border-block-end: var(--hair);
    color: var(--c-ink-soft);
}
.ypm-am .steps-inline b {
    font-family: var(--font-en-sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--c-gold-deep);
    min-width: 1.5rem;
}

/* Week cards reuse .audience; the label sits above the heading. */
.ypm-am .section--dark .steps-inline,
.ypm-am .section--dark .steps-inline li { border-color: rgba(216, 194, 149, 0.22); }
.ypm-am .section--dark .steps-inline li { color: var(--c-on-dark); }
.ypm-am .section--dark .steps-inline b { color: var(--c-gold-soft); }

.ypm-am .week__label {
    display: block;
    margin-block-end: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--c-gold-deep);
}
.ypm-am .journal-note {
    max-width: 60ch;
    margin-block-start: 2.5rem;
    padding-inline-start: 1.25rem;
    border-inline-start: 2px solid var(--c-gold-soft);
    color: var(--c-ink-soft);
}
.ypm-am .journal-note strong { color: var(--c-emerald-deep); }

/* Access block ------------------------------------------------------------ */
.ypm-am .access-list {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--c-ink);
}
.ypm-am .access-list b { color: var(--c-emerald-deep); }
.ypm-am .price .lede { margin-inline: auto; max-width: 48ch; font-size: 1.05rem; }

.ypm-am .disclaimer {
    max-width: 820px;
    margin: 2.25rem auto 0;
    font-size: 0.9rem;
    color: var(--c-ink-soft);
    line-height: 1.85;
}

/* Long Persian CTA label wraps gracefully on phones. */
.ypm-am .btn { text-align: center; line-height: 1.6; }
@media (max-width: 480px) {
    .ypm-am .btn { padding-inline: 1.25rem; font-size: 0.9rem; }
    .ypm-am .sticky-cta .btn { padding-block: 0.7rem; font-size: 0.86rem; }
}

/* Guard against horizontal overflow from any long token. */
.ypm-am { overflow-x: clip; }
.ypm-am img { max-width: 100%; height: auto; }
.ypm-am .hero__media img,
.ypm-am .finale__media img,
.ypm-am .teacher__portrait img { height: 100%; }


/* ==========================================================================
   Polish pass (mobile-approved direction, small refinements only)
   ========================================================================== */

/* 1. Sticky CTA: while hidden it is also removed from paint and the tab order,
      so it can never sit over (or be focused behind) the final CTA / footer. */
.ypm-am .sticky-cta {
    visibility: hidden;
    transition: transform 420ms var(--ease), visibility 0s linear 420ms;
}
.ypm-am .sticky-cta.is-visible {
    visibility: visible;
    transition: transform 420ms var(--ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .ypm-am .sticky-cta,
    .ypm-am .sticky-cta.is-visible { transition: none; }
}

/* 2. Recorded-course badge in the hero: a quiet hairline pill with a small gold
      mark. Same wording, same palette; no fill, no glow, no sale-badge cues. */
.ypm-am .hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.42rem 1rem;
    border: 1px solid var(--c-gold-soft);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    margin-block-end: 1.5rem;
    line-height: 1.5;
}
.ypm-am .hero__kicker::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-gold);
}
html.ypm-am-root[lang="fa"] .hero__kicker { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }
html.ypm-am-root[lang="en"] .hero__kicker { font-size: 0.76rem; letter-spacing: 0.2em; }

/* 3. Five-session journey: about 10% less vertical air, same timeline. */
.ypm-am .journey { margin-block-start: 3.6rem; }
.ypm-am .journey__list { gap: clamp(2.25rem, 4.5vw, 4.05rem); }
.ypm-am .step__num { margin-block-end: 0.55rem; }
.ypm-am .step__alt { margin-block-end: 0.9rem; }
.ypm-am .step__body { margin-block-end: 1rem; }
@media (min-width: 980px) {
    .ypm-am .step:nth-child(even) { margin-block-start: -3.15rem; }
}

/* 4. 21-day program: Week 1 -> 2 -> 3 reads as a gentle progression.
      The inline-start rule deepens each week (logical properties, so it is
      correct in both RTL and LTR); on phones a small chevron links the cards. */
.ypm-am #program-21 .audience__item { border-inline-start: 2px solid var(--c-gold-soft); position: relative; }
.ypm-am #program-21 .audience__item:nth-child(2) { border-inline-start: 3px solid var(--c-gold); }
.ypm-am #program-21 .audience__item:nth-child(3) { border-inline-start: 4px solid var(--c-gold-deep); }
.ypm-am #program-21 .audience__item:nth-child(2) .week__label { letter-spacing: 0.12em; }
.ypm-am #program-21 .audience__item:nth-child(3) .week__label { letter-spacing: 0.14em; color: var(--c-emerald); }
@media (max-width: 719px) {
    .ypm-am #program-21 .audience { overflow: visible; }
    .ypm-am #program-21 .audience__item:not(:last-child)::after {
        content: "";
        position: absolute;
        inset-inline-start: calc(50% - 6px);
        inset-block-end: -7px;
        width: 11px;
        height: 11px;
        background: var(--c-paper);
        border-inline-end: 1px solid var(--c-gold);
        border-block-end: 1px solid var(--c-gold);
        transform: rotate(45deg);
        z-index: 1;
    }
}