.landing-journey-coachmark-group {
    position: relative;
    display: grid;
    min-width: 0;
}

body.home-page::before {
    position: fixed;
    z-index: 110;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease-out;
}

body.home-page.is-coachmark-spotlight::before { opacity: 1; }

.landing-home-coachmark {
    position: absolute;
    z-index: 112;
    right: 0;
    left: 0;
    min-width: 0;
    border-radius: var(--app-radius-control);
    padding: 14px max(56px, calc(56px / var(--app-scale, 1))) 14px 16px;
    background: #2563eb;
    color: #fff;
    corner-shape: var(--app-corner-shape);
}

.landing-home-coachmark--journey { top: calc(100% + 8px); }
.landing-home-coachmark--dashboard { bottom: calc(100% + 8px); }
.landing-home-coachmark--journal { top: calc(100% + 8px); }
.landing-home-coachmark--details { top: calc(100% + 8px); }

.landing-home-coachmark[hidden] { display: none; }

.landing-home-coachmark::after {
    position: absolute;
    left: 24px;
    width: 0;
    height: 0;
    border-right: 9px solid transparent;
    border-left: 9px solid transparent;
    content: "";
}

.landing-home-coachmark--journey::after,
.landing-home-coachmark--journal::after,
.landing-home-coachmark--details::after {
    top: -8px;
    border-bottom: 9px solid #2563eb;
}

.landing-home-coachmark--dashboard::after {
    bottom: -8px;
    border-top: 9px solid #2563eb;
}

.landing-home-coachmark__label,
.landing-home-coachmark__copy {
    margin: 0;
}

.landing-home-coachmark__label {
    margin-bottom: 4px;
    letter-spacing: 0;
}

.landing-home-coachmark__copy {
    overflow-wrap: anywhere;
}

.landing-navigation-coachmark {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: calc(100% + 8px);
    left: 25%;
    min-width: 0;
    border-radius: var(--app-radius-control);
    padding: 14px 16px;
    background: #2563eb;
    color: #fff;
    corner-shape: var(--app-corner-shape);
}

.landing-navigation-coachmark[hidden] { display: none; }

.landing-navigation-coachmark::after {
    position: absolute;
    bottom: -8px;
    left: calc(50% - 9px);
    width: 0;
    height: 0;
    border-top: 9px solid #2563eb;
    border-right: 9px solid transparent;
    border-left: 9px solid transparent;
    content: "";
}

.landing-navigation-coachmark__copy {
    margin: 0;
    overflow-wrap: anywhere;
}

.landing-bottom-nav.is-navigation-coachmarked::after {
    position: absolute;
    z-index: 2;
    inset: 0 0 0 25%;
    border: 2px solid #2563eb;
    border-radius: 0;
    background: rgba(37, 99, 235, 0.05);
    content: "";
    pointer-events: none;
}

.landing-home-coachmark__dismiss {
    appearance: none;
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: max(44px, calc(44px / var(--app-scale, 1)));
    height: max(44px, calc(44px / var(--app-scale, 1)));
    border: 0;
    border-radius: var(--app-radius-circle);
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.landing-home-coachmark__dismiss svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.landing-home-coachmark__dismiss:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -4px;
}

.landing-journey-card.is-coachmarked {
    position: relative;
    z-index: 111;
    border-color: #2563eb;
    box-shadow: inset 0 0 0 1px #2563eb;
}

.landing-dashboard-widget-group {
    position: relative;
    display: grid;
    gap: 16px;
    min-width: 0;
    border-radius: var(--app-radius-control);
}

.landing-journal-daily {
    position: relative;
    display: grid;
    gap: 32px;
    min-width: 0;
    border-radius: var(--app-radius-control);
}

.landing-journal-daily.is-coachmarked::before,
.landing-dashboard-widget-group.is-coachmarked::before {
    position: absolute;
    z-index: 9;
    inset: 0;
    border: 2px solid #2563eb;
    border-radius: var(--app-radius-control);
    content: "";
    pointer-events: none;
}

.landing-journal-daily.is-coachmarked,
.landing-dashboard-widget-group.is-coachmarked,
.landing-module-cards.is-coachmarked {
    z-index: 111;
}

.landing-journal-daily.is-coachmarked {
    background: #fff;
}

.landing-module-cards[data-landing-details-coachmark-target] {
    position: relative;
    border-radius: var(--app-radius-control);
}

.landing-module-cards.is-coachmarked::before {
    position: absolute;
    z-index: 9;
    inset: 0;
    border: 2px solid #2563eb;
    border-radius: var(--app-radius-control);
    content: "";
    pointer-events: none;
}

.landing-journey-card:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

.landing-journal-daily:focus-visible,
.landing-dashboard-widget-group:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

.landing-module-cards:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

@media (hover: hover) {
    .landing-home-coachmark__dismiss:hover {
        background: rgba(255, 255, 255, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page::before { transition: none; }
}
