html.lenis,html.lenis body{height:auto}
html.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
/* A generous pause between social proof and MEDI's own product story. */
.intro-proof{padding-top:30px;padding-bottom:clamp(130px,12vw,170px)}
.proof-line{font-size:14px;letter-spacing:-.01em;color:#6a7b6f}
.proof-line span{display:inline;color:inherit}
.proof-description{font-size:20px;letter-spacing:-.025em;margin:12px auto 0;line-height:1.5}
.proof-description strong{font-weight:500}
.intro-proof .logo-marquee{margin:32px auto 0}
.platform-section{padding-top:20px}
.platform-section>.section-heading{margin-bottom:68px}
.platform-section>.section-heading h2{font-family:Newsreader,Georgia,serif;font-size:clamp(40px,4.6vw,66px);font-weight:400;font-optical-sizing:auto;line-height:1.1;letter-spacing:-.03em}
.platform-section>.section-heading h2 em{font-weight:inherit}
.feature-deck{position:relative;isolation:isolate;width:94%;max-width:1080px;margin:0 auto;--scene-height:clamp(470px,calc(100svh - 230px),550px)}
.feature-stage{position:relative}
.feature-anchor{position:absolute;left:0;top:0;width:1px;height:1px;pointer-events:none;scroll-margin-top:0px}
.feature-deck .feature-panel{position:relative;top:auto;display:grid;grid-template-columns:40% 60%;min-height:0;height:var(--scene-height);margin:0 0 48px;border:1px solid #ffffff42;border-radius:40px;overflow:hidden;isolation:isolate;box-shadow:0 1px 0 #fff4 inset;transform:none;transform-origin:center center;background:#407b6c url('/site/assets/optimized/feature-glass-gradient-3bc9a7c545a2.webp') center/cover}
.feature-deck .feature-panel:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(100deg,#10382ded 0%,#174839c9 28%,#19473835 58%,#19473805 100%)}
.feature-deck .feature-panel[data-feature=outbound]{background-image:url('/site/assets/optimized/feature-outbound-background-754868e386e8.webp');background-position:center}
.feature-deck .feature-panel[data-feature=workflows]{background-image:url('/site/assets/optimized/feature-messaging-background-ee1eaae45f18.webp');background-position:center}
.feature-deck .feature-story{display:flex;flex-direction:column;padding:52px 24px 48px 52px;align-self:stretch;opacity:var(--copy-opacity,1);transition:opacity .25s;pointer-events:auto;z-index:1}
.feature-deck .feature-story h3{font-size:clamp(30px,3vw,40px);line-height:1.12;letter-spacing:-.04em;margin:0;font-weight:400;color:#fcfff8;text-wrap:balance}
.feature-story-copy{display:grid;gap:18px;margin:32px 0 28px;max-width:34ch}
.feature-story-copy p{font-size:16px;line-height:1.65;margin:0;color:#e0eee3}
.feature-story-copy .feature-story-lead{font-size:18px;line-height:1.5;color:#f4faef}
.feature-deck .feature-visual,.feature-deck .automation-canvas{height:100%;min-height:0;padding:35px 30px 35px 24px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:0;overflow:visible;isolation:isolate;background:none;box-shadow:none;z-index:1}
.feature-deck .automation-canvas:before,.feature-deck .automation-canvas:after{display:none}
.feature-deck .automation-window{max-width:540px;transform:none;border-radius:18px;box-shadow:0 20px 55px #143f3b26}
.feature-deck .automation-viewport{height:235px}
.feature-deck .automation-canvas:not(.inbound-canvas) .automation-track{animation-play-state:paused}
.feature-deck .is-active .automation-running .automation-track{animation-play-state:running}
.feature-deck.has-motion{height:calc(var(--scene-height) + var(--deck-travel))}
.has-motion .feature-stage{position:sticky;top:calc(100px + (100svh - 150px - var(--scene-height))/2);height:var(--scene-height)}
.has-motion .feature-panel{position:absolute;inset:0;margin:0;will-change:transform,opacity}
.has-motion .feature-panel:not(.is-active){pointer-events:none}
.inbound-window{width:100%;max-width:520px;background:#fcfcfb;border:1px solid #ffffffd9;border-radius:20px;padding:22px;box-shadow:0 20px 65px #173b3e1c;overflow:hidden;--row-height:76px}
.inbound-window-header{display:flex;align-items:center;gap:11px;font-size:15px;line-height:26px;color:#203c33;margin:0 0 18px}
.inbound-window-header img{width:26px;height:26px;object-fit:contain}
.inbound-task-list{position:relative;display:flex;flex-direction:column}
.queue-ready .inbound-task-list{display:block;height:calc(var(--queue-rows,1)*var(--row-height));overflow:hidden}
.inbound-task-slot{position:relative;height:var(--row-height);isolation:isolate}
.queue-ready .inbound-task-slot{position:absolute;inset:0 0 auto;opacity:var(--row-open,1);transform:translateY(calc(var(--row-position,0)*var(--row-height)))}
.inbound-archive{position:absolute;inset:0;display:flex;align-items:center;gap:9px;padding:0 12px;border-radius:8px;color:#356b44;background:linear-gradient(90deg,#d4e9d6,#e9f4e9);box-shadow:inset 0 0 0 1px #62967018;font-size:12px;clip-path:inset(0 calc((1 - var(--row-archive,0))*100%) 0 0);z-index:0}
.inbound-archive svg{width:18px;height:18px}
.inbound-task{height:var(--row-height);padding:4px 0;display:flex;align-items:center;gap:12px}
.inbound-status-icon{opacity:var(--task-opacity,1);display:block;position:relative;width:20px;height:20px;flex:0 0 20px;color:#4d8652}
.inbound-spinner{position:absolute;inset:1px;border:1.7px solid #7d9a7c40;border-top-color:#508754;border-right-color:#508754;border-radius:50%;opacity:calc(1 - var(--row-done,0));animation:inbound-spin .9s linear infinite;animation-play-state:paused}
.is-in-view .inbound-spinner{animation-play-state:running}
.inbound-task-slot[data-state=done] .inbound-spinner{animation-play-state:paused}
.inbound-check{position:absolute;inset:0;opacity:var(--row-done,0);transform:scale(calc(.65 + var(--row-done,0)*.35));width:20px;height:20px}
.inbound-task-surface{position:relative;min-width:0;flex:1;height:100%;overflow:hidden;border-radius:8px;isolation:isolate}
.inbound-task-content{position:absolute;inset:0;min-width:0;z-index:1;transform:translate3d(calc(var(--row-archive,0)*100%),0,0);opacity:var(--task-opacity,1);display:flex;align-items:center;justify-content:space-between;gap:8px;height:100%;background:#f5f6f4;border-radius:8px;padding:10px 12px}
.inbound-task-title{font-size:14px;line-height:1.4;color:#4e5b52;position:relative;width:fit-content;letter-spacing:-.015em}
.inbound-task-title{text-decoration:line-through;text-decoration-color:rgb(123 148 123 / var(--row-done,0));text-decoration-thickness:1px}
.inbound-task-status{font-size:12px;line-height:1.4;color:#758779;text-align:right;max-width:85px;flex-shrink:0}
.inbound-task-slot[data-state=done] .inbound-task-content{background:#edf4eb}
.inbound-task-slot[data-state=done] .inbound-task-title{color:#82997e}
.inbound-task-slot[data-state=done] .inbound-task-status{color:#52784d}
.inbound-result{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#52754e;line-height:1.5;height:calc(var(--result-open,0)*36px);padding-top:calc(var(--result-open,0)*16px);opacity:var(--result-open,0);overflow:hidden;transition:height .3s,padding .3s,opacity .3s}
@keyframes inbound-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){
 .feature-deck{--scene-height:clamp(475px,calc(100svh - 210px),550px)}
 .feature-deck .feature-panel{grid-template-columns:40% 60%;border-radius:34px}
 .feature-deck .feature-story{padding:42px 18px 40px 38px}
 .feature-deck .feature-story h3{font-size:34px}
 .feature-story-copy{gap:16px;margin-top:26px;margin-bottom:24px}
 .feature-story-copy p{font-size:15px;line-height:1.6}
 .feature-story-copy .feature-story-lead{font-size:17px}
 .feature-deck .feature-visual,.feature-deck .automation-canvas{padding:35px 25px 30px 18px}
 .inbound-window{padding:21px;--row-height:72px}
 .inbound-task-content{display:flex;padding:9px 12px}
 .inbound-task-status{display:block;text-align:right;max-width:77px;margin-top:0;font-size:11px}
 .inbound-task-title{display:block;font-size:14px}
 .inbound-window-header{font-size:14px}
 .feature-deck .automation-header{font-size:12px}
 .feature-deck .automation-viewport{height:220px}
}
@media(max-width:800px){
 .intro-proof{padding-bottom:112px}
 .platform-section{padding-top:8px}
 .platform-section>.section-heading{margin-bottom:48px}
 .feature-deck{width:100%;--scene-height:clamp(600px,calc(100svh - 190px),680px)}
 .feature-deck .feature-panel{grid-template-columns:1fr;grid-template-rows:290px 1fr;border-radius:30px;transform-origin:center center}
 .feature-deck .feature-panel:before{background:linear-gradient(155deg,#10382ded 0%,#174839ad 35%,#19473812 75%)}
 .feature-deck .feature-story{padding:30px 34px 0;text-align:left;align-items:flex-start}
 .feature-deck .feature-story h3{font-size:33px;max-width:400px}
 .feature-story-copy{gap:10px;margin:20px 0 0;max-width:460px}
 .feature-story-copy p{font-size:15px;line-height:1.5}
 .feature-story-copy .feature-story-lead{font-size:16px}
 .feature-deck .feature-visual,.feature-deck .automation-canvas{padding:12px 28px 24px;align-items:center}
 .feature-deck .automation-viewport{height:145px}
 .feature-deck .automation-bottom{font-size:10px;padding:10px}
 .feature-deck .automation-header{padding:12px 16px}
 .feature-deck .automation-kpis{padding:12px 16px}
 .feature-deck .automation-kpis strong{font-size:24px}
 .feature-deck .automation-row{min-height:68px}
 .has-motion .feature-stage{top:calc(86px + (100svh - 130px - var(--scene-height))/2)}
}
@media(max-width:600px){
 .intro-proof{padding-top:23px;padding-bottom:104px}
 .proof-line{font-size:13px;line-height:1.5}
 .proof-description{font-size:17px;max-width:320px;line-height:1.5;margin-top:10px}
 .intro-proof .logo-marquee{margin-top:25px}
 .platform-section>.section-heading{margin-bottom:40px}
 .platform-section>.section-heading h2{font-size:40px}
 .feature-deck{--scene-height:clamp(630px,calc(100svh - 200px),650px)}
 .feature-deck .feature-panel{grid-template-rows:310px 1fr;border-radius:26px}
 .feature-deck .feature-story{padding:27px 27px 0}
 .feature-deck .feature-story h3{font-size:30px;max-width:300px}
 .feature-story-copy{gap:12px;margin-top:20px}
 .feature-story-copy p{font-size:14px;line-height:1.5}
 .feature-story-copy .feature-story-lead{font-size:15px}
 .feature-deck .feature-visual,.feature-deck .automation-canvas{padding:5px 15px 20px}
 .inbound-window{padding:17px 14px;border-radius:16px;--row-height:76px}
 .inbound-window-header{font-size:13px;gap:8px;line-height:22px;margin-bottom:13px}
 .inbound-window-header img{width:23px;height:23px}
 .inbound-task{gap:9px;padding:3px 0}
 .inbound-status-icon,.inbound-check{width:17px;height:17px;flex-basis:17px}
 .inbound-task-content{padding:9px 10px}
 .inbound-task-title{font-size:12px;letter-spacing:-.01em}
 .inbound-task-status{font-size:10px;margin-top:0;line-height:1.25;max-width:65px}
 .inbound-result{font-size:11px;gap:8px}
 .feature-deck .automation-header{font-size:11px;padding:10px}
 .feature-deck .automation-kpis{padding:11px 10px}
 .feature-deck .automation-kpis strong{font-size:21px}
 .feature-deck .automation-viewport{height:150px}
 .feature-deck .automation-bottom{font-size:9px;padding:9px}
 .feature-deck .automation-row{min-height:65px}
 .feature-deck .automation-row small{display:none}
}
@media(prefers-reduced-motion:reduce),(max-height:620px),(max-width:360px){
 .feature-deck{height:auto!important}
 .feature-deck .feature-stage{position:relative;top:auto;height:auto}
 .feature-deck .feature-panel{position:relative;inset:auto;height:auto;min-height:580px;margin-bottom:38px;transform:none!important;opacity:1!important}
 .feature-deck .feature-story{opacity:1!important}
 .feature-deck .feature-visual,.feature-deck .automation-canvas{min-height:390px}
}
@media(max-width:360px){
 .feature-deck .feature-panel{grid-template-rows:auto 1fr}
 .feature-deck .feature-story{padding:28px 24px 26px}
 .feature-deck .feature-visual,.feature-deck .automation-canvas{padding-top:10px}
 .inbound-window{--row-height:92px}
}
@media(prefers-reduced-motion:reduce){
 .inbound-spinner{animation:none}
 .inbound-result{transition:none}
 .queue-ready .inbound-task-list{height:auto;overflow:visible}
 .queue-ready .inbound-task-slot{position:relative;transform:none;opacity:1}
 .inbound-task-title{text-decoration:none}
 .feature-deck .feature-visual,.feature-deck .automation-canvas{min-height:450px}
}
.feature-deck:not(.has-motion) .feature-story{opacity:1}
.has-motion:not(.motion-ready) .feature-story,.has-motion:not(.motion-ready) .inbound-result{transition:none}

.feature-article-link{display:inline-flex;align-self:flex-start;align-items:center;gap:18px;padding:11px 16px;margin-top:auto;border-radius:24px;border:1px solid #e5eee17a;background:#f6f9ed;color:#214336;font-size:13px;line-height:1.5;text-decoration:none;transition:background .2s,transform .2s}
.feature-article-link:hover{background:white;transform:translateY(-2px)}
.feature-article-link:focus-visible{outline:2px solid white;outline-offset:5px}
.inbound-task-copy{min-width:0;flex:1}
.inbound-task-title{display:block;font-size:13px}
.inbound-task-detail{display:block;font-size:11px;line-height:1.4;color:#7a877b;margin-top:4px}
@media(max-width:800px){.feature-article-link{margin-top:20px;padding:9px 14px;font-size:12px}}
@media(max-width:600px){.feature-article-link{margin-top:18px}.inbound-task-title{font-size:12px}.inbound-task-detail{font-size:10px}.inbound-window{padding:15px 11px}.inbound-task-content{padding:8px;gap:5px}.inbound-window-header{font-size:12px}}

/* Reserve one line for both working and completed wording during the text dissolve. */
.inbound-task-status{display:block;width:9em;max-width:none;white-space:nowrap}
[data-working-label]{display:block;min-height:1.5em}

@media(max-width:600px){
 /* Give the task copy the full row on phones; the short status stays on one line. */
 .inbound-task-content{display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:3px}
 .inbound-task-status{width:auto;justify-self:end}
}

/* The three panel backgrounds are decorative and sit behind a gradient. Below 760px the
   panel is at most a few hundred CSS pixels wide, so the phone takes the 960px variant
   that srcset would hand an <img> at the same size instead of the full-width file. */
@media (max-width:760px){
.feature-deck .feature-panel{background-image:url('/site/assets/optimized/feature-glass-gradient-3bc9a7c545a2-960w.webp')}
.feature-deck .feature-panel[data-feature=outbound]{background-image:url('/site/assets/optimized/feature-outbound-background-754868e386e8-960w.webp')}
.feature-deck .feature-panel[data-feature=workflows]{background-image:url('/site/assets/optimized/feature-messaging-background-ee1eaae45f18-960w.webp')}
}
