.marketplace-page { --marketplace-blue: #5D7CE9; background: #fff; }
.marketplace-page .marketplace-eyebrow { margin-bottom: 18px; color: var(--marketplace-blue); font-size: 12px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.marketplace-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; min-height: calc(100vh - var(--marketplace-header-height, 118px)); min-height: calc(100dvh - var(--marketplace-header-height, 118px)); padding: 30px 0 60px; background: #e7edf3; }
.marketplace-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.marketplace-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #edf2f7fa 0%, #edf2f7e8 23%, #edf2f780 36%, #edf2f700 50%); }
.marketplace-breadcrumb { display: flex; gap: 12px; margin-bottom: 54px; color: #505b6c; font-size: 13px; }
.marketplace-page .marketplace-breadcrumb a { color: var(--marketplace-blue); }
.marketplace-hero-copy { max-width: 570px; }
.marketplace-page h1 { margin-bottom: 24px; font-size: clamp(38px, 4vw, 60px); line-height: 1.12; }
.marketplace-page h1 span { color: var(--marketplace-blue); }
.marketplace-page .marketplace-lead { max-width: 420px; color: #3e4d62; font-size: 19px !important; line-height: 1.6; }
.marketplace-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 30px; }
.marketplace-page .btn { background: var(--marketplace-blue); border-color: var(--marketplace-blue); }
.marketplace-page .btn:hover { background: #4A63C9; border-color: #4A63C9; }
.marketplace-page .marketplace-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--marketplace-blue); font-size: 14px; font-weight: 600; }
.marketplace-text-link:hover { text-decoration: underline; }
/* The header scrolls away; subsequent sections fill the viewport on their own. */
.marketplace-section, .marketplace-context { display: grid; align-content: center; min-height: 100vh; min-height: 100dvh; padding-block: clamp(32px, 5vh, 64px); }
.marketplace-page > section[id] { scroll-margin-top: 0; }
.marketplace-section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 60px; margin-bottom: 40px; }
.marketplace-section-heading h2 { margin: 0; }
.marketplace-section-heading > p { max-width: 480px; margin: 0; }
.marketplace-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.marketplace-steps > li { position: relative; padding: 32px; border: 1px solid #e0e6f1; border-radius: 14px; background: #f7f9fd; }
.marketplace-step-number { position: absolute; top: 26px; right: 28px; color: #7b88a7; font-size: 14px; font-weight: 600; }
.marketplace-steps i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 12px; background: #e6ecfc; color: var(--marketplace-blue); font-size: 21px; }
.marketplace-steps h3 { margin-bottom: 14px; font-size: 22px; }
.marketplace-steps p { margin: 0; }
.marketplace-context { background: #1f2d4d; }
.marketplace-context-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 100px); }
.marketplace-page .marketplace-context .marketplace-eyebrow { color: #b6c8ff; }
.marketplace-page .marketplace-context h2 { margin-bottom: 24px; color: #fff; }
.marketplace-page .marketplace-context p { color: #d2dbec; }
.marketplace-page .marketplace-physician-note { display: flex; gap: 12px; align-items: baseline; padding-top: 22px; margin-top: 28px; border-top: 1px solid #52607b; font-size: 14px !important; }
.marketplace-physician-note i { color: #a9dddb; }
.marketplace-flow { margin: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid #52607b; border-radius: 18px; background: #293958; }
.marketplace-flow figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 30px; color: #fff; font-size: 18px; font-weight: 600; }
.marketplace-flow-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 88px; min-height: 44px; padding: 8px 12px; border: 1px solid #718bc4; border-radius: 8px; background: transparent; color: #d7e3ff; font: inherit; font-size: 12px; cursor: pointer; }
.marketplace-flow-toggle[hidden] { display: none; }
.marketplace-flow-toggle:hover { background: #364e79; color: #fff; }
.marketplace-flow-toggle:focus-visible { outline: 2px solid #a9dddb; outline-offset: 4px; }
.marketplace-flow ol { margin: 0; padding: 0; list-style: none; }
.marketplace-flow li { position: relative; display: flex; gap: 20px; padding-bottom: 34px; }
.marketplace-flow li:last-child { padding-bottom: 0; }
.marketplace-flow li:not(:last-child)::before { content: ''; position: absolute; top: 48px; bottom: 0; left: 23px; width: 2px; background: #6a80ac; }
.marketplace-flow-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 1px solid #718bc4; border-radius: 12px; background: #364e79; color: #d7e3ff; font-size: 19px; }
.marketplace-flow strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.marketplace-flow div > span { display: block; margin-top: 4px; color: #d2dbec; font-size: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
    .marketplace-flow li { --flow-delay: 0s; }
    .marketplace-flow li:nth-child(2) { --flow-delay: 1.6s; }
    .marketplace-flow li:nth-child(3) { --flow-delay: 3.2s; }
    .marketplace-flow li:nth-child(4) { --flow-delay: 4.8s; }
    .marketplace-flow.is-animated li:not(:last-child)::after { content: ''; position: absolute; top: 48px; bottom: 0; left: 23px; width: 2px; background: #bffbf0; box-shadow: 0 0 10px #a9dddb80; transform: scaleY(0); transform-origin: top; opacity: 0; animation: marketplace-flow-signal 8s ease-in-out infinite; }
    .marketplace-flow.is-animated .marketplace-flow-icon { animation: marketplace-flow-pulse 8s ease-in-out infinite; }
    .marketplace-flow.is-animated li > div { animation: marketplace-flow-nudge 8s ease-in-out infinite; }
    .marketplace-flow.is-animated li:not(:last-child)::after,
    .marketplace-flow.is-animated .marketplace-flow-icon,
    .marketplace-flow.is-animated li > div { animation-delay: var(--flow-delay); animation-play-state: paused; }
    .marketplace-flow.is-playing li:not(:last-child)::after,
    .marketplace-flow.is-playing .marketplace-flow-icon,
    .marketplace-flow.is-playing li > div { animation-play-state: running; }
}
@keyframes marketplace-flow-pulse {
    0%, 22%, 100% { transform: translateY(0); background: #364e79; border-color: #718bc4; color: #d7e3ff; box-shadow: 0 0 0 0 transparent; }
    6%, 14% { transform: translateY(-2px); background: #bffbf0; border-color: #bffbf0; color: #1e464b; box-shadow: 0 0 0 6px #a9dddb18, 0 0 28px #a9dddb33; }
}
@keyframes marketplace-flow-signal {
    0%, 12% { transform: scaleY(0); opacity: 0; }
    14% { transform: scaleY(0); opacity: 1; }
    20%, 24% { transform: scaleY(1); opacity: 1; }
    30%, 100% { transform: scaleY(1); opacity: 0; }
}
@keyframes marketplace-flow-nudge {
    0%, 22%, 100% { transform: translateX(0); }
    6%, 14% { transform: translateX(4px); }
}
.marketplace-closing-panel { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.marketplace-closing-panel h2 { margin-bottom: 20px; }
.marketplace-closing-panel p { max-width: 530px; margin-inline: auto; }
.marketplace-closing-panel .btn { flex-shrink: 0; }
@media (max-width: 1199px) {
    .marketplace-hero-image { object-position: 58% center; }
    .marketplace-hero-copy { max-width: 470px; }
    .marketplace-section-heading { gap: 36px; }
    .marketplace-steps > li { padding: 24px; }
}
@media (max-width: 767px) {
    .marketplace-flow figcaption { flex-wrap: nowrap; }
    .marketplace-flow-toggle { flex-shrink: 0; min-width: 44px; }
    .marketplace-flow-toggle span { display: none; }
    .marketplace-section-heading, .marketplace-context-grid, .marketplace-steps { grid-template-columns: 1fr; }
    .marketplace-section-heading { gap: 22px; }
    .marketplace-steps { gap: 16px; }
    .marketplace-steps i { margin-bottom: 20px; }
    .marketplace-closing-panel { gap: 28px; }
    .marketplace-page .marketplace-eyebrow { font-size: 11px !important; }
}
